| /rk3399_rockchip-uboot/include/ |
| H A D | usb.h | 48 #define USB_TIMEOUT_MS(pipe) (usb_pipebulk(pipe) ? 5000 : 1000) argument 183 int submit_bulk_msg(struct usb_device *dev, unsigned long pipe, 185 int submit_control_msg(struct usb_device *dev, unsigned long pipe, void *buffer, 187 int submit_int_msg(struct usb_device *dev, unsigned long pipe, void *buffer, 192 struct int_queue *create_int_queue(struct usb_device *dev, unsigned long pipe, 259 int usb_control_msg(struct usb_device *dev, unsigned int pipe, 263 int usb_bulk_msg(struct usb_device *dev, unsigned int pipe, 265 int usb_int_msg(struct usb_device *dev, unsigned long pipe, 268 int usb_maxpacket(struct usb_device *dev, unsigned long pipe); 277 int usb_clear_halt(struct usb_device *dev, int pipe); [all …]
|
| /rk3399_rockchip-uboot/drivers/usb/host/ |
| H A D | usb-sandbox.c | 19 static void usbmon_trace(struct udevice *bus, ulong pipe, in usbmon_trace() argument 25 type = (pipe & USB_PIPE_TYPE_MASK) >> USB_PIPE_TYPE_SHIFT; in usbmon_trace() 27 pipe & USB_DIR_IN ? 'i' : 'o', in usbmon_trace() 29 (pipe & USB_PIPE_DEV_MASK) >> USB_PIPE_DEV_SHIFT, in usbmon_trace() 30 (pipe & USB_PIPE_EP_MASK) >> USB_PIPE_EP_SHIFT); in usbmon_trace() 43 unsigned long pipe, in sandbox_submit_control() argument 53 ret = usb_emul_find(bus, pipe, udev->portnr, &emul); in sandbox_submit_control() 54 usbmon_trace(bus, pipe, setup, emul); in sandbox_submit_control() 58 if (usb_pipedevice(pipe) == ctrl->rootdev) { in sandbox_submit_control() 65 ret = usb_emul_control(emul, udev, pipe, buffer, length, setup); in sandbox_submit_control() [all …]
|
| H A D | sl811-hcd.c | 45 static int sl811_rh_submit_urb(struct usb_device *usb_dev, unsigned long pipe, 215 static int sl811_send_packet(struct usb_device *dev, unsigned long pipe, __u8 *buffer, int len) in sl811_send_packet() argument 226 if (usb_pipeout(pipe)) in sl811_send_packet() 228 if (usb_gettoggle(dev, usb_pipeendpoint(pipe), usb_pipeout(pipe))) in sl811_send_packet() 238 if (usb_pipeout(pipe) && len) in sl811_send_packet() 264 if (usb_pipein(pipe) && len) in sl811_send_packet() 288 int submit_bulk_msg(struct usb_device *dev, unsigned long pipe, void *buffer, in submit_bulk_msg() argument 291 int dir_out = usb_pipeout(pipe); in submit_bulk_msg() 292 int ep = usb_pipeendpoint(pipe); in submit_bulk_msg() 293 int max = usb_maxpacket(dev, pipe); in submit_bulk_msg() [all …]
|
| H A D | ohci-hcd.c | 212 unsigned long pipe, void *buffer, int transfer_len, 218 unsigned long pipe, int interval, int load); 281 unsigned long pipe, void *buffer, int transfer_len, in pkt_print() argument 287 usb_pipedevice(pipe), in pkt_print() 288 usb_pipeendpoint(pipe), in pkt_print() 289 usb_pipeout(pipe)? 'O': 'I', in pkt_print() 290 usb_pipetype(pipe) < 2 ? \ in pkt_print() 291 (usb_pipeint(pipe)? "INTR": "ISOC"): \ in pkt_print() 292 (usb_pipecontrol(pipe)? "CTRL": "BULK"), in pkt_print() 299 if (usb_pipecontrol(pipe)) { in pkt_print() [all …]
|
| H A D | ehci-hcd.c | 301 ehci_submit_async(struct usb_device *dev, unsigned long pipe, void *buffer, in ehci_submit_async() argument 318 debug("dev=%p, pipe=%lx, buffer=%p, length=%d, req=%p\n", dev, pipe, in ehci_submit_async() 395 toggle = usb_gettoggle(dev, usb_pipeendpoint(pipe), usb_pipeout(pipe)); in ehci_submit_async() 408 c = (dev->speed != USB_SPEED_HIGH) && !usb_pipeendpoint(pipe); in ehci_submit_async() 409 maxpacket = usb_maxpacket(dev, pipe); in ehci_submit_async() 414 QH_ENDPT1_ENDPT(usb_pipeendpoint(pipe)) | QH_ENDPT1_I(0) | in ehci_submit_async() 415 QH_ENDPT1_DEVADDR(usb_pipedevice(pipe)); in ehci_submit_async() 495 QT_TOKEN_PID(usb_pipein(pipe) ? in ehci_submit_async() 531 QT_TOKEN_PID(usb_pipein(pipe) ? in ehci_submit_async() 569 timeout = USB_TIMEOUT_MS(pipe); in ehci_submit_async() [all …]
|
| H A D | r8a66597-hcd.c | 229 struct usb_device *dev, unsigned long pipe) in pipe_buffer_setting() argument 234 if (usb_pipein(pipe)) { in pipe_buffer_setting() 237 maxpacket = dev->epmaxpacketin[usb_pipeendpoint(pipe)]; in pipe_buffer_setting() 241 maxpacket = dev->epmaxpacketout[usb_pipeendpoint(pipe)]; in pipe_buffer_setting() 253 if (!usb_pipein(pipe)) in pipe_buffer_setting() 257 val |= R8A66597_BULK | R8A66597_DBLB | usb_pipeendpoint(pipe); in pipe_buffer_setting() 261 r8a66597_write(r8a66597, make_devsel(usb_pipedevice(pipe)) | in pipe_buffer_setting() 317 unsigned long pipe, void *buffer, int transfer_len) in send_bulk_packet() argument 335 bufsize = dev->epmaxpacketout[usb_pipeendpoint(pipe)]; in send_bulk_packet() 366 unsigned long pipe, in receive_bulk_packet() argument [all …]
|
| H A D | dwc2.c | 803 unsigned long pipe, void *buffer, int txlen, in dwc_otg_submit_rh_msg() argument 808 if (usb_pipeint(pipe)) { in dwc_otg_submit_rh_msg() 921 unsigned long pipe, u8 *pid, int in, void *buffer, int len) in chunk_msg() argument 926 int devnum = usb_pipedevice(pipe); in chunk_msg() 927 int ep = usb_pipeendpoint(pipe); in chunk_msg() 928 int max = usb_maxpacket(dev, pipe); in chunk_msg() 929 int eptype = dwc2_eptype[usb_pipetype(pipe)]; in chunk_msg() 940 debug("%s: msg: pipe %lx pid %d in %d len %d\n", __func__, pipe, *pid, in chunk_msg() 1048 unsigned long pipe, void *buffer, int len) in _submit_bulk_msg() argument 1050 int devnum = usb_pipedevice(pipe); in _submit_bulk_msg() [all …]
|
| H A D | xhci.c | 891 static int xhci_submit_root(struct usb_device *udev, unsigned long pipe, in xhci_submit_root() argument 1121 static int _xhci_submit_int_msg(struct usb_device *udev, unsigned long pipe, in _xhci_submit_int_msg() argument 1125 if (usb_pipetype(pipe) != PIPE_INTERRUPT) { in _xhci_submit_int_msg() 1126 printf("non-interrupt pipe (type=%lu)", usb_pipetype(pipe)); in _xhci_submit_int_msg() 1136 return xhci_bulk_tx(udev, pipe, length, buffer); in _xhci_submit_int_msg() 1148 static int _xhci_submit_bulk_msg(struct usb_device *udev, unsigned long pipe, in _xhci_submit_bulk_msg() argument 1151 if (usb_pipetype(pipe) != PIPE_BULK) { in _xhci_submit_bulk_msg() 1152 printf("non-bulk pipe (type=%lu)", usb_pipetype(pipe)); in _xhci_submit_bulk_msg() 1156 return xhci_bulk_tx(udev, pipe, length, buffer); in _xhci_submit_bulk_msg() 1170 static int _xhci_submit_control_msg(struct usb_device *udev, unsigned long pipe, in _xhci_submit_control_msg() argument [all …]
|
| H A D | usb-uclass.c | 36 int submit_int_msg(struct usb_device *udev, unsigned long pipe, void *buffer, in submit_int_msg() argument 45 return ops->interrupt(bus, udev, pipe, buffer, length, interval, in submit_int_msg() 49 int submit_control_msg(struct usb_device *udev, unsigned long pipe, in submit_control_msg() argument 60 err = ops->control(bus, udev, pipe, buffer, length, setup); in submit_control_msg() 72 int submit_bulk_msg(struct usb_device *udev, unsigned long pipe, void *buffer, in submit_bulk_msg() argument 81 return ops->bulk(bus, udev, pipe, buffer, length); in submit_bulk_msg() 85 unsigned long pipe, int queuesize, int elementsize, in create_int_queue() argument 94 return ops->create_int_queue(bus, udev, pipe, queuesize, elementsize, in create_int_queue()
|
| H A D | xhci-ring.c | 597 int xhci_bulk_tx(struct usb_device *udev, unsigned long pipe, in xhci_bulk_tx() argument 623 udev, pipe, buffer, length); in xhci_bulk_tx() 625 ep_index = usb_pipe_ep_index(pipe); in xhci_bulk_tx() 677 maxpacketsize = usb_maxpacket(udev, pipe); in xhci_bulk_tx() 721 if (usb_pipein(pipe)) in xhci_bulk_tx() 789 int xhci_ctrl_tx(struct usb_device *udev, unsigned long pipe, in xhci_ctrl_tx() argument 814 ep_index = usb_pipe_ep_index(pipe); in xhci_ctrl_tx() 904 if (usb_pipein(pipe)) in xhci_ctrl_tx()
|
| /rk3399_rockchip-uboot/drivers/usb/musb-new/ |
| H A D | musb_uboot.c | 37 unsigned long pipe, void *buffer, int len, in construct_urb() argument 40 int epnum = usb_pipeendpoint(pipe); in construct_urb() 41 int is_in = usb_pipein(pipe); in construct_urb() 51 urb->pipe = pipe; in construct_urb() 78 timeout = get_timer(0) + USB_TIMEOUT_MS(urb->pipe); in submit_urb() 93 struct usb_device *dev, unsigned long pipe, in _musb_submit_control_msg() argument 97 pipe, buffer, len, setup, 0); in _musb_submit_control_msg() 107 struct usb_device *dev, unsigned long pipe, void *buffer, int len) in _musb_submit_bulk_msg() argument 110 pipe, buffer, len, NULL, 0); in _musb_submit_bulk_msg() 115 struct usb_device *dev, unsigned long pipe, in _musb_submit_int_msg() argument [all …]
|
| H A D | musb_host.c | 198 unsigned pipe = urb->pipe; in musb_start_urb() local 199 u8 address = usb_pipedevice(pipe); in musb_start_urb() 301 usb_pipedevice(urb->pipe), in musb_giveback() 302 usb_pipeendpoint(urb->pipe), in musb_giveback() 303 usb_pipein(urb->pipe) ? "in" : "out", in musb_giveback() 461 int pipe = urb->pipe; in musb_host_packet_rx() local 472 if (usb_pipeisoc(pipe)) { in musb_host_packet_rx() 1059 if (usb_pipeout(urb->pipe) in musb_h_ep0_irq() 1105 int pipe; in musb_host_tx() local 1128 pipe = urb->pipe; in musb_host_tx() [all …]
|
| /rk3399_rockchip-uboot/drivers/video/ |
| H A D | i915_reg.h | 48 #define BLM_PIPE(pipe) ((pipe) << 29) argument 96 #define ENH_PIPE(pipe) _PIPE(pipe, ENH_PIPE_A_SELECT, ENH_PIPE_B_SELECT) argument 268 #define TVIDEO_DIP_CTL(pipe) _PIPE(pipe, _VIDEO_DIP_CTL_A, _VIDEO_DIP_CTL_B) argument 269 #define TVIDEO_DIP_DATA(pipe) _PIPE(pipe, _VIDEO_DIP_DATA_A, _VIDEO_DIP_DATA_B) argument 270 #define TVIDEO_DIP_GCP(pipe) _PIPE(pipe, _VIDEO_DIP_GCP_A, _VIDEO_DIP_GCP_B) argument 280 #define VLV_TVIDEO_DIP_CTL(pipe) \ argument 281 _PIPE(pipe, VLV_VIDEO_DIP_CTL_A, VLV_VIDEO_DIP_CTL_B) 282 #define VLV_TVIDEO_DIP_DATA(pipe) \ argument 283 _PIPE(pipe, VLV_VIDEO_DIP_DATA_A, VLV_VIDEO_DIP_DATA_B) 284 #define VLV_TVIDEO_DIP_GCP(pipe) \ argument [all …]
|
| /rk3399_rockchip-uboot/tools/patman/ |
| H A D | gitutil.py | 63 pipe = [LogCmd('@{upstream}..', oneline=True), 65 stdout = command.RunPipe(pipe, capture=True, oneline=True).stdout 78 pipe = ['git', 'name-rev', commit_hash] 79 stdout = command.RunPipe([pipe], capture=True, oneline=True).stdout 101 pipe = [LogCmd(branch, git_dir=git_dir, oneline=True, count=100)] 102 result = command.RunPipe(pipe, capture=True, capture_stderr=True, 172 pipe = [LogCmd(range_expr, git_dir=git_dir, oneline=True)] 173 result = command.RunPipe(pipe, capture=True, capture_stderr=True, 203 pipe = [LogCmd(commit_range, oneline=True), 205 stdout = command.RunPipe(pipe, capture=True, oneline=True).stdout [all …]
|
| /rk3399_rockchip-uboot/arch/mips/mach-au1x00/ |
| H A D | au1x00_usb_ohci.c | 116 td_submit_job (struct usb_device * dev, unsigned long pipe, void * buffer, 151 static void pkt_print (struct usb_device * dev, unsigned long pipe, void * buffer, in pkt_print() argument 159 usb_pipedevice (pipe), in pkt_print() 160 usb_pipeendpoint (pipe), in pkt_print() 161 usb_pipeout (pipe)? 'O': 'I', in pkt_print() 162 usb_pipetype (pipe) < 2? (usb_pipeint (pipe)? "INTR": "ISOC"): in pkt_print() 163 (usb_pipecontrol (pipe)? "CTRL": "BULK"), in pkt_print() 170 if (usb_pipecontrol (pipe)) { in pkt_print() 180 len = usb_pipeout (pipe)? in pkt_print() 375 int sohci_submit_job(struct usb_device *dev, unsigned long pipe, void *buffer, in sohci_submit_job() argument [all …]
|
| /rk3399_rockchip-uboot/drivers/usb/emul/ |
| H A D | usb-emul-uclass.c | 164 int usb_emul_find(struct udevice *bus, ulong pipe, int port1, in usb_emul_find() argument 167 int devnum = usb_pipedevice(pipe); in usb_emul_find() 180 unsigned long pipe, void *buffer, int length, in usb_emul_control() argument 192 if (pipe == usb_rcvctrlpipe(udev, 0)) { in usb_emul_control() 202 return ops->control(emul, udev, pipe, buffer, length, in usb_emul_control() 205 } else if (pipe == usb_snddefctrl(udev)) { in usb_emul_control() 216 } else if (pipe == usb_sndctrlpipe(udev, 0)) { in usb_emul_control() 225 return ops->control(emul, udev, pipe, buffer, length, in usb_emul_control() 229 debug("pipe=%lx\n", pipe); in usb_emul_control() 235 unsigned long pipe, void *buffer, int length) in usb_emul_bulk() argument [all …]
|
| H A D | sandbox_flash.c | 174 unsigned long pipe, void *buff, int len, in sandbox_flash_control() argument 179 if (pipe == usb_rcvctrlpipe(udev, 0)) { in sandbox_flash_control() 192 debug("pipe=%lx\n", pipe); in sandbox_flash_control() 300 unsigned long pipe, void *buff, int len) in sandbox_flash_bulk() argument 304 int ep = usb_pipeendpoint(pipe); in sandbox_flash_bulk() 308 dev->name, pipe, ep, len, priv->phase); in sandbox_flash_bulk()
|
| H A D | sandbox_keyb.c | 175 unsigned long pipe, void *buff, int len, in sandbox_keyb_control() argument 178 debug("pipe=%lx\n", pipe); in sandbox_keyb_control() 184 unsigned long pipe, void *buffer, int length, int interval, in sandbox_keyb_interrupt() argument
|
| H A D | sandbox_hub.c | 206 unsigned long pipe, in sandbox_hub_submit_control_msg() argument 213 if (pipe == usb_rcvctrlpipe(udev, 0)) { in sandbox_hub_submit_control_msg() 251 } else if (pipe == usb_sndctrlpipe(udev, 0)) { in sandbox_hub_submit_control_msg() 297 debug("pipe=%lx\n", pipe); in sandbox_hub_submit_control_msg()
|
| /rk3399_rockchip-uboot/drivers/video/drm/ |
| H A D | rockchip_lvds.c | 95 void (*enable)(struct rockchip_lvds *lvds, int pipe); 207 int pipe = crtc_state->crtc_id; in rockchip_lvds_connector_enable() local 211 lvds->funcs->enable(lvds, pipe); in rockchip_lvds_connector_enable() 266 static void px30_lvds_enable(struct rockchip_lvds *lvds, int pipe) in px30_lvds_enable() argument 271 PX30_LVDS_P2S_EN(1) | PX30_LVDS_VOP_SEL(pipe)); in px30_lvds_enable() 285 static void rk3126_lvds_enable(struct rockchip_lvds *lvds, int pipe) in rk3126_lvds_enable() argument 303 static void rk3288_lvds_enable(struct rockchip_lvds *lvds, int pipe) in rk3288_lvds_enable() argument 309 RK3288_LVDS_LCDC_SEL(pipe)); in rk3288_lvds_enable() 346 static void rk3368_lvds_enable(struct rockchip_lvds *lvds, int pipe) in rk3368_lvds_enable() argument 365 static void rk3562_lvds_enable(struct rockchip_lvds *lvds, int pipe) in rk3562_lvds_enable() argument [all …]
|
| H A D | rockchip_rgb.c | 74 void (*prepare)(struct rockchip_rgb *rgb, int pipe); 160 int pipe = crtc_state->crtc_id; in rockchip_rgb_connector_prepare() local 166 rgb->funcs->prepare(rgb, pipe); in rockchip_rgb_connector_prepare() 606 static void rv1106_rgb_prepare(struct rockchip_rgb *rgb, int pipe) in rv1106_rgb_prepare() argument 624 static void rv1126_rgb_prepare(struct rockchip_rgb *rgb, int pipe) in rv1126_rgb_prepare() argument 638 static void rv1126b_rgb_prepare(struct rockchip_rgb *rgb, int pipe) in rv1126b_rgb_prepare() argument 654 static void px30_rgb_prepare(struct rockchip_rgb *rgb, int pipe) in px30_rgb_prepare() argument 656 regmap_write(rgb->grf, PX30_GRF_PD_VO_CON1, PX30_RGB_VOP_SEL(pipe) | in px30_rgb_prepare() 668 static void rk1808_rgb_prepare(struct rockchip_rgb *rgb, int pipe) in rk1808_rgb_prepare() argument 682 static void rk3288_rgb_prepare(struct rockchip_rgb *rgb, int pipe) in rk3288_rgb_prepare() argument [all …]
|
| /rk3399_rockchip-uboot/common/ |
| H A D | usb_storage.c | 367 static int us_one_transfer(struct us_data *us, int pipe, char *buf, int length) in us_one_transfer() argument 377 max_size = usb_maxpacket(us->pusb_dev, pipe) * 16; in us_one_transfer() 395 result = usb_bulk_msg(us->pusb_dev, pipe, buf, in us_one_transfer() 409 "halt for pipe 0x%x\n", pipe); in us_one_transfer() 411 usb_clear_halt(us->pusb_dev, pipe); in us_one_transfer() 453 unsigned int pipe; in usb_stor_BBB_reset() local 484 pipe = usb_rcvbulkpipe(us->pusb_dev, us->ep_in); in usb_stor_BBB_reset() 485 result = usb_clear_halt(us->pusb_dev, pipe); in usb_stor_BBB_reset() 491 pipe = usb_sndbulkpipe(us->pusb_dev, us->ep_out); in usb_stor_BBB_reset() 492 result = usb_clear_halt(us->pusb_dev, pipe); in usb_stor_BBB_reset() [all …]
|
| H A D | usb.c | 200 int usb_int_msg(struct usb_device *dev, unsigned long pipe, in usb_int_msg() argument 203 return submit_int_msg(dev, pipe, buffer, transfer_len, interval, in usb_int_msg() 216 int usb_control_msg(struct usb_device *dev, unsigned int pipe, in usb_control_msg() argument 240 err = submit_control_msg(dev, pipe, data, size, setup_packet); in usb_control_msg() 271 int usb_bulk_msg(struct usb_device *dev, unsigned int pipe, in usb_bulk_msg() argument 277 if (submit_bulk_msg(dev, pipe, data, len) < 0) in usb_bulk_msg() 300 int usb_maxpacket(struct usb_device *dev, unsigned long pipe) in usb_maxpacket() argument 303 if ((pipe & USB_DIR_IN) == 0) in usb_maxpacket() 304 return dev->epmaxpacketout[((pipe>>15) & 0xf)]; in usb_maxpacket() 306 return dev->epmaxpacketin[((pipe>>15) & 0xf)]; in usb_maxpacket() [all …]
|
| H A D | cli_hush.c | 200 struct pipe *list_head; 201 struct pipe *pipe; member 232 struct pipe *group; /* if non-NULL, first in group or subshell */ 238 struct pipe *family; /* pointer back to the child's parent pipe */ 244 struct pipe { struct 256 struct pipe *next; /* to track background commands */ argument 299 static struct pipe *job_list; 440 static int free_pipe_list(struct pipe *head, int indent); 441 static int free_pipe(struct pipe *pi, int indent); 446 static int run_list_real(struct pipe *pi); [all …]
|
| /rk3399_rockchip-uboot/drivers/usb/musb/ |
| H A D | musb_hcd.c | 458 static int musb_submit_rh_msg(struct usb_device *dev, unsigned long pipe, in musb_submit_rh_msg() argument 473 if ((pipe & PIPE_INTERRUPT) == PIPE_INTERRUPT) { in musb_submit_rh_msg() 753 int submit_control_msg(struct usb_device *dev, unsigned long pipe, void *buffer, in submit_control_msg() argument 756 int devnum = usb_pipedevice(pipe); in submit_control_msg() 762 int stat = musb_submit_rh_msg(dev, pipe, buffer, len, setup); in submit_control_msg() 852 int submit_bulk_msg(struct usb_device *dev, unsigned long pipe, in submit_bulk_msg() argument 855 int dir_out = usb_pipeout(pipe); in submit_bulk_msg() 856 int ep = usb_pipeendpoint(pipe); in submit_bulk_msg() 858 int devnum = usb_pipedevice(pipe); in submit_bulk_msg() 1059 int submit_int_msg(struct usb_device *dev, unsigned long pipe, void *buffer, in submit_int_msg() argument [all …]
|