Lines Matching refs:sub_addr

804 	uint16_t *sub_addr;  member
815 uint16_t elem_addr, sub_addr, mod_id, cid; in mod_sub_status() local
829 sub_addr = net_buf_simple_pull_le16(buf); in mod_sub_status()
842 (param->expect_sub && *param->expect_sub != sub_addr) || in mod_sub_status()
849 if (param->sub_addr) { in mod_sub_status()
850 *param->sub_addr = sub_addr; in mod_sub_status()
863 sub_addr, (cid << 16) | mod_id); in mod_sub_status()
1679 uint16_t sub_addr, uint16_t mod_id, uint16_t cid, uint8_t *status) in mod_sub() argument
1686 .expect_sub = &sub_addr, in mod_sub()
1700 if (sub_addr != BT_MESH_ADDR_UNASSIGNED) { in mod_sub()
1701 net_buf_simple_add_le16(&msg, sub_addr); in mod_sub()
1714 uint16_t sub_addr, uint16_t mod_id, uint8_t *status) in bt_mesh_cfg_cli_mod_sub_add() argument
1716 if (!BT_MESH_ADDR_IS_GROUP(sub_addr) && !BT_MESH_ADDR_IS_FIXED_GROUP(sub_addr)) { in bt_mesh_cfg_cli_mod_sub_add()
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()
1725 uint16_t sub_addr, uint16_t mod_id, uint16_t cid, in bt_mesh_cfg_cli_mod_sub_add_vnd() argument
1728 if ((!BT_MESH_ADDR_IS_GROUP(sub_addr) && !BT_MESH_ADDR_IS_FIXED_GROUP(sub_addr)) || in bt_mesh_cfg_cli_mod_sub_add_vnd()
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()
1737 uint16_t sub_addr, uint16_t mod_id, uint8_t *status) in bt_mesh_cfg_cli_mod_sub_del() argument
1739 if (!BT_MESH_ADDR_IS_GROUP(sub_addr) && !BT_MESH_ADDR_IS_FIXED_GROUP(sub_addr)) { in bt_mesh_cfg_cli_mod_sub_del()
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()
1755 uint16_t sub_addr, uint16_t mod_id, uint16_t cid, in bt_mesh_cfg_cli_mod_sub_del_vnd() argument
1758 if ((!BT_MESH_ADDR_IS_GROUP(sub_addr) && !BT_MESH_ADDR_IS_FIXED_GROUP(sub_addr)) || in bt_mesh_cfg_cli_mod_sub_del_vnd()
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()
1778 uint16_t sub_addr, uint16_t mod_id, uint8_t *status) in bt_mesh_cfg_cli_mod_sub_overwrite() argument
1780 if (!BT_MESH_ADDR_IS_GROUP(sub_addr) && !BT_MESH_ADDR_IS_FIXED_GROUP(sub_addr)) { in bt_mesh_cfg_cli_mod_sub_overwrite()
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()
1789 uint16_t sub_addr, uint16_t mod_id, uint16_t cid, in bt_mesh_cfg_cli_mod_sub_overwrite_vnd() argument
1792 if ((!BT_MESH_ADDR_IS_GROUP(sub_addr) && !BT_MESH_ADDR_IS_FIXED_GROUP(sub_addr)) || in bt_mesh_cfg_cli_mod_sub_overwrite_vnd()
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()
1810 .sub_addr = virt_addr, in mod_sub_va()