Lines Matching +full:max +full:- +full:x
4 * SPDX-License-Identifier: Apache-2.0
27 #define BLOB_CHUNK_SIZE_MAX(sdu_max) ((sdu_max) - BLOB_CHUNK_SDU_OVERHEAD)
53 #define _BLOB_LOG_2_CEIL(l, x) ((x) <= (1U << l)) ? l : argument
54 #define _BLOB_LOG_2_FLOOR(l, x) ((x) < (1U << (l + 1))) ? l : argument
56 #define BLOB_BLOCK_SIZE_LOG_CEIL(x) (LISTIFY(20, _BLOB_LOG_2_CEIL, (), x) 20) argument
57 #define BLOB_BLOCK_SIZE_LOG_FLOOR(x) (LISTIFY(20, _BLOB_LOG_2_FLOOR, (), x) 20) argument
66 MAX(sizeof(((struct bt_mesh_blob_block *)0)->missing), \
69 MAX(sizeof(((struct bt_mesh_blob_block *)0)->missing), \
72 #define BLOB_BLOCK_REPORT_STATUS_MSG_MAXLEN sizeof(((struct bt_mesh_blob_srv *)0)->block.missing)
73 #define BLOB_BLOCK_STATUS_MSG_MAXLEN (5 + sizeof(((struct bt_mesh_blob_srv *)0)->block.missing))
76 #define BLOB_XFER_STATUS_MSG_MAXLEN (17 + sizeof(((struct bt_mesh_blob_srv *)0)->state.blocks))
109 size_t bytes = block->chunk_count / 8; in blob_chunk_missing_set_all()
111 memset(block->missing, 0xff, bytes); in blob_chunk_missing_set_all()
112 if (block->chunk_count % 8) { in blob_chunk_missing_set_all()
113 block->missing[bytes] = BIT_MASK(block->chunk_count % 8); in blob_chunk_missing_set_all()
119 memset(block->missing, 0, sizeof(block->missing)); in blob_chunk_missing_set_none()