Home
last modified time | relevance | path

Searched refs:frag_len (Results 1 – 14 of 14) sorted by relevance

/external/syslinux/gpxe/src/drivers/nvs/
Dnvs.c44 size_t frag_len; in nvs_read() local
55 frag_len = ( ( nvs->block_size - in nvs_read()
60 if ( frag_len > len ) in nvs_read()
61 frag_len = len; in nvs_read()
64 if ( ( rc = nvs->read ( nvs, address, data, frag_len ) ) != 0 ) in nvs_read()
68 data += frag_len; in nvs_read()
69 address += ( frag_len >> nvs->word_len_log2 ); in nvs_read()
70 len -= frag_len; in nvs_read()
115 size_t frag_len; in nvs_write() local
126 frag_len = ( ( nvs->block_size - in nvs_write()
[all …]
/external/syslinux/gpxe/src/hci/commands/
Ddigest_cmd.c59 size_t frag_len; in digest_exec() local
85 frag_len = len; in digest_exec()
86 if ( frag_len > sizeof ( buf ) ) in digest_exec()
87 frag_len = sizeof ( buf ); in digest_exec()
88 copy_from_user ( buf, image->data, offset, frag_len ); in digest_exec()
89 digest_update ( digest, digest_ctx, buf, frag_len ); in digest_exec()
90 len -= frag_len; in digest_exec()
91 offset += frag_len; in digest_exec()
/external/syslinux/gpxe/src/arch/i386/drivers/net/
Dundinet.c249 size_t frag_len; in undinet_poll() local
285 frag_len = undi_isr.BufferLength; in undinet_poll()
286 if ( ( len == 0 ) || ( len < frag_len ) ) { in undinet_poll()
290 undinic, frag_len, len ); in undinet_poll()
305 if ( frag_len > max_frag_len ) { in undinet_poll()
308 undinic, iob_len ( iobuf ), frag_len, in undinet_poll()
310 frag_len = max_frag_len; in undinet_poll()
312 copy_from_real ( iob_put ( iobuf, frag_len ), in undinet_poll()
314 undi_isr.Frame.offset, frag_len ); in undinet_poll()
/external/boringssl/src/ssl/
Dd1_both.c350 const size_t frag_len = msg_hdr.frag_len; in dtls1_process_handshake_record() local
352 if (frag_off > msg_len || frag_off + frag_len < frag_off || in dtls1_process_handshake_record()
353 frag_off + frag_len > msg_len || in dtls1_process_handshake_record()
389 dtls1_hm_fragment_mark(frag, frag_off, frag_off + frag_len); in dtls1_process_handshake_record()
484 !CBS_get_u24(cbs, &out_hdr->frag_len) || in dtls1_parse_fragment()
485 !CBS_get_bytes(cbs, out_body, out_hdr->frag_len)) { in dtls1_parse_fragment()
662 hdr.frag_len != CBS_len(&body) || in seal_next_message()
682 size_t max_frag = max_out - prefix, frag_len; in seal_next_message() local
690 !CBB_finish(&cbb, NULL, &frag_len)) { in seal_next_message()
696 ssl_do_msg_callback(ssl, 1 /* write */, SSL3_RT_HANDSHAKE, frag, frag_len); in seal_next_message()
[all …]
Dtls_record.c435 size_t frag_len = 0; in tls_seal_record() local
438 if (!do_seal_record(ssl, out, &frag_len, max_out, type, in, 1)) { in tls_seal_record()
443 out += frag_len; in tls_seal_record()
444 max_out -= frag_len; in tls_seal_record()
449 frag_len); in tls_seal_record()
456 *out_len += frag_len; in tls_seal_record()
Dinternal.h1733 uint32_t frag_len; in OPENSSL_MSVC_PRAGMA() member
/external/wpa_supplicant_8/src/p2p/
Dp2p_group.c194 size_t frag_len = end - pos; in p2p_group_encaps_probe_resp() local
195 if (frag_len > 251) in p2p_group_encaps_probe_resp()
196 frag_len = 251; in p2p_group_encaps_probe_resp()
198 wpabuf_put_u8(ie, 4 + frag_len); in p2p_group_encaps_probe_resp()
200 wpabuf_put_data(ie, pos, frag_len); in p2p_group_encaps_probe_resp()
201 pos += frag_len; in p2p_group_encaps_probe_resp()
271 size_t frag_len = end - pos; in wifi_display_encaps() local
272 if (frag_len > 251) in wifi_display_encaps()
273 frag_len = 251; in wifi_display_encaps()
275 wpabuf_put_u8(ie, 4 + frag_len); in wifi_display_encaps()
[all …]
Dp2p_sd.c626 size_t frag_len, max_len; in p2p_rx_gas_comeback_req() local
655 frag_len = wpabuf_len(p2p->sd_resp) - p2p->sd_resp_pos; in p2p_rx_gas_comeback_req()
656 if (frag_len > max_len) { in p2p_rx_gas_comeback_req()
657 frag_len = max_len; in p2p_rx_gas_comeback_req()
663 p2p->sd_resp_pos, frag_len, in p2p_rx_gas_comeback_req()
669 p2p->sd_frag_id, more, (int) frag_len); in p2p_rx_gas_comeback_req()
671 p2p->sd_resp_pos += frag_len; in p2p_rx_gas_comeback_req()
/external/syslinux/gpxe/src/net/
Dtls.c173 size_t frag_len = digest->digestsize; in tls_p_hash_va() local
204 if ( frag_len > out_len ) in tls_p_hash_va()
205 frag_len = out_len; in tls_p_hash_va()
206 memcpy ( out, out_tmp, frag_len ); in tls_p_hash_va()
208 DBGC2_HD ( tls, out, frag_len ); in tls_p_hash_va()
216 out += frag_len; in tls_p_hash_va()
217 out_len -= frag_len; in tls_p_hash_va()
1581 size_t frag_len; in tls_cipherstream_deliver_raw() local
1606 frag_len = ( buf_len - tls->rx_rcvd ); in tls_cipherstream_deliver_raw()
1607 if ( frag_len > len ) in tls_cipherstream_deliver_raw()
[all …]
Dtcp.c358 size_t frag_len; in tcp_process_queue() local
362 frag_len = iob_len ( iobuf ); in tcp_process_queue()
363 if ( frag_len > max_len ) in tcp_process_queue()
364 frag_len = max_len; in tcp_process_queue()
366 memcpy ( iob_put ( dest, frag_len ), iobuf->data, in tcp_process_queue()
367 frag_len ); in tcp_process_queue()
370 iob_pull ( iobuf, frag_len ); in tcp_process_queue()
376 len += frag_len; in tcp_process_queue()
377 max_len -= frag_len; in tcp_process_queue()
/external/wpa_supplicant_8/src/wps/
Dwps_attr_build.c460 size_t frag_len = end - pos; in wps_ie_encapsulate() local
461 if (frag_len > 251) in wps_ie_encapsulate()
462 frag_len = 251; in wps_ie_encapsulate()
464 wpabuf_put_u8(ie, 4 + frag_len); in wps_ie_encapsulate()
466 wpabuf_put_data(ie, pos, frag_len); in wps_ie_encapsulate()
467 pos += frag_len; in wps_ie_encapsulate()
/external/syslinux/gpxe/src/net/tcp/
Discsi.c1397 size_t frag_len; in iscsi_socket_deliver_raw() local
1428 frag_len = iscsi->rx_len - iscsi->rx_offset; in iscsi_socket_deliver_raw()
1429 if ( frag_len > len ) in iscsi_socket_deliver_raw()
1430 frag_len = len; in iscsi_socket_deliver_raw()
1431 remaining = iscsi->rx_len - iscsi->rx_offset - frag_len; in iscsi_socket_deliver_raw()
1432 if ( ( rc = rx ( iscsi, data, frag_len, remaining ) ) != 0 ) { in iscsi_socket_deliver_raw()
1440 iscsi->rx_offset += frag_len; in iscsi_socket_deliver_raw()
1441 data += frag_len; in iscsi_socket_deliver_raw()
1442 len -= frag_len; in iscsi_socket_deliver_raw()
/external/wpa_supplicant_8/src/ap/
Dgas_serv.c1429 size_t frag_len; in gas_serv_rx_gas_comeback_req() local
1455 frag_len = wpabuf_len(dialog->sd_resp) - dialog->sd_resp_pos; in gas_serv_rx_gas_comeback_req()
1456 if (frag_len > hapd->conf->gas_frag_limit) { in gas_serv_rx_gas_comeback_req()
1457 frag_len = hapd->conf->gas_frag_limit; in gas_serv_rx_gas_comeback_req()
1461 (unsigned int) frag_len); in gas_serv_rx_gas_comeback_req()
1463 dialog->sd_resp_pos, frag_len); in gas_serv_rx_gas_comeback_req()
1481 dialog->sd_frag_id, more, (int) frag_len); in gas_serv_rx_gas_comeback_req()
1483 dialog->sd_resp_pos += frag_len; in gas_serv_rx_gas_comeback_req()
/external/syslinux/gpxe/src/drivers/infiniband/
Dlinda.c956 ssize_t frag_len; in linda_post_send() local
989 for ( data = headers.data, frag_len = iob_len ( &headers ) ; in linda_post_send()
990 frag_len > 0 ; data++, offset += 4, frag_len -= 4 ) { in linda_post_send()
995 for ( data = iobuf->data, frag_len = iob_len ( iobuf ) ; in linda_post_send()
996 frag_len > 0 ; data++, offset += 4, frag_len -= 4 ) { in linda_post_send()