/drivers/usb/chipidea/ |
D | otg.c | 31 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 …]
|
D | core.c | 618 struct ci_hdrc_cable *cable; in ci_usb_role_switch_set() local 621 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set() 622 cable->changed = true; in ci_usb_role_switch_set() 623 cable->connected = true; in ci_usb_role_switch_set() 624 cable = &ci->platdata->vbus_extcon; 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() 628 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set() 629 cable->changed = true; in ci_usb_role_switch_set() 630 cable->connected = false; in ci_usb_role_switch_set() [all …]
|
/drivers/extcon/ |
D | extcon.c | 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 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() [all …]
|
D | extcon-fsa9480.c | 110 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()
|
D | extcon-axp288.c | 216 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()
|
D | extcon-intel-cht-wc.c | 270 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()
|
D | Kconfig | 10 may be used to connect an HDMI cable and a AC adaptor, and to 146 Say Y here to enable SPMI PMIC based USB cable detection 176 Say Y here to enable GPIO based USB cable detection extcon support. 183 Say Y here to enable USB Type C cable detection extcon support when 192 Say Y here to enable support for USB Type C cable detection extcon
|
/drivers/power/supply/ |
D | charger-manager.c | 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() 948 struct charger_cable *cable = in charger_extcon_notifier() local 955 cable->attached = event; in charger_extcon_notifier() 961 schedule_work(&cable->wq); in charger_extcon_notifier() [all …]
|
D | axp288_charger.c | 129 struct extcon_dev *cable; member 139 } cable; member 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() 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() 688 struct extcon_dev *edev = info->otg.cable; in axp288_charger_otg_evt_worker() 829 cancel_work_sync(&info->cable.work); in axp288_charger_cancel_work() 868 info->cable.edev = extcon_get_extcon_dev(AXP288_EXTCON_DEV_NAME); in axp288_charger_probe() 869 if (IS_ERR(info->cable.edev)) { in axp288_charger_probe() [all …]
|
/drivers/usb/typec/ |
D | class.c | 66 struct typec_cable *cable = to_typec_cable(dev); in get_pd_identity() local 68 return cable->identity; in get_pd_identity() 1017 struct typec_plug *typec_register_plug(struct typec_cable *cable, in typec_register_plug() argument 1034 plug->dev.parent = &cable->dev; in typec_register_plug() 1036 dev_set_name(&plug->dev, "%s-%s", dev_name(cable->dev.parent), name); in typec_register_plug() 1040 dev_err(&cable->dev, "failed to register plug (%d)\n", ret); in typec_register_plug() 1075 struct typec_cable *cable = to_typec_cable(dev); in plug_type_show() local 1077 return sprintf(buf, "%s\n", typec_plug_types[cable->type]); in plug_type_show() 1091 struct typec_cable *cable = to_typec_cable(dev); in typec_cable_release() local 1093 kfree(cable); in typec_cable_release() [all …]
|
D | Kconfig | 6 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
|
/drivers/ata/ |
D | pata_cs5535.c | 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()
|
/drivers/net/wan/ |
D | wanxl.c | 110 u32 value = get_status(port)->cable; in wanxl_cable_intr() 112 const char *cable, *pm, *dte = "", *dsr = "", *dcd = ""; in wanxl_cable_intr() local 116 cable = "V.35"; in wanxl_cable_intr() 119 cable = "X.21"; in wanxl_cable_intr() 122 cable = "V.24"; in wanxl_cable_intr() 125 cable = "EIA530"; in wanxl_cable_intr() 128 cable = "no"; in wanxl_cable_intr() 131 cable = "invalid"; in wanxl_cable_intr() 166 pm, dte, cable, dsr, dcd); in wanxl_cable_intr()
|
D | wanxl.h | 138 volatile u32 cable; member
|
/drivers/usb/gadget/function/ |
D | f_midi2.c | 774 static bool process_midi1_byte(struct f_midi2 *midi2, u8 cable, u8 b, in process_midi1_byte() argument 777 struct f_midi2_midi1_port *port = &midi2->midi1_port[cable]; in process_midi1_byte() 778 u8 p[4] = { cable << 4, 0, 0, 0 }; in process_midi1_byte() 945 unsigned int cable, c; in process_midi1_pending_buf() local 947 for (cable = 0; cable < midi2->num_midi1_in; cable++) { in process_midi1_pending_buf() 948 struct f_midi2_midi1_port *port = &midi2->midi1_port[cable]; in process_midi1_pending_buf() 953 if (process_midi1_byte(midi2, cable, port->buf[c], in process_midi1_pending_buf() 970 static void fill_midi1_pending_buf(struct f_midi2 *midi2, u8 cable, u8 *buf, in fill_midi1_pending_buf() argument 973 struct f_midi2_midi1_port *port = &midi2->midi1_port[cable]; in fill_midi1_pending_buf() 989 unsigned char group, cable; in process_midi1_transmit() local [all …]
|
D | f_midi.c | 75 uint8_t cable; member 241 static void f_midi_read_data(struct usb_ep *ep, int cable, in f_midi_read_data() argument 245 struct snd_rawmidi_substream *substream = midi->out_substream[cable]; in f_midi_read_data() 251 if (!test_bit(cable, &midi->out_triggered)) in f_midi_read_data() 264 int cable = buf[i] >> 4; in f_midi_handle_out_data() local 266 f_midi_read_data(ep, cable, &buf[i + 1], length); in f_midi_handle_out_data() 451 uint8_t p[4] = { port->cable << 4, 0, 0, 0 }; in f_midi_transmit_byte() 1376 midi->in_ports_array[i].cable = i; in f_midi_alloc()
|
/drivers/platform/chrome/ |
D | cros_ec_typec.c | 222 if (!port->cable) in cros_typec_remove_cable() 229 typec_unregister_cable(port->cable); in cros_typec_remove_cable() 230 port->cable = NULL; in cros_typec_remove_cable() 842 port->cable = typec_register_cable(port->port, &c_desc); in cros_typec_handle_sop_prime_disc() 843 if (IS_ERR(port->cable)) { in cros_typec_handle_sop_prime_disc() 844 ret = PTR_ERR(port->cable); in cros_typec_handle_sop_prime_disc() 845 port->cable = NULL; in cros_typec_handle_sop_prime_disc() 850 port->plug = typec_register_plug(port->cable, &p_desc); in cros_typec_handle_sop_prime_disc()
|
D | cros_ec_typec.h | 51 struct typec_cable *cable; member
|
/drivers/usb/renesas_usbhs/ |
D | common.c | 445 int cable; in usbhsc_hotplug() local 460 cable = extcon_get_state(priv->edev, EXTCON_USB_HOST); in usbhsc_hotplug() 461 if ((cable > 0 && id != USBHS_HOST) || in usbhsc_hotplug() 462 (!cable && id != USBHS_GADGET)) { in usbhsc_hotplug()
|
/drivers/net/usb/ |
D | Kconfig | 152 CDC-Ethernet specification (including many cable modems). 218 tristate "CDC Ethernet support (smart devices such as cable modems)" 227 CDC Ethernet is an implementation option for DOCSIS cable modems 370 Choose this option if you're using a host-to-host cable, 380 Choose this option if you're using a host-to-host cable based 390 Choose this option if you're using a host-to-host cable 440 Choose this option if you're using a host-to-host cable 448 Choose this option if you're using a host-to-host cable 458 Choose this option if you're using a host-to-host cable 493 Choose this option if you're using a host-to-host cable
|
/drivers/phy/rockchip/ |
D | phy-rockchip-inno-usb2.c | 633 static unsigned int cable; in rockchip_usb2phy_otg_sm_work() local 672 cable = EXTCON_CHG_USB_SDP; in rockchip_usb2phy_otg_sm_work() 679 cable = EXTCON_CHG_USB_DCP; in rockchip_usb2phy_otg_sm_work() 687 cable = EXTCON_CHG_USB_CDP; in rockchip_usb2phy_otg_sm_work() 707 cable, vbus_attach); in rockchip_usb2phy_otg_sm_work() 708 if (cable == EXTCON_CHG_USB_SDP) in rockchip_usb2phy_otg_sm_work()
|
/drivers/net/ |
D | Kconfig | 16 telephone line or null modem cable you need say Y here. Connecting 504 cable modem. This is an ISA card which is used by a number of cable 505 TV companies to provide cable modem access. It's a one-way 506 downstream-only cable modem, meaning that your upstream net link is 511 <file:Documentation/networking/device_drivers/cable/sb1000.rst> for 518 <http://linuxpower.cx/~cable/>
|
/drivers/net/ethernet/sis/ |
D | Kconfig | 31 your phone line as a network cable.
|
/drivers/thunderbolt/ |
D | Kconfig | 52 cable back to the host. Only enable this if you know what you
|
/drivers/usb/common/ |
D | Kconfig | 45 based USB cable detection, used typically if an input GPIO is used
|