Lines Matching refs:id
176 int xrx200_gphy_boot(struct device *dev, unsigned int id, dma_addr_t dev_addr) in xrx200_gphy_boot() argument
192 dev_info(dev, "booting GPHY%u firmware at %X\n", id, dev_addr); in xrx200_gphy_boot()
195 if (id >= ARRAY_SIZE(xrx200_gphy)) { in xrx200_gphy_boot()
196 dev_err(dev, "%u is an invalid gphy id\n", id); in xrx200_gphy_boot()
199 xrx200_gphy_boot_addr(&xrx200_gphy[id], dev_addr); in xrx200_gphy_boot()
201 if (id >= ARRAY_SIZE(xrx300_gphy)) { in xrx200_gphy_boot()
202 dev_err(dev, "%u is an invalid gphy id\n", id); in xrx200_gphy_boot()
205 xrx200_gphy_boot_addr(&xrx300_gphy[id], dev_addr); in xrx200_gphy_boot()
207 if (id >= ARRAY_SIZE(xrx330_gphy)) { in xrx200_gphy_boot()
208 dev_err(dev, "%u is an invalid gphy id\n", id); in xrx200_gphy_boot()
211 xrx200_gphy_boot_addr(&xrx330_gphy[id], dev_addr); in xrx200_gphy_boot()
225 unsigned long id) in ltq_assert_device() argument
229 if (id < 8) in ltq_assert_device()
233 val |= BIT(id); in ltq_assert_device()
240 unsigned long id) in ltq_deassert_device() argument
244 if (id < 8) in ltq_deassert_device()
248 val &= ~BIT(id); in ltq_deassert_device()
255 unsigned long id) in ltq_reset_device() argument
257 ltq_assert_device(rcdev, id); in ltq_reset_device()
258 return ltq_deassert_device(rcdev, id); in ltq_reset_device()