Home
last modified time | relevance | path

Searched refs:MIN (Results 1 – 25 of 500) sorted by relevance

12345678910>>...20

/Zephyr-latest/tests/kconfig/functions/src/
Dmain.c41 zassert_equal(CONFIG_KCONFIG_MIN_10_3, MIN(10, 3)); in ZTEST()
42 zassert_equal(CONFIG_KCONFIG_MIN_10_3_2, MIN(MIN(10, 3), 2)); in ZTEST()
/Zephyr-latest/include/zephyr/net/
Dsocketcan_utils.h49 MIN(sframe->len, MIN(sizeof(sframe->data), sizeof(zframe->data)))); in socketcan_to_can_frame()
79 MIN(sframe->len, MIN(sizeof(zframe->data), sizeof(sframe->data)))); in socketcan_from_can_frame()
/Zephyr-latest/tests/subsys/settings/nvs/src/
Dsettings_test_nvs.c46 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-latest/tests/subsys/settings/file/src/
Dsettings_test_file.c47 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-latest/include/zephyr/devicetree/
Dcan.h119 MIN(DT_PROP(DT_PHANDLE(node_id, phys), max_bitrate), max), \
120 MIN(DT_PROP_OR(DT_CHILD(node_id, can_transceiver), max_bitrate, max), max))
/Zephyr-latest/subsys/llext/
Dbuf_loader.c15 size_t end = MIN(buf_l->pos + len, buf_l->len); in llext_buf_read()
28 buf_l->pos = MIN(pos, buf_l->len); in llext_buf_seek()
/Zephyr-latest/lib/utils/
Dwinstream.c58 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()
Dring_buffer.c27 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-latest/tests/subsys/settings/fcb/src/
Dsettings_test_fcb.c82 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-latest/tests/unit/intmath/
Dmain.c27 #define ROLLOVER_CHECK(T, MAX, MIN) BUILD_ASSERT((T)((T)1 + (T)MAX) == (T)MIN) argument
/Zephyr-latest/subsys/settings/src/
Dsettings_runtime.c22 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-latest/subsys/bluetooth/controller/include/
Dll_feat.h44 #define LL_LENGTH_OCTETS_TX_MAX MIN(CONFIG_BT_BUF_ACL_TX_SIZE, 251U)
206 #define BT_CTLR_ISO_TX_BUFFER_SIZE MIN((CONFIG_BT_ISO_TX_MTU + \
218 #define LL_CIS_OCTETS_TX_MAX MIN(CONFIG_BT_CTLR_CONN_ISO_PDU_LEN_MAX, \
229 #define LL_BIS_OCTETS_TX_MAX MIN(CONFIG_BT_CTLR_ADV_ISO_PDU_LEN_MAX, \
/Zephyr-latest/tests/bsim/bluetooth/host/iso/cis/src/
Dcis_peripheral.c46 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_print_data()
55 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_print_data()
56 MIN(max_octets, data_len - max_octets), data_str + str_len, in iso_print_data()
/Zephyr-latest/samples/bluetooth/broadcaster_multiple/src/
Dbroadcaster_multiple.c40 #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-latest/tests/subsys/fs/fcb/src/
Dfcb_test_append_too_big.c37 len = MIN(FCB_MAX_LEN in ZTEST()
62 len = MIN(FCB_MAX_LEN, fcb->f_active.fe_sector->fs_size - overhead); in ZTEST()
/Zephyr-latest/tests/subsys/modbus/src/
Dtest_modbus_raw.c30 MIN(adu->length, sizeof(tmp_adu.data))); in server_raw_cb()
56 MIN(adu->length, sizeof(tmp_adu.data))); in client_raw_cb()
/Zephyr-latest/samples/bluetooth/iso_peripheral/src/
Dmain.c78 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_print_data()
87 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_print_data()
88 MIN(max_octets, data_len - max_octets), in iso_print_data()
/Zephyr-latest/subsys/usb/device_next/
Dusbd_ch9.c506 net_buf_add_mem(buf, cfg_desc, MIN(net_buf_tailroom(buf), cfg_desc->bLength)); in sreq_get_desc_cfg()
517 len = MIN(net_buf_tailroom(buf), (*dhp)->bLength); in sreq_get_desc_cfg()
591 len = MIN(net_buf_tailroom(buf), MIN(head.bLength, wLength)); in string_ascii7_to_utf16le()
594 net_buf_add_mem(buf, &head, MIN(len, sizeof(head))); in string_ascii7_to_utf16le()
595 len -= MIN(len, sizeof(head)); in string_ascii7_to_utf16le()
616 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_desc_dev()
630 net_buf_add_mem(buf, head, MIN(len, head->bLength)); in sreq_get_desc_dev()
657 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_desc_str()
658 net_buf_add_mem(buf, &langid, MIN(len, langid.bLength)); in sreq_get_desc_str()
698 len = MIN(setup->wLength, net_buf_tailroom(buf)); in sreq_get_dev_qualifier()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/att/read_fill_buf/client/
Dmain.c23 #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-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/
Dsettings.c79 val_len_max = MIN(val_len_max, sizeof(val_aa)); in val_handle_get()
83 val_len_max = MIN(val_len_max, sizeof(val_bb)); in val_handle_get()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_ws.c48 key_len = MIN(sizeof(key_accept) - 1, sizeof(client->ws_sec_key)); in handle_http1_to_websocket_upgrade()
52 olen = MIN(sizeof(key_accept) - 1 - key_len, sizeof(WS_MAGIC) - 1); in handle_http1_to_websocket_upgrade()
/Zephyr-latest/soc/nxp/mcx/mcxn/
Dflash_clock_setup.c19 divider = MIN(divider, 8); in flexspi_clock_set_freq()
/Zephyr-latest/drivers/eeprom/
Deeprom_shell.c57 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-latest/tests/bsim/bluetooth/host/iso/bis/src/
Dbis_receiver.c57 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_log_data()
66 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_log_data()
67 MIN(max_octets, data_len - max_octets), data_str + str_len, in iso_log_data()
257 sync_big(sync, MIN(broadcaster_num_bis, CONFIG_BT_ISO_MAX_CHAN), &big); in test_main()
/Zephyr-latest/subsys/modbus/
Dmodbus_raw.c73 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()

12345678910>>...20