/linux-master/sound/drivers/ |
H A D | aloop.c | 74 * call in cable->lock 78 * call in cable->lock 90 * call in cable->lock 92 unsigned int (*pos_update)(struct loopback_cable *cable); 143 struct loopback_cable *cable; member in struct:loopback_pcm 211 /* call in cable->lock */ 232 /* call in cable->lock */ 235 struct loopback_cable *cable = dpcm->cable; local 241 err = snd_timer_start(cable 273 struct loopback_cable *cable = dpcm->cable; local 303 struct loopback_cable *cable = dpcm->cable; local 336 loopback_check_format(struct loopback_cable *cable, int stream) argument 405 struct loopback_cable *cable = dpcm->cable; local 462 struct loopback_cable *cable = dpcm->cable; local 482 struct loopback_cable *cable = dpcm->cable; local 645 loopback_jiffies_timer_pos_update(struct loopback_cable *cable) argument 726 struct loopback_cable *cable = dpcm->cable; local 754 loopback_snd_timer_period_elapsed(struct loopback_cable *cable, int event, unsigned long resolution) argument 835 struct loopback_cable *cable = timeri->callback_data; local 843 struct loopback_cable *cable; local 867 struct loopback_cable *cable = timeri->callback_data; local 896 struct loopback_cable *cable = dpcm->cable; local 959 struct loopback_cable *cable = dpcm->cable; local 979 struct loopback_cable *cable = dpcm->cable; local 994 struct loopback_cable *cable = dpcm->cable; local 1010 struct loopback_cable *cable = dpcm->cable; local 1026 struct loopback_cable *cable = dpcm->cable; local 1043 struct loopback_cable *cable; local 1150 struct loopback_cable *cable = dpcm->cable; local 1235 struct loopback_cable *cable = NULL; local 1459 struct loopback_cable *cable; local 1712 struct loopback_cable *cable = loopback->cables[sub][num]; local [all...] |
/linux-master/drivers/usb/chipidea/ |
H A D | otg.c | 31 struct ci_hdrc_cable *cable; local 38 cable = &ci->platdata->vbus_extcon; 39 if (!IS_ERR(cable->edev) || ci->role_switch) { 40 if (cable->changed) 45 if (cable->connected) 50 if (cable->enabled) 56 cable = &ci->platdata->id_extcon; 57 if (!IS_ERR(cable->edev) || ci->role_switch) { 58 if (cable->changed) 63 if (cable 85 struct ci_hdrc_cable *cable; local [all...] |
H A D | core.c | 618 struct ci_hdrc_cable *cable; local 621 cable = &ci->platdata->id_extcon; 622 cable->changed = true; 623 cable->connected = true; 624 cable = &ci->platdata->vbus_extcon; 625 cable->changed = true; 626 cable->connected = false; 628 cable = &ci->platdata->id_extcon; 629 cable->changed = true; 630 cable 681 struct ci_hdrc_cable *cable; local [all...] |
/linux-master/drivers/extcon/ |
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 */ 323 struct extcon_cable *cable; local 331 cable = &edev->cables[index]; 335 ret = test_bit(prop - EXTCON_PROP_USB_MIN, cable->usb_bits); 338 ret = test_bit(prop - EXTCON_PROP_CHG_MIN, cable->chg_bits); 341 ret = test_bit(prop - EXTCON_PROP_JACK_MIN, cable->jack_bits); 344 ret = test_bit(prop - EXTCON_PROP_DISP_MIN, cable->disp_bits); 356 struct extcon_cable *cable local 399 struct extcon_cable *cable = container_of(attr, struct extcon_cable, local 410 struct extcon_cable *cable = container_of(attr, struct extcon_cable, local 628 struct extcon_cable *cable; local 707 struct extcon_cable *cable; local 831 struct extcon_cable *cable; local 1093 struct extcon_cable *cable; local [all...] |
H A D | extcon-fsa9480.c | 110 u16 cable; member in struct:fsa9480_usbsw 210 int cable = fls64(cables) - 1; local 212 extcon_set_state_sync(usbsw->edev, cable, attached); 213 cables &= ~BIT_ULL(cable); 236 fsa9480_handle_change(usbsw, usbsw->cable & ~val, false); 239 fsa9480_handle_change(usbsw, val & ~usbsw->cable, true); 241 usbsw->cable = val;
|
H A D | extcon-axp288.c | 3 * extcon-axp288.c - X-Power AXP288 PMIC extcon cable detection driver 216 unsigned int cable = info->previous_cable; local 244 dev_dbg(info->dev, "sdp cable is connected\n"); 245 cable = EXTCON_CHG_USB_SDP; 248 dev_dbg(info->dev, "cdp cable is connected\n"); 249 cable = EXTCON_CHG_USB_CDP; 252 dev_dbg(info->dev, "dcp cable is connected\n"); 253 cable = EXTCON_CHG_USB_DCP; 257 cable = EXTCON_CHG_USB_SDP; 268 extcon_set_state_sync(info->edev, cable, vbus_attac [all...] |
H A D | extcon-intel-cht-wc.c | 270 unsigned int cable, bool state) 272 extcon_set_state_sync(ext->edev, cable, state); 273 if (cable == EXTCON_CHG_USB_SDP) 280 unsigned int cable = EXTCON_NONE; local 314 cable = ret; 321 if (cable != ext->previous_cable) { 322 cht_wc_extcon_set_state(ext, cable, true); 324 ext->previous_cable = cable; 525 * When a host-cable is detected the BIOS enables an external 5v boost 269 cht_wc_extcon_set_state(struct cht_wc_extcon_data *ext, unsigned int cable, bool state) argument
|
/linux-master/include/linux/ |
H A D | extcon-provider.h | 28 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) argument 89 const unsigned int *cable) 88 devm_extcon_dev_allocate(struct device *dev, const unsigned int *cable) argument
|
/linux-master/drivers/power/supply/ |
H A D | charger-manager.c | 448 * duration exceed 'discharging _max_duration_ms', charger cable is 909 * of charger cable 915 struct charger_cable *cable = local 919 if (cable->attached && cable->min_uA != 0 && cable->max_uA != 0) { 920 ret = regulator_set_current_limit(cable->charger->consumer, 921 cable->min_uA, cable->max_uA); 924 cable 948 struct charger_cable *cable = local 973 charger_extcon_init(struct charger_manager *cm, struct charger_cable *cable) argument 1050 struct charger_cable *cable = &charger->cables[j]; local [all...] |
H A D | axp288_charger.c | 129 struct extcon_dev *cable; member in struct:axp288_chrg_info::__anon579 134 /* SDP/CDP/DCP USB charging cable notifications */ 139 } cable; member in struct:axp288_chrg_info 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); 622 struct extcon_dev *edev = info->cable.edev; 642 /* Determine cable/charger type */ 679 container_of(nb, struct axp288_chrg_info, cable.nb); 680 schedule_work(&info->cable [all...] |
/linux-master/include/linux/usb/ |
H A D | typec.h | 124 int typec_cable_set_identity(struct typec_cable *cable); 133 * Description of an Alternate Mode which a connector, cable plug or partner 189 * @active: Is the cable active or passive 305 void typec_unregister_cable(struct typec_cable *cable); 308 void typec_cable_put(struct typec_cable *cable); 309 int typec_cable_is_active(struct typec_cable *cable); 311 struct typec_plug *typec_register_plug(struct typec_cable *cable, 341 void typec_cable_set_svdm_version(struct typec_cable *cable, enum usb_pd_svdm_ver svdm_version);
|
/linux-master/drivers/usb/typec/ |
H A D | class.c | 67 struct typec_cable *cable = to_typec_cable(dev); local 69 return cable->identity; 289 * If a partner or cable plug executes Enter/Exit Mode command successfully, the 318 * Returns handle to the port that a cable plug or partner with @alt is 1054 * @cable: USB Type-C Cable with the plug 1055 * @desc: Description of the cable plug 1061 * Returns handle to the cable plug on success or ERR_PTR on failure. 1063 struct typec_plug *typec_register_plug(struct typec_cable *cable, argument 1080 plug->dev.parent = &cable->dev; 1082 dev_set_name(&plug->dev, "%s-%s", dev_name(cable 1121 struct typec_cable *cable = to_typec_cable(dev); local 1137 struct typec_cable *cable = to_typec_cable(dev); local 1176 typec_cable_put(struct typec_cable *cable) argument 1188 typec_cable_is_active(struct typec_cable *cable) argument 1201 typec_cable_set_identity(struct typec_cable *cable) argument 1224 struct typec_cable *cable; local 1266 typec_unregister_cable(struct typec_cable *cable) argument 1712 struct typec_cable *cable = to_typec_cable(dev); local 2173 typec_cable_set_svdm_version(struct typec_cable *cable, enum usb_pd_svdm_ver svdm_version) argument [all...] |
/linux-master/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; local 70 pci_read_config_byte(pdev, CS5535_CABLE_DETECT, &cable); 71 if (cable & 1)
|
H A D | pata_macio.c | 132 * 40 connector cable and to 4 on 80 connector one. 478 /* Get cable type from device-tree */ 483 const char* cable = of_get_property(priv->node, "cable-type", local 490 if (cable && !strncmp(cable, "80-", 3)) { 491 /* Some drives fail to detect 80c cable in PowerBook 492 * These machine use proprietary short IDE cable 502 /* G5's seem to have incorrect cable type in device-tree. 503 * Let's assume they always have a 80 conductor cable, thi [all...] |
/linux-master/drivers/platform/chrome/ |
H A D | cros_ec_typec.h | 51 struct typec_cable *cable; member in struct:cros_typec_port 56 /* Port cable PD identity info. */
|
H A D | cros_ec_typec.c | 241 if (!port->cable) 248 typec_unregister_cable(port->cable); 249 port->cable = NULL; 429 * cros_typec_get_cable_vdo() - Get Cable VDO of the connected cable 548 /* Get cable VDO for cables with DPSID to check DPAM2.1 is supported */ 552 * Get cable VDO for thunderbolt cables and cables with DPSID but does not 889 port->cable = typec_register_cable(port->port, &c_desc); 890 if (IS_ERR(port->cable)) { 891 ret = PTR_ERR(port->cable); 892 port->cable [all...] |
/linux-master/drivers/net/wan/ |
H A D | wanxl.h | 46 #define DOORBELL_FROM_CARD_CABLE_0 5 /* cable/PM/etc. changed */ 138 volatile u32 cable; member in struct:__anon876
|
H A D | wanxl.c | 110 u32 value = get_status(port)->cable; 112 const char *cable, *pm, *dte = "", *dsr = "", *dcd = ""; local 116 cable = "V.35"; 119 cable = "X.21"; 122 cable = "V.24"; 125 cable = "EIA530"; 128 cable = "no"; 131 cable = "invalid"; 165 netdev_info(port->dev, "%s%s module, %s cable%s%s\n", 166 pm, dte, cable, ds [all...] |
/linux-master/drivers/usb/gadget/function/ |
H A D | f_midi2.c | 88 u8 in_group_to_cable[SNDRV_UMP_MAX_GROUPS]; /* map to cable; 1-based! */ 100 /* mapping from MIDI 1.0 cable to UMP group */ 763 static bool process_midi1_byte(struct f_midi2 *midi2, u8 cable, u8 b, argument 766 struct f_midi2_midi1_port *port = &midi2->midi1_port[cable]; 767 u8 p[4] = { cable << 4, 0, 0, 0 }; 934 unsigned int cable, c; local 936 for (cable = 0; cable < midi2->num_midi1_in; cable++) { 937 struct f_midi2_midi1_port *port = &midi2->midi1_port[cable]; 959 fill_midi1_pending_buf(struct f_midi2 *midi2, u8 cable, u8 *buf, unsigned int size) argument 978 unsigned char group, cable; local 1049 unsigned int group, cable, bytes, c, len; local [all...] |
H A D | f_midi.c | 47 * We can only handle 16 cables on one single endpoint, as cable numbers are 74 uint8_t cable; member in struct:gmidi_in_port 240 static void f_midi_read_data(struct usb_ep *ep, int cable, argument 244 struct snd_rawmidi_substream *substream = midi->out_substream[cable]; 250 if (!test_bit(cable, &midi->out_triggered)) 263 int cable = buf[i] >> 4; local 265 f_midi_read_data(ep, cable, &buf[i + 1], length); 450 uint8_t p[4] = { port->cable << 4, 0, 0, 0 }; 1355 midi->in_ports_array[i].cable = i;
|
/linux-master/sound/usb/ |
H A D | midi.c | 137 uint8_t cable; /* cable number << 4 */ member in struct:snd_usb_midi_out_endpoint::usbmidi_out_port 396 int cable = buffer[i] >> 4; local 398 snd_usbmidi_input_data(ep, cable, &buffer[i + 1], 428 int cable = buffer[i] >> 4; local 430 struct usbmidi_in_port *port = &ep->ports[cable]; 452 snd_usbmidi_input_data(ep, cable, &buffer[i + 1], 544 uint8_t p0 = port->cable; 1436 ep->ports[i].cable = i << 4; 2231 int cable, er local [all...] |
/linux-master/drivers/usb/typec/ucsi/ |
H A D | ucsi.c | 793 ret = typec_cable_set_identity(con->cable); 795 dev_err(con->ucsi->dev, "Failed to set cable identity (%d)\n", 888 plug = typec_register_plug(con->cable, &desc); 912 struct typec_cable *cable; local 936 cable = typec_register_cable(con->port, &desc); 937 if (IS_ERR(cable)) { 939 "con%d: failed to register cable (%ld)\n", con->num, 940 PTR_ERR(cable)); 941 return PTR_ERR(cable); 944 con->cable [all...] |
/linux-master/drivers/usb/renesas_usbhs/ |
H A D | common.c | 445 int cable; local 460 cable = extcon_get_state(priv->edev, EXTCON_USB_HOST); 461 if ((cable > 0 && id != USBHS_HOST) || 462 (!cable && id != USBHS_GADGET)) { 464 "USB cable plugged in doesn't match the selected role!\n");
|
/linux-master/drivers/phy/rockchip/ |
H A D | phy-rockchip-inno-usb2.c | 649 static unsigned int cable; local 683 dev_dbg(&rport->phy->dev, "sdp cable is connected\n"); 688 cable = EXTCON_CHG_USB_SDP; 691 dev_dbg(&rport->phy->dev, "dcp cable is connected\n"); 695 cable = EXTCON_CHG_USB_DCP; 698 dev_dbg(&rport->phy->dev, "cdp cable is connected\n"); 703 cable = EXTCON_CHG_USB_CDP; 723 cable, vbus_attach); 724 if (cable == EXTCON_CHG_USB_SDP)
|
/linux-master/drivers/usb/typec/tcpm/ |
H A D | tcpm.c | 335 struct typec_cable *cable; member in struct:tcpm_port 536 * Vconn source and cable plug will use the lower of their two revisions. 540 * 1. If the cable revision (1) is lower than the revision negotiated 542 * on revision (2), but the port and cable will communicate on revision (1). 543 * 2. If the cable revision (1) is higher than the revision negotiated 545 * on revision (2), and the port and cable will communicate on revision (2) 1602 * Attempt to consume identity only if cable currently is not set 1604 if (!IS_ERR_OR_NULL(port->cable)) 1607 /* Reset cable identity */ 1610 /* Fill out id header, cert, product, cable VD [all...] |