Searched refs:linkstat (Results 1 – 8 of 8) sorted by relevance
/drivers/phy/ti/ |
D | phy-twl4030-usb.c | 174 enum musb_vbus_id_status linkstat; member 285 enum musb_vbus_id_status linkstat = MUSB_UNKNOWN; in twl4030_usb_linkstat() local 311 linkstat = MUSB_ID_GROUND; in twl4030_usb_linkstat() 313 linkstat = MUSB_VBUS_VALID; in twl4030_usb_linkstat() 315 linkstat = MUSB_VBUS_OFF; in twl4030_usb_linkstat() 317 if (twl->linkstat != MUSB_UNKNOWN) in twl4030_usb_linkstat() 318 linkstat = MUSB_VBUS_OFF; in twl4030_usb_linkstat() 321 kobject_uevent(&twl->dev->kobj, linkstat == MUSB_VBUS_VALID in twl4030_usb_linkstat() 325 status, status, linkstat); in twl4030_usb_linkstat() 331 return linkstat; in twl4030_usb_linkstat() [all …]
|
/drivers/usb/phy/ |
D | phy-twl6030-usb.c | 108 enum musb_vbus_id_status linkstat; member 193 switch (twl->linkstat) { in twl6030_usb_vbus_show() 231 twl->linkstat = status; in twl6030_usb_irq() 234 twl->linkstat = MUSB_UNKNOWN; in twl6030_usb_irq() 236 if (twl->linkstat != MUSB_UNKNOWN) { in twl6030_usb_irq() 238 twl->linkstat = status; in twl6030_usb_irq() 241 twl->linkstat = MUSB_UNKNOWN; in twl6030_usb_irq() 272 twl->linkstat = status; in twl6030_usbotg_irq() 275 twl->linkstat = MUSB_UNKNOWN; in twl6030_usbotg_irq() 356 twl->linkstat = MUSB_UNKNOWN; in twl6030_usb_probe()
|
/drivers/extcon/ |
D | extcon-palmas.c | 62 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/infiniband/hw/qib/ |
D | qib_pcie.c | 234 u16 linkstat, speed; in qib_pcie_params() local 270 pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKSTA, &linkstat); in qib_pcie_params() 275 speed = linkstat & 0xf; in qib_pcie_params() 276 linkstat >>= 4; in qib_pcie_params() 277 linkstat &= 0x1f; in qib_pcie_params() 278 dd->lbus_width = linkstat; in qib_pcie_params() 296 if (minw && linkstat < minw) in qib_pcie_params() 299 linkstat, minw); in qib_pcie_params()
|
/drivers/infiniband/hw/hfi1/ |
D | pcie.c | 253 static u32 extract_speed(u16 linkstat) in extract_speed() argument 257 switch (linkstat & PCI_EXP_LNKSTA_CLS) { in extract_speed() 273 static u32 extract_width(u16 linkstat) in extract_width() argument 275 return (linkstat & PCI_EXP_LNKSTA_NLW) >> PCI_EXP_LNKSTA_NLW_SHIFT; in extract_width() 281 u16 linkstat; in update_lbus_info() local 284 ret = pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKSTA, &linkstat); in update_lbus_info() 290 dd->lbus_width = extract_width(linkstat); in update_lbus_info() 291 dd->lbus_speed = extract_speed(linkstat); in update_lbus_info()
|
/drivers/pci/host/ |
D | pcie-altera.c | 428 u16 linkcap, linkstat, linkctl; in altera_pcie_retrain() local 443 &linkstat); in altera_pcie_retrain() 444 if ((linkstat & PCI_EXP_LNKSTA_CLS) == PCI_EXP_LNKSTA_CLS_2_5GB) { in altera_pcie_retrain()
|
/drivers/pci/ |
D | pci-sysfs.c | 207 u16 linkstat; in current_link_speed_show() local 211 err = pcie_capability_read_word(pci_dev, PCI_EXP_LNKSTA, &linkstat); in current_link_speed_show() 215 switch (linkstat & PCI_EXP_LNKSTA_CLS) { in current_link_speed_show() 237 u16 linkstat; in current_link_width_show() local 240 err = pcie_capability_read_word(pci_dev, PCI_EXP_LNKSTA, &linkstat); in current_link_width_show() 245 (linkstat & PCI_EXP_LNKSTA_NLW) >> PCI_EXP_LNKSTA_NLW_SHIFT); in current_link_width_show()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_common.c | 2336 u32 pcs_anadv_reg, pcs_lpab_reg, linkstat; in ixgbe_fc_autoneg_fiber() local 2345 linkstat = IXGBE_READ_REG(hw, IXGBE_PCS1GLSTA); in ixgbe_fc_autoneg_fiber() 2346 if ((!!(linkstat & IXGBE_PCS1GLSTA_AN_COMPLETE) == 0) || in ixgbe_fc_autoneg_fiber() 2347 (!!(linkstat & IXGBE_PCS1GLSTA_AN_TIMED_OUT) == 1)) in ixgbe_fc_autoneg_fiber()
|