Lines Matching refs:bgmac

442 struct bgmac {  struct
486 u32 (*read)(struct bgmac *bgmac, u16 offset); argument
487 void (*write)(struct bgmac *bgmac, u16 offset, u32 value); argument
488 u32 (*idm_read)(struct bgmac *bgmac, u16 offset); argument
489 void (*idm_write)(struct bgmac *bgmac, u16 offset, u32 value); argument
490 bool (*clk_enabled)(struct bgmac *bgmac); argument
491 void (*clk_enable)(struct bgmac *bgmac, u32 flags); argument
492 void (*cco_ctl_maskset)(struct bgmac *bgmac, u32 offset, u32 mask, argument
494 u32 (*get_bus_clock)(struct bgmac *bgmac); argument
495 void (*cmn_maskset32)(struct bgmac *bgmac, u16 offset, u32 mask, argument
497 int (*phy_connect)(struct bgmac *bgmac); argument
500 struct bgmac *bgmac_alloc(struct device *dev);
501 int bgmac_enet_probe(struct bgmac *bgmac);
502 void bgmac_enet_remove(struct bgmac *bgmac);
504 int bgmac_phy_connect_direct(struct bgmac *bgmac);
505 int bgmac_enet_suspend(struct bgmac *bgmac);
506 int bgmac_enet_resume(struct bgmac *bgmac);
508 struct mii_bus *bcma_mdio_mii_register(struct bgmac *bgmac);
511 static inline u32 bgmac_read(struct bgmac *bgmac, u16 offset) in bgmac_read() argument
513 return bgmac->read(bgmac, offset); in bgmac_read()
516 static inline void bgmac_write(struct bgmac *bgmac, u16 offset, u32 value) in bgmac_write() argument
518 bgmac->write(bgmac, offset, value); in bgmac_write()
521 static inline u32 bgmac_umac_read(struct bgmac *bgmac, u16 offset) in bgmac_umac_read() argument
523 return bgmac_read(bgmac, BGMAC_UNIMAC + offset); in bgmac_umac_read()
526 static inline void bgmac_umac_write(struct bgmac *bgmac, u16 offset, u32 value) in bgmac_umac_write() argument
528 bgmac_write(bgmac, BGMAC_UNIMAC + offset, value); in bgmac_umac_write()
531 static inline u32 bgmac_idm_read(struct bgmac *bgmac, u16 offset) in bgmac_idm_read() argument
533 return bgmac->idm_read(bgmac, offset); in bgmac_idm_read()
536 static inline void bgmac_idm_write(struct bgmac *bgmac, u16 offset, u32 value) in bgmac_idm_write() argument
538 bgmac->idm_write(bgmac, offset, value); in bgmac_idm_write()
541 static inline bool bgmac_clk_enabled(struct bgmac *bgmac) in bgmac_clk_enabled() argument
543 return bgmac->clk_enabled(bgmac); in bgmac_clk_enabled()
546 static inline void bgmac_clk_enable(struct bgmac *bgmac, u32 flags) in bgmac_clk_enable() argument
548 bgmac->clk_enable(bgmac, flags); in bgmac_clk_enable()
551 static inline void bgmac_cco_ctl_maskset(struct bgmac *bgmac, u32 offset, in bgmac_cco_ctl_maskset() argument
554 bgmac->cco_ctl_maskset(bgmac, offset, mask, set); in bgmac_cco_ctl_maskset()
557 static inline u32 bgmac_get_bus_clock(struct bgmac *bgmac) in bgmac_get_bus_clock() argument
559 return bgmac->get_bus_clock(bgmac); in bgmac_get_bus_clock()
562 static inline void bgmac_cmn_maskset32(struct bgmac *bgmac, u16 offset, in bgmac_cmn_maskset32() argument
565 bgmac->cmn_maskset32(bgmac, offset, mask, set); in bgmac_cmn_maskset32()
568 static inline void bgmac_maskset(struct bgmac *bgmac, u16 offset, u32 mask, in bgmac_maskset() argument
571 bgmac_write(bgmac, offset, (bgmac_read(bgmac, offset) & mask) | set); in bgmac_maskset()
574 static inline void bgmac_mask(struct bgmac *bgmac, u16 offset, u32 mask) in bgmac_mask() argument
576 bgmac_maskset(bgmac, offset, mask, 0); in bgmac_mask()
579 static inline void bgmac_set(struct bgmac *bgmac, u16 offset, u32 set) in bgmac_set() argument
581 bgmac_maskset(bgmac, offset, ~0, set); in bgmac_set()
584 static inline void bgmac_umac_maskset(struct bgmac *bgmac, u16 offset, u32 mask, u32 set) in bgmac_umac_maskset() argument
586 bgmac_maskset(bgmac, BGMAC_UNIMAC + offset, mask, set); in bgmac_umac_maskset()
589 static inline int bgmac_phy_connect(struct bgmac *bgmac) in bgmac_phy_connect() argument
591 return bgmac->phy_connect(bgmac); in bgmac_phy_connect()