Home
last modified time | relevance | path

Searched refs:pad_len (Results 1 – 22 of 22) sorted by relevance

/external/u-boot/fs/ubifs/
Dscan.c34 int pad_len = 0, max_pad_len = min_t(int, UBIFS_PAD_NODE_SZ, len); in scan_padding_bytes() local
39 while (pad_len < max_pad_len && *p++ == UBIFS_PADDING_BYTE) in scan_padding_bytes()
40 pad_len += 1; in scan_padding_bytes()
42 if (!pad_len || (pad_len & 7)) in scan_padding_bytes()
45 dbg_scan("%d padding bytes", pad_len); in scan_padding_bytes()
47 return pad_len; in scan_padding_bytes()
88 int pad_len = le32_to_cpu(pad->pad_len); in ubifs_scan_a_node() local
92 if (pad_len < 0 || in ubifs_scan_a_node()
93 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node()
103 if ((node_len + pad_len) & 7) { in ubifs_scan_a_node()
[all …]
Drecovery.c437 int empty_offs, pad_len; in clean_buf() local
444 pad_len = empty_offs - *offs; in clean_buf()
445 ubifs_pad(c, *buf, pad_len); in clean_buf()
446 *offs += pad_len; in clean_buf()
447 *buf += pad_len; in clean_buf()
448 *len -= pad_len; in clean_buf()
545 int pad_len = len - ALIGN(endpt, 8); in fix_unclean_leb() local
547 if (pad_len > 0) { in fix_unclean_leb()
548 void *buf = sleb->buf + len - pad_len; in fix_unclean_leb()
550 ubifs_pad(c, buf, pad_len); in fix_unclean_leb()
[all …]
Dlpt_commit.c1078 int offs, pad_len; in get_pad_len() local
1083 pad_len = ALIGN(offs, c->min_io_size) - offs; in get_pad_len()
1084 return pad_len; in get_pad_len()
1161 int pad_len; in lpt_gc_lnum() local
1163 pad_len = get_pad_len(c, buf, len); in lpt_gc_lnum()
1164 if (pad_len) { in lpt_gc_lnum()
1165 buf += pad_len; in lpt_gc_lnum()
1166 len -= pad_len; in lpt_gc_lnum()
1656 int i, pad_len; in dbg_check_ltab_lnum() local
1658 pad_len = get_pad_len(c, p, len); in dbg_check_ltab_lnum()
[all …]
Dubifs-media.h582 __le32 pad_len; member
Dio.c336 pad_node->pad_len = cpu_to_le32(pad); in ubifs_pad()
Ddebug.c325 pr_err("\tpad_len %u\n", le32_to_cpu(pad->pad_len)); in ubifs_dump_node()
/external/u-boot/lib/rsa/
Drsa-verify.c37 static int rsa_verify_padding(const uint8_t *msg, const int pad_len, in rsa_verify_padding() argument
48 ff_len = pad_len - algo->der_len - 3; in rsa_verify_padding()
78 int pad_len; in rsa_verify_key() local
119 pad_len = key_len - algo->checksum_len; in rsa_verify_key()
122 ret = rsa_verify_padding(buf, pad_len, algo); in rsa_verify_key()
129 if (memcmp((uint8_t *)buf + pad_len, hash, sig_len - pad_len)) { in rsa_verify_key()
/external/tensorflow/tensorflow/python/distribute/
Dall_reduce.py107 pad_len = pieces - tensor_len
109 [tensor, array_ops.zeros([pad_len], dtype=tensor.dtype)], 0)
111 return parts, pad_len
114 pad_len = (pieces * chunk_size) % tensor_len
116 [tensor, array_ops.zeros([pad_len], dtype=tensor.dtype)], 0)
118 return parts, pad_len
121 pad_len = chunk_size - last_chunk_size
125 [parts[-1], array_ops.zeros([pad_len], dtype=tensor.dtype)], 0)
126 return parts, pad_len
131 def _strip_padding(tensors, pad_len): argument
[all …]
Dall_reduce_test.py116 output_tensors, pad_len = ar._build_ring_gather(
118 self.assertEqual(0, pad_len)
/external/webrtc/webrtc/base/
Dbase64.cc142 size_t byte_len = 0, pad_len = 0, pad_start = 0; in GetNextQuantum() local
158 } else if (byte_len + pad_len >= 4) { in GetNextQuantum()
163 if (1 == ++pad_len) { in GetNextQuantum()
168 if (pad_len > 0) { in GetNextQuantum()
172 pad_len = 0; in GetNextQuantum()
180 if (4 == byte_len + pad_len) { in GetNextQuantum()
184 if (pad_len) { in GetNextQuantum()
/external/wpa_supplicant_8/src/eap_common/
Deap_sim_common.c1051 int pad_len; in eap_sim_msg_add_full() local
1057 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add_full()
1058 attr_len += pad_len; in eap_sim_msg_add_full()
1065 if (pad_len) in eap_sim_msg_add_full()
1066 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add_full()
1075 int pad_len; in eap_sim_msg_add() local
1081 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add()
1082 attr_len += pad_len; in eap_sim_msg_add()
1093 if (pad_len) in eap_sim_msg_add()
1094 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add()
[all …]
Dikev2_common.c437 size_t decrypted_len, pad_len; in ikev2_decrypt_payload() local
505 pad_len = decrypted[decrypted_len - 1]; in ikev2_decrypt_payload()
506 if (decrypted_len < pad_len + 1) { in ikev2_decrypt_payload()
513 decrypted_len -= pad_len + 1; in ikev2_decrypt_payload()
536 size_t iv_len, pad_len; in ikev2_build_encrypted() local
580 pad_len = iv_len - (wpabuf_len(plain) + 1) % iv_len; in ikev2_build_encrypted()
581 if (pad_len == iv_len) in ikev2_build_encrypted()
582 pad_len = 0; in ikev2_build_encrypted()
583 wpabuf_put(plain, pad_len); in ikev2_build_encrypted()
584 wpabuf_put_u8(plain, pad_len); in ikev2_build_encrypted()
/external/jemalloc/src/
Dutil.c338 size_t pad_len = (width == -1) ? 0 : ((slen < (size_t)width) ? \ in malloc_vsnprintf()
340 if (!left_justify && pad_len != 0) { \ in malloc_vsnprintf()
342 for (j = 0; j < pad_len; j++) \ in malloc_vsnprintf()
348 if (left_justify && pad_len != 0) { \ in malloc_vsnprintf()
350 for (j = 0; j < pad_len; j++) \ in malloc_vsnprintf()
/external/jemalloc_new/src/
Dmalloc_io.c346 size_t pad_len = (width == -1) ? 0 : ((slen < (size_t)width) ? \ in malloc_vsnprintf()
348 if (!left_justify && pad_len != 0) { \ in malloc_vsnprintf()
350 for (j = 0; j < pad_len; j++) { \ in malloc_vsnprintf()
357 if (left_justify && pad_len != 0) { \ in malloc_vsnprintf()
359 for (j = 0; j < pad_len; j++) { \ in malloc_vsnprintf()
/external/wpa_supplicant_8/src/wps/
Dwps_attr_build.c387 size_t pad_len; in wps_build_encr_settings() local
394 pad_len = block_size - wpabuf_len(plain) % block_size; in wps_build_encr_settings()
395 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); in wps_build_encr_settings()
/external/wpa_supplicant_8/src/eap_server/
Dikev2.c38 size_t buf_len, pad_len; in ikev2_derive_keys() local
83 pad_len = data->dh->prime_len - wpabuf_len(shared); in ikev2_derive_keys()
84 pad = os_zalloc(pad_len ? pad_len : 1); in ikev2_derive_keys()
91 len[0] = pad_len; in ikev2_derive_keys()
/external/wpa_supplicant_8/src/eap_peer/
Dikev2.c34 size_t buf_len, pad_len; in ikev2_derive_keys() local
78 pad_len = data->dh->prime_len - wpabuf_len(shared); in ikev2_derive_keys()
79 pad = os_zalloc(pad_len ? pad_len : 1); in ikev2_derive_keys()
87 len[0] = pad_len; in ikev2_derive_keys()
/external/u-boot/tools/
Dmkimage.c319 int pad_len = 0; in main() local
447 pad_len = tparams->vrec_header(&params, tparams); in main()
526 copy_file(ifd, params.datafile, pad_len); in main()
Dimximage.c909 uint32_t pad_len, header_size; in imximage_generate() local
969 pad_len = ROUND(sbuf.st_size, 4096) - sbuf.st_size; in imximage_generate()
971 return pad_len; in imximage_generate()
/external/wpa_supplicant_8/src/ap/
Dwpa_auth_ft.c528 size_t pad_len = 0; in wpa_ft_rrb_build() local
542 pad_len = RRB_MIN_MSG_LEN - *packet_len; in wpa_ft_rrb_build()
543 if (pad_len < sizeof(struct ft_rrb_tlv)) in wpa_ft_rrb_build()
544 pad_len = sizeof(struct ft_rrb_tlv); in wpa_ft_rrb_build()
547 (int) *packet_len, (int) (*packet_len + pad_len)); in wpa_ft_rrb_build()
548 *packet_len += pad_len; in wpa_ft_rrb_build()
549 tmp = os_realloc(auth, auth_len + pad_len); in wpa_ft_rrb_build()
556 WPA_PUT_LE16(pos, pad_len - sizeof(struct ft_rrb_tlv)); in wpa_ft_rrb_build()
558 os_memset(pos, 0, pad_len - sizeof(struct ft_rrb_tlv)); in wpa_ft_rrb_build()
559 auth_len += pad_len; in wpa_ft_rrb_build()
[all …]
Dwpa_auth.c1423 int key_data_len, pad_len = 0; in __wpa_send_eapol() local
1462 pad_len = key_data_len % 8; in __wpa_send_eapol()
1463 if (pad_len) in __wpa_send_eapol()
1464 pad_len = 8 - pad_len; in __wpa_send_eapol()
1465 key_data_len += pad_len + 8; in __wpa_send_eapol()
1553 if (pad_len) in __wpa_send_eapol()
/external/boringssl/src/crypto/cipher_extra/
De_tls.c118 const size_t pad_len = block_size - (in_len + hmac_len) % block_size; in aead_tls_tag_len() local
119 return hmac_len + pad_len; in aead_tls_tag_len()