/Zephyr-latest/subsys/bluetooth/audio/ |
D | mcs_internal.h | 19 #define BT_MCS_VALID_OBJ_ID(id) (IN_RANGE((id), BT_OTS_OBJ_ID_MIN, BT_OTS_OBJ_ID_MAX)) 22 (IN_RANGE((opcode), BT_MCS_OPC_PLAY, BT_MCS_OPC_STOP) || \ 24 IN_RANGE((opcode), BT_MCS_OPC_PREV_SEGMENT, BT_MCS_OPC_GOTO_SEGMENT) || \ 25 IN_RANGE((opcode), BT_MCS_OPC_PREV_TRACK, BT_MCS_OPC_GOTO_TRACK) || \ 26 IN_RANGE((opcode), BT_MCS_OPC_PREV_GROUP, BT_MCS_OPC_GOTO_GROUP))
|
/Zephyr-latest/include/zephyr/drivers/stepper/ |
D | stepper_trinamic.h | 85 BUILD_ASSERT(IN_RANGE(DT_PROP(node, vstart), TMC_RAMP_VSTART_MIN, \ 88 BUILD_ASSERT(IN_RANGE(DT_PROP(node, v1), TMC_RAMP_V1_MIN, \ 91 BUILD_ASSERT(IN_RANGE(DT_PROP(node, vmax), TMC_RAMP_VMAX_MIN, \ 94 BUILD_ASSERT(IN_RANGE(DT_PROP(node, a1), TMC_RAMP_A1_MIN, \ 97 BUILD_ASSERT(IN_RANGE(DT_PROP(node, amax), TMC_RAMP_AMAX_MIN, \ 100 BUILD_ASSERT(IN_RANGE(DT_PROP(node, d1), TMC_RAMP_D1_MIN, \ 103 BUILD_ASSERT(IN_RANGE(DT_PROP(node, dmax), TMC_RAMP_DMAX_MIN, \ 106 BUILD_ASSERT(IN_RANGE(DT_PROP(node, vstop), TMC_RAMP_VSTOP_MIN, \ 109 BUILD_ASSERT(IN_RANGE(DT_PROP(node, tzerowait), TMC_RAMP_TZEROWAIT_MIN, \ 112 BUILD_ASSERT(IN_RANGE(DT_PROP(node, vcoolthrs), TMC_RAMP_VCOOLTHRS_MIN, \ [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_sched.c | 325 } else if (IN_RANGE(ticker_id, TICKER_ID_ADV_AUX_BASE, in group_free_slot_get() 352 } else if (IN_RANGE(ticker_id, TICKER_ID_ADV_SYNC_BASE, in group_free_slot_get() 362 } else if (IN_RANGE(ticker_id, TICKER_ID_ADV_ISO_BASE, in group_free_slot_get() 376 } else if (IN_RANGE(ticker_id, TICKER_ID_CONN_BASE, in group_free_slot_get() 574 IN_RANGE(ticker_id, TICKER_ID_ADV_AUX_BASE, in ticker_match_any_op_cb() 578 IN_RANGE(ticker_id, TICKER_ID_ADV_SYNC_BASE, in ticker_match_any_op_cb() 582 IN_RANGE(ticker_id, TICKER_ID_ADV_ISO_BASE, in ticker_match_any_op_cb() 589 IN_RANGE(ticker_id, TICKER_ID_CONN_BASE, in ticker_match_any_op_cb() 593 IN_RANGE(ticker_id, TICKER_ID_CONN_ISO_BASE, in ticker_match_any_op_cb() 612 return IN_RANGE(ticker_id, TICKER_ID_CONN_BASE, in ticker_match_cen_op_cb() [all …]
|
/Zephyr-latest/modules/lvgl/include/ |
D | lvgl_common_input.h | 34 #define LVGL_COORD_VALID(coord) IN_RANGE(coord, LV_COORD_MIN, LV_COORD_MAX) 35 #define LVGL_KEY_VALID(key) IN_RANGE(key, 0, UINT8_MAX)
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | distribute_keyid.c | 51 if (IN_RANGE(key_id, BT_MESH_TEST_PSA_KEY_ID_USER_MIN, in bt_mesh_user_keyid_free() 65 if (IN_RANGE(key_id, BT_MESH_TEST_PSA_KEY_ID_USER_MIN, in bt_mesh_user_keyid_assign()
|
/Zephyr-latest/modules/lvgl/input/ |
D | lvgl_encoder_input.c | 54 BUILD_ASSERT(IN_RANGE(ROTATION_CODE(inst), 0, 65536), \ 57 IN_RANGE(BUTTON_CODE(inst), 0, 65536), \
|
/Zephyr-latest/kernel/include/ |
D | mmu.h | 280 return IN_RANGE(phys, (uintptr_t)K_MEM_PHYS_RAM_START, in k_mem_is_page_frame() 301 __ASSERT(IN_RANGE((uintptr_t)addr, in k_mem_assert_virtual_region() 304 IN_RANGE(((uintptr_t)addr + size - 1), in k_mem_assert_virtual_region()
|
/Zephyr-latest/tests/unit/util/ |
D | main.c | 258 zassert_true(IN_RANGE(0, 0, 0), "Unexpected IN_RANGE result"); in ZTEST() 259 zassert_true(IN_RANGE(1, 0, 1), "Unexpected IN_RANGE result"); in ZTEST() 260 zassert_true(IN_RANGE(1, 0, 2), "Unexpected IN_RANGE result"); in ZTEST() 261 zassert_true(IN_RANGE(-1, -2, 2), "Unexpected IN_RANGE result"); in ZTEST() 262 zassert_true(IN_RANGE(-3, -5, -1), "Unexpected IN_RANGE result"); in ZTEST() 263 zassert_true(IN_RANGE(0, 0, UINT64_MAX), "Unexpected IN_RANGE result"); in ZTEST() 264 zassert_true(IN_RANGE(UINT64_MAX, 0, UINT64_MAX), "Unexpected IN_RANGE result"); in ZTEST() 265 zassert_true(IN_RANGE(0, INT64_MIN, INT64_MAX), "Unexpected IN_RANGE result"); in ZTEST() 266 zassert_true(IN_RANGE(INT64_MIN, INT64_MIN, INT64_MAX), "Unexpected IN_RANGE result"); in ZTEST() 267 zassert_true(IN_RANGE(INT64_MAX, INT64_MIN, INT64_MAX), "Unexpected IN_RANGE result"); in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/modbus/src/ |
D | test_modbus_server.c | 91 if (!IN_RANGE(addr, fp_offset, sizeof(holding_fp) / 2 + fp_offset)) { in input_reg_rd_fp() 130 if (!IN_RANGE(addr, fp_offset, sizeof(holding_fp) / 2 + fp_offset)) { in holding_reg_rd_fp() 143 if (!IN_RANGE(addr, fp_offset, sizeof(holding_fp) / 2 + fp_offset)) { in holding_reg_wr_fp()
|
/Zephyr-latest/drivers/input/ |
D | input_pat912x.c | 156 if (!IN_RANGE(res_x_cpi, 0, RES_MAX)) { in pat912x_set_resolution() 169 if (!IN_RANGE(res_y_cpi, 0, RES_MAX)) { in pat912x_set_resolution() 328 BUILD_ASSERT(IN_RANGE(DT_INST_PROP_OR(n, res_x_cpi, 0), 0, RES_MAX), \ 330 BUILD_ASSERT(IN_RANGE(DT_INST_PROP_OR(n, res_y_cpi, 0), 0, RES_MAX), \
|
D | input_npcx_kbd.c | 241 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(0, row_size), 1, 8), "invalid row-size"); 242 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(0, col_size), 1, 18), "invalid col-size");
|
D | input_xec_kbd.c | 253 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(0, row_size), 1, 8), "invalid row-size"); 254 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(0, col_size), 1, 18), "invalid col-size");
|
D | input_ite_it8801_kbd.c | 225 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(inst, row_size), 1, 8), "invalid row-size"); \ 226 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(inst, col_size), 1, 19), "invalid col-size");
|
D | input_ite_it8xxx2_kbd.c | 267 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(0, row_size), 1, 8), "invalid row-size"); 268 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(0, col_size), 1, 18), "invalid col-size");
|
/Zephyr-latest/drivers/can/ |
D | can_common.c | 350 if (!IN_RANGE(timing->sjw, min->sjw, max->sjw) || in check_timing_in_range() 351 !IN_RANGE(timing->prop_seg, min->prop_seg, max->prop_seg) || in check_timing_in_range() 352 !IN_RANGE(timing->phase_seg1, min->phase_seg1, max->phase_seg1) || in check_timing_in_range() 353 !IN_RANGE(timing->phase_seg2, min->phase_seg2, max->phase_seg2) || in check_timing_in_range() 354 !IN_RANGE(timing->prescaler, min->prescaler, max->prescaler)) { in check_timing_in_range()
|
/Zephyr-latest/drivers/misc/nxp_s32_emios/ |
D | nxp_s32_emios.c | 53 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(n, clock_divider), \ 63 BUILD_ASSERT(IN_RANGE(DT_PROP(node_id, period), \
|
/Zephyr-latest/tests/bluetooth/common/testlib/src/ |
D | att_read.c | 265 __ASSERT_NO_MSG(IN_RANGE(start_handle, BT_ATT_FIRST_ATTRIBUTE_HANDLE, in bt_testlib_gatt_discover_primary() 268 IN_RANGE(end_handle, BT_ATT_FIRST_ATTRIBUTE_HANDLE, BT_ATT_LAST_ATTRIBUTE_HANDLE)); in bt_testlib_gatt_discover_primary() 372 __ASSERT_NO_MSG(IN_RANGE(start_handle, BT_ATT_FIRST_ATTRIBUTE_HANDLE, in bt_testlib_gatt_discover_characteristic() 374 __ASSERT_NO_MSG(IN_RANGE(svc_end_handle, BT_ATT_FIRST_ATTRIBUTE_HANDLE, in bt_testlib_gatt_discover_characteristic()
|
D | att_write.c | 56 IN_RANGE(handle, BT_ATT_FIRST_ATTRIBUTE_HANDLE, BT_ATT_LAST_ATTRIBUTE_HANDLE)); in bt_testlib_att_write()
|
/Zephyr-latest/drivers/reset/ |
D | reset_npcx.c | 45 if (!IN_RANGE(id, NPCX_RESET_ID_START, NPCX_RESET_ID_END)) { in reset_npcx_line_toggle()
|
/Zephyr-latest/drivers/video/ |
D | video_common.c | 95 IN_RANGE(fmt->width, fmts[i].width_min, fmts[i].width_max) && in video_format_caps_index() 96 IN_RANGE(fmt->height, fmts[i].height_min, fmts[i].height_max)) { in video_format_caps_index()
|
/Zephyr-latest/include/zephyr/input/ |
D | input_kbd_matrix.h | 141 BUILD_ASSERT(IN_RANGE(_row_size, 1, INPUT_KBD_MATRIX_ROW_BITS), "invalid row-size"); \ 142 BUILD_ASSERT(IN_RANGE(_col_size, 1, UINT8_MAX), "invalid col-size"); \
|
/Zephyr-latest/samples/bluetooth/iso_broadcast_benchmark/src/ |
D | broadcaster.c | 269 if (!IN_RANGE(irc, BT_ISO_IRC_MIN, BT_ISO_IRC_MAX)) { in parse_irc_arg() 293 if (!IN_RANGE(pto, BT_ISO_PTO_MIN, BT_ISO_PTO_MAX)) { in parse_pto_arg() 317 if (!IN_RANGE(iso_interval, BT_ISO_ISO_INTERVAL_MIN, BT_ISO_ISO_INTERVAL_MAX)) { in parse_iso_interval_arg() 341 if (!IN_RANGE(num_subevents, BT_ISO_NSE_MIN, BT_ISO_NSE_MAX)) { in parse_nse_arg() 389 if (!IN_RANGE(burst_number, BT_ISO_BN_MIN, BT_ISO_BN_MAX)) { in parse_bn_arg()
|
/Zephyr-latest/drivers/sensor/nxp/qdec_mcux/ |
D | qdec_mcux.c | 54 if (!IN_RANGE(val->val1, 1, UINT16_MAX)) { in qdec_mcux_attr_set() 154 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(n, p), min, max), \
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_stm32_ll_wb0.c | 217 if (!IN_RANGE(pclken->bus, STM32_PERIPH_BUS_MIN, STM32_PERIPH_BUS_MAX)) { in stm32_clock_control_on() 240 if (!IN_RANGE(pclken->bus, STM32_PERIPH_BUS_MIN, STM32_PERIPH_BUS_MAX)) { in stm32_clock_control_off() 518 if (IN_RANGE(pclken->bus, STM32_PERIPH_BUS_MIN, STM32_PERIPH_BUS_MAX)) { in stm32_clock_control_get_status()
|
D | clock_stm32_ll_wba.c | 73 if (IN_RANGE(pclken->bus, STM32_PERIPH_BUS_MIN, STM32_PERIPH_BUS_MAX) == 0) { in stm32_clock_control_on() 94 if (IN_RANGE(pclken->bus, STM32_PERIPH_BUS_MIN, STM32_PERIPH_BUS_MAX) == 0) { in stm32_clock_control_off() 288 if (IN_RANGE(pclken->bus, STM32_PERIPH_BUS_MIN, STM32_PERIPH_BUS_MAX) == true) { in stm32_clock_control_get_status()
|