Home
last modified time | relevance | path

Searched refs:fw_len (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/board/common/src/
A Dhci_process.c211 uint16_t fw_len; member
219 bool hci_set_patch(uint8_t *fw_addr,uint32_t fw_len, uint8_t *fw_config_addr, uint32_t in hci_set_patch() argument
225 p_hci_patch->fw_len = fw_len; in hci_set_patch()
232 LE_ARRAY_TO_UINT32(svn_version, (p_hci_patch->fw_buf+p_hci_patch->fw_len-8)); in hci_set_patch()
233 LE_ARRAY_TO_UINT32(coex_version, (p_hci_patch->fw_buf+p_hci_patch->fw_len-12)); in hci_set_patch()
234 LE_ARRAY_TO_UINT32(lmp_subversion, (p_hci_patch->fw_buf+p_hci_patch->fw_len-4)); in hci_set_patch()
300 if (sent_len >= p_hci_rtk->fw_len) /* config patch domain */ in hci_tp_download_patch()
302 p_frag = p_hci_rtk->config_buf + sent_len -p_hci_rtk->fw_len; in hci_tp_download_patch()
305 else if (sent_len + p_hci_rtk->patch_frag_len <= p_hci_rtk->fw_len) /* fw patch domain */ in hci_tp_download_patch()
313 memcpy(p, p_frag, p_hci_rtk->fw_len - sent_len); in hci_tp_download_patch()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/board/amebad/src/hci/
A Dhci_board.c397 uint16_t fw_len; in hci_rtk_find_patch() local
421 hci_flash_stream_read(p_merge_addr+0x0e +2*mp_num_of_patch ,2, (uint8_t *)&fw_len); in hci_rtk_find_patch()
440 … hci_flash_stream_read(p_merge_addr+0x0e +2*mp_num_of_patch + 2*i ,2, (uint8_t *)&fw_len); in hci_rtk_find_patch()
461 fw_buf = os_mem_zalloc(RAM_TYPE_DATA_ON, fw_len); in hci_rtk_find_patch()
464 hci_board_debug("\n fw_buf ,malloc %d byte fail, \n", fw_len); in hci_rtk_find_patch()
469 memcpy(fw_buf,p_merge_addr+fw_offset, fw_len); in hci_rtk_find_patch()
470 LE_UINT32_TO_ARRAY(fw_buf+fw_len-4,lmp_subversion); in hci_rtk_find_patch()
487 fw_len = rtlbt_fw_len ; in hci_rtk_find_patch()
488 fw_buf = os_mem_zalloc(RAM_TYPE_DATA_ON, fw_len); in hci_rtk_find_patch()
489 memcpy(fw_buf,(const void *)rltk_bt_get_patch_code(), fw_len); in hci_rtk_find_patch()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/board/common/inc/
A Dhci_process.h58 bool hci_set_patch(uint8_t *fw_addr,uint32_t fw_len, uint8_t *fw_config_addr, uint32_t

Completed in 8 milliseconds