/kernel/linux/linux-5.10/sound/usb/ |
D | endpoint.c | 77 usb_free_coherent(u->ep->chip->dev, u->buffer_size, in release_urb_ctx() 118 int snd_usb_endpoint_implicit_feedback_sink(struct snd_usb_endpoint *ep) in snd_usb_endpoint_implicit_feedback_sink() argument 120 return ep->sync_master && in snd_usb_endpoint_implicit_feedback_sink() 121 ep->sync_master->type == SND_USB_ENDPOINT_TYPE_DATA && in snd_usb_endpoint_implicit_feedback_sink() 122 ep->type == SND_USB_ENDPOINT_TYPE_DATA && in snd_usb_endpoint_implicit_feedback_sink() 123 usb_pipeout(ep->pipe); in snd_usb_endpoint_implicit_feedback_sink() 133 int snd_usb_endpoint_slave_next_packet_size(struct snd_usb_endpoint *ep) in snd_usb_endpoint_slave_next_packet_size() argument 138 if (ep->fill_max) in snd_usb_endpoint_slave_next_packet_size() 139 return ep->maxframesize; in snd_usb_endpoint_slave_next_packet_size() 141 spin_lock_irqsave(&ep->lock, flags); in snd_usb_endpoint_slave_next_packet_size() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/aspeed-vhub/ |
D | epn.c | 38 #define CHECK(ep, expr, fmt...) \ argument 40 if (!(expr)) EPDBG(ep, "CHECK:" fmt); \ 43 #define CHECK(ep, expr, fmt...) do { } while(0) argument 46 static void ast_vhub_epn_kick(struct ast_vhub_ep *ep, struct ast_vhub_req *req) in ast_vhub_epn_kick() argument 57 if (chunk > ep->ep.maxpacket) in ast_vhub_epn_kick() 58 chunk = ep->ep.maxpacket; in ast_vhub_epn_kick() 59 else if ((chunk < ep->ep.maxpacket) || !req->req.zero) in ast_vhub_epn_kick() 62 EPVDBG(ep, "kick req %p act=%d/%d chunk=%d last=%d\n", in ast_vhub_epn_kick() 69 if (ep->epn.is_in) { in ast_vhub_epn_kick() 70 memcpy(ep->buf, req->req.buf + act, chunk); in ast_vhub_epn_kick() [all …]
|
D | ep0.c | 35 int ast_vhub_reply(struct ast_vhub_ep *ep, char *ptr, int len) in ast_vhub_reply() argument 37 struct usb_request *req = &ep->ep0.req.req; in ast_vhub_reply() 40 if (WARN_ON(ep->d_idx != 0)) in ast_vhub_reply() 42 if (WARN_ON(!ep->ep0.dir_in)) in ast_vhub_reply() 59 spin_unlock(&ep->vhub->lock); in ast_vhub_reply() 60 if (ep->ep.ops->queue(&ep->ep, req, GFP_ATOMIC)) in ast_vhub_reply() 64 spin_lock(&ep->vhub->lock); in ast_vhub_reply() 68 int __ast_vhub_simple_reply(struct ast_vhub_ep *ep, int len, ...) in __ast_vhub_simple_reply() argument 70 u8 *buffer = ep->buf; in __ast_vhub_simple_reply() 82 return ast_vhub_reply(ep, NULL, len); in __ast_vhub_simple_reply() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/cxgb4/ |
D | cm.c | 144 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 …]
|
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
D | fsl_qe_udc.c | 76 static void done(struct qe_ep *ep, struct qe_req *req, int status) in done() argument 78 struct qe_udc *udc = ep->udc; in done() 79 unsigned char stopped = ep->stopped; in done() 96 ep_is_in(ep) in done() 104 ep_is_in(ep) in done() 110 ep->ep.name, &req->req, status, in done() 114 ep->stopped = 1; in done() 117 usb_gadget_giveback_request(&ep->ep, &req->req); in done() 121 ep->stopped = stopped; in done() 127 static void nuke(struct qe_ep *ep, int status) in nuke() argument [all …]
|
D | goku_udc.c | 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() 150 ep->dma = (use_dma != 0) && (ep->num == UDC_MSTRD_ENDPOINT); in goku_ep_enable() 152 ep->dma = (use_dma == 2) && (ep->num == UDC_MSTWR_ENDPOINT); in goku_ep_enable() [all …]
|
D | pch_udc.c | 175 #define PCH_UDC_CSR(ep) (UDC_CSR_ADDR + ep*4) argument 182 #define UDC_EPIN_IDX(ep) (ep * 2) argument 183 #define UDC_EPOUT_IDX(ep) (ep * 2 + 1) argument 286 struct usb_ep ep; member 343 struct pch_udc_ep ep[PCH_UDC_EP_NUM]; member 431 static inline u32 pch_udc_ep_readl(struct pch_udc_ep *ep, unsigned long reg) in pch_udc_ep_readl() argument 433 return ioread32(ep->dev->base_addr + ep->offset_addr + reg); in pch_udc_ep_readl() 436 static inline void pch_udc_ep_writel(struct pch_udc_ep *ep, in pch_udc_ep_writel() argument 439 iowrite32(val, ep->dev->base_addr + ep->offset_addr + reg); in pch_udc_ep_writel() 442 static inline void pch_udc_ep_bit_set(struct pch_udc_ep *ep, in pch_udc_ep_bit_set() argument [all …]
|
D | fotg210-udc.c | 28 static void fotg210_disable_fifo_int(struct fotg210_ep *ep) in fotg210_disable_fifo_int() argument 30 u32 value = ioread32(ep->fotg210->reg + FOTG210_DMISGR1); in fotg210_disable_fifo_int() 32 if (ep->dir_in) in fotg210_disable_fifo_int() 33 value |= DMISGR1_MF_IN_INT(ep->epnum - 1); in fotg210_disable_fifo_int() 35 value |= DMISGR1_MF_OUTSPK_INT(ep->epnum - 1); in fotg210_disable_fifo_int() 36 iowrite32(value, ep->fotg210->reg + FOTG210_DMISGR1); in fotg210_disable_fifo_int() 39 static void fotg210_enable_fifo_int(struct fotg210_ep *ep) in fotg210_enable_fifo_int() argument 41 u32 value = ioread32(ep->fotg210->reg + FOTG210_DMISGR1); in fotg210_enable_fifo_int() 43 if (ep->dir_in) in fotg210_enable_fifo_int() 44 value &= ~DMISGR1_MF_IN_INT(ep->epnum - 1); in fotg210_enable_fifo_int() [all …]
|
D | snps_udc_core.c | 42 static struct udc_request *udc_alloc_bna_dummy(struct udc_ep *ep); 283 static int udc_set_txfifo_addr(struct udc_ep *ep) in udc_set_txfifo_addr() argument 289 if (!ep || !(ep->in)) in udc_set_txfifo_addr() 292 dev = ep->dev; in udc_set_txfifo_addr() 293 ep->txfifo = dev->txfifo; in udc_set_txfifo_addr() 296 for (i = 0; i < ep->num; i++) { in udc_set_txfifo_addr() 297 if (dev->ep[i].regs) { in udc_set_txfifo_addr() 299 tmp = readl(&dev->ep[i].regs->bufin_framenum); in udc_set_txfifo_addr() 301 ep->txfifo += tmp; in udc_set_txfifo_addr() 310 static void UDC_QUEUE_CNAK(struct udc_ep *ep, unsigned num) in UDC_QUEUE_CNAK() argument [all …]
|
D | net2280.c | 162 static void ep_clear_seqnum(struct net2280_ep *ep); 168 static inline void enable_pciirqenb(struct net2280_ep *ep) in enable_pciirqenb() argument 170 u32 tmp = readl(&ep->dev->regs->pciirqenb0); in enable_pciirqenb() 172 if (ep->dev->quirks & PLX_LEGACY) in enable_pciirqenb() 173 tmp |= BIT(ep->num); in enable_pciirqenb() 175 tmp |= BIT(ep_bit[ep->num]); in enable_pciirqenb() 176 writel(tmp, &ep->dev->regs->pciirqenb0); in enable_pciirqenb() 185 struct net2280_ep *ep; in net2280_enable() local 193 ep = container_of(_ep, struct net2280_ep, ep); in net2280_enable() 194 if (!_ep || !desc || ep->desc || _ep->name == ep0name || in net2280_enable() [all …]
|
D | pxa27x_udc.c | 79 static void handle_ep(struct pxa_ep *ep); 139 struct pxa_ep *ep; in queues_dbg_show() local 148 ep = &udc->pxa_ep[i]; in queues_dbg_show() 149 maxpkt = ep->fifo_size; in queues_dbg_show() 151 EPNAME(ep), maxpkt, "pio"); in queues_dbg_show() 153 if (list_empty(&ep->queue)) { in queues_dbg_show() 158 list_for_each_entry(req, &ep->queue, queue) { in queues_dbg_show() 172 struct pxa_ep *ep; in eps_dbg_show() local 179 ep = &udc->pxa_ep[0]; in eps_dbg_show() 180 tmp = udc_ep_readl(ep, UDCCSR); in eps_dbg_show() [all …]
|
D | net2272.c | 106 static void assert_out_naking(struct net2272_ep *ep, const char *where) in assert_out_naking() argument 114 tmp = net2272_ep_read(ep, EP_STAT0); in assert_out_naking() 116 dev_dbg(ep->dev->dev, "%s %s %02x !NAK\n", in assert_out_naking() 117 ep->ep.name, where, tmp); in assert_out_naking() 118 net2272_ep_write(ep, EP_RSPSET, 1 << ALT_NAK_OUT_PACKETS); in assert_out_naking() 121 #define ASSERT_OUT_NAKING(ep) assert_out_naking(ep, __func__) argument 123 static void stop_out_naking(struct net2272_ep *ep) in stop_out_naking() argument 125 u8 tmp = net2272_ep_read(ep, EP_STAT0); in stop_out_naking() 128 net2272_ep_write(ep, EP_RSPCLR, 1 << ALT_NAK_OUT_PACKETS); in stop_out_naking() 178 struct net2272_ep *ep; in net2272_enable() local [all …]
|
D | atmel_usba_udc.c | 39 struct usba_ep *ep = inode->i_private; in queue_dbg_open() local 48 spin_lock_irq(&ep->udc->lock); in queue_dbg_open() 49 list_for_each_entry(req, &ep->queue, queue) { in queue_dbg_open() 55 spin_unlock_irq(&ep->udc->lock); in queue_dbg_open() 61 spin_unlock_irq(&ep->udc->lock); in queue_dbg_open() 205 struct usba_ep *ep) in usba_ep_init_debugfs() argument 209 ep_root = debugfs_create_dir(ep->ep.name, udc->debugfs_root); in usba_ep_init_debugfs() 210 ep->debugfs_dir = ep_root; in usba_ep_init_debugfs() 212 debugfs_create_file("queue", 0400, ep_root, ep, &queue_dbg_fops); in usba_ep_init_debugfs() 213 if (ep->can_dma) in usba_ep_init_debugfs() [all …]
|
D | r8a66597-udc.c | 35 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 …]
|
D | gr_udc.c | 91 static void gr_dbgprint_request(const char *str, struct gr_ep *ep, in gr_dbgprint_request() argument 94 int buflen = ep->is_in ? req->req.length : req->req.actual; in gr_dbgprint_request() 98 dev_dbg(ep->dev->dev, "%s: 0x%p, %d bytes data%s:\n", str, req, buflen, in gr_dbgprint_request() 112 static void gr_dbgprint_request(const char *str, struct gr_ep *ep, in gr_dbgprint_request() argument 125 static void gr_seq_ep_show(struct seq_file *seq, struct gr_ep *ep) in gr_seq_ep_show() argument 127 u32 epctrl = gr_read32(&ep->regs->epctrl); in gr_seq_ep_show() 128 u32 epstat = gr_read32(&ep->regs->epstat); in gr_seq_ep_show() 132 seq_printf(seq, "%s:\n", ep->ep.name); in gr_seq_ep_show() 137 seq_printf(seq, " dma_start = %d\n", ep->dma_start); in gr_seq_ep_show() 138 seq_printf(seq, " stopped = %d\n", ep->stopped); in gr_seq_ep_show() [all …]
|
D | omap_udc.c | 118 static void use_ep(struct omap_ep *ep, u16 select) in use_ep() argument 120 u16 num = ep->bEndpointAddress & 0x0f; in use_ep() 122 if (ep->bEndpointAddress & USB_DIR_IN) in use_ep() 138 static void dma_channel_claim(struct omap_ep *ep, unsigned preferred); 145 struct omap_ep *ep = container_of(_ep, struct omap_ep, ep); in omap_ep_enable() local 153 || ep->bEndpointAddress != desc->bEndpointAddress in omap_ep_enable() 154 || ep->maxpacket < usb_endpoint_maxp(desc)) { in omap_ep_enable() 160 && maxp != ep->maxpacket) in omap_ep_enable() 161 || usb_endpoint_maxp(desc) > ep->maxpacket in omap_ep_enable() 183 if (ep->bmAttributes != desc->bmAttributes in omap_ep_enable() [all …]
|
D | m66592-udc.c | 35 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 …]
|
/kernel/linux/linux-5.10/net/sctp/ |
D | endpointola.c | 41 static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep, in sctp_endpoint_init() argument 48 ep->digest = kzalloc(SCTP_SIGNATURE_SIZE, gfp); in sctp_endpoint_init() 49 if (!ep->digest) in sctp_endpoint_init() 52 ep->asconf_enable = net->sctp.addip_enable; in sctp_endpoint_init() 53 ep->auth_enable = net->sctp.auth_enable; in sctp_endpoint_init() 54 if (ep->auth_enable) { in sctp_endpoint_init() 55 if (sctp_auth_init(ep, gfp)) in sctp_endpoint_init() 57 if (ep->asconf_enable) { in sctp_endpoint_init() 58 sctp_auth_ep_add_chunkid(ep, SCTP_CID_ASCONF); in sctp_endpoint_init() 59 sctp_auth_ep_add_chunkid(ep, SCTP_CID_ASCONF_ACK); in sctp_endpoint_init() [all …]
|
/kernel/linux/linux-5.10/drivers/pci/controller/dwc/ |
D | pci-exynos.c | 76 struct exynos_pcie *ep); 77 int (*get_clk_resources)(struct exynos_pcie *ep); 78 int (*init_clk_resources)(struct exynos_pcie *ep); 79 void (*deinit_clk_resources)(struct exynos_pcie *ep); 83 struct exynos_pcie *ep) in exynos5440_pcie_get_mem_resources() argument 85 struct dw_pcie *pci = ep->pci; in exynos5440_pcie_get_mem_resources() 88 ep->mem_res = devm_kzalloc(dev, sizeof(*ep->mem_res), GFP_KERNEL); in exynos5440_pcie_get_mem_resources() 89 if (!ep->mem_res) in exynos5440_pcie_get_mem_resources() 92 ep->mem_res->elbi_base = devm_platform_ioremap_resource(pdev, 0); in exynos5440_pcie_get_mem_resources() 93 if (IS_ERR(ep->mem_res->elbi_base)) in exynos5440_pcie_get_mem_resources() [all …]
|
D | pcie-designware-ep.c | 17 void dw_pcie_ep_linkup(struct dw_pcie_ep *ep) in dw_pcie_ep_linkup() argument 19 struct pci_epc *epc = ep->epc; in dw_pcie_ep_linkup() 25 void dw_pcie_ep_init_notify(struct dw_pcie_ep *ep) in dw_pcie_ep_init_notify() argument 27 struct pci_epc *epc = ep->epc; in dw_pcie_ep_init_notify() 34 dw_pcie_ep_get_func_from_ep(struct dw_pcie_ep *ep, u8 func_no) in dw_pcie_ep_get_func_from_ep() argument 38 list_for_each_entry(ep_func, &ep->func_list, list) { in dw_pcie_ep_get_func_from_ep() 46 static unsigned int dw_pcie_ep_func_select(struct dw_pcie_ep *ep, u8 func_no) in dw_pcie_ep_func_select() argument 50 if (ep->ops->func_conf_select) in dw_pcie_ep_func_select() 51 func_offset = ep->ops->func_conf_select(ep, func_no); in dw_pcie_ep_func_select() 61 struct dw_pcie_ep *ep = &pci->ep; in __dw_pcie_ep_reset_bar() local [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/libfc/ |
D | fc_exch.c | 248 static inline void fc_exch_hold(struct fc_exch *ep) in fc_exch_hold() argument 250 atomic_inc(&ep->ex_refcnt); in fc_exch_hold() 263 static void fc_exch_setup_hdr(struct fc_exch *ep, struct fc_frame *fp, in fc_exch_setup_hdr() argument 269 fr_sof(fp) = ep->class; in fc_exch_setup_hdr() 270 if (ep->seq.cnt) in fc_exch_setup_hdr() 271 fr_sof(fp) = fc_sof_normal(ep->class); in fc_exch_setup_hdr() 275 if (fc_sof_needs_ack(ep->class)) in fc_exch_setup_hdr() 299 fh->fh_ox_id = htons(ep->oxid); in fc_exch_setup_hdr() 300 fh->fh_rx_id = htons(ep->rxid); in fc_exch_setup_hdr() 301 fh->fh_seq_id = ep->seq.id; in fc_exch_setup_hdr() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cirrus/ |
D | ep93xx_eth.c | 177 #define rdb(ep, off) __raw_readb((ep)->base_addr + (off)) argument 178 #define rdw(ep, off) __raw_readw((ep)->base_addr + (off)) argument 179 #define rdl(ep, off) __raw_readl((ep)->base_addr + (off)) argument 180 #define wrb(ep, off, val) __raw_writeb((val), (ep)->base_addr + (off)) argument 181 #define wrw(ep, off, val) __raw_writew((val), (ep)->base_addr + (off)) argument 182 #define wrl(ep, off, val) __raw_writel((val), (ep)->base_addr + (off)) argument 186 struct ep93xx_priv *ep = netdev_priv(dev); in ep93xx_mdio_read() local 190 wrl(ep, REG_MIICMD, REG_MIICMD_READ | (phy_id << 5) | reg); in ep93xx_mdio_read() 193 if ((rdl(ep, REG_MIISTS) & REG_MIISTS_BUSY) == 0) in ep93xx_mdio_read() 202 data = rdl(ep, REG_MIIDATA); in ep93xx_mdio_read() [all …]
|
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
D | sunxvr500.c | 55 static int e3d_get_props(struct e3d_info *ep) in e3d_get_props() argument 57 ep->width = of_getintprop_default(ep->of_node, "width", 0); in e3d_get_props() 58 ep->height = of_getintprop_default(ep->of_node, "height", 0); in e3d_get_props() 59 ep->depth = of_getintprop_default(ep->of_node, "depth", 8); in e3d_get_props() 61 if (!ep->width || !ep->height) { in e3d_get_props() 63 pci_name(ep->pdev)); in e3d_get_props() 98 static void e3d_clut_write(struct e3d_info *ep, int index, u32 val) in e3d_clut_write() argument 100 void __iomem *ramdac = ep->ramdac; in e3d_clut_write() 103 spin_lock_irqsave(&ep->lock, flags); in e3d_clut_write() 108 spin_unlock_irqrestore(&ep->lock, flags); in e3d_clut_write() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/smsc/ |
D | epic100.c | 326 struct epic_private *ep; in epic_init_one() local 356 dev = alloc_etherdev(sizeof (*ep)); in epic_init_one() 369 ep = netdev_priv(dev); in epic_init_one() 370 ep->ioaddr = ioaddr; in epic_init_one() 371 ep->mii.dev = dev; in epic_init_one() 372 ep->mii.mdio_read = mdio_read; in epic_init_one() 373 ep->mii.mdio_write = mdio_write; in epic_init_one() 374 ep->mii.phy_id_mask = 0x1f; in epic_init_one() 375 ep->mii.reg_num_mask = 0x1f; in epic_init_one() 381 ep->tx_ring = ring_space; in epic_init_one() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/bdc/ |
D | bdc_ep.c | 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() 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() 121 static int ep_bd_list_alloc(struct bdc_ep *ep) in ep_bd_list_alloc() argument 125 struct bdc *bdc = ep->bdc; in ep_bd_list_alloc() 129 if (usb_endpoint_xfer_isoc(ep->desc)) in ep_bd_list_alloc() 138 __func__, ep, num_tabs); in ep_bd_list_alloc() [all …]
|