• 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:destid

67  * @destid: Destination ID of 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);
85 * @destid: Destination ID of 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,
190 /* Set master port destid and init destid ctr */
315 * @destid: Destination ID of the device to check host bit
323 int local, u16 destid,
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,
373 * @destid: Current destination ID
386 struct rio_mport *port, u16 destid,
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,
416 rdev->phys_efptr = rio_mport_get_physefb(port, 0, destid,
419 rdev->em_efptr = rio_mport_get_feature(port, 0, destid,
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);
431 rdev->destid = next_destid++;
435 rdev->destid = rio_get_device_id(port, destid, hopcount);
438 rdev->destid = RIO_INVALID_DESTID;
442 rio_mport_read_config_32(port, destid, hopcount,
449 rswitch->destid = destid;
466 rdev->rswitch->clr_table(port, destid, hopcount,
474 rio_enable_rx_tx_port(port, 0, destid, hopcount, 0);
477 rdev->destid);
513 * @destid: Associated destination ID for 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,
555 * @destid: Destination ID for device/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);
585 rio_mport_write_config_32(port, destid,
589 rio_mport_read_config_32(port, destid,
600 * @destid: Destination ID for device/switch
606 rio_unlock_device(struct rio_mport *port, u16 destid, u8 hopcount)
611 rio_mport_write_config_32(port, destid,
615 rio_mport_read_config_32(port, destid, hopcount,
619 destid, hopcount);
649 rc = rio_lock_device(mport, rswitch->destid,
655 rc = rswitch->add_entry(mport, rswitch->destid,
659 rio_unlock_device(mport, rswitch->destid, rswitch->hopcount);
687 rc = rio_lock_device(mport, rswitch->destid,
693 rc = rswitch->get_entry(mport, rswitch->destid,
697 rio_unlock_device(mport, rswitch->destid, rswitch->hopcount);
723 * @destid: Destination ID associated with the switch
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,
742 * @destid: Destination ID associated with the switch
747 static u8 rio_get_swpinfo_tports(struct rio_mport *mport, u16 destid,
752 rio_mport_read_config_32(mport, destid, hopcount, RIO_SWP_INFO_CAR,
791 u16 destid;
842 for (destid = 0; destid < next_destid; destid++) {
843 if (destid == port->host_deviceid)
846 destid, sw_inport, 0);
847 rdev->rswitch->route_table[destid] = sw_inport;
887 for (destid = cur_destid;
888 destid < next_destid; destid++) {
889 if (destid == port->host_deviceid)
893 destid,
897 route_table[destid] =
930 rdev->rswitch->destid = sw_destid;
958 * @destid: Current destination ID in network
965 rio_disc_peer(struct rio_net *net, struct rio_mport *port, u16 destid,
974 if ((rdev = rio_setup_device(net, port, destid, hopcount, 0))) {
983 /* Associated destid is how we accessed this switch */
984 rdev->rswitch->destid = destid;
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);
1095 u16 destid;
1099 destid = (rio_is_switch(rdev))?rdev->rswitch->destid:rdev->destid;
1106 if (RIO_INVALID_ROUTE == rswitch->route_table[destid]) {
1107 /* Skip if destid ends in empty switch*/
1108 if (rswitch->destid == destid)
1112 rswitch->destid, rswitch->hopcount);
1116 RIO_GLOBAL_TABLE, destid,
1118 rswitch->route_table[destid] = sport;
1223 rio_lock_device(rdev->net->hport, rdev->rswitch->destid,
1236 rdev->rswitch->destid,