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