Home
last modified time | relevance | path

Searched refs:linkstat (Results 1 – 7 of 7) sorted by relevance

/drivers/extcon/
Dextcon-palmas.c62 if (palmas_usb->linkstat != PALMAS_USB_STATE_VBUS) { in palmas_vbus_irq_handler()
63 palmas_usb->linkstat = PALMAS_USB_STATE_VBUS; in palmas_vbus_irq_handler()
71 if (palmas_usb->linkstat == PALMAS_USB_STATE_VBUS) { in palmas_vbus_irq_handler()
72 palmas_usb->linkstat = PALMAS_USB_STATE_DISCONNECT; in palmas_vbus_irq_handler()
100 palmas_usb->linkstat = PALMAS_USB_STATE_ID; in palmas_id_irq_handler()
108 palmas_usb->linkstat = PALMAS_USB_STATE_DISCONNECT; in palmas_id_irq_handler()
111 } else if ((palmas_usb->linkstat == PALMAS_USB_STATE_ID) && in palmas_id_irq_handler()
113 palmas_usb->linkstat = PALMAS_USB_STATE_DISCONNECT; in palmas_id_irq_handler()
116 } else if ((palmas_usb->linkstat == PALMAS_USB_STATE_DISCONNECT) && in palmas_id_irq_handler()
118 palmas_usb->linkstat = PALMAS_USB_STATE_ID; in palmas_id_irq_handler()
/drivers/phy/
Dphy-twl4030-usb.c173 enum omap_musb_vbus_id_status linkstat; member
283 enum omap_musb_vbus_id_status linkstat = OMAP_MUSB_UNKNOWN; in twl4030_usb_linkstat() local
309 linkstat = OMAP_MUSB_ID_GROUND; in twl4030_usb_linkstat()
311 linkstat = OMAP_MUSB_VBUS_VALID; in twl4030_usb_linkstat()
313 linkstat = OMAP_MUSB_VBUS_OFF; in twl4030_usb_linkstat()
315 if (twl->linkstat != OMAP_MUSB_UNKNOWN) in twl4030_usb_linkstat()
316 linkstat = OMAP_MUSB_VBUS_OFF; in twl4030_usb_linkstat()
320 status, status, linkstat); in twl4030_usb_linkstat()
326 return linkstat; in twl4030_usb_linkstat()
544 if (status >= 0 && status != twl->linkstat) { in twl4030_usb_irq()
[all …]
/drivers/usb/phy/
Dphy-twl6030-usb.c105 enum omap_musb_vbus_id_status linkstat; member
191 switch (twl->linkstat) { in twl6030_usb_vbus_show()
229 twl->linkstat = status; in twl6030_usb_irq()
232 if (twl->linkstat != OMAP_MUSB_UNKNOWN) { in twl6030_usb_irq()
234 twl->linkstat = status; in twl6030_usb_irq()
266 twl->linkstat = status; in twl6030_usbotg_irq()
337 twl->linkstat = OMAP_MUSB_UNKNOWN; in twl6030_usb_probe()
/drivers/infiniband/hw/qib/
Dqib_pcie.c278 u16 linkstat, speed; in qib_pcie_params() local
303 pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKSTA, &linkstat); in qib_pcie_params()
308 speed = linkstat & 0xf; in qib_pcie_params()
309 linkstat >>= 4; in qib_pcie_params()
310 linkstat &= 0x1f; in qib_pcie_params()
311 dd->lbus_width = linkstat; in qib_pcie_params()
329 if (minw && linkstat < minw) in qib_pcie_params()
332 linkstat, minw); in qib_pcie_params()
/drivers/staging/rdma/hfi1/
Dpcie.c328 static u32 extract_speed(u16 linkstat) in extract_speed() argument
332 switch (linkstat & PCI_EXP_LNKSTA_CLS) { in extract_speed()
348 static u32 extract_width(u16 linkstat) in extract_width() argument
350 return (linkstat & PCI_EXP_LNKSTA_NLW) >> PCI_EXP_LNKSTA_NLW_SHIFT; in extract_width()
356 u16 linkstat; in update_lbus_info() local
358 pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKSTA, &linkstat); in update_lbus_info()
359 dd->lbus_width = extract_width(linkstat); in update_lbus_info()
360 dd->lbus_speed = extract_speed(linkstat); in update_lbus_info()
/drivers/pci/host/
Dpcie-altera.c435 u16 linkcap, linkstat, linkctl; in altera_pcie_retrain() local
450 &linkstat); in altera_pcie_retrain()
451 if ((linkstat & PCI_EXP_LNKSTA_CLS) == PCI_EXP_LNKSTA_CLS_2_5GB) { in altera_pcie_retrain()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_common.c2254 u32 pcs_anadv_reg, pcs_lpab_reg, linkstat; in ixgbe_fc_autoneg_fiber() local
2263 linkstat = IXGBE_READ_REG(hw, IXGBE_PCS1GLSTA); in ixgbe_fc_autoneg_fiber()
2264 if ((!!(linkstat & IXGBE_PCS1GLSTA_AN_COMPLETE) == 0) || in ixgbe_fc_autoneg_fiber()
2265 (!!(linkstat & IXGBE_PCS1GLSTA_AN_TIMED_OUT) == 1)) in ixgbe_fc_autoneg_fiber()