| /rk3399_rockchip-uboot/drivers/usb/gadget/ |
| H A D | fotg210.c | 44 struct usb_request req; member 209 static int fotg210_dma(struct fotg210_ep *ep, struct fotg210_request *req) in fotg210_dma() argument 214 uint8_t *buf = req->req.buf + req->req.actual; in fotg210_dma() 215 uint32_t len = req->req.length - req->req.actual; in fotg210_dma() 232 req->req.status = ret; in fotg210_dma() 303 req->req.status = ret; in fotg210_dma() 305 req->req.actual += len; in fotg210_dma() 323 struct usb_ctrlrequest *req = (struct usb_ctrlrequest *)tmp; in fotg210_setup() local 358 if (req->bRequestType & USB_DIR_IN) in fotg210_setup() 365 if ((req->bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in fotg210_setup() [all …]
|
| H A D | pxa25x_udc.c | 387 struct pxa25x_request *req; in pxa25x_ep_alloc_request() local 389 req = kzalloc(sizeof(*req), gfp_flags); in pxa25x_ep_alloc_request() 390 if (!req) in pxa25x_ep_alloc_request() 393 INIT_LIST_HEAD(&req->queue); in pxa25x_ep_alloc_request() 394 return &req->req; in pxa25x_ep_alloc_request() 404 struct pxa25x_request *req; in pxa25x_ep_free_request() local 406 req = container_of(_req, struct pxa25x_request, req); in pxa25x_ep_free_request() 407 WARN_ON(!list_empty(&req->queue)); in pxa25x_ep_free_request() 408 kfree(req); in pxa25x_ep_free_request() 416 static void done(struct pxa25x_ep *ep, struct pxa25x_request *req, int status) in done() argument [all …]
|
| H A D | atmel_usba_udc.c | 29 static void next_fifo_transaction(struct usba_ep *ep, struct usba_request *req) in next_fifo_transaction() argument 33 transaction_len = req->req.length - req->req.actual; in next_fifo_transaction() 34 req->last_transaction = 1; in next_fifo_transaction() 37 req->last_transaction = 0; in next_fifo_transaction() 38 } else if (transaction_len == ep->ep.maxpacket && req->req.zero) { in next_fifo_transaction() 39 req->last_transaction = 0; in next_fifo_transaction() 43 ep->ep.name, req, transaction_len, in next_fifo_transaction() 44 req->last_transaction ? ", done" : ""); in next_fifo_transaction() 46 memcpy(ep->fifo, req->req.buf + req->req.actual, transaction_len); in next_fifo_transaction() 48 req->req.actual += transaction_len; in next_fifo_transaction() [all …]
|
| H A D | dwc2_udc_otg_xfer_dma.c | 93 static int setdma_rx(struct dwc2_ep *ep, struct dwc2_request *req) in setdma_rx() argument 99 buf = req->req.buf + req->req.actual; in setdma_rx() 100 length = min_t(u32, req->req.length - req->req.actual, in setdma_rx() 135 static int setdma_tx(struct dwc2_ep *ep, struct dwc2_request *req) in setdma_tx() argument 141 buf = req->req.buf + req->req.actual; in setdma_tx() 142 length = req->req.length - req->req.actual; in setdma_tx() 196 struct dwc2_request *req = NULL; in complete_rx() local 207 req = list_entry(ep->queue.next, struct dwc2_request, queue); in complete_rx() 235 req->req.actual += min(xfer_size, req->req.length - req->req.actual); in complete_rx() 241 __func__, ep_num, req->req.actual, req->req.length, in complete_rx() [all …]
|
| H A D | f_dfu.c | 156 static void dnload_request_complete(struct usb_ep *ep, struct usb_request *req) in dnload_request_complete() argument 158 struct f_dfu *f_dfu = req->context; in dnload_request_complete() 161 ret = dfu_write(dfu_get_entity(f_dfu->altsetting), req->buf, in dnload_request_complete() 162 req->actual, f_dfu->blk_seq_num); in dnload_request_complete() 169 static void dnload_request_flush(struct usb_ep *ep, struct usb_request *req) in dnload_request_flush() argument 171 struct f_dfu *f_dfu = req->context; in dnload_request_flush() 181 static int handle_getstatus(struct usb_request *req) in handle_getstatus() argument 183 struct dfu_status *dstat = (struct dfu_status *)req->buf; in handle_getstatus() 184 struct f_dfu *f_dfu = req->context; in handle_getstatus() 217 static int handle_getstate(struct usb_request *req) in handle_getstate() argument [all …]
|
| H A D | f_sdp.c | 111 struct usb_request *req; member 239 static void sdp_rx_command_complete(struct usb_ep *ep, struct usb_request *req) in sdp_rx_command_complete() argument 241 struct f_sdp *sdp = req->context; in sdp_rx_command_complete() 242 int status = req->status; in sdp_rx_command_complete() 243 u8 *data = req->buf; in sdp_rx_command_complete() 256 struct sdp_command *cmd = req->buf + 1; in sdp_rx_command_complete() 324 static void sdp_rx_data_complete(struct usb_ep *ep, struct usb_request *req) in sdp_rx_data_complete() argument 326 struct f_sdp *sdp = req->context; in sdp_rx_data_complete() 327 int status = req->status; in sdp_rx_data_complete() 328 u8 *data = req->buf; in sdp_rx_data_complete() [all …]
|
| H A D | at91_udc.c | 71 static void done(struct at91_ep *ep, struct at91_request *req, int status) in done() argument 76 list_del_init(&req->queue); in done() 77 if (req->req.status == -EINPROGRESS) in done() 78 req->req.status = status; in done() 80 status = req->req.status; in done() 82 VDBG("%s done %p, status %d\n", ep->ep.name, req, status); in done() 86 req->req.complete(&ep->ep, &req->req); in done() 122 static int read_fifo (struct at91_ep *ep, struct at91_request *req) in read_fifo() argument 130 buf = req->req.buf + req->req.actual; in read_fifo() 131 bufferspace = req->req.length - req->req.actual; in read_fifo() [all …]
|
| H A D | f_thor.c | 519 struct usb_request *req; in alloc_ep_req() local 521 req = usb_ep_alloc_request(ep, 0); in alloc_ep_req() 522 if (!req) in alloc_ep_req() 523 return req; in alloc_ep_req() 525 req->length = length; in alloc_ep_req() 526 req->buf = memalign(CONFIG_SYS_CACHELINE_SIZE, length); in alloc_ep_req() 527 if (!req->buf) { in alloc_ep_req() 528 usb_ep_free_request(ep, req); in alloc_ep_req() 529 req = NULL; in alloc_ep_req() 532 return req; in alloc_ep_req() [all …]
|
| H A D | ether.c | 106 struct usb_request *req; /* for control responses */ member 1127 static void eth_status_complete(struct usb_ep *ep, struct usb_request *req) in eth_status_complete() argument 1129 struct usb_cdc_notification *event = req->buf; in eth_status_complete() 1130 int value = req->status; in eth_status_complete() 1136 __le32 *data = req->buf + sizeof *event; in eth_status_complete() 1147 req->length = STATUS_BYTECOUNT; in eth_status_complete() 1148 value = usb_ep_queue(ep, req, GFP_ATOMIC); in eth_status_complete() 1161 req->context = NULL; in eth_status_complete() 1166 struct usb_request *req = dev->stat_req; in issue_start_status() local 1187 event = req->buf; in issue_start_status() [all …]
|
| H A D | ci_udc.c | 89 struct usb_request *req, gfp_t gfp_flags); 90 static int ci_ep_dequeue(struct usb_ep *ep, struct usb_request *req); 270 return &controller.ep0_req->req; in ci_ep_alloc_request() 281 return &ci_req->req; in ci_ep_alloc_request() 284 static void ci_ep_free_request(struct usb_ep *ep, struct usb_request *req) in ci_ep_free_request() argument 287 struct ci_req *ci_req = container_of(req, struct ci_req, req); in ci_ep_free_request() 359 struct usb_request *req = &ci_req->req; in ci_bounce() local 360 unsigned long addr = (unsigned long)req->buf; in ci_bounce() 369 if (req->length & (ARCH_DMA_MINALIGN - 1)) in ci_bounce() 373 ci_req->hw_len = req->length; in ci_bounce() [all …]
|
| H A D | dwc2_udc_otg.c | 107 static int write_fifo_ep0(struct dwc2_ep *ep, struct dwc2_request *req); 108 static void done(struct dwc2_ep *ep, struct dwc2_request *req, int status); 362 static void done(struct dwc2_ep *ep, struct dwc2_request *req, int status) in done() argument 367 __func__, ep->ep.name, ep, &req->req, stopped); in done() 369 list_del_init(&req->queue); in done() 371 if (likely(req->req.status == -EINPROGRESS)) in done() 372 req->req.status = status; in done() 374 status = req->req.status; in done() 378 ep->ep.name, &req->req, status, in done() 379 req->req.actual, req->req.length); in done() [all …]
|
| /rk3399_rockchip-uboot/fs/ubifs/ |
| H A D | budget.c | 371 const struct ubifs_budget_req *req) in calc_idx_growth() argument 375 znodes = req->new_ino + (req->new_page << UBIFS_BLOCKS_PER_PAGE_SHIFT) + in calc_idx_growth() 376 req->new_dent; in calc_idx_growth() 387 const struct ubifs_budget_req *req) in calc_data_growth() argument 391 data_growth = req->new_ino ? c->bi.inode_budget : 0; in calc_data_growth() 392 if (req->new_page) in calc_data_growth() 394 if (req->new_dent) in calc_data_growth() 396 data_growth += req->new_ino_d; in calc_data_growth() 407 const struct ubifs_budget_req *req) in calc_dd_growth() argument 411 dd_growth = req->dirtied_page ? c->bi.page_budget : 0; in calc_dd_growth() [all …]
|
| /rk3399_rockchip-uboot/drivers/misc/ |
| H A D | atsha204a-i2c.c | 208 u8 req[4]; in atsha204a_wakeup() local 217 memset(req, 0, 4); in atsha204a_wakeup() 218 res = atsha204a_send(dev, req, 4); in atsha204a_wakeup() 248 u8 req = ATSHA204A_FUNC_IDLE; in atsha204a_idle() local 250 res = atsha204a_send(dev, &req, 1); in atsha204a_idle() 259 u8 req = ATSHA204A_FUNC_IDLE; in atsha204a_sleep() local 261 res = atsha204a_send(dev, &req, 1); in atsha204a_sleep() 267 static int atsha204a_transaction(struct udevice *dev, struct atsha204a_req *req, in atsha204a_transaction() argument 272 res = atsha204a_send(dev, (u8 *) req, req->length + 1); in atsha204a_transaction() 298 static void atsha204a_req_crc32(struct atsha204a_req *req) in atsha204a_req_crc32() argument [all …]
|
| H A D | cros_ec_sandbox.c | 296 const struct ec_params_hello *req = req_data; in process_cmd() local 299 resp->out_data = req->in_data + 0x01020304; in process_cmd() 314 const struct ec_params_vbnvcontext *req = req_data; in process_cmd() local 317 switch (req->op) { in process_cmd() 330 req->op); in process_cmd() 336 const struct ec_params_reboot_ec *req = req_data; in process_cmd() local 338 printf("Request reboot type %d\n", req->cmd); in process_cmd() 339 switch (req->cmd) { in process_cmd() 366 const struct ec_params_vboot_hash *req = req_data; in process_cmd() local 373 switch (req->cmd) { in process_cmd() [all …]
|
| /rk3399_rockchip-uboot/arch/x86/cpu/ |
| H A D | mtrr.c | 49 struct mtrr_request *req = gd->arch.mtrr_req; in mtrr_commit() local 58 for (i = 0; i < gd->arch.mtrr_req_count; i++, req++) { in mtrr_commit() 59 mask = ~(req->size - 1); in mtrr_commit() 61 wrmsrl(MTRR_PHYS_BASE_MSR(i), req->start | req->type); in mtrr_commit() 75 struct mtrr_request *req; in mtrr_add_request() local 83 req = &gd->arch.mtrr_req[gd->arch.mtrr_req_count++]; in mtrr_add_request() 84 req->type = type; in mtrr_add_request() 85 req->start = start; in mtrr_add_request() 86 req->size = size; in mtrr_add_request() 88 req->type, req->start, req->size); in mtrr_add_request() [all …]
|
| /rk3399_rockchip-uboot/drivers/clk/tegra/ |
| H A D | tegra186-clk.c | 15 struct mrq_clk_request req; in tegra186_clk_get_rate() local 22 req.cmd_and_id = (CMD_CLK_GET_RATE << 24) | clk->id; in tegra186_clk_get_rate() 24 ret = misc_call(clk->dev->parent, MRQ_CLK, &req, sizeof(req), &resp, in tegra186_clk_get_rate() 34 struct mrq_clk_request req; in tegra186_clk_set_rate() local 41 req.cmd_and_id = (CMD_CLK_SET_RATE << 24) | clk->id; in tegra186_clk_set_rate() 42 req.clk_set_rate.rate = rate; in tegra186_clk_set_rate() 44 ret = misc_call(clk->dev->parent, MRQ_CLK, &req, sizeof(req), &resp, in tegra186_clk_set_rate() 55 struct mrq_clk_request req; in tegra186_clk_en_dis() local 59 req.cmd_and_id = (cmd << 24) | clk->id; in tegra186_clk_en_dis() 61 ret = misc_call(clk->dev->parent, MRQ_CLK, &req, sizeof(req), &resp, in tegra186_clk_en_dis()
|
| /rk3399_rockchip-uboot/include/linux/mtd/ |
| H A D | nand.h | 208 struct nand_page_io_req req; member 609 loff_t offs, struct mtd_oob_ops *req, in nanddev_io_iter_init() argument 614 iter->req.mode = req->mode; in nanddev_io_iter_init() 615 iter->req.dataoffs = nanddev_offs_to_pos(nand, offs, &iter->req.pos); in nanddev_io_iter_init() 616 iter->req.ooboffs = req->ooboffs; in nanddev_io_iter_init() 617 iter->oobbytes_per_page = mtd_oobavail(mtd, req); in nanddev_io_iter_init() 618 iter->dataleft = req->len; in nanddev_io_iter_init() 619 iter->oobleft = req->ooblen; in nanddev_io_iter_init() 620 iter->req.databuf.in = req->datbuf; in nanddev_io_iter_init() 621 iter->req.datalen = min_t(unsigned int, in nanddev_io_iter_init() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-bcm283x/include/mach/ |
| H A D | mbox.h | 98 (_t_)->tag_hdr.val_len = sizeof((_t_)->body.req); \ 132 } req; member 145 } req; member 170 } req; member 199 } req; member 218 } req; member 244 } req; member 259 } req; member 273 } req; member 287 } req; member [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-bcm283x/ |
| H A D | msg.c | 52 msg_pwr->set_power_state.body.req.device_id = module; in bcm2835_power_on_module() 53 msg_pwr->set_power_state.body.req.state = in bcm2835_power_on_module() 79 msg_clk->get_clock_rate.body.req.clock_id = BCM2835_MBOX_CLOCK_ID_EMMC; in bcm2835_get_mmc_clock() 118 msg_setup->physical_w_h.body.req.width = *widthp; in bcm2835_set_video_params() 119 msg_setup->physical_w_h.body.req.height = *heightp; in bcm2835_set_video_params() 121 msg_setup->virtual_w_h.body.req.width = *widthp; in bcm2835_set_video_params() 122 msg_setup->virtual_w_h.body.req.height = *heightp; in bcm2835_set_video_params() 124 msg_setup->depth.body.req.bpp = 32; in bcm2835_set_video_params() 126 msg_setup->pixel_order.body.req.order = pixel_order; in bcm2835_set_video_params() 128 msg_setup->alpha_mode.body.req.alpha = alpha_mode; in bcm2835_set_video_params() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/cpu/armv8/ |
| H A D | sha1_ce_core.S | 17 k0 .req v0 18 k1 .req v1 19 k2 .req v2 20 k3 .req v3 22 t0 .req v4 23 t1 .req v5 25 dga .req q6 26 dgav .req v6 27 dgb .req s7 28 dgbv .req v7 [all …]
|
| H A D | sha256_ce_core.S | 17 dga .req q20 18 dgav .req v20 19 dgb .req q21 20 dgbv .req v21 22 t0 .req v22 23 t1 .req v23 25 dg0q .req q24 26 dg0v .req v24 27 dg1q .req q25 28 dg1v .req v25 [all …]
|
| /rk3399_rockchip-uboot/drivers/power/domain/ |
| H A D | tegra186-power-domain.c | 19 struct mrq_pg_update_state_request req; in tegra186_power_domain_common() local 23 req.partition_id = power_domain->id; in tegra186_power_domain_common() 24 req.logic_state = UPDATE | on_state; in tegra186_power_domain_common() 25 req.sram_state = UPDATE | on_state; in tegra186_power_domain_common() 31 req.clock_state = UPDATE; in tegra186_power_domain_common() 33 ret = misc_call(power_domain->dev->parent, MRQ_PG_UPDATE_STATE, &req, in tegra186_power_domain_common() 34 sizeof(req), NULL, 0); in tegra186_power_domain_common()
|
| /rk3399_rockchip-uboot/drivers/usb/musb-new/ |
| H A D | musb_gadget_ep0.c | 178 static void musb_g_ep0_giveback(struct musb *musb, struct usb_request *req) in musb_g_ep0_giveback() argument 180 musb_g_giveback(&musb->endpoints[0].ep_in, req, 0); in musb_g_ep0_giveback() 471 struct usb_request *req; in ep0_rxstate() local 475 req = &request->request; in ep0_rxstate() 480 if (req) { in ep0_rxstate() 481 void *buf = req->buf + req->actual; in ep0_rxstate() 482 unsigned len = req->length - req->actual; in ep0_rxstate() 487 req->status = -EOVERFLOW; in ep0_rxstate() 491 req->actual += count; in ep0_rxstate() 493 if (count < 64 || req->actual == req->length) { in ep0_rxstate() [all …]
|
| /rk3399_rockchip-uboot/drivers/mtd/nand/spi/ |
| H A D | core.c | 34 const struct nand_page_io_req *req, in spinand_cache_op_adjust_colum() argument 45 *column |= req->pos.plane << shift; in spinand_cache_op_adjust_colum() 229 const struct nand_page_io_req *req) in spinand_load_page_op() argument 232 unsigned int row = nanddev_pos_to_row(nand, &req->pos); in spinand_load_page_op() 239 const struct nand_page_io_req *req) in spinand_read_from_cache_op() argument 244 struct nand_page_io_req adjreq = *req; in spinand_read_from_cache_op() 250 if (req->datalen) { in spinand_read_from_cache_op() 258 if (spinand->support_cont_read && req->datalen) { in spinand_read_from_cache_op() 259 adjreq.datalen = req->datalen; in spinand_read_from_cache_op() 261 adjreq.databuf.in = req->databuf.in; in spinand_read_from_cache_op() [all …]
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | ubi.c | 122 const struct ubi_mkvol_req *req) in verify_mkvol_req() argument 126 if (req->bytes < 0 || req->alignment < 0 || req->vol_type < 0 || in verify_mkvol_req() 127 req->name_len < 0) in verify_mkvol_req() 130 if ((req->vol_id < 0 || req->vol_id >= ubi->vtbl_slots) && in verify_mkvol_req() 131 req->vol_id != UBI_VOL_NUM_AUTO) in verify_mkvol_req() 134 if (req->alignment == 0) in verify_mkvol_req() 137 if (req->bytes == 0) { in verify_mkvol_req() 143 if (req->vol_type != UBI_DYNAMIC_VOLUME && in verify_mkvol_req() 144 req->vol_type != UBI_STATIC_VOLUME) in verify_mkvol_req() 147 if (req->alignment > ubi->leb_size) in verify_mkvol_req() [all …]
|