Lines Matching refs:page
111 uint8_t page; member
2297 int bt_mesh_comp_data_get_page(struct net_buf_simple *buf, size_t page, size_t offset) in bt_mesh_comp_data_get_page() argument
2299 if (page == 0 || page == 128) { in bt_mesh_comp_data_get_page()
2301 } else if (IS_ENABLED(CONFIG_BT_MESH_COMP_PAGE_1) && (page == 1 || page == 129)) { in bt_mesh_comp_data_get_page()
2303 } else if (IS_ENABLED(CONFIG_BT_MESH_COMP_PAGE_2) && (page == 2 || page == 130)) { in bt_mesh_comp_data_get_page()
2356 size_t bt_mesh_comp_page_size(uint8_t page) in bt_mesh_comp_page_size() argument
2358 if (page == 0 || page == 128) { in bt_mesh_comp_page_size()
2360 } else if (IS_ENABLED(CONFIG_BT_MESH_COMP_PAGE_1) && (page == 1 || page == 129)) { in bt_mesh_comp_page_size()
2362 } else if (IS_ENABLED(CONFIG_BT_MESH_COMP_PAGE_2) && (page == 2 || page == 130)) { in bt_mesh_comp_page_size()
2386 err = bt_mesh_comp_data_get_page(&buf, comp_data_pages[i].page, 0); in bt_mesh_comp_store()
2388 LOG_ERR("Failed to read CDP%d: %d", comp_data_pages[i].page, err); in bt_mesh_comp_store()
2394 LOG_ERR("Failed to store CDP%d: %d", comp_data_pages[i].page, err); in bt_mesh_comp_store()
2398 LOG_DBG("Stored CDP%d", comp_data_pages[i].page); in bt_mesh_comp_store()
2420 LOG_ERR("Failed to clear CDP%d: %d", comp_data_pages[i].page, in comp_data_clear()
2445 int bt_mesh_comp_read(struct net_buf_simple *buf, uint8_t page) in bt_mesh_comp_read() argument
2456 if (comp_data_pages[i].page == page) { in bt_mesh_comp_read()
2676 uint8_t page = net_buf_simple_pull_u8(buf); in bt_mesh_comp_parse_page() local
2678 if (page >= 130U && IS_ENABLED(CONFIG_BT_MESH_COMP_PAGE_2) && in bt_mesh_comp_parse_page()
2681 page = 130U; in bt_mesh_comp_parse_page()
2682 } else if (page >= 129U && IS_ENABLED(CONFIG_BT_MESH_COMP_PAGE_1) && in bt_mesh_comp_parse_page()
2685 page = 129U; in bt_mesh_comp_parse_page()
2686 } else if (page >= 128U && (atomic_test_bit(bt_mesh.flags, BT_MESH_COMP_DIRTY) || in bt_mesh_comp_parse_page()
2688 page = 128U; in bt_mesh_comp_parse_page()
2689 } else if (page >= 2U && IS_ENABLED(CONFIG_BT_MESH_COMP_PAGE_2)) { in bt_mesh_comp_parse_page()
2690 page = 2U; in bt_mesh_comp_parse_page()
2691 } else if (page >= 1U && IS_ENABLED(CONFIG_BT_MESH_COMP_PAGE_1)) { in bt_mesh_comp_parse_page()
2692 page = 1U; in bt_mesh_comp_parse_page()
2693 } else if (page != 0U) { in bt_mesh_comp_parse_page()
2694 LOG_DBG("Composition page %u not available", page); in bt_mesh_comp_parse_page()
2695 page = 0U; in bt_mesh_comp_parse_page()
2698 return page; in bt_mesh_comp_parse_page()