/drivers/mtd/ |
H A D | cmdlinepart.c | 185 int alloc_size; local 188 alloc_size = *num_parts * sizeof(struct mtd_partition) + 190 parts = kzalloc(alloc_size, GFP_KERNEL);
|
/drivers/net/phy/ |
H A D | mdio_bus.c | 51 size_t alloc_size; local 55 alloc_size = aligned_size + size; 57 alloc_size = sizeof(*bus); 59 bus = kzalloc(alloc_size, GFP_KERNEL);
|
/drivers/cpufreq/ |
H A D | cpufreq_stats.c | 198 unsigned int alloc_size; local 226 alloc_size = count * sizeof(int) + count * sizeof(cputime64_t); 229 alloc_size += count * count * sizeof(int); 232 stat->time_in_state = kzalloc(alloc_size, GFP_KERNEL);
|
/drivers/dca/ |
H A D | dca-core.c | 327 int alloc_size; local 329 alloc_size = (sizeof(*dca) + priv_size); 330 dca = kzalloc(alloc_size, GFP_KERNEL);
|
/drivers/usb/wusbcore/ |
H A D | devconnect.c | 799 size_t alloc_size = 32, desc_size = 4; local 801 bos = kmalloc(alloc_size, GFP_KERNEL); 811 if (desc_size >= alloc_size) { 813 alloc_size = desc_size; 814 bos = kmalloc(alloc_size, GFP_KERNEL);
|
H A D | wa-xfer.c | 641 size_t alloc_size = sizeof(*xfer->seg[0]) local 655 seg = xfer->seg[cnt] = kzalloc(alloc_size, GFP_ATOMIC);
|
/drivers/char/agp/ |
H A D | generic.c | 116 unsigned long alloc_size = num_agp_pages*sizeof(struct page *); local 132 agp_alloc_page_array(alloc_size, new);
|
/drivers/gpu/drm/ttm/ |
H A D | ttm_page_alloc.c | 87 unsigned alloc_size; member in struct:ttm_pool_opts 183 m->options.alloc_size = val; 201 val = m->options.alloc_size; 584 unsigned alloc_size = _manager->options.alloc_size; local 594 cstate, alloc_size); 600 pool->npages += alloc_size; 828 _manager->options.alloc_size = NUM_PAGES_TO_ALLOC;
|
H A D | ttm_page_alloc_dma.c | 139 unsigned alloc_size; member in struct:ttm_pool_opts 237 m->options.alloc_size = val; 255 val = m->options.alloc_size; 1078 _manager->options.alloc_size = NUM_PAGES_TO_ALLOC;
|
/drivers/net/wan/ |
H A D | wanxl.c | 569 int i, ports, alloc_size; local 604 alloc_size = sizeof(card_t) + ports * sizeof(port_t); 605 card = kzalloc(alloc_size, GFP_KERNEL);
|
/drivers/staging/iio/ |
H A D | industrialio-core.c | 1036 size_t alloc_size; local 1038 alloc_size = sizeof(struct iio_dev); 1040 alloc_size = ALIGN(alloc_size, IIO_ALIGN); 1041 alloc_size += sizeof_priv; 1044 alloc_size += IIO_ALIGN - 1; 1046 dev = kzalloc(alloc_size, GFP_KERNEL);
|
/drivers/usb/host/ |
H A D | ehci-dbg.c | 403 size_t alloc_size; member in struct:debug_buffer 531 size = buf->alloc_size; 574 size = buf->alloc_size; 696 return buf->alloc_size - size; 726 size = buf->alloc_size; 868 return buf->alloc_size - size; 882 buf->alloc_size = PAGE_SIZE; 893 buf->output_buf = vmalloc(buf->alloc_size); 960 buf->alloc_size = (sizeof(void *) == 4 ? 6 : 8)*PAGE_SIZE;
|
/drivers/acpi/apei/ |
H A D | erst.c | 517 int new_size, alloc_size; local 529 alloc_size = new_size * sizeof(entries[0]); 530 if (alloc_size < PAGE_SIZE) 531 new_entries = kmalloc(alloc_size, GFP_KERNEL); 533 new_entries = vmalloc(alloc_size);
|
/drivers/media/video/ |
H A D | omap24xxcam.c | 233 size_t alloc_size; local 243 alloc_size = sg_dma_len(&dma->sglist[i]); 247 } while (alloc_size -= PAGE_SIZE); 286 size_t alloc_size, size = vb->bsize; /* vb->bsize is page aligned */ local 329 alloc_size = (PAGE_SIZE << order); 332 memset(page_address(page), 0, alloc_size); local 337 } while (alloc_size -= PAGE_SIZE);
|
/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | adapter.h | 114 unsigned int alloc_size; /* size of allocated buffer */ member in struct:sge_fl
|
/drivers/net/ethernet/toshiba/ |
H A D | ps3_gelic_net.c | 1550 size_t alloc_size; local 1557 alloc_size = 1563 p = kzalloc(alloc_size, GFP_KERNEL);
|
H A D | spider_net.c | 348 size_t alloc_size; local 350 alloc_size = chain->num_desc * sizeof(struct spider_net_hw_descr); 352 chain->hwring = dma_alloc_coherent(&card->pdev->dev, alloc_size, 2378 size_t alloc_size; local 2380 alloc_size = sizeof(struct spider_net_card) + 2382 netdev = alloc_etherdev(alloc_size);
|
/drivers/net/fddi/ |
H A D | defxx.c | 529 int alloc_size; /* total buffer size used */ local 604 alloc_size = sizeof(PI_DESCR_BLOCK) + 612 dma_free_coherent(bdev, alloc_size, 975 int alloc_size; /* total buffer size needed */ local 1064 alloc_size = sizeof(PI_DESCR_BLOCK) + 1072 bp->kmalloced = top_v = dma_alloc_coherent(bp->bus_dev, alloc_size, 1080 memset(top_v, 0, alloc_size); /* zero out memory before continuing */ 3591 int alloc_size; /* total buffer size used */ local 3595 alloc_size = sizeof(PI_DESCR_BLOCK) + 3603 dma_free_coherent(bdev, alloc_size, [all...] |
/drivers/staging/tidspbridge/pmgr/ |
H A D | dbll.c | 1195 u32 alloc_size = 0; local 1259 alloc_size = info->size + GEM_L1P_PREFETCH_SIZE; 1261 alloc_size = info->size; 1271 alloc_size, align,
|
/drivers/net/tokenring/ |
H A D | smctr.c | 1396 unsigned short alloc_size; local 1407 alloc_size = (bytes_count + 1) & 0xfffe; 1410 if((tp->tx_buff_used[queue] + alloc_size) > tp->tx_buff_size[queue]) 1417 if(((unsigned long)(tp->tx_buff_curr[queue]) + alloc_size) 1421 alloc_size = alloc_size + 1425 if((tp->tx_buff_used[queue] + alloc_size) 1435 tp->tx_buff_used[queue] += alloc_size; 1438 tp->tx_fcb_curr[queue]->memory_alloc = alloc_size;
|
/drivers/scsi/be2iscsi/ |
H A D | be_main.c | 2230 unsigned int i, j, alloc_size, curr_alloc_size; local 2255 alloc_size = phba->mem_req[i]; 2258 curr_alloc_size = min(be_max_phys_size * 1024, alloc_size); 2277 alloc_size -= curr_alloc_size; 2279 1024, alloc_size); 2283 } while (alloc_size);
|
/drivers/staging/zcache/ |
H A D | zcache-main.c | 667 int alloc_size = clen + sizeof(struct zv_hdr); local 668 int chunks = (alloc_size + (CHUNK_SIZE - 1)) >> CHUNK_SHIFT; 673 ret = xv_malloc(xvpool, alloc_size,
|
/drivers/atm/ |
H A D | fore200e.h | 568 u32 alloc_size; /* length of allocated chunk */ member in struct:chunk
|
/drivers/net/ethernet/broadcom/ |
H A D | cnic.c | 5280 int alloc_size; local 5282 alloc_size = sizeof(struct cnic_dev) + sizeof(struct cnic_local); 5284 cdev = kzalloc(alloc_size , GFP_KERNEL);
|
/drivers/net/ethernet/micrel/ |
H A D | ksz884x.c | 1374 * @alloc_size: Allocation size. 1381 uint alloc_size; member in struct:ksz_shared_mem 4406 adapter->desc_pool.alloc_size = 4413 adapter->pdev, adapter->desc_pool.alloc_size, 4416 adapter->desc_pool.alloc_size = 0; 4419 memset(adapter->desc_pool.alloc_virt, 0, adapter->desc_pool.alloc_size); 4570 adapter->desc_pool.alloc_size, 4575 adapter->desc_pool.alloc_size = 0;
|