Home
last modified time | relevance | path

Searched refs:total_len (Results 1 – 25 of 30) sorted by relevance

12

/openbmc/obmc-console/test/
H A Dringbuffer-test-utils.c41 size_t total_len; in ringbuffer_poll_append_all() local
54 total_len = 0; in ringbuffer_poll_append_all()
56 len = ringbuffer_dequeue_peek(ctx->rbc, total_len, &buf); in ringbuffer_poll_append_all()
61 if (ctx->force_only && total_len + len > force_len) { in ringbuffer_poll_append_all()
62 len = force_len - total_len; in ringbuffer_poll_append_all()
68 total_len += len; in ringbuffer_poll_append_all()
70 if (ctx->force_only && total_len >= force_len) { in ringbuffer_poll_append_all()
74 ringbuffer_dequeue_commit(ctx->rbc, total_len); in ringbuffer_poll_append_all()
/openbmc/qemu/linux-user/
H A Dgen-vdso.c60 long total_len; in main() local
119 total_len = ftell(inf); in main()
120 if (total_len < 0) { in main()
127 if (total_len < EI_NIDENT) { in main()
132 buf = malloc(total_len); in main()
138 if (fread(buf, 1, total_len, inf) != total_len) { in main()
184 elf32_process(outf, buf, total_len, need_bswap); in main()
187 elf64_process(outf, buf, total_len, need_bswap); in main()
203 for (long i = 0; i < total_len; ++i) { in main()
/openbmc/libcper/generator/sections/
H A Dgen-section-arm.c44 size_t total_len = 40 + (error_structure_num * ARM_ERROR_INFO_SIZE); in generate_section_arm() local
46 total_len += context_structure_lengths[i]; in generate_section_arm()
48 total_len += vendor_info_len; in generate_section_arm()
49 UINT8 *section = generate_random_bytes(total_len); in generate_section_arm()
56 *section_length = total_len; in generate_section_arm()
97 return total_len; in generate_section_arm()
H A Dgen-section-ia32x64.c41 size_t total_len = in generate_section_ia32x64() local
44 total_len += context_structure_lengths[i]; in generate_section_ia32x64()
46 UINT8 *section = generate_random_bytes(total_len); in generate_section_ia32x64()
81 return total_len; in generate_section_ia32x64()
/openbmc/obmc-console/
H A Dtty-handler.c90 size_t total_len; in tty_drain_queue() local
103 total_len = 0; in tty_drain_queue()
106 len = ringbuffer_dequeue_peek(th->rbc, total_len, &buf); in tty_drain_queue()
112 if (force_len && force_len < total_len + len) { in tty_drain_queue()
113 len = force_len - total_len; in tty_drain_queue()
130 total_len += wlen; in tty_drain_queue()
132 if (force_len && total_len >= force_len) { in tty_drain_queue()
137 ringbuffer_dequeue_commit(th->rbc, total_len); in tty_drain_queue()
H A Dsocket-handler.c179 size_t total_len; in client_drain_queue() local
182 total_len = 0; in client_drain_queue()
192 len = ringbuffer_dequeue_peek(client->rbc, total_len, &buf); in client_drain_queue()
202 total_len += wlen; in client_drain_queue()
204 if (force_len && total_len >= force_len) { in client_drain_queue()
213 if (force_len && total_len < force_len) { in client_drain_queue()
217 ringbuffer_dequeue_commit(client->rbc, total_len); in client_drain_queue()
/openbmc/openbmc/meta-security/meta-tpm/recipes-tpm1/openssl-tpm-engine/files/
H A Dopenssl11_build_fix.patch13 int total_len, len, ret;
21 total_len = 0;
29 total_len += len;
H A D0003-tpm-openssl-tpm-engine-parse-an-encrypted-tpm-SRK-pa.patch40 + int total_len, len, ret;
45 + total_len = 0;
52 + total_len += len;
58 + total_len += len;
60 + *out_len = total_len;
/openbmc/u-boot/fs/btrfs/
H A Ddir-item.c38 u32 total_len, cur = 0, this_len; in btrfs_match_dir_item_name() local
43 total_len = btrfs_path_item_size(path); in btrfs_match_dir_item_name()
45 while (cur < total_len) { in btrfs_match_dir_item_name()
50 if (verify_dir_item(item, cur, total_len)) in btrfs_match_dir_item_name()
/openbmc/libcper/generator/
H A Dcper-generate.c71 size_t total_len = sizeof(EFI_COMMON_ERROR_RECORD_HEADER); in generate_cper_record() local
73 total_len += section_lengths[i]; in generate_cper_record()
75 total_len += num_sections * sizeof(EFI_ERROR_SECTION_DESCRIPTOR); in generate_cper_record()
76 header->RecordLength = (UINT32)total_len; in generate_cper_record()
/openbmc/u-boot/drivers/crypto/
H A Daspeed_hace.c209 int total_len; in hw_sha_update() local
222 total_len = size + ctx->bufcnt - remainder; in hw_sha_update()
227 if (total_len == ctx->bufcnt) in hw_sha_update()
232 if (total_len != ctx->bufcnt) { in hw_sha_update()
234 sg[i].len = (total_len - ctx->bufcnt) | HACE_SG_LAST; in hw_sha_update()
237 rc = hash_trigger(ctx, total_len); in hw_sha_update()
239 memcpy(ctx->buffer, buf + (total_len - ctx->bufcnt), remainder); in hw_sha_update()
/openbmc/qemu/hw/net/
H A Dspapr_llan.c689 unsigned total_len; in h_send_logical_lan() local
711 total_len = 0; in h_send_logical_lan()
717 total_len += VLAN_BD_LEN(bufs[i]); in h_send_logical_lan()
721 trace_spapr_vlan_h_send_logical_lan_total(nbufs, total_len); in h_send_logical_lan()
723 if (total_len == 0) { in h_send_logical_lan()
727 if (total_len > MAX_PACKET_SIZE) { in h_send_logical_lan()
732 lbuf = g_malloc(total_len); in h_send_logical_lan()
744 qemu_send_packet(qemu_get_queue(dev->nic), lbuf, total_len); in h_send_logical_lan()
H A Dne2000.c175 unsigned int total_len, next, avail, len, index, mcast_idx; in ne2000_receive() local
218 total_len = size + 4; in ne2000_receive()
220 next = index + ((total_len + 4 + 255) & ~0xff); in ne2000_receive()
231 p[2] = total_len; in ne2000_receive()
232 p[3] = total_len >> 8; in ne2000_receive()
/openbmc/u-boot/drivers/nvme/
H A Dnvme.c69 int total_len, u64 dma_addr) in nvme_setup_prps() argument
74 int length = total_len; in nvme_setup_prps()
680 u64 total_len = blkcnt << desc->log2blksz; in nvme_blk_rw() local
681 u64 temp_len = total_len; in nvme_blk_rw()
689 (unsigned long)buffer + total_len); in nvme_blk_rw()
727 (unsigned long)buffer + total_len); in nvme_blk_rw()
729 return (total_len - temp_len) >> desc->log2blksz; in nvme_blk_rw()
/openbmc/u-boot/drivers/net/
H A Dne2000_base.c244 dp83902a_send(u8 *data, int total_len, u32 key) in dp83902a_send() argument
255 len = pkt_len = total_len; in dp83902a_send()
327 if (total_len < pkt_len) { in dp83902a_send()
329 printf(" + %d bytes of padding\n", pkt_len - total_len); in dp83902a_send()
332 for (i = total_len; i < pkt_len;) { in dp83902a_send()
/openbmc/libmctp/
H A Dserial.c123 uint8_t total_len; in mctp_serial_pkt_escape() local
127 total_len = pkt->end - pkt->mctp_hdr_off; in mctp_serial_pkt_escape()
131 for (i = 0, j = 0; i < total_len; i++, j++) { in mctp_serial_pkt_escape()
/openbmc/u-boot/drivers/mtd/
H A Dmtdconcat.c166 size_t total_len = 0; in concat_writev() local
172 total_len += vecs[i].iov_len; in concat_writev()
177 if (do_div(__to, mtd->writesize) || (total_len % mtd->writesize)) in concat_writev()
196 size = min_t(uint64_t, total_len, subdev->size - to); in concat_writev()
221 total_len -= wsize; in concat_writev()
223 if (total_len == 0) in concat_writev()
/openbmc/qemu/bsd-user/freebsd/
H A Dos-syscall.c122 abi_ulong total_len, max_len; in lock_iovec() local
149 total_len = 0; in lock_iovec()
181 if (len > max_len - total_len) { in lock_iovec()
182 len = max_len - total_len; in lock_iovec()
186 total_len += len; in lock_iovec()
/openbmc/qemu/system/
H A Ddevice_tree.c414 int ret, i, total_len = 0; in qemu_fdt_setprop_string_array() local
417 total_len += strlen(array[i]) + 1; in qemu_fdt_setprop_string_array()
419 p = str = g_malloc0(total_len); in qemu_fdt_setprop_string_array()
426 ret = qemu_fdt_setprop(fdt, node_path, prop, str, total_len); in qemu_fdt_setprop_string_array()
/openbmc/u-boot/net/
H A Dnet.c918 static u16 first_hole, total_len; in __net_defragment() local
935 if (!total_len || localip->ip_id != ip->ip_id) { in __net_defragment()
937 total_len = 0xffff; in __net_defragment()
970 total_len = start + len; in __net_defragment()
1030 localip->ip_len = htons(total_len); in __net_defragment()
1031 *lenp = total_len + IP_HDR_SIZE; in __net_defragment()
/openbmc/qemu/hw/block/
H A Dpflash_cfi01.c806 uint64_t total_len; in pflash_cfi01_realize() local
822 total_len = pfl->sector_len * pfl->nb_blocs; in pflash_cfi01_realize()
828 pfl->name, total_len, errp); in pflash_cfi01_realize()
850 total_len, errp)) { in pflash_cfi01_realize()
/openbmc/qemu/audio/
H A Dossaudio.c435 size_t total_len; in oss_write() local
438 total_len = len; in oss_write()
447 return total_len; in oss_write()
/openbmc/qemu/gdbstub/
H A Dgdbstub.c1722 unsigned long len, total_len, addr; in handle_query_xfer_features() local
1746 total_len = strlen(xml); in handle_query_xfer_features()
1747 if (addr > total_len) { in handle_query_xfer_features()
1756 if (len < total_len - addr) { in handle_query_xfer_features()
1761 gdb_memtox(gdbserver_state.str_buf, xml + addr, total_len - addr); in handle_query_xfer_features()
/openbmc/u-boot/drivers/usb/gadget/
H A Daspeed_udc.c799 u16 total_len = 0; in aspeed_udc_ep_handle_desc_mode() local
839 total_len += len_in_desc; in aspeed_udc_ep_handle_desc_mode()
845 len = total_len; in aspeed_udc_ep_handle_desc_mode()
/openbmc/qemu/hw/scsi/
H A Dspapr_vscsi.c237 int total_len = sizeof(iu->srp.rsp); in vscsi_send_rsp() local
277 total_len += sense_data_len; in vscsi_send_rsp()
283 vscsi_send_iu(s, req, total_len, VIOSRP_SRP_FORMAT); in vscsi_send_rsp()

12