/kernel/linux/linux-5.10/drivers/rapidio/switches/ |
D | tsi57x.c | 159 int portnum; in tsi57x_em_init() local 163 for (portnum = 0; in tsi57x_em_init() 164 portnum < RIO_GET_TOTAL_PORTS(rdev->swpinfo); portnum++) { in tsi57x_em_init() 167 TSI578_SP_MODE(portnum), ®val); in tsi57x_em_init() 169 TSI578_SP_MODE(portnum), in tsi57x_em_init() 174 RIO_DEV_PORT_N_ERR_STS_CSR(rdev, portnum), in tsi57x_em_init() 177 RIO_DEV_PORT_N_ERR_STS_CSR(rdev, portnum), in tsi57x_em_init() 181 TSI578_SP_INT_STATUS(portnum), ®val); in tsi57x_em_init() 183 TSI578_SP_INT_STATUS(portnum), in tsi57x_em_init() 188 TSI578_SP_CTL_INDEP(portnum), ®val); in tsi57x_em_init() [all …]
|
D | tsi568.c | 114 int portnum; in tsi568_em_init() local 119 for (portnum = 0; in tsi568_em_init() 120 portnum < RIO_GET_TOTAL_PORTS(rdev->swpinfo); portnum++) { in tsi568_em_init() 121 rio_read_config_32(rdev, TSI568_SP_MODE(portnum), ®val); in tsi568_em_init() 122 rio_write_config_32(rdev, TSI568_SP_MODE(portnum), in tsi568_em_init()
|
D | idt_gen2.c | 322 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), ®val); in idtg2_em_handler() 361 IDT_PORT_ISERR_DET(portnum), 0); in idtg2_em_handler()
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
D | ehci-sysfs.c | 42 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()
|
D | xhci-trace.h | 214 __field(u8, portnum) 225 __entry->portnum = vdev->udev->portnum; 232 __entry->portnum, __entry->level, __entry->slot_id 523 TP_PROTO(u32 portnum, u32 portsc), 524 TP_ARGS(portnum, portsc), 526 __field(u32, portnum) 531 __entry->portnum = portnum; 535 __entry->portnum, 541 TP_PROTO(u32 portnum, u32 portsc), 542 TP_ARGS(portnum, portsc) [all …]
|
D | ehci-xilinx-of.c | 36 static int ehci_xilinx_port_handed_over(struct usb_hcd *hcd, int portnum) in ehci_xilinx_port_handed_over() argument 38 dev_warn(hcd->self.controller, "port %d cannot be enabled\n", portnum); in ehci_xilinx_port_handed_over()
|
D | xhci-hub.c | 939 u32 portnum; in xhci_get_usb3_port_status() local 945 portnum = port->hcd_portnum; in xhci_get_usb3_port_status() 968 bus_state->suspended_ports &= ~(1 << portnum); in xhci_get_usb3_port_status() 972 if (bus_state->port_remote_wakeup & (1 << portnum) && in xhci_get_usb3_port_status() 975 bus_state->port_remote_wakeup &= ~(1 << portnum); in xhci_get_usb3_port_status() 976 usb_hcd_end_port_resume(&hcd->self, portnum); in xhci_get_usb3_port_status() 980 xhci_del_comp_mod_timer(xhci, portsc, portnum); in xhci_get_usb3_port_status() 988 u32 portnum; in xhci_get_usb2_port_status() local 993 portnum = port->hcd_portnum; in xhci_get_usb2_port_status() 1005 bus_state->resume_done[portnum] = 0; in xhci_get_usb2_port_status() [all …]
|
D | ehci-hub.c | 537 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() 1317 static void ehci_relinquish_port(struct usb_hcd *hcd, int portnum) in ehci_relinquish_port() argument 1323 set_owner(ehci, --portnum, PORT_OWNER); in ehci_relinquish_port() 1326 static int ehci_port_handed_over(struct usb_hcd *hcd, int portnum) in ehci_port_handed_over() argument 1333 reg = &ehci->regs->port_status[portnum - 1]; in ehci_port_handed_over() 1337 static int ehci_port_power(struct ehci_hcd *ehci, int portnum, bool enable) in ehci_port_power() argument 1340 u32 __iomem *status_reg = &ehci->regs->port_status[portnum]; in ehci_port_power() 1349 hcd->driver->port_power(hcd, portnum, enable); in ehci_port_power()
|
/kernel/linux/linux-5.10/drivers/usb/misc/ |
D | ehset.c | 28 u8 portnum = dev->portnum; in ehset_probe() local 36 (USB_TEST_SE0_NAK << 8) | portnum, in ehset_probe() 43 (USB_TEST_J << 8) | portnum, in ehset_probe() 50 (USB_TEST_K << 8) | portnum, in ehset_probe() 57 (USB_TEST_PACKET << 8) | portnum, in ehset_probe() 65 USB_PORT_FEAT_SUSPEND, portnum, in ehset_probe() 73 USB_PORT_FEAT_SUSPEND, portnum, in ehset_probe() 106 (6 << 8) | portnum, in ehset_probe()
|
D | lvstest.c | 27 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()
|
/kernel/linux/linux-5.10/tools/usb/usbip/src/ |
D | usbip_detach.c | 35 uint8_t portnum; in detach_port() local 49 portnum = atoi(port); in detach_port() 61 if (idev->port == portnum) { in detach_port() 77 snprintf(path, PATH_MAX, VHCI_STATE_PATH"/port%d", portnum); in detach_port() 82 ret = usbip_vhci_detach_device(portnum); in detach_port() 85 err("Port %d detach request failed!\n", portnum); in detach_port() 88 info("Port %d is now detached!\n", portnum); in detach_port()
|
/kernel/linux/linux-5.10/drivers/phy/broadcom/ |
D | phy-brcm-sata.c | 62 int portnum; member 203 return priv->ctrl_base + (port->portnum * size); in brcm_sata_ctrl_base() 214 bank += (port->portnum * SATA_PCB_REG_40NM_SPACE_SIZE); in brcm_sata_phy_wr() 216 pcb_base += (port->portnum * SATA_PCB_REG_28NM_SPACE_SIZE); in brcm_sata_phy_wr() 230 bank += (port->portnum * SATA_PCB_REG_40NM_SPACE_SIZE); in brcm_sata_phy_rd() 232 pcb_base += (port->portnum * SATA_PCB_REG_28NM_SPACE_SIZE); in brcm_sata_phy_rd() 259 dev_info(priv->dev, "enabling SSC on port%d\n", port->portnum); in brcm_stb_sata_ssc_init() 451 dev_err(dev, "port%d PLL did not lock\n", port->portnum); in brcm_ns2_sata_init() 455 dev_dbg(dev, "port%d initialized\n", port->portnum); in brcm_ns2_sata_init() 467 if (port->portnum == 0) in brcm_nsp_sata_init() [all …]
|
/kernel/linux/linux-5.10/drivers/message/fusion/ |
D | mptfc.c | 682 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() 776 pp0dest = &ioc->fc_port_page0[portnum]; in mptfc_GetFcPortPage0() 817 mptfc_display_port_link_speed(ioc, portnum, pp0dest); in mptfc_GetFcPortPage0() 827 mptfc_WriteFcPortPage1(MPT_ADAPTER *ioc, int portnum) in mptfc_WriteFcPortPage1() argument [all …]
|
/kernel/linux/linux-5.10/drivers/usb/core/ |
D | ledtrig-usbport.c | 26 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()
|
D | usb-acpi.c | 162 port_dev->portnum); in usb_acpi_get_companion_for_port() 165 udev->portnum); in usb_acpi_get_companion_for_port() 170 port1 = port_dev->portnum; in usb_acpi_get_companion_for_port() 221 port_dev = hub->ports[udev->portnum - 1]; in usb_acpi_find_companion_for_device()
|
D | port.c | 199 int port1 = port_dev->portnum; in usb_port_runtime_resume() 257 int port1 = port_dev->portnum; in usb_port_runtime_suspend() 511 upstream = parent_hub->ports[hdev->portnum - 1]; in find_and_link_peer() 548 port_dev->portnum = port1; in usb_hub_create_port_device()
|
/kernel/linux/linux-5.10/sound/soc/bcm/ |
D | cygnus-ssp.c | 265 writel(aio->portnum, in audio_ssp_init_portregs() 269 value |= aio->portnum << I2S_OUT_STREAM_CFG_GROUP_ID; in audio_ssp_init_portregs() 270 value |= aio->portnum; /* FCI ID is the port num */ in audio_ssp_init_portregs() 285 value |= aio->portnum << I2S_IN_STREAM_CFG_0_GROUP_ID; in audio_ssp_init_portregs() 290 fci_id = CAPTURE_FCI_ID_BASE + aio->portnum; in audio_ssp_init_portregs() 301 value &= ~BIT((aio->portnum * 4) + AUD_MISC_SEROUT_SDAT_OE); in audio_ssp_init_portregs() 305 writel(aio->portnum, aio->cygaud->audio + BF_SRC_GRP3_OFFSET); in audio_ssp_init_portregs() 314 value |= aio->portnum; /* FCI ID is the port num */ in audio_ssp_init_portregs() 421 "Port not supported %d\n", aio->portnum); in audio_ssp_out_enable() 447 value |= BIT(aio->portnum); in audio_ssp_out_disable() [all …]
|
D | cygnus-pcm.c | 268 switch (aio->portnum) { in configure_ringbuf_regs() 287 switch (aio->portnum) { in configure_ringbuf_regs() 328 clear_mask = BIT(aio->portnum); in enable_intr() 362 dev_dbg(asoc_rtd_to_cpu(rtd, 0)->dev, "%s on port %d\n", __func__, aio->portnum); in disable_intr() 365 set_mask = BIT(aio->portnum); in disable_intr() 593 dev_dbg(asoc_rtd_to_cpu(rtd, 0)->dev, "%s port %d\n", __func__, aio->portnum); in cygnus_pcm_open() 626 dev_dbg(asoc_rtd_to_cpu(rtd, 0)->dev, "%s port %d\n", __func__, aio->portnum); in cygnus_pcm_close() 634 dev_dbg(asoc_rtd_to_cpu(rtd, 0)->dev, "freed port %d\n", aio->portnum); in cygnus_pcm_close() 648 dev_dbg(asoc_rtd_to_cpu(rtd, 0)->dev, "%s port %d\n", __func__, aio->portnum); in cygnus_pcm_hw_params() 663 dev_dbg(asoc_rtd_to_cpu(rtd, 0)->dev, "%s port %d\n", __func__, aio->portnum); in cygnus_pcm_hw_free() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/ |
D | cmsg.c | 87 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()
|
/kernel/linux/linux-5.10/drivers/rapidio/ |
D | rio.c | 1174 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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_hw.c | 340 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() 610 ((u64)adapter->portnum << 16); in qlcnic_82xx_nic_set_promisc() 713 ((u64) adapter->portnum << 16) | ((u64) 0x1 << 32)); in qlcnic_set_fw_loopback() 782 ((u64) adapter->portnum << 16)); in qlcnic_82xx_set_rx_coalesce() 834 word = QLCNIC_H2C_OPCODE_CONFIG_HW_LRO | ((u64)adapter->portnum << 16); in qlcnic_82xx_config_hw_lro() 869 ((u64)adapter->portnum << 16); in qlcnic_config_bridged_mode() 905 word = QLCNIC_H2C_OPCODE_CONFIG_RSS | ((u64)adapter->portnum << 16); in qlcnic_82xx_config_rss() 950 word = QLCNIC_H2C_OPCODE_CONFIG_IPADDR | ((u64)adapter->portnum << 16); in qlcnic_82xx_config_ipaddr() 972 word = QLCNIC_H2C_OPCODE_GET_LINKEVENT | ((u64)adapter->portnum << 16); in qlcnic_82xx_linkevent_request() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
D | qla_nx2.c | 75 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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_hw.c | 307 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 …]
|
/kernel/linux/linux-5.10/include/linux/usb/ |
D | hcd.h | 411 int (*port_power)(struct usb_hcd *hcd, int portnum, bool enable); 510 unsigned int portnum); 512 extern void usb_hcd_start_port_resume(struct usb_bus *bus, int portnum); 513 extern void usb_hcd_end_port_resume(struct usb_bus *bus, int portnum);
|
/kernel/linux/linux-5.10/drivers/ptp/ |
D | ptp_ines.c | 146 u16 portnum; member 323 ts.portnum = ines_read32(port, ts_tx); in ines_find_txts() 470 if (ts->portnum != portn) { in ines_match() 472 ts->portnum, portn); in ines_match() 537 ts->portnum = ines_read32(port, ts_rx); in ines_rxfifo_read()
|