Lines Matching refs:hopcount
159 static u16 rio_get_device_id(struct rio_mport *port, u16 destid, u8 hopcount) in rio_get_device_id() argument
163 rio_mport_read_config_32(port, destid, hopcount, RIO_DID_CSR, &result); in rio_get_device_id()
177 static void rio_set_device_id(struct rio_mport *port, u16 destid, u8 hopcount, u16 did) in rio_set_device_id() argument
179 rio_mport_write_config_32(port, destid, hopcount, RIO_DID_CSR, in rio_set_device_id()
324 u8 hopcount, int do_enum) in rio_setup_device() argument
334 if (rio_mport_read_config_32(port, destid, hopcount, in rio_setup_device()
339 rio_mport_read_config_32(port, destid, hopcount, in rio_setup_device()
352 rio_mport_read_config_32(port, destid, hopcount, RIO_DEV_ID_CAR, in rio_setup_device()
356 rio_mport_read_config_32(port, destid, hopcount, RIO_DEV_INFO_CAR, in rio_setup_device()
358 rio_mport_read_config_32(port, destid, hopcount, RIO_ASM_ID_CAR, in rio_setup_device()
362 rio_mport_read_config_32(port, destid, hopcount, RIO_ASM_INFO_CAR, in rio_setup_device()
368 hopcount, &rdev->phys_rmap); in rio_setup_device()
373 hopcount, RIO_EFB_ERR_MGMNT); in rio_setup_device()
376 hopcount, RIO_EFB_ERR_MGMNT_HS); in rio_setup_device()
379 rio_mport_read_config_32(port, destid, hopcount, RIO_SRC_OPS_CAR, in rio_setup_device()
381 rio_mport_read_config_32(port, destid, hopcount, RIO_DST_OPS_CAR, in rio_setup_device()
390 rio_mport_write_config_32(port, destid, hopcount, in rio_setup_device()
395 rio_mport_read_config_32(port, destid, hopcount, in rio_setup_device()
402 rio_set_device_id(port, destid, hopcount, next_destid); in rio_setup_device()
406 rdev->destid = rio_get_device_id(port, destid, hopcount); in rio_setup_device()
408 rdev->hopcount = 0xff; in rio_setup_device()
414 rdev->hopcount = hopcount; in rio_setup_device()
439 rio_enable_rx_tx_port(port, 0, destid, hopcount, 0); in rio_setup_device()
505 static u16 rio_get_host_deviceid_lock(struct rio_mport *port, u8 hopcount) in rio_get_host_deviceid_lock() argument
509 rio_mport_read_config_32(port, RIO_ANY_DESTID(port->sys_size), hopcount, in rio_get_host_deviceid_lock()
527 u8 hopcount, struct rio_dev *prev, int prev_port) in rio_enum_peer() argument
534 RIO_ANY_DESTID(port->sys_size), hopcount)) { in rio_enum_peer()
539 if (rio_get_host_deviceid_lock(port, hopcount) == port->host_deviceid) { in rio_enum_peer()
546 hopcount, RIO_COMPONENT_TAG_CSR, ®val); in rio_enum_peer()
563 hopcount, in rio_enum_peer()
565 while ((tmp = rio_get_host_deviceid_lock(port, hopcount)) in rio_enum_peer()
571 hopcount, in rio_enum_peer()
576 if (rio_get_host_deviceid_lock(port, hopcount) > port->host_deviceid) { in rio_enum_peer()
584 hopcount, 1); in rio_enum_peer()
624 hopcount, port_num); in rio_enum_peer()
637 hopcount, port_num); in rio_enum_peer()
643 if (rio_enum_peer(net, port, hopcount + 1, in rio_enum_peer()
731 u8 hopcount, struct rio_dev *prev, int prev_port) in rio_disc_peer() argument
738 if ((rdev = rio_setup_device(net, port, destid, hopcount, 0))) { in rio_disc_peer()
764 rio_lock_device(port, destid, hopcount, 1000); in rio_disc_peer()
779 rio_unlock_device(port, destid, hopcount); in rio_disc_peer()
781 hopcount + 1, rdev, port_num) < 0) in rio_disc_peer()
1035 rdev->hopcount, 1000); in rio_build_route_tables()
1045 rio_unlock_device(net->hport, rdev->destid, rdev->hopcount); in rio_build_route_tables()