| /linux/sound/drivers/ |
| H A D | aloop.c | 76 * call in cable->lock 80 * call in cable->lock 92 * call in cable->lock 94 unsigned int (*pos_update)(struct loopback_cable *cable); 103 /* in-flight peer stops running outside cable->lock */ 147 struct loopback_cable *cable; member 218 /* call in cable->lock */ 240 /* call in cable->lock */ 264 /* call in cable->lock */ 267 struct loopback_cable *cable = dpcm->cable; in loopback_snd_timer_start() local [all …]
|
| /linux/drivers/extcon/ |
| H A D | extcon-max77693.c | 81 * Use delayed workqueue to detect cable state and then 82 * notify cable state to notifiee/platform through uevent. 84 * driver should notify cable state to upper layer. 248 * max77693_muic_set_path - Set hardware line according to attached cable 250 * @value: the path according to attached cable 251 * @attached: the state of cable (true:attached, false:detached) 255 * attached cable. 297 * max77693_muic_get_cable_type - Return cable type and check cable state 299 * @group: the path according to attached cable 300 * @attached: store cable state and return [all …]
|
| H A D | extcon-max8997.c | 52 /* Define supported cable type */ 126 * Use delayed workqueue to detect cable state and then 127 * notify cable state to notifiee/platform through uevent. 129 * driver should notify cable state to upper layer. 188 * max8997_muic_set_path - Set hardware line according to attached cable 190 * @value: the path according to attached cable 191 * @attached: the state of cable (true:attached, false:detached) 195 * attached cable. 236 * max8997_muic_get_cable_type - Return cable type and check cable state 238 * @group: the path according to attached cable [all …]
|
| H A D | extcon.c | 205 * @cable_index: the index of this cable in the edev 206 * @attr_g: the attribute group for the cable 270 /* Find the index of extcon cable in edev->supported_cable */ in find_cable_index_by_id() 323 struct extcon_cable *cable; in is_extcon_property_capability() local 331 cable = &edev->cables[index]; in is_extcon_property_capability() 335 ret = test_bit(prop - EXTCON_PROP_USB_MIN, cable->usb_bits); in is_extcon_property_capability() 338 ret = test_bit(prop - EXTCON_PROP_CHG_MIN, cable->chg_bits); in is_extcon_property_capability() 341 ret = test_bit(prop - EXTCON_PROP_JACK_MIN, cable->jack_bits); in is_extcon_property_capability() 344 ret = test_bit(prop - EXTCON_PROP_DISP_MIN, cable->disp_bits); in is_extcon_property_capability() 356 struct extcon_cable *cable = &edev->cables[index]; in init_property() local [all …]
|
| H A D | extcon-max14577.c | 86 * Use delayed workqueue to detect cable state and then 87 * notify cable state to notifiee/platform through uevent. 89 * driver should notify cable state to upper layer. 186 * max14577_muic_set_path - Set hardware line according to attached cable 188 * @value: the path according to attached cable 189 * @attached: the state of cable (true:attached, false:detached) 193 * attached cable. 244 * max14577_muic_get_cable_type - Return cable type and check cable state 246 * @group: the path according to attached cable 247 * @attached: store cable state and return [all …]
|
| H A D | extcon-lc824206xa.c | 115 unsigned int cable; member 204 data->cable = EXTCON_CHG_USB_SDP; in lc824206xa_charger_detect() 209 data->cable = EXTCON_CHG_USB_SDP; in lc824206xa_charger_detect() 221 data->cable = EXTCON_CHG_USB_CDP; in lc824206xa_charger_detect() 228 data->cable = EXTCON_CHG_USB_DCP; in lc824206xa_charger_detect() 236 data->cable = EXTCON_CHG_USB_DCP; in lc824206xa_charger_detect() 297 data->cable = EXTCON_CHG_USB_ACA; in lc824206xa_work() 302 data->cable = EXTCON_USB_HOST; in lc824206xa_work() 311 data->cable = EXTCON_CHG_USB_FAST; in lc824206xa_work() 319 data->cable = EXTCON_NONE; in lc824206xa_work() [all …]
|
| H A D | extcon-max14526.c | 93 int cable; member 161 extcon_set_state_sync(priv->edev, priv->cable, false); in max14526_interrupt() 165 priv->cable = EXTCON_USB; in max14526_interrupt() 169 priv->cable = EXTCON_CHG_USB_FAST; in max14526_interrupt() 174 priv->cable = EXTCON_USB_HOST; in max14526_interrupt() 179 priv->cable = EXTCON_DISP_MHL; in max14526_interrupt() 184 priv->cable = EXTCON_NONE; in max14526_interrupt() 188 extcon_set_state_sync(priv->edev, priv->cable, true); in max14526_interrupt()
|
| H A D | extcon-sm5502.c | 53 * Use delayed workqueue to detect cable state and then 54 * notify cable state to notifiee/platform through uevent. 56 * driver should notify cable state to upper layer. 303 /* Change DM_CON/DP_CON/VBUSIN switch according to cable type */ 358 /* Return cable type of attached or detached accessories */ 364 /* Read ADC value according to external cable or button */ in sm5502_muic_get_cable_type() 372 * If ADC is SM5502_MUIC_ADC_GROUND(0x0), external cable hasn't in sm5502_muic_get_cable_type() 390 "cannot identify the cable type: adc(0x%x), dev_type1(0x%x)\n", in sm5502_muic_get_cable_type() 427 * Check whether cable type is in sm5502_muic_get_cable_type() 455 "cannot identify the cable type: adc(0x%x)\n", in sm5502_muic_get_cable_type() [all …]
|
| H A D | Kconfig | 10 may be used to connect an HDMI cable and a AC adaptor, and to 171 Say Y here to enable SPMI PMIC based USB cable detection 201 Say Y here to enable GPIO based USB cable detection extcon support. 208 Say Y here to enable USB Type C cable detection extcon support when 217 Say Y here to enable support for USB Type C cable detection extcon 226 Say Y here to enable extcon support for USB Type C cable detection
|
| H A D | extcon.h | 11 * @supported_cable: Array of supported cable names ending with EXTCON_NONE. 12 * If supported_cable is NULL, cable name related APIs 35 * @cables: Sysfs subdirectories. Each represents one cable. 58 /* /sys/class/extcon/.../cable.n/... */
|
| H A D | extcon-rt8973a.c | 62 * Use delayed workqueue to detect cable state and then 63 * notify cable state to notifiee/platform through uevent. 65 * driver should notify cable state to upper layer. 220 /* Change DM_CON/DP_CON/VBUSIN switch according to cable type */ 227 * Don't need to set h/w path according to cable type in rt8973a_muic_set_path() 264 /* Read ADC value according to external cable or button */ in rt8973a_muic_get_cable_type() 272 /* Read Device 1 reigster to identify correct cable type */ in rt8973a_muic_get_cable_type() 494 /* Notify the state of connector cable or not */ in rt8973a_muic_detect_cable_wq() 497 dev_warn(info->dev, "failed to detect cable state\n"); in rt8973a_muic_detect_cable_wq() 633 * - Use delayed workqueue to detect cable state and then in rt8973a_muic_i2c_probe() [all …]
|
| /linux/Documentation/devicetree/bindings/power/supply/ |
| H A D | charger-manager.yaml | 125 "^cable[@-][0-9]$": 128 cm-cable-name: 129 description: name of charger cable 145 cm-cable-extcon: 149 cm-cable-min: 150 description: minimum current of cable in uA 153 cm-cable-max: 154 description: maximum current of cable in uA 158 - cm-cable-name 159 - cm-cable-extcon [all …]
|
| /linux/Documentation/driver-api/usb/ |
| H A D | typec.rst | 22 the roles and alternate modes of ports, partners and cable plugs when the port 39 The cable and the two plugs on it may also be optionally presented as their own 40 devices under /sys/class/typec/. The cable attached to the port "port0" port 41 will be named port0-cable and the plug on the SOP Prime end (see USB Power 43 Double Prime end "port0-plug1". The parent of a cable will always be the port, 44 and the parent of the cable plugs will always be the cable. 46 If the port, partner or cable plug supports Alternate Modes, every supported 102 After successful connection of a cable that supports USB Power Delivery 103 Structured VDM "Discover Identity", the port driver needs to register the cable 105 in the cable or not. So a cable capable of SOP Prime communication, but not SOP [all …]
|
| H A D | typec_bus.rst | 81 Cable plug alternate modes 84 The alternate mode drivers are not bound to cable plug alternate mode devices, 86 requires, a cable that responds to SOP Prime, and optionally SOP Double Prime 87 messages, the driver for that alternate mode must request handle to the cable 118 Cable Plug operations
|
| /linux/include/linux/power/ |
| H A D | charger-manager.h | 43 * @name: the name of the cable connector 46 * charger cable. If charger cable is attached, enable charger. 47 * But if charger cable is detached, disable charger. 49 * (External Connector) when charger cable is attached/detached. 50 * @attached: the state of charger cable. 51 * true: the charger cable is attached 52 * false: the charger cable is detached 66 /* The state of charger cable */ 73 * according to a kind of charger cable when cable is attached. 91 * struct charger_cable if only charger cable included [all …]
|
| /linux/include/linux/usb/ |
| H A D | pd_vdo.h | 95 * [3] :: (Product | Cable) VDO 96 * [4] :: Cable VDO 1 98 * [5] :: Cable VDO 2 115 * <29:27> :: product type (UFP / Cable / VPD) 120 * <15:0> :: USB-IF assigned VID for this cable vendor 133 /* SOP' Product Type (Cable Plug / VPD) */ 164 * <31:0> : USB-IF assigned XID for this cable 265 * Cable VDO (for both Passive and Active Cable VDO in PD Rev2.0) 267 * <31:28> :: Cable HW version 268 * <27:24> :: Cable FW version [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-extcon | 35 The /sys/class/extcon/.../state shows and stores the cable 65 interface associated with each cable cannot update 66 multiple cable states of an extcon device simultaneously. 68 What: /sys/class/extcon/.../cable.X/name 72 The /sys/class/extcon/.../cable.X/name shows the name of cable 75 What: /sys/class/extcon/.../cable.X/state 79 The /sys/class/extcon/.../cable.X/state shows and stores the 80 state of cable "X" (integer between 0 and 31) of an extcon
|
| /linux/Documentation/networking/ |
| H A D | plip.rst | 26 LapLink null-printer cable [can also work in turbo mode, with a PLIP 27 cable]. [The protocol used to pack IP packages, is a simple one 35 The PLIP cable is all that's needed to connect two Linux boxes, and it 72 PLIP driver is signaled whenever data is sent to it via the cable, such that 118 printer "null" cable to transfer data four bits at a time using 126 Parallel Transfer Mode 0 Cable 129 The cable for the first transfer mode is a standard 130 printer "null" cable which transfers data four bits at a time using 137 A cable that implements this protocol is available commercially as a 138 "Null Printer" or "Turbo Laplink" cable. It can be constructed with [all …]
|
| /linux/Documentation/ABI/obsolete/ |
| H A D | sysfs-class-typec | 4 What: /sys/class/typec/<port|partner|cable>/<dev>/svid 11 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/ 20 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/description 27 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/vdo 34 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/active 39 for entering/exiting the mode with partners and cable plugs, and
|
| /linux/drivers/usb/dwc3/ |
| H A D | dwc3-apple.c | 57 * Hence there's really no good way to keep dwc3 fully up and running after we disconnect a cable 59 * it was until the next cable is connected we'd need to tear it all down and bring it back up again 62 * Instead, we just shut down everything when a cable is disconnected and transition to 64 * During initial probe we don't have any information about the connected cable and can't bring up 66 * and defer the first dwc3 probe until we get the first cable connected event. Until then we stay 68 * Once a cable is connected we then keep track of the controller mode here by transitioning to 72 DWC3_APPLE_PROBE_PENDING, /* Before first cable connection, dwc3_core_probe not called */ 73 DWC3_APPLE_NO_CABLE, /* No cable connected, dwc3 suspended after dwc3_core_exit */ 74 DWC3_APPLE_HOST, /* Cable connected, dwc3 in host mode */ 75 DWC3_APPLE_DEVICE, /* Cable connected, dwc3 in device mode */ [all …]
|
| /linux/drivers/ata/ |
| H A D | pata_cs5535.c | 58 * cs5535_cable_detect - detect cable type 61 * Perform cable detection for ATA66 capable cable. Return a libata 62 * cable type. 67 u8 cable; in cs5535_cable_detect() local 70 pci_read_config_byte(pdev, CS5535_CABLE_DETECT, &cable); in cs5535_cable_detect() 71 if (cable & 1) in cs5535_cable_detect()
|
| /linux/drivers/scsi/isci/ |
| H A D | probe_roms.h | 273 * This field indicates length of the SAS/SATA cable between 276 * parameters of the phy in the silicon and length of the cable. 277 * Supported cable attenuation levels: 284 * ASSIGNMENT: <phy3><phy2><phy1><phy0> - Medium cable 287 * ASSIGNMENT: <phy3><phy2><phy1><phy0> - Long cable length 290 * BITS 7-4 are set when the cable length is assigned to medium 291 * BITS 3-0 are set when the cable length is assigned to long 293 * The BIT positions are clear when the cable length is 296 * Setting the bits for both long and medium cable length is
|
| /linux/drivers/usb/typec/ |
| H A D | Kconfig | 6 USB Type-C Specification defines a cable and connector for USB where 8 be Type-A plug on one end of the cable and Type-B plug on the other. 11 cable. The Configuration Channel may also be used to detect optional 19 5V, up to 20V, and current up to 5A over the cable. The USB Power 39 consuming power over the cable) or data role (host or device) when
|
| /linux/Documentation/spi/ |
| H A D | butterfly.rst | 6 a parallel port adapter cable, together with an "AVR Butterfly" to run 10 develop firmware for this, and flash it using this adapter cable. 12 You can make this adapter from an old printer cable and solder things 25 The first cable connections will hook Linux up to one SPI bus, with the 45 (c) cable in the chipselect.
|
| /linux/Documentation/core-api/ |
| H A D | debugging-via-ohci1394.rst | 85 for bus resets takes place, you have to establish any FireWire cable 110 2) Establish a working FireWire cable connection: 112 Any FireWire cable, as long at it provides electrically and mechanically 120 on both machines in the kernel log when the cable is plugged in 158 which is connected to the debugged machine over the FireWire cable). 162 With the FireWire cable connected, the OHCI-1394 driver on the debugging
|