Home
last modified time | relevance | path

Searched refs:portnum (Results 1 – 25 of 66) sorted by relevance

123

/drivers/usb/misc/
Dehset.c35 static int ehset_prepare_port_for_testing(struct usb_device *hub_udev, u16 portnum) in ehset_prepare_port_for_testing() argument
49 portnum, NULL, 0, 1000, GFP_KERNEL); in ehset_prepare_port_for_testing()
62 portnum, NULL, 0, 1000, GFP_KERNEL); in ehset_prepare_port_for_testing()
74 u8 portnum = dev->portnum; in ehset_probe() local
79 ret = ehset_prepare_port_for_testing(hub_udev, portnum); in ehset_probe()
84 (USB_TEST_SE0_NAK << 8) | portnum, in ehset_probe()
88 ret = ehset_prepare_port_for_testing(hub_udev, portnum); in ehset_probe()
93 (USB_TEST_J << 8) | portnum, NULL, 0, in ehset_probe()
97 ret = ehset_prepare_port_for_testing(hub_udev, portnum); in ehset_probe()
102 (USB_TEST_K << 8) | portnum, NULL, 0, in ehset_probe()
[all …]
Dlvstest.c27 int portnum; member
54 udev = usb_alloc_dev(hdev, hdev->bus, lvs->portnum); in create_lvs_device()
116 ret = lvs_rh_set_port_feature(hdev, lvs->portnum, in u3_entry_store()
145 ret = lvs_rh_clear_port_feature(hdev, lvs->portnum, in u3_exit_store()
167 ret = lvs_rh_set_port_feature(hdev, lvs->portnum, in hot_reset_store()
186 ret = lvs_rh_set_port_feature(hdev, lvs->portnum, in warm_reset_store()
215 ret = lvs_rh_set_port_feature(hdev, lvs->portnum | (val << 8), in u2_timeout_store()
244 ret = lvs_rh_set_port_feature(hdev, lvs->portnum | (val << 8), in u1_timeout_store()
302 lvs->portnum | USB_SS_PORT_LS_COMP_MOD << 3, in enable_compliance_store()
366 lvs->portnum = i; in lvs_rh_work()
/drivers/usb/host/
Dehci-sysfs.c42 int portnum, new_owner; in companion_store() local
46 if (sscanf(buf, "%d", &portnum) != 1) in companion_store()
48 if (portnum < 0) { in companion_store()
49 portnum = - portnum; in companion_store()
52 if (portnum <= 0 || portnum > HCS_N_PORTS(ehci->hcs_params)) in companion_store()
54 portnum--; in companion_store()
56 set_bit(portnum, &ehci->companion_ports); in companion_store()
58 clear_bit(portnum, &ehci->companion_ports); in companion_store()
59 set_owner(ehci, portnum, new_owner); in companion_store()
Dxhci-trace.h209 __field(u8, portnum)
220 __entry->portnum = vdev->udev->portnum;
227 __entry->portnum, __entry->level, __entry->slot_id
512 TP_PROTO(u32 portnum, u32 portsc),
513 TP_ARGS(portnum, portsc),
515 __field(u32, portnum)
519 __entry->portnum = portnum;
523 __entry->portnum,
529 TP_PROTO(u32 portnum, u32 portsc),
530 TP_ARGS(portnum, portsc)
[all …]
Dxen-hcd.c148 static void xenhcd_set_connect_state(struct xenhcd_info *info, int portnum) in xenhcd_set_connect_state() argument
152 port = portnum - 1; in xenhcd_set_connect_state()
184 static int xenhcd_rhport_connect(struct xenhcd_info *info, __u8 portnum, in xenhcd_rhport_connect() argument
189 if (portnum < 1 || portnum > info->rh_numports) in xenhcd_rhport_connect()
192 port = portnum - 1; in xenhcd_rhport_connect()
209 xenhcd_set_connect_state(info, portnum); in xenhcd_rhport_connect()
218 static void xenhcd_rhport_suspend(struct xenhcd_info *info, int portnum) in xenhcd_rhport_suspend() argument
222 port = portnum - 1; in xenhcd_rhport_suspend()
230 static void xenhcd_rhport_resume(struct xenhcd_info *info, int portnum) in xenhcd_rhport_resume() argument
234 port = portnum - 1; in xenhcd_rhport_resume()
[all …]
Dxhci-hub.c1040 u32 portnum; in xhci_get_usb3_port_status() local
1046 portnum = port->hcd_portnum; in xhci_get_usb3_port_status()
1073 if (bus_state->port_remote_wakeup & (1 << portnum)) { in xhci_get_usb3_port_status()
1074 bus_state->port_remote_wakeup &= ~(1 << portnum); in xhci_get_usb3_port_status()
1075 usb_hcd_end_port_resume(&hcd->self, portnum); in xhci_get_usb3_port_status()
1077 bus_state->suspended_ports &= ~(1 << portnum); in xhci_get_usb3_port_status()
1081 xhci_del_comp_mod_timer(xhci, portsc, portnum); in xhci_get_usb3_port_status()
1089 u32 portnum; in xhci_get_usb2_port_status() local
1094 portnum = port->hcd_portnum; in xhci_get_usb2_port_status()
1106 if (bus_state->suspended_ports & (1 << portnum)) { in xhci_get_usb2_port_status()
[all …]
Dehci-hub.c537 static void set_owner(struct ehci_hcd *ehci, int portnum, int new_owner) in set_owner() argument
543 status_reg = &ehci->regs->port_status[portnum]; in set_owner()
1187 static void ehci_relinquish_port(struct usb_hcd *hcd, int portnum) in ehci_relinquish_port() argument
1193 set_owner(ehci, --portnum, PORT_OWNER); in ehci_relinquish_port()
1196 static int ehci_port_handed_over(struct usb_hcd *hcd, int portnum) in ehci_port_handed_over() argument
1203 reg = &ehci->regs->port_status[portnum - 1]; in ehci_port_handed_over()
1207 static int ehci_port_power(struct ehci_hcd *ehci, int portnum, bool enable) in ehci_port_power() argument
1210 u32 __iomem *status_reg = &ehci->regs->port_status[portnum]; in ehci_port_power()
1219 hcd->driver->port_power(hcd, portnum, enable); in ehci_port_power()
Dehci-xilinx-of.c38 static int ehci_xilinx_port_handed_over(struct usb_hcd *hcd, int portnum) in ehci_xilinx_port_handed_over() argument
40 dev_warn(hcd->self.controller, "port %d cannot be enabled\n", portnum); in ehci_xilinx_port_handed_over()
/drivers/phy/broadcom/
Dphy-brcm-sata.c62 int portnum; member
208 return priv->ctrl_base + (port->portnum * size); in brcm_sata_ctrl_base()
219 bank += (port->portnum * SATA_PCB_REG_40NM_SPACE_SIZE); in brcm_sata_phy_wr()
221 pcb_base += (port->portnum * SATA_PCB_REG_28NM_SPACE_SIZE); in brcm_sata_phy_wr()
235 bank += (port->portnum * SATA_PCB_REG_40NM_SPACE_SIZE); in brcm_sata_phy_rd()
237 pcb_base += (port->portnum * SATA_PCB_REG_28NM_SPACE_SIZE); in brcm_sata_phy_rd()
264 dev_info(priv->dev, "enabling SSC on port%d\n", port->portnum); in brcm_stb_sata_ssc_init()
479 dev_err(dev, "port%d PLL did not lock\n", port->portnum); in brcm_ns2_sata_init()
483 dev_dbg(dev, "port%d initialized\n", port->portnum); in brcm_ns2_sata_init()
495 if (port->portnum == 0) in brcm_nsp_sata_init()
[all …]
/drivers/message/fusion/
Dmptfc.c682 mptfc_display_port_link_speed(MPT_ADAPTER *ioc, int portnum, FCPortPage0_t *pp0dest) in mptfc_display_port_link_speed() argument
687 if (portnum >= 2) in mptfc_display_port_link_speed()
690 old_speed = ioc->fc_link_speed[portnum]; in mptfc_display_port_link_speed()
714 ioc->fc_link_speed[portnum] = new_speed; in mptfc_display_port_link_speed()
731 mptfc_GetFcPortPage0(MPT_ADAPTER *ioc, int portnum) in mptfc_GetFcPortPage0() argument
743 if (portnum > 1) in mptfc_GetFcPortPage0()
755 cfg.pageAddr = portnum; in mptfc_GetFcPortPage0()
777 pp0dest = &ioc->fc_port_page0[portnum]; in mptfc_GetFcPortPage0()
818 mptfc_display_port_link_speed(ioc, portnum, pp0dest); in mptfc_GetFcPortPage0()
829 mptfc_WriteFcPortPage1(MPT_ADAPTER *ioc, int portnum) in mptfc_WriteFcPortPage1() argument
[all …]
/drivers/usb/core/
Dledtrig-usbport.c26 int portnum; member
50 usb_dev->portnum == port->portnum) in usbport_trig_usb_dev_observed()
185 const char *hub_name, int portnum) in usbport_trig_add_port() argument
200 port->portnum = portnum; in usbport_trig_add_port()
202 portnum); in usbport_trig_add_port()
210 snprintf(port->port_name, len, "%s-port%d", hub_name, portnum); in usbport_trig_add_port()
Dusb-acpi.c207 port_dev->portnum); in usb_acpi_get_companion_for_port()
210 udev->portnum); in usb_acpi_get_companion_for_port()
215 port1 = port_dev->portnum; in usb_acpi_get_companion_for_port()
269 port_dev = hub->ports[udev->portnum - 1]; in usb_acpi_find_companion_for_device()
Dport.c54 int port1 = port_dev->portnum; in disable_show()
106 int port1 = port_dev->portnum; in disable_store()
356 int port1 = port_dev->portnum; in usb_port_runtime_resume()
414 int port1 = port_dev->portnum; in usb_port_runtime_suspend()
671 upstream = parent_hub->ports[hdev->portnum - 1]; in find_and_link_peer()
734 port_dev->portnum = port1; in usb_hub_create_port_device()
Dhub.c720 unsigned int portnum) in usb_wakeup_notification() argument
730 port_dev = hub->ports[portnum - 1]; in usb_wakeup_notification()
734 set_bit(portnum, hub->wakeup_bits); in usb_wakeup_notification()
1033 set_bit(udev->portnum, hub->removed_bits); in usb_remove_device()
1034 hub_port_logical_disconnect(hub, udev->portnum); in usb_remove_device()
2055 return !!hub->ports[udev->portnum - 1]->port_owner; in usb_device_is_owned()
2074 port_dev = hub->ports[udev->portnum - 1]; in update_port_device_state()
2280 port1 = udev->portnum; in usb_disconnect()
2376 unsigned port1 = udev->portnum; in usb_enumerate_device_otg()
2495 u8 port = udev->portnum; in set_usb_port_removable()
[all …]
/drivers/net/ethernet/netronome/nfp/flower/
Dcmsg.c87 msg->portnum = cpu_to_be32(repr->dst->u.port_info.port_id); in nfp_flower_cmsg_portmod()
113 msg->portnum = cpu_to_be32(repr->dst->u.port_info.port_id); in nfp_flower_cmsg_portreify()
135 app_priv->mtu_conf.portnum != be32_to_cpu(msg->portnum) || in nfp_flower_process_mtu_ack()
162 netdev = nfp_app_dev_get(app, be32_to_cpu(msg->portnum), NULL); in nfp_flower_cmsg_portmod_rx()
166 be32_to_cpu(msg->portnum)); in nfp_flower_cmsg_portmod_rx()
195 exists = !!nfp_app_dev_get(app, be32_to_cpu(msg->portnum), NULL); in nfp_flower_cmsg_portreify_rx()
199 be32_to_cpu(msg->portnum)); in nfp_flower_cmsg_portreify_rx()
/drivers/rapidio/
Drio.c1174 int rc, portnum; in rio_inb_pwrite_handler() local
1223 portnum = pw_msg->em.is_port & 0xFF; in rio_inb_pwrite_handler()
1235 if (rio_chk_dev_route(rdev, &rdev, &portnum)) { in rio_inb_pwrite_handler()
1257 rdev->rswitch->ops->em_handle(rdev, portnum); in rio_inb_pwrite_handler()
1259 rio_read_config_32(rdev, RIO_DEV_PORT_N_ERR_STS_CSR(rdev, portnum), in rio_inb_pwrite_handler()
1261 pr_debug("RIO_PW: SP%d_ERR_STS_CSR=0x%08x\n", portnum, err_status); in rio_inb_pwrite_handler()
1265 if (!(rdev->rswitch->port_ok & (1 << portnum))) { in rio_inb_pwrite_handler()
1266 rdev->rswitch->port_ok |= (1 << portnum); in rio_inb_pwrite_handler()
1267 rio_set_port_lockout(rdev, portnum, 0); in rio_inb_pwrite_handler()
1270 rio_name(rdev), portnum); in rio_inb_pwrite_handler()
[all …]
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_hw.c340 QLCWR32(adapter, id_reg, adapter->portnum); in qlcnic_pcie_sem_lock()
447 word = QLCNIC_MAC_EVENT | ((u64)adapter->portnum << 16); in qlcnic_82xx_sre_macaddr_change()
606 ((u64)adapter->portnum << 16); in qlcnic_82xx_nic_set_promisc()
709 ((u64) adapter->portnum << 16) | ((u64) 0x1 << 32)); in qlcnic_set_fw_loopback()
778 ((u64) adapter->portnum << 16)); in qlcnic_82xx_set_rx_coalesce()
830 word = QLCNIC_H2C_OPCODE_CONFIG_HW_LRO | ((u64)adapter->portnum << 16); in qlcnic_82xx_config_hw_lro()
865 ((u64)adapter->portnum << 16); in qlcnic_config_bridged_mode()
901 word = QLCNIC_H2C_OPCODE_CONFIG_RSS | ((u64)adapter->portnum << 16); in qlcnic_82xx_config_rss()
946 word = QLCNIC_H2C_OPCODE_CONFIG_IPADDR | ((u64)adapter->portnum << 16); in qlcnic_82xx_config_ipaddr()
968 word = QLCNIC_H2C_OPCODE_GET_LINKEVENT | ((u64)adapter->portnum << 16); in qlcnic_82xx_linkevent_request()
[all …]
Dqlcnic_main.c2520 adapter->portnum = adapter->ahw->pci_func; in qlcnic_probe()
2552 adapter->portnum = adapter->ahw->pci_func; in qlcnic_probe()
2586 if (adapter->portnum == 0) { in qlcnic_probe()
2620 if (adapter->portnum == 0) in qlcnic_probe()
3147 val = adapter->portnum & 0xf; in qlcnic_idc_debug_info()
3169 QLC_DEV_SET_RST_RDY(val, adapter->portnum); in qlcnic_set_drv_state()
3171 QLC_DEV_SET_QSCNT_RDY(val, adapter->portnum); in qlcnic_set_drv_state()
3189 QLC_DEV_CLR_RST_QSCNT(val, adapter->portnum); in qlcnic_clr_drv_state()
3205 QLC_DEV_CLR_REF_CNT(val, adapter->portnum); in qlcnic_clr_all_drv_state()
3218 QLC_DEV_CLR_RST_QSCNT(val, adapter->portnum); in qlcnic_clr_all_drv_state()
[all …]
/drivers/scsi/qla2xxx/
Dqla_nx2.c75 qla8044_wr_reg(ha, QLA8044_CRB_WIN_FUNC(ha->portnum), addr); in qla8044_set_win_base()
76 val = qla8044_rd_reg(ha, QLA8044_CRB_WIN_FUNC(ha->portnum)); in qla8044_set_win_base()
262 qsnt_state |= (1 << ha->portnum); in qla8044_set_qsnt_ready()
275 qsnt_state &= ~(1 << ha->portnum); in qla8044_clear_qsnt_ready()
320 (ha->portnum << in qla8044_lock_recovery()
326 if ((lockid & IDC_LOCK_RECOVERY_OWNER_MASK) != (ha->portnum << in qla8044_lock_recovery()
331 , __func__, ha->portnum); in qla8044_lock_recovery()
335 (ha->portnum << IDC_LOCK_RECOVERY_STATE_SHIFT_BITS) | in qla8044_lock_recovery()
349 lockid = ((lockid + (1 << 8)) & ~0xFF) | ha->portnum; in qla8044_lock_recovery()
371 lock_id = ((lock_id + (1 << 8)) & ~0xFF) | ha->portnum; in qla8044_idc_lock()
[all …]
/drivers/usb/cdns3/
Dcdnsp-trace.h772 TP_PROTO(u32 portnum, u32 portsc),
773 TP_ARGS(portnum, portsc),
775 __field(u32, portnum)
779 __entry->portnum = portnum;
783 __entry->portnum,
790 TP_PROTO(u32 portnum, u32 portsc),
791 TP_ARGS(portnum, portsc)
795 TP_PROTO(u32 portnum, u32 portsc),
796 TP_ARGS(portnum, portsc)
/drivers/rapidio/switches/
Didt_gen2.c322 idtg2_em_handler(struct rio_dev *rdev, u8 portnum) in idtg2_em_handler() argument
346 rdev->em_efptr + RIO_EM_PN_ERR_DETECT(portnum), &em_perrdet); in idtg2_em_handler()
354 IDT_PORT_ISERR_DET(portnum), &regval); in idtg2_em_handler()
361 IDT_PORT_ISERR_DET(portnum), 0); in idtg2_em_handler()
/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_hw.c307 NXWR32(adapter, id_reg, adapter->portnum); in netxen_pcie_sem_lock()
611 word = NX_MAC_EVENT | ((u64)adapter->portnum << 16); in nx_p3_sre_macaddr_change()
706 ((u64)adapter->portnum << 16); in netxen_p3_nic_set_promisc()
752 word[0] = NETXEN_CONFIG_INTR_COALESCE | ((u64)adapter->portnum << 16); in netxen_config_intr_coalesce()
781 word = NX_NIC_H2C_OPCODE_CONFIG_HW_LRO | ((u64)adapter->portnum << 16); in netxen_config_hw_lro()
809 ((u64)adapter->portnum << 16); in netxen_config_bridged_mode()
844 word = NX_NIC_H2C_OPCODE_CONFIG_RSS | ((u64)adapter->portnum << 16); in netxen_config_rss()
884 word = NX_NIC_H2C_OPCODE_CONFIG_IPADDR | ((u64)adapter->portnum << 16); in netxen_config_ipaddr()
908 word = NX_NIC_H2C_OPCODE_GET_LINKEVENT | ((u64)adapter->portnum << 16); in netxen_linkevent_request()
934 ((u64)adapter->portnum << 16) | in netxen_send_lro_cleanup()
[all …]
Dnetxen_nic_main.c662 if (adapter->portnum == 0) { in netxen_setup_intr()
857 if (adapter->portnum == 0) { in netxen_check_options()
1104 netxen_nic_driver_name, adapter->portnum); in __netxen_nic_up()
1237 crb_cmd_producer[adapter->portnum]); in netxen_nic_attach()
1239 crb_cmd_consumer[adapter->portnum]); in netxen_nic_attach()
1395 if (adapter->portnum != 0) in netxen_read_ula_info()
1496 adapter->portnum = pci_func_id; in netxen_nic_probe()
1513 adapter->portnum = pci_func_id - 2; in netxen_nic_probe()
1523 if (adapter->portnum == 0) { in netxen_nic_probe()
1538 adapter->physical_port = adapter->portnum; in netxen_nic_probe()
[all …]
Dnetxen_nic_ethtool.c698 if (wol_cfg & (1UL << adapter->portnum)) in netxen_nic_get_wol()
702 if (wol_cfg & (1UL << adapter->portnum)) in netxen_nic_get_wol()
719 if (!(wol_cfg & (1 << adapter->portnum))) in netxen_nic_set_wol()
724 wol_cfg |= 1UL << adapter->portnum; in netxen_nic_set_wol()
726 wol_cfg &= ~(1UL << adapter->portnum); in netxen_nic_set_wol()
/drivers/ptp/
Dptp_ines.c141 u16 portnum; member
318 ts.portnum = ines_read32(port, ts_tx); in ines_find_txts()
461 if (ts->portnum != portn) { in ines_match()
463 ts->portnum, portn); in ines_match()
528 ts->portnum = ines_read32(port, ts_rx); in ines_rxfifo_read()

123