Lines Matching refs:elem_addr
654 struct bt_mesh_msg_ctx *ctx, uint16_t elem_addr, in send_mod_pub_status() argument
664 net_buf_simple_add_le16(&msg, elem_addr); in send_mod_pub_status()
696 uint16_t elem_addr, pub_addr = 0U; in mod_pub_get() local
707 elem_addr = net_buf_simple_pull_le16(buf); in mod_pub_get()
708 if (!BT_MESH_ADDR_IS_UNICAST(elem_addr)) { in mod_pub_get()
715 LOG_DBG("elem_addr 0x%04x", elem_addr); in mod_pub_get()
717 elem = bt_mesh_elem_find(elem_addr); in mod_pub_get()
740 return send_mod_pub_status(model, ctx, elem_addr, pub_addr, vnd, mod, in mod_pub_get()
749 uint16_t elem_addr, pub_addr, pub_app_idx; in mod_pub_set() local
760 elem_addr = net_buf_simple_pull_le16(buf); in mod_pub_set()
761 if (!BT_MESH_ADDR_IS_UNICAST(elem_addr)) { in mod_pub_set()
781 LOG_DBG("elem_addr 0x%04x pub_addr 0x%04x cred_flag %u", elem_addr, pub_addr, cred_flag); in mod_pub_set()
787 elem = bt_mesh_elem_find(elem_addr); in mod_pub_set()
805 return send_mod_pub_status(model, ctx, elem_addr, pub_addr, vnd, mod, in mod_pub_set()
846 uint16_t elem_addr, pub_app_idx; in mod_pub_va_set() local
859 elem_addr = net_buf_simple_pull_le16(buf); in mod_pub_va_set()
860 if (!BT_MESH_ADDR_IS_UNICAST(elem_addr)) { in mod_pub_va_set()
879 LOG_DBG("elem_addr 0x%04x cred_flag %u", elem_addr, cred_flag); in mod_pub_va_set()
885 elem = bt_mesh_elem_find(elem_addr); in mod_pub_va_set()
913 return send_mod_pub_status(model, ctx, elem_addr, pub_addr, vnd, mod, in mod_pub_va_set()
919 uint16_t elem_addr, uint16_t sub_addr, uint8_t *mod_id, in send_mod_sub_status() argument
924 LOG_DBG("status 0x%02x elem_addr 0x%04x sub_addr 0x%04x", status, elem_addr, sub_addr); in send_mod_sub_status()
929 net_buf_simple_add_le16(&msg, elem_addr); in send_mod_sub_status()
949 uint16_t elem_addr, sub_addr; in mod_sub_add() local
962 elem_addr = net_buf_simple_pull_le16(buf); in mod_sub_add()
963 if (!BT_MESH_ADDR_IS_UNICAST(elem_addr)) { in mod_sub_add()
970 LOG_DBG("elem_addr 0x%04x, sub_addr 0x%04x", elem_addr, sub_addr); in mod_sub_add()
974 elem = bt_mesh_elem_find(elem_addr); in mod_sub_add()
1019 return send_mod_sub_status(model, ctx, status, elem_addr, sub_addr, in mod_sub_add()
1027 uint16_t elem_addr, sub_addr; in mod_sub_del() local
1040 elem_addr = net_buf_simple_pull_le16(buf); in mod_sub_del()
1041 if (!BT_MESH_ADDR_IS_UNICAST(elem_addr)) { in mod_sub_del()
1048 LOG_DBG("elem_addr 0x%04x sub_addr 0x%04x", elem_addr, sub_addr); in mod_sub_del()
1052 elem = bt_mesh_elem_find(elem_addr); in mod_sub_del()
1090 return send_mod_sub_status(model, ctx, status, elem_addr, sub_addr, in mod_sub_del()
1109 uint16_t elem_addr, sub_addr; in mod_sub_overwrite() local
1121 elem_addr = net_buf_simple_pull_le16(buf); in mod_sub_overwrite()
1122 if (!BT_MESH_ADDR_IS_UNICAST(elem_addr)) { in mod_sub_overwrite()
1129 LOG_DBG("elem_addr 0x%04x sub_addr 0x%04x", elem_addr, sub_addr); in mod_sub_overwrite()
1133 elem = bt_mesh_elem_find(elem_addr); in mod_sub_overwrite()
1172 return send_mod_sub_status(model, ctx, status, elem_addr, sub_addr, in mod_sub_overwrite()
1182 uint16_t elem_addr; in mod_sub_del_all() local
1192 elem_addr = net_buf_simple_pull_le16(buf); in mod_sub_del_all()
1193 if (!BT_MESH_ADDR_IS_UNICAST(elem_addr)) { in mod_sub_del_all()
1198 LOG_DBG("elem_addr 0x%04x", elem_addr); in mod_sub_del_all()
1202 elem = bt_mesh_elem_find(elem_addr); in mod_sub_del_all()
1225 return send_mod_sub_status(model, ctx, status, elem_addr, in mod_sub_del_all()
1383 uint16_t elem_addr, sub_addr = BT_MESH_ADDR_UNASSIGNED; in mod_sub_va_add() local
1398 elem_addr = net_buf_simple_pull_le16(buf); in mod_sub_va_add()
1399 if (!BT_MESH_ADDR_IS_UNICAST(elem_addr)) { in mod_sub_va_add()
1406 LOG_DBG("elem_addr 0x%04x", elem_addr); in mod_sub_va_add()
1409 elem = bt_mesh_elem_find(elem_addr); in mod_sub_va_add()
1476 return send_mod_sub_status(model, ctx, status, elem_addr, sub_addr, in mod_sub_va_add()
1485 uint16_t elem_addr, sub_addr = BT_MESH_ADDR_UNASSIGNED; in mod_sub_va_del() local
1499 elem_addr = net_buf_simple_pull_le16(buf); in mod_sub_va_del()
1500 if (!BT_MESH_ADDR_IS_UNICAST(elem_addr)) { in mod_sub_va_del()
1507 LOG_DBG("elem_addr 0x%04x", elem_addr); in mod_sub_va_del()
1511 elem = bt_mesh_elem_find(elem_addr); in mod_sub_va_del()
1560 return send_mod_sub_status(model, ctx, status, elem_addr, sub_addr, in mod_sub_va_del()
1569 uint16_t elem_addr, sub_addr = BT_MESH_ADDR_UNASSIGNED; in mod_sub_va_overwrite() local
1582 elem_addr = net_buf_simple_pull_le16(buf); in mod_sub_va_overwrite()
1583 if (!BT_MESH_ADDR_IS_UNICAST(elem_addr)) { in mod_sub_va_overwrite()
1590 LOG_DBG("elem_addr 0x%04x", elem_addr); in mod_sub_va_overwrite()
1594 elem = bt_mesh_elem_find(elem_addr); in mod_sub_va_overwrite()
1636 return send_mod_sub_status(model, ctx, status, elem_addr, sub_addr, in mod_sub_va_overwrite()
1827 uint16_t elem_addr, uint16_t app_idx, in create_mod_app_status() argument
1833 net_buf_simple_add_le16(msg, elem_addr); in create_mod_app_status()
1848 uint16_t elem_addr, key_app_idx; in mod_app_bind() local
1859 elem_addr = net_buf_simple_pull_le16(buf); in mod_app_bind()
1860 if (!BT_MESH_ADDR_IS_UNICAST(elem_addr)) { in mod_app_bind()
1868 elem = bt_mesh_elem_find(elem_addr); in mod_app_bind()
1897 create_mod_app_status(&msg, mod, vnd, elem_addr, key_app_idx, status, in mod_app_bind()
1912 uint16_t elem_addr, key_app_idx; in mod_app_unbind() local
1923 elem_addr = net_buf_simple_pull_le16(buf); in mod_app_unbind()
1924 if (!BT_MESH_ADDR_IS_UNICAST(elem_addr)) { in mod_app_unbind()
1932 elem = bt_mesh_elem_find(elem_addr); in mod_app_unbind()
1954 create_mod_app_status(&msg, mod, vnd, elem_addr, key_app_idx, status, in mod_app_unbind()
1978 uint16_t elem_addr; in mod_app_get() local
1986 elem_addr = net_buf_simple_pull_le16(buf); in mod_app_get()
1987 if (!BT_MESH_ADDR_IS_UNICAST(elem_addr)) { in mod_app_get()
1994 LOG_DBG("elem_addr 0x%04x", elem_addr); in mod_app_get()
1996 elem = bt_mesh_elem_find(elem_addr); in mod_app_get()
2020 net_buf_simple_add_le16(&msg, elem_addr); in mod_app_get()