Searched refs:rswitch (Results 1 – 9 of 9) sorted by relevance
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() local393 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()[all …]
48 if (rdev->rswitch->route_table[i] == RIO_INVALID_ROUTE) in routes_show()52 rdev->rswitch->route_table[i]); in routes_show()76 if (rdev->rswitch->nextdev[i]) in lnext_show()78 rio_name(rdev->rswitch->nextdev[i])); in lnext_show()260 if (!err && rdev->rswitch->sw_sysfs) in rio_create_sysfs_dev_files()261 err = rdev->rswitch->sw_sysfs(rdev, RIO_SW_SYSFS_CREATE); in rio_create_sysfs_dev_files()284 if (rdev->rswitch->sw_sysfs) in rio_remove_sysfs_dev_files()285 rdev->rswitch->sw_sysfs(rdev, RIO_SW_SYSFS_REMOVE); in rio_remove_sysfs_dev_files()
533 p_port = prev->rswitch->route_table[rdev->destid]; in rio_chk_dev_route()634 struct rio_dev *nextdev = rdev->rswitch->nextdev[pnum]; in rio_clr_err_stopped()795 if (rdev->rswitch->em_handle) in rio_inb_pwrite_handler()796 rdev->rswitch->em_handle(rdev, portnum); in rio_inb_pwrite_handler()805 if (!(rdev->rswitch->port_ok & (1 << portnum))) { in rio_inb_pwrite_handler()806 rdev->rswitch->port_ok |= (1 << portnum); in rio_inb_pwrite_handler()824 if (rdev->rswitch->port_ok & (1 << portnum)) { in rio_inb_pwrite_handler()825 rdev->rswitch->port_ok &= ~(1 << portnum); in rio_inb_pwrite_handler()
67 rdev->rswitch->add_entry = tsi500_route_add_entry; in tsi500_switch_init()68 rdev->rswitch->get_entry = tsi500_route_get_entry; in tsi500_switch_init()69 rdev->rswitch->clr_table = NULL; in tsi500_switch_init()70 rdev->rswitch->set_domain = NULL; in tsi500_switch_init()71 rdev->rswitch->get_domain = NULL; in tsi500_switch_init()72 rdev->rswitch->em_init = NULL; in tsi500_switch_init()73 rdev->rswitch->em_handle = NULL; in tsi500_switch_init()
135 rdev->rswitch->add_entry = tsi568_route_add_entry; in tsi568_switch_init()136 rdev->rswitch->get_entry = tsi568_route_get_entry; in tsi568_switch_init()137 rdev->rswitch->clr_table = tsi568_route_clr_table; in tsi568_switch_init()138 rdev->rswitch->set_domain = NULL; in tsi568_switch_init()139 rdev->rswitch->get_domain = NULL; in tsi568_switch_init()140 rdev->rswitch->em_init = tsi568_em_init; in tsi568_switch_init()141 rdev->rswitch->em_handle = NULL; in tsi568_switch_init()
124 rdev->rswitch->add_entry = idtcps_route_add_entry; in idtcps_switch_init()125 rdev->rswitch->get_entry = idtcps_route_get_entry; in idtcps_switch_init()126 rdev->rswitch->clr_table = idtcps_route_clr_table; in idtcps_switch_init()127 rdev->rswitch->set_domain = idtcps_set_domain; in idtcps_switch_init()128 rdev->rswitch->get_domain = idtcps_get_domain; in idtcps_switch_init()129 rdev->rswitch->em_init = NULL; in idtcps_switch_init()130 rdev->rswitch->em_handle = NULL; in idtcps_switch_init()
282 route_port = rdev->rswitch->route_table[regval]; in tsi57x_em_handler()298 rdev->rswitch->add_entry = tsi57x_route_add_entry; in tsi57x_switch_init()299 rdev->rswitch->get_entry = tsi57x_route_get_entry; in tsi57x_switch_init()300 rdev->rswitch->clr_table = tsi57x_route_clr_table; in tsi57x_switch_init()301 rdev->rswitch->set_domain = tsi57x_set_domain; in tsi57x_switch_init()302 rdev->rswitch->get_domain = tsi57x_get_domain; in tsi57x_switch_init()303 rdev->rswitch->em_init = tsi57x_em_init; in tsi57x_switch_init()304 rdev->rswitch->em_handle = tsi57x_em_handler; in tsi57x_switch_init()
408 rdev->rswitch->add_entry = idtg2_route_add_entry; in idtg2_switch_init()409 rdev->rswitch->get_entry = idtg2_route_get_entry; in idtg2_switch_init()410 rdev->rswitch->clr_table = idtg2_route_clr_table; in idtg2_switch_init()411 rdev->rswitch->set_domain = idtg2_set_domain; in idtg2_switch_init()412 rdev->rswitch->get_domain = idtg2_get_domain; in idtg2_switch_init()413 rdev->rswitch->em_init = idtg2_em_init; in idtg2_switch_init()414 rdev->rswitch->em_handle = idtg2_em_handler; in idtg2_switch_init()415 rdev->rswitch->sw_sysfs = idtg2_sysfs; in idtg2_switch_init()
180 struct rio_switch rswitch[0]; /* RIO switch info */ member186 #define sw_to_rio_dev(n) container_of(n, struct rio_dev, rswitch[0])