Home
last modified time | relevance | path

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

1234567

/linux-6.12.1/tools/usb/usbip/doc/
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-6.12.1/tools/usb/usbip/
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-6.12.1/include/linux/usb/
Dtypec.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 /* USB Type-C Specification releases */
91 * struct enter_usb_data - Enter_USB Message details
95 * @active_link_training is a flag that should be set with uni-directional SBRX
96 * communication, and left 0 with passive cables and with bi-directional SBRX
105 * struct usb_pd_identity - USB Power Delivery identity data
111 * USB power delivery Discover Identity command response data.
113 * REVISIT: This is USB Power Delivery specific information, so this structure
114 * probable belongs to USB Power Delivery header file once we have them.
127 * struct typec_altmode_desc - USB Type-C Alternate Mode Descriptor
[all …]
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-6.12.1/Documentation/devicetree/bindings/usb/
Dqcom,pmic-typec.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/usb/qcom,pmic-typec.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm PMIC based USB Type-C block
10 - Bryan O'Donoghue <bryan.odonoghue@linaro.org>
13 Qualcomm PMIC Type-C block
18 - enum:
19 - qcom,pmi632-typec
20 - qcom,pm8150b-typec
[all …]
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 …]
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-6.12.1/drivers/media/usb/dvb-usb-v2/
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 …]
Danysee.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * DVB USB Linux driver for Anysee E30 DVB-C & DVB-T USB2.0 receiver
8 * - add smart card reader support for Conditional Access (CA)
22 #include "dvb-pll.h"
42 mutex_lock(&d->usb_mutex); in anysee_ctrl_msg()
44 memcpy(&state->buf[0], sbuf, slen); in anysee_ctrl_msg()
45 state->buf[60] = state->seq++; in anysee_ctrl_msg()
47 dev_dbg(&d->udev->dev, "%s: >>> %*ph\n", __func__, slen, state->buf); in anysee_ctrl_msg()
51 ret = dvb_usbv2_generic_rw_locked(d, state->buf, sizeof(state->buf), in anysee_ctrl_msg()
52 state->buf, sizeof(state->buf)); in anysee_ctrl_msg()
[all …]
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-6.12.1/drivers/usb/misc/sisusbvga/
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-6.12.1/drivers/media/usb/dvb-usb/
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 …]
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-6.12.1/Documentation/usb/
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-6.12.1/tools/usb/usbip/src/
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-6.12.1/drivers/power/supply/
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-6.12.1/drivers/usb/misc/
Dqcom_eud.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
17 #include <linux/usb/role.h>
46 writel(EUD_ENABLE, priv->base + EUD_REG_CSR_EUD_EN); in enable_eud()
48 priv->base + EUD_REG_INT1_EN_MASK); in enable_eud()
49 writel(1, priv->mode_mgr + EUD_REG_EUD_EN2); in enable_eud()
51 return usb_role_switch_set_role(priv->role_sw, USB_ROLE_DEVICE); in enable_eud()
56 writel(0, priv->base + EUD_REG_CSR_EUD_EN); in disable_eud()
57 writel(0, priv->mode_mgr + EUD_REG_EUD_EN2); in disable_eud()
65 return sysfs_emit(buf, "%d\n", chip->enabled); in enable_show()
[all …]
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-6.12.1/drivers/usb/host/
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-6.12.1/tools/usb/usbip/vudc/
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-6.12.1/drivers/media/usb/em28xx/
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-6.12.1/drivers/extcon/
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-6.12.1/drivers/usb/serial/
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-6.12.1/Documentation/iio/
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-6.12.1/Documentation/filesystems/
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 …]

1234567