/Linux-v5.15/drivers/gpu/drm/tiny/ |
D | repaper.c | 199 static void repaper_even_pixels(struct repaper_epd *epd, u8 **pp, in repaper_even_pixels() argument 205 for (b = 0; b < (epd->width / 8); b++) { in repaper_even_pixels() 245 static void repaper_odd_pixels(struct repaper_epd *epd, u8 **pp, in repaper_odd_pixels() argument 251 for (b = epd->width / 8; b > 0; b--) { in repaper_odd_pixels() 295 static void repaper_all_pixels(struct repaper_epd *epd, u8 **pp, in repaper_all_pixels() argument 301 for (b = epd->width / 8; b > 0; b--) { in repaper_all_pixels() 339 static void repaper_one_line(struct repaper_epd *epd, unsigned int line, in repaper_one_line() argument 343 u8 *p = epd->line_buffer; in repaper_one_line() 346 repaper_spi_mosi_low(epd->spi); in repaper_one_line() 348 if (epd->pre_border_byte) in repaper_one_line() [all …]
|
/Linux-v5.15/sound/usb/ |
D | implicit.c | 120 struct usb_endpoint_descriptor *epd; in add_generic_uac2_implicit_fb() local 130 epd = get_endpoint(alts, 0); in add_generic_uac2_implicit_fb() 131 if (!usb_endpoint_is_isoc_in(epd) || in add_generic_uac2_implicit_fb() 132 (epd->bmAttributes & USB_ENDPOINT_USAGE_MASK) != in add_generic_uac2_implicit_fb() 135 return add_implicit_fb_sync_ep(chip, fmt, epd->bEndpointAddress, 0, in add_generic_uac2_implicit_fb() 154 struct usb_endpoint_descriptor *epd; in add_roland_implicit_fb() local 159 epd = get_endpoint(alts, 0); in add_roland_implicit_fb() 160 if (!usb_endpoint_is_isoc_out(epd) || in add_roland_implicit_fb() 161 (epd->bmAttributes & USB_ENDPOINT_SYNCTYPE) != USB_ENDPOINT_SYNC_ASYNC) in add_roland_implicit_fb() 170 epd = get_endpoint(alts, 0); in add_roland_implicit_fb() [all …]
|
D | midi.c | 2104 struct usb_endpoint_descriptor *epd; in snd_usbmidi_detect_endpoints() local 2120 epd = get_endpoint(hostif, i); in snd_usbmidi_detect_endpoints() 2121 if (!usb_endpoint_xfer_bulk(epd) && in snd_usbmidi_detect_endpoints() 2122 !usb_endpoint_xfer_int(epd)) in snd_usbmidi_detect_endpoints() 2125 usb_endpoint_dir_out(epd)) { in snd_usbmidi_detect_endpoints() 2126 endpoint[out_eps].out_ep = usb_endpoint_num(epd); in snd_usbmidi_detect_endpoints() 2127 if (usb_endpoint_xfer_int(epd)) in snd_usbmidi_detect_endpoints() 2128 endpoint[out_eps].out_interval = epd->bInterval; in snd_usbmidi_detect_endpoints() 2132 usb_endpoint_dir_in(epd)) { in snd_usbmidi_detect_endpoints() 2133 endpoint[in_eps].in_ep = usb_endpoint_num(epd); in snd_usbmidi_detect_endpoints() [all …]
|
D | quirks.c | 221 struct usb_endpoint_descriptor *epd; in create_auto_pcm_quirk() local 241 epd = get_endpoint(alts, 0); in create_auto_pcm_quirk() 242 if (!usb_endpoint_xfer_isoc(epd)) in create_auto_pcm_quirk() 347 struct usb_endpoint_descriptor *epd; in create_auto_midi_quirk() local 356 epd = get_endpoint(alts, 0); in create_auto_midi_quirk() 357 if (!usb_endpoint_xfer_bulk(epd) && in create_auto_midi_quirk() 358 !usb_endpoint_xfer_int(epd)) in create_auto_midi_quirk()
|
D | mixer_scarlett_gen2.c | 3530 struct usb_endpoint_descriptor *epd; in scarlett2_find_fc_interface() local 3535 epd = get_endpoint(intf->altsetting, 0); in scarlett2_find_fc_interface() 3537 private->bEndpointAddress = epd->bEndpointAddress & in scarlett2_find_fc_interface() 3539 private->wMaxPacketSize = le16_to_cpu(epd->wMaxPacketSize); in scarlett2_find_fc_interface() 3540 private->bInterval = epd->bInterval; in scarlett2_find_fc_interface()
|
/Linux-v5.15/include/uapi/linux/usb/ |
D | ch9.h | 469 static inline int usb_endpoint_num(const struct usb_endpoint_descriptor *epd) in usb_endpoint_num() argument 471 return epd->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK; in usb_endpoint_num() 481 static inline int usb_endpoint_type(const struct usb_endpoint_descriptor *epd) in usb_endpoint_type() argument 483 return epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK; in usb_endpoint_type() 492 static inline int usb_endpoint_dir_in(const struct usb_endpoint_descriptor *epd) in usb_endpoint_dir_in() argument 494 return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN); in usb_endpoint_dir_in() 504 const struct usb_endpoint_descriptor *epd) in usb_endpoint_dir_out() argument 506 return ((epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT); in usb_endpoint_dir_out() 516 const struct usb_endpoint_descriptor *epd) in usb_endpoint_xfer_bulk() argument 518 return ((epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == in usb_endpoint_xfer_bulk() [all …]
|
/Linux-v5.15/drivers/staging/r8188eu/os_dep/ |
D | usb_intf.c | 75 static inline int RT_usb_endpoint_dir_in(const struct usb_endpoint_descriptor *epd) in RT_usb_endpoint_dir_in() argument 77 return (epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN; in RT_usb_endpoint_dir_in() 80 static inline int RT_usb_endpoint_dir_out(const struct usb_endpoint_descriptor *epd) in RT_usb_endpoint_dir_out() argument 82 return (epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT; in RT_usb_endpoint_dir_out() 85 static inline int RT_usb_endpoint_xfer_int(const struct usb_endpoint_descriptor *epd) in RT_usb_endpoint_xfer_int() argument 87 return (epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == USB_ENDPOINT_XFER_INT; in RT_usb_endpoint_xfer_int() 90 static inline int RT_usb_endpoint_xfer_bulk(const struct usb_endpoint_descriptor *epd) in RT_usb_endpoint_xfer_bulk() argument 92 return (epd->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == USB_ENDPOINT_XFER_BULK; in RT_usb_endpoint_xfer_bulk() 95 static inline int RT_usb_endpoint_is_bulk_in(const struct usb_endpoint_descriptor *epd) in RT_usb_endpoint_is_bulk_in() argument 97 return RT_usb_endpoint_xfer_bulk(epd) && RT_usb_endpoint_dir_in(epd); in RT_usb_endpoint_is_bulk_in() [all …]
|
/Linux-v5.15/drivers/net/wireless/marvell/mwifiex/ |
D | usb.c | 401 struct usb_endpoint_descriptor *epd; in mwifiex_usb_probe() local 448 epd = &iface_desc->endpoint[i].desc; in mwifiex_usb_probe() 449 if (usb_endpoint_dir_in(epd) && in mwifiex_usb_probe() 450 usb_endpoint_num(epd) == MWIFIEX_USB_EP_CMD_EVENT && in mwifiex_usb_probe() 451 (usb_endpoint_xfer_bulk(epd) || in mwifiex_usb_probe() 452 usb_endpoint_xfer_int(epd))) { in mwifiex_usb_probe() 453 card->rx_cmd_ep_type = usb_endpoint_type(epd); in mwifiex_usb_probe() 454 card->rx_cmd_interval = epd->bInterval; in mwifiex_usb_probe() 456 le16_to_cpu(epd->wMaxPacketSize), in mwifiex_usb_probe() 457 epd->bEndpointAddress, card->rx_cmd_ep_type); in mwifiex_usb_probe() [all …]
|
/Linux-v5.15/drivers/usb/common/ |
D | common.c | 231 unsigned int usb_decode_interval(const struct usb_endpoint_descriptor *epd, in usb_decode_interval() argument 236 switch (usb_endpoint_type(epd)) { in usb_decode_interval() 240 interval = epd->bInterval; in usb_decode_interval() 243 interval = 1 << (epd->bInterval - 1); in usb_decode_interval() 247 if (speed == USB_SPEED_HIGH && usb_endpoint_dir_out(epd)) in usb_decode_interval() 248 interval = epd->bInterval; in usb_decode_interval() 252 interval = 1 << (epd->bInterval - 1); in usb_decode_interval() 254 interval = epd->bInterval; in usb_decode_interval()
|
/Linux-v5.15/drivers/infiniband/hw/cxgb4/ |
D | device.c | 558 static int dump_ep(struct c4iw_ep *ep, struct c4iw_debugfs_data *epd) in dump_ep() argument 563 space = epd->bufsize - epd->pos - 1; in dump_ep() 574 cc = snprintf(epd->buf + epd->pos, space, in dump_ep() 595 cc = snprintf(epd->buf + epd->pos, space, in dump_ep() 611 epd->pos += cc; in dump_ep() 616 int dump_listen_ep(struct c4iw_listen_ep *ep, struct c4iw_debugfs_data *epd) in dump_listen_ep() argument 621 space = epd->bufsize - epd->pos - 1; in dump_listen_ep() 631 cc = snprintf(epd->buf + epd->pos, space, in dump_listen_ep() 644 cc = snprintf(epd->buf + epd->pos, space, in dump_listen_ep() 653 epd->pos += cc; in dump_listen_ep() [all …]
|
/Linux-v5.15/drivers/usb/serial/ |
D | usb-serial.c | 797 struct usb_endpoint_descriptor *epd) in store_endpoint() argument 800 u8 addr = epd->bEndpointAddress; in store_endpoint() 802 if (usb_endpoint_is_bulk_in(epd)) { in store_endpoint() 806 epds->bulk_in[epds->num_bulk_in++] = epd; in store_endpoint() 807 } else if (usb_endpoint_is_bulk_out(epd)) { in store_endpoint() 811 epds->bulk_out[epds->num_bulk_out++] = epd; in store_endpoint() 812 } else if (usb_endpoint_is_int_in(epd)) { in store_endpoint() 816 epds->interrupt_in[epds->num_interrupt_in++] = epd; in store_endpoint() 817 } else if (usb_endpoint_is_int_out(epd)) { in store_endpoint() 821 epds->interrupt_out[epds->num_interrupt_out++] = epd; in store_endpoint() [all …]
|
/Linux-v5.15/drivers/usb/core/ |
D | usb.c | 74 static bool match_endpoint(struct usb_endpoint_descriptor *epd, in match_endpoint() argument 80 switch (usb_endpoint_type(epd)) { in match_endpoint() 82 if (usb_endpoint_dir_in(epd)) { in match_endpoint() 84 *bulk_in = epd; in match_endpoint() 89 *bulk_out = epd; in match_endpoint() 96 if (usb_endpoint_dir_in(epd)) { in match_endpoint() 98 *int_in = epd; in match_endpoint() 103 *int_out = epd; in match_endpoint() 140 struct usb_endpoint_descriptor *epd; in usb_find_common_endpoints() local 153 epd = &alt->endpoint[i].desc; in usb_find_common_endpoints() [all …]
|
D | quirks.c | 550 struct usb_endpoint_descriptor *epd) in usb_endpoint_is_ignored() argument 563 if (address == epd->bEndpointAddress) in usb_endpoint_is_ignored()
|
D | usb.h | 42 struct usb_endpoint_descriptor *epd);
|
D | config.c | 227 struct usb_endpoint_descriptor *epd; in config_endpoint_is_duplicate() local 243 epd = &alt->endpoint[k].desc; in config_endpoint_is_duplicate() 245 if (endpoint_is_duplicate(epd, d)) in config_endpoint_is_duplicate()
|
/Linux-v5.15/drivers/usb/usbip/ |
D | stub_rx.c | 329 struct usb_endpoint_descriptor *epd = NULL; in get_pipe() local 343 epd = &ep->desc; in get_pipe() 345 if (usb_endpoint_xfer_control(epd)) { in get_pipe() 352 if (usb_endpoint_xfer_bulk(epd)) { in get_pipe() 359 if (usb_endpoint_xfer_int(epd)) { in get_pipe() 366 if (usb_endpoint_xfer_isoc(epd)) { in get_pipe()
|
/Linux-v5.15/fs/btrfs/ |
D | extent_io.c | 189 static void end_write_bio(struct extent_page_data *epd, int ret) in end_write_bio() argument 191 struct bio *bio = epd->bio_ctrl.bio; in end_write_bio() 196 epd->bio_ctrl.bio = NULL; in end_write_bio() 206 static int __must_check flush_write_bio(struct extent_page_data *epd) in flush_write_bio() argument 209 struct bio *bio = epd->bio_ctrl.bio; in flush_write_bio() 220 epd->bio_ctrl.bio = NULL; in flush_write_bio() 3897 struct extent_page_data *epd, in __extent_writepage_io() argument 4019 &epd->bio_ctrl, page, in __extent_writepage_io() 4054 struct extent_page_data *epd) in __extent_writepage() argument 4092 if (!epd->extent_locked) { in __extent_writepage() [all …]
|
/Linux-v5.15/drivers/usb/host/ |
D | xhci-mtk-sch.c | 71 struct usb_endpoint_descriptor *epd = &ep->desc; in decode_ep() local 75 interval = usb_decode_interval(epd, speed); in decode_ep() 84 usb_speed_string(speed), usb_endpoint_num(epd), in decode_ep() 85 usb_endpoint_dir_in(epd) ? "in" : "out", in decode_ep() 86 usb_ep_type_string(usb_endpoint_type(epd)), in decode_ep() 87 usb_endpoint_maxp(epd), epd->bInterval, interval, unit); in decode_ep()
|
/Linux-v5.15/drivers/usb/misc/ |
D | chaoskey.c | 111 struct usb_endpoint_descriptor *epd; in chaoskey_probe() local 121 res = usb_find_bulk_in_endpoint(altsetting, &epd); in chaoskey_probe() 127 in_ep = usb_endpoint_num(epd); in chaoskey_probe() 128 size = usb_endpoint_maxp(epd); in chaoskey_probe()
|
D | uss720.c | 675 struct usb_endpoint_descriptor *epd; in uss720_probe() local 731 i = usb_find_last_int_in_endpoint(interface, &epd); in uss720_probe() 734 epd->bEndpointAddress, epd->bInterval); in uss720_probe()
|
/Linux-v5.15/include/linux/usb/ |
D | ch9.h | 53 unsigned int usb_decode_interval(const struct usb_endpoint_descriptor *epd,
|
/Linux-v5.15/sound/usb/misc/ |
D | ua101.c | 943 const struct usb_endpoint_descriptor *epd; in detect_usb_format() local 1002 epd = &ua->intf[INTF_CAPTURE]->altsetting[1].endpoint[0].desc; in detect_usb_format() 1003 if (!usb_endpoint_is_isoc_in(epd)) { in detect_usb_format() 1007 ua->capture.usb_pipe = usb_rcvisocpipe(ua->dev, usb_endpoint_num(epd)); in detect_usb_format() 1008 ua->capture.max_packet_bytes = usb_endpoint_maxp(epd); in detect_usb_format() 1010 epd = &ua->intf[INTF_PLAYBACK]->altsetting[1].endpoint[0].desc; in detect_usb_format() 1011 if (!usb_endpoint_is_isoc_out(epd)) { in detect_usb_format() 1015 ua->playback.usb_pipe = usb_sndisocpipe(ua->dev, usb_endpoint_num(epd)); in detect_usb_format() 1016 ua->playback.max_packet_bytes = usb_endpoint_maxp(epd); in detect_usb_format()
|
/Linux-v5.15/drivers/usb/mon/ |
D | mon_bin.c | 488 const struct usb_endpoint_descriptor *epd = &urb->ep->desc; in mon_bin_event() local 511 if (usb_endpoint_xfer_isoc(epd)) { in mon_bin_event() 568 ep->xfer_type = xfer_to_pipe[usb_endpoint_type(epd)]; in mon_bin_event() 569 ep->epnum = dir | usb_endpoint_num(epd); in mon_bin_event() 580 if (usb_endpoint_xfer_int(epd)) { in mon_bin_event() 582 } else if (usb_endpoint_xfer_isoc(epd)) { in mon_bin_event() 589 if (usb_endpoint_xfer_control(epd) && ev_type == 'S') { in mon_bin_event()
|
/Linux-v5.15/drivers/video/fbdev/ |
D | xen-fbfront.c | 559 int epd = PAGE_SIZE / sizeof(info->gfns[0]); in xenfb_init_shared_page() local 564 for (i = 0; i * epd < info->nr_pages; i++) in xenfb_init_shared_page() 565 info->page->pd[i] = vmalloc_to_gfn(&info->gfns[i * epd]); in xenfb_init_shared_page()
|
/Linux-v5.15/drivers/usb/musb/ |
D | musb_host.c | 2116 struct usb_endpoint_descriptor *epd = &hep->desc; in musb_urb_enqueue() local 2164 qh->maxpacket = usb_endpoint_maxp(epd); in musb_urb_enqueue() 2165 qh->type = usb_endpoint_type(epd); in musb_urb_enqueue() 2171 qh->hb_mult = usb_endpoint_maxp_mult(epd); in musb_urb_enqueue() 2189 qh->epnum = usb_endpoint_num(epd); in musb_urb_enqueue() 2216 interval = max_t(u8, epd->bInterval, 1); in musb_urb_enqueue() 2222 interval = min_t(u8, epd->bInterval, 16); in musb_urb_enqueue() 2276 epd->bEndpointAddress & USB_ENDPOINT_DIR_MASK); in musb_urb_enqueue()
|