Home
last modified time | relevance | path

Searched full:ep (Results 1 – 25 of 718) sorted by relevance

12345678910>>...29

/linux/sound/usb/
H A Dendpoint.c100 usb_free_coherent(u->ep->chip->dev, u->buffer_size, in release_urb_ctx()
133 static inline bool ep_state_running(struct snd_usb_endpoint *ep) in ep_state_running() argument
135 return atomic_read(&ep->state) == EP_STATE_RUNNING; in ep_state_running()
138 static inline bool ep_state_update(struct snd_usb_endpoint *ep, int old, int new) in ep_state_update() argument
140 return atomic_try_cmpxchg(&ep->state, &old, new); in ep_state_update()
146 * @ep: The snd_usb_endpoint
151 int snd_usb_endpoint_implicit_feedback_sink(struct snd_usb_endpoint *ep) in snd_usb_endpoint_implicit_feedback_sink() argument
153 return ep->implicit_fb_sync && usb_pipeout(ep->pipe); in snd_usb_endpoint_implicit_feedback_sink()
163 static int slave_next_packet_size(struct snd_usb_endpoint *ep, in slave_next_packet_size() argument
169 if (ep->fill_max) in slave_next_packet_size()
[all …]
/linux/drivers/usb/gadget/udc/aspeed-vhub/
H A Depn.c32 #define CHECK(ep, expr, fmt...) \ argument
34 if (!(expr)) EPDBG(ep, "CHECK:" fmt); \
37 #define CHECK(ep, expr, fmt...) do { } while(0) argument
40 static void ast_vhub_epn_kick(struct ast_vhub_ep *ep, struct ast_vhub_req *req) in ast_vhub_epn_kick() argument
51 if (chunk > ep->ep.maxpacket) in ast_vhub_epn_kick()
52 chunk = ep->ep.maxpacket; in ast_vhub_epn_kick()
53 else if ((chunk < ep->ep.maxpacket) || !req->req.zero) in ast_vhub_epn_kick()
56 EPVDBG(ep, "kick req %p act=%d/%d chunk=%d last=%d\n", in ast_vhub_epn_kick()
59 /* If DMA unavailable, using staging EP buffer */ in ast_vhub_epn_kick()
63 if (ep->epn.is_in) { in ast_vhub_epn_kick()
[all …]
H A Dep0.c29 int ast_vhub_reply(struct ast_vhub_ep *ep, char *ptr, int len) in ast_vhub_reply() argument
31 struct usb_request *req = &ep->ep0.req.req; in ast_vhub_reply()
34 if (WARN_ON(ep->d_idx != 0)) in ast_vhub_reply()
36 if (WARN_ON(!ep->ep0.dir_in)) in ast_vhub_reply()
53 spin_unlock(&ep->vhub->lock); in ast_vhub_reply()
54 if (ep->ep.ops->queue(&ep->ep, req, GFP_ATOMIC)) in ast_vhub_reply()
58 spin_lock(&ep->vhub->lock); in ast_vhub_reply()
62 int __ast_vhub_simple_reply(struct ast_vhub_ep *ep, int len, ...) in __ast_vhub_simple_reply() argument
64 u8 *buffer = ep->buf; in __ast_vhub_simple_reply()
70 /* Copy data directly into EP buffer */ in __ast_vhub_simple_reply()
[all …]
/linux/drivers/infiniband/hw/cxgb4/
H A Dcm.c144 static void connect_reply_upcall(struct c4iw_ep *ep, int status);
163 static void deref_qp(struct c4iw_ep *ep) in deref_qp() argument
165 c4iw_qp_rem_ref(&ep->com.qp->ibqp); in deref_qp()
166 clear_bit(QP_REFERENCED, &ep->com.flags); in deref_qp()
167 set_bit(QP_DEREFED, &ep->com.history); in deref_qp()
170 static void ref_qp(struct c4iw_ep *ep) in ref_qp() argument
172 set_bit(QP_REFERENCED, &ep->com.flags); in ref_qp()
173 set_bit(QP_REFED, &ep->com.history); in ref_qp()
174 c4iw_qp_add_ref(&ep->com.qp->ibqp); in ref_qp()
177 static void start_ep_timer(struct c4iw_ep *ep) in start_ep_timer() argument
[all …]
/linux/drivers/net/ethernet/cirrus/
H A Dep93xx_eth.c176 #define rdb(ep, off) __raw_readb((ep)->base_addr + (off)) argument
177 #define rdw(ep, off) __raw_readw((ep)->base_addr + (off)) argument
178 #define rdl(ep, off) __raw_readl((ep)->base_addr + (off)) argument
179 #define wrb(ep, off, val) __raw_writeb((val), (ep)->base_addr + (off)) argument
180 #define wrw(ep, off, val) __raw_writew((val), (ep)->base_addr + (off)) argument
181 #define wrl(ep, off, val) __raw_writel((val), (ep)->base_addr + (off)) argument
185 struct ep93xx_priv *ep = netdev_priv(dev); in ep93xx_mdio_read() local
189 wrl(ep, REG_MIICMD, REG_MIICMD_READ | (phy_id << 5) | reg); in ep93xx_mdio_read()
192 if ((rdl(ep, REG_MIISTS) & REG_MIISTS_BUSY) == 0) in ep93xx_mdio_read()
201 data = rdl(ep, REG_MIIDATA); in ep93xx_mdio_read()
[all …]
/linux/drivers/pci/controller/dwc/
H A Dpcie-designware-ep.c21 * @ep: DWC EP device
27 dw_pcie_ep_get_func_from_ep(struct dw_pcie_ep *ep, u8 func_no) in dw_pcie_ep_get_func_from_ep() argument
31 list_for_each_entry(ep_func, &ep->func_list, list) { in dw_pcie_ep_get_func_from_ep()
42 struct dw_pcie_ep *ep = &pci->ep; in __dw_pcie_ep_reset_bar() local
47 dw_pcie_ep_writel_dbi2(ep, func_no, reg, 0x0); in __dw_pcie_ep_reset_bar()
48 dw_pcie_ep_writel_dbi(ep, func_no, reg, 0x0); in __dw_pcie_ep_reset_bar()
50 dw_pcie_ep_writel_dbi2(ep, func_no, reg + 4, 0x0); in __dw_pcie_ep_reset_bar()
51 dw_pcie_ep_writel_dbi(ep, func_n in __dw_pcie_ep_reset_bar()
72 dw_pcie_ep_find_capability(struct dw_pcie_ep * ep,u8 func_no,u8 cap) dw_pcie_ep_find_capability() argument
120 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_write_header() local
142 dw_pcie_ep_inbound_atu(struct dw_pcie_ep * ep,u8 func_no,int type,dma_addr_t parent_bus_addr,enum pci_barno bar,size_t size) dw_pcie_ep_inbound_atu() argument
177 dw_pcie_ep_outbound_atu(struct dw_pcie_ep * ep,struct dw_pcie_ob_atu_cfg * atu) dw_pcie_ep_outbound_atu() argument
204 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_clear_bar() local
244 dw_pcie_ep_set_bar_resizable(struct dw_pcie_ep * ep,u8 func_no,struct pci_epf_bar * epf_bar) dw_pcie_ep_set_bar_resizable() argument
302 dw_pcie_ep_set_bar_programmable(struct dw_pcie_ep * ep,u8 func_no,struct pci_epf_bar * epf_bar) dw_pcie_ep_set_bar_programmable() argument
326 dw_pcie_ep_get_bar_type(struct dw_pcie_ep * ep,enum pci_barno bar) dw_pcie_ep_get_bar_type() argument
342 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_set_bar() local
421 dw_pcie_find_index(struct dw_pcie_ep * ep,phys_addr_t addr,u32 * atu_index) dw_pcie_find_index() argument
440 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_align_addr() local
456 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_unmap_addr() local
473 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_map_addr() local
493 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_get_msi() local
514 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_set_msi() local
537 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_get_msix() local
558 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_set_msix() local
591 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_raise_irq() local
601 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_stop() local
609 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_start() local
618 struct dw_pcie_ep *ep = epc_get_drvdata(epc); dw_pcie_ep_get_features() local
650 dw_pcie_ep_raise_intx_irq(struct dw_pcie_ep * ep,u8 func_no) dw_pcie_ep_raise_intx_irq() argument
669 dw_pcie_ep_raise_msi_irq(struct dw_pcie_ep * ep,u8 func_no,u8 interrupt_num) dw_pcie_ep_raise_msi_irq() argument
727 dw_pcie_ep_raise_msix_irq_doorbell(struct dw_pcie_ep * ep,u8 func_no,u16 interrupt_num) dw_pcie_ep_raise_msix_irq_doorbell() argument
754 dw_pcie_ep_raise_msix_irq(struct dw_pcie_ep * ep,u8 func_no,u16 interrupt_num) dw_pcie_ep_raise_msix_irq() argument
809 dw_pcie_ep_cleanup(struct dw_pcie_ep * ep) dw_pcie_ep_cleanup() argument
825 dw_pcie_ep_deinit(struct dw_pcie_ep * ep) dw_pcie_ep_deinit() argument
840 struct dw_pcie_ep *ep = &pci->ep; dw_pcie_ep_init_non_sticky_registers() local
895 dw_pcie_ep_init_registers(struct dw_pcie_ep * ep) dw_pcie_ep_init_registers() argument
1004 dw_pcie_ep_linkup(struct dw_pcie_ep * ep) dw_pcie_ep_linkup() argument
1020 dw_pcie_ep_linkdown(struct dw_pcie_ep * ep) dw_pcie_ep_linkdown() argument
1037 dw_pcie_ep_get_resources(struct dw_pcie_ep * ep) dw_pcie_ep_get_resources() argument
1081 dw_pcie_ep_init(struct dw_pcie_ep * ep) dw_pcie_ep_init() argument
[all...]
H A Dpci-exynos.c71 static void exynos_pcie_sideband_dbi_w_mode(struct exynos_pcie *ep, bool on) in exynos_pcie_sideband_dbi_w_mode() argument
73 struct dw_pcie *pci = &ep->pci; in exynos_pcie_sideband_dbi_w_mode()
84 static void exynos_pcie_sideband_dbi_r_mode(struct exynos_pcie *ep, bool on) in exynos_pcie_sideband_dbi_r_mode() argument
86 struct dw_pcie *pci = &ep->pci; in exynos_pcie_sideband_dbi_r_mode()
97 static void exynos_pcie_assert_core_reset(struct exynos_pcie *ep) in exynos_pcie_assert_core_reset() argument
99 struct dw_pcie *pci = &ep->pci; in exynos_pcie_assert_core_reset()
109 static void exynos_pcie_deassert_core_reset(struct exynos_pcie *ep) in exynos_pcie_deassert_core_reset() argument
111 struct dw_pcie *pci = &ep->pci; in exynos_pcie_deassert_core_reset()
138 static void exynos_pcie_clear_irq_pulse(struct exynos_pcie *ep) in exynos_pcie_clear_irq_pulse() argument
140 struct dw_pcie *pci = &ep->pci; in exynos_pcie_clear_irq_pulse()
[all …]
/linux/drivers/usb/gadget/udc/
H A Dsnps_udc_core.c41 static struct udc_request *udc_alloc_bna_dummy(struct udc_ep *ep);
194 DBG(dev, "dev ep int's = %08x\n", readl(&dev->regs->ep_irqsts)); in print_regs()
195 DBG(dev, "dev ep intmask = %08x\n", readl(&dev->regs->ep_irqmsk)); in print_regs()
232 /* mask all ep interrupts */ in udc_mask_unused_interrupts()
279 static int udc_set_txfifo_addr(struct udc_ep *ep) in udc_set_txfifo_addr() argument
285 if (!ep || !(ep->in)) in udc_set_txfifo_addr()
288 dev = ep->dev; in udc_set_txfifo_addr()
289 ep->txfifo = dev->txfifo; in udc_set_txfifo_addr()
291 /* traverse ep's */ in udc_set_txfifo_addr()
292 for (i = 0; i < ep->num; i++) { in udc_set_txfifo_addr()
[all …]
H A Dr8a66597-udc.c35 static void irq_ep0_write(struct r8a66597_ep *ep, struct r8a66597_request *req);
36 static void irq_packet_write(struct r8a66597_ep *ep,
41 static void transfer_complete(struct r8a66597_ep *ep,
98 INIT_LIST_HEAD(&r8a66597->ep[0].queue); in r8a66597_usb_disconnect()
298 struct r8a66597_ep *ep = r8a66597->pipenum2ep[pipenum]; in pipe_change() local
300 if (ep->use_dma) in pipe_change()
301 r8a66597_bclr(r8a66597, DREQE, ep->fifosel); in pipe_change()
303 r8a66597_mdfy(r8a66597, pipenum, CURPIPE, ep->fifosel); in pipe_change()
307 if (r8a66597_is_sudmac(r8a66597) && ep->use_dma) in pipe_change()
308 r8a66597_bclr(r8a66597, mbw_value(r8a66597), ep->fifosel); in pipe_change()
[all …]
H A Dpch_udc.c23 #define UDC_EP_REG_SHIFT 0x20 /* Offset to next EP */
174 #define PCH_UDC_CSR(ep) (UDC_CSR_ADDR + ep*4) argument
181 #define UDC_EPIN_IDX(ep) (ep * 2) argument
182 #define UDC_EPOUT_IDX(ep) (ep * 2 + 1) argument
190 #define PCH_UDC_USED_EP_NUM 4 /* EP number of EP's really used */
194 /* Value of EP Buffer Size */
199 /* Value of EP maximum packet size */
270 * @ep: embedded ep request
276 * @offset_addr: offset address of ep register
284 struct usb_ep ep; member
[all …]
H A Dnet2280.c87 EP_INFO("ep-a",
89 EP_INFO("ep-b",
91 EP_INFO("ep-c",
93 EP_INFO("ep-d",
95 EP_INFO("ep-e",
97 EP_INFO("ep-f",
99 EP_INFO("ep-g",
101 EP_INFO("ep-h",
126 /* mode 0 == ep-{a,b,c,d} 1K fifo each
127 * mode 1 == ep-{a,b} 2K fifo each, ep-{c,d} unavailable
[all …]
H A Dgoku_udc.c14 * - Endpoint numbering is fixed: ep{1,2,3}-bulk
15 * - Gadget drivers can choose ep maxpacket (8/16/32/64)
94 struct goku_ep *ep; in goku_ep_enable() local
99 ep = container_of(_ep, struct goku_ep, ep); in goku_ep_enable()
103 dev = ep->dev; in goku_ep_enable()
104 if (ep == &dev->ep[0]) in goku_ep_enable()
108 if (ep->num != usb_endpoint_num(desc)) in goku_ep_enable()
119 if ((readl(ep->reg_status) & EPxSTATUS_EP_MASK) in goku_ep_enable()
147 ep->is_in = usb_endpoint_dir_in(desc); in goku_ep_enable()
148 if (ep->is_in) { in goku_ep_enable()
[all …]
H A Dm66592-udc.c35 static void irq_ep0_write(struct m66592_ep *ep, struct m66592_request *req);
36 static void irq_packet_write(struct m66592_ep *ep, struct m66592_request *req);
40 static void transfer_complete(struct m66592_ep *ep,
99 INIT_LIST_HEAD(&m66592->ep[0].queue); in m66592_usb_disconnect()
208 struct m66592_ep *ep = m66592->pipenum2ep[pipenum]; in pipe_change() local
211 if (ep->use_dma) in pipe_change()
214 m66592_mdfy(m66592, pipenum, M66592_CURPIPE, ep->fifosel); in pipe_change()
223 m66592_bset(m66592, mbw, ep->fifosel); in pipe_change()
300 static void pipe_initialize(struct m66592_ep *ep) in pipe_initialize() argument
302 struct m66592 *m66592 = ep->m66592; in pipe_initialize()
[all …]
H A Domap_udc.c120 static void use_ep(struct omap_ep *ep, u16 select) in use_ep() argument
122 u16 num = ep->bEndpointAddress & 0x0f; in use_ep()
124 if (ep->bEndpointAddress & USB_DIR_IN) in use_ep()
140 static void dma_channel_claim(struct omap_ep *ep, unsigned preferred);
147 struct omap_ep *ep = container_of(_ep, struct omap_ep, ep); in omap_ep_enable() local
155 || ep->bEndpointAddress != desc->bEndpointAddress in omap_ep_enable()
156 || ep->maxpacket < usb_endpoint_maxp(desc)) { in omap_ep_enable()
157 DBG("%s, bad ep or descriptor\n", __func__); in omap_ep_enable()
162 && maxp != ep->maxpacket) in omap_ep_enable()
163 || usb_endpoint_maxp(desc) > ep->maxpacket in omap_ep_enable()
[all …]
/linux/drivers/usb/fotg210/
H A Dfotg210-udc.c40 static void fotg210_disable_fifo_int(struct fotg210_ep *ep) in fotg210_disable_fifo_int() argument
42 u32 value = ioread32(ep->fotg210->reg + FOTG210_DMISGR1); in fotg210_disable_fifo_int()
44 if (ep->dir_in) in fotg210_disable_fifo_int()
45 value |= DMISGR1_MF_IN_INT(ep->epnum - 1); in fotg210_disable_fifo_int()
47 value |= DMISGR1_MF_OUTSPK_INT(ep->epnum - 1); in fotg210_disable_fifo_int()
48 iowrite32(value, ep->fotg210->reg + FOTG210_DMISGR1); in fotg210_disable_fifo_int()
51 static void fotg210_enable_fifo_int(struct fotg210_ep *ep) in fotg210_enable_fifo_int() argument
53 u32 value = ioread32(ep->fotg210->reg + FOTG210_DMISGR1); in fotg210_enable_fifo_int()
55 if (ep->dir_in) in fotg210_enable_fifo_int()
56 value &= ~DMISGR1_MF_IN_INT(ep->epnum - 1); in fotg210_enable_fifo_int()
[all …]
/linux/drivers/usb/gadget/udc/bdc/
H A Dbdc_ep.c51 /* Free the bdl during ep disable */
52 static void ep_bd_list_free(struct bdc_ep *ep, u32 num_tabs) in ep_bd_list_free() argument
54 struct bd_list *bd_list = &ep->bd_list; in ep_bd_list_free()
55 struct bdc *bdc = ep->bdc; in ep_bd_list_free()
59 dev_dbg(bdc->dev, "%s ep:%s num_tabs:%d\n", in ep_bd_list_free()
60 __func__, ep->name, num_tabs); in ep_bd_list_free()
63 dev_dbg(bdc->dev, "%s already freed\n", ep->name); in ep_bd_list_free()
95 kfree(ep->bd_list.bd_table_array); in ep_bd_list_free()
120 /* Allocate the bdl for ep, during config ep */
121 static int ep_bd_list_alloc(struct bdc_ep *ep) in ep_bd_list_alloc() argument
[all …]
/linux/drivers/scsi/libfc/
H A Dfc_exch.c245 * @ep: Echange to be held
247 static inline void fc_exch_hold(struct fc_exch *ep) in fc_exch_hold() argument
249 atomic_inc(&ep->ex_refcnt); in fc_exch_hold()
255 * @ep: The exchange to that will use the header
262 static void fc_exch_setup_hdr(struct fc_exch *ep, struct fc_frame *fp, in fc_exch_setup_hdr() argument
268 fr_sof(fp) = ep->class; in fc_exch_setup_hdr()
269 if (ep->seq.cnt) in fc_exch_setup_hdr()
270 fr_sof(fp) = fc_sof_normal(ep->class); in fc_exch_setup_hdr()
274 if (fc_sof_needs_ack((enum fc_sof)ep->class)) in fc_exch_setup_hdr()
298 fh->fh_ox_id = htons(ep->oxid); in fc_exch_setup_hdr()
[all …]
/linux/drivers/usb/mon/
H A Dmon_text.c108 struct mon_text_ptr *p, const struct mon_event_text *ep);
110 struct mon_text_ptr *p, const struct mon_event_text *ep);
112 struct mon_text_ptr *p, const struct mon_event_text *ep);
114 struct mon_text_ptr *p, const struct mon_event_text *ep);
116 struct mon_text_ptr *p, const struct mon_event_text *ep);
118 struct mon_text_ptr *p, const struct mon_event_text *ep);
120 struct mon_text_ptr *p, const struct mon_event_text *ep);
131 static inline char mon_text_get_setup(struct mon_event_text *ep, in mon_text_get_setup() argument
135 if (ep->xfertype != USB_ENDPOINT_XFER_CONTROL || ev_type != 'S') in mon_text_get_setup()
141 memcpy(ep->setup, urb->setup_packet, SETUP_MAX); in mon_text_get_setup()
[all …]
/linux/drivers/video/fbdev/
H A Dsunxvr500.c56 static int e3d_get_props(struct e3d_info *ep) in e3d_get_props() argument
58 ep->width = of_getintprop_default(ep->of_node, "width", 0); in e3d_get_props()
59 ep->height = of_getintprop_default(ep->of_node, "height", 0); in e3d_get_props()
60 ep->depth = of_getintprop_default(ep->of_node, "depth", 8); in e3d_get_props()
62 if (!ep->width || !ep->height) { in e3d_get_props()
64 pci_name(ep->pdev)); in e3d_get_props()
99 static void e3d_clut_write(struct e3d_info *ep, int index, u32 val) in e3d_clut_write() argument
101 void __iomem *ramdac = ep->ramdac; in e3d_clut_write()
104 spin_lock_irqsave(&ep->lock, flags); in e3d_clut_write()
109 spin_unlock_irqrestore(&ep->lock, flags); in e3d_clut_write()
[all …]
/linux/drivers/pci/controller/
H A Dpcie-rockchip-ep.c118 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); in rockchip_pcie_ep_write_header() local
119 struct rockchip_pcie *rockchip = &ep->rockchip; in rockchip_pcie_ep_write_header()
154 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); in rockchip_pcie_ep_set_bar() local
155 struct rockchip_pcie *rockchip = &ep->rockchip; in rockchip_pcie_ep_set_bar()
222 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); in rockchip_pcie_ep_clear_bar() local
223 struct rockchip_pcie *rockchip = &ep->rockchip; in rockchip_pcie_ep_clear_bar()
256 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); in rockchip_pcie_ep_align_addr() local
261 num_bits = rockchip_pcie_ep_ob_atu_num_bits(&ep->rockchip, in rockchip_pcie_ep_align_addr()
279 struct rockchip_pcie_ep *ep = epc_get_drvdata(epc); in rockchip_pcie_ep_map_addr() local
280 struct rockchip_pcie *pcie = &ep->rockchip; in rockchip_pcie_ep_map_addr()
[all …]
/linux/drivers/net/ethernet/smsc/
H A Depic100.c326 struct epic_private *ep; in epic_init_one() local
357 dev = alloc_etherdev(sizeof (*ep)); in epic_init_one()
370 ep = netdev_priv(dev); in epic_init_one()
371 ep->ioaddr = ioaddr; in epic_init_one()
372 ep->mii.dev = dev; in epic_init_one()
373 ep->mii.mdio_read = mdio_read; in epic_init_one()
374 ep->mii.mdio_write = mdio_write; in epic_init_one()
375 ep->mii.phy_id_mask = 0x1f; in epic_init_one()
376 ep->mii.reg_num_mask = 0x1f; in epic_init_one()
382 ep->tx_ring = ring_space; in epic_init_one()
[all …]
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_iwarp.c91 * syn processing and replacing a pre-allocated ep in the list. The second
488 struct qed_iwarp_ep *ep, in qed_iwarp_destroy_ep() argument
492 sizeof(*ep->ep_buffer_virt), in qed_iwarp_destroy_ep()
493 ep->ep_buffer_virt, ep->ep_buffer_phys); in qed_iwarp_destroy_ep()
497 list_del(&ep->list_entry); in qed_iwarp_destroy_ep()
501 if (ep->qp) in qed_iwarp_destroy_ep()
502 ep->qp->ep = NULL; in qed_iwarp_destroy_ep()
504 kfree(ep); in qed_iwarp_destroy_ep()
509 struct qed_iwarp_ep *ep = qp->ep; in qed_iwarp_destroy_qp() local
520 /* Make sure ep is closed before returning and freeing memory. */ in qed_iwarp_destroy_qp()
[all …]
/linux/drivers/usb/host/
H A Dfhci-tds.c82 void fhci_push_dummy_bd(struct endpoint *ep) in fhci_push_dummy_bd() argument
84 if (!ep->already_pushed_dummy_bd) { in fhci_push_dummy_bd()
85 u16 td_status = in_be16(&ep->empty_td->status); in fhci_push_dummy_bd()
87 out_be32(&ep->empty_td->buf_ptr, DUMMY_BD_BUFFER); in fhci_push_dummy_bd()
89 ep->empty_td = next_bd(ep->td_base, ep->empty_td, td_status); in fhci_push_dummy_bd()
90 ep->already_pushed_dummy_bd = true; in fhci_push_dummy_bd()
97 struct endpoint *ep; in fhci_ep0_free() local
100 ep = usb->ep0; in fhci_ep0_free()
101 if (ep) { in fhci_ep0_free()
102 if (ep->td_base) in fhci_ep0_free()
[all …]
/linux/drivers/usb/usbip/
H A Dvudc_dev.c51 urb_p->ep = NULL; in alloc_urbp()
73 static void nuke(struct vudc *udc, struct vep *ep) in nuke() argument
77 while (!list_empty(&ep->req_queue)) { in nuke()
78 req = list_first_entry(&ep->req_queue, struct vrequest, in nuke()
84 usb_gadget_giveback_request(&ep->ep, &req->req); in nuke()
98 nuke(udc, &udc->ep[i]); in stop_activity()
111 return &udc->ep[0]; in vudc_find_endpoint()
114 struct vep *ep = &udc->ep[i]; in vudc_find_endpoint() local
116 if (!ep->desc) in vudc_find_endpoint()
118 if (ep->desc->bEndpointAddress == address) in vudc_find_endpoint()
[all …]
/linux/drivers/scsi/bnx2i/
H A Dbnx2i_hwi.c25 * bnx2i_get_cid_num - get cid from ep
26 * @ep: endpoint pointer
30 static u32 bnx2i_get_cid_num(struct bnx2i_endpoint *ep) in bnx2i_get_cid_num() argument
34 if (test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) in bnx2i_get_cid_num()
35 cid = ep->ep_cid; in bnx2i_get_cid_num()
37 cid = GET_CID_NUM(ep->ep_cid); in bnx2i_get_cid_num()
131 * @ep: endpoint (transport identifier) structure
138 int bnx2i_arm_cq_event_coalescing(struct bnx2i_endpoint *ep, u8 action) in bnx2i_arm_cq_event_coalescing() argument
146 if (!test_bit(BNX2I_NX2_DEV_57710, &ep->hba->cnic_dev_type)) in bnx2i_arm_cq_event_coalescing()
153 cq_db = (struct bnx2i_5771x_cq_db *) ep->qp.cq_pgtbl_virt; in bnx2i_arm_cq_event_coalescing()
[all …]

12345678910>>...29