Searched refs:rswitch (Results 1 – 10 of 10) sorted by relevance
332 struct rio_switch *rswitch = NULL; in rio_setup_device() local347 sizeof(rswitch->nextdev[0])) + sizeof(*rswitch); in rio_setup_device()425 rswitch = rdev->rswitch; in rio_setup_device()426 rswitch->port_ok = 0; in rio_setup_device()427 spin_lock_init(&rswitch->lock); in rio_setup_device()428 rswitch->route_table = in rio_setup_device()431 if (!rswitch->route_table) in rio_setup_device()436 rswitch->route_table[rdid] = RIO_INVALID_ROUTE; in rio_setup_device()471 if (rswitch) in rio_setup_device()472 kfree(rswitch->route_table); in rio_setup_device()[all …]
190 list_add_tail(&rdev->rswitch->node, in rio_add_device()216 list_del(&rdev->rswitch->node); in rio_del_device()217 kfree(rdev->rswitch->route_table); in rio_del_device()976 p_port = prev->rswitch->route_table[rdev->destid]; in rio_chk_dev_route()1085 struct rio_dev *nextdev = rdev->rswitch->nextdev[pnum]; in rio_clr_err_stopped()1260 if (rdev->rswitch->ops && rdev->rswitch->ops->em_handle) in rio_inb_pwrite_handler()1261 rdev->rswitch->ops->em_handle(rdev, portnum); in rio_inb_pwrite_handler()1269 if (!(rdev->rswitch->port_ok & (1 << portnum))) { in rio_inb_pwrite_handler()1270 rdev->rswitch->port_ok |= (1 << portnum); in rio_inb_pwrite_handler()1288 if (rdev->rswitch->port_ok & (1 << portnum)) { in rio_inb_pwrite_handler()[all …]
49 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()
137 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()
148 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()
281 route_port = rdev->rswitch->route_table[regval]; in tsi57x_em_handler()309 spin_lock(&rdev->rswitch->lock); in tsi57x_probe()311 if (rdev->rswitch->ops) { in tsi57x_probe()312 spin_unlock(&rdev->rswitch->lock); in tsi57x_probe()315 rdev->rswitch->ops = &tsi57x_switch_ops; in tsi57x_probe()323 spin_unlock(&rdev->rswitch->lock); in tsi57x_probe()330 spin_lock(&rdev->rswitch->lock); in tsi57x_remove()331 if (rdev->rswitch->ops != &tsi57x_switch_ops) { in tsi57x_remove()332 spin_unlock(&rdev->rswitch->lock); in tsi57x_remove()335 rdev->rswitch->ops = NULL; in tsi57x_remove()[all …]
424 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()439 spin_unlock(&rdev->rswitch->lock); in idtg2_probe()450 spin_lock(&rdev->rswitch->lock); in idtg2_remove()451 if (rdev->rswitch->ops != &idtg2_switch_ops) { in idtg2_remove()452 spin_unlock(&rdev->rswitch->lock); in idtg2_remove()455 rdev->rswitch->ops = NULL; in idtg2_remove()456 spin_unlock(&rdev->rswitch->lock); in idtg2_remove()
278 spin_lock(&rdev->rswitch->lock); in idtg3_probe()280 if (rdev->rswitch->ops) { in idtg3_probe()281 spin_unlock(&rdev->rswitch->lock); in idtg3_probe()285 rdev->rswitch->ops = &idtg3_switch_ops; in idtg3_probe()295 spin_unlock(&rdev->rswitch->lock); in idtg3_probe()303 spin_lock(&rdev->rswitch->lock); in idtg3_remove()304 if (rdev->rswitch->ops == &idtg3_switch_ops) in idtg3_remove()305 rdev->rswitch->ops = NULL; in idtg3_remove()306 spin_unlock(&rdev->rswitch->lock); in idtg3_remove()
208 struct rio_switch rswitch[0]; /* RIO switch info */ member214 #define sw_to_rio_dev(n) container_of(n, struct rio_dev, rswitch[0])
1680 struct rio_switch *rswitch = NULL; in rio_mport_add_riodev() local1713 sizeof(rswitch->nextdev[0])) + sizeof(*rswitch); in rio_mport_add_riodev()1780 rswitch = rdev->rswitch; in rio_mport_add_riodev()1781 rswitch->route_table = NULL; in rio_mport_add_riodev()