Lines Matching refs:bgmac

440 struct bgmac {  struct
484 u32 (*read)(struct bgmac *bgmac, u16 offset); argument
485 void (*write)(struct bgmac *bgmac, u16 offset, u32 value); argument
486 u32 (*idm_read)(struct bgmac *bgmac, u16 offset); argument
487 void (*idm_write)(struct bgmac *bgmac, u16 offset, u32 value); argument
488 bool (*clk_enabled)(struct bgmac *bgmac); argument
489 void (*clk_enable)(struct bgmac *bgmac, u32 flags); argument
490 void (*cco_ctl_maskset)(struct bgmac *bgmac, u32 offset, u32 mask, argument
492 u32 (*get_bus_clock)(struct bgmac *bgmac); argument
493 void (*cmn_maskset32)(struct bgmac *bgmac, u16 offset, u32 mask, argument
495 int (*phy_connect)(struct bgmac *bgmac); argument
498 struct bgmac *bgmac_alloc(struct device *dev);
499 int bgmac_enet_probe(struct bgmac *bgmac);
500 void bgmac_enet_remove(struct bgmac *bgmac);
502 int bgmac_phy_connect_direct(struct bgmac *bgmac);
503 int bgmac_enet_suspend(struct bgmac *bgmac);
504 int bgmac_enet_resume(struct bgmac *bgmac);
506 struct mii_bus *bcma_mdio_mii_register(struct bgmac *bgmac);
509 static inline u32 bgmac_read(struct bgmac *bgmac, u16 offset) in bgmac_read() argument
511 return bgmac->read(bgmac, offset); in bgmac_read()
514 static inline void bgmac_write(struct bgmac *bgmac, u16 offset, u32 value) in bgmac_write() argument
516 bgmac->write(bgmac, offset, value); in bgmac_write()
519 static inline u32 bgmac_umac_read(struct bgmac *bgmac, u16 offset) in bgmac_umac_read() argument
521 return bgmac_read(bgmac, BGMAC_UNIMAC + offset); in bgmac_umac_read()
524 static inline void bgmac_umac_write(struct bgmac *bgmac, u16 offset, u32 value) in bgmac_umac_write() argument
526 bgmac_write(bgmac, BGMAC_UNIMAC + offset, value); in bgmac_umac_write()
529 static inline u32 bgmac_idm_read(struct bgmac *bgmac, u16 offset) in bgmac_idm_read() argument
531 return bgmac->idm_read(bgmac, offset); in bgmac_idm_read()
534 static inline void bgmac_idm_write(struct bgmac *bgmac, u16 offset, u32 value) in bgmac_idm_write() argument
536 bgmac->idm_write(bgmac, offset, value); in bgmac_idm_write()
539 static inline bool bgmac_clk_enabled(struct bgmac *bgmac) in bgmac_clk_enabled() argument
541 return bgmac->clk_enabled(bgmac); in bgmac_clk_enabled()
544 static inline void bgmac_clk_enable(struct bgmac *bgmac, u32 flags) in bgmac_clk_enable() argument
546 bgmac->clk_enable(bgmac, flags); in bgmac_clk_enable()
549 static inline void bgmac_cco_ctl_maskset(struct bgmac *bgmac, u32 offset, in bgmac_cco_ctl_maskset() argument
552 bgmac->cco_ctl_maskset(bgmac, offset, mask, set); in bgmac_cco_ctl_maskset()
555 static inline u32 bgmac_get_bus_clock(struct bgmac *bgmac) in bgmac_get_bus_clock() argument
557 return bgmac->get_bus_clock(bgmac); in bgmac_get_bus_clock()
560 static inline void bgmac_cmn_maskset32(struct bgmac *bgmac, u16 offset, in bgmac_cmn_maskset32() argument
563 bgmac->cmn_maskset32(bgmac, offset, mask, set); in bgmac_cmn_maskset32()
566 static inline void bgmac_maskset(struct bgmac *bgmac, u16 offset, u32 mask, in bgmac_maskset() argument
569 bgmac_write(bgmac, offset, (bgmac_read(bgmac, offset) & mask) | set); in bgmac_maskset()
572 static inline void bgmac_mask(struct bgmac *bgmac, u16 offset, u32 mask) in bgmac_mask() argument
574 bgmac_maskset(bgmac, offset, mask, 0); in bgmac_mask()
577 static inline void bgmac_set(struct bgmac *bgmac, u16 offset, u32 set) in bgmac_set() argument
579 bgmac_maskset(bgmac, offset, ~0, set); in bgmac_set()
582 static inline void bgmac_umac_maskset(struct bgmac *bgmac, u16 offset, u32 mask, u32 set) in bgmac_umac_maskset() argument
584 bgmac_maskset(bgmac, BGMAC_UNIMAC + offset, mask, set); in bgmac_umac_maskset()
587 static inline int bgmac_phy_connect(struct bgmac *bgmac) in bgmac_phy_connect() argument
589 return bgmac->phy_connect(bgmac); in bgmac_phy_connect()