Home
last modified time | relevance | path

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

12345678910>>...18

/linux/sound/drivers/
H A 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);
144 struct loopback_cable *cable; member
212 /* call in cable->lock */
233 /* call in cable->lock */
236 struct loopback_cable *cable = dpcm->cable; in loopback_snd_timer_start() local
242 err = snd_timer_start(cable in loopback_snd_timer_start()
274 struct loopback_cable *cable = dpcm->cable; loopback_snd_timer_stop() local
304 struct loopback_cable *cable = dpcm->cable; loopback_snd_timer_close_cable() local
337 loopback_check_format(struct loopback_cable * cable,int stream) loopback_check_format() argument
406 struct loopback_cable *cable = dpcm->cable; loopback_trigger() local
463 struct loopback_cable *cable = dpcm->cable; params_change() local
483 struct loopback_cable *cable = dpcm->cable; loopback_prepare() local
647 loopback_jiffies_timer_pos_update(struct loopback_cable * cable) loopback_jiffies_timer_pos_update() argument
727 struct loopback_cable *cable = dpcm->cable; loopback_snd_timer_check_resolution() local
755 loopback_snd_timer_period_elapsed(struct loopback_cable * cable,int event,unsigned long resolution) loopback_snd_timer_period_elapsed() argument
836 struct loopback_cable *cable = timeri->callback_data; loopback_snd_timer_function() local
844 struct loopback_cable *cable; loopback_snd_timer_work() local
868 struct loopback_cable *cable = timeri->callback_data; loopback_snd_timer_event() local
897 struct loopback_cable *cable = dpcm->cable; loopback_snd_timer_dpcm_info() local
959 struct loopback_cable *cable = dpcm->cable; loopback_hw_free() local
979 struct loopback_cable *cable = dpcm->cable; rule_format() local
994 struct loopback_cable *cable = dpcm->cable; rule_rate() local
1010 struct loopback_cable *cable = dpcm->cable; rule_channels() local
1026 struct loopback_cable *cable = dpcm->cable; rule_period_bytes() local
1043 struct loopback_cable *cable; free_cable() local
1152 struct loopback_cable *cable = dpcm->cable; loopback_snd_timer_open() local
1237 struct loopback_cable *cable = NULL; loopback_open() local
1461 struct loopback_cable *cable; loopback_active_get() local
1714 struct loopback_cable *cable = loopback->cables[sub][num]; print_substream_info() local
[all...]
/linux/drivers/extcon/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
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-sm5502.c53 * 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 Dextcon-rt8973a.c62 * 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 …]
H A Dextcon.h11 * @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/... */
/linux/Documentation/devicetree/bindings/power/supply/
H A 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 …]
/linux/drivers/usb/chipidea/
H A 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 …]
/linux/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
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 …]
/linux/include/linux/power/
H A 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 …]
/linux/include/linux/usb/
H A Dpd_vdo.h95 * [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/include/dt-bindings/usb/
H A 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 …]
/linux/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
/linux/drivers/usb/typec/
H A Dclass.c68 struct typec_cable *cable = to_typec_cable(dev); in get_pd_identity() local
70 return cable->identity; in get_pd_identity()
297 * If a partner or cable plug executes Enter/Exit Mode command successfully, the
326 * Returns handle to the port that a cable plug or partner with @alt is
1105 /* Type-C Cable Plugs */
1181 * typec_plug_register_altmode - Register USB Type-C Cable Plug Alternate Mode
1182 * @plug: USB Type-C Cable Plug that supports the alternate mode
1201 * typec_register_plug - Register a USB Type-C Cable Plug
1202 * @cable: USB Type-C Cable with the plug
1203 * @desc: Description of the cable plug
[all …]
H A Dbus.c248 /* API for cable alternate modes */
253 * @sop: Cable plug target for Enter Mode command
256 * Alternate mode drivers use this function to enter mode on the cable plug.
285 * @sop: Cable plug target for Exit Mode command
287 * The alternate mode drivers use this function to exit mode on the cable plug.
310 * typec_cable_altmode_vdm - Send Vendor Defined Messages (VDM) between the cable plug and port.
312 * @sop: Cable plug target for VDM
318 * with the cable plugs. The port drivers use it to deliver the Structured VDMs
319 * received from the cable plugs to the alternate mode drivers.
353 * typec_altmode_get_plug - Find cable plug alternate mode
[all …]
H A DKconfig6 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/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
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/drivers/usb/serial/
H A Dpl2303.h71 /* Alcatel OT535/735 USB cable */
84 /* Nokia CA-42 Cable */
88 /* CA-42 CLONE Cable www.ca-42.com chipset: Prolific Technology Inc */
99 /* USB GSM cable from Speed Dragon Multimedia, Ltd */
103 /* DATAPILOT Universal-2 Phone Cable */
123 /* Y.C. Cable U.S.A., Inc - USB to RS-232 */
154 /* Sony, USB data cable for CMD-Jxx mobile phones */
158 /* Sanwa KB-USB2 multimeter cable (ID: 11ad:0001) */
/linux/drivers/power/supply/
H A Daxp288_charger.c129 struct extcon_dev *cable; member
134 /* SDP/CDP/DCP USB charging cable notifications */
139 } cable; member
588 * an OTG host cable is inserted and the ID pin on the micro-B receptacle is
591 * OTG host cable is removed. The Type-C connector has no ID pin, there is
620 container_of(work, struct axp288_chrg_info, cable.work); in axp288_charger_extcon_evt_worker()
622 struct extcon_dev *edev = info->cable.edev; in axp288_charger_extcon_evt_worker()
642 /* Determine cable/charger type */ in axp288_charger_extcon_evt_worker()
679 container_of(nb, struct axp288_chrg_info, cable.nb); in axp288_charger_handle_cable_evt()
680 schedule_work(&info->cable.work); in axp288_charger_handle_cable_evt()
[all …]
/linux/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/drivers/ata/
H A Dpata_cs5535.c58 * 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 Dprobe_roms.h273 * 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

12345678910>>...18