Home
last modified time | relevance | path

Searched refs:rswitch (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.10/drivers/rapidio/
Drio-scan.c328 struct rio_switch *rswitch = NULL; in rio_setup_device() local
342 size += struct_size(rswitch, nextdev, RIO_GET_TOTAL_PORTS(swpinfo)); in rio_setup_device()
419 rswitch = rdev->rswitch; in rio_setup_device()
420 rswitch->port_ok = 0; in rio_setup_device()
421 spin_lock_init(&rswitch->lock); in rio_setup_device()
422 rswitch->route_table = in rio_setup_device()
425 if (!rswitch->route_table) in rio_setup_device()
430 rswitch->route_table[rdid] = RIO_INVALID_ROUTE; in rio_setup_device()
465 if (rswitch) in rio_setup_device()
466 kfree(rswitch->route_table); in rio_setup_device()
[all …]
Drio.c186 list_add_tail(&rdev->rswitch->node, in rio_add_device()
212 list_del(&rdev->rswitch->node); in rio_del_device()
213 kfree(rdev->rswitch->route_table); in rio_del_device()
972 p_port = prev->rswitch->route_table[rdev->destid]; in rio_chk_dev_route()
1081 struct rio_dev *nextdev = rdev->rswitch->nextdev[pnum]; in rio_clr_err_stopped()
1256 if (rdev->rswitch->ops && rdev->rswitch->ops->em_handle) in rio_inb_pwrite_handler()
1257 rdev->rswitch->ops->em_handle(rdev, portnum); in rio_inb_pwrite_handler()
1265 if (!(rdev->rswitch->port_ok & (1 << portnum))) { in rio_inb_pwrite_handler()
1266 rdev->rswitch->port_ok |= (1 << portnum); in rio_inb_pwrite_handler()
1284 if (rdev->rswitch->port_ok & (1 << portnum)) { in rio_inb_pwrite_handler()
[all …]
Drio-sysfs.c45 if (rdev->rswitch->route_table[i] == RIO_INVALID_ROUTE) in routes_show()
49 rdev->rswitch->route_table[i]); in routes_show()
75 if (rdev->rswitch->nextdev[i]) in lnext_show()
77 rio_name(rdev->rswitch->nextdev[i])); in lnext_show()
/Linux-v5.10/drivers/rapidio/switches/
Didtcps.c133 spin_lock(&rdev->rswitch->lock); in idtcps_probe()
135 if (rdev->rswitch->ops) { in idtcps_probe()
136 spin_unlock(&rdev->rswitch->lock); in idtcps_probe()
140 rdev->rswitch->ops = &idtcps_switch_ops; in idtcps_probe()
151 spin_unlock(&rdev->rswitch->lock); in idtcps_probe()
158 spin_lock(&rdev->rswitch->lock); in idtcps_remove()
159 if (rdev->rswitch->ops != &idtcps_switch_ops) { in idtcps_remove()
160 spin_unlock(&rdev->rswitch->lock); in idtcps_remove()
163 rdev->rswitch->ops = NULL; in idtcps_remove()
164 spin_unlock(&rdev->rswitch->lock); in idtcps_remove()
Dtsi568.c144 spin_lock(&rdev->rswitch->lock); in tsi568_probe()
146 if (rdev->rswitch->ops) { in tsi568_probe()
147 spin_unlock(&rdev->rswitch->lock); in tsi568_probe()
151 rdev->rswitch->ops = &tsi568_switch_ops; in tsi568_probe()
152 spin_unlock(&rdev->rswitch->lock); in tsi568_probe()
159 spin_lock(&rdev->rswitch->lock); in tsi568_remove()
160 if (rdev->rswitch->ops != &tsi568_switch_ops) { in tsi568_remove()
161 spin_unlock(&rdev->rswitch->lock); in tsi568_remove()
164 rdev->rswitch->ops = NULL; in tsi568_remove()
165 spin_unlock(&rdev->rswitch->lock); in tsi568_remove()
Dtsi57x.c277 route_port = rdev->rswitch->route_table[regval]; in tsi57x_em_handler()
305 spin_lock(&rdev->rswitch->lock); in tsi57x_probe()
307 if (rdev->rswitch->ops) { in tsi57x_probe()
308 spin_unlock(&rdev->rswitch->lock); in tsi57x_probe()
311 rdev->rswitch->ops = &tsi57x_switch_ops; in tsi57x_probe()
319 spin_unlock(&rdev->rswitch->lock); in tsi57x_probe()
326 spin_lock(&rdev->rswitch->lock); in tsi57x_remove()
327 if (rdev->rswitch->ops != &tsi57x_switch_ops) { in tsi57x_remove()
328 spin_unlock(&rdev->rswitch->lock); in tsi57x_remove()
331 rdev->rswitch->ops = NULL; in tsi57x_remove()
[all …]
Didt_gen2.c420 spin_lock(&rdev->rswitch->lock); in idtg2_probe()
422 if (rdev->rswitch->ops) { in idtg2_probe()
423 spin_unlock(&rdev->rswitch->lock); in idtg2_probe()
427 rdev->rswitch->ops = &idtg2_switch_ops; in idtg2_probe()
435 spin_unlock(&rdev->rswitch->lock); in idtg2_probe()
446 spin_lock(&rdev->rswitch->lock); in idtg2_remove()
447 if (rdev->rswitch->ops != &idtg2_switch_ops) { in idtg2_remove()
448 spin_unlock(&rdev->rswitch->lock); in idtg2_remove()
451 rdev->rswitch->ops = NULL; in idtg2_remove()
452 spin_unlock(&rdev->rswitch->lock); in idtg2_remove()
Didt_gen3.c274 spin_lock(&rdev->rswitch->lock); in idtg3_probe()
276 if (rdev->rswitch->ops) { in idtg3_probe()
277 spin_unlock(&rdev->rswitch->lock); in idtg3_probe()
281 rdev->rswitch->ops = &idtg3_switch_ops; in idtg3_probe()
291 spin_unlock(&rdev->rswitch->lock); in idtg3_probe()
299 spin_lock(&rdev->rswitch->lock); in idtg3_remove()
300 if (rdev->rswitch->ops == &idtg3_switch_ops) in idtg3_remove()
301 rdev->rswitch->ops = NULL; in idtg3_remove()
302 spin_unlock(&rdev->rswitch->lock); in idtg3_remove()
/Linux-v5.10/include/linux/
Drio.h204 struct rio_switch rswitch[]; /* RIO switch info */ member
210 #define sw_to_rio_dev(n) container_of(n, struct rio_dev, rswitch[0])
/Linux-v5.10/drivers/rapidio/devices/
Drio_mport_cdev.c1681 struct rio_switch *rswitch = NULL; in rio_mport_add_riodev() local
1717 size += struct_size(rswitch, nextdev, RIO_GET_TOTAL_PORTS(swpinfo)); in rio_mport_add_riodev()
1784 rswitch = rdev->rswitch; in rio_mport_add_riodev()
1785 rswitch->route_table = NULL; in rio_mport_add_riodev()