Home
last modified time | relevance | path

Searched refs:datalen (Results 1 – 25 of 293) sorted by relevance

12345678910>>...12

/freebsd/usr.sbin/bluetooth/sdpd/
H A Dprofile.c111 uint8_t const *data, uint32_t datalen) in common_profile_create_service_record_handle()
131 uint8_t const *data, uint32_t datalen) in common_profile_create_service_class_id_list()
133 int32_t len = 3 * (datalen >>= 1); in common_profile_create_service_class_id_list()
141 for (; datalen > 0; datalen --) { in common_profile_create_service_class_id_list()
163 uint8_t const *data, uint32_t datalen) in common_profile_create_bluetooth_profile_descriptor_list()
165 int32_t len = 8 * (datalen >>= 2); in common_profile_create_bluetooth_profile_descriptor_list()
173 for (; datalen > 0; datalen --) { in common_profile_create_bluetooth_profile_descriptor_list()
197 uint8_t const *data, uint32_t datalen) in common_profile_create_language_base_attribute_id_list()
110 common_profile_create_service_record_handle(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_service_record_handle() argument
130 common_profile_create_service_class_id_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_service_class_id_list() argument
162 common_profile_create_bluetooth_profile_descriptor_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_bluetooth_profile_descriptor_list() argument
196 common_profile_create_language_base_attribute_id_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_language_base_attribute_id_list() argument
236 common_profile_create_service_provider_name(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_service_provider_name() argument
252 common_profile_create_string8(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_string8() argument
271 common_profile_create_service_availability(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) common_profile_create_service_availability() argument
294 rfcomm_profile_create_protocol_descriptor_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) rfcomm_profile_create_protocol_descriptor_list() argument
331 obex_profile_create_protocol_descriptor_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) obex_profile_create_protocol_descriptor_list() argument
368 obex_profile_create_supported_formats_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) obex_profile_create_supported_formats_list() argument
391 common_profile_always_valid(uint8_t const * data,uint32_t datalen) common_profile_always_valid() argument
401 common_profile_server_channel_valid(uint8_t const * data,uint32_t datalen) common_profile_server_channel_valid() argument
415 obex_profile_data_valid(uint8_t const * data,uint32_t datalen) obex_profile_data_valid() argument
435 bnep_profile_create_protocol_descriptor_list(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) bnep_profile_create_protocol_descriptor_list() argument
489 bnep_profile_create_security_description(uint8_t * buf,uint8_t const * const eob,uint8_t const * data,uint32_t datalen) bnep_profile_create_security_description() argument
[all...]
H A Dnap.c46 uint8_t const *data, uint32_t datalen) in nap_profile_create_service_class_id_list() argument
61 uint8_t const *data, uint32_t datalen) in nap_profile_create_bluetooth_profile_descriptor_list() argument
77 uint8_t const *data, uint32_t datalen) in nap_profile_create_service_name() argument
89 uint8_t const *data, uint32_t datalen) in nap_profile_create_service_description() argument
102 uint8_t const *data, uint32_t datalen) in nap_profile_create_protocol_descriptor_list() argument
115 uint8_t const *data, uint32_t datalen) in nap_profile_create_security_description() argument
128 uint8_t const *data, uint32_t datalen) in nap_profile_create_net_access_type() argument
145 uint8_t const *data, uint32_t datalen) in nap_profile_create_max_net_access_rate() argument
162 uint8_t const *data, uint32_t datalen) in nap_profile_create_service_availability() argument
172 nap_profile_data_valid(uint8_t const *data, uint32_t datalen) in nap_profile_data_valid() argument
H A Dpanu.c46 uint8_t const *data, uint32_t datalen) in panu_profile_create_service_class_id_list() argument
61 uint8_t const *data, uint32_t datalen) in panu_profile_create_bluetooth_profile_descriptor_list() argument
77 uint8_t const *data, uint32_t datalen) in panu_profile_create_service_name() argument
89 uint8_t const *data, uint32_t datalen) in panu_profile_create_service_description() argument
103 uint8_t const *data, uint32_t datalen) in panu_profile_create_protocol_descriptor_list() argument
114 panu_profile_data_valid(uint8_t const *data, uint32_t datalen) in panu_profile_data_valid() argument
124 uint8_t const *data, uint32_t datalen) in panu_profile_create_service_availability() argument
136 uint8_t const *data, uint32_t datalen) in panu_profile_create_security_description() argument
H A Dgn.c46 uint8_t const *data, uint32_t datalen) in gn_profile_create_service_class_id_list() argument
61 uint8_t const *data, uint32_t datalen) in gn_profile_create_bluetooth_profile_descriptor_list() argument
77 uint8_t const *data, uint32_t datalen) in gn_profile_create_service_name() argument
89 uint8_t const *data, uint32_t datalen) in gn_profile_create_service_description() argument
103 uint8_t const *data, uint32_t datalen) in gn_profile_create_protocol_descriptor_list() argument
116 uint8_t const *data, uint32_t datalen) in gn_profile_create_security_description() argument
129 uint8_t const *data, uint32_t datalen) in gn_profile_create_service_availability() argument
139 gn_profile_data_valid(uint8_t const *data, uint32_t datalen) in gn_profile_data_valid() argument
H A Daudio_sink.c40 uint8_t const *data, uint32_t datalen) in audio_sink_profile_create_service_class_id_list() argument
55 uint8_t const *data, uint32_t datalen) in audio_sink_profile_create_protocol_descriptor_list() argument
90 uint8_t const *data, uint32_t datalen) in audio_sink_profile_create_browse_group_list() argument
108 uint8_t const *data, uint32_t datalen) in audio_sink_profile_create_bluetooth_profile_descriptor_list() argument
124 uint8_t const *data, uint32_t datalen) in audio_sink_profile_create_service_name() argument
136 uint8_t const *data, uint32_t datalen) in audio_sink_create_supported_features() argument
151 audio_sink_profile_valid(uint8_t const *data, uint32_t datalen) in audio_sink_profile_valid() argument
154 if (datalen < sizeof(struct sdp_audio_sink_profile)) in audio_sink_profile_valid()
H A Daudio_source.c40 uint8_t const *data, uint32_t datalen) in audio_source_profile_create_service_class_id_list() argument
55 uint8_t const *data, uint32_t datalen) in audio_source_profile_create_protocol_descriptor_list() argument
90 uint8_t const *data, uint32_t datalen) in audio_source_profile_create_browse_group_list() argument
108 uint8_t const *data, uint32_t datalen) in audio_source_profile_create_bluetooth_profile_descriptor_list() argument
124 uint8_t const *data, uint32_t datalen) in audio_source_profile_create_service_name() argument
136 uint8_t const *data, uint32_t datalen) in audio_source_create_supported_features() argument
151 audio_source_profile_valid(uint8_t const *data, uint32_t datalen) in audio_source_profile_valid() argument
154 if (datalen < sizeof(struct sdp_audio_source_profile)) in audio_source_profile_valid()
H A Dsd.c44 uint8_t const *data, uint32_t datalen) in sd_profile_create_service_class_id_list() argument
59 uint8_t const *data, uint32_t datalen) in sd_profile_create_bluetooth_profile_descriptor_list() argument
75 uint8_t const *data, uint32_t datalen) in sd_profile_create_service_id() argument
96 uint8_t const *data, uint32_t datalen) in sd_profile_create_service_name() argument
108 uint8_t const *data, uint32_t datalen) in sd_profile_create_protocol_descriptor_list() argument
132 uint8_t const *data, uint32_t datalen) in sd_profile_create_browse_group_list() argument
156 uint8_t const *data, uint32_t datalen) in sd_profile_create_version_number_list() argument
183 uint8_t const *data, uint32_t datalen) in sd_profile_create_service_database_state() argument
H A Dlan.c46 uint8_t const *data, uint32_t datalen) in lan_profile_create_service_class_id_list() argument
61 uint8_t const *data, uint32_t datalen) in lan_profile_create_bluetooth_profile_descriptor_list() argument
77 uint8_t const *data, uint32_t datalen) in lan_profile_create_service_name() argument
89 uint8_t const *data, uint32_t datalen) in lan_profile_create_protocol_descriptor_list() argument
102 uint8_t const *data, uint32_t datalen) in lan_profile_create_service_availability() argument
114 uint8_t const *data, uint32_t datalen) in lan_profile_create_ip_subnet() argument
136 lan_profile_data_valid(uint8_t const *data, uint32_t datalen) in lan_profile_data_valid() argument
/freebsd/usr.sbin/bluetooth/hccontrol/
H A Dadv_data.c45 static char* const adv_uuid2str(int datalen, uint8_t* data, char* buffer,
64 uint8_t datalen = advdata[n]; in print_adv_data() local
68 datalen--; in print_adv_data()
74 datalen, in print_adv_data()
84 datalen, in print_adv_data()
94 datalen, in print_adv_data()
104 datalen, in print_adv_data()
113 datalen, in print_adv_data()
122 datalen, in print_adv_data()
136 datalen, in print_adv_data()
[all …]
/freebsd/usr.sbin/efivar/
H A Defivar.c139 get_value(char *val, size_t *datalen) in get_value() argument
144 *datalen = strlen(val); in get_value()
148 *datalen = sizeof(buffer); in get_value()
149 *datalen = read(0, buffer, *datalen); in get_value()
158 size_t datalen; in append_variable() local
162 data = get_value(val, &datalen); in append_variable()
163 if (efi_append_variable(guid, vname, data, datalen, attrib) < 0) in append_variable()
183 size_t datalen; in write_variable() local
187 data = get_value(val, &datalen); in write_variable()
188 if (efi_set_variable(guid, vname, data, datalen, attrib) < 0) in write_variable()
[all …]
H A Defiutil.c47 asciidump(uint8_t *data, size_t datalen) in asciidump() argument
53 for (i = 0; i < datalen; i++) { in asciidump()
74 utf8dump(uint8_t *data, size_t datalen) in utf8dump() argument
83 ucs2 = malloc(datalen + sizeof(efi_char)); in utf8dump()
84 memcpy(ucs2, data, datalen); in utf8dump()
85 ucs2[datalen / sizeof(efi_char)] = 0; in utf8dump()
93 hexdump(uint8_t *data, size_t datalen) in hexdump() argument
97 for (i = 0; i < datalen; i++) { in hexdump()
109 bindump(uint8_t *data, size_t datalen) in bindump() argument
111 write(1, data, datalen); in bindump()
[all …]
/freebsd/sys/netinet/
H A Din_rss.c64 u_int datalen; in rss_hash_ip4_2tuple() local
66 datalen = 0; in rss_hash_ip4_2tuple()
67 bcopy(&src, &data[datalen], sizeof(src)); in rss_hash_ip4_2tuple()
68 datalen += sizeof(src); in rss_hash_ip4_2tuple()
69 bcopy(&dst, &data[datalen], sizeof(dst)); in rss_hash_ip4_2tuple()
70 datalen += sizeof(dst); in rss_hash_ip4_2tuple()
71 return (rss_hash(datalen, data)); in rss_hash_ip4_2tuple()
83 u_int datalen; in rss_hash_ip4_4tuple() local
85 datalen = 0; in rss_hash_ip4_4tuple()
86 bcopy(&src, &data[datalen], sizeof(src)); in rss_hash_ip4_4tuple()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-tcp.c65 u_int datalen, int exp);
441 u_int i, opt, datalen; in tcp_print() local
462 datalen = 0; in tcp_print()
473 datalen = 2; in tcp_print()
474 LENCHECK(datalen); in tcp_print()
479 datalen = 1; in tcp_print()
480 LENCHECK(datalen); in tcp_print()
485 datalen = len - 2; in tcp_print()
486 if (datalen % 8 != 0) { in tcp_print()
491 ND_PRINT(" %u ", datalen / 8); in tcp_print()
[all …]
/freebsd/lib/libopenbsd/
H A Dimsg.c126 size_t av, left, datalen; in imsg_get() local
141 datalen = imsg->hdr.len - IMSG_HEADER_SIZE; in imsg_get()
143 if (datalen == 0) in imsg_get()
145 else if ((imsg->data = malloc(datalen)) == NULL) in imsg_get()
153 memcpy(imsg->data, ibuf->r.rptr, datalen); in imsg_get()
162 return (datalen + IMSG_HEADER_SIZE); in imsg_get()
167 pid_t pid, int fd, const void *data, u_int16_t datalen) in imsg_compose() argument
171 if ((wbuf = imsg_create(ibuf, type, peerid, pid, datalen)) == NULL) in imsg_compose()
174 if (imsg_add(wbuf, data, datalen) == -1) in imsg_compose()
189 int i, datalen = 0; in imsg_composev() local
[all …]
/freebsd/sys/netinet6/
H A Din6_rss.c65 u_int datalen; in rss_hash_ip6_2tuple() local
67 datalen = 0; in rss_hash_ip6_2tuple()
68 bcopy(src, &data[datalen], sizeof(*src)); in rss_hash_ip6_2tuple()
69 datalen += sizeof(*src); in rss_hash_ip6_2tuple()
70 bcopy(dst, &data[datalen], sizeof(*dst)); in rss_hash_ip6_2tuple()
71 datalen += sizeof(*dst); in rss_hash_ip6_2tuple()
72 return (rss_hash(datalen, data)); in rss_hash_ip6_2tuple()
84 u_int datalen; in rss_hash_ip6_4tuple() local
86 datalen = 0; in rss_hash_ip6_4tuple()
87 bcopy(src, &data[datalen], sizeof(*src)); in rss_hash_ip6_4tuple()
[all …]
/freebsd/sys/netlink/
H A Dnetlink_message_writer.c109 nw->buf->datalen -= nw->buf->datalen - completed_len; in _nlmsg_flush()
113 if (nw->buf->datalen == 0) { in _nlmsg_flush()
147 "reclaim", nw->buf->datalen, nw->buf->buflen, required_len); in _nlmsg_refill_buffer()
151 (char *)nw->hdr - nw->buf->data : nw->buf->datalen; in _nlmsg_refill_buffer()
173 last_len = nw->buf->datalen - completed_len; in _nlmsg_refill_buffer()
176 new->datalen = last_len; in _nlmsg_refill_buffer()
190 new->datalen, new->buflen); in _nlmsg_refill_buffer()
206 if (__predict_false(nb->datalen + required_len > nb->buflen)) { in _nlmsg_add()
212 hdr = (struct nlmsghdr *)(&nb->data[nb->datalen]); in _nlmsg_add()
221 nb->datalen += sizeof(struct nlmsghdr); in _nlmsg_add()
[all …]
H A Dnetlink_io.c64 nb->datalen = nb->offset = 0; in nl_buf_alloc()
121 sb->sb_acc -= nb->datalen; in nl_process_received_one()
122 sb->sb_ccc -= nb->datalen; in nl_process_received_one()
205 MPASS(nw->buf->datalen > 0); in nl_send()
211 nw->buf->datalen, nw->num_messages, hdr->nlmsg_type, in nl_send()
229 nlp->nl_dropped_bytes += nb->datalen; in nl_send()
233 (unsigned long)nlp->nl_dropped_bytes, nb->datalen); in nl_send()
241 sb->sb_acc += nb->datalen; in nl_send()
242 sb->sb_ccc += nb->datalen; in nl_send()
335 .lb.base = &nb->data[roundup2(nb->datalen, 8)], in nl_process_nbuf()
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c398 uint64_t crypt, crypto_key_t *key, uint8_t *ivbuf, uint_t datalen, in zio_do_crypt_uio_opencrypto() argument
408 datalen, auth_len); in zio_do_crypt_uio_opencrypto()
624 zio_crypt_do_hmac(zio_crypt_key_t *key, uint8_t *data, uint_t datalen, in zio_crypt_do_hmac() argument
631 crypto_mac(&key->zk_hmac_key, data, datalen, in zio_crypt_do_hmac()
641 uint_t datalen, uint8_t *ivbuf, uint8_t *salt) in zio_crypt_generate_iv_salt_dedup() argument
646 ret = zio_crypt_do_hmac(key, data, datalen, in zio_crypt_generate_iv_salt_dedup()
803 zio_crypt_copy_dnode_bonus(abd_t *src_abd, uint8_t *dst, uint_t datalen) in zio_crypt_copy_dnode_bonus() argument
805 uint_t i, max_dnp = datalen >> DNODE_SHIFT; in zio_crypt_copy_dnode_bonus()
809 src = abd_borrow_buf_copy(src_abd, datalen); in zio_crypt_copy_dnode_bonus()
824 abd_return_buf(src_abd, src, datalen); in zio_crypt_copy_dnode_bonus()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c393 crypto_ctx_template_t tmpl, uint8_t *ivbuf, uint_t datalen, in zio_do_crypt_uio() argument
423 plain_full_len = datalen; in zio_do_crypt_uio()
425 plain_full_len = datalen + maclen; in zio_do_crypt_uio()
463 cipherdata.cd_length = datalen + maclen; in zio_do_crypt_uio()
677 zio_crypt_do_hmac(zio_crypt_key_t *key, uint8_t *data, uint_t datalen, in zio_crypt_do_hmac() argument
695 in_data.cd_length = datalen; in zio_crypt_do_hmac()
724 uint_t datalen, uint8_t *ivbuf, uint8_t *salt) in zio_crypt_generate_iv_salt_dedup() argument
729 ret = zio_crypt_do_hmac(key, data, datalen, in zio_crypt_generate_iv_salt_dedup()
886 zio_crypt_copy_dnode_bonus(abd_t *src_abd, uint8_t *dst, uint_t datalen) in zio_crypt_copy_dnode_bonus() argument
888 uint_t i, max_dnp = datalen >> DNODE_SHIFT; in zio_crypt_copy_dnode_bonus()
[all …]
/freebsd/contrib/atf/atf-c/
H A Derror.c59 error_init(atf_error_t err, const char *type, void *data, size_t datalen, in error_init() argument
64 PRE(data != NULL || datalen == 0); in error_init()
65 PRE(datalen != 0 || data == NULL); in error_init()
75 err->m_data = malloc(datalen); in error_init()
79 memcpy(err->m_data, data, datalen); in error_init()
90 atf_error_new(const char *type, void *data, size_t datalen, in atf_error_new() argument
96 PRE(data != NULL || datalen == 0); in atf_error_new()
97 PRE(datalen != 0 || data == NULL); in atf_error_new()
103 if (!error_init(err, type, data, datalen, format)) { in atf_error_new()
/freebsd/lib/libsdp/
H A Dservice.c49 uint8_t const *data, uint32_t datalen, uint32_t *handle) in sdp_register_service() argument
59 datalen == 0 || !(ss->flags & SDP_SESSION_LOCAL)) { in sdp_register_service()
63 if (sizeof(pdu)+sizeof(uuid)+sizeof(*bdaddr)+datalen > SDP_LOCAL_MTU) { in sdp_register_service()
70 pdu.len = htons(sizeof(uuid) + sizeof(*bdaddr) + datalen); in sdp_register_service()
84 iov[3].iov_len = datalen; in sdp_register_service()
158 uint8_t const *data, uint32_t datalen) in sdp_change_service() argument
167 if (data == NULL || datalen == 0 || !(ss->flags & SDP_SESSION_LOCAL)) { in sdp_change_service()
171 if (sizeof(pdu) + sizeof(handle) + datalen > SDP_LOCAL_MTU) { in sdp_change_service()
178 pdu.len = htons(sizeof(handle) + datalen); in sdp_change_service()
189 iov[2].iov_len = datalen; in sdp_change_service()
/freebsd/crypto/heimdal/lib/wind/
H A Dtest-rw.c153 size_t datalen; in main() local
159 datalen = testcases[n].ucs2_len; in main()
160 assert(datalen < sizeof(data)); in main()
166 &datalen); in main()
177 if (datalen != testcases[n].ucs2_len) in main()
180 for (m = 0; m < datalen; m++) in main()
/freebsd/crypto/heimdal/lib/asn1/
H A Dtemplate.c209 size_t datalen, l; in _asn1_decode()
216 &datalen, &l); in _asn1_decode()
239 if (datalen == ASN1_INDEFINITE) { in _asn1_decode()
243 datalen = len; in _asn1_decode()
244 if (datalen < 2) in _asn1_decode()
247 datalen -= 2; in _asn1_decode()
248 } else if (datalen > len) in _asn1_decode()
263 ret = _asn1_decode(t->ptr, subflags, p, datalen, data, &newsize); in _asn1_decode()
267 if (newsize != datalen) in _asn1_decode()
270 len -= datalen; in _asn1_decode()
207 size_t datalen, l; _asn1_decode() local
378 size_t datalen; _asn1_decode() local
479 size_t l, datalen; _asn1_encode() local
663 size_t datalen; _asn1_encode() local
727 size_t datalen; _asn1_length() local
[all...]
/freebsd/crypto/heimdal/lib/gssapi/krb5/
H A Dwrap.c219 size_t len, total_len, padlength, datalen; in wrap_des() local
223 datalen = input_message_buffer->length; in wrap_des()
226 total_len += datalen; in wrap_des()
227 datalen += 8; in wrap_des()
230 datalen = input_message_buffer->length + padlength + 8; in wrap_des()
231 len = datalen + 22; in wrap_des()
275 EVP_DigestUpdate(md5, p, datalen); in wrap_des()
331 EVP_Cipher(des_ctx, p, p, datalen); in wrap_des()
361 size_t len, total_len, padlength, datalen; in wrap_des3() local
369 datalen = input_message_buffer->length; in wrap_des3()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzio_crypt.h133 uint_t datalen, uint8_t *ivbuf, uint8_t *salt);
141 void zio_crypt_copy_dnode_bonus(abd_t *src_abd, uint8_t *dst, uint_t datalen);
144 uint_t datalen, boolean_t byteswap, uint8_t *cksum);
146 uint_t datalen, boolean_t byteswap, uint8_t *cksum);
147 int zio_crypt_do_hmac(zio_crypt_key_t *key, uint8_t *data, uint_t datalen,
149 int zio_crypt_do_objset_hmacs(zio_crypt_key_t *key, void *data, uint_t datalen,
153 uint8_t *mac, uint_t datalen, uint8_t *plainbuf, uint8_t *cipherbuf,
157 uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,

12345678910>>...12