Home
last modified time | relevance | path

Searched refs:extra_len (Results 1 – 24 of 24) sorted by relevance

/freebsd/contrib/wpa/src/eap_common/
H A Deap_sim_common.h87 const u8 *mac, const u8 *extra, size_t extra_len);
89 const u8 *extra, size_t extra_len);
100 size_t extra_len);
102 u8 *mac, const u8 *extra, size_t extra_len);
128 size_t extra_len) in eap_sim_verify_mac_sha256() argument
216 const u8 *extra, size_t extra_len);
H A Deap_sim_common.c166 const u8 *mac, const u8 *extra, size_t extra_len) in eap_sim_verify_mac() argument
185 len[1] = extra_len; in eap_sim_verify_mac()
192 extra, extra_len); in eap_sim_verify_mac()
205 const u8 *extra, size_t extra_len) in eap_sim_add_mac() argument
214 len[1] = extra_len; in eap_sim_add_mac()
220 extra, extra_len); in eap_sim_add_mac()
360 const u8 *mac, const u8 *extra, size_t extra_len) in eap_sim_verify_mac_sha256() argument
379 len[1] = extra_len; in eap_sim_verify_mac_sha256()
386 extra, extra_len); in eap_sim_verify_mac_sha256()
399 u8 *mac, const u8 *extra, size_t extra_len) in eap_sim_add_mac_sha256() argument
[all …]
/freebsd/contrib/wpa/src/wps/
H A Dwps_upnp_web.c313 size_t extra_len = 0; in web_connection_parse_get() local
332 extra_len = 3000; in web_connection_parse_get()
334 extra_len += os_strlen(iface->wps->friendly_name); in web_connection_parse_get()
336 extra_len += os_strlen(iface->wps->manufacturer_url); in web_connection_parse_get()
338 extra_len += os_strlen(iface->wps->model_description); in web_connection_parse_get()
340 extra_len += os_strlen(iface->wps->model_url); in web_connection_parse_get()
342 extra_len += os_strlen(iface->wps->upc); in web_connection_parse_get()
346 extra_len = os_strlen(wps_scpd_xml); in web_connection_parse_get()
368 buf = wpabuf_alloc(1000 + extra_len); in web_connection_parse_get()
/freebsd/sys/dev/usb/net/
H A Dif_udav.c582 int extra_len; in udav_bulk_write_callback() local
607 extra_len = UDAV_MIN_FRAME_LEN - m->m_pkthdr.len; in udav_bulk_write_callback()
609 extra_len = 0; in udav_bulk_write_callback()
612 temp_len = (m->m_pkthdr.len + extra_len); in udav_bulk_write_callback()
627 if (extra_len) in udav_bulk_write_callback()
628 usbd_frame_zero(pc, temp_len - extra_len, extra_len); in udav_bulk_write_callback()
/freebsd/share/examples/scsi_target/
H A Dscsi_cmds.c254 sense->extra_len = in tcmd_sense()
256 offsetof(struct scsi_sense_data_fixed, extra_len); in tcmd_sense()
399 dlen = offsetof(struct scsi_sense_data_fixed, extra_len) + in tcmd_req_sense()
400 sense->extra_len + 1; in tcmd_req_sense()
/freebsd/contrib/wpa/src/drivers/
H A Ddriver_bsd.c1448 size_t extra_len; in wpa_driver_bsd_add_scan_entry() local
1451 extra_len = 2 + sr->isr_ssid_len; in wpa_driver_bsd_add_scan_entry()
1452 extra_len += 2 + sr->isr_nrates; in wpa_driver_bsd_add_scan_entry()
1453 extra_len += 3; /* ERP IE */ in wpa_driver_bsd_add_scan_entry()
1454 extra_len += sr->isr_ie_len; in wpa_driver_bsd_add_scan_entry()
1456 result = os_zalloc(sizeof(*result) + extra_len); in wpa_driver_bsd_add_scan_entry()
H A Ddriver_wext.c1436 size_t extra_len; in wpa_driver_wext_add_scan_entry() local
1454 extra_len = 0; in wpa_driver_wext_add_scan_entry()
1456 extra_len += 2 + data->ssid_len; in wpa_driver_wext_add_scan_entry()
1458 extra_len += 3; in wpa_driver_wext_add_scan_entry()
1460 r = os_zalloc(sizeof(*r) + extra_len + data->ie_len); in wpa_driver_wext_add_scan_entry()
1464 r->ie_len = extra_len + data->ie_len; in wpa_driver_wext_add_scan_entry()
/freebsd/contrib/netbsd-tests/dev/scsipi/libscsitest/
H A Dscsitest.c93 sense->extra_len = 6; in sense_notready()
/freebsd/sys/dev/mfi/
H A Dmfivar.h579 *asc = (sense->extra_len >= 5) ? sense->add_sense_code : 0; in mfi_extract_sense()
580 *ascq = (sense->extra_len >= 6) ? sense->add_sense_code_qual : 0; in mfi_extract_sense()
/freebsd/sys/cam/ctl/
H A Dctl_error.c262 for (pos = 0; pos < (int)(sense_src->extra_len - 1);) { in ctl_sense_to_fixed()
273 sense_src->extra_len) in ctl_sense_to_fixed()
/freebsd/contrib/wpa/src/rsn_supp/
H A Dwpa.c531 size_t mic_len, hdrlen, rlen, extra_len = 0; in wpa_supplicant_send_2_of_4() local
588 extra_len = wpabuf_len(sm->test_eapol_m2_elems); in wpa_supplicant_send_2_of_4()
590 pad_len = (wpa_ie_len + extra_len) % 8; in wpa_supplicant_send_2_of_4()
593 extra_len += pad_len + 8; in wpa_supplicant_send_2_of_4()
600 NULL, hdrlen + wpa_ie_len + extra_len, in wpa_supplicant_send_2_of_4()
633 WPA_PUT_BE16(key_mic + mic_len, wpa_ie_len + extra_len); in wpa_supplicant_send_2_of_4()
648 extra_len = wpabuf_len(sm->test_eapol_m2_elems); in wpa_supplicant_send_2_of_4()
650 extra_len = 0; in wpa_supplicant_send_2_of_4()
651 plain_len = wpa_ie_len + extra_len + pad_len; in wpa_supplicant_send_2_of_4()
2225 size_t kde_len = 0, extra_len = 0; in wpa_supplicant_send_4_of_4() local
[all …]
/freebsd/sys/cam/scsi/
H A Dscsi_all.c3752 if (SSD_DESC_IS_PRESENT(sense, sense_len, extra_len) == 0) in scsi_desc_iterate()
3765 desc_len = MIN(desc_len, MIN(sense->extra_len, SSD_EXTRA_MAX)); in scsi_desc_iterate()
3985 sense->extra_len = desc - &sense->sense_desc[0]; in scsi_set_sense_data_desc_va()
3986 *sense_len = offsetof(struct scsi_sense_data_desc, extra_len) + 1 + in scsi_set_sense_data_desc_va()
3987 sense->extra_len; in scsi_set_sense_data_desc_va()
4010 sense->extra_len = 0; in scsi_set_sense_data_fixed_va()
4013 sense->extra_len = MAX(sense->extra_len, 5); in scsi_set_sense_data_fixed_va()
4018 sense->extra_len = MAX(sense->extra_len, 6); in scsi_set_sense_data_fixed_va()
4043 sense->extra_len = MAX(sense->extra_len, 10); in scsi_set_sense_data_fixed_va()
4056 sense->extra_len = MAX(sense->extra_len, 4); in scsi_set_sense_data_fixed_va()
[all …]
H A Dscsi_all.h3329 uint8_t extra_len; member
3346 (offsetof(struct scsi_sense_data_fixed, extra_len) + \
3347 sizeof(sense->extra_len))) <= sense->extra_len) ? 1 : 0)
3369 uint8_t extra_len; member
H A Dscsi_targ_bh.c120 - offsetof(struct scsi_sense_data_fixed, extra_len),
/freebsd/contrib/bearssl/test/
H A Dtest_x509.c106 SB_expand(string_builder *sb, size_t extra_len) in SB_expand() argument
111 if (extra_len < (sb->len - sb->ptr)) { in SB_expand()
115 if (extra_len > (nlen - sb->ptr)) { in SB_expand()
116 nlen = sb->ptr + extra_len; in SB_expand()
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_aka.c1030 size_t extra_len) in eap_aka_verify_mac() argument
1034 extra_len); in eap_aka_verify_mac()
1035 return eap_sim_verify_mac(data->k_aut, req, mac, extra, extra_len); in eap_aka_verify_mac()
/freebsd/tools/tools/vhba/
H A Dvhba.c160 csio->sense_data.extra_len = 10; in vhba_fill_sense()
/freebsd/sys/contrib/zlib/
H A Ddeflate.c868 wraplen += 2 + s->gzhead->extra_len; in deflateBound()
1072 put_byte(s, s->gzhead->extra_len & 0xff); in deflate()
1073 put_byte(s, (s->gzhead->extra_len >> 8) & 0xff); in deflate()
1085 uInt left = (s->gzhead->extra_len & 0xffff) - s->gzindex; in deflate()
H A Dzlib.h120 uInt extra_len; /* extra field length (valid if extra != Z_NULL) */ member
H A Dinflate.c716 state->head->extra_len = (unsigned)hold; in inflate()
732 (len = state->head->extra_len - state->length) < in inflate()
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_aka.c949 size_t extra_len) in eap_aka_verify_mac() argument
953 extra_len); in eap_aka_verify_mac()
954 return eap_sim_verify_mac(data->k_aut, req, mac, extra, extra_len); in eap_aka_verify_mac()
/freebsd/sys/dev/firewire/
H A Dsbp.c1506 sense->extra_len = 0; in sbp_scsi_status()
1509 sense->extra_len = 6; in sbp_scsi_status()
1512 sense->extra_len = 10; in sbp_scsi_status()
/freebsd/contrib/wpa/src/common/
H A Ddpp.c1660 size_t extra_len = 1000; in dpp_build_conf_obj_dpp() local
1698 extra_len += os_strlen(auth->groups_override); in dpp_build_conf_obj_dpp()
1702 extra_len += os_strlen(conf->group_id); in dpp_build_conf_obj_dpp()
1705 dppcon = wpabuf_alloc(extra_len + 2 * nak_curve->prime_len * 4 / 3); in dpp_build_conf_obj_dpp()
/freebsd/sys/dev/aacraid/
H A Daacraid_cam.c157 sense->extra_len = 6; in aac_set_scsi_error()