| /OK3568_Linux_fs/kernel/sound/drivers/ |
| H A D | aloop.c | 96 unsigned int (*pos_update)(struct loopback_cable *cable); 145 struct loopback_cable *cable; member 250 struct loopback_cable *cable = dpcm->cable; in loopback_snd_timer_start() local 256 err = snd_timer_start(cable->snd_timer.instance, 1); in loopback_snd_timer_start() 267 cable->snd_timer.id.card, in loopback_snd_timer_start() 268 cable->snd_timer.id.device, in loopback_snd_timer_start() 269 cable->snd_timer.id.subdevice, in loopback_snd_timer_start() 288 struct loopback_cable *cable = dpcm->cable; in loopback_snd_timer_stop() local 292 if (cable->running ^ cable->pause) in loopback_snd_timer_stop() 295 err = snd_timer_stop(cable->snd_timer.instance); in loopback_snd_timer_stop() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/chipidea/ |
| H A 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 …]
|
| H A D | core.c | 604 struct ci_hdrc_cable *cable = NULL; in ci_usb_role_switch_set() local 617 cable = &ci->platdata->vbus_extcon; in ci_usb_role_switch_set() 619 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set() 621 if (cable) { in ci_usb_role_switch_set() 622 cable->changed = true; in ci_usb_role_switch_set() 623 cable->connected = false; in ci_usb_role_switch_set() 631 cable = NULL; in ci_usb_role_switch_set() 635 cable = &ci->platdata->vbus_extcon; in ci_usb_role_switch_set() 637 cable = &ci->platdata->id_extcon; in ci_usb_role_switch_set() 639 if (cable) { in ci_usb_role_switch_set() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/extcon/ |
| H A D | extcon.c | 318 struct extcon_cable *cable; in is_extcon_property_capability() local 326 cable = &edev->cables[index]; in is_extcon_property_capability() 330 ret = test_bit(prop - EXTCON_PROP_USB_MIN, cable->usb_bits); in is_extcon_property_capability() 333 ret = test_bit(prop - EXTCON_PROP_CHG_MIN, cable->chg_bits); in is_extcon_property_capability() 336 ret = test_bit(prop - EXTCON_PROP_JACK_MIN, cable->jack_bits); in is_extcon_property_capability() 339 ret = test_bit(prop - EXTCON_PROP_DISP_MIN, cable->disp_bits); in is_extcon_property_capability() 351 struct extcon_cable *cable = &edev->cables[index]; in init_property() local 354 memset(cable->usb_propval, 0, sizeof(cable->usb_propval)); in init_property() 356 memset(cable->chg_propval, 0, sizeof(cable->chg_propval)); in init_property() 358 memset(cable->jack_propval, 0, sizeof(cable->jack_propval)); in init_property() [all …]
|
| H A D | extcon-axp288.c | 215 unsigned int cable = info->previous_cable; in axp288_handle_chrg_det_event() local 240 cable = EXTCON_CHG_USB_SDP; in axp288_handle_chrg_det_event() 244 cable = EXTCON_CHG_USB_CDP; in axp288_handle_chrg_det_event() 248 cable = EXTCON_CHG_USB_DCP; in axp288_handle_chrg_det_event() 252 cable = EXTCON_CHG_USB_SDP; in axp288_handle_chrg_det_event() 261 extcon_set_state_sync(info->edev, cable, vbus_attach); in axp288_handle_chrg_det_event() 262 if (cable == EXTCON_CHG_USB_SDP) in axp288_handle_chrg_det_event() 266 info->previous_cable = cable; in axp288_handle_chrg_det_event()
|
| H A D | extcon-intel-cht-wc.c | 235 unsigned int cable, bool state) in cht_wc_extcon_set_state() argument 237 extcon_set_state_sync(ext->edev, cable, state); in cht_wc_extcon_set_state() 238 if (cable == EXTCON_CHG_USB_SDP) in cht_wc_extcon_set_state() 245 unsigned int cable = EXTCON_NONE; in cht_wc_extcon_pwrsrc_event() local 276 cable = ret; in cht_wc_extcon_pwrsrc_event() 283 if (cable != ext->previous_cable) { in cht_wc_extcon_pwrsrc_event() 284 cht_wc_extcon_set_state(ext, cable, true); in cht_wc_extcon_pwrsrc_event() 286 ext->previous_cable = cable; in cht_wc_extcon_pwrsrc_event()
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/ |
| H A D | charger-manager.txt | 11 - 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/power/supply/ |
| H A 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 …]
|
| H A D | axp288_charger.c | 125 struct extcon_dev *cable; member 135 } cable; member 601 container_of(work, struct axp288_chrg_info, cable.work); in axp288_charger_extcon_evt_worker() 603 struct extcon_dev *edev = info->cable.edev; in axp288_charger_extcon_evt_worker() 654 container_of(nb, struct axp288_chrg_info, cable.nb); in axp288_charger_handle_cable_evt() 655 schedule_work(&info->cable.work); in axp288_charger_handle_cable_evt() 663 struct extcon_dev *edev = info->otg.cable; in axp288_charger_otg_evt_worker() 804 cancel_work_sync(&info->cable.work); in axp288_charger_cancel_work() 834 info->cable.edev = extcon_get_extcon_dev(AXP288_EXTCON_DEV_NAME); in axp288_charger_probe() 835 if (info->cable.edev == NULL) { in axp288_charger_probe() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/driver-api/usb/ |
| H A D | typec.rst | 22 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/ABI/testing/ |
| H A D | sysfs-class-typec | 115 What: /sys/class/typec/<port>-{partner|cable}/usb_power_delivery_revision 120 specification of the port partner or cable, or 0.0 when USB 215 USB Type-C cable devices (eg. /sys/class/typec/port0-cable/) 217 Note: Electronically Marked Cables will have a device also for one cable plug 218 (eg. /sys/class/typec/port0-plug0). If the cable is active and has also SOP 223 What: /sys/class/typec/<port>-cable/type 228 cable if it is known. If the product type of the cable is not 231 When the cable product type is detected, uvevent is also raised 232 with PRODUCT_TYPE showing the product type of the cable. 242 What: /sys/class/typec/<port>-cable/plug_type [all …]
|
| H A D | sysfs-class-extcon | 35 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
|
| /OK3568_Linux_fs/kernel/drivers/usb/typec/ |
| H A D | class.c | 125 struct typec_cable *cable = to_typec_cable(dev); in get_pd_identity() local 127 return cable->identity; in get_pd_identity() 1018 struct typec_plug *typec_register_plug(struct typec_cable *cable, in typec_register_plug() argument 1035 plug->dev.parent = &cable->dev; in typec_register_plug() 1037 dev_set_name(&plug->dev, "%s-%s", dev_name(cable->dev.parent), name); in typec_register_plug() 1041 dev_err(&cable->dev, "failed to register plug (%d)\n", ret); in typec_register_plug() 1076 struct typec_cable *cable = to_typec_cable(dev); in plug_type_show() local 1078 return sprintf(buf, "%s\n", typec_plug_types[cable->type]); in plug_type_show() 1092 struct typec_cable *cable = to_typec_cable(dev); in typec_cable_release() local 1094 kfree(cable); in typec_cable_release() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/ABI/obsolete/ |
| H A D | sysfs-class-typec | 4 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
|
| /OK3568_Linux_fs/kernel/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) in extcon_dev_allocate() argument 89 const unsigned int *cable) in devm_extcon_dev_allocate() argument
|
| /OK3568_Linux_fs/kernel/Documentation/networking/ |
| H A D | plip.rst | 26 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 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 156 If the cable you are using has a metallic shield it should be [all …]
|
| /OK3568_Linux_fs/u-boot/board/freescale/t4qds/ |
| H A D | README | 84 four Lanes A/B/C/D to a SFP+ cages, which to house fiber cable or 85 direct attach cable(copper), the copper cable is used to emulate 87 So, for XFI usage, there are two scenarios, one will use fiber cable, 88 another will use copper cable. An hwconfig env "fsl_10gkr_copper" is 89 introduced to indicate a XFI port will use copper cable, and U-Boot 94 "fsl_10gkr_copper", it will use copper cable, otherwise, fiber cable 97 hwconfig, then both four XFI ports will use copper cable. 99 XFI ports will use copper cable, the other two XFI ports will use fiber 100 cable.
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/jaguar1_drv/ |
| H A D | jaguar1_video_eq.c | 174 int cable = pvin_eq_set->Cable; in video_input_eq_val_set() local 181 if( cable == CABLE_A ) in video_input_eq_val_set() 183 else if( cable == CABLE_B ) in video_input_eq_val_set() 185 else if( cable == CABLE_C ) in video_input_eq_val_set() 187 else if( cable == CABLE_D ) in video_input_eq_val_set() 215 int cable = pvin_eq_set->Cable; in video_input_eq_cable_set() local 217 printk("[DRV]video_input_eq_cable_set::ch(%d) cable(%d)\n", ch, cable ); in video_input_eq_cable_set()
|
| /OK3568_Linux_fs/u-boot/include/power/power_delivery/ |
| H A D | typec.h | 110 int typec_cable_set_identity(struct typec_cable *cable); 284 void typec_unregister_cable(struct typec_cable *cable); 287 void typec_cable_put(struct typec_cable *cable); 288 int typec_cable_is_active(struct typec_cable *cable); 290 struct typec_plug *typec_register_plug(struct typec_cable *cable,
|
| /OK3568_Linux_fs/kernel/include/linux/usb/ |
| H A D | typec.h | 111 int typec_cable_set_identity(struct typec_cable *cable); 287 void typec_unregister_cable(struct typec_cable *cable); 290 void typec_cable_put(struct typec_cable *cable); 291 int typec_cable_is_active(struct typec_cable *cable); 293 struct typec_plug *typec_register_plug(struct typec_cable *cable,
|
| /OK3568_Linux_fs/buildroot/package/ifplugd/ |
| H A D | Config.in | 9 ethernet device when a cable is plugged in and automatically 10 de-configure it if the cable is pulled out. This is useful 12 configure the interface when a cable is really connected.
|
| /OK3568_Linux_fs/u-boot/board/freescale/t208xqds/ |
| H A D | README | 90 a on-board SFP+ cages, which to house optical module (fiber cable) or 91 direct attach cable(copper), the copper cable is used to emulate 93 So, for XFI usage, there are two scenarios, one will use fiber cable, 94 another will use copper cable. An hwconfig env "fsl_10gkr_copper" is 95 introduced to indicate a XFI port will use copper cable, and U-Boot 100 "fsl_10gkr_copper", it will use copper cable, otherwise, fiber cable 103 hwconfig, then both four XFI ports will use copper cable. 105 XFI ports will use copper cable, the other two XFI ports will use fiber 106 cable.
|
| /OK3568_Linux_fs/kernel/Documentation/spi/ |
| H A D | butterfly.rst | 6 a parallel port adapter cable, together with an "AVR Butterfly" to run 10 develop firmware for this, and flash it using this adapter cable. 12 You can make this adapter from an old printer cable and solder things 25 The first cable connections will hook Linux up to one SPI bus, with the 45 (c) cable in the chipselect.
|
| /OK3568_Linux_fs/buildroot/board/intel/galileo/ |
| H A D | readme.txt | 38 http://clayskits.com/products/galileo-gen-1-serial-cable 40 A USB to RS-232 to 3.5mm Jack cable is required. Connect to the 3.5mm 47 A FTDI TTL-232R-3V3 cable may be used to connect to the FTDI header
|