/btstack/src/classic/ |
H A D | obex_parser.c | 111 bytes_to_consume = btstack_min(2 - obex_parser->item_pos, data_len); in obex_parser_process_data() 131 … bytes_to_consume = btstack_min(obex_parser->item_len - obex_parser->item_pos, data_len); in obex_parser_process_data() 184 … bytes_to_consume = btstack_min(obex_parser->item_len - obex_parser->item_pos, data_len); in obex_parser_process_data() 248 uint16_t bytes_to_store = btstack_min(buffer_size - data_offset, data_len); in obex_parser_header_store() 291 bytes_to_consume = btstack_min(parser->tag_len - parser->tag_pos, data_len); in obex_app_param_parser_process_data() 335 uint16_t bytes_to_store = btstack_min(buffer_size - data_offset, data_len); in obex_app_param_parser_tag_store()
|
H A D | avrcp_target.c | 289 …uint16_t num_header_bytes_to_store = btstack_min(num_free_bytes, AVRCP_ATTRIBUTE_HEADER_LEN - conn… in avrcp_store_avctp_now_playing_info_fragment() 302 …uint16_t num_attr_value_bytes_to_store = btstack_min(num_free_bytes, connection->attribute_value_l… in avrcp_store_avctp_now_playing_info_fragment() 339 … uint16_t max_frame_size = btstack_min(connection->l2cap_mtu, AVRCP_MAX_AV_C_MESSAGE_FRAME_SIZE); in avrcp_send_response_with_avctp_fragmentation() 463 …uint16_t bytes_to_copy = btstack_min(connection->data_len - connection->data_offset, max_payload_s… in avrcp_send_response_with_avctp_fragmentation() 682 uint8_t bytes_to_copy = btstack_min(connection->target_subunit_info_data_size - offset, 4); in avrcp_target_subunit_info() 1004 …bytes_to_store = btstack_min(size - pos, sizeof(connection->avctp_reassembly_buffer) - connection-… in avctp_reassemble_message() 1015 …bytes_to_store = btstack_min(size - pos, sizeof(connection->avctp_reassembly_buffer) - connection-… in avctp_reassemble_message()
|
H A D | btstack_sbc_decoder_bluedroid.c | 234 int bytes_to_append = btstack_min(input_bytes_to_process, bytes_free_in_frame_buffer); in btstack_sbc_decoder_process_sbc_data() 387 … int bytes_to_append = btstack_min(input_bytes_to_process, bytes_missing_for_complete_msbc_frame); in btstack_sbc_decoder_process_msbc_data()
|
/btstack/src/ |
H A D | btstack_ring_buffer.c | 96 unsigned int bytes_to_copy = btstack_min(bytes_until_end, remaining_data_length); in btstack_ring_buffer_write() 123 …uint32_t remaining_data_length = btstack_min(data_length, btstack_ring_buffer_bytes_available(ring… in btstack_ring_buffer_read() 133 unsigned int bytes_to_copy = btstack_min(bytes_until_end, remaining_data_length); in btstack_ring_buffer_read()
|
H A D | btstack_util.c | 201 uint32_t btstack_min(uint32_t a, uint32_t b){ in btstack_min() function 651 uint16_t bytes_to_copy = (uint16_t) btstack_min( dst_size - 1, (uint16_t) strlen(src)); in btstack_strcpy() 660 uint16_t bytes_to_copy = btstack_min( src_len, dst_size - dst_len - 1); in btstack_strcat() 697 return (uint16_t) btstack_min((uint32_t) len, (uint32_t) size - 1); in btstack_snprintf_best_effort()
|
H A D | hci_transport_em9304_spi.c | 283 … em9304_spi_engine_tx_request_len = btstack_min(em9304_spi_engine_tx_size, max_bytes_to_send); in em9304_spi_engine_run() 411 … uint16_t bytes_to_copy = btstack_min(bytes_available, hci_transport_em9304_spi_bytes_to_read); in hci_transport_em9304_spi_process_data()
|
/btstack/example/ |
H A D | sco_demo_util.c | 222 uint16_t next_samples = btstack_min(num_samples, NUM_SAMPLES_GENERATOR_BUFFER); in sco_demo_modplayer() 352 const int samples_to_write = btstack_min(num_samples, num_samples_to_write); in sco_demo_cvsd_receive() 447 num_samples = btstack_min(num_samples, num_samples_to_write); in handle_pcm_data() 506 uint16_t num_samples = btstack_min(LC3_SWB_SAMPLES_PER_FRAME, num_samples_to_write); in sco_demo_lc3swb_frame_callback() 660 uint16_t samples_to_add = btstack_min(samples_free, REFILL_SAMPLES); in sco_demo_send()
|
H A D | audio_duplex.c | 102 int num_samples_ready = btstack_min(num_samples_in_buffer, num_samples_to_write); in audio_playback() 104 int num_samples_from_buffer = btstack_min(num_samples_ready, TRANSFER_SAMPLES); in audio_playback()
|
H A D | gatt_streamer_server.c | 332 …context->test_data_len = btstack_min(att_server_get_mtu(context->connection_handle) - 3, sizeof(co… in att_packet_handler() 339 context->test_data_len = btstack_min(mtu - 3, sizeof(context->test_data)); in att_packet_handler()
|
H A D | spp_and_gatt_streamer.c | 373 … le_test_data_len = btstack_min(att_server_get_mtu(le_connection_handle) - 3, sizeof(test_data)); in att_packet_handler() 379 le_test_data_len = btstack_min(att_mtu - 3, sizeof(test_data)); in att_packet_handler()
|
H A D | avrcp_browsing_client.c | 511 …uint16_t value_len = btstack_min(displayable_name_length, AVRCP_BROWSING_MAX_BROWSABLE_ITEM_NAME_L… in avrcp_browsing_controller_packet_handler() 558 …uint16_t value_len = btstack_min(displayable_name_length, AVRCP_BROWSING_MAX_BROWSABLE_ITEM_NAME_L… in avrcp_browsing_controller_packet_handler() 577 … value_len = btstack_min(attr_value_length, AVRCP_BROWSING_MAX_BROWSABLE_ITEM_NAME_LEN - 1); in avrcp_browsing_controller_packet_handler()
|
/btstack/port/stm32-f4discovery-usb/port/ |
H A D | usbh_bluetooth.c | 98 …uint16_t acl_in_transfer_size = btstack_min(usb->acl_in_len, HCI_ACL_BUFFER_SIZE - hci_acl_in_offs… in usbh_bluetooth_start_acl_in_transfer() 217 transfer_size = btstack_min(usb->acl_out_len, acl_len); in USBH_Bluetooth_Process() 230 transfer_size = btstack_min(usb->acl_out_len, acl_len); in USBH_Bluetooth_Process() 254 … event_transfer_size = btstack_min( usb->event_in_len, sizeof(hci_event) - hci_event_offset); in USBH_Bluetooth_Process()
|
/btstack/chipset/em9301/ |
H A D | btstack_chipset_em9301.c | 238 bytes_to_upload = btstack_min(59, container_end - container_blob_offset); in chipset_next_command() 259 bytes_to_upload = btstack_min(58, container_end - container_blob_offset); in chipset_next_command()
|
/btstack/src/le-audio/ |
H A D | le_audio_util.c | 294 … metadata->program_info_length = btstack_min(ltv_len, LE_AUDIO_PROGRAM_INFO_MAX_LENGTH); in le_audio_util_metadata_parse() 304 metadata->ccids_num = btstack_min(ltv_len - 1, LE_CCIDS_MAX_NUM); in le_audio_util_metadata_parse() 315 … metadata->program_info_uri_length = btstack_min(ltv_len, LE_AUDIO_PROGRAM_INFO_URI_MAX_LENGTH); in le_audio_util_metadata_parse() 323 …metadata->extended_metadata_length = btstack_min(ltv_len - 2, LE_AUDIO_EXTENDED_METADATA_MAX_LENGH… in le_audio_util_metadata_parse() 332 …metadata->vendor_specific_metadata_length = btstack_min(ltv_len - 2, LE_AUDIO_VENDOR_SPECIFIC_META… in le_audio_util_metadata_parse()
|
/btstack/chipset/atwilc3000/ |
H A D | btstack_chipset_atwilc3000.c | 197 uint16_t bytes_to_write = btstack_min((fw_size - fw_offset), FIRMWARE_CHUNK_SIZE); in atwilc3000_write_memory() 216 uint16_t bytes_to_write = btstack_min((fw_size - fw_offset), FIRMWARE_CHUNK_SIZE); in atwilc3000_write_firmware()
|
/btstack/platform/embedded/ |
H A D | btstack_tlv_flash_bank.c | 333 uint32_t bytes_this_iteration = btstack_min(bytes_to_copy, sizeof(copy_buffer)); in btstack_tlv_flash_bank_migrate() 379 … uint32_t bytes_to_write = btstack_min(entry_size - entry_offset, sizeof(zero_buffer)); in btstack_tlv_flash_bank_delete_tag_until_offset() 419 int copy_size = btstack_min(buffer_size, tag_len); in btstack_tlv_flash_bank_get_tag() 470 … uint32_t bytes_from_value = btstack_min(alignment - BTSTACK_TLV_ENTRY_HEADER_LEN, value_size); in btstack_tlv_flash_bank_store_tag()
|
/btstack/port/renesas-tb-s1ja-cc256x/template/btstack_example/src/ |
H A D | example.c | 314 …context->test_data_len = btstack_min(att_server_get_mtu(context->connection_handle) - 3, sizeof(co… in att_packet_handler() 321 context->test_data_len = btstack_min(mtu - 3, sizeof(context->test_data)); in att_packet_handler()
|
/btstack/port/stm32-l073rz-nucleo-em9304/port/ |
H A D | port.c | 273 int bytes_to_copy = btstack_min(bytes_available, hal_uart_dma_rx_len); in hal_spi_em9304_transfer_rx_data() 371 hal_spi_em9304_tx_request_len = btstack_min(hal_uart_dma_tx_size, max_bytes_to_send); in hal_spi_em9304_process()
|
/btstack/test/fuzz/ |
H A D | fuzz_hci_transport_h4.c | 112 uint16_t bytes_to_feed = btstack_min(read_request_len, size); in LLVMFuzzerTestOneInput()
|
/btstack/platform/posix/ |
H A D | hci_dump_posix_stdout.c | 140 int len = btstack_min(sizeof(log_message_buffer), full_string_len); in hci_dump_posix_stdout_log_message()
|
/btstack/platform/chibios/ |
H A D | hal_flash_bank_chibios.c | 124 …uint32_t sector_size = btstack_min(descriptor->sectors[bank_0_sector].size, descriptor->sectors[ba… in hal_flash_bank_chibios_init_instance()
|
/btstack/test/ring_buffer/ |
H A D | btstack_ring_buffer_test.cpp | 8 uint32_t btstack_min(uint32_t a, uint32_t b){ in btstack_min() function
|
/btstack/test/mock/ |
H A D | mock_btstack_tlv.c | 79 uint16_t bytes_to_copy = btstack_min(buffer_size, entry->len); in mock_btstack_tlv_get_tag()
|
/btstack/test/embedded/ |
H A D | btstack_util_test.cpp | 168 CHECK_EQUAL(a, btstack_min(a,b)); in TEST() 169 CHECK_EQUAL(a, btstack_min(b,a)); in TEST()
|
/btstack/test/hfp/ |
H A D | pklg_cvsd_test.c | 125 int bytes_to_read = btstack_min(sizeof(packet), size); in process_file()
|