Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/rapidio/
Drio-scan.c347 struct rio_switch *rswitch = NULL; in rio_setup_device() local
362 sizeof(rswitch->nextdev[0])) + sizeof(*rswitch); in rio_setup_device()
435 rswitch = rdev->rswitch; in rio_setup_device()
436 rswitch->port_ok = 0; in rio_setup_device()
437 spin_lock_init(&rswitch->lock); in rio_setup_device()
438 rswitch->route_table = kzalloc(sizeof(u8)* in rio_setup_device()
441 if (!rswitch->route_table) in rio_setup_device()
446 rswitch->route_table[rdid] = RIO_INVALID_ROUTE; in rio_setup_device()
453 list_add_tail(&rswitch->node, &net->switches); in rio_setup_device()
486 if (rswitch) in rio_setup_device()
[all …]
Drio.c683 p_port = prev->rswitch->route_table[rdev->destid]; in rio_chk_dev_route()
785 struct rio_dev *nextdev = rdev->rswitch->nextdev[pnum]; in rio_clr_err_stopped()
946 if (rdev->rswitch->ops && rdev->rswitch->ops->em_handle) in rio_inb_pwrite_handler()
947 rdev->rswitch->ops->em_handle(rdev, portnum); in rio_inb_pwrite_handler()
956 if (!(rdev->rswitch->port_ok & (1 << portnum))) { in rio_inb_pwrite_handler()
957 rdev->rswitch->port_ok |= (1 << portnum); in rio_inb_pwrite_handler()
975 if (rdev->rswitch->port_ok & (1 << portnum)) { in rio_inb_pwrite_handler()
976 rdev->rswitch->port_ok &= ~(1 << portnum); in rio_inb_pwrite_handler()
1376 struct rio_switch_ops *ops = rdev->rswitch->ops; in rio_route_add_entry()
1385 spin_lock(&rdev->rswitch->lock); in rio_route_add_entry()
[all …]
Drio-sysfs.c49 if (rdev->rswitch->route_table[i] == RIO_INVALID_ROUTE) in routes_show()
53 rdev->rswitch->route_table[i]); in routes_show()
79 if (rdev->rswitch->nextdev[i]) in lnext_show()
81 rio_name(rdev->rswitch->nextdev[i])); in lnext_show()
/linux-4.4.14/drivers/rapidio/switches/
Didtcps.c137 spin_lock(&rdev->rswitch->lock); in idtcps_probe()
139 if (rdev->rswitch->ops) { in idtcps_probe()
140 spin_unlock(&rdev->rswitch->lock); in idtcps_probe()
144 rdev->rswitch->ops = &idtcps_switch_ops; in idtcps_probe()
155 spin_unlock(&rdev->rswitch->lock); in idtcps_probe()
162 spin_lock(&rdev->rswitch->lock); in idtcps_remove()
163 if (rdev->rswitch->ops != &idtcps_switch_ops) { in idtcps_remove()
164 spin_unlock(&rdev->rswitch->lock); in idtcps_remove()
167 rdev->rswitch->ops = NULL; in idtcps_remove()
168 spin_unlock(&rdev->rswitch->lock); in idtcps_remove()
Dtsi568.c148 spin_lock(&rdev->rswitch->lock); in tsi568_probe()
150 if (rdev->rswitch->ops) { in tsi568_probe()
151 spin_unlock(&rdev->rswitch->lock); in tsi568_probe()
155 rdev->rswitch->ops = &tsi568_switch_ops; in tsi568_probe()
156 spin_unlock(&rdev->rswitch->lock); in tsi568_probe()
163 spin_lock(&rdev->rswitch->lock); in tsi568_remove()
164 if (rdev->rswitch->ops != &tsi568_switch_ops) { in tsi568_remove()
165 spin_unlock(&rdev->rswitch->lock); in tsi568_remove()
168 rdev->rswitch->ops = NULL; in tsi568_remove()
169 spin_unlock(&rdev->rswitch->lock); in tsi568_remove()
Dtsi57x.c283 route_port = rdev->rswitch->route_table[regval]; in tsi57x_em_handler()
311 spin_lock(&rdev->rswitch->lock); in tsi57x_probe()
313 if (rdev->rswitch->ops) { in tsi57x_probe()
314 spin_unlock(&rdev->rswitch->lock); in tsi57x_probe()
317 rdev->rswitch->ops = &tsi57x_switch_ops; in tsi57x_probe()
325 spin_unlock(&rdev->rswitch->lock); in tsi57x_probe()
332 spin_lock(&rdev->rswitch->lock); in tsi57x_remove()
333 if (rdev->rswitch->ops != &tsi57x_switch_ops) { in tsi57x_remove()
334 spin_unlock(&rdev->rswitch->lock); in tsi57x_remove()
337 rdev->rswitch->ops = NULL; in tsi57x_remove()
[all …]
Didt_gen2.c424 spin_lock(&rdev->rswitch->lock); in idtg2_probe()
426 if (rdev->rswitch->ops) { in idtg2_probe()
427 spin_unlock(&rdev->rswitch->lock); in idtg2_probe()
431 rdev->rswitch->ops = &idtg2_switch_ops; in idtg2_probe()
442 spin_unlock(&rdev->rswitch->lock); in idtg2_probe()
449 spin_lock(&rdev->rswitch->lock); in idtg2_remove()
450 if (rdev->rswitch->ops != &idtg2_switch_ops) { in idtg2_remove()
451 spin_unlock(&rdev->rswitch->lock); in idtg2_remove()
454 rdev->rswitch->ops = NULL; in idtg2_remove()
459 spin_unlock(&rdev->rswitch->lock); in idtg2_remove()
/linux-4.4.14/include/linux/
Drio.h197 struct rio_switch rswitch[0]; /* RIO switch info */ member
203 #define sw_to_rio_dev(n) container_of(n, struct rio_dev, rswitch[0])