Lines Matching full:page

49 	uint8_t page;  in handle_large_comp_data_get()  local
57 page = bt_mesh_comp_parse_page(buf); in handle_large_comp_data_get()
60 LOG_DBG("page %u offset %u", page, offset); in handle_large_comp_data_get()
63 net_buf_simple_add_u8(&rsp, page); in handle_large_comp_data_get()
66 if (atomic_test_bit(bt_mesh.flags, BT_MESH_COMP_DIRTY) && page < 128) { in handle_large_comp_data_get()
70 err = bt_mesh_comp_read(&temp_buf, page); in handle_large_comp_data_get()
72 LOG_ERR("Could not read comp data p%d, err: %d", page, err); in handle_large_comp_data_get()
86 total_size = bt_mesh_comp_page_size(page); in handle_large_comp_data_get()
90 err = bt_mesh_comp_data_get_page(&rsp, page, offset); in handle_large_comp_data_get()
92 LOG_ERR("Could not read comp data p%d, err: %d", page, err); in handle_large_comp_data_get()
112 uint8_t page; in handle_models_metadata_get() local
119 page = net_buf_simple_pull_u8(buf); in handle_models_metadata_get()
122 LOG_DBG("page %u offset %u", page, offset); in handle_models_metadata_get()
124 if (page >= 128U && atomic_test_bit(bt_mesh.flags, BT_MESH_METADATA_DIRTY)) { in handle_models_metadata_get()
125 LOG_DBG("Models Metadata Page 128"); in handle_models_metadata_get()
126 page = 128U; in handle_models_metadata_get()
127 } else if (page != 0U) { in handle_models_metadata_get()
128 LOG_DBG("Models Metadata Page %u not available", page); in handle_models_metadata_get()
129 page = 0U; in handle_models_metadata_get()
133 net_buf_simple_add_u8(&rsp, page); in handle_models_metadata_get()
136 if (atomic_test_bit(bt_mesh.flags, BT_MESH_METADATA_DIRTY) == (page == 0U)) { in handle_models_metadata_get()
152 LOG_ERR("Failed to get Models Metadata Page 0: %d", err); in handle_models_metadata_get()