Searched refs:net_buf_simple_add (Results 1 – 10 of 10) sorted by relevance
/AliOS-Things-master/components/ble_host/bt_host/port/core/ |
A D | buf.c | 897 return memcpy(net_buf_simple_add(buf, len), mem, len); in net_buf_simple_add_mem() 906 u8 = net_buf_simple_add(buf, 1); in net_buf_simple_add_u8() 916 sys_put_le16(val, net_buf_simple_add(buf, sizeof(val))); in net_buf_simple_add_le16() 923 sys_put_be16(val, net_buf_simple_add(buf, sizeof(val))); in net_buf_simple_add_be16() 930 sys_put_le24(val, net_buf_simple_add(buf, 3)); in net_buf_simple_add_le24() 937 sys_put_be24(val, net_buf_simple_add(buf, 3)); in net_buf_simple_add_be24() 944 sys_put_le32(val, net_buf_simple_add(buf, sizeof(val))); in net_buf_simple_add_le32() 951 sys_put_be32(val, net_buf_simple_add(buf, sizeof(val))); in net_buf_simple_add_be32() 958 sys_put_le48(val, net_buf_simple_add(buf, 6)); in net_buf_simple_add_le48() 965 sys_put_be48(val, net_buf_simple_add(buf, 6)); in net_buf_simple_add_be48() [all …]
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | health_srv.c | 54 test_id = net_buf_simple_add(msg, 1); in health_get_registered() 68 net_buf_simple_add(msg, fault_count); in health_get_registered() 88 test_id = net_buf_simple_add(msg, 1); in health_get_current() 89 company_ptr = net_buf_simple_add(msg, sizeof(company_id)); in health_get_current() 104 net_buf_simple_add(msg, fault_count); in health_get_current()
|
A D | crypto.c | 624 net_buf_simple_add(buf, mic_len); in bt_mesh_net_encrypt() 699 net_buf_simple_add(buf, APP_MIC_LEN(aszmic)); in bt_mesh_app_encrypt() 724 net_buf_simple_add(out, buf->len); in bt_mesh_app_decrypt()
|
A D | cfg_srv.c | 1069 memset(net_buf_simple_add(&msg, 7), 0, 7); in send_mod_pub_status() 1083 memcpy(net_buf_simple_add(&msg, 4), mod_id, 4); in send_mod_pub_status() 1085 memcpy(net_buf_simple_add(&msg, 2), mod_id, 2); in send_mod_pub_status() 1417 memcpy(net_buf_simple_add(&msg, 4), mod_id, 4); in send_mod_sub_status() 1419 memcpy(net_buf_simple_add(&msg, 2), mod_id, 2); in send_mod_sub_status() 2444 memcpy(net_buf_simple_add(msg, 4), mod_id, 4); in create_mod_app_status() 2446 memcpy(net_buf_simple_add(msg, 2), mod_id, 2); in create_mod_app_status() 2927 memcpy(net_buf_simple_add(&msg, sizeof(*orig_msg)), orig_msg, sizeof(*orig_msg)); in hb_pub_send_status()
|
A D | friend.c | 436 upd = net_buf_simple_add(&sdu, sizeof(*upd)); in encode_update() 454 cfm = net_buf_simple_add(&sdu, sizeof(*cfm)); in enqueue_sub_cfm() 754 off = net_buf_simple_add(&sdu, sizeof(*off)); in enqueue_offer()
|
A D | prov.c | 875 if (bt_mesh_prov_conf(plink.conf_key, plink.rand, plink.auth, net_buf_simple_add(&cfm, 16))) { in send_confirm() 990 sys_memcpy_swap(net_buf_simple_add(&buf, 32), key, 32); in send_pub_key() 991 sys_memcpy_swap(net_buf_simple_add(&buf, 32), &key[32], 32); in send_pub_key()
|
A D | provisioner_prov.c | 2015 net_buf_simple_add(buf, 16))) { in send_confirm() 2202 sys_memcpy_swap(net_buf_simple_add(buf, 32), key, 32); in send_pub_key() 2203 sys_memcpy_swap(net_buf_simple_add(buf, 32), &key[32], 32); in send_pub_key() 2438 err = bt_mesh_prov_encrypt(session_key, nonce, pdu, net_buf_simple_add(buf, 33)); in send_prov_data()
|
A D | net.c | 1008 memcpy(net_buf_simple_add(buf, data_len), data, data_len); in net_decrypt()
|
/AliOS-Things-master/components/ble_host/include/net/ |
A D | buf.h | 190 void *net_buf_simple_add(struct net_buf_simple *buf, size_t len); 1309 #define net_buf_add(buf, len) net_buf_simple_add(&(buf)->b, len)
|
/AliOS-Things-master/components/ble_mesh/bt_shell/bt_mesh/ |
A D | shell.c | 1116 net_buf_simple_add(&msg, len); in cmd_net_send()
|
Completed in 51 milliseconds