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()
501 static u16 rio_get_host_deviceid_lock(struct rio_mport *port, u8 hopcount) in rio_get_host_deviceid_lock() argument
505 rio_mport_read_config_32(port, RIO_ANY_DESTID(port->sys_size), hopcount, in rio_get_host_deviceid_lock()
523 u8 hopcount, struct rio_dev *prev, int prev_port) in rio_enum_peer() argument
530 RIO_ANY_DESTID(port->sys_size), hopcount)) { in rio_enum_peer()
535 if (rio_get_host_deviceid_lock(port, hopcount) == port->host_deviceid) { in rio_enum_peer()
542 hopcount, RIO_COMPONENT_TAG_CSR, &regval); in rio_enum_peer()
559 hopcount, in rio_enum_peer()
561 while ((tmp = rio_get_host_deviceid_lock(port, hopcount)) in rio_enum_peer()
567 hopcount, in rio_enum_peer()
572 if (rio_get_host_deviceid_lock(port, hopcount) > port->host_deviceid) { in rio_enum_peer()
580 hopcount, 1); in rio_enum_peer()
620 hopcount, port_num); in rio_enum_peer()
633 hopcount, port_num); in rio_enum_peer()
639 if (rio_enum_peer(net, port, hopcount + 1, in rio_enum_peer()
727 u8 hopcount, struct rio_dev *prev, int prev_port) in rio_disc_peer() argument
734 if ((rdev = rio_setup_device(net, port, destid, hopcount, 0))) { in rio_disc_peer()
760 rio_lock_device(port, destid, hopcount, 1000); in rio_disc_peer()
775 rio_unlock_device(port, destid, hopcount); in rio_disc_peer()
777 hopcount + 1, rdev, port_num) < 0) in rio_disc_peer()
1031 rdev->hopcount, 1000); in rio_build_route_tables()
1041 rio_unlock_device(net->hport, rdev->destid, rdev->hopcount); in rio_build_route_tables()