Lines Matching refs:bgmac
6 #define bgmac_err(bgmac, fmt, ...) \ argument
7 dev_err(&(bgmac)->core->dev, fmt, ##__VA_ARGS__)
8 #define bgmac_warn(bgmac, fmt, ...) \ argument
9 dev_warn(&(bgmac)->core->dev, fmt, ##__VA_ARGS__)
10 #define bgmac_info(bgmac, fmt, ...) \ argument
11 dev_info(&(bgmac)->core->dev, fmt, ##__VA_ARGS__)
12 #define bgmac_dbg(bgmac, fmt, ...) \ argument
13 dev_dbg(&(bgmac)->core->dev, fmt, ##__VA_ARGS__)
431 struct bgmac { struct
462 static inline u32 bgmac_read(struct bgmac *bgmac, u16 offset) in bgmac_read() argument
464 return bcma_read32(bgmac->core, offset); in bgmac_read()
467 static inline void bgmac_write(struct bgmac *bgmac, u16 offset, u32 value) in bgmac_write() argument
469 bcma_write32(bgmac->core, offset, value); in bgmac_write()
472 static inline void bgmac_maskset(struct bgmac *bgmac, u16 offset, u32 mask, in bgmac_maskset() argument
475 bgmac_write(bgmac, offset, (bgmac_read(bgmac, offset) & mask) | set); in bgmac_maskset()
478 static inline void bgmac_mask(struct bgmac *bgmac, u16 offset, u32 mask) in bgmac_mask() argument
480 bgmac_maskset(bgmac, offset, mask, 0); in bgmac_mask()
483 static inline void bgmac_set(struct bgmac *bgmac, u16 offset, u32 set) in bgmac_set() argument
485 bgmac_maskset(bgmac, offset, ~0, set); in bgmac_set()