Lines Matching refs:bgmac

439 struct bgmac {  struct
485 u32 (*read)(struct bgmac *bgmac, u16 offset); argument
486 void (*write)(struct bgmac *bgmac, u16 offset, u32 value); argument
487 u32 (*idm_read)(struct bgmac *bgmac, u16 offset); argument
488 void (*idm_write)(struct bgmac *bgmac, u16 offset, u32 value); argument
489 bool (*clk_enabled)(struct bgmac *bgmac); argument
490 void (*clk_enable)(struct bgmac *bgmac, u32 flags); argument
491 void (*cco_ctl_maskset)(struct bgmac *bgmac, u32 offset, u32 mask, argument
493 u32 (*get_bus_clock)(struct bgmac *bgmac); argument
494 void (*cmn_maskset32)(struct bgmac *bgmac, u16 offset, u32 mask, argument
496 int (*phy_connect)(struct bgmac *bgmac); argument
499 struct bgmac *bgmac_alloc(struct device *dev);
500 int bgmac_enet_probe(struct bgmac *bgmac);
501 void bgmac_enet_remove(struct bgmac *bgmac);
503 int bgmac_phy_connect_direct(struct bgmac *bgmac);
504 int bgmac_enet_suspend(struct bgmac *bgmac);
505 int bgmac_enet_resume(struct bgmac *bgmac);
507 struct mii_bus *bcma_mdio_mii_register(struct bgmac *bgmac);
510 static inline u32 bgmac_read(struct bgmac *bgmac, u16 offset) in bgmac_read() argument
512 return bgmac->read(bgmac, offset); in bgmac_read()
515 static inline void bgmac_write(struct bgmac *bgmac, u16 offset, u32 value) in bgmac_write() argument
517 bgmac->write(bgmac, offset, value); in bgmac_write()
520 static inline u32 bgmac_umac_read(struct bgmac *bgmac, u16 offset) in bgmac_umac_read() argument
522 return bgmac_read(bgmac, BGMAC_UNIMAC + offset); in bgmac_umac_read()
525 static inline void bgmac_umac_write(struct bgmac *bgmac, u16 offset, u32 value) in bgmac_umac_write() argument
527 bgmac_write(bgmac, BGMAC_UNIMAC + offset, value); in bgmac_umac_write()
530 static inline u32 bgmac_idm_read(struct bgmac *bgmac, u16 offset) in bgmac_idm_read() argument
532 return bgmac->idm_read(bgmac, offset); in bgmac_idm_read()
535 static inline void bgmac_idm_write(struct bgmac *bgmac, u16 offset, u32 value) in bgmac_idm_write() argument
537 bgmac->idm_write(bgmac, offset, value); in bgmac_idm_write()
540 static inline bool bgmac_clk_enabled(struct bgmac *bgmac) in bgmac_clk_enabled() argument
542 return bgmac->clk_enabled(bgmac); in bgmac_clk_enabled()
545 static inline void bgmac_clk_enable(struct bgmac *bgmac, u32 flags) in bgmac_clk_enable() argument
547 bgmac->clk_enable(bgmac, flags); in bgmac_clk_enable()
550 static inline void bgmac_cco_ctl_maskset(struct bgmac *bgmac, u32 offset, in bgmac_cco_ctl_maskset() argument
553 bgmac->cco_ctl_maskset(bgmac, offset, mask, set); in bgmac_cco_ctl_maskset()
556 static inline u32 bgmac_get_bus_clock(struct bgmac *bgmac) in bgmac_get_bus_clock() argument
558 return bgmac->get_bus_clock(bgmac); in bgmac_get_bus_clock()
561 static inline void bgmac_cmn_maskset32(struct bgmac *bgmac, u16 offset, in bgmac_cmn_maskset32() argument
564 bgmac->cmn_maskset32(bgmac, offset, mask, set); in bgmac_cmn_maskset32()
567 static inline void bgmac_maskset(struct bgmac *bgmac, u16 offset, u32 mask, in bgmac_maskset() argument
570 bgmac_write(bgmac, offset, (bgmac_read(bgmac, offset) & mask) | set); in bgmac_maskset()
573 static inline void bgmac_mask(struct bgmac *bgmac, u16 offset, u32 mask) in bgmac_mask() argument
575 bgmac_maskset(bgmac, offset, mask, 0); in bgmac_mask()
578 static inline void bgmac_set(struct bgmac *bgmac, u16 offset, u32 set) in bgmac_set() argument
580 bgmac_maskset(bgmac, offset, ~0, set); in bgmac_set()
583 static inline void bgmac_umac_maskset(struct bgmac *bgmac, u16 offset, u32 mask, u32 set) in bgmac_umac_maskset() argument
585 bgmac_maskset(bgmac, BGMAC_UNIMAC + offset, mask, set); in bgmac_umac_maskset()
588 static inline int bgmac_phy_connect(struct bgmac *bgmac) in bgmac_phy_connect() argument
590 return bgmac->phy_connect(bgmac); in bgmac_phy_connect()