• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/rapidio/

Lines Matching refs:hopcount

68  * @hopcount: Hopcount to device
73 static u16 rio_get_device_id(struct rio_mport *port, u16 destid, u8 hopcount)
77 rio_mport_read_config_32(port, destid, hopcount, RIO_DID_CSR, &result);
86 * @hopcount: Hopcount to device
91 static void rio_set_device_id(struct rio_mport *port, u16 destid, u8 hopcount, u16 did)
93 rio_mport_write_config_32(port, destid, hopcount, RIO_DID_CSR,
316 * @hopcount: Number of hops to reach the target
324 u8 hopcount, u8 port_num) {
332 pr_debug("rio_enable_rx_tx_port(local = %d, destid = %d, hopcount = "
333 "%d, port_num = %d)\n", local, destid, hopcount, port_num);
335 ext_ftr_ptr = rio_mport_get_physefb(port, local, destid, hopcount);
342 if (rio_mport_read_config_32(port, destid, hopcount,
361 if (rio_mport_write_config_32(port, destid, hopcount,
374 * @hopcount: Current hopcount
387 u8 hopcount, int do_enum)
399 rio_mport_read_config_32(port, destid, hopcount, RIO_DEV_ID_CAR,
403 rio_mport_read_config_32(port, destid, hopcount, RIO_DEV_INFO_CAR,
405 rio_mport_read_config_32(port, destid, hopcount, RIO_ASM_ID_CAR,
409 rio_mport_read_config_32(port, destid, hopcount, RIO_ASM_INFO_CAR,
412 rio_mport_read_config_32(port, destid, hopcount, RIO_PEF_CAR,
417 hopcount);
420 hopcount, RIO_EFB_ERR_MGMNT);
423 rio_mport_read_config_32(port, destid, hopcount, RIO_SRC_OPS_CAR,
425 rio_mport_read_config_32(port, destid, hopcount, RIO_DST_OPS_CAR,
430 rio_set_device_id(port, destid, hopcount, next_destid);
435 rdev->destid = rio_get_device_id(port, destid, hopcount);
442 rio_mport_read_config_32(port, destid, hopcount,
448 rswitch->hopcount = hopcount;
466 rdev->rswitch->clr_table(port, destid, hopcount,
474 rio_enable_rx_tx_port(port, 0, destid, hopcount, 0);
514 * @hopcount: Hopcount to reach switch
523 rio_sport_is_active(struct rio_mport *port, u16 destid, u8 hopcount, int sport)
528 ext_ftr_ptr = rio_mport_get_efb(port, 0, destid, hopcount, 0);
531 rio_mport_read_config_32(port, destid, hopcount,
539 ext_ftr_ptr = rio_mport_get_efb(port, 0, destid, hopcount,
544 rio_mport_read_config_32(port, destid, hopcount,
556 * @hopcount: Hopcount to reach switch
563 rio_lock_device(struct rio_mport *port, u16 destid, u8 hopcount, int wait_ms)
569 rio_mport_write_config_32(port, destid, hopcount,
571 rio_mport_read_config_32(port, destid, hopcount,
577 destid, hopcount);
586 hopcount,
590 hopcount,
601 * @hopcount: Hopcount to reach switch
606 rio_unlock_device(struct rio_mport *port, u16 destid, u8 hopcount)
612 hopcount,
615 rio_mport_read_config_32(port, destid, hopcount,
619 destid, hopcount);
650 rswitch->hopcount, 1000);
656 rswitch->hopcount, table,
659 rio_unlock_device(mport, rswitch->destid, rswitch->hopcount);
688 rswitch->hopcount, 1000);
694 rswitch->hopcount, table,
697 rio_unlock_device(mport, rswitch->destid, rswitch->hopcount);
705 * @hopcount: Number of hops to the device
710 static u16 rio_get_host_deviceid_lock(struct rio_mport *port, u8 hopcount)
714 rio_mport_read_config_32(port, RIO_ANY_DESTID(port->sys_size), hopcount,
724 * @hopcount: Number of hops to the device
729 rio_get_swpinfo_inport(struct rio_mport *mport, u16 destid, u8 hopcount)
733 rio_mport_read_config_32(mport, destid, hopcount, RIO_SWP_INFO_CAR,
743 * @hopcount: Number of hops to the device
748 u8 hopcount)
752 rio_mport_read_config_32(mport, destid, hopcount, RIO_SWP_INFO_CAR,
777 * @hopcount: Number of hops into the network
783 u8 hopcount)
794 if (rio_get_host_deviceid_lock(port, hopcount) == port->host_deviceid) {
806 hopcount,
808 while ((tmp = rio_get_host_deviceid_lock(port, hopcount))
814 hopcount,
819 if (rio_get_host_deviceid_lock(port, hopcount) > port->host_deviceid) {
827 hopcount, 1);
837 RIO_ANY_DESTID(port->sys_size), hopcount);
852 hopcount);
861 hopcount, port_num);
871 (port, RIO_ANY_DESTID(port->sys_size), hopcount,
882 if (rio_enum_peer(net, port, hopcount + 1) < 0)
959 * @hopcount: Number of hops into the network
966 u8 hopcount)
974 if ((rdev = rio_setup_device(net, port, destid, hopcount, 0))) {
986 num_ports = rio_get_swpinfo_tports(port, destid, hopcount);
991 if (rio_get_swpinfo_inport(port, destid, hopcount) ==
996 (port, destid, hopcount, port_num)) {
1001 rio_lock_device(port, destid, hopcount, 1000);
1014 rio_unlock_device(port, destid, hopcount);
1016 (net, port, ndestid, hopcount + 1) < 0)
1112 rswitch->destid, rswitch->hopcount);
1224 rdev->rswitch->hopcount, 1000);
1237 rdev->rswitch->hopcount);