Lines Matching refs:destid

72 static u16 rio_get_device_id(struct rio_mport *port, u16 destid, u8 hopcount)  in rio_get_device_id()  argument
76 rio_mport_read_config_32(port, destid, hopcount, RIO_DID_CSR, &result); in rio_get_device_id()
90 static void rio_set_device_id(struct rio_mport *port, u16 destid, u8 hopcount, u16 did) in rio_set_device_id() argument
92 rio_mport_write_config_32(port, destid, hopcount, RIO_DID_CSR, in rio_set_device_id()
310 int local, u16 destid, in rio_enable_rx_tx_port() argument
320 "%d, port_num = %d)\n", local, destid, hopcount, port_num); in rio_enable_rx_tx_port()
322 ext_ftr_ptr = rio_mport_get_physefb(port, local, destid, hopcount); in rio_enable_rx_tx_port()
329 if (rio_mport_read_config_32(port, destid, hopcount, in rio_enable_rx_tx_port()
348 if (rio_mport_write_config_32(port, destid, hopcount, in rio_enable_rx_tx_port()
373 struct rio_mport *port, u16 destid, in rio_setup_device() argument
384 if (rio_mport_read_config_32(port, destid, hopcount, in rio_setup_device()
389 rio_mport_read_config_32(port, destid, hopcount, in rio_setup_device()
404 rio_mport_read_config_32(port, destid, hopcount, RIO_DEV_ID_CAR, in rio_setup_device()
408 rio_mport_read_config_32(port, destid, hopcount, RIO_DEV_INFO_CAR, in rio_setup_device()
410 rio_mport_read_config_32(port, destid, hopcount, RIO_ASM_ID_CAR, in rio_setup_device()
414 rio_mport_read_config_32(port, destid, hopcount, RIO_ASM_INFO_CAR, in rio_setup_device()
419 rdev->phys_efptr = rio_mport_get_physefb(port, 0, destid, in rio_setup_device()
422 rdev->em_efptr = rio_mport_get_feature(port, 0, destid, in rio_setup_device()
426 rio_mport_read_config_32(port, destid, hopcount, RIO_SRC_OPS_CAR, in rio_setup_device()
428 rio_mport_read_config_32(port, destid, hopcount, RIO_DST_OPS_CAR, in rio_setup_device()
437 rio_mport_write_config_32(port, destid, hopcount, in rio_setup_device()
441 rio_mport_read_config_32(port, destid, hopcount, in rio_setup_device()
448 rio_set_device_id(port, destid, hopcount, next_destid); in rio_setup_device()
449 rdev->destid = next_destid++; in rio_setup_device()
453 rdev->destid = rio_get_device_id(port, destid, hopcount); in rio_setup_device()
460 rdev->destid = destid; in rio_setup_device()
483 rswitch->clr_table(port, destid, hopcount, in rio_setup_device()
491 rio_enable_rx_tx_port(port, 0, destid, hopcount, 0); in rio_setup_device()
494 rdev->destid); in rio_setup_device()
539 rio_sport_is_active(struct rio_mport *port, u16 destid, u8 hopcount, int sport) in rio_sport_is_active() argument
544 ext_ftr_ptr = rio_mport_get_efb(port, 0, destid, hopcount, 0); in rio_sport_is_active()
547 rio_mport_read_config_32(port, destid, hopcount, in rio_sport_is_active()
555 ext_ftr_ptr = rio_mport_get_efb(port, 0, destid, hopcount, in rio_sport_is_active()
560 rio_mport_read_config_32(port, destid, hopcount, in rio_sport_is_active()
579 rio_lock_device(struct rio_mport *port, u16 destid, u8 hopcount, int wait_ms) in rio_lock_device() argument
585 rio_mport_write_config_32(port, destid, hopcount, in rio_lock_device()
587 rio_mport_read_config_32(port, destid, hopcount, in rio_lock_device()
593 destid, hopcount); in rio_lock_device()
601 rio_mport_write_config_32(port, destid, in rio_lock_device()
605 rio_mport_read_config_32(port, destid, in rio_lock_device()
622 rio_unlock_device(struct rio_mport *port, u16 destid, u8 hopcount) in rio_unlock_device() argument
627 rio_mport_write_config_32(port, destid, in rio_unlock_device()
631 rio_mport_read_config_32(port, destid, hopcount, in rio_unlock_device()
635 destid, hopcount); in rio_unlock_device()
664 rc = rio_lock_device(rdev->net->hport, rdev->destid, in rio_route_add_entry()
670 rc = rdev->rswitch->add_entry(rdev->net->hport, rdev->destid, in rio_route_add_entry()
674 rio_unlock_device(rdev->net->hport, rdev->destid, in rio_route_add_entry()
702 rc = rio_lock_device(rdev->net->hport, rdev->destid, in rio_route_get_entry()
708 rc = rdev->rswitch->get_entry(rdev->net->hport, rdev->destid, in rio_route_get_entry()
712 rio_unlock_device(rdev->net->hport, rdev->destid, in rio_route_get_entry()
755 u16 destid; in rio_enum_peer() local
826 for (destid = 0; destid < next_destid; destid++) { in rio_enum_peer()
827 if (destid == port->host_deviceid) in rio_enum_peer()
830 destid, sw_inport, 0); in rio_enum_peer()
831 rdev->rswitch->route_table[destid] = sw_inport; in rio_enum_peer()
871 for (destid = cur_destid; in rio_enum_peer()
872 destid < next_destid; destid++) { in rio_enum_peer()
873 if (destid == port->host_deviceid) in rio_enum_peer()
877 destid, in rio_enum_peer()
881 route_table[destid] = in rio_enum_peer()
914 rdev->destid = sw_destid; in rio_enum_peer()
952 rio_disc_peer(struct rio_net *net, struct rio_mport *port, u16 destid, in rio_disc_peer() argument
960 if ((rdev = rio_setup_device(net, port, destid, hopcount, 0))) { in rio_disc_peer()
971 rdev->destid = destid; in rio_disc_peer()
984 (port, destid, hopcount, port_num)) { in rio_disc_peer()
989 rio_lock_device(port, destid, hopcount, 1000); in rio_disc_peer()
1004 rio_unlock_device(port, destid, hopcount); in rio_disc_peer()
1085 u16 destid; in rio_update_route_tables() local
1089 destid = rdev->destid; in rio_update_route_tables()
1096 if (RIO_INVALID_ROUTE == rswitch->route_table[destid]) { in rio_update_route_tables()
1100 if (swrdev->destid == destid) in rio_update_route_tables()
1107 RIO_GLOBAL_TABLE, destid, in rio_update_route_tables()
1109 rswitch->route_table[destid] = sport; in rio_update_route_tables()
1218 rio_lock_device(rdev->net->hport, rdev->destid, in rio_build_route_tables()
1230 rdev->destid, in rio_build_route_tables()