Home
last modified time | relevance | path

Searched refs:vlen (Results 1 – 25 of 30) sorted by relevance

12

/external/bluetooth/bluez/attrib/
Datt.c219 const uint8_t *value, int vlen, uint8_t *pdu, int len) in enc_find_by_type_req() argument
236 if (vlen > len - min_len) in enc_find_by_type_req()
237 vlen = len - min_len; in enc_find_by_type_req()
244 if (vlen > 0) { in enc_find_by_type_req()
245 memcpy(&pdu[7], value, vlen); in enc_find_by_type_req()
246 return min_len + vlen; in enc_find_by_type_req()
253 uint16_t *end, bt_uuid_t *uuid, uint8_t *value, int *vlen) in dec_find_by_type_req() argument
286 if (vlen) in dec_find_by_type_req()
287 *vlen = valuelen; in dec_find_by_type_req()
442 uint16_t enc_write_cmd(uint16_t handle, const uint8_t *value, int vlen, in enc_write_cmd() argument
[all …]
Datt.h259 const uint8_t *value, int vlen, uint8_t *pdu, int len);
261 uint16_t *end, bt_uuid_t *uuid, uint8_t *value, int *vlen);
271 uint16_t enc_write_cmd(uint16_t handle, const uint8_t *value, int vlen,
274 uint8_t *value, int *vlen);
276 uint16_t enc_write_req(uint16_t handle, const uint8_t *value, int vlen,
279 uint8_t *value, int *vlen);
288 uint16_t enc_read_resp(uint8_t *value, int vlen, uint8_t *pdu, int len);
289 uint16_t enc_read_blob_resp(uint8_t *value, int vlen, uint16_t offset,
291 uint16_t dec_read_resp(const uint8_t *pdu, int len, uint8_t *value, int *vlen);
Dgatt.c84 int vlen; in encode_discover_primary() local
91 vlen = sizeof(u16); in encode_discover_primary()
95 vlen = sizeof(u128); in encode_discover_primary()
98 plen = enc_find_by_type_req(start, end, &prim, value, vlen, in encode_discover_primary()
521 int vlen, GAttribResultFunc func, gpointer user_data) in gatt_write_char() argument
529 plen = enc_write_req(handle, value, vlen, buf, buflen); in gatt_write_char()
531 plen = enc_write_cmd(handle, value, vlen, buf, buflen); in gatt_write_char()
566 guint gatt_write_cmd(GAttrib *attrib, uint16_t handle, uint8_t *value, int vlen, in gatt_write_cmd() argument
574 plen = enc_write_cmd(handle, value, vlen, buf, buflen); in gatt_write_cmd()
Dgatt.h39 int vlen, GAttribResultFunc func, gpointer user_data);
44 guint gatt_write_cmd(GAttrib *attrib, uint16_t handle, uint8_t *value, int vlen,
Dclient.c93 size_t vlen; member
215 chr->vlen); in append_char_dict()
236 const uint8_t *value, size_t vlen) in characteristic_set_value() argument
238 chr->value = g_try_realloc(chr->value, vlen); in characteristic_set_value()
242 memcpy(chr->value, value, vlen); in characteristic_set_value()
243 chr->vlen = vlen; in characteristic_set_value()
262 &chr->value, chr->vlen, DBUS_TYPE_INVALID); in update_watchers()
Dgatttool.c229 int i, vlen; in char_read_cb() local
236 if (!dec_read_resp(pdu, plen, value, &vlen)) { in char_read_cb()
241 for (i = 0; i < vlen; i++) in char_read_cb()
Dinteractive.c261 int i, vlen; in char_read_cb() local
269 if (!dec_read_resp(pdu, plen, value, &vlen)) { in char_read_cb()
275 for (i = 0; i < vlen; i++) in char_read_cb()
/external/wpa_supplicant/
Deap_gpsk_common.c55 size_t vlen[2]; in eap_gpsk_gkdf_cmac() local
60 vlen[0] = sizeof(ibuf); in eap_gpsk_gkdf_cmac()
62 vlen[1] = data_len; in eap_gpsk_gkdf_cmac()
69 omac1_aes_128_vector(psk, 2, addr, vlen, hash); in eap_gpsk_gkdf_cmac()
89 size_t vlen[2]; in eap_gpsk_gkdf_sha256() local
94 vlen[0] = sizeof(ibuf); in eap_gpsk_gkdf_sha256()
96 vlen[1] = data_len; in eap_gpsk_gkdf_sha256()
103 hmac_sha256_vector(psk, 32, 2, addr, vlen, hash); in eap_gpsk_gkdf_sha256()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/
Deap_gpsk_common.c55 size_t vlen[2]; in eap_gpsk_gkdf_cmac() local
60 vlen[0] = sizeof(ibuf); in eap_gpsk_gkdf_cmac()
62 vlen[1] = data_len; in eap_gpsk_gkdf_cmac()
69 if (omac1_aes_128_vector(psk, 2, addr, vlen, hash)) in eap_gpsk_gkdf_cmac()
90 size_t vlen[2]; in eap_gpsk_gkdf_sha256() local
95 vlen[0] = sizeof(ibuf); in eap_gpsk_gkdf_sha256()
97 vlen[1] = data_len; in eap_gpsk_gkdf_sha256()
104 hmac_sha256_vector(psk, 32, 2, addr, vlen, hash); in eap_gpsk_gkdf_sha256()
/external/wpa_supplicant_8/src/eap_common/
Deap_gpsk_common.c52 size_t vlen[2]; in eap_gpsk_gkdf_cmac() local
57 vlen[0] = sizeof(ibuf); in eap_gpsk_gkdf_cmac()
59 vlen[1] = data_len; in eap_gpsk_gkdf_cmac()
66 if (omac1_aes_128_vector(psk, 2, addr, vlen, hash)) in eap_gpsk_gkdf_cmac()
87 size_t vlen[2]; in eap_gpsk_gkdf_sha256() local
92 vlen[0] = sizeof(ibuf); in eap_gpsk_gkdf_sha256()
94 vlen[1] = data_len; in eap_gpsk_gkdf_sha256()
101 hmac_sha256_vector(psk, 32, 2, addr, vlen, hash); in eap_gpsk_gkdf_sha256()
/external/ppp/pppd/plugins/radius/
Davpair.c267 int vlen; in rc_extract_vendor_specific_attributes() local
293 for (; attrlen; attrlen -= vlen+2, ptr += vlen) { in rc_extract_vendor_specific_attributes()
295 vlen = *ptr++; in rc_extract_vendor_specific_attributes()
296 vlen -= 2; in rc_extract_vendor_specific_attributes()
297 if (vlen < 0 || vlen > attrlen - 2) { in rc_extract_vendor_specific_attributes()
320 memcpy (pair->strvalue, (char *) ptr, (size_t) vlen); in rc_extract_vendor_specific_attributes()
321 pair->strvalue[vlen] = '\0'; in rc_extract_vendor_specific_attributes()
322 pair->lvalue = vlen; in rc_extract_vendor_specific_attributes()
/external/openssl/crypto/asn1/
Dasn1_gen.c119 static int parse_tagging(const char *vstart, int vlen, int *ptag, int *pclass);
282 int vlen = 0; in asn1_cb() local
293 vlen = len - (vstart - elem); in asn1_cb()
332 if (!parse_tagging(vstart, vlen, &arg->imp_tag, &arg->imp_class)) in asn1_cb()
338 if (!parse_tagging(vstart, vlen, &tmp_tag, &tmp_class)) in asn1_cb()
386 static int parse_tagging(const char *vstart, int vlen, int *ptag, int *pclass) in parse_tagging() argument
395 if (eptr && *eptr && (eptr > vstart + vlen)) in parse_tagging()
405 vlen -= eptr - vstart; in parse_tagging()
407 vlen = 0; in parse_tagging()
408 if (vlen) in parse_tagging()
/external/bluetooth/bluez/src/
Dattrib-server.c252 const uint8_t *value, int vlen) in client_cfg_attribute() argument
263 if (vlen == orig_attr->len && memcmp(orig_attr->data, value, vlen) == 0) in client_cfg_attribute()
273 a = g_malloc0(sizeof(*a) + vlen); in client_cfg_attribute()
275 memcpy(a->data, value, vlen); in client_cfg_attribute()
567 const uint8_t *value, int vlen, uint8_t *opdu, int mtu) in find_by_type() argument
589 if ((bt_uuid_cmp(&a->uuid, uuid) == 0) && (a->len == vlen) && in find_by_type()
590 (memcmp(a->data, value, vlen) == 0)) { in find_by_type()
723 const uint8_t *value, int vlen, in write_value() argument
743 client_attr = client_cfg_attribute(channel, a, value, vlen); in write_value()
747 attrib_db_update(a->handle, NULL, value, vlen, &a); in write_value()
[all …]
/external/kernel-headers/original/linux/nfsd/
Dxdr.h34 int vlen; member
42 int vlen; member
/external/chromium/third_party/libjingle/source/talk/base/
Dhttpbase.cc167 size_t vlen = eol - value; in ProcessLine() local
176 if ((vlen == 7) && (_strnicmp(value, "chunked", 7) == 0)) { in ProcessLine()
178 } else if ((vlen == 8) && (_strnicmp(value, "identity", 8) == 0)) { in ProcessLine()
185 return ProcessHeader(line, nlen, value, vlen, error); in ProcessLine()
834 size_t vlen, HttpError* error) { in ProcessHeader() argument
835 std::string sname(name, nlen), svalue(value, vlen); in ProcessHeader()
Dhttpbase.h69 const char* value, size_t vlen,
171 const char* value, size_t vlen,
Dphysicalsocketserver.cc437 socklen_t vlen = sizeof(value); in EstimateMTU() local
438 int err = getsockopt(s_, IPPROTO_IP, IP_MTU, &value, &vlen); in EstimateMTU()
/external/kernel-headers/original/linux/
Dcompat.h182 const struct compat_iovec __user *vec, unsigned long vlen);
184 const struct compat_iovec __user *vec, unsigned long vlen);
/external/dropbear/
Dsvr-chansession.c1027 int plen, vlen; in addnewvar() local
1030 vlen = strlen(var); in addnewvar()
1032 newvar = m_malloc(plen + vlen + 2); /* 2 is for '=' and '\0' */ in addnewvar()
1035 memcpy(&newvar[plen+1], var, vlen); in addnewvar()
1036 newvar[plen+vlen+1] = '\0'; in addnewvar()
/external/ppp/pppd/
Dlcp.c868 #define ACKCIENDP(opt, neg, class, val, vlen) \ argument
871 if ((len -= CILEN_CHAR + vlen) < 0) \
875 if (cilen != CILEN_CHAR + vlen || \
881 for (i = 0; i < vlen; ++i) { \
1416 #define REJCIENDP(opt, neg, class, val, vlen) \ argument
1418 len >= CILEN_CHAR + vlen && \
1420 p[1] == CILEN_CHAR + vlen) { \
1422 len -= CILEN_CHAR + vlen; \
1427 for (i = 0; i < vlen; ++i) { \
Dmain.c2041 int vlen, i; in update_db_entry() local
2046 vlen = 0; in update_db_entry()
2048 vlen += strlen(p) + 1; in update_db_entry()
2049 vbuf = malloc(vlen + 1); in update_db_entry()
2054 q += slprintf(q, vbuf + vlen - q, "%s;", p); in update_db_entry()
2059 dbuf.dsize = vlen; in update_db_entry()
/external/quake/quake/src/QW/client/
Dcl_cam.c87 static float vlen(vec3_t v) in vlen() function
195 d = vlen(v); in Cam_IsVisible()
376 len = vlen(vec); in Cam_Track()
/external/quake/quake/src/QW/progs/
Dsubs.qc86 len = vlen (vdestdelta);
147 len = vlen (destdelta);
Dcombat.qc272 points = 0.5*vlen (inflictor.origin - org);
309 points = 0.5*vlen (attacker.origin - head.origin);
/external/libpcap/
Dgencode.c5321 register int vlen; local
5324 vlen = 32;
5326 vlen = __pcap_atodn(s, &v);
5328 vlen = __pcap_atoin(s, &v);
5349 v <<= 32 - vlen;
5350 mask <<= 32 - vlen;

12