Home
last modified time | relevance | path

Searched full:cable (Results 1 – 25 of 1210) sorted by relevance

12345678910>>...49

/kernel/linux/linux-5.10/sound/drivers/
Daloop.c75 * call in cable->lock
79 * call in cable->lock
91 * call in cable->lock
93 unsigned int (*pos_update)(struct loopback_cable *cable);
142 struct loopback_cable *cable; member
207 /* call in cable->lock */
228 /* call in cable->lock */
231 struct loopback_cable *cable = dpcm->cable; in loopback_snd_timer_start() local
237 err = snd_timer_start(cable->snd_timer.instance, 1); in loopback_snd_timer_start()
241 * of the same cable in loopback_snd_timer_start()
[all …]
/kernel/linux/linux-6.6/sound/drivers/
Daloop.c74 * call in cable->lock
78 * call in cable->lock
90 * call in cable->lock
92 unsigned int (*pos_update)(struct loopback_cable *cable);
141 struct loopback_cable *cable; member
206 /* call in cable->lock */
227 /* call in cable->lock */
230 struct loopback_cable *cable = dpcm->cable; in loopback_snd_timer_start() local
236 err = snd_timer_start(cable->snd_timer.instance, 1); in loopback_snd_timer_start()
240 * of the same cable in loopback_snd_timer_start()
[all …]
/kernel/linux/linux-5.10/drivers/extcon/
Dextcon-max77693.c80 * Use delayed workqueue to detect cable state and then
81 * notify cable state to notifiee/platform through uevent.
83 * driver should notify cable state to upper layer.
247 * max77693_muic_set_path - Set hardware line according to attached cable
249 * @value: the path according to attached cable
250 * @attached: the state of cable (true:attached, false:detached)
254 * attached cable.
296 * max77693_muic_get_cable_type - Return cable type and check cable state
298 * @group: the path according to attached cable
299 * @attached: store cable state and return
[all …]
Dextcon-max8997.c49 /* Define supported cable type */
123 * Use delayed workqueue to detect cable state and then
124 * notify cable state to notifiee/platform through uevent.
126 * driver should notify cable state to upper layer.
185 * max8997_muic_set_path - Set hardware line according to attached cable
187 * @value: the path according to attached cable
188 * @attached: the state of cable (true:attached, false:detached)
192 * attached cable.
233 * max8997_muic_get_cable_type - Return cable type and check cable state
235 * @group: the path according to attached cable
[all …]
Dextcon.c204 * @cable_index: the index of this cable in the edev
205 * @attr_g: the attribute group for the cable
268 /* Find the the index of extcon cable in edev->supported_cable */ in find_cable_index_by_id()
321 struct extcon_cable *cable; in is_extcon_property_capability() local
329 cable = &edev->cables[index]; in is_extcon_property_capability()
333 ret = test_bit(prop - EXTCON_PROP_USB_MIN, cable->usb_bits); in is_extcon_property_capability()
336 ret = test_bit(prop - EXTCON_PROP_CHG_MIN, cable->chg_bits); in is_extcon_property_capability()
339 ret = test_bit(prop - EXTCON_PROP_JACK_MIN, cable->jack_bits); in is_extcon_property_capability()
342 ret = test_bit(prop - EXTCON_PROP_DISP_MIN, cable->disp_bits); in is_extcon_property_capability()
354 struct extcon_cable *cable = &edev->cables[index]; in init_property() local
[all …]
Dextcon-max14577.c85 * Use delayed workqueue to detect cable state and then
86 * notify cable state to notifiee/platform through uevent.
88 * driver should notify cable state to upper layer.
185 * max14577_muic_set_path - Set hardware line according to attached cable
187 * @value: the path according to attached cable
188 * @attached: the state of cable (true:attached, false:detached)
192 * attached cable.
243 * max14577_muic_get_cable_type - Return cable type and check cable state
245 * @group: the path according to attached cable
246 * @attached: store cable state and return
[all …]
/kernel/linux/linux-6.6/drivers/extcon/
Dextcon-max77693.c81 * 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 …]
Dextcon-max8997.c52 /* 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 …]
Dextcon.c205 * @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 …]
Dextcon-max14577.c86 * 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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dcharger-manager.txt11 - subnode <cable> :
12 - cm-cable-name : name of charger cable - one of USB, USB-HOST,
15 - cm-cable-extcon : name of extcon dev
16 (optional) - cm-cable-min : minimum current of cable
17 (optional) - cm-cable-max : maximum current of cable
77 cable@0 {
78 cm-cable-name = "USB";
79 cm-cable-extcon = "extcon-dev.0";
80 cm-cable-min = <475000>;
81 cm-cable-max = <500000>;
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/
Dcharger-manager.yaml125 "^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 …]
/kernel/linux/linux-5.10/drivers/usb/chipidea/
Dotg.c31 struct ci_hdrc_cable *cable; in hw_read_otgsc() local
38 cable = &ci->platdata->vbus_extcon; in hw_read_otgsc()
39 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
40 if (cable->changed) in hw_read_otgsc()
45 if (cable->connected) in hw_read_otgsc()
50 if (cable->enabled) in hw_read_otgsc()
56 cable = &ci->platdata->id_extcon; in hw_read_otgsc()
57 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
58 if (cable->changed) in hw_read_otgsc()
63 if (cable->connected) in hw_read_otgsc()
[all …]
/kernel/linux/linux-6.6/drivers/usb/chipidea/
Dotg.c31 struct ci_hdrc_cable *cable; in hw_read_otgsc() local
38 cable = &ci->platdata->vbus_extcon; in hw_read_otgsc()
39 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
40 if (cable->changed) in hw_read_otgsc()
45 if (cable->connected) in hw_read_otgsc()
50 if (cable->enabled) in hw_read_otgsc()
56 cable = &ci->platdata->id_extcon; in hw_read_otgsc()
57 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
58 if (cable->changed) in hw_read_otgsc()
63 if (cable->connected) in hw_read_otgsc()
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/usb/
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
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 …]
/kernel/linux/linux-6.6/Documentation/driver-api/usb/
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
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 …]
/kernel/linux/linux-5.10/drivers/usb/typec/
Dclass.c91 struct typec_cable *cable = to_typec_cable(dev); in get_pd_identity() local
93 return cable->identity; in get_pd_identity()
216 * If a partner or cable plug executes Enter/Exit Mode command successfully, the
245 * Returns handle to the port that a cable plug or partner with @alt is
663 /* Type-C Cable Plugs */
679 * typec_plug_register_altmode - Register USB Type-C Cable Plug Alternate Mode
680 * @plug: USB Type-C Cable Plug that supports the alternate mode
699 * typec_register_plug - Register a USB Type-C Cable Plug
700 * @cable: USB Type-C Cable with the plug
701 * @desc: Description of the cable plug
[all …]
/kernel/linux/linux-5.10/include/linux/power/
Dcharger-manager.h43 * @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 …]
/kernel/linux/linux-6.6/include/linux/power/
Dcharger-manager.h43 * @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 …]
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dsysfs-class-typec115 What: /sys/class/typec/<port>-{partner|cable}/usb_power_delivery_revision
120 specification of the port partner or cable, or 0.0 when USB
223 USB Type-C cable devices (eg. /sys/class/typec/port0-cable/)
225 Note: Electronically Marked Cables will have a device also for one cable plug
226 (eg. /sys/class/typec/port0-plug0). If the cable is active and has also SOP
231 What: /sys/class/typec/<port>-cable/type
236 cable if it is known. If the product type of the cable is not
239 When the cable product type is detected, uvevent is also raised
240 with PRODUCT_TYPE showing the product type of the cable.
246 active Active Cable
[all …]
/kernel/linux/linux-5.10/drivers/power/supply/
Dcharger-manager.c448 * duration exceed 'discharging _max_duration_ms', charger cable is
909 * of charger cable
915 struct charger_cable *cable = in charger_extcon_work() local
919 if (cable->attached && cable->min_uA != 0 && cable->max_uA != 0) { in charger_extcon_work()
920 ret = regulator_set_current_limit(cable->charger->consumer, in charger_extcon_work()
921 cable->min_uA, cable->max_uA); in charger_extcon_work()
924 cable->charger->regulator_name, cable->name); in charger_extcon_work()
929 cable->charger->regulator_name, in charger_extcon_work()
930 cable->min_uA, cable->max_uA); in charger_extcon_work()
938 * charger_extcon_notifier - receive the state of charger cable
[all …]
/kernel/linux/linux-6.6/drivers/power/supply/
Dcharger-manager.c448 * duration exceed 'discharging _max_duration_ms', charger cable is
909 * of charger cable
915 struct charger_cable *cable = in charger_extcon_work() local
919 if (cable->attached && cable->min_uA != 0 && cable->max_uA != 0) { in charger_extcon_work()
920 ret = regulator_set_current_limit(cable->charger->consumer, in charger_extcon_work()
921 cable->min_uA, cable->max_uA); in charger_extcon_work()
924 cable->charger->regulator_name, cable->name); in charger_extcon_work()
929 cable->charger->regulator_name, in charger_extcon_work()
930 cable->min_uA, cable->max_uA); in charger_extcon_work()
938 * charger_extcon_notifier - receive the state of charger cable
[all …]
/kernel/linux/linux-6.6/include/linux/usb/
Dpd_vdo.h93 * [3] :: (Product | Cable) VDO
109 * <29:27> :: product type (UFP / Cable / VPD)
114 * <15:0> :: USB-IF assigned VID for this cable vendor
127 /* SOP' Product Type (Cable Plug / VPD) */
157 * <31:0> : USB-IF assigned XID for this cable
258 * Cable VDO (for both Passive and Active Cable VDO in PD Rev2.0)
260 * <31:28> :: Cable HW version
261 * <27:24> :: Cable FW version
265 * <16:13> :: cable latency (0001 == <10ns(~1m length))
266 * <12:11> :: cable termination type (11b == both ends active VCONN req)
[all …]
/kernel/linux/linux-5.10/include/linux/usb/
Dtypec.h78 * @active_link_training: Active Cable Plug Link Training
109 int typec_cable_set_identity(struct typec_cable *cable);
118 * Description of an Alternate Mode which a connector, cable plug or partner
150 * struct typec_plug_desc - USB Type-C Cable Plug Descriptor
154 * Represents USB Type-C Cable Plug.
161 * struct typec_cable_desc - USB Type-C Cable Descriptor
162 * @type: The plug type from USB PD Cable VDO
163 * @active: Is the cable active or passive
166 * Represents USB Type-C Cable attached to USB Type-C port.
249 void typec_unregister_cable(struct typec_cable *cable);
[all …]
/kernel/linux/linux-6.6/include/dt-bindings/usb/
Dpd.h102 * <29:27> :: product type (UFP / Cable / VPD)
107 * <15:0> :: USB-IF assigned VID for this cable vendor
120 /* SOP' Product Type (Cable Plug / VPD) */
140 * <31:0> : USB-IF assigned XID for this cable
235 * Cable VDO (for both Passive and Active Cable VDO in PD Rev2.0)
237 * <31:28> :: Cable HW version
238 * <27:24> :: Cable FW version
242 * <16:13> :: cable latency (0001 == <10ns(~1m length))
243 * <12:11> :: cable termination type (11b == both ends active VCONN req)
249 * <4> :: Vbus through cable (0b == no, 1b == yes)
[all …]

12345678910>>...49