Lines Matching refs:svc_id

718 #define WMI_SERVICE_ENABLE(pwmi_svc_bmap,svc_id) \  argument
719 ( (pwmi_svc_bmap)[(svc_id)/(sizeof(A_UINT32))] |= \
720 ((A_UINT32) 1 << ((svc_id)%(sizeof(A_UINT32)))) )
722 #define WMI_SERVICE_DISABLE(pwmi_svc_bmap,svc_id) \ argument
723 ( (pwmi_svc_bmap)[(svc_id)/(sizeof(A_UINT32))] &= \
724 ( ~((A_UINT32) 1 << ((svc_id)%(sizeof(A_UINT32)))) ) )
726 #define WMI_SERVICE_IS_ENABLED(pwmi_svc_bmap,svc_id) \ argument
727 ( ((pwmi_svc_bmap)[(svc_id)/(sizeof(A_UINT32))] & \
728 ((A_UINT32) 1 << ((svc_id)%(sizeof(A_UINT32)))) ) != 0)
731 #define WMI_SERVICE_EXT_ENABLE(pwmi_svc_bmap, pwmi_svc_ext_bmap, svc_id) \ argument
733 if (svc_id < WMI_MAX_SERVICE) { \
734 WMI_SERVICE_ENABLE(pwmi_svc_bmap, svc_id); \
736 int word = ((svc_id) - WMI_MAX_SERVICE) / 32; \
737 int bit = (svc_id) & 0x1f; /* svc_id mod 32 */ \
742 #define WMI_SERVICE_EXT_DISABLE(pwmi_svc_bmap, pwmi_svc_ext_bmap, svc_id) \ argument
744 if (svc_id < WMI_MAX_SERVICE) { \
745 WMI_SERVICE_DISABLE(pwmi_svc_bmap, svc_id); \
747 int word = ((svc_id) - WMI_MAX_SERVICE) / 32; \
748 int bit = (svc_id) & 0x1f; /* svc_id mod 32 */ \
753 #define WMI_SERVICE_EXT_IS_ENABLED(pwmi_svc_bmap, pwmi_svc_ext_bmap, svc_id) \ argument
755 ((svc_id) >= WMI_MAX_EXT_SERVICE ? 0 : \
757 (svc_id) < WMI_MAX_SERVICE ? \
758 WMI_SERVICE_IS_ENABLED(pwmi_svc_bmap, svc_id) : \
760 (((pwmi_svc_ext_bmap)[((svc_id) - WMI_MAX_SERVICE) / 32] >> \
761 ((svc_id) & 0x1f)) & 0x1))
764 pwmi_svc_bmap, pwmi_svc_ext_bmap, pwmi_svc_ext2_bmap, svc_id) \ argument
766 if (svc_id < WMI_MAX_SERVICE) { \
767 WMI_SERVICE_ENABLE(pwmi_svc_bmap, svc_id); \
768 } else if (svc_id < WMI_MAX_EXT_SERVICE) { \
769 WMI_SERVICE_EXT_ENABLE(pwmi_svc_bmap, pwmi_svc_ext_bmap, svc_id); \
771 int word = ((svc_id) - WMI_MAX_EXT_SERVICE) / 32; \
772 int bit = (svc_id) & 0x1f; /* svc_id mod 32 */ \
778 pwmi_svc_bmap, pwmi_svc_ext_bmap, pwmi_svc_ext2_bmap, svc_id) \ argument
780 if (svc_id < WMI_MAX_SERVICE) { \
781 WMI_SERVICE_DISABLE(pwmi_svc_bmap, svc_id); \
782 } else if (svc_id < WMI_MAX_EXT_SERVICE) { \
783 WMI_SERVICE_EXT_DISABLE(pwmi_svc_bmap, pwmi_svc_ext_bmap, svc_id); \
785 int word = ((svc_id) - WMI_MAX_EXT_SERVICE) / 32; \
786 int bit = (svc_id) & 0x1f; /* svc_id mod 32 */ \
792 pwmi_svc_bmap, pwmi_svc_ext_bmap, pwmi_svc_ext2_bmap, svc_id) \ argument
794 ((svc_id) >= WMI_MAX_EXT2_SERVICE ? 0 : \
796 (svc_id) < WMI_MAX_SERVICE ? \
797 WMI_SERVICE_IS_ENABLED(pwmi_svc_bmap, svc_id) : \
799 (svc_id) < WMI_MAX_EXT_SERVICE ? \
801 pwmi_svc_bmap, pwmi_svc_ext_bmap, svc_id) : \
805 (((pwmi_svc_ext2_bmap)[((svc_id) - WMI_MAX_EXT_SERVICE) / 32] >> \
806 ((svc_id) & 0x1f)) & 0x1))