/openbmc/obmc-console/test/ |
H A D | ringbuffer-test-utils.c | 41 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 D | gen-vdso.c | 60 long total_len; in main() local 116 total_len = ftell(inf); in main() 119 buf = malloc(total_len); in main() 125 if (fread(buf, 1, total_len, inf) != total_len) { in main() 172 elf32_process(outf, buf, total_len, need_bswap); in main() 175 elf64_process(outf, buf, total_len, need_bswap); in main() 191 for (long i = 0; i < total_len; ++i) { in main()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | crc32.h | 16 static inline u32 crc32_posix_end(u32 crc, size_t total_len) in crc32_posix_end() argument 19 while (total_len != 0) { in crc32_posix_end() 20 u8 c = total_len & 0xff; in crc32_posix_end() 23 total_len >>= 8; in crc32_posix_end()
|
/openbmc/libcper/generator/sections/ |
H A D | gen-section-arm.c | 41 size_t total_len = 40 + (error_structure_num * ARM_ERROR_INFO_SIZE); in generate_section_arm() local 43 total_len += context_structure_lengths[i]; in generate_section_arm() 45 total_len += vendor_info_len; in generate_section_arm() 46 UINT8 *section = generate_random_bytes(total_len); in generate_section_arm() 53 *section_length = total_len; in generate_section_arm() 81 return total_len; in generate_section_arm()
|
H A D | gen-section-ia32x64.c | 39 size_t total_len = in generate_section_ia32x64() local 42 total_len += context_structure_lengths[i]; in generate_section_ia32x64() 44 UINT8 *section = generate_random_bytes(total_len); in generate_section_ia32x64() 74 return total_len; in generate_section_ia32x64()
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-security/trusted-services/corstone1000/ |
H A D | 0012-Fix-GetNextVariableName-NameSize-input.patch | 36 size_t total_len = 0; 42 - max_name_len, &total_len); 43 + &total_len); 63 - max_name_len, &total_len); 64 + &total_len); 73 - 0, &total_len); 74 + &total_len); 81 - next_name->NameSize, &total_len); 82 + &total_len); 88 - max_name_len, &total_len); [all …]
|
/openbmc/obmc-console/ |
H A D | tty-handler.c | 90 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 D | socket-handler.c | 179 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/linux/drivers/media/dvb-frontends/ |
H A D | mxl692.c | 251 u32 ix = 0, total_len = 0, addr = 0, chunk_len = 0, prevchunk_len = 0; in mxl692_write_fw_block() local 258 total_len = buffer[ix + 1] << 16 | buffer[ix + 2] << 8 | buffer[ix + 3]; in mxl692_write_fw_block() 259 total_len = (total_len + 3) & ~3; in mxl692_write_fw_block() 264 while ((total_len > 0) && (status == 0)) { in mxl692_write_fw_block() 266 chunk_len = (total_len < payload_max) ? total_len : payload_max; in mxl692_write_fw_block() 286 total_len -= chunk_len; in mxl692_write_fw_block() 303 int status = 0, total_len = 0; in mxl692_memwrite() local 306 total_len = size; in mxl692_memwrite() 307 total_len = (total_len + 3) & ~3; /* 4 byte alignment */ in mxl692_memwrite() 309 if (total_len > (MXL_EAGLE_MAX_I2C_PACKET_SIZE - MXL_EAGLE_I2C_MHEADER_SIZE)) in mxl692_memwrite() [all …]
|
/openbmc/linux/fs/smb/client/ |
H A D | smb2pdu.c | 504 unsigned int *total_len) in fill_small_buf() argument 519 *total_len = parmsize + sizeof(struct smb2_hdr); in fill_small_buf() 529 void **request_buf, unsigned int *total_len) in __smb2_plain_req_init() argument 548 total_len); in __smb2_plain_req_init() 561 void **request_buf, unsigned int *total_len) in smb2_plain_req_init() argument 570 total_len); in smb2_plain_req_init() 575 void **request_buf, unsigned int *total_len) in smb2_ioctl_req_init() argument 580 request_buf, total_len); in smb2_ioctl_req_init() 583 request_buf, total_len); in smb2_ioctl_req_init() 695 struct TCP_Server_Info *server, unsigned int *total_len) in assemble_neg_contexts() argument [all …]
|
/openbmc/linux/fs/smb/server/ |
H A D | asn1.c | 103 int total_len = 4 + compute_asn_hdr_len_bytes(neg_result_len + in build_spnego_ntlmssp_neg_blob() local 107 buf = kmalloc(total_len, GFP_KERNEL); in build_spnego_ntlmssp_neg_blob() 130 *buflen = total_len; in build_spnego_ntlmssp_neg_blob() 140 int total_len = 4 + compute_asn_hdr_len_bytes(neg_result_len) * 2 + in build_spnego_ntlmssp_auth_blob() local 143 buf = kmalloc(total_len, GFP_KERNEL); in build_spnego_ntlmssp_auth_blob() 158 *buflen = total_len; in build_spnego_ntlmssp_auth_blob()
|
/openbmc/linux/net/nfc/nci/ |
H A D | data.c | 97 int total_len = skb->len; in nci_queue_tx_data_frags() local 105 pr_debug("conn_id 0x%x, total_len %d\n", conn_id, total_len); in nci_queue_tx_data_frags() 115 while (total_len) { in nci_queue_tx_data_frags() 117 min_t(int, total_len, conn_info->max_pkt_payload_len); in nci_queue_tx_data_frags() 133 ((total_len == frag_len) ? in nci_queue_tx_data_frags() 139 total_len -= frag_len; in nci_queue_tx_data_frags() 142 frag_len, total_len); in nci_queue_tx_data_frags()
|
/openbmc/u-boot/fs/btrfs/ |
H A D | dir-item.c | 38 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/linux/drivers/fsi/ |
H A D | fsi-core.c | 561 size_t total_len, read_len; in fsi_slave_sysfs_raw_read() local 570 for (total_len = 0; total_len < count; total_len += read_len) { in fsi_slave_sysfs_raw_read() 571 read_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_read() 573 rc = fsi_slave_read(slave, off, buf + total_len, read_len); in fsi_slave_sysfs_raw_read() 588 size_t total_len, write_len; in fsi_slave_sysfs_raw_write() local 597 for (total_len = 0; total_len < count; total_len += write_len) { in fsi_slave_sysfs_raw_write() 598 write_len = aligned_access_size(off, count - total_len); in fsi_slave_sysfs_raw_write() 600 rc = fsi_slave_write(slave, off, buf + total_len, write_len); in fsi_slave_sysfs_raw_write() 664 size_t total_len, read_len; in cfam_read() local 674 for (total_len = 0; total_len < count; total_len += read_len) { in cfam_read() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | trace.h | 121 TP_PROTO(unsigned int addr, int flags, unsigned int total_len, 124 TP_ARGS(addr, flags, total_len, entries, list), 131 __field(size_t, total_len) 133 __dynamic_array(u8, data, total_len) 144 __entry->total_len = total_len; 170 __entry->total_len
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/common/ |
H A D | mtk_vcodec_dbgfs.c | 96 int total_len = 200 * (dbgfs->inst_count == 0 ? 1 : dbgfs->inst_count); in mtk_vdec_dbgfs_read() local 99 char *buf = kmalloc(total_len, GFP_KERNEL); in mtk_vdec_dbgfs_read() 105 mtk_vdec_dbgfs_get_help(buf, &used_len, total_len); in mtk_vdec_dbgfs_read() 119 curr_len = snprintf(buf + used_len, total_len - used_len, in mtk_vdec_dbgfs_read() 124 curr_len = snprintf(buf + used_len, total_len - used_len, in mtk_vdec_dbgfs_read() 132 mtk_vdec_dbgfs_get_format_type(ctx, buf, &used_len, total_len); in mtk_vdec_dbgfs_read()
|
/openbmc/openbmc/meta-security/meta-tpm/recipes-tpm1/openssl-tpm-engine/files/ |
H A D | openssl11_build_fix.patch | 13 int total_len, len, ret; 21 total_len = 0; 29 total_len += len;
|
/openbmc/linux/drivers/gpu/drm/udl/ |
H A D | udl_main.c | 35 u8 total_len = 0; in udl_parse_vendor_descriptor() local 42 total_len = usb_get_descriptor(udev, 0x5f, /* vendor specific */ in udl_parse_vendor_descriptor() 44 if (total_len > 5) { in udl_parse_vendor_descriptor() 46 total_len, desc); in udl_parse_vendor_descriptor() 48 if ((desc[0] != total_len) || /* descriptor length */ in udl_parse_vendor_descriptor() 52 (desc[4] != total_len - 2)) /* length after type */ in udl_parse_vendor_descriptor() 55 desc_end = desc + total_len; in udl_parse_vendor_descriptor()
|
/openbmc/linux/drivers/mtd/spi-nor/ |
H A D | otp.c | 308 size_t total_len, size_t *retlen, in spi_nor_mtd_otp_read_write() argument 323 total_len = min_t(size_t, total_len, spi_nor_otp_size(nor) - ofs); in spi_nor_mtd_otp_read_write() 325 if (!total_len) in spi_nor_mtd_otp_read_write() 333 ret = spi_nor_mtd_otp_range_is_locked(nor, ofs, total_len); in spi_nor_mtd_otp_read_write() 342 while (total_len) { in spi_nor_mtd_otp_read_write() 360 len = min_t(size_t, total_len, rlen - rofs); in spi_nor_mtd_otp_read_write() 374 total_len -= ret; in spi_nor_mtd_otp_read_write()
|
/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | wow.c | 88 int total_len = old->pkt_offset + old->pattern_len; in ath10k_wow_convert_8023_to_80211() local 138 if (total_len > ETH_HLEN) in ath10k_wow_convert_8023_to_80211() 140 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211() 141 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN; in ath10k_wow_convert_8023_to_80211() 142 else if (total_len > ETH_ALEN) in ath10k_wow_convert_8023_to_80211() 143 hdr_80211_end_offset = total_len - ETH_ALEN + in ath10k_wow_convert_8023_to_80211() 146 hdr_80211_end_offset = total_len + in ath10k_wow_convert_8023_to_80211() 158 if (total_len > ETH_HLEN) { in ath10k_wow_convert_8023_to_80211() 162 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() 165 total_len - ETH_HLEN); in ath10k_wow_convert_8023_to_80211() [all …]
|
/openbmc/linux/drivers/staging/gdm724x/ |
H A D | gdm_mux.c | 147 int total_len; in up_to_host() local 165 total_len = ALIGN(MUX_HEADER_SIZE + payload_size, 4); in up_to_host() 167 if (len - packet_size_sum < total_len) { in up_to_host() 190 packet_size_sum += total_len; in up_to_host() 350 int total_len; in gdm_mux_send() local 362 total_len = ALIGN(MUX_HEADER_SIZE + len, 4); in gdm_mux_send() 364 t = alloc_mux_tx(total_len); in gdm_mux_send() 379 total_len - MUX_HEADER_SIZE - len); in gdm_mux_send() 381 t->len = total_len; in gdm_mux_send() 389 total_len, in gdm_mux_send()
|
/openbmc/u-boot/drivers/crypto/ |
H A D | aspeed_hace.c | 209 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/libcper/generator/ |
H A D | cper-generate.c | 70 size_t total_len = sizeof(EFI_COMMON_ERROR_RECORD_HEADER); in generate_cper_record() local 72 total_len += section_lengths[i]; in generate_cper_record() 74 total_len += num_sections * sizeof(EFI_ERROR_SECTION_DESCRIPTOR); in generate_cper_record() 75 header->RecordLength = (UINT32)total_len; in generate_cper_record()
|
/openbmc/linux/drivers/dax/ |
H A D | kmem.c | 56 unsigned long total_len = 0; in dev_dax_kmem_probe() local 83 total_len += range_len(&range); in dev_dax_kmem_probe() 86 if (!total_len) { in dev_dax_kmem_probe() 102 rc = memory_group_register_static(numa_node, PFN_UP(total_len)); in dev_dax_kmem_probe()
|
/openbmc/linux/drivers/net/ppp/ |
H A D | pppoe.c | 837 size_t total_len) in pppoe_sendmsg() argument 863 if (total_len > (dev->mtu + dev->hard_header_len)) in pppoe_sendmsg() 867 skb = sock_wmalloc(sk, hlen + sizeof(*ph) + total_len + in pppoe_sendmsg() 883 ph = skb_put(skb, total_len + sizeof(struct pppoe_hdr)); in pppoe_sendmsg() 886 error = memcpy_from_msg(start, m, total_len); in pppoe_sendmsg() 892 error = total_len; in pppoe_sendmsg() 894 po->pppoe_pa.remote, NULL, total_len); in pppoe_sendmsg() 898 ph->length = htons(total_len); in pppoe_sendmsg() 1004 size_t total_len, int flags) in pppoe_recvmsg() argument 1017 total_len = min_t(size_t, total_len, skb->len); in pppoe_recvmsg() [all …]
|