Home
last modified time | relevance | path

Searched +full:usb +full:- +full:attach (Results 1 – 25 of 147) sorted by relevance

123456

/linux/tools/usb/usbip/doc/
H A Dusbip.83 usbip \- manage USB/IP devices
9 On a USB/IP server, devices can be listed, bound, and unbound using
10 this program. On a USB/IP client, devices exported by USB/IP servers
15 \fB\-\-debug\fR
21 \fB\-\-log\fR
27 \fB\-\-tcp-port PORT\fR
29 Connect to PORT on remote host (used for attach and list --remote).
47 \fBattach\fR \-\-remote=<\fIhost\fR> \-\-busid=<\fIbus_id\fR>
49 Attach a remote USB device.
53 \fBattach\fR \-\-remote=<\fIhost\fR> \-\-device=<\fIdev_id\fR>
[all …]
/linux/tools/usb/usbip/
H A DREADME2 # README for usbip-utils
5 # 2005-2008 Takahiro Hirofuchi
8 USB/IP protocol allows to pass USB device from server to client over the
9 network. Server is a machine which provides (shares) a USB device. Client is
10 a machine which uses USB device provided by server over the network.
11 The USB device may be either physical device connected to a server or
12 software entity created on a server using USB gadget subsystem.
15 - usbip-vhci
16 A client side kernel module which provides a virtual USB Host Controller
17 and allows to import a USB device from a remote machine.
[all …]
/linux/include/linux/usb/
H A Dtypec.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 /* USB Type-C Specification releases */
102 * struct enter_usb_data - Enter_USB Message details
106 * @active_link_training is a flag that should be set with uni-directional SBRX
107 * communication, and left 0 with passive cables and with bi-directional SBRX
116 * struct usb_pd_identity - USB Powe
230 void (*attach)(struct typec_partner *partner, struct device *dev); global() member
369 void (*attach)(struct typec_connector *con, struct device *dev); global() member
[all...]
H A Dserial.h1 // SPDX-License-Identifier: GPL-2.0
3 * USB Serial Converter stuff
5 * Copyright (C) 1999 - 2012
6 * Greg Kroah-Hartman (greg@kroah.com)
20 /* USB serial flags */
59 * @flags: usb serial port flags
63 * This structure is used by the usb-serial core and drivers for the specific
114 return dev_get_drvdata(&port->dev); in usb_get_serial_port_data()
120 dev_set_drvdata(&port->dev, data); in usb_set_serial_port_data()
124 * usb_serial - structure used by the usb-serial core for a device
[all …]
/linux/drivers/media/usb/dvb-usb-v2/
H A Ddvbsky.c1 // SPDX-License-Identifier: GPL-2.0-or-later
45 mutex_lock(&d->usb_mutex); in dvbsky_usb_generic_rw()
47 memcpy(state->obuf, wbuf, wlen); in dvbsky_usb_generic_rw()
49 ret = dvb_usbv2_generic_rw_locked(d, state->obuf, wlen, in dvbsky_usb_generic_rw()
50 state->ibuf, rlen); in dvbsky_usb_generic_rw()
53 memcpy(rbuf, state->ibuf, rlen); in dvbsky_usb_generic_rw()
55 mutex_unlock(&d->usb_mutex); in dvbsky_usb_generic_rw()
66 mutex_lock(&d->usb_mutex); in dvbsky_stream_ctrl()
67 memcpy(state->obuf, obuf_pre, 3); in dvbsky_stream_ctrl()
68 ret = dvb_usbv2_generic_write_locked(d, state->obuf, 3); in dvbsky_stream_ctrl()
[all …]
H A Ddvb_usb.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * DVB USB framework
5 * Copyright (C) 2004-6 Patrick Boettcher <patrick.boettcher@posteo.de>
12 #include <linux/usb/input.h>
14 #include <media/rc-core.h>
15 #include <media/media-device.h>
21 #include <media/dvb-usb-ids.h>
24 * device file: /dev/dvb/adapter[0-1]/frontend[0-2]
26 * |-- device
27 * | |-- adapter0
[all …]
/linux/drivers/media/usb/dvb-usb/
H A Dttusb2.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* DVB USB compliant linux driver for Technotrend DVB USB boxes and clones
3 * (e.g. Pinnacle 400e DVB-S USB2.0).
10 * 0x08 - LNBP21PD - LNB power supply
11 * 0x0e - TDA10086 - Demodulator
12 * 0x50 - FX2 eeprom
13 * 0x60 - TDA8263 - Tuner
18 * Copyright (C) 2005-6 Patrick Boettcher <pb@linuxtv.org>
20 * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
23 #include "dvb-usb.h"
[all …]
H A Ddvb-usb.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* dvb-usb.h is part of the DVB USB library.
4 * Copyright (C) 2004-6 Patrick Boettcher (patrick.boettcher@posteo.de)
5 * see dvb-usb-init.c for copyright information.
7 * the headerfile, all dvb-usb-drivers have to include.
9 * TODO: clean-up the structures for unused fields and update the comments
15 #include <linux/usb.h>
18 #include <media/rc-core.h>
25 #include "dvb-pll.h"
27 #include <media/dvb-usb-ids.h>
[all …]
/linux/Documentation/usb/
H A Dfunctionfs.rst9 unique behaviour. It may be added to an USB configuration only after
28 For more information about FunctionFS descriptors see :doc:`functionfs-desc`
51 $ mkdir /dev/ffs-mtp && mount -t functionfs mtp /dev/ffs-mtp
52 $ ( cd /dev/ffs-mtp && mtp-daemon ) &
53 $ mkdir /dev/ffs-hid && mount -t functionfs hid /dev/ffs-hid
54 $ ( cd /dev/ffs-hid && hid-daemon ) &
56 On kernel level the gadget checks ffs_data->dev_name to identify
64 parameter's value is just a one-element list, then the behaviour
69 filesystems have been mounted and USB descriptors of all functions
72 Conversely, the gadget is unregistered after the first USB function
[all …]
/linux/drivers/usb/misc/sisusbvga/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
4 tristate "USB 2.0 SVGA dongle support (Net2280/SiS315)"
7 Say Y here if you intend to attach a USB2VGA dongle based on a
10 Note that this device requires a USB 2.0 host controller. It will not
11 work with USB 1.x controllers.
/linux/tools/usb/usbip/src/
H A Dusbip.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * 2005-2007 Takahiro Hirofuchi
26 "usbip [--debug] [--log] [--tcp-port PORT] [version]\n"
55 .name = "attach",
57 .help = "Attach a remote USB device",
63 .help = "Detach a remote USB device",
69 .help = "List exportable or local USB devices",
87 .help = "Show imported USB devices",
105 ret = -1; in usbip_help()
110 for (cmd = cmds; cmd->name != NULL; cmd++) in usbip_help()
[all …]
/linux/Documentation/devicetree/bindings/usb/
H A Drichtek,rt1719.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/usb/richtek,rt1719.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Richtek RT1719 sink-only Type-C PD controller
10 - ChiYuan Huang <cy_huang@richtek.com>
13 The RT1719 is a sink-only USB Type-C controller that complies with the latest
14 USB Type-C and PD standards. It does the USB Type-C detection including attach
15 and orientation. It integrates the physical layer of the USB BMC power
17 support for alternative interfaces of the Type-C specification.
[all …]
H A Drichtek,rt1711h.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/usb/richtek,rt1711h.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Richtek RT1711H Type-C Port Switch and Power Delivery controller
10 - Gene Chen <gene_chen@richtek.com>
13 The RT1711H is a USB Type-C controller that complies with the latest
14 USB Type-C and PD standards. It does the USB Type-C detection including attach
15 and orientation. It integrates the physical layer of the USB BMC power
17 support for alternative interfaces of the Type-C specification.
[all …]
/linux/drivers/power/supply/
H A Dmt6370-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/devm-helpers.h>
100 int attach; member
184 ret = regmap_field_read(priv->rmap_fields[fd], &reg_val); in mt6370_chg_field_get()
210 val = r->max_sel; in mt6370_chg_field_set()
216 return regmap_field_write(priv->rmap_fields[fd], val); in mt6370_chg_field_set()
238 struct mt6370_priv *priv = rcfg->driver_data; in mt6370_chg_otg_of_parse_cb()
240 rcfg->ena_gpiod = fwnode_gpiod_get_index(of_fwnode_handle(of), in mt6370_chg_otg_of_parse_cb()
243 rdesc->name); in mt6370_chg_otg_of_parse_cb()
244 if (IS_ERR(rcfg->ena_gpiod)) { in mt6370_chg_otg_of_parse_cb()
[all …]
/linux/drivers/usb/host/
H A Dssb-hcd.c1 // SPDX-License-Identifier: GPL-2.0
4 * Broadcom USB-core driver (SSB bus glue)
6 * Copyright 2011-2012 Hauke Mehrtens <hauke@hauke-m.de>
8 * Based on ssb-ohci driver
11 * Derived from the OHCI-PCI driver
13 * Copyright 2000-2002 David Brownell
17 * Derived from the USBcore related parts of Broadcom-SB
18 * Copyright 2005-2011 Broadcom Corporation
25 #include <linux/usb/ehci_pdriver.h>
26 #include <linux/usb/ohci_pdriver.h>
[all …]
/linux/drivers/usb/misc/
H A Donboard_usb_dev.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Driver for onboard USB devices
26 #include <linux/usb.h>
27 #include <linux/usb/hcd.h>
28 #include <linux/usb/onboard_dev.h>
71 const char * const *supply_names = onboard_dev->pdata->supply_names; in onboard_dev_get_regulators()
72 unsigned int num_supplies = onboard_dev->pdata->num_supplies; in onboard_dev_get_regulators()
73 struct device *dev = onboard_dev->dev; in onboard_dev_get_regulators()
78 return dev_err_probe(dev, -EINVAL, "max %d supplies supported!\n", in onboard_dev_get_regulators()
82 onboard_dev->supplies[i].supply = supply_names[i]; in onboard_dev_get_regulators()
[all …]
/linux/tools/usb/usbip/vudc/
H A Dvudc_server_example.sh8 # binary, for any purpose, commercial or non-commercial, and by any
35 set -e
38 # Create your USB gadget
49 # Create a new USB gadget
53 # This gadget contains one function - ACM (serial port over USB)
59 ln -s ${FUNC_DIR} configs/c.1
66 # Load vudc-module if vudc is not available
69 [[ -d /sys/class/udc/usbip-vudc.0 ]] || modprobe usbip-vudc num=1
76 echo "usbip-vudc.0" > UDC
79 # Let's now run our usbip daemon in a USB device mode
[all …]
/linux/drivers/media/usb/em28xx/
H A Dem28xx-dvb.c1 // SPDX-License-Identifier: GPL-2.0
5 // (c) 2008-2011 Mauro Carvalho Chehab <mchehab@kernel.org>
8 // - Fixes for the driver to properly work with HVR-950
9 // - Fixes for the driver to properly work with Pinnacle PCTV HD Pro Stick
10 // - Fixes for the driver to properly work with AMD ATI TV Wonder HD 600
16 // Based on cx88-dvb, saa7134-dvb and videobuf-dvb originally written by:
24 #include <linux/usb.h>
26 #include <media/v4l2-common.h>
31 #include "tuner-simple.h"
65 MODULE_DESCRIPTION(DRIVER_DESC " - digital TV interface");
[all …]
/linux/drivers/extcon/
H A Dextcon-max3355.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Maxim Integrated MAX3355 USB OTG chip extcon driver
5 * Copyright (C) 2014-2015 Cogent Embedded, Inc.
9 #include <linux/extcon-provider.h>
31 int id = gpiod_get_value_cansleep(data->id_gpiod); in max3355_id_irq()
35 * ID = 1 means USB HOST cable detached. in max3355_id_irq()
36 * As we don't have event for USB peripheral cable attached, in max3355_id_irq()
37 * we simulate USB peripheral attach here. in max3355_id_irq()
39 extcon_set_state_sync(data->edev, EXTCON_USB_HOST, false); in max3355_id_irq()
40 extcon_set_state_sync(data->edev, EXTCON_USB, true); in max3355_id_irq()
[all …]
/linux/drivers/usb/serial/
H A Dempeg.c1 // SPDX-License-Identifier: GPL-2.0
3 * USB Empeg empeg-car player driver
8 * Copyright (C) 1999 - 2001
9 * Greg Kroah-Hartman (greg@kroah.com)
11 * See Documentation/usb/usb-serial.rst for more information on using this
24 #include <linux/usb.h>
25 #include <linux/usb/serial.h>
27 #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Gary Brubaker <xavyer@ix.netcom.com>"
28 #define DRIVER_DESC "USB Empeg Mark I/II Driver"
33 /* function prototypes for an empeg-car player */
[all …]
/linux/Documentation/filesystems/
H A D9p.rst1 .. SPDX-License-Identifier: GPL-2.0
26 http://xcpu.org/papers/xcpu-talk.pdf
30 http://xcpu.org/papers/cellfs-talk.pdf
33 * VirtFS: A Virtualization Aware File System pass-through
34 https://kernel.org/doc/ols/2010/ols2010-pages-109-120.pdf
41 mount -t 9p 10.10.1.2 /mnt/9
45 mount -t 9p `namespace`/acme /mnt/9 -o trans=unix,uname=$USER
49 mount -t 9p -o trans=virtio <mount_tag> /mnt/9
59 To mount a 9p FS on a USB Host accessible via the gadget at runtime::
61 mount -t 9p -o trans=usbg,aname=/path/to/fs <device> /mnt/9
[all …]
/linux/Documentation/iio/
H A Diio_dmabuf_api.rst1 .. SPDX-License-Identifier: GPL-2.0
4 High-speed DMABUF interface for IIO
11 file-based interface, with read() and write() access calls through the
15 can attach DMABUF objects (externally created) to an IIO buffer, and
20 zero-copy fashion, for instance between IIO and the USB stack.
22 The userspace application can also memory-map the DMABUF objects, and
25 kernel and userspace. This is particularly useful for high-speed devices
27 It does however increase the userspace-kernelspace synchronization
39 Attach the DMABUF object, identified by its file descriptor, to the
/linux/drivers/usb/renesas_usbhs/
H A Dmod_host.c1 // SPDX-License-Identifier: GPL-1.0+
3 * Renesas USB driver
13 #include <linux/usb.h>
14 #include <linux/usb/hcd.h>
25 * the pipe will be re-used for each devices.
33 * +--------+
34 * | udev 0 | --> it is used when set address
35 * +--------+
37 * +--------+ pipes are reused for each uep.
38 * | udev 1 |-+- [uep 0 (dcp) ] --+ pipe will be switched when
[all …]
/linux/Documentation/input/joydev/
H A Djoystick.rst3 .. _joystick-doc:
14 linux-input@vger.kernel.org
16 send "subscribe linux-input" to majordomo@vger.kernel.org to subscribe to it.
25 ---------
29 usually packaged as ``joystick``, ``input-utils``, ``evtest``, and so on.
35 ------------
48 ln -s input/js0 js0
49 ln -s input/js1 js1
50 ln -s input/js2 js2
51 ln -s input/js3 js3
[all …]
/linux/Documentation/driver-api/
H A Dsm501.rst10 which may provide numerous interfaces including USB host controller USB gadget,
15 ----
29 The core re-uses the platform device system as the platform device
31 need to create a new bus-type and the associated code to go with it.
35 ---------
43 as this is by-far the most resource-sensitive of the on-chip functions.
59 -------------
69 There is an errata (AB-5) affecting the selection of the
74 attach if the PLL selection is different.

123456