Lines Matching refs:dev
39 struct ssb_device *dev; member
68 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_is_rgmii() local
69 return (dev ? dev->has_rgmii : 0); in ssb_gige_is_rgmii()
75 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_have_roboswitch() local
76 if (dev) in ssb_gige_have_roboswitch()
77 return !!(dev->dev->bus->sprom.boardflags_lo & in ssb_gige_have_roboswitch()
85 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_one_dma_at_once() local
86 if (dev) in ssb_gige_one_dma_at_once()
87 return ((dev->dev->bus->chip_id == 0x4785) && in ssb_gige_one_dma_at_once()
88 (dev->dev->bus->chip_rev < 2)); in ssb_gige_one_dma_at_once()
95 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_must_flush_posted_writes() local
96 if (dev) in ssb_gige_must_flush_posted_writes()
97 return (dev->dev->bus->chip_id == 0x4785); in ssb_gige_must_flush_posted_writes()
104 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_get_macaddr() local
105 if (!dev) in ssb_gige_get_macaddr()
108 memcpy(macaddr, dev->dev->bus->sprom.et0mac, 6); in ssb_gige_get_macaddr()
115 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_get_phyaddr() local
116 if (!dev) in ssb_gige_get_phyaddr()
119 return dev->dev->bus->sprom.et0phyaddr; in ssb_gige_get_phyaddr()