| /u-boot/fs/ubifs/ |
| A D | budget.c | 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() 392 if (req->new_page) in calc_data_growth() 394 if (req->new_dent) in calc_data_growth() 413 if (req->dirtied_ino) in calc_dd_growth() 415 if (req->mod_dent) in calc_dd_growth() 486 if (req->fast) { in ubifs_budget_space() 542 req->data_growth = calc_data_growth(c, req); in ubifs_release_budget() 543 req->dd_growth = calc_dd_growth(c, req); in ubifs_release_budget() 544 req->idx_growth = calc_idx_growth(c, req); in ubifs_release_budget() [all …]
|
| /u-boot/drivers/misc/ |
| A D | atsha204a-i2c.c | 97 u8 req[4]; in atsha204a_wakeup() local 111 memset(req, 0, 4); in atsha204a_wakeup() 162 res = atsha204a_send(dev, (u8 *) req, req->length + 1); in atsha204a_transaction() 190 u8 *p = (u8 *) req; in atsha204a_req_crc32() 208 req.length = 7; in atsha204a_read() 213 req.param1 |= 0x80; in atsha204a_read() 252 req.length = 7; in atsha204a_get_random() 255 req.param1 = 1; in atsha204a_get_random() 256 req.param2 = 0; in atsha204a_get_random() 259 req.data[0] = 0x27; in atsha204a_get_random() [all …]
|
| A D | cros_ec_sandbox.c | 344 switch (req->op) { in process_cmd() 357 req->op); in process_cmd() 366 switch (req->cmd) { in process_cmd() 410 switch (req->cmd) { in process_cmd() 432 req->cmd); in process_cmd() 443 printf("mask=%#x, flags=%#x\n", req->mask, req->flags); in process_cmd() 444 if (req->flags == expect || req->flags == 0) { in process_cmd() 461 switch (req->region) { in process_cmd() 483 req->size); in process_cmd() 490 memcpy(ec->flash_data + req->offset, req + 1, req->size); in process_cmd() [all …]
|
| /u-boot/drivers/firmware/ |
| A D | ti_sci.c | 353 (u32 *)&req, sizeof(req), sizeof(*resp)); in cmd_set_board_config_using_msg() 506 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_set_device_state() 553 (u32 *)&req, sizeof(req), 0); in ti_sci_set_device_state_no_wait() 601 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_get_device_state() 884 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_set_device_resets() 946 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_set_clock_state() 996 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_get_clock_state() 1206 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_clk_set_parent() 1251 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_clk_get_parent() 1298 (u32 *)&req, sizeof(req), sizeof(*resp)); in ti_sci_cmd_clk_get_num_parents() [all …]
|
| /u-boot/drivers/usb/gadget/ |
| A D | atmel_usba_udc.c | 33 transaction_len = req->req.length - req->req.actual; in next_fifo_transaction() 46 memcpy(ep->fifo, req->req.buf + req->req.actual, transaction_len); in next_fifo_transaction() 54 ep->ep.name, req, req->req.length, req->using_dma); in submit_request() 56 req->req.actual = 0; in submit_request() 115 if (req->req.actual + bytecount >= req->req.length) { in receive_data() 117 bytecount = req->req.length - req->req.actual; in receive_data() 120 memcpy(req->req.buf + req->req.actual, ep->fifo, bytecount); in receive_data() 131 req->req.complete(&ep->ep, &req->req); in receive_data() 152 ep->ep.name, req, req->req.status, req->req.actual); in request_complete() 154 req->req.complete(&ep->ep, &req->req); in request_complete() [all …]
|
| A D | dwc2_udc_otg_xfer_dma.c | 103 buf = req->req.buf + req->req.actual; in setdma_rx() 104 length = min_t(u32, req->req.length - req->req.actual, in setdma_rx() 145 buf = req->req.buf + req->req.actual; in setdma_tx() 146 length = req->req.length - req->req.actual; in setdma_tx() 239 req->req.actual += min(xfer_size, req->req.length - req->req.actual); in complete_rx() 297 req->req.actual += min(xfer_size, req->req.length - req->req.actual); in complete_tx() 302 __func__, ep_num, req->req.actual, req->req.length, in complete_tx() 335 if (req->req.actual == req->req.length) in complete_tx() 738 req->req.length - req->req.actual - count, req); in write_fifo_ep0() 826 __func__, req, req->req.length, req->req.actual); in dwc2_ep0_read() [all …]
|
| A D | f_dfu.c | 252 struct usb_request *req = cdev->req; in handle_dnload() local 268 struct usb_request *req) in state_app_idle() argument 318 struct usb_request *req) in state_dfu_idle() argument 386 struct usb_request *req) in state_dfu_dnload_sync() argument 429 struct usb_request *req) in state_dfu_dnload_idle() argument 520 struct usb_request *req) in state_dfu_upload_idle() argument 561 struct usb_request *req) in state_dfu_error() argument 605 struct usb_request *req = f->config->cdev->req; in dfu_handle() local 634 req->zero = value < len; in dfu_handle() 638 req->status = 0; in dfu_handle() [all …]
|
| A D | f_fastboot.c | 299 struct usb_request *req; in fastboot_start_ep() local 302 if (!req) in fastboot_start_ep() 307 if (!req->buf) { in fastboot_start_ep() 312 memset(req->buf, 0, req->length); in fastboot_start_ep() 313 return req; in fastboot_start_ep() 459 if (req->status != 0) { in rx_handler_dl_image() 484 req->actual = 0; in rx_handler_dl_image() 505 if (req->status == 0) in do_acmd_complete() 515 if (req->status != 0 || req->length == 0) in rx_handler_command() 518 if (req->actual < req->length) { in rx_handler_command() [all …]
|
| A D | f_rockusb.c | 229 if (!req) in rockusb_start_ep() 234 if (!req->buf) { in rockusb_start_ep() 238 memset(req->buf, 0, req->length); in rockusb_start_ep() 240 return req; in rockusb_start_ep() 438 if (req->status) in tx_handler_ul_image() 440 ep->name, req->actual, req->length); in tx_handler_ul_image() 545 req->actual = 0; in rx_handler_dl_image() 900 if (req->status || req->length == 0) in rx_handler_command() 905 printcbw(req->buf); in rx_handler_command() 919 if (req->actual < req->length) { in rx_handler_command() [all …]
|
| A D | at91_udc.c | 80 req->req.status = status; in done() 82 status = req->req.status; in done() 88 req->req.complete(&ep->ep, &req->req); in done() 132 buf = req->req.buf + req->req.actual; in read_fifo() 133 bufferspace = req->req.length - req->req.actual; in read_fifo() 168 req->req.actual += count; in read_fifo() 230 buf = req->req.buf + req->req.actual; in write_fifo() 232 total = req->req.length - req->req.actual; in write_fifo() 258 req->req.actual += count; in write_fifo() 406 return &req->req; in at91_ep_alloc_request() [all …]
|
| A D | ether.c | 1190 if (req->status || req->actual != req->length) in eth_setup_complete() 1192 req->status, req->actual, req->length); in eth_setup_complete() 1199 if (req->status || req->actual != req->length) in rndis_response_complete() 1201 req->status, req->actual, req->length); in rndis_response_complete() 1232 struct usb_request *req = dev->req; in eth_setup() local 1493 if (!req) in rx_submit() 1530 int length = rndis_rm_hdr(req->buf, req->actual); in rx_complete() 1693 req->zero = 1; 1802 if (req->status || req->actual != req->length) in rndis_control_ack_complete() 1804 req->status, req->actual, req->length); in rndis_control_ack_complete() [all …]
|
| A D | f_sdp.c | 464 status, req->actual, req->length); in sdp_tx_complete() 470 struct usb_request *req = f->config->cdev->req; in sdp_setup() local 517 req->status = 0; in sdp_setup() 577 if (!req) in alloc_ep_req() 578 return req; in alloc_ep_req() 582 if (!req->buf) { in alloc_ep_req() 584 req = NULL; in alloc_ep_req() 587 return req; in alloc_ep_req() 606 if (!req) in sdp_start_ep() 609 memset(req->buf, 0, req->length); in sdp_start_ep() [all …]
|
| A D | f_thor.c | 526 if (!req) in alloc_ep_req() 527 return req; in alloc_ep_req() 533 req = NULL; in alloc_ep_req() 536 return req; in alloc_ep_req() 625 status, req->actual, req->length); in thor_rx_tx_complete() 630 if (req->status || req->actual != req->length) in thor_setup_complete() 632 req->status, req->actual, req->length); in thor_setup_complete() 639 struct usb_request *req = dev->req; in thor_func_setup() local 924 if (!req) { in thor_eps_setup() 929 memset(req->buf, 0, req->length); in thor_eps_setup() [all …]
|
| /u-boot/drivers/clk/tegra/ |
| 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()
|
| /u-boot/drivers/net/bnxt/ |
| A D | bnxt.c | 185 memset(req, 0, len); in hwrm_init() 186 req->req_type = cmd; in hwrm_init() 233 if (resp->seq_id == req->seq_id && resp->req_type == req->req_type && in wait_resp() 582 req->enables = enables; in bnxt_hwrm_assign_resources() 749 req->flags = flags; in bnxt_hwrm_cfa_l2_filter_alloc() 750 req->enables = enables; in bnxt_hwrm_cfa_l2_filter_alloc() 819 req->mask = mask; in bnxt_hwrm_set_rx_mask() 1064 req->cr = bp->cq_ring_id; in bnxt_hwrm_ring_alloc_grp() 1065 req->rr = bp->rx_ring_id; in bnxt_hwrm_ring_alloc_grp() 1085 req->ring_id = ring_id; in bnxt_hwrm_ring_free() [all …]
|
| /u-boot/arch/arm/mach-bcm283x/include/mach/ |
| A D | mbox.h | 132 } req; member 145 } req; member 170 } req; member 199 } req; member 218 } req; member 247 } req; member 262 } req; member 278 } req; member 292 } req; member 306 } req; member [all …]
|
| /u-boot/include/linux/mtd/ |
| A D | nand.h | 197 struct nand_page_io_req req; member 618 iter->req.mode = req->mode; in nanddev_io_iter_init() 619 iter->req.dataoffs = nanddev_offs_to_pos(nand, offs, &iter->req.pos); in nanddev_io_iter_init() 620 iter->req.ooboffs = req->ooboffs; in nanddev_io_iter_init() 622 iter->dataleft = req->len; in nanddev_io_iter_init() 624 iter->req.databuf.in = req->datbuf; in nanddev_io_iter_init() 628 iter->req.oobbuf.in = req->oobbuf; in nanddev_io_iter_init() 646 iter->req.databuf.in += iter->req.datalen; in nanddev_io_iter_next_page() 648 iter->req.oobbuf.in += iter->req.ooblen; in nanddev_io_iter_next_page() 649 iter->req.dataoffs = 0; in nanddev_io_iter_next_page() [all …]
|
| /u-boot/arch/arm/mach-bcm283x/ |
| A D | msg.c | 65 msg_pwr->set_power_state.body.req.state = in bcm2835_power_on_module() 169 msg_setup->physical_w_h.body.req.width = *widthp; in bcm2835_set_video_params() 172 msg_setup->virtual_w_h.body.req.width = *widthp; in bcm2835_set_video_params() 173 msg_setup->virtual_w_h.body.req.height = *heightp; in bcm2835_set_video_params() 175 msg_setup->depth.body.req.bpp = 32; in bcm2835_set_video_params() 181 msg_setup->virtual_offset.body.req.x = 0; in bcm2835_set_video_params() 182 msg_setup->virtual_offset.body.req.y = 0; in bcm2835_set_video_params() 184 msg_setup->overscan.body.req.top = 0; in bcm2835_set_video_params() 185 msg_setup->overscan.body.req.bottom = 0; in bcm2835_set_video_params() 186 msg_setup->overscan.body.req.left = 0; in bcm2835_set_video_params() [all …]
|
| /u-boot/arch/arm/cpu/armv8/ |
| 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 …]
|
| /u-boot/drivers/power/domain/ |
| A D | tegra186-power-domain.c | 21 struct mrq_pg_update_state_request req; in tegra186_power_domain_common() local 25 req.partition_id = power_domain->id; in tegra186_power_domain_common() 26 req.logic_state = UPDATE | on_state; in tegra186_power_domain_common() 27 req.sram_state = UPDATE | on_state; in tegra186_power_domain_common() 33 req.clock_state = UPDATE; in tegra186_power_domain_common() 35 ret = misc_call(power_domain->dev->parent, MRQ_PG_UPDATE_STATE, &req, in tegra186_power_domain_common() 36 sizeof(req), NULL, 0); in tegra186_power_domain_common()
|
| /u-boot/drivers/mtd/nand/raw/atmel/ |
| A D | pmecc.c | 270 if (req->pagesize <= 0 || req->oobsize <= 0 || req->ecc.bytes <= 0) in atmel_pmecc_prepare_user_req() 274 req->ecc.ooboffset + req->ecc.bytes > req->oobsize) in atmel_pmecc_prepare_user_req() 281 if (req->pagesize > 512) in atmel_pmecc_prepare_user_req() 287 if (req->ecc.sectorsize != 512 && req->ecc.sectorsize != 1024) in atmel_pmecc_prepare_user_req() 290 if (req->pagesize % req->ecc.sectorsize) in atmel_pmecc_prepare_user_req() 293 req->ecc.nsectors = req->pagesize / req->ecc.sectorsize; in atmel_pmecc_prepare_user_req() 321 req->ecc.bytes = eccbytes; in atmel_pmecc_prepare_user_req() 324 if (req->ecc.ooboffset < 0) in atmel_pmecc_prepare_user_req() 325 req->ecc.ooboffset = req->oobsize - eccbytes; in atmel_pmecc_prepare_user_req() 378 user->eccbytes = req->ecc.bytes / req->ecc.nsectors; in atmel_pmecc_create_user() [all …]
|
| /u-boot/drivers/usb/musb-new/ |
| A D | musb_gadget_ep0.c | 483 if (req) { in ep0_rxstate() 484 void *buf = req->buf + req->actual; in ep0_rxstate() 485 unsigned len = req->length - req->actual; in ep0_rxstate() 496 if (count < 64 || req->actual == req->length) { in ep0_rxstate() 500 req = NULL; in ep0_rxstate() 508 if (req) { in ep0_rxstate() 534 if (!req) { in ep0_txstate() 588 musb_read_fifo(&musb->endpoints[0], sizeof *req, (u8 *)req); in musb_read_setup() 595 req->bRequest, in musb_read_setup() 756 if (req) in musb_g_ep0_irq() [all …]
|
| /u-boot/arch/x86/cpu/ |
| A D | mtrr.c | 144 struct mtrr_request *req = gd->arch.mtrr_req; in mtrr_commit() local 157 qsort(req, gd->arch.mtrr_req_count, sizeof(*req), h_comp_mtrr); in mtrr_commit() 158 for (i = 0; i < gd->arch.mtrr_req_count; i++, req++) in mtrr_commit() 159 mtrr_set_next_var(req->type, req->start, req->size); in mtrr_commit() 176 struct mtrr_request *req; in mtrr_add_request() local 189 req->type = type; in mtrr_add_request() 190 req->start = start; in mtrr_add_request() 191 req->size = size; in mtrr_add_request() 193 req->type, req->start, req->size); in mtrr_add_request() 194 mask = ~(req->size - 1); in mtrr_add_request() [all …]
|
| /u-boot/drivers/scsi/ |
| A D | scsi_emul.c | 21 const struct scsi_cmd *req, int len) in sb_scsi_emul_command() argument 26 log_debug("emul %x\n", *req->cmd); in sb_scsi_emul_command() 27 switch (*req->cmd) { in sb_scsi_emul_command() 31 info->alloc_len = req->cmd[4]; in sb_scsi_emul_command() 57 const struct scsi_read10_req *read_req = (void *)req; in sb_scsi_emul_command() 66 const struct scsi_write10_req *write_req = (void *)req; in sb_scsi_emul_command() 75 debug("Command not supported: %x\n", req->cmd[0]); in sb_scsi_emul_command() 80 log_debug(" - done %x: ret=%d\n", *req->cmd, ret); in sb_scsi_emul_command()
|
| /u-boot/drivers/xen/ |
| A D | xenbus.c | 212 len += req[r].len; in xb_write() 239 cur_req = req; in xb_write() 307 repmsg = xenbus_msg_reply(XS_DIRECTORY, xbt, req, ARRAY_SIZE(req)); in xenbus_ls() 336 rep = xenbus_msg_reply(XS_READ, xbt, req, ARRAY_SIZE(req)); in xenbus_read() 353 struct write_req req[] = { in xenbus_write() local 360 rep = xenbus_msg_reply(XS_WRITE, xbt, req, ARRAY_SIZE(req)); in xenbus_write() 374 rep = xenbus_msg_reply(XS_RM, xbt, req, ARRAY_SIZE(req)); in xenbus_rm() 388 rep = xenbus_msg_reply(XS_GET_PERMS, xbt, req, ARRAY_SIZE(req)); in xenbus_get_perms() 416 rep = xenbus_msg_reply(XS_SET_PERMS, xbt, req, ARRAY_SIZE(req)); in xenbus_set_perms() 445 struct write_req req; in xenbus_transaction_end() local [all …]
|