Home
last modified time | relevance | path

Searched refs:CHUNK_SIZE (Results 1 – 11 of 11) sorted by relevance

/linux-3.4.99/drivers/net/wireless/wl1251/
Dboot.c332 CHUNK_SIZE); in wl1251_boot_upload_firmware()
339 buf = kmalloc(CHUNK_SIZE, GFP_KERNEL); in wl1251_boot_upload_firmware()
354 while (chunk_num < fw_data_len / CHUNK_SIZE) { in wl1251_boot_upload_firmware()
357 (chunk_num + 2) * CHUNK_SIZE; in wl1251_boot_upload_firmware()
360 chunk_num * CHUNK_SIZE; in wl1251_boot_upload_firmware()
361 partition_limit = chunk_num * CHUNK_SIZE + in wl1251_boot_upload_firmware()
371 addr = WL1251_PART_DOWN_MEM_START + chunk_num * CHUNK_SIZE; in wl1251_boot_upload_firmware()
372 p = wl->fw + FW_HDR_SIZE + chunk_num * CHUNK_SIZE; in wl1251_boot_upload_firmware()
377 len = CHUNK_SIZE; in wl1251_boot_upload_firmware()
385 addr = WL1251_PART_DOWN_MEM_START + chunk_num * CHUNK_SIZE; in wl1251_boot_upload_firmware()
[all …]
Dreg.h494 #define CHUNK_SIZE 512 macro
/linux-3.4.99/arch/mips/dec/prom/
Dmemory.c28 #define CHUNK_SIZE 0x400000 macro
45 for (memory_page = (unsigned char *)CKSEG1 + CHUNK_SIZE; in pmax_setup_memory_region()
47 memory_page += CHUNK_SIZE) { in pmax_setup_memory_region()
52 add_memory_region(0, (unsigned long)memory_page - CKSEG1 - CHUNK_SIZE, in pmax_setup_memory_region()
/linux-3.4.99/drivers/net/wireless/wl12xx/
Dboot.c112 fw_data_len, CHUNK_SIZE); in wl1271_boot_upload_firmware_chunk()
119 chunk = kmalloc(CHUNK_SIZE, GFP_KERNEL); in wl1271_boot_upload_firmware_chunk()
133 while (chunk_num < fw_data_len / CHUNK_SIZE) { in wl1271_boot_upload_firmware_chunk()
135 addr = dest + (chunk_num + 2) * CHUNK_SIZE; in wl1271_boot_upload_firmware_chunk()
137 addr = dest + chunk_num * CHUNK_SIZE; in wl1271_boot_upload_firmware_chunk()
138 partition_limit = chunk_num * CHUNK_SIZE + in wl1271_boot_upload_firmware_chunk()
145 addr = dest + chunk_num * CHUNK_SIZE; in wl1271_boot_upload_firmware_chunk()
146 p = buf + chunk_num * CHUNK_SIZE; in wl1271_boot_upload_firmware_chunk()
147 memcpy(chunk, p, CHUNK_SIZE); in wl1271_boot_upload_firmware_chunk()
150 wl1271_write(wl, addr, chunk, CHUNK_SIZE, false); in wl1271_boot_upload_firmware_chunk()
[all …]
Dreg.h411 #define CHUNK_SIZE 16384 macro
/linux-3.4.99/drivers/usb/mon/
Dmon_bin.c61 #define CHUNK_SIZE PAGE_SIZE macro
62 #define CHUNK_ALIGN(x) (((x)+CHUNK_SIZE-1) & ~(CHUNK_SIZE-1))
204 (rp->b_vec[offset / CHUNK_SIZE].ptr + offset % CHUNK_SIZE); in MON_OFF2HDR()
238 in_page = CHUNK_SIZE - (off & (CHUNK_SIZE-1)); in mon_copy_to_buff()
245 buf = this->b_vec[off / CHUNK_SIZE].ptr + off % CHUNK_SIZE; in mon_copy_to_buff()
270 in_page = CHUNK_SIZE - (off & (CHUNK_SIZE-1)); in copy_from_buf()
277 buf = this->b_vec[off / CHUNK_SIZE].ptr + off % CHUNK_SIZE; in copy_from_buf()
471 (rp->b_vec[offset / CHUNK_SIZE].ptr + offset % CHUNK_SIZE); in mon_bin_get_isodesc()
698 size = sizeof(struct mon_pgmap) * (rp->b_size/CHUNK_SIZE); in mon_bin_open()
704 if ((rc = mon_alloc_buff(rp->b_vec, rp->b_size/CHUNK_SIZE)) < 0) in mon_bin_open()
[all …]
/linux-3.4.99/drivers/media/video/
Ds2255drv.c544 #define CHUNK_SIZE 512 in s2255_fwchunk_complete() macro
550 len = (data->fw_loaded + CHUNK_SIZE) > data->fw_size ? in s2255_fwchunk_complete()
551 data->fw_size % CHUNK_SIZE : CHUNK_SIZE; in s2255_fwchunk_complete()
553 if (len < CHUNK_SIZE) in s2255_fwchunk_complete()
554 memset(data->pfw_data, 0, CHUNK_SIZE); in s2255_fwchunk_complete()
563 data->pfw_data, CHUNK_SIZE, in s2255_fwchunk_complete()
2505 dev->fw_data->fw->data, CHUNK_SIZE); in s2255_fwload_start()
2506 dev->fw_data->fw_loaded = CHUNK_SIZE; in s2255_fwload_start()
2510 CHUNK_SIZE, s2255_fwchunk_complete, in s2255_fwload_start()
2582 dev->fw_data->pfw_data = kzalloc(CHUNK_SIZE, GFP_KERNEL); in s2255_probe()
/linux-3.4.99/drivers/staging/zcache/
Dzcache-main.c158 #define CHUNK_SIZE (1 << CHUNK_SHIFT) macro
159 #define CHUNK_MASK (~(CHUNK_SIZE-1))
208 return (size + CHUNK_SIZE - 1) >> CHUNK_SHIFT; in zbud_size_to_chunks()
240 p += ((sizeof(struct zbud_page) + CHUNK_SIZE - 1) & in zbud_data()
243 p += PAGE_SIZE - ((size + CHUNK_SIZE - 1) & CHUNK_MASK); in zbud_data()
702 int chunks = (size + (CHUNK_SIZE - 1)) >> CHUNK_SHIFT; in zv_create()
737 chunks = (size + (CHUNK_SIZE - 1)) >> CHUNK_SHIFT; in zv_free()
/linux-3.4.99/drivers/staging/ramster/
Dzcache-main.c173 #define CHUNK_SIZE (1 << CHUNK_SHIFT) macro
174 #define CHUNK_MASK (~(CHUNK_SIZE-1))
246 return (size + CHUNK_SIZE - 1) >> CHUNK_SHIFT; in zbud_size_to_chunks()
278 p += ((sizeof(struct zbud_page) + CHUNK_SIZE - 1) & in zbud_data()
281 p += PAGE_SIZE - ((size + CHUNK_SIZE - 1) & CHUNK_MASK); in zbud_data()
298 p += ((sizeof(struct zbud_page) + CHUNK_SIZE - 1) & in zbud_copy_from_pampd()
301 p += PAGE_SIZE - ((zh->size + CHUNK_SIZE - 1) & CHUNK_MASK); in zbud_copy_from_pampd()
1101 int chunks = (alloc_size + (CHUNK_SIZE - 1)) >> CHUNK_SHIFT; in zv_create()
1167 int chunks = (size + (CHUNK_SIZE - 1)) >> CHUNK_SHIFT; in zv_free()
/linux-3.4.99/drivers/media/dvb/frontends/
Ddrxd_hard.c40 #define CHUNK_SIZE 48 macro
306 u8 mm[CHUNK_SIZE + 4] = { reg & 0xff, (reg >> 16) & 0xff, in write_chunk()
324 u16 Chunk = BlockSize > CHUNK_SIZE ? CHUNK_SIZE : BlockSize; in WriteBlock()
/linux-3.4.99/fs/reiserfs/
Djournal.c669 #define CHUNK_SIZE 32 macro
671 struct buffer_head *bh[CHUNK_SIZE];
697 BUG_ON(chunk->nr >= CHUNK_SIZE); in add_to_chunk()
699 if (chunk->nr >= CHUNK_SIZE) { in add_to_chunk()