diff options
-rw-r--r-- | arch/x86/include/asm/uv/uv_bau.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/x86/include/asm/uv/uv_bau.h b/arch/x86/include/asm/uv/uv_bau.h index a291c40efd43..605e613b510c 100644 --- a/arch/x86/include/asm/uv/uv_bau.h +++ b/arch/x86/include/asm/uv/uv_bau.h | |||
@@ -526,72 +526,72 @@ struct bau_control { | |||
526 | struct hub_and_pnode *thp; | 526 | struct hub_and_pnode *thp; |
527 | }; | 527 | }; |
528 | 528 | ||
529 | static unsigned long read_mmr_uv2_status(void) | 529 | static inline unsigned long read_mmr_uv2_status(void) |
530 | { | 530 | { |
531 | return read_lmmr(UV2H_LB_BAU_SB_ACTIVATION_STATUS_2); | 531 | return read_lmmr(UV2H_LB_BAU_SB_ACTIVATION_STATUS_2); |
532 | } | 532 | } |
533 | 533 | ||
534 | static void write_mmr_data_broadcast(int pnode, unsigned long mmr_image) | 534 | static inline void write_mmr_data_broadcast(int pnode, unsigned long mmr_image) |
535 | { | 535 | { |
536 | write_gmmr(pnode, UVH_BAU_DATA_BROADCAST, mmr_image); | 536 | write_gmmr(pnode, UVH_BAU_DATA_BROADCAST, mmr_image); |
537 | } | 537 | } |
538 | 538 | ||
539 | static void write_mmr_descriptor_base(int pnode, unsigned long mmr_image) | 539 | static inline void write_mmr_descriptor_base(int pnode, unsigned long mmr_image) |
540 | { | 540 | { |
541 | write_gmmr(pnode, UVH_LB_BAU_SB_DESCRIPTOR_BASE, mmr_image); | 541 | write_gmmr(pnode, UVH_LB_BAU_SB_DESCRIPTOR_BASE, mmr_image); |
542 | } | 542 | } |
543 | 543 | ||
544 | static void write_mmr_activation(unsigned long index) | 544 | static inline void write_mmr_activation(unsigned long index) |
545 | { | 545 | { |
546 | write_lmmr(UVH_LB_BAU_SB_ACTIVATION_CONTROL, index); | 546 | write_lmmr(UVH_LB_BAU_SB_ACTIVATION_CONTROL, index); |
547 | } | 547 | } |
548 | 548 | ||
549 | static void write_gmmr_activation(int pnode, unsigned long mmr_image) | 549 | static inline void write_gmmr_activation(int pnode, unsigned long mmr_image) |
550 | { | 550 | { |
551 | write_gmmr(pnode, UVH_LB_BAU_SB_ACTIVATION_CONTROL, mmr_image); | 551 | write_gmmr(pnode, UVH_LB_BAU_SB_ACTIVATION_CONTROL, mmr_image); |
552 | } | 552 | } |
553 | 553 | ||
554 | static void write_mmr_payload_first(int pnode, unsigned long mmr_image) | 554 | static inline void write_mmr_payload_first(int pnode, unsigned long mmr_image) |
555 | { | 555 | { |
556 | write_gmmr(pnode, UVH_LB_BAU_INTD_PAYLOAD_QUEUE_FIRST, mmr_image); | 556 | write_gmmr(pnode, UVH_LB_BAU_INTD_PAYLOAD_QUEUE_FIRST, mmr_image); |
557 | } | 557 | } |
558 | 558 | ||
559 | static void write_mmr_payload_tail(int pnode, unsigned long mmr_image) | 559 | static inline void write_mmr_payload_tail(int pnode, unsigned long mmr_image) |
560 | { | 560 | { |
561 | write_gmmr(pnode, UVH_LB_BAU_INTD_PAYLOAD_QUEUE_TAIL, mmr_image); | 561 | write_gmmr(pnode, UVH_LB_BAU_INTD_PAYLOAD_QUEUE_TAIL, mmr_image); |
562 | } | 562 | } |
563 | 563 | ||
564 | static void write_mmr_payload_last(int pnode, unsigned long mmr_image) | 564 | static inline void write_mmr_payload_last(int pnode, unsigned long mmr_image) |
565 | { | 565 | { |
566 | write_gmmr(pnode, UVH_LB_BAU_INTD_PAYLOAD_QUEUE_LAST, mmr_image); | 566 | write_gmmr(pnode, UVH_LB_BAU_INTD_PAYLOAD_QUEUE_LAST, mmr_image); |
567 | } | 567 | } |
568 | 568 | ||
569 | static void write_mmr_misc_control(int pnode, unsigned long mmr_image) | 569 | static inline void write_mmr_misc_control(int pnode, unsigned long mmr_image) |
570 | { | 570 | { |
571 | write_gmmr(pnode, UVH_LB_BAU_MISC_CONTROL, mmr_image); | 571 | write_gmmr(pnode, UVH_LB_BAU_MISC_CONTROL, mmr_image); |
572 | } | 572 | } |
573 | 573 | ||
574 | static unsigned long read_mmr_misc_control(int pnode) | 574 | static inline unsigned long read_mmr_misc_control(int pnode) |
575 | { | 575 | { |
576 | return read_gmmr(pnode, UVH_LB_BAU_MISC_CONTROL); | 576 | return read_gmmr(pnode, UVH_LB_BAU_MISC_CONTROL); |
577 | } | 577 | } |
578 | 578 | ||
579 | static void write_mmr_sw_ack(unsigned long mr) | 579 | static inline void write_mmr_sw_ack(unsigned long mr) |
580 | { | 580 | { |
581 | uv_write_local_mmr(UVH_LB_BAU_INTD_SOFTWARE_ACKNOWLEDGE_ALIAS, mr); | 581 | uv_write_local_mmr(UVH_LB_BAU_INTD_SOFTWARE_ACKNOWLEDGE_ALIAS, mr); |
582 | } | 582 | } |
583 | 583 | ||
584 | static unsigned long read_mmr_sw_ack(void) | 584 | static inline unsigned long read_mmr_sw_ack(void) |
585 | { | 585 | { |
586 | return read_lmmr(UVH_LB_BAU_INTD_SOFTWARE_ACKNOWLEDGE); | 586 | return read_lmmr(UVH_LB_BAU_INTD_SOFTWARE_ACKNOWLEDGE); |
587 | } | 587 | } |
588 | 588 | ||
589 | static unsigned long read_gmmr_sw_ack(int pnode) | 589 | static inline unsigned long read_gmmr_sw_ack(int pnode) |
590 | { | 590 | { |
591 | return read_gmmr(pnode, UVH_LB_BAU_INTD_SOFTWARE_ACKNOWLEDGE); | 591 | return read_gmmr(pnode, UVH_LB_BAU_INTD_SOFTWARE_ACKNOWLEDGE); |
592 | } | 592 | } |
593 | 593 | ||
594 | static void write_mmr_data_config(int pnode, unsigned long mr) | 594 | static inline void write_mmr_data_config(int pnode, unsigned long mr) |
595 | { | 595 | { |
596 | uv_write_global_mmr64(pnode, UVH_BAU_DATA_CONFIG, mr); | 596 | uv_write_global_mmr64(pnode, UVH_BAU_DATA_CONFIG, mr); |
597 | } | 597 | } |