/Zephyr-Core-3.4.0/include/zephyr/devicetree/ |
D | can.h | 65 MIN(DT_PROP(DT_PHANDLE(node_id, phys), max_bitrate), max), \ 66 MIN(DT_PROP_OR(DT_CHILD(node_id, can_transceiver), max_bitrate, max), max))
|
/Zephyr-Core-3.4.0/tests/subsys/settings/nvs/src/ |
D | settings_test_nvs.c | 46 val_len_max = MIN(val_len_max, sizeof(val8)); in c1_handle_get() 47 memcpy(val, &val8, MIN(val_len_max, sizeof(val8))); in c1_handle_get() 52 val_len_max = MIN(val_len_max, sizeof(val64)); in c1_handle_get() 53 memcpy(val, &val64, MIN(val_len_max, sizeof(val64))); in c1_handle_get()
|
/Zephyr-Core-3.4.0/tests/subsys/settings/file/src/ |
D | settings_test_file.c | 47 val_len_max = MIN(val_len_max, sizeof(val8)); in c1_handle_get() 48 memcpy(val, &val8, MIN(val_len_max, sizeof(val8))); in c1_handle_get() 53 val_len_max = MIN(val_len_max, sizeof(val16)); in c1_handle_get() 54 memcpy(val, &val16, MIN(val_len_max, sizeof(val16))); in c1_handle_get() 59 val_len_max = MIN(val_len_max, sizeof(val64)); in c1_handle_get() 60 memcpy(val, &val64, MIN(val_len_max, sizeof(val64))); in c1_handle_get()
|
/Zephyr-Core-3.4.0/lib/os/ |
D | winstream.c | 58 len = MIN(len, ws->len); in sys_winstream_write() 74 suffix = MIN(len, ws->len - end); in sys_winstream_write() 112 len = MIN(buflen, behind); in sys_winstream_read() 113 suffix = MIN(len, ws->len - copy); in sys_winstream_read()
|
D | ring_buffer.c | 27 size = MIN(size, free_space); in ring_buf_put_claim() 28 size = MIN(size, wrap_size); in ring_buf_put_claim() 94 size = MIN(size, available_size); in ring_buf_get_claim() 95 size = MIN(size, wrap_size); in ring_buf_get_claim() 155 size = MIN(size, ring_buf_size_get(buf)); in ring_buf_peek()
|
/Zephyr-Core-3.4.0/tests/subsys/settings/fcb/src/ |
D | settings_test_fcb.c | 82 val_len_max = MIN(val_len_max, sizeof(val8)); in c1_handle_get() 83 memcpy(val, &val8, MIN(val_len_max, sizeof(val8))); in c1_handle_get() 88 val_len_max = MIN(val_len_max, sizeof(val64)); in c1_handle_get() 89 memcpy(val, &val64, MIN(val_len_max, sizeof(val64))); in c1_handle_get() 255 len = MIN(strlen(valptr), len); in c2_handle_get() 312 val_len_max = MIN(val_len_max, sizeof(val32)); in c3_handle_get() 313 memcpy(val, &val32, MIN(val_len_max, sizeof(val32))); in c3_handle_get()
|
/Zephyr-Core-3.4.0/subsys/settings/src/ |
D | settings_runtime.c | 22 memcpy(data, arg->data, MIN(arg->len, len)); in settings_runtime_read_cb() 23 return MIN(arg->len, len); in settings_runtime_read_cb()
|
/Zephyr-Core-3.4.0/tests/unit/intmath/ |
D | main.c | 27 #define ROLLOVER_CHECK(T, MAX, MIN) BUILD_ASSERT((T)((T)1 + (T)MAX) == (T)MIN) argument
|
/Zephyr-Core-3.4.0/samples/bluetooth/peripheral_iso/src/ |
D | main.c | 73 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_print_data() 82 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_print_data() 83 MIN(max_octets, data_len - max_octets), in iso_print_data()
|
/Zephyr-Core-3.4.0/tests/subsys/fs/fcb/src/ |
D | fcb_test_append_too_big.c | 37 len = MIN(FCB_MAX_LEN in ZTEST() 62 len = MIN(FCB_MAX_LEN, fcb->f_active.fe_sector->fs_size - overhead); in ZTEST()
|
/Zephyr-Core-3.4.0/tests/subsys/modbus/src/ |
D | test_modbus_raw.c | 30 MIN(adu->length, sizeof(tmp_adu.data))); in server_raw_cb() 56 MIN(adu->length, sizeof(tmp_adu.data))); in client_raw_cb()
|
/Zephyr-Core-3.4.0/samples/bluetooth/broadcaster_multiple/src/ |
D | broadcaster_multiple.c | 40 #define BT_MFG_DATA_LEN_MAX (MIN((BT_AD_DATA_FORMAT_LEN_MAX - \ 45 #define BT_MFG_DATA_LEN (MIN(BT_MFG_DATA_LEN_MAX, \
|
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/host/att/read_fill_buf/client/ |
D | main.c | 23 #define BT_LOCAL_ATT_MTU_EATT MIN(BT_L2CAP_SDU_RX_MTU, BT_L2CAP_SDU_TX_MTU) 24 #define BT_LOCAL_ATT_MTU_UATT MIN(BT_L2CAP_RX_MTU, BT_L2CAP_TX_MTU)
|
/Zephyr-Core-3.4.0/subsys/bluetooth/controller/include/ |
D | ll_feat.h | 44 #define LL_LENGTH_OCTETS_TX_MAX MIN(CONFIG_BT_BUF_ACL_TX_SIZE, 251U) 194 #define LL_CIS_OCTETS_TX_MAX MIN(CONFIG_BT_CTLR_CONN_ISO_PDU_LEN_MAX, \ 205 #define LL_BIS_OCTETS_TX_MAX MIN(CONFIG_BT_CTLR_ADV_ISO_PDU_LEN_MAX, \
|
/Zephyr-Core-3.4.0/subsys/usb/device_next/class/ |
D | loopback.c | 228 MIN(sizeof(lb_buf), setup->wLength)); in lb_control_to_host() 232 MIN(sizeof(lb_buf), setup->wLength)); in lb_control_to_host() 254 MIN(sizeof(lb_buf), buf->len)); in lb_control_to_dev() 255 memcpy(lb_buf, buf->data, MIN(sizeof(lb_buf), buf->len)); in lb_control_to_dev()
|
/Zephyr-Core-3.4.0/drivers/eeprom/ |
D | eeprom_shell.c | 57 pending = MIN(len - upto, SHELL_HEXDUMP_BYTES_IN_LINE); in cmd_read() 168 memset(wr_buf, pattern, MIN(len, CONFIG_EEPROM_SHELL_BUFFER_SIZE)); in cmd_fill() 182 pending = MIN(len - upto, CONFIG_EEPROM_SHELL_BUFFER_SIZE); in cmd_fill() 196 pending = MIN(len - upto, CONFIG_EEPROM_SHELL_BUFFER_SIZE); in cmd_fill()
|
/Zephyr-Core-3.4.0/subsys/modbus/ |
D | modbus_raw.c | 73 MIN(adu->length, sizeof(ctx->rx_adu.data))); in modbus_raw_submit_rx() 81 uint16_t length = MIN(adu->length, CONFIG_MODBUS_BUFFER_SIZE); in modbus_raw_put_header() 94 adu->length = MIN(sys_get_be16(&header[4]), CONFIG_MODBUS_BUFFER_SIZE); in modbus_raw_get_header()
|
/Zephyr-Core-3.4.0/drivers/hwinfo/ |
D | hwinfo_litex.c | 18 ssize_t end = MIN(length, DT_INST_REG_ADDR(0) / 4 * in z_impl_hwinfo_get_device_id()
|
/Zephyr-Core-3.4.0/drivers/entropy/ |
D | entropy_litex.c | 28 to_copy = MIN(length, sizeof(value)); in entropy_prbs_get_entropy()
|
/Zephyr-Core-3.4.0/drivers/bbram/ |
D | bbram_stm32.c | 43 to_copy = MIN(STM32_BKP_REG_BYTES - begin, size - read); in bbram_stm32_read() 63 to_copy = MIN(STM32_BKP_REG_BYTES - begin, size - written); in bbram_stm32_write()
|
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/host/adv/chain/src/ |
D | main.c | 37 #define DATA_LEN MIN((BT_AD_DATA_NAME_SIZE + \ 72 len = MIN(data->data_len, NAME_LEN - 1); in data_cb()
|
/Zephyr-Core-3.4.0/drivers/flash/ |
D | flash_cadence_qspi_nor_ll.c | 718 space = MIN(write_capacity - write_fill_level, in cad_qspi_indirect_page_bound_write() 768 uint32_t write_size = MIN(size, CAD_QSPI_PAGE_SIZE - page_offset); in cad_qspi_write_bank() 784 write_size = MIN(size, CAD_QSPI_PAGE_SIZE); in cad_qspi_write_bank() 826 copy_len = MIN(size, CAD_QSPI_BANK_SIZE - bank_offset); in cad_qspi_read() 844 copy_len = MIN(size, CAD_QSPI_BANK_SIZE); in cad_qspi_read() 854 uint32_t erase_size = MIN(size, CAD_QSPI_SUBSECTOR_SIZE - subsector_offset); in cad_qspi_erase() 870 erase_size = MIN(size, CAD_QSPI_SUBSECTOR_SIZE); in cad_qspi_erase() 904 copy_len = MIN(size, CAD_QSPI_BANK_SIZE - bank_offset); in cad_qspi_write() 923 copy_len = MIN(size, CAD_QSPI_BANK_SIZE); in cad_qspi_write()
|
/Zephyr-Core-3.4.0/subsys/random/ |
D | rand32_timer.c | 67 blocksize = MIN(outlen, sizeof(ret)); in z_impl_sys_rand_get()
|
/Zephyr-Core-3.4.0/tests/net/lib/dns_sd/src/ |
D | main.c | 265 MIN(actual_query_size, expected_query_size), in ZTEST() 303 MIN(actual_int, expected_int), ""); in ZTEST() 363 zassert_mem_equal(actual_buf, expected_buf, MIN(actual_int, in ZTEST() 408 MIN(actual_int, expected_int), ""); in ZTEST() 458 MIN(actual_int, expected_int), ""); in ZTEST() 500 MIN(actual_int, expected_int), ""); in ZTEST() 555 MIN(actual_int, expected_int), ""); in ZTEST() 613 zassert_mem_equal(actual_rsp, expected_rsp, MIN(actual_int, expected_int), ""); in ZTEST()
|
/Zephyr-Core-3.4.0/drivers/timer/ |
D | arcv2_timer0.c | 282 ticks = MIN(MAX_TICKS, ticks); in sys_clock_set_timeout() 313 ticks = MIN(MAX_TICKS, (uint32_t)(MAX((int32_t)(ticks - 1), 0))); in sys_clock_set_timeout() 349 last_load = MIN(delay, MAX_CYCLES); in sys_clock_set_timeout()
|