| /linux/drivers/firewire/ |
| H A D | self-id-sequence-helper-test.c | 80 enum phy_packet_self_id_port_status port_status[28]; in test_self_id_sequence_get_port_status() local 88 KUNIT_ASSERT_EQ(test, port_capacity, ARRAY_SIZE(port_status)); in test_self_id_sequence_get_port_status() 91 port_status[port_index] = in test_self_id_sequence_get_port_status() 94 port_status[port_index]); in test_self_id_sequence_get_port_status() 98 KUNIT_EXPECT_EQ(test, PHY_PACKET_SELF_ID_PORT_STATUS_CHILD, port_status[0]); in test_self_id_sequence_get_port_status() 99 KUNIT_EXPECT_EQ(test, PHY_PACKET_SELF_ID_PORT_STATUS_PARENT, port_status[1]); in test_self_id_sequence_get_port_status() 100 KUNIT_EXPECT_EQ(test, PHY_PACKET_SELF_ID_PORT_STATUS_NCONN, port_status[2]); in test_self_id_sequence_get_port_status() 103 KUNIT_EXPECT_EQ(test, PHY_PACKET_SELF_ID_PORT_STATUS_CHILD, port_status[3]); in test_self_id_sequence_get_port_status() 104 KUNIT_EXPECT_EQ(test, PHY_PACKET_SELF_ID_PORT_STATUS_PARENT, port_status[4]); in test_self_id_sequence_get_port_status() 105 KUNIT_EXPECT_EQ(test, PHY_PACKET_SELF_ID_PORT_STATUS_NCONN, port_status[5]); in test_self_id_sequence_get_port_status() [all …]
|
| H A D | packet-serdes-test.c | 660 enum phy_packet_self_id_port_status port_status[3]; in test_phy_packet_self_id_zero_case0() local 684 for (port_index = 0; port_index < ARRAY_SIZE(port_status); ++port_index) { in test_phy_packet_self_id_zero_case0() 685 port_status[port_index] = in test_phy_packet_self_id_zero_case0() 689 KUNIT_EXPECT_EQ(test, PHY_PACKET_SELF_ID_PORT_STATUS_PARENT, port_status[0]); in test_phy_packet_self_id_zero_case0() 690 KUNIT_EXPECT_EQ(test, PHY_PACKET_SELF_ID_PORT_STATUS_NONE, port_status[1]); in test_phy_packet_self_id_zero_case0() 691 KUNIT_EXPECT_EQ(test, PHY_PACKET_SELF_ID_PORT_STATUS_NONE, port_status[2]); in test_phy_packet_self_id_zero_case0() 693 for (port_index = 0; port_index < ARRAY_SIZE(port_status); ++port_index) { in test_phy_packet_self_id_zero_case0() 695 port_status[port_index]); in test_phy_packet_self_id_zero_case0() 715 enum phy_packet_self_id_port_status port_status[3]; in test_phy_packet_self_id_zero_case1() local 739 for (port_index = 0; port_index < ARRAY_SIZE(port_status); ++port_index) { in test_phy_packet_self_id_zero_case1() [all …]
|
| H A D | core-topology.c | 127 enum phy_packet_self_id_port_status port_status; in build_tree() local 146 port_status = self_id_sequence_get_port_status(self_id_sequence, quadlet_count, in build_tree() 148 switch (port_status) { in build_tree() 198 port_status = self_id_sequence_get_port_status(self_id_sequence, quadlet_count, in build_tree() 200 switch (port_status) { in build_tree()
|
| /linux/drivers/usb/host/ |
| H A D | fhci-hub.c | 81 enum fhci_port_status port_status; in fhci_port_disable() local 90 port_status = usb->port_status; in fhci_port_disable() 91 usb->port_status = FHCI_PORT_DISABLED; in fhci_port_disable() 98 if (port_status == FHCI_PORT_WAITING) in fhci_port_disable() 115 fhci_config_transceiver(fhci, usb->port_status); in fhci_port_enable() 117 if ((usb->port_status != FHCI_PORT_FULL) && in fhci_port_enable() 118 (usb->port_status != FHCI_PORT_LOW)) in fhci_port_enable() 207 struct usb_port_status *port_status; in fhci_hub_control() local 278 port_status = (struct usb_port_status *)buf; in fhci_hub_control() 279 port_status->wPortStatus = in fhci_hub_control() [all …]
|
| H A D | ehci-hub.c | 58 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports() 72 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports() 109 reg = &ehci->regs->port_status[port]; in ehci_handover_companion_ports() 140 if (ehci_readl(ehci, &ehci->regs->port_status[i]) & PORT_CSC) in ehci_port_change() 178 u32 __iomem *reg = &ehci->regs->port_status[port]; in ehci_adjust_port_wakeup_flags() 257 u32 __iomem *reg = &ehci->regs->port_status [port]; in ehci_bus_suspend() 429 temp = ehci_readl(ehci, &ehci->regs->port_status[i]); in ehci_bus_resume() 466 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume() 473 ehci_writel(ehci, temp, &ehci->regs->port_status [i]); in ehci_bus_resume() 490 temp = ehci_readl(ehci, &ehci->regs->port_status [i]); in ehci_bus_resume() [all …]
|
| H A D | ehci-fsl.c | 206 portsc = ehci_readl(ehci, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy() 283 ehci_writel(ehci, portsc, &ehci->regs->port_status[port_offset]); in ehci_fsl_setup_phy() 475 pdata->pm_portsc = ehci_readl(ehci, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend() 485 tmp = ehci_readl(ehci, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend() 487 ehci_writel(ehci, tmp, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend() 541 ehci_writel(ehci, pdata->pm_portsc, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_resume() 645 status = readl(&ehci->regs->port_status[port]); in ehci_start_port_reset() 653 &ehci->regs->port_status[port]); in ehci_start_port_reset() 655 writel(PORT_RESET, &ehci->regs->port_status[port]); in ehci_start_port_reset()
|
| H A D | ehci-platform.c | 144 u32 port_status = ehci_readl(ehci, &ehci->regs->port_status[0]); in quirk_poll_check_port_status() local 146 if (!(port_status & PORT_OWNER) && in quirk_poll_check_port_status() 147 (port_status & PORT_POWER) && in quirk_poll_check_port_status() 148 !(port_status & PORT_CONNECT) && in quirk_poll_check_port_status() 149 (port_status & PORT_LS_MASK)) in quirk_poll_check_port_status()
|
| H A D | xhci-hub.c | 378 static unsigned int xhci_port_speed(unsigned int port_status) in xhci_port_speed() argument 380 if (DEV_LOWSPEED(port_status)) in xhci_port_speed() 382 if (DEV_HIGHSPEED(port_status)) in xhci_port_speed() 581 u16 wIndex, struct xhci_port *port, u32 port_status) in xhci_clear_port_change_bit() argument 624 xhci_portsc_writel(port, port_status | status); in xhci_clear_port_change_bit() 625 port_status = xhci_portsc_readl(port); in xhci_clear_port_change_bit() 628 wIndex + 1, port_change_bit, port_status); in xhci_clear_port_change_bit() 1005 int port_status = xhci_portsc_readl(port); in xhci_handle_usb2_port_link_resume() local 1008 hcd->self.busnum, wIndex + 1, port_status); in xhci_handle_usb2_port_link_resume()
|
| H A D | oxu210hp-hcd.c | 173 u32 port_status[]; /* up to N_PORTS */ member 824 u32 __iomem *status_reg, int port_status) in check_reset_complete() argument 826 if (!(port_status & PORT_CONNECT)) { in check_reset_complete() 828 return port_status; in check_reset_complete() 832 if (!(port_status & PORT_PE)) { in check_reset_complete() 835 return port_status; in check_reset_complete() 839 return port_status; in check_reset_complete() 2750 writel(PORT_RWC_BITS, &oxu->regs->port_status[port]); in ehci_turn_off_all_ports() 2887 int pstatus = readl(&oxu->regs->port_status[i]); in oxu210_hcd_irq() 3499 temp = readl(&oxu->regs->port_status[i]); in oxu_hub_status_data() [all …]
|
| /linux/drivers/usb/usbip/ |
| H A D | vhci_hcd.c | 166 status = vhci_hcd->port_status[rhport]; in rh_port_connect() 181 vhci_hcd->port_status[rhport] = status; in rh_port_connect() 200 status = vhci_hcd->port_status[rhport]; in rh_port_disconnect() 205 vhci_hcd->port_status[rhport] = status; in rh_port_disconnect() 248 if ((vhci_hcd->port_status[rhport] & PORT_C_MASK)) { in vhci_hub_status() 362 memcpy(prev_port_status, vhci_hcd->port_status, in vhci_hub_control() 384 if (vhci_hcd->port_status[rhport] & USB_PORT_STAT_SUSPEND) { in vhci_hub_control() 394 vhci_hcd->port_status[rhport] &= ~USB_SS_PORT_STAT_POWER; in vhci_hub_control() 396 vhci_hcd->port_status[rhport] &= ~USB_PORT_STAT_POWER; in vhci_hub_control() 403 vhci_hcd->port_status[rhport] &= ~(1 << wValue); in vhci_hub_control() [all …]
|
| H A D | vhci.h | 106 u32 port_status[VHCI_HC_PORTS]; member
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | dummy_hcd.c | 247 u32 port_status; member 378 if ((dum_hcd->port_status & USB_SS_PORT_STAT_POWER) == 0) { in set_link_state_by_speed() 379 dum_hcd->port_status = 0; in set_link_state_by_speed() 382 dum_hcd->port_status &= ~(USB_PORT_STAT_CONNECTION | in set_link_state_by_speed() 386 dum_hcd->port_status |= in set_link_state_by_speed() 390 dum_hcd->port_status |= (USB_PORT_STAT_CONNECTION | in set_link_state_by_speed() 394 dum_hcd->port_status |= in set_link_state_by_speed() 396 if ((dum_hcd->port_status & USB_PORT_STAT_ENABLE) && in set_link_state_by_speed() 397 (dum_hcd->port_status & in set_link_state_by_speed() 403 if ((dum_hcd->port_status & USB_PORT_STAT_POWER) == 0) { in set_link_state_by_speed() [all …]
|
| /linux/drivers/usb/early/ |
| H A D | ehci-dbgp.c | 88 readl(&ehci_regs->port_status[dbgp_phys_port - 1])); in dbgp_ehci_status() 509 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 518 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 520 writel(portsc, &ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 546 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 548 writel(portsc, &ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup() 616 portsc = readl(&ehci_regs->port_status[port - 1]); in ehci_reset_port() 619 writel(portsc, &ehci_regs->port_status[port - 1]); in ehci_reset_port() 625 portsc = readl(&ehci_regs->port_status[port - 1]); in ehci_reset_port() 633 &ehci_regs->port_status[port - 1]); in ehci_reset_port() [all …]
|
| /linux/drivers/usb/misc/ |
| H A D | lvstest.c | 37 struct usb_port_status port_status; member 333 struct usb_port_status *port_status = &lvs->port_status; in lvs_rh_work() local 341 port_status, sizeof(*port_status), 1000); in lvs_rh_work() 345 portchange = le16_to_cpu(port_status->wPortChange); in lvs_rh_work() 363 if (le16_to_cpu(port_status->wPortStatus) & in lvs_rh_work()
|
| /linux/drivers/scsi/qla4xxx/ |
| H A D | ql4_dbg.c | 89 (uint8_t) offsetof(struct isp_reg, u2.isp4010.port_status), in qla4xxx_dump_registers() 90 readw(&ha->reg->u2.isp4010.port_status)); in qla4xxx_dump_registers() 112 offsetof(struct isp_reg, u2.isp4022.p0.port_status), in qla4xxx_dump_registers() 113 readw(&ha->reg->u2.isp4022.p0.port_status)); in qla4xxx_dump_registers()
|
| /linux/drivers/ata/ |
| H A D | sata_promise.c | 836 u32 port_status, u32 err_mask) in pdc_error_intr() argument 842 ata_ehi_push_desc(ehi, "port_status 0x%08x", port_status); in pdc_error_intr() 843 port_status &= err_mask; in pdc_error_intr() 845 if (port_status & PDC_DRIVE_ERR) in pdc_error_intr() 847 if (port_status & (PDC_OVERRUN_ERR | PDC_UNDERRUN_ERR)) in pdc_error_intr() 849 if (port_status & (PDC2_ATA_HBA_ERR | PDC2_ATA_DMA_CNT_ERR)) in pdc_error_intr() 851 if (port_status & (PDC_PH_ERR | PDC_SH_ERR | PDC_DH_ERR | PDC2_HTO_ERR in pdc_error_intr() 874 u32 port_status, err_mask; in pdc_host_intr() local 881 port_status = readl(ata_mmio + PDC_GLOBAL_CTL); in pdc_host_intr() 882 if (unlikely(port_status & err_mask)) { in pdc_host_intr() [all …]
|
| /linux/include/trace/events/ |
| H A D | firewire.h | 401 __dynamic_array(u8, port_status, self_id_sequence_get_port_capacity(quadlet_count)) 408 u8 *port_status = __get_dynamic_array(port_status); 411 for (port_index = 0; port_index < __get_dynamic_array_len(port_status); ++port_index) { 412 port_status[port_index] = 431 __print_array(__get_dynamic_array(port_status), __get_dynamic_array_len(port_status), 1),
|
| /linux/drivers/usb/serial/ |
| H A D | digi_acceleport.c | 1362 int port_status; in digi_read_inb_callback() local 1396 port_status = buf[2]; in digi_read_inb_callback() 1403 if (port_status & DIGI_OVERRUN_ERROR) in digi_read_inb_callback() 1408 if (port_status & DIGI_BREAK_ERROR) in digi_read_inb_callback() 1410 else if (port_status & DIGI_PARITY_ERROR) in digi_read_inb_callback() 1412 else if (port_status & DIGI_FRAMING_ERROR) in digi_read_inb_callback()
|
| /linux/drivers/usb/dwc2/ |
| H A D | hcd.c | 3388 u32 port_status; in dwc2_hcd_hub_control() local 3533 port_status = 0; in dwc2_hcd_hub_control() 3535 port_status |= USB_PORT_STAT_C_CONNECTION << 16; in dwc2_hcd_hub_control() 3537 port_status |= USB_PORT_STAT_C_ENABLE << 16; in dwc2_hcd_hub_control() 3539 port_status |= USB_PORT_STAT_C_SUSPEND << 16; in dwc2_hcd_hub_control() 3541 port_status |= USB_PORT_STAT_C_L1 << 16; in dwc2_hcd_hub_control() 3543 port_status |= USB_PORT_STAT_C_RESET << 16; in dwc2_hcd_hub_control() 3546 port_status |= USB_PORT_STAT_C_OVERCURRENT << 16; in dwc2_hcd_hub_control() 3555 *(__le32 *)buf = cpu_to_le32(port_status); in dwc2_hcd_hub_control() 3563 port_status |= USB_PORT_STAT_CONNECTION; in dwc2_hcd_hub_control() [all …]
|
| /linux/include/linux/usb/ |
| H A D | ehci_def.h | 118 u32 port_status[HCS_N_PORTS_MAX]; /* up to N_PORTS */ member
|
| /linux/drivers/net/fddi/ |
| H A D | defxx.c | 1630 PI_UINT32 port_status; /* PDQ port status register value */ in dfx_int_pr_halt_id() local 1635 dfx_port_read_long(bp, PI_PDQ_K_REG_PORT_STATUS, &port_status); in dfx_int_pr_halt_id() 1639 halt_id = (port_status & PI_PSTATUS_M_HALT_ID) >> PI_PSTATUS_V_HALT_ID; in dfx_int_pr_halt_id() 1880 PI_UINT32 port_status; /* Port Status register */ in dfx_int_common() local 1902 dfx_port_read_long(bp, PI_PDQ_K_REG_PORT_STATUS, &port_status); in dfx_int_common() 1906 if (port_status & PI_PSTATUS_M_TYPE_0_PENDING) in dfx_int_common() 2868 PI_UINT32 port_status; /* Port Status register value */ in dfx_hw_adap_state_rd() local 2870 dfx_port_read_long(bp, PI_PDQ_K_REG_PORT_STATUS, &port_status); in dfx_hw_adap_state_rd() 2871 return (port_status & PI_PSTATUS_M_STATE) >> PI_PSTATUS_V_STATE; in dfx_hw_adap_state_rd()
|
| /linux/drivers/usb/cdns3/ |
| H A D | cdnsp-gadget.c | 29 unsigned int cdnsp_port_speed(unsigned int port_status) in cdnsp_port_speed() argument 32 if (DEV_SUPERSPEEDPLUS(port_status) || in cdnsp_port_speed() 33 DEV_SSP_GEN1x2(port_status) || DEV_SSP_GEN2x2(port_status)) in cdnsp_port_speed() 35 else if (DEV_SUPERSPEED(port_status)) in cdnsp_port_speed() 37 else if (DEV_HIGHSPEED(port_status)) in cdnsp_port_speed() 39 else if (DEV_FULLSPEED(port_status)) in cdnsp_port_speed()
|
| /linux/drivers/net/wan/ |
| H A D | wanxl.c | 65 port_status_t port_status[4]; member 88 return &port->card->status->port_status[port->node]; in get_status() 719 (void *)&card->status->port_status[i] - in wanxl_pci_init_one()
|
| /linux/drivers/net/ethernet/marvell/ |
| H A D | mv643xx_eth.c | 1506 u32 port_status; in mv643xx_eth_get_link_ksettings_phyless() local 1509 port_status = rdlp(mp, PORT_STATUS); in mv643xx_eth_get_link_ksettings_phyless() 1513 switch (port_status & PORT_SPEED_MASK) { in mv643xx_eth_get_link_ksettings_phyless() 1527 cmd->base.duplex = (port_status & FULL_DUPLEX) ? in mv643xx_eth_get_link_ksettings_phyless() 2194 u32 port_status; in handle_link_event() local 2199 port_status = rdlp(mp, PORT_STATUS); in handle_link_event() 2200 if (!(port_status & LINK_UP)) { in handle_link_event() 2218 switch (port_status & PORT_SPEED_MASK) { in handle_link_event() 2232 duplex = (port_status & FULL_DUPLEX) ? 1 : 0; in handle_link_event() 2233 fc = (port_status & FLOW_CONTROL_ENABLED) ? 1 : 0; in handle_link_event()
|
| /linux/drivers/soundwire/ |
| H A D | bus.c | 1646 u8 clear = 0, bit, port_status[15] = {0}; in sdw_handle_slave_alerts() local 1739 &port_status[bit]); in sdw_handle_slave_alerts() 1750 &port_status[port_num]); in sdw_handle_slave_alerts() 1762 &port_status[port_num]); in sdw_handle_slave_alerts() 1780 memcpy(slave_intr.port, &port_status, in sdw_handle_slave_alerts()
|