Home
last modified time | relevance | path

Searched refs:ep (Results 1 – 25 of 520) sorted by relevance

12345678910>>...21

/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 synced_next_packet_size(struct snd_usb_endpoint *ep, in slave_next_packet_size() argument
186 next_packet_size(struct snd_usb_endpoint * ep,unsigned int avail) next_packet_size() argument
216 snd_usb_endpoint_next_packet_size(struct snd_usb_endpoint * ep,struct snd_urb_ctx * ctx,int idx,unsigned int avail) snd_usb_endpoint_next_packet_size() argument
235 call_retire_callback(struct snd_usb_endpoint * ep,struct urb * urb) call_retire_callback() argument
245 retire_outbound_urb(struct snd_usb_endpoint * ep,struct snd_urb_ctx * urb_ctx) retire_outbound_urb() argument
255 retire_inbound_urb(struct snd_usb_endpoint * ep,struct snd_urb_ctx * urb_ctx) retire_inbound_urb() argument
278 prepare_silent_urb(struct snd_usb_endpoint * ep,struct snd_urb_ctx * ctx) prepare_silent_urb() argument
325 prepare_outbound_urb(struct snd_usb_endpoint * ep,struct snd_urb_ctx * ctx,bool in_stream_lock) prepare_outbound_urb() argument
375 prepare_inbound_urb(struct snd_usb_endpoint * ep,struct snd_urb_ctx * urb_ctx) prepare_inbound_urb() argument
405 notify_xrun(struct snd_usb_endpoint * ep) notify_xrun() argument
423 next_packet_fifo_enqueue(struct snd_usb_endpoint * ep) next_packet_fifo_enqueue() argument
434 next_packet_fifo_dequeue(struct snd_usb_endpoint * ep) next_packet_fifo_dequeue() argument
445 push_back_to_ready_list(struct snd_usb_endpoint * ep,struct snd_urb_ctx * ctx) push_back_to_ready_list() argument
465 snd_usb_queue_pending_output_urbs(struct snd_usb_endpoint * ep,bool in_stream_lock) snd_usb_queue_pending_output_urbs() argument
542 struct snd_usb_endpoint *ep = ctx->ep; snd_complete_urb() local
658 struct snd_usb_endpoint *ep; snd_usb_get_endpoint() local
691 struct snd_usb_endpoint *ep; snd_usb_add_endpoint() local
725 endpoint_set_syncinterval(struct snd_usb_audio * chip,struct snd_usb_endpoint * ep) endpoint_set_syncinterval() argument
748 endpoint_compatible(struct snd_usb_endpoint * ep,const struct audioformat * fp,const struct snd_pcm_hw_params * params) endpoint_compatible() argument
769 snd_usb_endpoint_compatible(struct snd_usb_audio * chip,struct snd_usb_endpoint * ep,const struct audioformat * fp,const struct snd_pcm_hw_params * params) snd_usb_endpoint_compatible() argument
797 struct snd_usb_endpoint *ep; snd_usb_endpoint_open() local
894 snd_usb_endpoint_set_callback(struct snd_usb_endpoint * ep,int (* prepare)(struct snd_usb_substream * subs,struct urb * urb,bool in_stream_lock),void (* retire)(struct snd_usb_substream * subs,struct urb * urb),struct snd_usb_substream * data_subs) snd_usb_endpoint_set_callback() argument
912 endpoint_set_interface(struct snd_usb_audio * chip,struct snd_usb_endpoint * ep,bool set) endpoint_set_interface() argument
953 snd_usb_endpoint_close(struct snd_usb_audio * chip,struct snd_usb_endpoint * ep) snd_usb_endpoint_close() argument
979 snd_usb_endpoint_suspend(struct snd_usb_endpoint * ep) snd_usb_endpoint_suspend() argument
991 wait_clear_urbs(struct snd_usb_endpoint * ep) wait_clear_urbs() argument
1023 snd_usb_endpoint_sync_pending_stop(struct snd_usb_endpoint * ep) snd_usb_endpoint_sync_pending_stop() argument
1034 stop_urbs(struct snd_usb_endpoint * ep,bool force,bool keep_pending) stop_urbs() argument
1068 release_urbs(struct snd_usb_endpoint * ep,bool force) release_urbs() argument
1096 data_ep_set_params(struct snd_usb_endpoint * ep) data_ep_set_params() argument
1274 sync_ep_set_params(struct snd_usb_endpoint * ep) sync_ep_set_params() argument
1316 update_clock_ref_rate(struct snd_usb_audio * chip,struct snd_usb_endpoint * ep) update_clock_ref_rate() argument
1346 snd_usb_endpoint_set_params(struct snd_usb_audio * chip,struct snd_usb_endpoint * ep) snd_usb_endpoint_set_params() argument
1417 init_sample_rate(struct snd_usb_audio * chip,struct snd_usb_endpoint * ep) init_sample_rate() argument
1454 snd_usb_endpoint_prepare(struct snd_usb_audio * chip,struct snd_usb_endpoint * ep) snd_usb_endpoint_prepare() argument
1552 snd_usb_endpoint_start(struct snd_usb_endpoint * ep) snd_usb_endpoint_start() argument
1672 snd_usb_endpoint_stop(struct snd_usb_endpoint * ep,bool keep_pending) snd_usb_endpoint_stop() argument
1708 snd_usb_endpoint_release(struct snd_usb_endpoint * ep) snd_usb_endpoint_release() argument
1721 struct snd_usb_endpoint *ep, *en; snd_usb_endpoint_free_all() local
1745 snd_usb_handle_sync_urb(struct snd_usb_endpoint * ep,struct snd_usb_endpoint * sender,const struct urb * urb) snd_usb_handle_sync_urb() argument
[all...]
H A Dmidi2.c50 struct snd_usb_midi2_endpoint *ep; member
105 static void do_submit_urbs_locked(struct snd_usb_midi2_endpoint *ep, in do_submit_urbs_locked() argument
112 if (ep->disconnected) in do_submit_urbs_locked()
115 while (ep->urb_free) { in do_submit_urbs_locked()
116 index = find_first_bit(&ep->urb_free, ep->num_urbs); in do_submit_urbs_locked()
117 if (index >= ep->num_urbs) in do_submit_urbs_locked()
119 ctx = &ep->urbs[index]; in do_submit_urbs_locked()
120 err = prepare(ep, ctx->urb); in do_submit_urbs_locked()
125 ctx->urb->dev = ep->dev; in do_submit_urbs_locked()
128 dev_dbg(&ep->dev->dev, in do_submit_urbs_locked()
[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()
63 if (ep->epn.is_in) { in ast_vhub_epn_kick()
64 memcpy(ep->buf, req->req.buf + act, chunk); 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()
76 return ast_vhub_reply(ep, NULL, len); 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/usb/gadget/udc/
H A Dfsl_qe_udc.c77 static void done(struct qe_ep *ep, struct qe_req *req, int status) in done() argument
79 struct qe_udc *udc = ep->udc; in done()
80 unsigned char stopped = ep->stopped; in done()
97 ep_is_in(ep) in done()
105 ep_is_in(ep) in done()
111 ep->ep.name, &req->req, status, in done()
115 ep->stopped = 1; in done()
118 usb_gadget_giveback_request(&ep->ep, &req->req); in done()
122 ep->stopped = stopped; in done()
128 static void nuke(struct qe_ep *ep, int status) in nuke() argument
[all …]
H A Dgoku_udc.c94 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 …]
H A Dpch_udc.c174 #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
284 struct usb_ep ep; member
342 struct pch_udc_ep ep[PCH_UDC_EP_NUM]; member
425 static inline u32 pch_udc_ep_readl(struct pch_udc_ep *ep, unsigned long reg) in pch_udc_ep_readl() argument
427 return ioread32(ep->dev->base_addr + ep->offset_addr + reg); in pch_udc_ep_readl()
430 static inline void pch_udc_ep_writel(struct pch_udc_ep *ep, in pch_udc_ep_writel() argument
433 iowrite32(val, ep->dev->base_addr + ep->offset_addr + reg); in pch_udc_ep_writel()
436 static inline void pch_udc_ep_bit_set(struct pch_udc_ep *ep, in pch_udc_ep_bit_set() argument
[all …]
H A Dsnps_udc_core.c41 static struct udc_request *udc_alloc_bna_dummy(struct udc_ep *ep);
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()
292 for (i = 0; i < ep->num; i++) { in udc_set_txfifo_addr()
293 if (dev->ep[i].regs) { in udc_set_txfifo_addr()
295 tmp = readl(&dev->ep[i].regs->bufin_framenum); in udc_set_txfifo_addr()
297 ep->txfifo += tmp; in udc_set_txfifo_addr()
306 static void UDC_QUEUE_CNAK(struct udc_ep *ep, unsigned num) in UDC_QUEUE_CNAK() argument
[all …]
H A Dnet2280.c162 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 …]
H A Dpxa27x_udc.c79 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 …]
H A Datmel_usba_udc.c39 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()
203 struct usba_ep *ep) in usba_ep_init_debugfs() argument
207 ep_root = debugfs_create_dir(ep->ep.name, udc->debugfs_root); in usba_ep_init_debugfs()
208 ep->debugfs_dir = ep_root; in usba_ep_init_debugfs()
210 debugfs_create_file("queue", 0400, ep_root, ep, &queue_dbg_fops); in usba_ep_init_debugfs()
211 if (ep->can_dma) in usba_ep_init_debugfs()
[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 Dgr_udc.c90 static void gr_dbgprint_request(const char *str, struct gr_ep *ep, in gr_dbgprint_request() argument
93 int buflen = ep->is_in ? req->req.length : req->req.actual; in gr_dbgprint_request()
97 dev_dbg(ep->dev->dev, "%s: 0x%p, %d bytes data%s:\n", str, req, buflen, in gr_dbgprint_request()
111 static void gr_dbgprint_request(const char *str, struct gr_ep *ep, in gr_dbgprint_request() argument
124 static void gr_seq_ep_show(struct seq_file *seq, struct gr_ep *ep) in gr_seq_ep_show() argument
126 u32 epctrl = gr_read32(&ep->regs->epctrl); in gr_seq_ep_show()
127 u32 epstat = gr_read32(&ep->regs->epstat); in gr_seq_ep_show()
131 seq_printf(seq, "%s:\n", ep->ep.name); in gr_seq_ep_show()
136 seq_printf(seq, " dma_start = %d\n", ep->dma_start); in gr_seq_ep_show()
137 seq_printf(seq, " stopped = %d\n", ep->stopped); in gr_seq_ep_show()
[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()
162 && maxp != ep->maxpacket) in omap_ep_enable()
163 || usb_endpoint_maxp(desc) > ep->maxpacket in omap_ep_enable()
185 if (ep->bmAttributes != desc->bmAttributes in omap_ep_enable()
[all …]
H A Daspeed_udc.c177 struct usb_ep ep; member
199 #define to_ast_ep(__ep) container_of(__ep, struct ast_udc_ep, ep)
212 struct ast_udc_ep ep[AST_UDC_NUM_ENDPOINTS]; member
249 (e)->ep.name, ##__VA_ARGS__)
251 #define EP_DBG(ep, fmt, ...) ((void)(ep)) argument
274 #define ast_ep_read(ep, reg) \ argument
275 readl((ep)->ep_reg + (reg))
276 #define ast_ep_write(ep, val, reg) \ argument
277 writel((val), (ep)->ep_reg + (reg))
281 static void ast_udc_done(struct ast_udc_ep *ep, struct ast_udc_request *req, in ast_udc_done() argument
[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 …]
/linux/drivers/scsi/libfc/
H A Dfc_exch.c247 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()
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()
299 fh->fh_rx_id = htons(ep->rxid); in fc_exch_setup_hdr()
300 fh->fh_seq_id = ep->seq.id; in fc_exch_setup_hdr()
[all …]
/linux/net/sctp/
H A Dendpointola.c50 static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep, in sctp_endpoint_init() argument
57 ep->asconf_enable = net->sctp.addip_enable; in sctp_endpoint_init()
58 ep->auth_enable = net->sctp.auth_enable; in sctp_endpoint_init()
59 if (ep->auth_enable) { in sctp_endpoint_init()
60 if (sctp_auth_init(ep, gfp)) in sctp_endpoint_init()
62 if (ep->asconf_enable) { in sctp_endpoint_init()
63 sctp_auth_ep_add_chunkid(ep, SCTP_CID_ASCONF); in sctp_endpoint_init()
64 sctp_auth_ep_add_chunkid(ep, SCTP_CID_ASCONF_ACK); in sctp_endpoint_init()
70 ep->base.type = SCTP_EP_TYPE_SOCKET; in sctp_endpoint_init()
73 refcount_set(&ep->base.refcnt, 1); in sctp_endpoint_init()
[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.c27 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_no, reg + 4, 0x0); in __dw_pcie_ep_reset_bar()
65 funcs = pci->ep.epc->max_functions; in dw_pcie_ep_reset_bar()
72 static u8 dw_pcie_ep_find_capability(struct dw_pcie_ep *ep, u8 func_no, u8 cap) in dw_pcie_ep_find_capability() argument
75 cap, NULL, ep, func_no); in dw_pcie_ep_find_capability()
[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/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/usb/gadget/udc/bdc/
H A Dbdc_ep.c52 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 …]
/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 …]

12345678910>>...21