Lines Matching refs:id
80 int xrx200_gphy_boot(struct device *dev, unsigned int id, dma_addr_t dev_addr) in xrx200_gphy_boot() argument
95 if (id > 1) { in xrx200_gphy_boot()
96 dev_err(dev, "%u is an invalid gphy id\n", id); in xrx200_gphy_boot()
99 dev_info(dev, "booting GPHY%u firmware at %X\n", id, dev_addr); in xrx200_gphy_boot()
101 ltq_rcu_w32(ltq_rcu_r32(RCU_RST_REQ) | xrx200_gphy[id].rd, in xrx200_gphy_boot()
103 ltq_rcu_w32(dev_addr, xrx200_gphy[id].addr); in xrx200_gphy_boot()
104 ltq_rcu_w32(ltq_rcu_r32(RCU_RST_REQ) & ~xrx200_gphy[id].rd, in xrx200_gphy_boot()
118 unsigned long id) in ltq_assert_device() argument
122 if (id < 8) in ltq_assert_device()
126 val |= BIT(id); in ltq_assert_device()
133 unsigned long id) in ltq_deassert_device() argument
137 if (id < 8) in ltq_deassert_device()
141 val &= ~BIT(id); in ltq_deassert_device()
148 unsigned long id) in ltq_reset_device() argument
150 ltq_assert_device(rcdev, id); in ltq_reset_device()
151 return ltq_deassert_device(rcdev, id); in ltq_reset_device()