Searched refs:linkstat (Results 1 – 9 of 9) sorted by relevance
/linux-6.1.9/drivers/usb/phy/ |
D | phy-twl6030-usb.c | 95 enum musb_vbus_id_status linkstat; member 180 switch (twl->linkstat) { in vbus_show() 224 twl->linkstat = status; in twl6030_usb_irq() 227 twl->linkstat = MUSB_UNKNOWN; in twl6030_usb_irq() 229 if (twl->linkstat != MUSB_UNKNOWN) { in twl6030_usb_irq() 231 twl->linkstat = status; in twl6030_usb_irq() 234 twl->linkstat = MUSB_UNKNOWN; in twl6030_usb_irq() 265 twl->linkstat = status; in twl6030_usbotg_irq() 268 twl->linkstat = MUSB_UNKNOWN; in twl6030_usbotg_irq() 349 twl->linkstat = MUSB_UNKNOWN; in twl6030_usb_probe()
|
/linux-6.1.9/drivers/extcon/ |
D | extcon-palmas.c | 52 if (palmas_usb->linkstat != PALMAS_USB_STATE_VBUS) { in palmas_vbus_irq_handler() 53 palmas_usb->linkstat = PALMAS_USB_STATE_VBUS; in palmas_vbus_irq_handler() 61 if (palmas_usb->linkstat == PALMAS_USB_STATE_VBUS) { in palmas_vbus_irq_handler() 62 palmas_usb->linkstat = PALMAS_USB_STATE_DISCONNECT; in palmas_vbus_irq_handler() 90 palmas_usb->linkstat = PALMAS_USB_STATE_ID; in palmas_id_irq_handler() 98 palmas_usb->linkstat = PALMAS_USB_STATE_DISCONNECT; in palmas_id_irq_handler() 101 } else if ((palmas_usb->linkstat == PALMAS_USB_STATE_ID) && in palmas_id_irq_handler() 103 palmas_usb->linkstat = PALMAS_USB_STATE_DISCONNECT; in palmas_id_irq_handler() 106 } else if ((palmas_usb->linkstat == PALMAS_USB_STATE_DISCONNECT) && in palmas_id_irq_handler() 108 palmas_usb->linkstat = PALMAS_USB_STATE_ID; in palmas_id_irq_handler()
|
/linux-6.1.9/drivers/phy/ti/ |
D | phy-twl4030-usb.c | 161 enum musb_vbus_id_status linkstat; member 275 enum musb_vbus_id_status linkstat = MUSB_UNKNOWN; in twl4030_usb_linkstat() local 301 linkstat = MUSB_ID_GROUND; in twl4030_usb_linkstat() 303 linkstat = MUSB_VBUS_VALID; in twl4030_usb_linkstat() 305 linkstat = MUSB_VBUS_OFF; in twl4030_usb_linkstat() 307 if (twl->linkstat != MUSB_UNKNOWN) in twl4030_usb_linkstat() 308 linkstat = MUSB_VBUS_OFF; in twl4030_usb_linkstat() 311 kobject_uevent(&twl->dev->kobj, linkstat == MUSB_VBUS_VALID in twl4030_usb_linkstat() 315 status, status, linkstat); in twl4030_usb_linkstat() 321 return linkstat; in twl4030_usb_linkstat() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/qib/ |
D | qib_pcie.c | 206 u16 linkstat, speed; in qib_pcie_params() local 238 pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKSTA, &linkstat); in qib_pcie_params() 243 speed = linkstat & 0xf; in qib_pcie_params() 244 linkstat >>= 4; in qib_pcie_params() 245 linkstat &= 0x1f; in qib_pcie_params() 246 dd->lbus_width = linkstat; in qib_pcie_params() 264 if (minw && linkstat < minw) in qib_pcie_params() 267 linkstat, minw); in qib_pcie_params()
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | pcie.c | 196 static u32 extract_speed(u16 linkstat) in extract_speed() argument 200 switch (linkstat & PCI_EXP_LNKSTA_CLS) { in extract_speed() 216 static u32 extract_width(u16 linkstat) in extract_width() argument 218 return (linkstat & PCI_EXP_LNKSTA_NLW) >> PCI_EXP_LNKSTA_NLW_SHIFT; in extract_width() 224 u16 linkstat; in update_lbus_info() local 227 ret = pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKSTA, &linkstat); in update_lbus_info() 233 dd->lbus_width = extract_width(linkstat); in update_lbus_info() 234 dd->lbus_speed = extract_speed(linkstat); in update_lbus_info()
|
/linux-6.1.9/drivers/pci/ |
D | pci-sysfs.c | 208 u16 linkstat; in current_link_speed_show() local 212 err = pcie_capability_read_word(pci_dev, PCI_EXP_LNKSTA, &linkstat); in current_link_speed_show() 216 speed = pcie_link_speed[linkstat & PCI_EXP_LNKSTA_CLS]; in current_link_speed_show() 226 u16 linkstat; in current_link_width_show() local 229 err = pcie_capability_read_word(pci_dev, PCI_EXP_LNKSTA, &linkstat); in current_link_width_show() 234 (linkstat & PCI_EXP_LNKSTA_NLW) >> PCI_EXP_LNKSTA_NLW_SHIFT); in current_link_width_show()
|
/linux-6.1.9/drivers/pci/controller/ |
D | pcie-altera.c | 600 u16 linkcap, linkstat, linkctl; in altera_pcie_retrain() local 615 &linkstat); in altera_pcie_retrain() 616 if ((linkstat & PCI_EXP_LNKSTA_CLS) == PCI_EXP_LNKSTA_CLS_2_5GB) { in altera_pcie_retrain()
|
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_common.c | 2312 u32 pcs_anadv_reg, pcs_lpab_reg, linkstat; in ixgbe_fc_autoneg_fiber() local 2321 linkstat = IXGBE_READ_REG(hw, IXGBE_PCS1GLSTA); in ixgbe_fc_autoneg_fiber() 2322 if ((!!(linkstat & IXGBE_PCS1GLSTA_AN_COMPLETE) == 0) || in ixgbe_fc_autoneg_fiber() 2323 (!!(linkstat & IXGBE_PCS1GLSTA_AN_TIMED_OUT) == 1)) in ixgbe_fc_autoneg_fiber()
|
/linux-6.1.9/include/linux/mfd/ |
D | palmas.h | 585 enum palmas_usb_state linkstat; member
|