Home | History | Annotate | Download | only in dhdutil

Lines Matching refs:memblock

1508 #define MEMBLOCK 2048
1510 /* Check that strlen("membytes")+1 + 2*sizeof(int32) + MEMBLOCK <= DHD_IOCTL_MAXLEN */
1511 #if (MEMBLOCK + 17 > DHD_IOCTL_MAXLEN)
1512 #error MEMBLOCK/DHD_IOCTL_MAXLEN sizing
1518 dhd_verify_file_bytes(void *dhd, uint8 *memblock, int start, uint len)
1535 src = (uint8 *)memblock;
1556 uint8 memblock[MEMBLOCK];
1565 assert(blk_sz <= MEMBLOCK);
1572 if (!ISALIGNED(start, MEMBLOCK))
1573 read_len = ROUNDUP(start, MEMBLOCK) - start;
1576 len = fread(memblock, sizeof(uint8), read_len, fp);
1593 memcpy(bufp, memblock, len);
1604 if (dhd_verify_file_bytes(dhd, memblock, start, len) != 0) {
1725 uint memblock_sz = MEMBLOCK;
1967 uint8 memblock[MEMBLOCK];
2041 while ((len = fread(memblock, sizeof(uint8), MEMBLOCK, fp))) {
2042 if (len < MEMBLOCK && !feof(fp)) {
2048 ret = dhd_set(dhd, DHD_DLDN_WRITE, memblock, len);
2175 len = MIN(MEMBLOCK, size);
2397 len = MIN(MEMBLOCK, size);
2506 len = MIN(MEMBLOCK, size);