Lines Matching refs:elem_addr
518 uint16_t elem_addr; member
529 uint16_t elem_addr, mod_app_idx, mod_id, cid; in mod_app_status() local
542 elem_addr = net_buf_simple_pull_le16(buf); in mod_app_status()
556 if (param->elem_addr != elem_addr || in mod_app_status()
575 cli->cb->mod_app_status(cli, ctx->addr, status, elem_addr, in mod_app_status()
584 uint16_t elem_addr; member
597 uint16_t elem_addr, mod_id, cid; in mod_sub_list_handle() local
601 elem_addr = net_buf_simple_pull_le16(buf); in mod_sub_list_handle()
613 if (param->elem_addr != elem_addr || param->mod_id != mod_id || in mod_sub_list_handle()
640 cli->cb->mod_sub_list(cli, ctx->addr, status, elem_addr, mod_id, cid, buf); in mod_sub_list_handle()
653 uint16_t elem_addr, mod_id, cid; in mod_app_list_handle() local
657 elem_addr = net_buf_simple_pull_le16(buf); in mod_app_list_handle()
665 if (param->elem_addr != elem_addr || param->mod_id != mod_id || in mod_app_list_handle()
692 cli->cb->mod_app_list(cli, ctx->addr, status, elem_addr, mod_id, cid, buf); in mod_app_list_handle()
720 uint16_t elem_addr; member
731 uint16_t mod_id, cid, elem_addr; in mod_pub_status() local
745 elem_addr = net_buf_simple_pull_le16(buf); in mod_pub_status()
771 if (elem_addr != param->elem_addr) { in mod_pub_status()
772 LOG_WRN("Model Pub Status for unexpected element (0x%04x)", elem_addr); in mod_pub_status()
795 cli->cb->mod_pub_status(cli, ctx->addr, status, elem_addr, mod_id, cid, &pub); in mod_pub_status()
803 uint16_t elem_addr; member
815 uint16_t elem_addr, sub_addr, mod_id, cid; in mod_sub_status() local
828 elem_addr = net_buf_simple_pull_le16(buf); in mod_sub_status()
841 if (param->elem_addr != elem_addr || param->mod_id != mod_id || in mod_sub_status()
862 cli->cb->mod_sub_status(cli, ctx->addr, status, elem_addr, in mod_sub_status()
1524 static int mod_app_bind(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, uint16_t mod_app_idx, in mod_app_bind() argument
1531 .elem_addr = elem_addr, in mod_app_bind()
1544 net_buf_simple_add_le16(&msg, elem_addr); in mod_app_bind()
1556 int bt_mesh_cfg_cli_mod_app_bind(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_app_bind() argument
1559 return mod_app_bind(net_idx, addr, elem_addr, mod_app_idx, mod_id, CID_NVAL, status); in bt_mesh_cfg_cli_mod_app_bind()
1562 int bt_mesh_cfg_cli_mod_app_bind_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_app_bind_vnd() argument
1570 return mod_app_bind(net_idx, addr, elem_addr, mod_app_idx, mod_id, cid, status); in bt_mesh_cfg_cli_mod_app_bind_vnd()
1573 static int mod_app_unbind(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, uint16_t mod_app_idx, in mod_app_unbind() argument
1580 .elem_addr = elem_addr, in mod_app_unbind()
1593 net_buf_simple_add_le16(&msg, elem_addr); in mod_app_unbind()
1605 int bt_mesh_cfg_cli_mod_app_unbind(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_app_unbind() argument
1608 return mod_app_unbind(net_idx, addr, elem_addr, mod_app_idx, mod_id, CID_NVAL, status); in bt_mesh_cfg_cli_mod_app_unbind()
1611 int bt_mesh_cfg_cli_mod_app_unbind_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_app_unbind_vnd() argument
1619 return mod_app_unbind(net_idx, addr, elem_addr, mod_app_idx, mod_id, cid, status); in bt_mesh_cfg_cli_mod_app_unbind_vnd()
1623 uint16_t elem_addr, uint16_t mod_id, uint16_t cid, uint8_t *status, in mod_member_list_get() argument
1630 .elem_addr = elem_addr, in mod_member_list_get()
1643 LOG_DBG("net_idx 0x%04x addr 0x%04x elem_addr 0x%04x", net_idx, addr, elem_addr); in mod_member_list_get()
1647 net_buf_simple_add_le16(&msg, elem_addr); in mod_member_list_get()
1659 int bt_mesh_cfg_cli_mod_app_get(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_app_get() argument
1663 elem_addr, mod_id, CID_NVAL, status, apps, app_cnt); in bt_mesh_cfg_cli_mod_app_get()
1666 int bt_mesh_cfg_cli_mod_app_get_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_app_get_vnd() argument
1675 elem_addr, mod_id, cid, status, apps, app_cnt); in bt_mesh_cfg_cli_mod_app_get_vnd()
1678 static int mod_sub(uint32_t op, uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in mod_sub() argument
1685 .elem_addr = elem_addr, in mod_sub()
1698 net_buf_simple_add_le16(&msg, elem_addr); in mod_sub()
1713 int bt_mesh_cfg_cli_mod_sub_add(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_add() argument
1720 return mod_sub(OP_MOD_SUB_ADD, net_idx, addr, elem_addr, sub_addr, mod_id, CID_NVAL, in bt_mesh_cfg_cli_mod_sub_add()
1724 int bt_mesh_cfg_cli_mod_sub_add_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_add_vnd() argument
1733 return mod_sub(OP_MOD_SUB_ADD, net_idx, addr, elem_addr, sub_addr, mod_id, cid, status); in bt_mesh_cfg_cli_mod_sub_add_vnd()
1736 int bt_mesh_cfg_cli_mod_sub_del(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_del() argument
1743 return mod_sub(OP_MOD_SUB_DEL, net_idx, addr, elem_addr, sub_addr, mod_id, CID_NVAL, in bt_mesh_cfg_cli_mod_sub_del()
1747 int bt_mesh_cfg_cli_mod_sub_del_all(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_del_all() argument
1750 return mod_sub(OP_MOD_SUB_DEL_ALL, net_idx, addr, elem_addr, BT_MESH_ADDR_UNASSIGNED, in bt_mesh_cfg_cli_mod_sub_del_all()
1754 int bt_mesh_cfg_cli_mod_sub_del_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_del_vnd() argument
1763 return mod_sub(OP_MOD_SUB_DEL, net_idx, addr, elem_addr, sub_addr, mod_id, cid, status); in bt_mesh_cfg_cli_mod_sub_del_vnd()
1766 int bt_mesh_cfg_cli_mod_sub_del_all_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_del_all_vnd() argument
1773 return mod_sub(OP_MOD_SUB_DEL_ALL, net_idx, addr, elem_addr, BT_MESH_ADDR_UNASSIGNED, in bt_mesh_cfg_cli_mod_sub_del_all_vnd()
1777 int bt_mesh_cfg_cli_mod_sub_overwrite(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_overwrite() argument
1784 return mod_sub(OP_MOD_SUB_OVERWRITE, net_idx, addr, elem_addr, sub_addr, mod_id, CID_NVAL, in bt_mesh_cfg_cli_mod_sub_overwrite()
1788 int bt_mesh_cfg_cli_mod_sub_overwrite_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_overwrite_vnd() argument
1797 return mod_sub(OP_MOD_SUB_OVERWRITE, net_idx, addr, elem_addr, sub_addr, mod_id, cid, in bt_mesh_cfg_cli_mod_sub_overwrite_vnd()
1801 static int mod_sub_va(uint32_t op, uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in mod_sub_va() argument
1809 .elem_addr = elem_addr, in mod_sub_va()
1821 LOG_DBG("net_idx 0x%04x addr 0x%04x elem_addr 0x%04x label %s", net_idx, addr, elem_addr, in mod_sub_va()
1826 net_buf_simple_add_le16(&msg, elem_addr); in mod_sub_va()
1838 int bt_mesh_cfg_cli_mod_sub_va_add(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_va_add() argument
1842 return mod_sub_va(OP_MOD_SUB_VA_ADD, net_idx, addr, elem_addr, label, mod_id, CID_NVAL, in bt_mesh_cfg_cli_mod_sub_va_add()
1846 int bt_mesh_cfg_cli_mod_sub_va_add_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_va_add_vnd() argument
1854 return mod_sub_va(OP_MOD_SUB_VA_ADD, net_idx, addr, elem_addr, label, mod_id, cid, in bt_mesh_cfg_cli_mod_sub_va_add_vnd()
1858 int bt_mesh_cfg_cli_mod_sub_va_del(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_va_del() argument
1862 return mod_sub_va(OP_MOD_SUB_VA_DEL, net_idx, addr, elem_addr, label, mod_id, CID_NVAL, in bt_mesh_cfg_cli_mod_sub_va_del()
1866 int bt_mesh_cfg_cli_mod_sub_va_del_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_va_del_vnd() argument
1874 return mod_sub_va(OP_MOD_SUB_VA_DEL, net_idx, addr, elem_addr, label, mod_id, cid, in bt_mesh_cfg_cli_mod_sub_va_del_vnd()
1878 int bt_mesh_cfg_cli_mod_sub_va_overwrite(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_va_overwrite() argument
1882 return mod_sub_va(OP_MOD_SUB_VA_OVERWRITE, net_idx, addr, elem_addr, label, mod_id, in bt_mesh_cfg_cli_mod_sub_va_overwrite()
1886 int bt_mesh_cfg_cli_mod_sub_va_overwrite_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_va_overwrite_vnd() argument
1894 return mod_sub_va(OP_MOD_SUB_VA_OVERWRITE, net_idx, addr, elem_addr, label, mod_id, cid, in bt_mesh_cfg_cli_mod_sub_va_overwrite_vnd()
1898 int bt_mesh_cfg_cli_mod_sub_get(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_get() argument
1901 return mod_member_list_get(OP_MOD_SUB_GET, OP_MOD_SUB_LIST, net_idx, addr, elem_addr, in bt_mesh_cfg_cli_mod_sub_get()
1905 int bt_mesh_cfg_cli_mod_sub_get_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_sub_get_vnd() argument
1914 elem_addr, mod_id, cid, status, subs, sub_cnt); in bt_mesh_cfg_cli_mod_sub_get_vnd()
1917 static int mod_pub_get(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, uint16_t mod_id, in mod_pub_get() argument
1925 .elem_addr = elem_addr, in mod_pub_get()
1938 net_buf_simple_add_le16(&msg, elem_addr); in mod_pub_get()
1949 int bt_mesh_cfg_cli_mod_pub_get(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_pub_get() argument
1953 return mod_pub_get(net_idx, addr, elem_addr, mod_id, CID_NVAL, pub, status); in bt_mesh_cfg_cli_mod_pub_get()
1956 int bt_mesh_cfg_cli_mod_pub_get_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_pub_get_vnd() argument
1964 return mod_pub_get(net_idx, addr, elem_addr, mod_id, cid, pub, status); in bt_mesh_cfg_cli_mod_pub_get_vnd()
1967 static int mod_pub_set(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, uint16_t mod_id, in mod_pub_set() argument
1975 .elem_addr = elem_addr, in mod_pub_set()
1988 net_buf_simple_add_le16(&msg, elem_addr); in mod_pub_set()
2004 static int mod_pub_va_set(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, uint16_t mod_id, in mod_pub_va_set() argument
2012 .elem_addr = elem_addr, in mod_pub_va_set()
2026 net_buf_simple_add_le16(&msg, elem_addr); in mod_pub_va_set()
2042 int bt_mesh_cfg_cli_mod_pub_set(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_pub_set() argument
2051 return mod_pub_va_set(net_idx, addr, elem_addr, mod_id, CID_NVAL, pub, status); in bt_mesh_cfg_cli_mod_pub_set()
2053 return mod_pub_set(net_idx, addr, elem_addr, mod_id, CID_NVAL, pub, status); in bt_mesh_cfg_cli_mod_pub_set()
2057 int bt_mesh_cfg_cli_mod_pub_set_vnd(uint16_t net_idx, uint16_t addr, uint16_t elem_addr, in bt_mesh_cfg_cli_mod_pub_set_vnd() argument
2070 return mod_pub_va_set(net_idx, addr, elem_addr, mod_id, cid, pub, status); in bt_mesh_cfg_cli_mod_pub_set_vnd()
2072 return mod_pub_set(net_idx, addr, elem_addr, mod_id, cid, pub, status); in bt_mesh_cfg_cli_mod_pub_set_vnd()