rswitch 1683 drivers/rapidio/devices/rio_mport_cdev.c struct rio_switch *rswitch = NULL; rswitch 1717 drivers/rapidio/devices/rio_mport_cdev.c sizeof(rswitch->nextdev[0])) + sizeof(*rswitch); rswitch 1784 drivers/rapidio/devices/rio_mport_cdev.c rswitch = rdev->rswitch; rswitch 1785 drivers/rapidio/devices/rio_mport_cdev.c rswitch->route_table = NULL; rswitch 328 drivers/rapidio/rio-scan.c struct rio_switch *rswitch = NULL; rswitch 343 drivers/rapidio/rio-scan.c sizeof(rswitch->nextdev[0])) + sizeof(*rswitch); rswitch 421 drivers/rapidio/rio-scan.c rswitch = rdev->rswitch; rswitch 422 drivers/rapidio/rio-scan.c rswitch->port_ok = 0; rswitch 423 drivers/rapidio/rio-scan.c spin_lock_init(&rswitch->lock); rswitch 424 drivers/rapidio/rio-scan.c rswitch->route_table = rswitch 427 drivers/rapidio/rio-scan.c if (!rswitch->route_table) rswitch 432 drivers/rapidio/rio-scan.c rswitch->route_table[rdid] = RIO_INVALID_ROUTE; rswitch 467 drivers/rapidio/rio-scan.c if (rswitch) rswitch 468 drivers/rapidio/rio-scan.c kfree(rswitch->route_table); rswitch 552 drivers/rapidio/rio-scan.c prev->rswitch->nextdev[prev_port] = rdev; rswitch 586 drivers/rapidio/rio-scan.c prev->rswitch->nextdev[prev_port] = rdev; rswitch 600 drivers/rapidio/rio-scan.c rdev->rswitch->route_table[port->host_deviceid] = sw_inport; rswitch 607 drivers/rapidio/rio-scan.c rdev->rswitch->route_table[destid] = sw_inport; rswitch 623 drivers/rapidio/rio-scan.c rdev->rswitch->port_ok |= (1 << port_num); rswitch 636 drivers/rapidio/rio-scan.c rdev->rswitch->port_ok |= (1 << port_num); rswitch 656 drivers/rapidio/rio-scan.c rdev->rswitch-> rswitch 671 drivers/rapidio/rio-scan.c rdev->rswitch->port_ok &= ~(1 << port_num); rswitch 739 drivers/rapidio/rio-scan.c prev->rswitch->nextdev[prev_port] = rdev; rswitch 889 drivers/rapidio/rio-scan.c struct rio_switch *rswitch; rswitch 897 drivers/rapidio/rio-scan.c list_for_each_entry(rswitch, &net->switches, node) { rswitch 899 drivers/rapidio/rio-scan.c if (rio_is_switch(rdev) && (rdev->rswitch == rswitch)) rswitch 902 drivers/rapidio/rio-scan.c if (RIO_INVALID_ROUTE == rswitch->route_table[destid]) { rswitch 903 drivers/rapidio/rio-scan.c swrdev = sw_to_rio_dev(rswitch); rswitch 913 drivers/rapidio/rio-scan.c rswitch->route_table[destid] = sport; rswitch 929 drivers/rapidio/rio-scan.c rdev->rswitch->ops && rdev->rswitch->ops->em_init) { rswitch 930 drivers/rapidio/rio-scan.c rdev->rswitch->ops->em_init(rdev); rswitch 1024 drivers/rapidio/rio-scan.c struct rio_switch *rswitch; rswitch 1029 drivers/rapidio/rio-scan.c list_for_each_entry(rswitch, &net->switches, node) { rswitch 1030 drivers/rapidio/rio-scan.c rdev = sw_to_rio_dev(rswitch); rswitch 1040 drivers/rapidio/rio-scan.c rswitch->route_table[i] = sport; rswitch 45 drivers/rapidio/rio-sysfs.c if (rdev->rswitch->route_table[i] == RIO_INVALID_ROUTE) rswitch 49 drivers/rapidio/rio-sysfs.c rdev->rswitch->route_table[i]); rswitch 75 drivers/rapidio/rio-sysfs.c if (rdev->rswitch->nextdev[i]) rswitch 77 drivers/rapidio/rio-sysfs.c rio_name(rdev->rswitch->nextdev[i])); rswitch 186 drivers/rapidio/rio.c list_add_tail(&rdev->rswitch->node, rswitch 212 drivers/rapidio/rio.c list_del(&rdev->rswitch->node); rswitch 213 drivers/rapidio/rio.c kfree(rdev->rswitch->route_table); rswitch 972 drivers/rapidio/rio.c p_port = prev->rswitch->route_table[rdev->destid]; rswitch 1081 drivers/rapidio/rio.c struct rio_dev *nextdev = rdev->rswitch->nextdev[pnum]; rswitch 1256 drivers/rapidio/rio.c if (rdev->rswitch->ops && rdev->rswitch->ops->em_handle) rswitch 1257 drivers/rapidio/rio.c rdev->rswitch->ops->em_handle(rdev, portnum); rswitch 1265 drivers/rapidio/rio.c if (!(rdev->rswitch->port_ok & (1 << portnum))) { rswitch 1266 drivers/rapidio/rio.c rdev->rswitch->port_ok |= (1 << portnum); rswitch 1284 drivers/rapidio/rio.c if (rdev->rswitch->port_ok & (1 << portnum)) { rswitch 1285 drivers/rapidio/rio.c rdev->rswitch->port_ok &= ~(1 << portnum); rswitch 1683 drivers/rapidio/rio.c struct rio_switch_ops *ops = rdev->rswitch->ops; rswitch 1692 drivers/rapidio/rio.c spin_lock(&rdev->rswitch->lock); rswitch 1705 drivers/rapidio/rio.c spin_unlock(&rdev->rswitch->lock); rswitch 1736 drivers/rapidio/rio.c struct rio_switch_ops *ops = rdev->rswitch->ops; rswitch 1745 drivers/rapidio/rio.c spin_lock(&rdev->rswitch->lock); rswitch 1758 drivers/rapidio/rio.c spin_unlock(&rdev->rswitch->lock); rswitch 1784 drivers/rapidio/rio.c struct rio_switch_ops *ops = rdev->rswitch->ops; rswitch 1793 drivers/rapidio/rio.c spin_lock(&rdev->rswitch->lock); rswitch 1805 drivers/rapidio/rio.c spin_unlock(&rdev->rswitch->lock); rswitch 420 drivers/rapidio/switches/idt_gen2.c spin_lock(&rdev->rswitch->lock); rswitch 422 drivers/rapidio/switches/idt_gen2.c if (rdev->rswitch->ops) { rswitch 423 drivers/rapidio/switches/idt_gen2.c spin_unlock(&rdev->rswitch->lock); rswitch 427 drivers/rapidio/switches/idt_gen2.c rdev->rswitch->ops = &idtg2_switch_ops; rswitch 435 drivers/rapidio/switches/idt_gen2.c spin_unlock(&rdev->rswitch->lock); rswitch 446 drivers/rapidio/switches/idt_gen2.c spin_lock(&rdev->rswitch->lock); rswitch 447 drivers/rapidio/switches/idt_gen2.c if (rdev->rswitch->ops != &idtg2_switch_ops) { rswitch 448 drivers/rapidio/switches/idt_gen2.c spin_unlock(&rdev->rswitch->lock); rswitch 451 drivers/rapidio/switches/idt_gen2.c rdev->rswitch->ops = NULL; rswitch 452 drivers/rapidio/switches/idt_gen2.c spin_unlock(&rdev->rswitch->lock); rswitch 274 drivers/rapidio/switches/idt_gen3.c spin_lock(&rdev->rswitch->lock); rswitch 276 drivers/rapidio/switches/idt_gen3.c if (rdev->rswitch->ops) { rswitch 277 drivers/rapidio/switches/idt_gen3.c spin_unlock(&rdev->rswitch->lock); rswitch 281 drivers/rapidio/switches/idt_gen3.c rdev->rswitch->ops = &idtg3_switch_ops; rswitch 291 drivers/rapidio/switches/idt_gen3.c spin_unlock(&rdev->rswitch->lock); rswitch 299 drivers/rapidio/switches/idt_gen3.c spin_lock(&rdev->rswitch->lock); rswitch 300 drivers/rapidio/switches/idt_gen3.c if (rdev->rswitch->ops == &idtg3_switch_ops) rswitch 301 drivers/rapidio/switches/idt_gen3.c rdev->rswitch->ops = NULL; rswitch 302 drivers/rapidio/switches/idt_gen3.c spin_unlock(&rdev->rswitch->lock); rswitch 133 drivers/rapidio/switches/idtcps.c spin_lock(&rdev->rswitch->lock); rswitch 135 drivers/rapidio/switches/idtcps.c if (rdev->rswitch->ops) { rswitch 136 drivers/rapidio/switches/idtcps.c spin_unlock(&rdev->rswitch->lock); rswitch 140 drivers/rapidio/switches/idtcps.c rdev->rswitch->ops = &idtcps_switch_ops; rswitch 151 drivers/rapidio/switches/idtcps.c spin_unlock(&rdev->rswitch->lock); rswitch 158 drivers/rapidio/switches/idtcps.c spin_lock(&rdev->rswitch->lock); rswitch 159 drivers/rapidio/switches/idtcps.c if (rdev->rswitch->ops != &idtcps_switch_ops) { rswitch 160 drivers/rapidio/switches/idtcps.c spin_unlock(&rdev->rswitch->lock); rswitch 163 drivers/rapidio/switches/idtcps.c rdev->rswitch->ops = NULL; rswitch 164 drivers/rapidio/switches/idtcps.c spin_unlock(&rdev->rswitch->lock); rswitch 144 drivers/rapidio/switches/tsi568.c spin_lock(&rdev->rswitch->lock); rswitch 146 drivers/rapidio/switches/tsi568.c if (rdev->rswitch->ops) { rswitch 147 drivers/rapidio/switches/tsi568.c spin_unlock(&rdev->rswitch->lock); rswitch 151 drivers/rapidio/switches/tsi568.c rdev->rswitch->ops = &tsi568_switch_ops; rswitch 152 drivers/rapidio/switches/tsi568.c spin_unlock(&rdev->rswitch->lock); rswitch 159 drivers/rapidio/switches/tsi568.c spin_lock(&rdev->rswitch->lock); rswitch 160 drivers/rapidio/switches/tsi568.c if (rdev->rswitch->ops != &tsi568_switch_ops) { rswitch 161 drivers/rapidio/switches/tsi568.c spin_unlock(&rdev->rswitch->lock); rswitch 164 drivers/rapidio/switches/tsi568.c rdev->rswitch->ops = NULL; rswitch 165 drivers/rapidio/switches/tsi568.c spin_unlock(&rdev->rswitch->lock); rswitch 277 drivers/rapidio/switches/tsi57x.c route_port = rdev->rswitch->route_table[regval]; rswitch 305 drivers/rapidio/switches/tsi57x.c spin_lock(&rdev->rswitch->lock); rswitch 307 drivers/rapidio/switches/tsi57x.c if (rdev->rswitch->ops) { rswitch 308 drivers/rapidio/switches/tsi57x.c spin_unlock(&rdev->rswitch->lock); rswitch 311 drivers/rapidio/switches/tsi57x.c rdev->rswitch->ops = &tsi57x_switch_ops; rswitch 319 drivers/rapidio/switches/tsi57x.c spin_unlock(&rdev->rswitch->lock); rswitch 326 drivers/rapidio/switches/tsi57x.c spin_lock(&rdev->rswitch->lock); rswitch 327 drivers/rapidio/switches/tsi57x.c if (rdev->rswitch->ops != &tsi57x_switch_ops) { rswitch 328 drivers/rapidio/switches/tsi57x.c spin_unlock(&rdev->rswitch->lock); rswitch 331 drivers/rapidio/switches/tsi57x.c rdev->rswitch->ops = NULL; rswitch 332 drivers/rapidio/switches/tsi57x.c spin_unlock(&rdev->rswitch->lock); rswitch 204 include/linux/rio.h struct rio_switch rswitch[0]; /* RIO switch info */ rswitch 210 include/linux/rio.h #define sw_to_rio_dev(n) container_of(n, struct rio_dev, rswitch[0])