Lines Matching refs:mac

470 #define BWI_CREATE_MAC(mac, sc, id, rev)	\
472 BWI_CREATE_REGWIN(&(mac)->mac_regwin, \
474 (mac)->mac_sc = (sc); \
678 #define MOBJ_WRITE_2(mac, objid, ofs, val) \
679 bwi_memobj_write_2((mac), (objid), (ofs), (val))
680 #define MOBJ_WRITE_4(mac, objid, ofs, val) \
681 bwi_memobj_write_4((mac), (objid), (ofs), (val))
682 #define MOBJ_READ_2(mac, objid, ofs) \
683 bwi_memobj_read_2((mac), (objid), (ofs))
684 #define MOBJ_READ_4(mac, objid, ofs) \
685 bwi_memobj_read_4((mac), (objid), (ofs))
687 #define MOBJ_SETBITS_4(mac, objid, ofs, bits) \
688 MOBJ_WRITE_4((mac), (objid), (ofs), \
689 MOBJ_READ_4((mac), (objid), (ofs)) | (bits))
690 #define MOBJ_CLRBITS_4(mac, objid, ofs, bits) \
691 MOBJ_WRITE_4((mac), (objid), (ofs), \
692 MOBJ_READ_4((mac), (objid), (ofs)) & ~(bits))
694 #define MOBJ_FILT_SETBITS_2(mac, objid, ofs, filt, bits) \
695 MOBJ_WRITE_2((mac), (objid), (ofs), \
696 (MOBJ_READ_2((mac), (objid), (ofs)) & (filt)) | (bits))
698 #define TMPLT_WRITE_4(mac, ofs, val) bwi_tmplt_write_4((mac), (ofs), (val))
700 #define HFLAGS_WRITE(mac, flags) bwi_hostflags_write((mac), (flags))
701 #define HFLAGS_READ(mac) bwi_hostflags_read((mac))
702 #define HFLAGS_CLRBITS(mac, bits) \
703 HFLAGS_WRITE((mac), HFLAGS_READ((mac)) | (bits))
704 #define HFLAGS_SETBITS(mac, bits) \
705 HFLAGS_WRITE((mac), HFLAGS_READ((mac)) & ~(bits))
721 #define PHY_WRITE(mac, ctrl, val) bwi_phy_write((mac), (ctrl), (val))
722 #define PHY_READ(mac, ctrl) bwi_phy_read((mac), (ctrl))
724 #define PHY_SETBITS(mac, ctrl, bits) \
725 PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctrl)) | (bits))
726 #define PHY_CLRBITS(mac, ctrl, bits) \
727 PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctrl)) & ~(bits))
728 #define PHY_FILT_SETBITS(mac, ctrl, filt, bits) \
729 PHY_WRITE((mac), (ctrl), (PHY_READ((mac), (ctrl)) & (filt)) | (bits))
776 #define RF_WRITE(mac, ofs, val) bwi_rf_write((mac), (ofs), (val))
777 #define RF_READ(mac, ofs) bwi_rf_read((mac), (ofs))
779 #define RF_SETBITS(mac, ofs, bits) \
780 RF_WRITE((mac), (ofs), RF_READ((mac), (ofs)) | (bits))
781 #define RF_CLRBITS(mac, ofs, bits) \
782 RF_WRITE((mac), (ofs), RF_READ((mac), (ofs)) & ~(bits))
783 #define RF_FILT_SETBITS(mac, ofs, filt, bits) \
784 RF_WRITE((mac), (ofs), (RF_READ((mac), (ofs)) & (filt)) | (bits))