Home
last modified time | relevance | path

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

123456

/Linux-v4.19/drivers/usb/chipidea/
Dotg.c30 struct ci_hdrc_cable *cable; in hw_read_otgsc() local
37 cable = &ci->platdata->vbus_extcon; in hw_read_otgsc()
38 if (!IS_ERR(cable->edev)) { in hw_read_otgsc()
39 if (cable->changed) in hw_read_otgsc()
44 if (cable->connected) in hw_read_otgsc()
49 if (cable->enabled) in hw_read_otgsc()
55 cable = &ci->platdata->id_extcon; in hw_read_otgsc()
56 if (!IS_ERR(cable->edev)) { in hw_read_otgsc()
57 if (cable->changed) in hw_read_otgsc()
62 if (cable->connected) in hw_read_otgsc()
[all …]
Dcore.c605 struct ci_hdrc_cable *cable; in ci_get_platdata() local
703 cable = &platdata->vbus_extcon; in ci_get_platdata()
704 cable->nb.notifier_call = ci_cable_notifier; in ci_get_platdata()
705 cable->edev = ext_vbus; in ci_get_platdata()
708 ret = extcon_get_state(cable->edev, EXTCON_USB); in ci_get_platdata()
710 cable->connected = true; in ci_get_platdata()
712 cable->connected = false; in ci_get_platdata()
715 cable = &platdata->id_extcon; in ci_get_platdata()
716 cable->nb.notifier_call = ci_cable_notifier; in ci_get_platdata()
717 cable->edev = ext_id; in ci_get_platdata()
[all …]
/Linux-v4.19/sound/drivers/
Daloop.c107 struct loopback_cable *cable; member
204 static int loopback_check_format(struct loopback_cable *cable, int stream) in loopback_check_format() argument
211 if (cable->valid != CABLE_VALID_BOTH) { in loopback_check_format()
216 runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> in loopback_check_format()
218 cruntime = cable->streams[SNDRV_PCM_STREAM_CAPTURE]-> in loopback_check_format()
228 snd_pcm_stop(cable->streams[SNDRV_PCM_STREAM_CAPTURE]-> in loopback_check_format()
231 runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> in loopback_check_format()
233 setup = get_setup(cable->streams[SNDRV_PCM_STREAM_PLAYBACK]); in loopback_check_format()
234 card = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]->loopback->card; in loopback_check_format()
265 struct loopback_cable *cable = dpcm->cable; in loopback_trigger() local
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/power/supply/
Dcharger-manager.txt12 - subnode <cable> :
13 - cm-cable-name : name of charger cable
14 - cm-cable-extcon : name of extcon dev
15 (optional) - cm-cable-min : minimum current of cable
16 (optional) - cm-cable-max : maximum current of cable
67 cable@0 {
68 cm-cable-name = "USB";
69 cm-cable-extcon = "extcon-dev.0";
70 cm-cable-min = <475000>;
71 cm-cable-max = <500000>;
[all …]
/Linux-v4.19/drivers/extcon/
Dextcon.c311 struct extcon_cable *cable; in is_extcon_property_capability() local
319 cable = &edev->cables[index]; in is_extcon_property_capability()
323 ret = test_bit(prop - EXTCON_PROP_USB_MIN, cable->usb_bits); in is_extcon_property_capability()
326 ret = test_bit(prop - EXTCON_PROP_CHG_MIN, cable->chg_bits); in is_extcon_property_capability()
329 ret = test_bit(prop - EXTCON_PROP_JACK_MIN, cable->jack_bits); in is_extcon_property_capability()
332 ret = test_bit(prop - EXTCON_PROP_DISP_MIN, cable->disp_bits); in is_extcon_property_capability()
344 struct extcon_cable *cable = &edev->cables[index]; in init_property() local
347 memset(cable->usb_propval, 0, sizeof(cable->usb_propval)); in init_property()
349 memset(cable->chg_propval, 0, sizeof(cable->chg_propval)); in init_property()
351 memset(cable->jack_propval, 0, sizeof(cable->jack_propval)); in init_property()
[all …]
Dextcon-intel-cht-wc.c204 unsigned int cable, bool state) in cht_wc_extcon_set_state() argument
206 extcon_set_state_sync(ext->edev, cable, state); in cht_wc_extcon_set_state()
207 if (cable == EXTCON_CHG_USB_SDP) in cht_wc_extcon_set_state()
214 unsigned int cable = EXTCON_NONE; in cht_wc_extcon_pwrsrc_event() local
239 cable = ret; in cht_wc_extcon_pwrsrc_event()
246 if (cable != ext->previous_cable) { in cht_wc_extcon_pwrsrc_event()
247 cht_wc_extcon_set_state(ext, cable, true); in cht_wc_extcon_pwrsrc_event()
249 ext->previous_cable = cable; in cht_wc_extcon_pwrsrc_event()
Dextcon-axp288.c221 unsigned int cable = info->previous_cable; in axp288_handle_chrg_det_event() local
246 cable = EXTCON_CHG_USB_SDP; in axp288_handle_chrg_det_event()
250 cable = EXTCON_CHG_USB_CDP; in axp288_handle_chrg_det_event()
254 cable = EXTCON_CHG_USB_DCP; in axp288_handle_chrg_det_event()
258 cable = EXTCON_CHG_USB_SDP; in axp288_handle_chrg_det_event()
267 extcon_set_state_sync(info->edev, cable, vbus_attach); in axp288_handle_chrg_det_event()
268 if (cable == EXTCON_CHG_USB_SDP) in axp288_handle_chrg_det_event()
272 info->previous_cable = cable; in axp288_handle_chrg_det_event()
/Linux-v4.19/Documentation/driver-api/usb/
Dtypec.rst21 the roles and alternate modes of ports, partners and cable plugs when the port
38 The cable and the two plugs on it may also be optionally presented as their own
39 devices under /sys/class/typec/. The cable attached to the port "port0" port
40 will be named port0-cable and the plug on the SOP Prime end (see USB Power
42 Double Prime end "port0-plug1". The parent of a cable will always be the port,
43 and the parent of the cable plugs will always be the cable.
45 If the port, partner or cable plug supports Alternate Modes, every supported
101 After successful connection of a cable that supports USB Power Delivery
102 Structured VDM "Discover Identity", the port driver needs to register the cable
104 in the cable or not. So a cable capable of SOP Prime communication, but not SOP
[all …]
/Linux-v4.19/drivers/power/supply/
Daxp288_charger.c131 struct extcon_dev *cable; member
141 } cable; member
558 container_of(work, struct axp288_chrg_info, cable.work); in axp288_charger_extcon_evt_worker()
560 struct extcon_dev *edev = info->cable.edev; in axp288_charger_extcon_evt_worker()
607 container_of(nb, struct axp288_chrg_info, cable.nb); in axp288_charger_handle_cable_evt()
608 schedule_work(&info->cable.work); in axp288_charger_handle_cable_evt()
616 struct extcon_dev *edev = info->otg.cable; in axp288_charger_otg_evt_worker()
740 cancel_work_sync(&info->cable.work); in axp288_charger_cancel_work()
770 info->cable.edev = extcon_get_extcon_dev(AXP288_EXTCON_DEV_NAME); in axp288_charger_probe()
771 if (info->cable.edev == NULL) { in axp288_charger_probe()
[all …]
Dcharger-manager.c1132 struct charger_cable *cable = in charger_extcon_work() local
1136 if (cable->attached && cable->min_uA != 0 && cable->max_uA != 0) { in charger_extcon_work()
1137 ret = regulator_set_current_limit(cable->charger->consumer, in charger_extcon_work()
1138 cable->min_uA, cable->max_uA); in charger_extcon_work()
1141 cable->charger->regulator_name, cable->name); in charger_extcon_work()
1146 cable->charger->regulator_name, in charger_extcon_work()
1147 cable->min_uA, cable->max_uA); in charger_extcon_work()
1150 try_charger_enable(cable->cm, cable->attached); in charger_extcon_work()
1164 struct charger_cable *cable = in charger_extcon_notifier() local
1171 cable->attached = event; in charger_extcon_notifier()
[all …]
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-class-extcon35 The /sys/class/extcon/.../state shows and stores the cable
62 interface associated with each cable cannot update
63 multiple cable states of an extcon device simultaneously.
65 What: /sys/class/extcon/.../cable.x/name
69 The /sys/class/extcon/.../cable.x/name shows the name of cable
72 What: /sys/class/extcon/.../cable.x/state
76 The /sys/class/extcon/.../cable.x/state shows and stores the
77 state of cable "x" (integer between 0 and 31) of an extcon
Dsysfs-class-typec165 USB Type-C cable devices (eg. /sys/class/typec/port0-cable/)
167 Note: Electronically Marked Cables will have a device also for one cable plug
168 (eg. /sys/class/typec/port0-plug0). If the cable is active and has also SOP
173 What: /sys/class/typec/<port>-cable/type
177 Shows if the cable is active.
180 What: /sys/class/typec/<port>-cable/plug_type
184 Shows type of the plug on the cable:
190 What: /sys/class/typec/<port>-cable/identity/
200 What: /sys/class/typec/<port>-cable/identity/id_header
208 What: /sys/class/typec/<port>-cable/identity/cert_stat
[all …]
/Linux-v4.19/drivers/usb/typec/
Dclass.c89 struct typec_cable *cable = to_typec_cable(dev); in get_pd_identity() local
91 return cable->identity; in get_pd_identity()
738 struct typec_plug *typec_register_plug(struct typec_cable *cable, in typec_register_plug() argument
754 plug->dev.parent = &cable->dev; in typec_register_plug()
756 dev_set_name(&plug->dev, "%s-%s", dev_name(cable->dev.parent), name); in typec_register_plug()
760 dev_err(&cable->dev, "failed to register plug (%d)\n", ret); in typec_register_plug()
787 struct typec_cable *cable = to_typec_cable(dev); in type_show() local
789 return sprintf(buf, "%s\n", cable->active ? "active" : "passive"); in type_show()
804 struct typec_cable *cable = to_typec_cable(dev); in plug_type_show() local
806 return sprintf(buf, "%s\n", typec_plug_types[cable->type]); in plug_type_show()
[all …]
DKconfig5 USB Type-C Specification defines a cable and connector for USB where
7 be Type-A plug on one end of the cable and Type-B plug on the other.
10 cable. The Configuration Channel may also be used to detect optional
18 5V, up to 20V, and current up to 5A over the cable. The USB Power
38 consuming power over the cable) or data role (host or device) when
86 role and cable orientation.
/Linux-v4.19/Documentation/ABI/obsolete/
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-v4.19/include/linux/
Dextcon-provider.h36 extern struct extcon_dev *extcon_dev_allocate(const unsigned int *cable);
39 const unsigned int *cable);
89 static inline struct extcon_dev *extcon_dev_allocate(const unsigned int *cable) in extcon_dev_allocate() argument
97 const unsigned int *cable) in devm_extcon_dev_allocate() argument
/Linux-v4.19/Documentation/networking/
DPLIP.txt22 LapLink null-printer cable [can also work in turbo mode, with a PLIP
23 cable]. [The protocol used to pack IP packages, is a simple one
31 The PLIP cable is all that's needed to connect two Linux boxes, and it
68 PLIP driver is signaled whenever data is sent to it via the cable, such that
114 printer "null" cable to transfer data four bits at a time using
125 The cable for the first transfer mode is a standard
126 printer "null" cable which transfers data four bits at a time using
133 A cable that implements this protocol is available commercially as a
134 "Null Printer" or "Turbo Laplink" cable. It can be constructed with
151 If the cable you are using has a metallic shield it should be
[all …]
DREADME.sb10002 as NextLevel) SURFboard1000 internal cable modem board. This is an ISA card
3 which is used by a number of cable TV companies to provide cable modem access.
4 It's a one-way downstream-only cable modem, meaning that your upstream net link
17 to configure the cable modem and network interface (usually called "cm0");
21 cable modem easy.
31 http://web.archive.org/web/*/http://linuxpower.cx/~cable/
86 phone number, and frequency for the cable modem. Also edit pap-secrets
102 connect successfully the cable modem interface will come up and you'll see a
109 The command "cmconfig cm0" will give you information about the cable modem
181 (and typically during a lengthy download through the cable modem)!
/Linux-v4.19/Documentation/spi/
Dbutterfly5 a parallel port adapter cable, together with an "AVR Butterfly" to run
9 develop firmware for this, and flash it using this adapter cable.
11 You can make this adapter from an old printer cable and solder things
24 The first cable connections will hook Linux up to one SPI bus, with the
42 (c) cable in the chipselect.
/Linux-v4.19/drivers/ata/
Dpata_cs5535.c79 u8 cable; in cs5535_cable_detect() local
82 pci_read_config_byte(pdev, CS5535_CABLE_DETECT, &cable); in cs5535_cable_detect()
83 if (cable & 1) in cs5535_cable_detect()
/Linux-v4.19/Documentation/media/uapi/dvb/
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
/Linux-v4.19/include/linux/usb/
Dtypec.h90 int typec_cable_set_identity(struct typec_cable *cable);
228 void typec_unregister_cable(struct typec_cable *cable);
230 struct typec_plug *typec_register_plug(struct typec_cable *cable,
/Linux-v4.19/drivers/net/wan/
Dwanxl.c120 u32 value = get_status(port)->cable; in wanxl_cable_intr()
122 const char *cable, *pm, *dte = "", *dsr = "", *dcd = ""; in wanxl_cable_intr() local
125 case STATUS_CABLE_V35: cable = "V.35"; break; in wanxl_cable_intr()
126 case STATUS_CABLE_X21: cable = "X.21"; break; in wanxl_cable_intr()
127 case STATUS_CABLE_V24: cable = "V.24"; break; in wanxl_cable_intr()
128 case STATUS_CABLE_EIA530: cable = "EIA530"; break; in wanxl_cable_intr()
129 case STATUS_CABLE_NONE: cable = "no"; break; in wanxl_cable_intr()
130 default: cable = "invalid"; in wanxl_cable_intr()
152 pm, dte, cable, dsr, dcd); in wanxl_cable_intr()
/Linux-v4.19/Documentation/devicetree/bindings/sound/
Dsunxi,sun4i-spdif.txt4 processor to receive and transmit digital audio via an coaxial cable or
5 a fibre cable.
Drockchip-spdif.txt4 processor to receive and transmit digital audio via an coaxial cable or
5 a fibre cable.

123456