Home
last modified time | relevance | path

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

12345678910

/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/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dcrc32.h16 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/obmc-console/
H A Dtty-handler.c89 size_t total_len; in tty_drain_queue() local
102 total_len = 0; in tty_drain_queue()
105 len = ringbuffer_dequeue_peek(th->rbc, total_len, &buf); in tty_drain_queue()
111 if (force_len && force_len < total_len + len) { in tty_drain_queue()
112 len = force_len - total_len; in tty_drain_queue()
129 total_len += wlen; in tty_drain_queue()
131 if (force_len && total_len >= force_len) { in tty_drain_queue()
136 ringbuffer_dequeue_commit(th->rbc, total_len); in tty_drain_queue()
H A Dsocket-handler.c173 size_t total_len; in client_drain_queue() local
176 total_len = 0; in client_drain_queue()
186 len = ringbuffer_dequeue_peek(client->rbc, total_len, &buf); in client_drain_queue()
196 total_len += wlen; in client_drain_queue()
198 if (force_len && total_len >= force_len) { in client_drain_queue()
207 if (force_len && total_len < force_len) { in client_drain_queue()
211 ringbuffer_dequeue_commit(client->rbc, total_len); in client_drain_queue()
/openbmc/qemu/linux-user/
H A Dgen-vdso.c60 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()
143 for (long i = 0; i < total_len; ++i) { in main()
/openbmc/linux/fs/smb/server/
H A Dasn1.c103 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 Ddata.c97 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/linux/drivers/media/dvb-frontends/
H A Dmxl692.c259 total_len = (total_len + 3) & ~3; 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()
320 memcpy(plocal_buf, buffer, total_len); in mxl692_memwrite()
382 int status = 0, total_len = 0; in mxl692_opwrite() local
386 total_len = size; in mxl692_opwrite()
387 total_len = (total_len + 3) & ~3; /* 4 byte alignment */ in mxl692_opwrite()
[all …]
/openbmc/linux/fs/smb/client/
H A Dsmb2pdu.c545 total_len); in __smb2_plain_req_init()
567 total_len); in smb2_plain_req_init()
709 *total_len = ALIGN(*total_len, 8); in assemble_neg_contexts()
1080 total_len += 6; in SMB2_negotiate()
1088 total_len += 8; in SMB2_negotiate()
1093 total_len += 2; in SMB2_negotiate()
1461 &total_len); in SMB2_sess_alloc_buffer()
2190 &total_len); in SMB2_tdis()
4458 *total_len = ALIGN(*total_len, 8); in smb2_new_read_req()
5142 total_len += 4; in posix_info_parse()
[all …]
/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;
/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/linux/drivers/net/wireless/ath/ath6kl/
H A Dtrace.h121 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 Dmtk_vcodec_dbgfs.c96 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/linux/drivers/fsi/
H A Dfsi-core.c561 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()
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()
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()
683 rc = copy_to_user(buf + total_len, &data, read_len); in cfam_read()
700 size_t total_len, write_len; in cfam_write() local
711 for (total_len = 0; total_len < count; total_len += write_len) { in cfam_write()
[all …]
/openbmc/linux/drivers/gpu/drm/udl/
H A Dudl_main.c35 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 Dotp.c308 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 Dwow.c88 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/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/linux/drivers/staging/gdm724x/
H A Dgdm_mux.c147 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/linux/drivers/dax/
H A Dkmem.c56 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/mm/
H A Dprocess_vm_access.c164 size_t total_len = iov_iter_count(iter); in process_vm_rw_core() local
220 total_len -= iov_iter_count(iter); in process_vm_rw_core()
225 if (total_len) in process_vm_rw_core()
226 rc = total_len; in process_vm_rw_core()
/openbmc/linux/drivers/net/ppp/
H A Dpppoe.c837 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()
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
1020 total_len = min_t(size_t, total_len, skb->len); in pppoe_recvmsg()
1021 error = skb_copy_datagram_msg(skb, 0, m, total_len); in pppoe_recvmsg()
[all …]
/openbmc/linux/drivers/net/wireless/ath/ath11k/
H A Dwow.c159 int total_len = old->pkt_offset + old->pattern_len; in ath11k_wow_convert_8023_to_80211() local
209 if (total_len > ETH_HLEN) in ath11k_wow_convert_8023_to_80211()
211 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath11k_wow_convert_8023_to_80211()
212 hdr_80211_end_offset = hdr_len + rfc_len + total_len - ETH_HLEN; in ath11k_wow_convert_8023_to_80211()
213 else if (total_len > ETH_ALEN) in ath11k_wow_convert_8023_to_80211()
214 hdr_80211_end_offset = total_len - ETH_ALEN + in ath11k_wow_convert_8023_to_80211()
217 hdr_80211_end_offset = total_len + in ath11k_wow_convert_8023_to_80211()
229 if (total_len > ETH_HLEN) { in ath11k_wow_convert_8023_to_80211()
233 total_len - ETH_HLEN); in ath11k_wow_convert_8023_to_80211()
236 total_len - ETH_HLEN); in ath11k_wow_convert_8023_to_80211()
[all …]
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dopal.c444 static int __opal_put_chars(uint32_t vtermno, const char *data, int total_len, bool atomic) in __opal_put_chars() argument
457 if (rc || be64_to_cpu(olen) < total_len) { in __opal_put_chars()
460 written = total_len; in __opal_put_chars()
467 olen = cpu_to_be64(total_len); in __opal_put_chars()
483 if (written < total_len) { in __opal_put_chars()
487 "len=%d written=%d\n", total_len, written); in __opal_put_chars()
500 int opal_put_chars(uint32_t vtermno, const char *data, int total_len) in opal_put_chars() argument
502 return __opal_put_chars(vtermno, data, total_len, false); in opal_put_chars()
511 int opal_put_chars_atomic(uint32_t vtermno, const char *data, int total_len) in opal_put_chars_atomic() argument
513 return __opal_put_chars(vtermno, data, total_len, true); in opal_put_chars_atomic()
/openbmc/linux/tools/testing/selftests/net/
H A Dtxtimestamp.c489 int fd, i, val = 1, total_len, epfd = 0; in do_test() local
495 total_len = cfg_payload_len; in do_test()
497 total_len += sizeof(struct udphdr); in do_test()
500 total_len += sizeof(struct iphdr); in do_test()
502 total_len += sizeof(struct ipv6hdr); in do_test()
511 buf = malloc(total_len); in do_test()
579 memset(buf, 'a' + i, total_len); in do_test()
597 iov.iov_len = total_len; in do_test()
637 if (val != total_len) in do_test()

12345678910