Home
last modified time | relevance | path

Searched refs:cable (Results 1 – 25 of 187) sorted by relevance

12345678

/linux-6.15/sound/drivers/
H A Daloop.c235 struct loopback_cable *cable = dpcm->cable; in loopback_snd_timer_start() local
273 struct loopback_cable *cable = dpcm->cable; in loopback_snd_timer_stop() local
277 if (cable->running ^ cable->pause) in loopback_snd_timer_stop()
303 struct loopback_cable *cable = dpcm->cable; in loopback_snd_timer_close_cable() local
405 struct loopback_cable *cable = dpcm->cable; in loopback_trigger() local
462 struct loopback_cable *cable = dpcm->cable; in params_change() local
482 struct loopback_cable *cable = dpcm->cable; in loopback_prepare() local
656 running = cable->running ^ cable->pause; in loopback_jiffies_timer_pos_update()
765 running = cable->running ^ cable->pause; in loopback_snd_timer_period_elapsed()
896 struct loopback_cable *cable = dpcm->cable; in loopback_snd_timer_dpcm_info() local
[all …]
/linux-6.15/drivers/usb/chipidea/
H A Dotg.c31 struct ci_hdrc_cable *cable; in hw_read_otgsc() local
40 if (cable->changed) in hw_read_otgsc()
45 if (cable->connected) in hw_read_otgsc()
50 if (cable->enabled) in hw_read_otgsc()
58 if (cable->changed) in hw_read_otgsc()
63 if (cable->connected) in hw_read_otgsc()
68 if (cable->enabled) in hw_read_otgsc()
90 cable->changed = false; in hw_write_otgsc()
94 cable->enabled = true; in hw_write_otgsc()
97 cable->enabled = false; in hw_write_otgsc()
[all …]
H A Dcore.c622 cable->changed = true; in ci_usb_role_switch_set()
623 cable->connected = true; in ci_usb_role_switch_set()
625 cable->changed = true; in ci_usb_role_switch_set()
626 cable->connected = false; in ci_usb_role_switch_set()
629 cable->changed = true; in ci_usb_role_switch_set()
632 cable->changed = true; in ci_usb_role_switch_set()
633 cable->connected = true; in ci_usb_role_switch_set()
636 cable->changed = true; in ci_usb_role_switch_set()
639 cable->changed = true; in ci_usb_role_switch_set()
781 cable->edev = ext_vbus; in ci_get_platdata()
[all …]
/linux-6.15/drivers/extcon/
H A Dextcon.c323 struct extcon_cable *cable; in is_extcon_property_capability() local
359 memset(cable->usb_propval, 0, sizeof(cable->usb_propval)); in init_property()
361 memset(cable->chg_propval, 0, sizeof(cable->chg_propval)); in init_property()
363 memset(cable->jack_propval, 0, sizeof(cable->jack_propval)); in init_property()
365 memset(cable->disp_propval, 0, sizeof(cable->disp_propval)); in init_property()
416 extcon_get_state(cable->edev, cable->edev->supported_cable[i])); in cable_state_show()
1120 cable->edev = edev; in extcon_alloc_cables()
1122 cable->attrs[0] = &cable->attr_name.attr; in extcon_alloc_cables()
1123 cable->attrs[1] = &cable->attr_state.attr; in extcon_alloc_cables()
1124 cable->attrs[2] = NULL; in extcon_alloc_cables()
[all …]
H A Dextcon-lc824206xa.c115 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 Dextcon-fsa9480.c110 u16 cable; member
210 int cable = fls64(cables) - 1; in fsa9480_handle_change() local
212 extcon_set_state_sync(usbsw->edev, cable, attached); in fsa9480_handle_change()
213 cables &= ~BIT_ULL(cable); in fsa9480_handle_change()
236 fsa9480_handle_change(usbsw, usbsw->cable & ~val, false); in fsa9480_detect_dev()
239 fsa9480_handle_change(usbsw, val & ~usbsw->cable, true); in fsa9480_detect_dev()
241 usbsw->cable = val; in fsa9480_detect_dev()
H A Dextcon-axp288.c216 unsigned int cable = info->previous_cable; in axp288_handle_chrg_det_event() local
245 cable = EXTCON_CHG_USB_SDP; in axp288_handle_chrg_det_event()
249 cable = EXTCON_CHG_USB_CDP; in axp288_handle_chrg_det_event()
253 cable = EXTCON_CHG_USB_DCP; in axp288_handle_chrg_det_event()
257 cable = EXTCON_CHG_USB_SDP; in axp288_handle_chrg_det_event()
268 extcon_set_state_sync(info->edev, cable, vbus_attach); in axp288_handle_chrg_det_event()
269 if (cable == EXTCON_CHG_USB_SDP) in axp288_handle_chrg_det_event()
273 info->previous_cable = cable; in axp288_handle_chrg_det_event()
H A Dextcon-intel-cht-wc.c270 unsigned int cable, bool state) in cht_wc_extcon_set_state() argument
272 extcon_set_state_sync(ext->edev, cable, state); in cht_wc_extcon_set_state()
273 if (cable == EXTCON_CHG_USB_SDP) in cht_wc_extcon_set_state()
280 unsigned int cable = EXTCON_NONE; in cht_wc_extcon_pwrsrc_event() local
314 cable = ret; in cht_wc_extcon_pwrsrc_event()
321 if (cable != ext->previous_cable) { in cht_wc_extcon_pwrsrc_event()
322 cht_wc_extcon_set_state(ext, cable, true); in cht_wc_extcon_pwrsrc_event()
324 ext->previous_cable = cable; in cht_wc_extcon_pwrsrc_event()
/linux-6.15/Documentation/devicetree/bindings/power/supply/
H A Dcharger-manager.yaml125 "^cable[@-][0-9]$":
128 cm-cable-name:
145 cm-cable-extcon:
149 cm-cable-min:
153 cm-cable-max:
158 - cm-cable-name
159 - cm-cable-extcon
204 cable-0 {
205 cm-cable-name = "USB";
210 cable-1 {
[all …]
/linux-6.15/drivers/power/supply/
H A Dcharger-manager.c920 if (cable->attached && cable->min_uA != 0 && cable->max_uA != 0) { in charger_extcon_work()
922 cable->min_uA, cable->max_uA); in charger_extcon_work()
925 cable->charger->regulator_name, cable->name); in charger_extcon_work()
931 cable->min_uA, cable->max_uA); in charger_extcon_work()
956 cable->attached = event; in charger_extcon_notifier()
988 cable->extcon_dev = extcon_get_extcon_dev(cable->extcon_name); in charger_extcon_init()
991 cable->extcon_name, cable->name); in charger_extcon_init()
1009 cable->extcon_type, &cable->nb); in charger_extcon_init()
1012 cable->extcon_name, cable->name); in charger_extcon_init()
1060 cable->cm = cm; in charger_manager_register_extcon()
[all …]
H A Daxp288_charger.c129 struct extcon_dev *cable; member
139 } cable; member
680 schedule_work(&info->cable.work); in axp288_charger_handle_cable_evt()
829 cancel_work_sync(&info->cable.work); in axp288_charger_cancel_work()
869 if (IS_ERR(info->cable.edev)) { in axp288_charger_probe()
873 return PTR_ERR(info->cable.edev); in axp288_charger_probe()
888 if (IS_ERR(info->otg.cable)) { in axp288_charger_probe()
892 return PTR_ERR(info->otg.cable); in axp288_charger_probe()
922 &info->cable.nb); in axp288_charger_probe()
927 schedule_work(&info->cable.work); in axp288_charger_probe()
[all …]
/linux-6.15/Documentation/driver-api/usb/
H A Dtypec.rst22 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
105 in the cable or not. So a cable capable of SOP Prime communication, but not SOP
111 followed by registration of the cable plugs. The cable will be the parent device
[all …]
/linux-6.15/Documentation/ABI/testing/
H A Dsysfs-class-extcon35 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
H A Dsysfs-class-typec120 specification of the port partner or cable, or 0.0 when USB
250 USB Type-C cable devices (eg. /sys/class/typec/port0-cable/)
258 What: /sys/class/typec/<port>-cable/type
263 cable if it is known. If the product type of the cable is not
267 with PRODUCT_TYPE showing the product type of the cable.
277 What: /sys/class/typec/<port>-cable/plug_type
281 Shows type of the plug on the cable:
298 USB Type-C partner/cable Power Delivery Identity objects
302 cable (e.g /sys/class/typec/port0-cable/) devices. Consequently, the example file
306 What: /sys/class/typec/<port>-{partner|cable}/identity/
[all …]
/linux-6.15/Documentation/ABI/obsolete/
H A Dsysfs-class-typec4 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-6.15/include/linux/
H A Dextcon-provider.h28 struct extcon_dev *extcon_dev_allocate(const unsigned int *cable);
31 const unsigned int *cable);
81 static inline struct extcon_dev *extcon_dev_allocate(const unsigned int *cable) in extcon_dev_allocate() argument
89 const unsigned int *cable) in devm_extcon_dev_allocate() argument
/linux-6.15/Documentation/driver-api/
H A Dextcon.rst91 - ``supported_cable``: Array of supported cable types
92 - ``mutually_exclusive``: Array defining mutually exclusive cable types
95 exclusive cable types. The array should be terminated with a 0.
113 cable states, ensuring that the reported states are always consistent
122 Represents an individual cable managed by an Extcon device::
164 - ``cable.N/name``: Name of the Nth supported cable
165 - ``cable.N/state``: State of the Nth supported cable
252 - Defining supported cable types (USB and USB Host in this case).
254 - Setting an initial state for a cable (USB connected in this example).
/linux-6.15/Documentation/networking/diagnostic/
H A Dtwisted_pair_layer1_diagnostics.rst88 detected, indicating potential Layer 1 issues like a cable fault,
334 - **Command:** `ethtool --cable-test <interface>`
383 physical state of the cable. For example:
386 cable but also occur if the cable is properly attached to a powered-down link
408 - The cable is functioning correctly, and no issues were detected.
446 - **Next Steps**: Replace or repair the damaged cable. Inspect the cable for
452 discontinuity in the cable. This can happen when a part of the cable has
454 or when there is a defect in the cable).
468 rerouting the cable away from noise sources.
486 the cable manually if necessary.
[all …]
/linux-6.15/drivers/usb/typec/
H A Dclass.c70 return cable->identity; in get_pd_identity()
1287 kfree(cable); in typec_cable_release()
1322 put_device(&cable->dev); in typec_cable_put()
1334 return cable->active; in typec_cable_is_active()
1347 if (!cable->identity) in typec_cable_set_identity()
1368 struct typec_cable *cable; in typec_register_cable() local
1371 cable = kzalloc(sizeof(*cable), GFP_KERNEL); in typec_register_cable()
1372 if (!cable) in typec_register_cable()
1375 cable->type = desc->type; in typec_register_cable()
1396 put_device(&cable->dev); in typec_register_cable()
[all …]
/linux-6.15/Documentation/networking/
H A Dplip.rst26 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
118 printer "null" cable to transfer data four bits at a time using
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
156 If the cable you are using has a metallic shield it should be
165 nibbles into bytes. This cable should not be used on unidirectional
[all …]
/linux-6.15/drivers/usb/typec/altmodes/
H A Dthunderbolt.c29 struct typec_cable *cable; member
50 if (typec_cable_is_active(tbt->cable)) in tbt_enter_mode()
332 if (tbt->cable) in tbt_altmode_remove()
333 typec_cable_put(tbt->cable); in tbt_altmode_remove()
341 if (tbt->cable) in tbt_ready()
345 tbt->cable = typec_cable_get(typec_altmode2port(tbt->alt)); in tbt_ready()
346 if (!tbt->cable) in tbt_ready()
/linux-6.15/include/linux/usb/
H A Dtypec.h135 int typec_cable_set_identity(struct typec_cable *cable);
329 void typec_unregister_cable(struct typec_cable *cable);
332 void typec_cable_put(struct typec_cable *cable);
333 int typec_cable_is_active(struct typec_cable *cable);
335 struct typec_plug *typec_register_plug(struct typec_cable *cable,
365 void typec_cable_set_svdm_version(struct typec_cable *cable, enum usb_pd_svdm_ver svdm_version);
/linux-6.15/Documentation/spi/
H A Dbutterfly.rst6 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-6.15/drivers/ata/
H A Dpata_cs5535.c67 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-6.15/Documentation/userspace-api/media/dvb/
H A Dfrontend-property-cable-systems.rst3 .. _frontend-property-cable-systems:
6 Properties used on cable delivery systems
15 The DVB-C Annex-A is the widely used cable standard. Transmission uses

12345678