Home
last modified time | relevance | path

Searched +full:ep +full:- +full:side (Results 1 – 25 of 100) sorted by relevance

1234

/linux/Documentation/PCI/endpoint/
H A Dpci-ntb-howto.rst1 .. SPDX-License-Identifier: GPL-2.0
4 PCI Non-Transparent Bridge (NTB) Endpoint Function (EPF) User Guide
9 This document is a guide to help users use pci-epf-ntb function driver
11 be followed in the host side and EP side is given below. For the hardware
13 Documentation/PCI/endpoint/pci-ntb-function.rst
19 ---------------------------
27 2900000.pcie-ep 2910000.pcie-ep
32 2900000.pcie-ep 2910000.pcie-ep
36 -------------------------
40 # ls /sys/bus/pci-epf/drivers
[all …]
H A Dpci-vntb-howto.rst1 .. SPDX-License-Identifier: GPL-2.0
4 PCI Non-Transparent Bridge (NTB) Endpoint Function (EPF) User Guide
9 This document is a guide to help users use pci-epf-vntb function driver
11 be followed in the host side and EP side is given below. For the hardware
13 Documentation/PCI/endpoint/pci-vntb-function.rst
19 ---------------------------
32 -------------------------
36 # ls /sys/bus/pci-epf/drivers
45 Creating pci-epf-vntb Device
46 ----------------------------
[all …]
H A Dpci-ntb-function.rst1 .. SPDX-License-Identifier: GPL-2.0
9 PCI Non-Transparent Bridges (NTB) allow two host systems to communicate
21 PCI Endpoint (EP) instances in such a way that transactions from one EP
22 controller are routed to the other EP controller. Once PCI NTB function
23 configures the SoC with multiple EP instances, HOST1 and HOST2 can
26 .. code-block:: text
28 +-------------+ +-------------+
32 +------^------+ +------^------+
35 +---------|-------------------------------------------------|---------+
36 | +------v------+ +------v------+ |
[all …]
H A Dpci-test-howto.rst1 .. SPDX-License-Identifier: GPL-2.0
9 This document is a guide to help users use pci-epf-test function driver
11 be followed in the host side and EP side is given below.
17 ---------------------------
31 -------------------------
35 # ls /sys/bus/pci-epf/drivers
44 Creating pci-epf-test Device
45 ----------------------------
48 pci-epf-test device, the following commands can be used::
50 # mount -t configfs none /sys/kernel/config
[all …]
/linux/drivers/usb/gadget/udc/
H A Ddummy_hcd.c1 // SPDX-License-Identifier: GPL-2.0+
3 * dummy_hcd.c -- Dummy/Loopback USB host and device emulator driver.
8 * Copyright (C) 2003-2005 Alan Stern
13 * This exposes a device side "USB gadget" API, driven by requests to a
14 * Linux-USB host controller driver. USB traffic is simulated; there's
17 * - Gadget driver, responding to requests (device);
18 * - Host-side device driver, as already familiar in Linux.
51 #define POWER_BUDGET 500 /* in mA; use 8 for low-power port testing */
82 /*-------------------------------------------------------------------------*/
84 /* gadget side driver data structures */
[all …]
H A Dfsl_qe_udc.h1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2006-2008 Freescale Semiconductor, Inc. All rights reserved.
152 #define ep_index(EP) ((EP)->ep.desc->bEndpointAddress & 0xF) argument
153 #define ep_maxpacket(EP) ((EP)->ep.maxpacket) argument
154 #define ep_is_in(EP) ((ep_index(EP) == 0) ? (EP->udc->ep0_dir == \ argument
155 USB_DIR_IN) : ((EP)->ep.desc->bEndpointAddress \
165 /* ep tramsfer mode */
171 /*-----------------------------------------------------------------------------
173 -----------------------------------------------------------------------------*/
205 /* Receive side */
[all …]
H A Dnet2280.h1 // SPDX-License-Identifier: GPL-2.0+
10 * Copyright (C) 2014 Ricardo Ribalda - Qtechnology/AS
16 /*-------------------------------------------------------------------------*/
26 writel(index, &regs->idxaddr); in get_idx_reg()
28 return readl(&regs->idxdata); in get_idx_reg()
34 writel(index, &regs->idxaddr); in set_idx_reg()
35 writel(value, &regs->idxdata); in set_idx_reg()
74 /*-------------------------------------------------------------------------*/
86 /*-------------------------------------------------------------------------*/
91 struct usb_ep ep; member
[all …]
H A Dpxa25x_udc.h1 // SPDX-License-Identifier: GPL-2.0+
3 * Intel PXA25x on-chip full speed USB device controller
14 /*-------------------------------------------------------------------------*/
16 /* pxa25x has this (move to include/asm-arm/arch-pxa/pxa-regs.h) */
23 /* pxa255 has this (move to include/asm-arm/arch-pxa/pxa-regs.h) */
31 /*-------------------------------------------------------------------------*/
36 struct usb_ep ep; member
49 /* UDCCS = UDC Control/Status for this EP
110 #define start_watchdog(dev) mod_timer(&dev->timer, jiffies + (HZ/200))
118 struct pxa25x_ep ep [PXA_UDC_NUM_ENDPOINTS]; member
[all …]
/linux/drivers/usb/musb/
H A Dmusb_gadget.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 * Copyright (C) 2005-2006 by Texas Instruments
7 * Copyright (C) 2006-2007 Nokia Corporation
56 struct musb_ep *ep; member
66 musb_alloc_request(struct usb_ep *ep, gfp_t gfp_flags);
67 extern void musb_free_request(struct usb_ep *ep, struct usb_request *req);
71 * struct musb_ep - peripheral side view of endpoint rx or tx side
74 /* stuff towards the head is basically write-once. */
99 #define to_musb_ep(ep) container_of((ep), struct musb_ep, end_point) argument
101 static inline struct musb_request *next_request(struct musb_ep *ep) in next_request() argument
[all …]
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_iwarp.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
3 * Copyright (c) 2015-2017 QLogic Corporation
4 * Copyright (c) 2019-2020 Marvell International Ltd.
66 struct list_head ep_free_list; /* pre-allocated ep's */
130 /* For Passive side - syn packet related data */
136 * with the ep. It is initialized at different entry points depending
137 * on whether the ep is the tcp connection active side or passive side
H A Dqed_iwarp.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
3 * Copyright (c) 2015-2017 QLogic Corporation
4 * Copyright (c) 2019-2020 Marvell International Ltd.
69 struct qed_rdma_device *dev = p_hwfn->p_rdma_info->dev; in qed_iwarp_init_devinfo()
71 dev->max_inline = IWARP_REQ_MAX_INLINE_DATA_SIZE; in qed_iwarp_init_devinfo()
72 dev->max_qp = min_t(u32, in qed_iwarp_init_devinfo()
74 p_hwfn->p_rdma_info->num_qps) - in qed_iwarp_init_devinfo()
77 dev->max_cq = dev->max_qp; in qed_iwarp_init_devinfo()
79 dev->max_qp_resp_rd_atomic_resc = QED_IWARP_IRD_DEFAULT; in qed_iwarp_init_devinfo()
80 dev->max_qp_req_rd_atomic_resc = QED_IWARP_ORD_DEFAULT; in qed_iwarp_init_devinfo()
[all …]
/linux/drivers/usb/usbip/
H A Dusbip_common.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2003-2008 Takahiro Hirofuchi
4 * Copyright (C) 2015-2016 Samsung Electronics
47 return -EINVAL; in usbip_debug_store()
54 print_hex_dump(KERN_DEBUG, "usbip-core", DUMP_PREFIX_OFFSET, 16, 4, in usbip_dump_buffer()
61 unsigned char ep = usb_pipeendpoint(p); in usbip_dump_pipe() local
65 pr_debug("dev(%d) ep(%d) [%s] ", dev, ep, dir ? "IN" : "OUT"); in usbip_dump_pipe()
88 struct device *dev = &udev->dev; in usbip_dump_usb_device()
92 udev->devnum, udev->devpath, usb_speed_string(udev->speed)); in usbip_dump_usb_device()
94 pr_debug("tt hub ttport %d\n", udev->ttport); in usbip_dump_usb_device()
[all …]
H A Dvudc_transfer.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright (C) 2015-2016 Samsung Electronics
9 * Copyright (C) 2003-2005 Alan Stern
39 return -1; in get_frame_limit()
45 * handle_control_request() - handles all control transfers
52 * Return 0 - if the request was handled
53 * 1 - if the request wasn't handles
67 w_index = le16_to_cpu(setup->wIndex); in handle_control_request()
68 w_value = le16_to_cpu(setup->wValue); in handle_control_request()
69 switch (setup->bRequest) { in handle_control_request()
[all …]
H A Dvudc_dev.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright (C) 2015-2016 Samsung Electronics
25 /* urb-related structures alloc / free */
33 kfree(urb->setup_packet); in free_urb()
34 urb->setup_packet = NULL; in free_urb()
36 kfree(urb->transfer_buffer); in free_urb()
37 urb->transfer_buffer = NULL; in free_urb()
50 urb_p->urb = NULL; in alloc_urbp()
51 urb_p->ep = NULL; in alloc_urbp()
52 INIT_LIST_HEAD(&urb_p->urb_entry); in alloc_urbp()
[all …]
/linux/include/linux/usb/
H A Dgadget.h1 // SPDX-License-Identifier: GPL-2.0
5 * We call the USB code inside a Linux-based peripheral device a "gadget"
6 * driver, except for the hardware-specific bus glue. One USB host can
11 * (C) Copyright 2002-2004 by David Brownell
35 * struct usb_request - describes one i/o request
36 * @ep: The associated endpoint set by usb_ep_alloc_request().
42 * @sg: a scatterlist for SG-capable controllers.
59 * its buffer may be re-used. The function will always be called with
74 * Code "-ESHUTDOWN" indicates completion caused by device disconnect,
81 * reside in a device-side FIFO when the request is reported as
[all …]
/linux/drivers/usb/gadget/function/
H A Df_subset.c1 // SPDX-License-Identifier: GPL-2.0+
3 * f_subset.c -- "CDC Subset" Ethernet link function driver
5 * Copyright (C) 2003-2005,2008 David Brownell
29 * SA-1100 "Itsy" board, which could run Linux 2.4 kernels and supported
43 * implementation. This lets you use MCCI's host side MS-Windows drivers
60 /*-------------------------------------------------------------------------*/
63 * "Simple" CDC-subset option is a simple vendor-neutral model that most
65 * To assist host side drivers, we fancy it up a bit, and add descriptors so
66 * some host side drivers will understand it as a "SAFE" variant.
242 .language = 0x0409, /* en-us */
[all …]
H A Df_serial.c1 // SPDX-License-Identifier: GPL-2.0+
3 * f_serial.c - generic USB serial function driver
24 * if you can arrange appropriate host side drivers.
38 /*-------------------------------------------------------------------------*/
135 .language = 0x0409, /* en-us */
144 /*-------------------------------------------------------------------------*/
149 struct usb_composite_dev *cdev = f->config->cdev; in gser_set_alt()
153 if (gser->port.in->enabled) { in gser_set_alt()
154 dev_dbg(&cdev->gadget->dev, in gser_set_alt()
155 "reset generic ttyGS%d\n", gser->port_num); in gser_set_alt()
[all …]
/linux/drivers/pci/controller/dwc/
H A Dpcie-dw-rockchip.c1 // SPDX-License-Identifier: GPL-2.0
6 * http://www.rock-chips.com
8 * Author: Simon Xue <xxm@rock-chips.com>
27 #include "pcie-designware.h"
34 #define to_rockchip_pcie(x) dev_get_drvdata((x)->dev)
103 return readl_relaxed(rockchip->apb_base + reg); in rockchip_pcie_writel_apb()
109 writel_relaxed(val, rockchip->apb_base + reg); in rockchip_pcie_intx_handler()
123 generic_handle_domain_irq(rockchip->irq_domai in rockchip_intx_mask()
285 rockchip_pcie_ep_hide_broken_ats_cap_rk3588(struct dw_pcie_ep * ep) rockchip_pcie_ep_hide_broken_ats_cap_rk3588() argument
299 rockchip_pcie_ep_init(struct dw_pcie_ep * ep) rockchip_pcie_ep_init() argument
311 rockchip_pcie_raise_irq(struct dw_pcie_ep * ep,u8 func_no,unsigned int type,u16 interrupt_num) rockchip_pcie_raise_irq() argument
364 rockchip_pcie_get_features(struct dw_pcie_ep * ep) rockchip_pcie_get_features() argument
[all...]
/linux/net/sctp/
H A Dsm_statefuns.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (c) 1999-2000 Cisco, Inc.
5 * Copyright (c) 1999-2001 Motorola, Inc.
6 * Copyright (c) 2001-2002 Intel Corp.
15 * lksctp developers <linux-sctp@vger.kernel.org>
54 const struct sctp_endpoint *ep,
66 const struct sctp_endpoint *ep,
73 const struct sctp_endpoint *ep,
80 const struct sctp_endpoint *ep,
87 const struct sctp_endpoint *ep,
[all …]
H A Dsm_sideeffect.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) 1999-2001 Motorola, Inc.
15 * lksctp developers <linux-sctp@vger.kernel.org>
43 struct sctp_endpoint *ep,
52 struct sctp_endpoint *ep,
69 asoc->last_ecne_tsn = lowest_tsn; in sctp_do_ecn_ce_work()
70 asoc->need_ecne = 1; in sctp_do_ecn_ce_work()
101 if (TSN_lt(asoc->last_cwr_tsn, lowest_tsn)) { in sctp_do_ecn_ecne_work()
113 asoc->last_cwr_tsn = lowest_tsn; in sctp_do_ecn_ecne_work()
119 repl = sctp_make_cwr(asoc, asoc->last_cwr_tsn, chunk); in sctp_do_ecn_ecne_work()
[all …]
/linux/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-gadget.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * USBHS-DEV device controller driver header file
14 #include <linux/dma-direction.h>
22 * struct cdns2_ep0_regs - endpoint 0 related registers.
45 /* EP0CS - bitmasks. */
59 /* EP0FIFO - bitmasks. */
70 * struct cdns2_epx_base - base endpoint registers.
87 /* rxcon/txcon - endpoint control register bitmasks. */
88 /* Endpoint buffering: 0 - single buffering ... 3 - quad buffering. */
106 /* rxcs/txcs - endpoint control and status bitmasks. */
[all …]
/linux/Documentation/devicetree/bindings/pci/
H A Dnvidia,tegra194-pcie-ep.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/pci/nvidia,tegra194-pcie-ep.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Thierry Reding <thierry.reding@gmail.com>
11 - Jon Hunter <jonathanh@nvidia.com>
12 - Vidya Sagar <vidyas@nvidia.com>
16 inherits all the common properties defined in snps,dw-pcie-ep.yaml. Some
23 Note: On Tegra194's P2972-0000 platform, only C5 controller can be enabled to
29 - nvidia,tegra194-pcie-ep
[all …]
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3588-rock-5b-pcie-srns.dtso1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * DT-overlay to run the PCIe3_4L Dual Mode controller in Root Complex
6 * This device tree overlay is only needed (on the RC side) when running
8 * other board running in EP mode.
11 /dts-v1/;
15 rockchip,rx-common-refclk-mode = <0 0 0 0>;
/linux/drivers/usb/host/
H A Dxhci-ring.c1 // SPDX-License-Identifier: GPL-2.0
26 * until you reach a non-link TRB.
59 #include <linux/dma-mapping.h>
61 #include "xhci-trace.h"
76 if (!seg || !trb || trb < seg->trbs) in xhci_trb_virt_to_dma()
79 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma()
82 return seg->dma + (segment_offset * sizeof(*trb)); in xhci_trb_virt_to_dma()
87 return TRB_TYPE_NOOP_LE32(trb->generic.field[3]); in trb_is_noop()
92 return TRB_TYPE_LINK_LE32(trb->link.control); in trb_is_link()
97 return trb == &seg->trbs[TRBS_PER_SEGMENT - 1]; in last_trb_on_seg()
[all …]
/linux/drivers/pci/controller/
H A Dpcie-rockchip-ep.c1 // SPDX-License-Identifier: GPL-2.0+
7 * Author: Shawn Lin <shawn.lin@rock-chips.com>
8 * Simon Xue <xxm@rock-chips.com>
18 #include <linux/pci-epc.h>
20 #include <linux/pci-epf.h>
24 #include "pcie-rockchip.h"
27 * struct rockchip_pcie_ep - private data for PCIe endpoint controller driver
81 int num_pass_bits = fls64(pci_addr ^ (pci_addr + size - 1)); in rockchip_pcie_ep_ob_atu_num_bits()
98 addr0 = ((num_pass_bits - 1) & PCIE_CORE_OB_REGION_ADDR0_NUM_BITS) | in rockchip_pcie_prog_ep_ob_atu()
118 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); in rockchip_pcie_ep_write_header() local
[all …]

1234