Lines Matching refs:MEMBLOCK
109 #define MEMBLOCK 2048 /* Block size used for downloading of dongle image */ macro
4050 memptr_tmp = MALLOC(bus->dhd->osh, MEMBLOCK + DHD_SDALIGN); in dhdpcie_download_code_file()
4052 DHD_ERROR(("%s: Failed to allocate memory %d bytes\n", __FUNCTION__, MEMBLOCK)); in dhdpcie_download_code_file()
4059 len = MIN(residual_len, MEMBLOCK); in dhdpcie_download_code_file()
4075 __FUNCTION__, bcmerror, MEMBLOCK, offset)); in dhdpcie_download_code_file()
4083 __FUNCTION__, bcmerror, MEMBLOCK, offset)); in dhdpcie_download_code_file()
4094 offset += MEMBLOCK; in dhdpcie_download_code_file()
4108 MFREE(bus->dhd->osh, memptr_tmp, MEMBLOCK + DHD_SDALIGN); in dhdpcie_download_code_file()
4200 memptr = memblock = MALLOC(bus->dhd->osh, MEMBLOCK + DHD_SDALIGN); in dhdpcie_download_code_file()
4202 DHD_ERROR(("%s: Failed to allocate memory %d bytes\n", __FUNCTION__, MEMBLOCK)); in dhdpcie_download_code_file()
4208 memptr_tmp = MALLOC(bus->dhd->osh, MEMBLOCK + DHD_SDALIGN); in dhdpcie_download_code_file()
4210 DHD_ERROR(("%s: Failed to allocate memory %d bytes\n", __FUNCTION__, MEMBLOCK)); in dhdpcie_download_code_file()
4239 while ((len = dhd_os_get_image_block((char*)memptr, MEMBLOCK, imgbuf))) in dhdpcie_download_code_file()
4243 len = MIN(residual_len, MEMBLOCK); in dhdpcie_download_code_file()
4276 __FUNCTION__, bcmerror, MEMBLOCK, offset)); in dhdpcie_download_code_file()
4285 __FUNCTION__, bcmerror, MEMBLOCK, offset)); in dhdpcie_download_code_file()
4296 offset += MEMBLOCK; in dhdpcie_download_code_file()
4311 MFREE(bus->dhd->osh, memblock, MEMBLOCK + DHD_SDALIGN); in dhdpcie_download_code_file()
4314 MFREE(bus->dhd->osh, memptr_tmp, MEMBLOCK + DHD_SDALIGN); in dhdpcie_download_code_file()
4587 memptr = memblock = MALLOC(bus->dhd->osh, MEMBLOCK + DHD_SDALIGN); in dhdpcie_download_code_array()
4589 DHD_ERROR(("%s: Failed to allocate memory %d bytes\n", __FUNCTION__, MEMBLOCK)); in dhdpcie_download_code_array()
4597 if (remaining_len >= MEMBLOCK) in dhdpcie_download_code_array()
4598 len = MEMBLOCK; in dhdpcie_download_code_array()
4617 __FUNCTION__, bcmerror, MEMBLOCK, offset)); in dhdpcie_download_code_array()
4620 offset += MEMBLOCK; in dhdpcie_download_code_array()
4638 if (remaining_len >= MEMBLOCK) in dhdpcie_download_code_array()
4639 len = MEMBLOCK; in dhdpcie_download_code_array()
4646 __FUNCTION__, bcmerror, MEMBLOCK, offset)); in dhdpcie_download_code_array()
4651 offset += MEMBLOCK; in dhdpcie_download_code_array()
4678 MFREE(bus->dhd->osh, memblock, MEMBLOCK + DHD_SDALIGN); in dhdpcie_download_code_array()
5328 read_size = MIN(MEMBLOCK, size); in dhdpcie_mem_dump_bugcheck()
5382 read_size = MIN(MEMBLOCK, size); in dhdpcie_get_mem_dump()
10975 if (srcsize <= 0 || srcsize > MEMBLOCK) { in dhdpcie_download_sig_file()
17716 read_buf = MALLOCZ(bus->dhd->osh, MEMBLOCK); in dhd_bus_tcm_test()
17723 write_buf = MALLOCZ(bus->dhd->osh, MEMBLOCK); in dhd_bus_tcm_test()
17726 MFREE(bus->dhd->osh, read_buf, MEMBLOCK); in dhd_bus_tcm_test()
17732 DHD_ERROR(("%s: memblock size %d, #pattern %d\n", __FUNCTION__, MEMBLOCK, NUM_PATTERNS)); in dhd_bus_tcm_test()
17739 memset(write_buf, init_val[num], MEMBLOCK); in dhd_bus_tcm_test()
17741 read_size = MIN(MEMBLOCK, size); in dhd_bus_tcm_test()
17747 MFREE(bus->dhd->osh, read_buf, MEMBLOCK); in dhd_bus_tcm_test()
17748 MFREE(bus->dhd->osh, write_buf, MEMBLOCK); in dhd_bus_tcm_test()
17755 MFREE(bus->dhd->osh, read_buf, MEMBLOCK); in dhd_bus_tcm_test()
17756 MFREE(bus->dhd->osh, write_buf, MEMBLOCK); in dhd_bus_tcm_test()
17766 MFREE(bus->dhd->osh, read_buf, MEMBLOCK); in dhd_bus_tcm_test()
17767 MFREE(bus->dhd->osh, write_buf, MEMBLOCK); in dhd_bus_tcm_test()
17778 MFREE(bus->dhd->osh, read_buf, MEMBLOCK); in dhd_bus_tcm_test()
17779 MFREE(bus->dhd->osh, write_buf, MEMBLOCK); in dhd_bus_tcm_test()