Searched refs:epd (Results 1 - 40 of 40) sorted by relevance

/linux-4.4.14/include/uapi/linux/usb/
H A Dch9.h421 * @epd: endpoint to be checked
423 * Returns @epd's number: 0 to 15.
425 static inline int usb_endpoint_num(const struct usb_endpoint_descriptor *epd) usb_endpoint_num() argument
427 return epd->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK; usb_endpoint_num()
432 * @epd: endpoint to be checked
435 * to @epd's transfer type.
437 static inline int usb_endpoint_type(const struct usb_endpoint_descriptor *epd) usb_endpoint_type() argument
439 return epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK; usb_endpoint_type()
444 * @epd: endpoint to be checked
448 static inline int usb_endpoint_dir_in(const struct usb_endpoint_descriptor *epd) usb_endpoint_dir_in() argument
450 return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN); usb_endpoint_dir_in()
455 * @epd: endpoint to be checked
460 const struct usb_endpoint_descriptor *epd) usb_endpoint_dir_out()
462 return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT); usb_endpoint_dir_out()
467 * @epd: endpoint to be checked
472 const struct usb_endpoint_descriptor *epd) usb_endpoint_xfer_bulk()
474 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == usb_endpoint_xfer_bulk()
480 * @epd: endpoint to be checked
485 const struct usb_endpoint_descriptor *epd) usb_endpoint_xfer_control()
487 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == usb_endpoint_xfer_control()
493 * @epd: endpoint to be checked
499 const struct usb_endpoint_descriptor *epd) usb_endpoint_xfer_int()
501 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == usb_endpoint_xfer_int()
507 * @epd: endpoint to be checked
513 const struct usb_endpoint_descriptor *epd) usb_endpoint_xfer_isoc()
515 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == usb_endpoint_xfer_isoc()
521 * @epd: endpoint to be checked
527 const struct usb_endpoint_descriptor *epd) usb_endpoint_is_bulk_in()
529 return usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_in(epd); usb_endpoint_is_bulk_in()
534 * @epd: endpoint to be checked
540 const struct usb_endpoint_descriptor *epd) usb_endpoint_is_bulk_out()
542 return usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_out(epd); usb_endpoint_is_bulk_out()
547 * @epd: endpoint to be checked
553 const struct usb_endpoint_descriptor *epd) usb_endpoint_is_int_in()
555 return usb_endpoint_xfer_int(epd) && usb_endpoint_dir_in(epd); usb_endpoint_is_int_in()
560 * @epd: endpoint to be checked
566 const struct usb_endpoint_descriptor *epd) usb_endpoint_is_int_out()
568 return usb_endpoint_xfer_int(epd) && usb_endpoint_dir_out(epd); usb_endpoint_is_int_out()
573 * @epd: endpoint to be checked
579 const struct usb_endpoint_descriptor *epd) usb_endpoint_is_isoc_in()
581 return usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_in(epd); usb_endpoint_is_isoc_in()
586 * @epd: endpoint to be checked
592 const struct usb_endpoint_descriptor *epd) usb_endpoint_is_isoc_out()
594 return usb_endpoint_xfer_isoc(epd) && usb_endpoint_dir_out(epd); usb_endpoint_is_isoc_out()
599 * @epd: endpoint to be checked
601 * Returns @epd's max packet
603 static inline int usb_endpoint_maxp(const struct usb_endpoint_descriptor *epd) usb_endpoint_maxp() argument
605 return __le16_to_cpu(epd->wMaxPacketSize); usb_endpoint_maxp()
609 const struct usb_endpoint_descriptor *epd) usb_endpoint_interrupt_type()
611 return epd->bmAttributes & USB_ENDPOINT_INTRTYPE; usb_endpoint_interrupt_type()
459 usb_endpoint_dir_out( const struct usb_endpoint_descriptor *epd) usb_endpoint_dir_out() argument
471 usb_endpoint_xfer_bulk( const struct usb_endpoint_descriptor *epd) usb_endpoint_xfer_bulk() argument
484 usb_endpoint_xfer_control( const struct usb_endpoint_descriptor *epd) usb_endpoint_xfer_control() argument
498 usb_endpoint_xfer_int( const struct usb_endpoint_descriptor *epd) usb_endpoint_xfer_int() argument
512 usb_endpoint_xfer_isoc( const struct usb_endpoint_descriptor *epd) usb_endpoint_xfer_isoc() argument
526 usb_endpoint_is_bulk_in( const struct usb_endpoint_descriptor *epd) usb_endpoint_is_bulk_in() argument
539 usb_endpoint_is_bulk_out( const struct usb_endpoint_descriptor *epd) usb_endpoint_is_bulk_out() argument
552 usb_endpoint_is_int_in( const struct usb_endpoint_descriptor *epd) usb_endpoint_is_int_in() argument
565 usb_endpoint_is_int_out( const struct usb_endpoint_descriptor *epd) usb_endpoint_is_int_out() argument
578 usb_endpoint_is_isoc_in( const struct usb_endpoint_descriptor *epd) usb_endpoint_is_isoc_in() argument
591 usb_endpoint_is_isoc_out( const struct usb_endpoint_descriptor *epd) usb_endpoint_is_isoc_out() argument
608 usb_endpoint_interrupt_type( const struct usb_endpoint_descriptor *epd) usb_endpoint_interrupt_type() argument
/linux-4.4.14/drivers/misc/mic/scif/
H A Dscif_fence.c203 static int _scif_prog_signal(scif_epd_t epd, dma_addr_t dst, u64 val) _scif_prog_signal() argument
205 struct scif_endpt *ep = (struct scif_endpt *)epd; _scif_prog_signal()
281 * @epd - Endpoint Descriptor
289 int scif_prog_signal(scif_epd_t epd, off_t offset, u64 val, scif_prog_signal() argument
292 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_prog_signal()
328 err = _scif_prog_signal(epd, dst_dma_addr, val); scif_prog_signal()
335 static int _scif_fence_wait(scif_epd_t epd, int mark) _scif_fence_wait() argument
337 struct scif_endpt *ep = (struct scif_endpt *)epd; _scif_fence_wait()
392 static int _scif_send_fence(scif_epd_t epd, int uop, int mark, int *out_mark) _scif_send_fence() argument
397 struct scif_endpt *ep = (struct scif_endpt *)epd; _scif_send_fence()
450 * @epd: end point descriptor.
455 static int scif_send_fence_mark(scif_epd_t epd, int *out_mark) scif_send_fence_mark() argument
457 return _scif_send_fence(epd, SCIF_MARK, 0, out_mark); scif_send_fence_mark()
462 * @epd: end point descriptor.
467 static int scif_send_fence_wait(scif_epd_t epd, int mark) scif_send_fence_wait() argument
469 return _scif_send_fence(epd, SCIF_WAIT, mark, NULL); scif_send_fence_wait()
500 * @epd - endpoint descriptor
509 static int scif_send_fence_signal(scif_epd_t epd, off_t roff, u64 rval, scif_send_fence_signal() argument
515 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_send_fence_signal()
579 * @epd - endpoint descriptor
582 int _scif_fence_mark(scif_epd_t epd, int *mark) _scif_fence_mark() argument
584 struct scif_endpt *ep = (struct scif_endpt *)epd; _scif_fence_mark()
629 int scif_fence_mark(scif_epd_t epd, int flags, int *mark) scif_fence_mark() argument
631 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_fence_mark()
663 err = _scif_fence_mark(epd, mark); scif_fence_mark()
677 int scif_fence_wait(scif_epd_t epd, int mark) scif_fence_wait() argument
679 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_fence_wait()
700 err = scif_send_fence_wait(epd, mark); scif_fence_wait()
702 err = _scif_fence_wait(epd, mark); scif_fence_wait()
710 int scif_fence_signal(scif_epd_t epd, off_t loff, u64 lval, scif_fence_signal() argument
713 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_fence_signal()
749 err = scif_send_fence_signal(epd, roff, rval, loff, scif_fence_signal()
754 err = scif_prog_signal(epd, loff, lval, scif_fence_signal()
762 err = scif_prog_signal(epd, roff, scif_fence_signal()
H A Dscif_epd.h165 static inline int scif_anon_inode_getfile(scif_epd_t epd) scif_anon_inode_getfile() argument
167 epd->anon = anon_inode_getfile("scif", &scif_anon_fops, NULL, 0); scif_anon_inode_getfile()
168 if (IS_ERR(epd->anon)) scif_anon_inode_getfile()
169 return PTR_ERR(epd->anon); scif_anon_inode_getfile()
173 static inline void scif_anon_inode_fput(scif_epd_t epd) scif_anon_inode_fput() argument
175 if (epd->anon) { scif_anon_inode_fput()
176 fput(epd->anon); scif_anon_inode_fput()
177 epd->anon = NULL; scif_anon_inode_fput()
192 int scif_user_send(scif_epd_t epd, void __user *msg, int len, int flags);
193 int scif_user_recv(scif_epd_t epd, void __user *msg, int len, int flags);
203 int __scif_connect(scif_epd_t epd, struct scif_port_id *dst, bool non_block);
204 int __scif_flush(scif_epd_t epd);
205 int scif_mmap(struct vm_area_struct *vma, scif_epd_t epd);
H A Dscif_api.c90 * @epd: The end point returned from scif_open()
163 int scif_close(scif_epd_t epd) scif_close() argument
165 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_close()
192 scif_unregister_all_windows(epd); scif_close()
214 scif_unregister_all_windows(epd); scif_close()
315 * @epd: The end point returned from scif_open()
317 int __scif_flush(scif_epd_t epd) __scif_flush() argument
319 struct scif_endpt *ep = (struct scif_endpt *)epd; __scif_flush()
336 int scif_bind(scif_epd_t epd, u16 pn) scif_bind() argument
338 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_bind()
394 int scif_listen(scif_epd_t epd, int backlog) scif_listen() argument
396 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_listen()
599 int __scif_connect(scif_epd_t epd, struct scif_port_id *dst, bool non_block) __scif_connect() argument
601 struct scif_endpt *ep = (struct scif_endpt *)epd; __scif_connect()
720 int scif_connect(scif_epd_t epd, struct scif_port_id *dst) scif_connect() argument
722 return __scif_connect(epd, dst, false); scif_connect()
747 int scif_accept(scif_epd_t epd, struct scif_port_id *peer, scif_accept() argument
750 struct scif_endpt *lep = (struct scif_endpt *)epd; scif_accept()
927 * @epd: The end point returned from scif_open()
933 static inline int scif_msg_param_check(scif_epd_t epd, int len, int flags) scif_msg_param_check() argument
946 static int _scif_send(scif_epd_t epd, void *msg, int len, int flags) _scif_send() argument
948 struct scif_endpt *ep = (struct scif_endpt *)epd; _scif_send()
1008 static int _scif_recv(scif_epd_t epd, void *msg, int len, int flags) _scif_recv() argument
1011 struct scif_endpt *ep = (struct scif_endpt *)epd; _scif_recv()
1096 * @epd: The end point returned from scif_open()
1104 int scif_user_send(scif_epd_t epd, void __user *msg, int len, int flags) scif_user_send() argument
1106 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_user_send()
1118 err = scif_msg_param_check(epd, len, flags); scif_user_send()
1140 err = _scif_send(epd, tmp, loop_len, flags); scif_user_send()
1157 * @epd: The end point returned from scif_open()
1165 int scif_user_recv(scif_epd_t epd, void __user *msg, int len, int flags) scif_user_recv() argument
1167 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_user_recv()
1179 err = scif_msg_param_check(epd, len, flags); scif_user_recv()
1197 err = _scif_recv(epd, tmp, loop_len, flags); scif_user_recv()
1218 * @epd: The end point returned from scif_open()
1226 int scif_send(scif_epd_t epd, void *msg, int len, int flags) scif_send() argument
1228 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_send()
1236 ret = scif_msg_param_check(epd, len, flags); scif_send()
1250 ret = _scif_send(epd, msg, len, flags); scif_send()
1260 * @epd: The end point returned from scif_open()
1268 int scif_recv(scif_epd_t epd, void *msg, int len, int flags) scif_recv() argument
1270 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_recv()
1278 ret = scif_msg_param_check(epd, len, flags); scif_recv()
1290 ret = _scif_recv(epd, msg, len, flags); scif_recv()
1401 mask = __scif_pollfd(ufds[i].epd->anon, scif_poll()
1402 pt, ufds[i].epd); scif_poll()
H A Dscif_rma_list.h52 int scif_unregister_all_windows(scif_epd_t epd);
53 void scif_unmap_all_windows(scif_epd_t epd);
H A Dscif_dma.c365 * @epd: End Point Descriptor.
375 scif_register_temp(scif_epd_t epd, unsigned long addr, size_t len, int prot, scif_register_temp() argument
378 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_register_temp()
1568 static int scif_rma_list_dma_copy_wrapper(struct scif_endpt *epd, scif_rma_list_dma_copy_wrapper() argument
1662 * @epd: end point descriptor.
1674 static int scif_rma_copy(scif_epd_t epd, off_t loffset, unsigned long addr, scif_rma_copy() argument
1678 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_rma_copy()
1757 err = scif_register_temp(epd, req.va_for_temp, scif_rma_copy()
1828 err = scif_rma_list_dma_copy_wrapper(epd, &copy_work, scif_rma_copy()
1863 int scif_readfrom(scif_epd_t epd, off_t loffset, size_t len, scif_readfrom() argument
1870 epd, loffset, len, roffset, flags); scif_readfrom()
1873 err = scif_rma_copy(epd, loffset, 0x0, scif_readfrom()
1884 err = scif_rma_copy(epd, loffset, 0x0, len, scif_readfrom()
1891 int scif_writeto(scif_epd_t epd, off_t loffset, size_t len, scif_writeto() argument
1898 epd, loffset, len, roffset, flags); scif_writeto()
1901 err = scif_rma_copy(epd, loffset, 0x0, scif_writeto()
1912 err = scif_rma_copy(epd, loffset, 0x0, len, scif_writeto()
1919 int scif_vreadfrom(scif_epd_t epd, void *addr, size_t len, scif_vreadfrom() argument
1926 epd, addr, len, roffset, flags); scif_vreadfrom()
1932 err = scif_rma_copy(epd, 0, (u64)addr, scif_vreadfrom()
1943 err = scif_rma_copy(epd, 0, (u64)addr, len, scif_vreadfrom()
1950 int scif_vwriteto(scif_epd_t epd, void *addr, size_t len, scif_vwriteto() argument
1957 epd, addr, len, roffset, flags); scif_vwriteto()
1963 err = scif_rma_copy(epd, 0, (u64)addr, scif_vwriteto()
1974 err = scif_rma_copy(epd, 0, (u64)addr, len, scif_vwriteto()
H A Dscif_rma_list.c234 void scif_unmap_all_windows(scif_epd_t epd) scif_unmap_all_windows() argument
238 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_unmap_all_windows()
256 int scif_unregister_all_windows(scif_epd_t epd) scif_unregister_all_windows() argument
260 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_unregister_all_windows()
H A Dscif_mmap.c221 int scif_get_pages(scif_epd_t epd, off_t offset, size_t len, scif_get_pages() argument
224 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_get_pages()
606 * @epd: endpoint descriptor
611 int scif_mmap(struct vm_area_struct *vma, scif_epd_t epd) scif_mmap() argument
615 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_mmap()
H A Dscif_rma.c1490 off_t scif_register_pinned_pages(scif_epd_t epd, scif_register_pinned_pages() argument
1494 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_register_pinned_pages()
1592 off_t scif_register(scif_epd_t epd, void *addr, size_t len, off_t offset, scif_register() argument
1597 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_register()
1605 epd, addr, len, offset, prot, map_flags); scif_register()
1704 epd, addr, len, computed_offset); scif_register()
1717 scif_unregister(scif_epd_t epd, off_t offset, size_t len) scif_unregister() argument
1719 struct scif_endpt *ep = (struct scif_endpt *)epd; scif_unregister()
H A Dscif_rma.h306 /* Check if epd can be uninitialized */
337 int _scif_fence_mark(scif_epd_t epd, int *mark);
338 int scif_prog_signal(scif_epd_t epd, off_t offset, u64 val,
/linux-4.4.14/include/linux/
H A Dscif.h120 * @epd: SCIF endpoint
125 scif_epd_t epd; member in struct:scif_pollepd
182 * @epd: endpoint descriptor
185 * scif_bind() binds endpoint epd to port pn, where pn is a port number on the
192 * Upon successful completion, scif_bind() returns the port number to which epd
198 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
204 int scif_bind(scif_epd_t epd, u16 pn);
208 * @epd: endpoint descriptor
211 * scif_listen() marks the endpoint epd as a listening endpoint - that is, as
216 * The endpoint, epd, must have been bound to a port.
219 * pending connections for epd may grow. If a connection request arrives when
229 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
233 int scif_listen(scif_epd_t epd, int backlog);
237 * @epd: endpoint descriptor
240 * The scif_connect() function requests the connection of endpoint epd to remote
244 * If the endpoint epd has not already been bound to a port, scif_connect()
258 * endpoint, epd, is bound; otherwise in user mode -1 is returned and errno is
263 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
274 int scif_connect(scif_epd_t epd, struct scif_port_id *dst);
278 * @epd: endpoint descriptor
284 * of pending connections for the port on which epd is listening. scif_accept()
285 * creates a new endpoint, bound to the same port as epd, and allocates a new
288 * requested. epd is unaffected by this call, and remains in the listening
298 * The number of connections that can (subsequently) be accepted on epd is only
322 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
324 * EINVAL - epd is not a listening endpoint, or flags is invalid, or peer is
329 * ENOENT - Secondary part of epd registration failed
331 int scif_accept(scif_epd_t epd, struct scif_port_id *peer, scif_epd_t
336 * @epd: endpoint descriptor
341 * If epd is a listening endpoint then it will no longer accept connection
345 * If epd is a connected endpoint, then its peer endpoint is also closed. RMAs
346 * which are in-process through epd or its peer endpoint will complete before
354 * If the peer endpoint's receive queue is not empty at the time that epd is
358 * epd is freed and may no longer be accessed.
366 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
368 int scif_close(scif_epd_t epd);
372 * @epd: endpoint descriptor
377 * scif_send() sends data to the peer of endpoint epd. Up to len bytes of data
411 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
419 int scif_send(scif_epd_t epd, void *msg, int len, int flags);
423 * @epd: endpoint descriptor
428 * scif_recv() receives data from the peer of endpoint epd. Up to len bytes of
463 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
471 int scif_recv(scif_epd_t epd, void *msg, int len, int flags);
475 * @epd: endpoint descriptor
483 * registered address space of the endpoint epd, starting at offset po and
537 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
548 off_t scif_register(scif_epd_t epd, void *addr, size_t len, off_t offset,
553 * @epd: endpoint descriptor
587 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
595 * registered address space of epd
597 int scif_unregister(scif_epd_t epd, off_t offset, size_t len);
601 * @epd: endpoint descriptor
610 * the peer of endpoint epd, starting at the offset roffset to the local
611 * registered address space of epd, starting at the offset loffset.
661 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
668 * address space of epd, or, The range [roffset, roffset + len - 1] is invalid
669 * for the registered address space of the peer of epd, or loffset or roffset
672 int scif_readfrom(scif_epd_t epd, off_t loffset, size_t len, off_t
677 * @epd: endpoint descriptor
686 * epd, starting at the offset loffset to the remote registered address space
687 * of the peer of endpoint epd, starting at the offset roffset.
737 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
744 * address space of epd, or, The range [roffset , roffset + len -1] is invalid
745 * for the registered address space of the peer of epd, or loffset or roffset
748 int scif_writeto(scif_epd_t epd, off_t loffset, size_t len, off_t
753 * @epd: endpoint descriptor
761 * space of the peer of endpoint epd, starting at the offset roffset, to local
819 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
826 * registered address space of epd
828 int scif_vreadfrom(scif_epd_t epd, void *addr, size_t len, off_t roffset,
833 * @epd: endpoint descriptor
841 * the remote registered address space of the peer of endpoint epd, starting at
899 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
906 * registered address space of epd
908 int scif_vwriteto(scif_epd_t epd, void *addr, size_t len, off_t roffset,
913 * @epd: endpoint descriptor
918 * RMAs initiated through the endpoint epd or the current set of all
919 * uncompleted RMAs initiated through the peer of endpoint epd. The RMAs are
926 * epd are marked
928 * of endpoint epd are marked
936 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
944 int scif_fence_mark(scif_epd_t epd, int flags, int *mark);
948 * @epd: endpoint descriptor
961 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
968 int scif_fence_wait(scif_epd_t epd, int mark);
972 * @epd: endpoint descriptor
980 * RMAs initiated through the endpoint epd or marking the current set of all
981 * uncompleted RMAs initiated through the peer of endpoint epd.
985 * loff in the local registered address space of epd. loff must be within a
988 * corresponding to offset roff in the remote registered address space of epd.
989 * roff must be within a remote registered window of the peer of epd. Note
995 * epd are marked
997 * of endpoint epd are marked
1001 * registered address space of epd.
1004 * registered address space of epd.
1012 * EBADF, ENOTTY - epd is not a valid endpoint descriptor
1018 * ENXIO - loff is invalid for the registered address of epd, or roff is invalid
1019 * for the registered address space, of the peer of epd
1021 int scif_fence_signal(scif_epd_t epd, off_t loff, u64 lval, off_t roff,
1121 * @epd: endpoint descriptor
1127 * pages of the registered address space of the endpoint epd, starting at
1181 off_t scif_register_pinned_pages(scif_epd_t epd,
1187 * @epd: endpoint descriptor
1193 * those pages of the registered address space of the peer of epd, starting at
1198 * within a single window of the registered address space of the peer of epd.
1225 * for the registered address space of the peer epd
1227 int scif_get_pages(scif_epd_t epd, off_t offset, size_t len,
1264 * The number of items in the epds array is specified in nepds. The epd field
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
H A Ddevice.c544 struct c4iw_debugfs_data *epd = data; dump_ep() local
548 space = epd->bufsize - epd->pos - 1; dump_ep()
562 cc = snprintf(epd->buf + epd->pos, space, dump_ep()
586 cc = snprintf(epd->buf + epd->pos, space, dump_ep()
602 epd->pos += cc; dump_ep()
609 struct c4iw_debugfs_data *epd = data; dump_listen_ep() local
613 space = epd->bufsize - epd->pos - 1; dump_listen_ep()
623 cc = snprintf(epd->buf + epd->pos, space, dump_listen_ep()
636 cc = snprintf(epd->buf + epd->pos, space, dump_listen_ep()
645 epd->pos += cc; dump_listen_ep()
651 struct c4iw_debugfs_data *epd = file->private_data; ep_release() local
652 if (!epd) { ep_release()
656 vfree(epd->buf); ep_release()
657 kfree(epd); ep_release()
663 struct c4iw_debugfs_data *epd; ep_open() local
667 epd = kmalloc(sizeof(*epd), GFP_KERNEL); ep_open()
668 if (!epd) { ep_open()
672 epd->devp = inode->i_private; ep_open()
673 epd->pos = 0; ep_open()
675 spin_lock_irq(&epd->devp->lock); ep_open()
676 idr_for_each(&epd->devp->hwtid_idr, count_idrs, &count); ep_open()
677 idr_for_each(&epd->devp->atid_idr, count_idrs, &count); ep_open()
678 idr_for_each(&epd->devp->stid_idr, count_idrs, &count); ep_open()
679 spin_unlock_irq(&epd->devp->lock); ep_open()
681 epd->bufsize = count * 240; ep_open()
682 epd->buf = vmalloc(epd->bufsize); ep_open()
683 if (!epd->buf) { ep_open()
688 spin_lock_irq(&epd->devp->lock); ep_open()
689 idr_for_each(&epd->devp->hwtid_idr, dump_ep, epd); ep_open()
690 idr_for_each(&epd->devp->atid_idr, dump_ep, epd); ep_open()
691 idr_for_each(&epd->devp->stid_idr, dump_listen_ep, epd); ep_open()
692 spin_unlock_irq(&epd->devp->lock); ep_open()
694 file->private_data = epd; ep_open()
697 kfree(epd); ep_open()
/linux-4.4.14/drivers/net/wireless/mwifiex/
H A Dusb.c380 struct usb_endpoint_descriptor *epd; mwifiex_usb_probe() local
425 epd = &iface_desc->endpoint[i].desc; mwifiex_usb_probe()
426 if (usb_endpoint_dir_in(epd) && mwifiex_usb_probe()
427 usb_endpoint_num(epd) == MWIFIEX_USB_EP_CMD_EVENT && mwifiex_usb_probe()
428 usb_endpoint_xfer_bulk(epd)) { mwifiex_usb_probe()
430 le16_to_cpu(epd->wMaxPacketSize), mwifiex_usb_probe()
431 epd->bEndpointAddress); mwifiex_usb_probe()
432 card->rx_cmd_ep = usb_endpoint_num(epd); mwifiex_usb_probe()
435 if (usb_endpoint_dir_in(epd) && mwifiex_usb_probe()
436 usb_endpoint_num(epd) == MWIFIEX_USB_EP_DATA && mwifiex_usb_probe()
437 usb_endpoint_xfer_bulk(epd)) { mwifiex_usb_probe()
439 le16_to_cpu(epd->wMaxPacketSize), mwifiex_usb_probe()
440 epd->bEndpointAddress); mwifiex_usb_probe()
441 card->rx_data_ep = usb_endpoint_num(epd); mwifiex_usb_probe()
444 if (usb_endpoint_dir_out(epd) && mwifiex_usb_probe()
445 usb_endpoint_num(epd) == MWIFIEX_USB_EP_DATA && mwifiex_usb_probe()
446 usb_endpoint_xfer_bulk(epd)) { mwifiex_usb_probe()
448 le16_to_cpu(epd->wMaxPacketSize), mwifiex_usb_probe()
449 epd->bEndpointAddress); mwifiex_usb_probe()
450 card->port[0].tx_data_ep = usb_endpoint_num(epd); mwifiex_usb_probe()
453 if (usb_endpoint_dir_out(epd) && mwifiex_usb_probe()
454 usb_endpoint_num(epd) == MWIFIEX_USB_EP_DATA_CH2 && mwifiex_usb_probe()
455 usb_endpoint_xfer_bulk(epd)) { mwifiex_usb_probe()
458 le16_to_cpu(epd->wMaxPacketSize), mwifiex_usb_probe()
459 epd->bEndpointAddress); mwifiex_usb_probe()
460 card->port[1].tx_data_ep = usb_endpoint_num(epd); mwifiex_usb_probe()
463 if (usb_endpoint_dir_out(epd) && mwifiex_usb_probe()
464 usb_endpoint_num(epd) == MWIFIEX_USB_EP_CMD_EVENT && mwifiex_usb_probe()
465 usb_endpoint_xfer_bulk(epd)) { mwifiex_usb_probe()
467 le16_to_cpu(epd->wMaxPacketSize), mwifiex_usb_probe()
468 epd->bEndpointAddress); mwifiex_usb_probe()
469 card->tx_cmd_ep = usb_endpoint_num(epd); mwifiex_usb_probe()
472 le16_to_cpu(epd->wMaxPacketSize); mwifiex_usb_probe()
/linux-4.4.14/drivers/net/wimax/i2400m/
H A Dusb-fw.c95 struct usb_endpoint_descriptor *epd; i2400mu_tx_bulk_out() local
103 epd = usb_get_epd(i2400mu->usb_iface, i2400mu->endpoint_cfg.bulk_out); i2400mu_tx_bulk_out()
104 pipe = usb_sndbulkpipe(i2400mu->usb_dev, epd->bEndpointAddress); i2400mu_tx_bulk_out()
249 struct usb_endpoint_descriptor *epd; i2400mu_notif_submit() local
252 epd = usb_get_epd(i2400mu->usb_iface, i2400mu_notif_submit()
254 pipe = usb_rcvintpipe(i2400mu->usb_dev, epd->bEndpointAddress); i2400mu_notif_submit()
258 epd->bInterval); i2400mu_notif_submit()
H A Dusb-notif.c196 struct usb_endpoint_descriptor *epd; i2400mu_notification_setup() local
212 epd = usb_get_epd(i2400mu->usb_iface, i2400mu_notification_setup()
214 usb_pipe = usb_rcvintpipe(i2400mu->usb_dev, epd->bEndpointAddress); i2400mu_notification_setup()
217 i2400mu_notification_cb, i2400mu, epd->bInterval); i2400mu_notification_setup()
H A Dusb-tx.c94 struct usb_endpoint_descriptor *epd; i2400mu_tx() local
104 epd = usb_get_epd(i2400mu->usb_iface, i2400mu->endpoint_cfg.bulk_out); i2400mu_tx()
105 usb_pipe = usb_sndbulkpipe(i2400mu->usb_dev, epd->bEndpointAddress); i2400mu_tx()
H A Dusb-rx.c197 struct usb_endpoint_descriptor *epd; i2400mu_rx() local
208 epd = usb_get_epd(i2400mu->usb_iface, i2400mu->endpoint_cfg.bulk_in); i2400mu_rx()
209 usb_pipe = usb_rcvbulkpipe(i2400mu->usb_dev, epd->bEndpointAddress); i2400mu_rx()
H A Dusb.c161 struct usb_endpoint_descriptor *epd = NULL; __i2400mu_send_barker() local
176 epd = usb_get_epd(i2400mu->usb_iface, endpoint); __i2400mu_send_barker()
177 pipe = usb_sndbulkpipe(i2400mu->usb_dev, epd->bEndpointAddress); __i2400mu_send_barker()
/linux-4.4.14/drivers/uwb/i1480/dfu/
H A Dusb.c241 struct usb_endpoint_descriptor *epd; i1480_usb_wait_init_done() local
245 epd = &i1480_usb->usb_iface->cur_altsetting->endpoint[0].desc; i1480_usb_wait_init_done()
247 usb_rcvintpipe(i1480_usb->usb_dev, epd->bEndpointAddress), i1480_usb_wait_init_done()
249 i1480_usb_neep_cb, i1480, epd->bInterval); i1480_usb_wait_init_done()
296 struct usb_endpoint_descriptor *epd; i1480_usb_cmd() local
302 epd = &i1480_usb->usb_iface->cur_altsetting->endpoint[0].desc; i1480_usb_cmd()
305 usb_rcvintpipe(i1480_usb->usb_dev, epd->bEndpointAddress), i1480_usb_cmd()
307 i1480_usb_neep_cb, i1480, epd->bInterval); i1480_usb_cmd()
/linux-4.4.14/drivers/misc/mic/cosm/
H A Dcosm_scif_server.c142 rc = scif_recv(cdev->epd, &msg, sizeof(msg), 0); cosm_scif_recv()
183 rc = scif_send(cdev->epd, &msg, sizeof(msg), SCIF_SEND_BLOCK); cosm_send_time()
202 scif_close(cdev->epd); cosm_scif_close()
203 cdev->epd = NULL; cosm_scif_close()
218 cdev->epd = cdev->newepd; cosm_set_online()
252 pollepd.epd = cdev->epd; cosm_scif_work()
H A Dcosm_main.c227 if (!cdev->epd) { cosm_shutdown()
234 rc = scif_send(cdev->epd, &msg, sizeof(msg), SCIF_SEND_BLOCK); cosm_shutdown()
/linux-4.4.14/drivers/usb/usbip/
H A Dstub_rx.c348 struct usb_endpoint_descriptor *epd = NULL; get_pipe() local
360 epd = &ep->desc; get_pipe()
361 if (usb_endpoint_xfer_control(epd)) { get_pipe()
368 if (usb_endpoint_xfer_bulk(epd)) { get_pipe()
375 if (usb_endpoint_xfer_int(epd)) { get_pipe()
382 if (usb_endpoint_xfer_isoc(epd)) { get_pipe()
/linux-4.4.14/drivers/misc/mic/bus/
H A Dcosm_bus.h50 * @epd: SCIF endpoint for this cdev
75 scif_epd_t epd; member in struct:cosm_device
/linux-4.4.14/sound/usb/
H A Dmidi.c1978 struct usb_endpoint_descriptor *epd; snd_usbmidi_detect_endpoints() local
1994 epd = get_endpoint(hostif, i); snd_usbmidi_detect_endpoints()
1995 if (!usb_endpoint_xfer_bulk(epd) && snd_usbmidi_detect_endpoints()
1996 !usb_endpoint_xfer_int(epd)) snd_usbmidi_detect_endpoints()
1999 usb_endpoint_dir_out(epd)) { snd_usbmidi_detect_endpoints()
2000 endpoint[out_eps].out_ep = usb_endpoint_num(epd); snd_usbmidi_detect_endpoints()
2001 if (usb_endpoint_xfer_int(epd)) snd_usbmidi_detect_endpoints()
2002 endpoint[out_eps].out_interval = epd->bInterval; snd_usbmidi_detect_endpoints()
2006 usb_endpoint_dir_in(epd)) { snd_usbmidi_detect_endpoints()
2007 endpoint[in_eps].in_ep = usb_endpoint_num(epd); snd_usbmidi_detect_endpoints()
2008 if (usb_endpoint_xfer_int(epd)) snd_usbmidi_detect_endpoints()
2009 endpoint[in_eps].in_interval = epd->bInterval; snd_usbmidi_detect_endpoints()
2123 struct usb_endpoint_descriptor *epd; snd_usbmidi_create_endpoints_midiman() local
2146 epd = get_endpoint(hostif, 0); snd_usbmidi_create_endpoints_midiman()
2147 if (!usb_endpoint_dir_in(epd) || !usb_endpoint_xfer_int(epd)) { snd_usbmidi_create_endpoints_midiman()
2151 epd = get_endpoint(hostif, 2); snd_usbmidi_create_endpoints_midiman()
2152 if (!usb_endpoint_dir_out(epd) || !usb_endpoint_xfer_bulk(epd)) { snd_usbmidi_create_endpoints_midiman()
2157 epd = get_endpoint(hostif, 4); snd_usbmidi_create_endpoints_midiman()
2158 if (!usb_endpoint_dir_out(epd) || snd_usbmidi_create_endpoints_midiman()
2159 !usb_endpoint_xfer_bulk(epd)) { snd_usbmidi_create_endpoints_midiman()
H A Dquirks.c209 struct usb_endpoint_descriptor *epd; create_auto_pcm_quirk() local
229 epd = get_endpoint(alts, 0); create_auto_pcm_quirk()
230 if (!usb_endpoint_xfer_isoc(epd)) create_auto_pcm_quirk()
332 struct usb_endpoint_descriptor *epd; create_auto_midi_quirk() local
341 epd = get_endpoint(alts, 0); create_auto_midi_quirk()
342 if (!usb_endpoint_xfer_bulk(epd) && create_auto_midi_quirk()
343 !usb_endpoint_xfer_int(epd)) create_auto_midi_quirk()
H A Dpcm.c294 struct usb_endpoint_descriptor *epd; search_roland_implicit_fb() local
307 epd = get_endpoint(*alts, 0); search_roland_implicit_fb()
308 if (!usb_endpoint_is_isoc_in(epd) || search_roland_implicit_fb()
309 (epd->bmAttributes & USB_ENDPOINT_USAGE_MASK) != search_roland_implicit_fb()
312 *ep = epd->bEndpointAddress; search_roland_implicit_fb()
/linux-4.4.14/drivers/usb/wusbcore/
H A Dwa-nep.c266 struct usb_endpoint_descriptor *epd; wa_nep_create() local
271 epd = &iface->cur_altsetting->endpoint[0].desc; wa_nep_create()
285 usb_rcvintpipe(usb_dev, epd->bEndpointAddress), wa_nep_create()
287 wa_nep_cb, wa, epd->bInterval); wa_nep_create()
/linux-4.4.14/fs/btrfs/
H A Dextent_io.c3347 struct extent_page_data *epd, writepage_delalloc()
3351 struct extent_io_tree *tree = epd->tree; writepage_delalloc()
3359 if (epd->extent_locked || !tree->ops || !tree->ops->fill_delalloc) writepage_delalloc()
3437 struct extent_page_data *epd, __extent_writepage_io()
3442 struct extent_io_tree *tree = epd->tree; __extent_writepage_io()
3501 em = epd->get_extent(inode, page, pg_offset, cur, __extent_writepage_io()
3570 bdev, &epd->bio, max_nr, __extent_writepage_io()
3600 struct extent_page_data *epd = data; __extent_writepage() local
3644 ret = writepage_delalloc(inode, page, wbc, epd, start, &nr_written); __extent_writepage()
3650 ret = __extent_writepage_io(inode, page, wbc, epd, __extent_writepage()
3681 struct extent_page_data *epd) lock_extent_buffer_for_io()
3689 flush_write_bio(epd); lock_extent_buffer_for_io()
3695 if (!epd->sync_io) lock_extent_buffer_for_io()
3698 flush_write_bio(epd); lock_extent_buffer_for_io()
3739 flush_write_bio(epd); lock_extent_buffer_for_io()
3851 struct extent_page_data *epd) write_one_eb()
3858 int rw = (epd->sync_io ? WRITE_SYNC : WRITE) | REQ_META; write_one_eb()
3873 PAGE_CACHE_SIZE, 0, bdev, &epd->bio, write_one_eb()
3875 0, epd->bio_flags, bio_flags, false); write_one_eb()
3876 epd->bio_flags = bio_flags; write_one_eb()
3907 struct extent_page_data epd = { btree_write_cache_pages() local
3986 ret = lock_extent_buffer_for_io(eb, fs_info, &epd); btree_write_cache_pages()
3992 ret = write_one_eb(eb, fs_info, wbc, &epd); btree_write_cache_pages()
4019 flush_write_bio(&epd); btree_write_cache_pages()
4160 static void flush_epd_write_bio(struct extent_page_data *epd) flush_epd_write_bio() argument
4162 if (epd->bio) { flush_epd_write_bio()
4166 if (epd->sync_io) flush_epd_write_bio()
4169 ret = submit_one_bio(rw, epd->bio, 0, epd->bio_flags); flush_epd_write_bio()
4171 epd->bio = NULL; flush_epd_write_bio()
4177 struct extent_page_data *epd = data; flush_write_bio() local
4178 flush_epd_write_bio(epd); flush_write_bio()
4186 struct extent_page_data epd = { extent_write_full_page() local
4195 ret = __extent_writepage(page, wbc, &epd); extent_write_full_page()
4197 flush_epd_write_bio(&epd); extent_write_full_page()
4211 struct extent_page_data epd = { extent_write_locked_range() local
4229 ret = __extent_writepage(page, &wbc_writepages, &epd); extent_write_locked_range()
4241 flush_epd_write_bio(&epd); extent_write_locked_range()
4251 struct extent_page_data epd = { extent_writepages() local
4261 __extent_writepage, &epd, extent_writepages()
4263 flush_epd_write_bio(&epd); extent_writepages()
3345 writepage_delalloc(struct inode *inode, struct page *page, struct writeback_control *wbc, struct extent_page_data *epd, u64 delalloc_start, unsigned long *nr_written) writepage_delalloc() argument
3434 __extent_writepage_io(struct inode *inode, struct page *page, struct writeback_control *wbc, struct extent_page_data *epd, loff_t i_size, unsigned long nr_written, int write_flags, int *nr_ret) __extent_writepage_io() argument
3679 lock_extent_buffer_for_io(struct extent_buffer *eb, struct btrfs_fs_info *fs_info, struct extent_page_data *epd) lock_extent_buffer_for_io() argument
3848 write_one_eb(struct extent_buffer *eb, struct btrfs_fs_info *fs_info, struct writeback_control *wbc, struct extent_page_data *epd) write_one_eb() argument
/linux-4.4.14/sound/usb/misc/
H A Dua101.c975 const struct usb_endpoint_descriptor *epd; detect_usb_format() local
1034 epd = &ua->intf[INTF_CAPTURE]->altsetting[1].endpoint[0].desc; detect_usb_format()
1035 if (!usb_endpoint_is_isoc_in(epd)) { detect_usb_format()
1039 ua->capture.usb_pipe = usb_rcvisocpipe(ua->dev, usb_endpoint_num(epd)); detect_usb_format()
1040 ua->capture.max_packet_bytes = le16_to_cpu(epd->wMaxPacketSize); detect_usb_format()
1042 epd = &ua->intf[INTF_PLAYBACK]->altsetting[1].endpoint[0].desc; detect_usb_format()
1043 if (!usb_endpoint_is_isoc_out(epd)) { detect_usb_format()
1047 ua->playback.usb_pipe = usb_sndisocpipe(ua->dev, usb_endpoint_num(epd)); detect_usb_format()
1048 ua->playback.max_packet_bytes = le16_to_cpu(epd->wMaxPacketSize); detect_usb_format()
/linux-4.4.14/drivers/usb/mon/
H A Dmon_bin.c485 const struct usb_endpoint_descriptor *epd = &urb->ep->desc; mon_bin_event() local
508 if (usb_endpoint_xfer_isoc(epd)) { mon_bin_event()
565 ep->xfer_type = xfer_to_pipe[usb_endpoint_type(epd)]; mon_bin_event()
566 ep->epnum = dir | usb_endpoint_num(epd); mon_bin_event()
577 if (usb_endpoint_xfer_int(epd)) { mon_bin_event()
579 } else if (usb_endpoint_xfer_isoc(epd)) { mon_bin_event()
586 if (usb_endpoint_xfer_control(epd) && ev_type == 'S') { mon_bin_event()
/linux-4.4.14/drivers/video/fbdev/
H A Dn411.c199 MODULE_DESCRIPTION("board driver for n411 hecuba/apollo epd kit");
H A Dxen-fbfront.c549 int epd = PAGE_SIZE / sizeof(info->gfns[0]); xenfb_init_shared_page() local
554 for (i = 0; i * epd < info->nr_pages; i++) xenfb_init_shared_page()
555 info->page->pd[i] = vmalloc_to_gfn(&info->gfns[i * epd]); xenfb_init_shared_page()
/linux-4.4.14/arch/arm/mach-pxa/
H A Dam300epd.c294 MODULE_DESCRIPTION("board driver for am300 epd kit");
H A Dam200epd.c384 MODULE_DESCRIPTION("board driver for am200 metronome epd kit");
/linux-4.4.14/drivers/usb/class/
H A Dusblp.c1242 struct usb_endpoint_descriptor *epd, *epwrite, *epread; usblp_select_alts() local
1266 epd = &ifd->endpoint[e].desc; usblp_select_alts()
1268 if (usb_endpoint_is_bulk_out(epd)) usblp_select_alts()
1270 epwrite = epd; usblp_select_alts()
1272 if (usb_endpoint_is_bulk_in(epd)) usblp_select_alts()
1274 epread = epd; usblp_select_alts()
/linux-4.4.14/drivers/uwb/
H A Dhwa-rc.c695 struct usb_endpoint_descriptor *epd; hwarc_neep_init() local
697 epd = &iface->cur_altsetting->endpoint[0].desc; hwarc_neep_init()
709 usb_rcvintpipe(usb_dev, epd->bEndpointAddress), hwarc_neep_init()
711 hwarc_neep_cb, hwarc, epd->bInterval); hwarc_neep_init()
/linux-4.4.14/drivers/misc/mic/cosm_client/
H A Dcosm_scif_client.c160 pollepd.epd = client_epd; cosm_scif_client()
/linux-4.4.14/drivers/mtd/maps/
H A Dsc520cdp.c23 * For details see http://www.amd.com/products/epd/desiging/evalboards/18.elansc520/520_cdp_brief/index.html
/linux-4.4.14/drivers/usb/musb/
H A Dmusb_host.c2200 struct usb_endpoint_descriptor *epd = &hep->desc; musb_urb_enqueue() local
2246 qh->maxpacket = usb_endpoint_maxp(epd); musb_urb_enqueue()
2247 qh->type = usb_endpoint_type(epd); musb_urb_enqueue()
2267 qh->epnum = usb_endpoint_num(epd); musb_urb_enqueue()
2294 interval = max_t(u8, epd->bInterval, 1); musb_urb_enqueue()
2300 interval = min_t(u8, epd->bInterval, 16); musb_urb_enqueue()
2354 epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK); musb_urb_enqueue()
/linux-4.4.14/drivers/net/wan/
H A Dfarsync.c131 * AMD web site: http://www.amd.com/products/epd/processors/\

Completed in 1203 milliseconds