Lines Matching refs:rswitch

262 		rdev->rswitch->add_entry = rio_std_route_add_entry;  in rio_switch_init()
263 rdev->rswitch->get_entry = rio_std_route_get_entry; in rio_switch_init()
264 rdev->rswitch->clr_table = rio_std_route_clr_table; in rio_switch_init()
267 if (!rdev->rswitch->add_entry || !rdev->rswitch->get_entry) in rio_switch_init()
378 struct rio_switch *rswitch = NULL; in rio_setup_device() local
393 sizeof(rswitch->nextdev[0])) + sizeof(*rswitch); in rio_setup_device()
466 rswitch = rdev->rswitch; in rio_setup_device()
467 rswitch->switchid = rdev->comp_tag & RIO_CTAG_UDEVID; in rio_setup_device()
468 rswitch->port_ok = 0; in rio_setup_device()
469 rswitch->route_table = kzalloc(sizeof(u8)* in rio_setup_device()
472 if (!rswitch->route_table) in rio_setup_device()
477 rswitch->route_table[rdid] = RIO_INVALID_ROUTE; in rio_setup_device()
479 rswitch->switchid); in rio_setup_device()
482 if (do_enum && rswitch->clr_table) in rio_setup_device()
483 rswitch->clr_table(port, destid, hopcount, in rio_setup_device()
486 list_add_tail(&rswitch->node, &rio_switches); in rio_setup_device()
521 kfree(rswitch->route_table); in rio_setup_device()
671 rc = rdev->rswitch->add_entry(rdev->net->hport, rdev->destid, in rio_route_add_entry()
709 rc = rdev->rswitch->get_entry(rdev->net->hport, rdev->destid, in rio_route_get_entry()
781 prev->rswitch->nextdev[prev_port] = rdev; in rio_enum_peer()
817 prev->rswitch->nextdev[prev_port] = rdev; in rio_enum_peer()
825 rdev->rswitch->route_table[port->host_deviceid] = sw_inport; in rio_enum_peer()
832 rdev->rswitch->route_table[destid] = sw_inport; in rio_enum_peer()
849 rdev->rswitch->port_ok |= (1 << port_num); in rio_enum_peer()
861 rdev->rswitch->port_ok |= (1 << port_num); in rio_enum_peer()
881 rdev->rswitch-> in rio_enum_peer()
893 rdev->rswitch->port_ok &= ~(1 << port_num); in rio_enum_peer()
966 prev->rswitch->nextdev[prev_port] = rdev; in rio_disc_peer()
1084 struct rio_switch *rswitch; in rio_update_route_tables() local
1092 list_for_each_entry(rswitch, &rio_switches, node) { in rio_update_route_tables()
1094 if (rio_is_switch(rdev) && (rdev->rswitch == rswitch)) in rio_update_route_tables()
1097 if (RIO_INVALID_ROUTE == rswitch->route_table[destid]) { in rio_update_route_tables()
1098 swrdev = sw_to_rio_dev(rswitch); in rio_update_route_tables()
1106 if (rswitch->add_entry) { in rio_update_route_tables()
1110 rswitch->route_table[destid] = sport; in rio_update_route_tables()
1127 (rdev->rswitch->em_init)) { in rio_init_em()
1128 rdev->rswitch->em_init(rdev); in rio_init_em()
1227 rdev->rswitch->route_table[i] = sport; in rio_build_route_tables()