Lines Matching refs:MEMBLOCK
85 #define MEMBLOCK 2048 /* Block size used for downloading of dongle image */
1878 read_size = MIN(MEMBLOCK, size);
5420 while ((offset + MEMBLOCK) < sizeof(dlarray)) {
5421 bcmerror = dhdsdio_membytes(bus, TRUE, offset, dlarray + offset, MEMBLOCK);
5424 __FUNCTION__, bcmerror, MEMBLOCK, offset));
5428 offset += MEMBLOCK;
5450 while ((offset + MEMBLOCK) < sizeof(dlarray)) {
5451 bcmerror = dhdsdio_membytes(bus, FALSE, offset, ularray + offset, MEMBLOCK);
5454 __FUNCTION__, bcmerror, MEMBLOCK, offset));
5458 offset += MEMBLOCK;
5502 memptr = memblock = MALLOC(bus->dhd->osh, MEMBLOCK + DHD_SDALIGN);
5504 DHD_ERROR(("%s: Failed to allocate memory %d bytes\n", __FUNCTION__, MEMBLOCK));
5511 while ((len = dhd_os_get_image_block((char*)memptr, MEMBLOCK, image))) {
5515 __FUNCTION__, bcmerror, MEMBLOCK, offset));
5519 offset += MEMBLOCK;
5524 MFREE(bus->dhd->osh, memblock, MEMBLOCK + DHD_SDALIGN);
5624 memblock = MALLOC(bus->dhd->osh, MEMBLOCK);
5627 __FUNCTION__, MEMBLOCK));
5633 len = dhd_os_get_image_block(memblock, MEMBLOCK, image);
5637 ASSERT(len <= MEMBLOCK);
5638 if (len > MEMBLOCK)
5639 len = MEMBLOCK;
5643 if (len > 0 && len < MEMBLOCK) {
5664 MFREE(bus->dhd->osh, memblock, MEMBLOCK);