/drivers/staging/unisys/visorutil/ |
D | charqueue.c | 31 int alloc_size; member 42 int alloc_size = sizeof(CHARQUEUE) + nslots + 1; in visor_charqueue_create() local 43 CHARQUEUE *cq = kmalloc(alloc_size, GFP_KERNEL|__GFP_NORETRY); in visor_charqueue_create() 47 alloc_size); in visor_charqueue_create() 50 cq->alloc_size = alloc_size; in visor_charqueue_create()
|
/drivers/md/ |
D | dm-stats.c | 73 static bool __check_shared_memory(size_t alloc_size) in __check_shared_memory() argument 77 a = shared_memory_amount + alloc_size; in __check_shared_memory() 89 static bool check_shared_memory(size_t alloc_size) in check_shared_memory() argument 95 ret = __check_shared_memory(alloc_size); in check_shared_memory() 102 static bool claim_shared_memory(size_t alloc_size) in claim_shared_memory() argument 106 if (!__check_shared_memory(alloc_size)) { in claim_shared_memory() 111 shared_memory_amount += alloc_size; in claim_shared_memory() 118 static void free_shared_memory(size_t alloc_size) in free_shared_memory() argument 124 if (WARN_ON_ONCE(shared_memory_amount < alloc_size)) { in free_shared_memory() 130 shared_memory_amount -= alloc_size; in free_shared_memory() [all …]
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_null.c | 168 int alloc_size = size_roundup_power2(msgsize); in null_alloc_reqbuf() local 171 OBD_ALLOC_LARGE(req->rq_reqbuf, alloc_size); in null_alloc_reqbuf() 175 req->rq_reqbuf_len = alloc_size; in null_alloc_reqbuf() 240 int oldsize, newmsg_size, alloc_size; in null_enlarge_reqbuf() local 257 alloc_size = size_roundup_power2(newmsg_size); in null_enlarge_reqbuf() 259 OBD_ALLOC_LARGE(newbuf, alloc_size); in null_enlarge_reqbuf() 275 req->rq_reqbuf_len = alloc_size; in null_enlarge_reqbuf()
|
/drivers/cpufreq/ |
D | cpufreq_stats.c | 366 unsigned int alloc_size; in __cpufreq_stats_create_table() local 383 alloc_size = count * sizeof(int) + count * sizeof(u64); in __cpufreq_stats_create_table() 386 alloc_size += count * count * sizeof(int); in __cpufreq_stats_create_table() 389 stat->time_in_state = kzalloc(alloc_size, GFP_KERNEL); in __cpufreq_stats_create_table() 432 unsigned int alloc_size, i = 0, ret = 0; in cpufreq_powerstats_create() local 445 alloc_size = count * sizeof(unsigned int) + in cpufreq_powerstats_create() 447 powerstats->curr = kzalloc(alloc_size, GFP_KERNEL); in cpufreq_powerstats_create() 523 unsigned int alloc_size; in cpufreq_allstats_create() local 535 alloc_size = count * sizeof(int) + count * sizeof(cputime64_t); in cpufreq_allstats_create() 536 all_stat->time_in_state = kzalloc(alloc_size, GFP_KERNEL); in cpufreq_allstats_create()
|
/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc.c | 90 unsigned alloc_size; member 181 m->options.alloc_size = val; in ttm_pool_store() 199 val = m->options.alloc_size; in ttm_pool_show() 595 unsigned alloc_size = _manager->options.alloc_size; in ttm_page_pool_fill_locked() local 605 cstate, alloc_size); in ttm_page_pool_fill_locked() 611 pool->npages += alloc_size; in ttm_page_pool_fill_locked() 834 _manager->options.alloc_size = NUM_PAGES_TO_ALLOC; in ttm_page_alloc_init()
|
D | ttm_page_alloc_dma.c | 142 unsigned alloc_size; member 235 m->options.alloc_size = val; in ttm_pool_store() 253 val = m->options.alloc_size; in ttm_pool_show() 1095 _manager->options.alloc_size = NUM_PAGES_TO_ALLOC; in ttm_dma_page_alloc_init()
|
/drivers/firmware/efi/libstub/ |
D | efi-stub-helper.c | 548 unsigned long alloc_size, in efi_relocate_kernel() argument 558 if (!image_addr || !image_size || !alloc_size) in efi_relocate_kernel() 560 if (alloc_size < image_size) in efi_relocate_kernel() 573 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_relocate_kernel() 583 status = efi_low_alloc(sys_table_arg, alloc_size, alignment, in efi_relocate_kernel()
|
/drivers/usb/host/ |
D | ehci-dbg.c | 381 size_t alloc_size; member 509 size = buf->alloc_size; in fill_async_buffer() 550 size = buf->alloc_size; in fill_bandwidth_buffer() 638 size = buf->alloc_size; in fill_periodic_buffer() 759 return buf->alloc_size - size; in fill_periodic_buffer() 791 size = buf->alloc_size; in fill_registers_buffer() 935 return buf->alloc_size - size; in fill_registers_buffer() 949 buf->alloc_size = PAGE_SIZE; in alloc_buffer() 960 buf->output_buf = vmalloc(buf->alloc_size); in fill_buffer() 1036 buf->alloc_size = (sizeof(void *) == 4 ? 6 : 8)*PAGE_SIZE; in debug_periodic_open()
|
/drivers/mtd/ |
D | cmdlinepart.c | 183 int alloc_size; in newpart() local 186 alloc_size = *num_parts * sizeof(struct mtd_partition) + in newpart() 189 parts = kzalloc(alloc_size, GFP_KERNEL); in newpart()
|
/drivers/net/phy/ |
D | mdio_bus.c | 53 size_t alloc_size; in mdiobus_alloc_size() local 57 alloc_size = aligned_size + size; in mdiobus_alloc_size() 59 alloc_size = sizeof(*bus); in mdiobus_alloc_size() 61 bus = kzalloc(alloc_size, GFP_KERNEL); in mdiobus_alloc_size()
|
/drivers/dca/ |
D | dca-core.c | 327 int alloc_size; in alloc_dca_provider() local 329 alloc_size = (sizeof(*dca) + priv_size); in alloc_dca_provider() 330 dca = kzalloc(alloc_size, GFP_KERNEL); in alloc_dca_provider()
|
/drivers/scsi/osd/ |
D | osd_initiator.c | 434 if (!seg->buff || !seg->alloc_size) in _osd_free_seg() 439 seg->alloc_size = 0; in _osd_free_seg() 541 if (seg->alloc_size >= max_bytes) in _osd_realloc_seg() 547 seg->alloc_size); in _osd_realloc_seg() 551 memset(buff + seg->alloc_size, 0, max_bytes - seg->alloc_size); in _osd_realloc_seg() 553 seg->alloc_size = max_bytes; in _osd_realloc_seg() 1152 if (unlikely(or->set_attr.alloc_size < total_bytes)) { in osd_req_add_set_attr_list() 1182 (padding <= last_seg->alloc_size - last_seg->total_bytes)) in _req_append_segment() 1268 if (unlikely(or->enc_get_attr.alloc_size < total_bytes)) { in osd_req_add_get_attr_list() 1372 (or->get_attr.buff + or->get_attr.alloc_size < *iterator)); in osd_req_decode_get_attr_list() [all …]
|
/drivers/iio/ |
D | industrialio-core.c | 955 size_t alloc_size; in iio_device_alloc() local 957 alloc_size = sizeof(struct iio_dev); in iio_device_alloc() 959 alloc_size = ALIGN(alloc_size, IIO_ALIGN); in iio_device_alloc() 960 alloc_size += sizeof_priv; in iio_device_alloc() 963 alloc_size += IIO_ALIGN - 1; in iio_device_alloc() 965 dev = kzalloc(alloc_size, GFP_KERNEL); in iio_device_alloc()
|
/drivers/usb/wusbcore/ |
D | devconnect.c | 779 size_t alloc_size = 32, desc_size = 4; in wusb_dev_bos_add() local 781 bos = kmalloc(alloc_size, GFP_KERNEL); in wusb_dev_bos_add() 791 if (desc_size >= alloc_size) { in wusb_dev_bos_add() 793 alloc_size = desc_size; in wusb_dev_bos_add() 794 bos = kmalloc(alloc_size, GFP_KERNEL); in wusb_dev_bos_add()
|
/drivers/dma-buf/ |
D | dma-buf.c | 291 size_t alloc_size = sizeof(struct dma_buf); in dma_buf_export_named() local 293 alloc_size += sizeof(struct reservation_object); in dma_buf_export_named() 296 alloc_size += 1; in dma_buf_export_named() 308 dmabuf = kzalloc(alloc_size, GFP_KERNEL); in dma_buf_export_named()
|
/drivers/acpi/apei/ |
D | erst.c | 518 int new_size, alloc_size; in __erst_record_id_cache_add_one() local 529 alloc_size = new_size * sizeof(entries[0]); in __erst_record_id_cache_add_one() 530 if (alloc_size < PAGE_SIZE) in __erst_record_id_cache_add_one() 531 new_entries = kmalloc(alloc_size, GFP_KERNEL); in __erst_record_id_cache_add_one() 533 new_entries = vmalloc(alloc_size); in __erst_record_id_cache_add_one()
|
/drivers/staging/media/omap24xx/ |
D | omap24xxcam.c | 233 size_t alloc_size; in omap24xxcam_vbq_free_mmap_buffer() local 243 alloc_size = sg_dma_len(&dma->sglist[i]); in omap24xxcam_vbq_free_mmap_buffer() 247 } while (alloc_size -= PAGE_SIZE); in omap24xxcam_vbq_free_mmap_buffer() 286 size_t alloc_size, size = vb->bsize; /* vb->bsize is page aligned */ in omap24xxcam_vbq_alloc_mmap_buffer() local 329 alloc_size = (PAGE_SIZE << order); in omap24xxcam_vbq_alloc_mmap_buffer() 332 memset(page_address(page), 0, alloc_size); in omap24xxcam_vbq_alloc_mmap_buffer() 337 } while (alloc_size -= PAGE_SIZE); in omap24xxcam_vbq_alloc_mmap_buffer()
|
/drivers/net/fddi/ |
D | defxx.c | 528 int alloc_size; /* total buffer size used */ in dfx_register() local 603 alloc_size = sizeof(PI_DESCR_BLOCK) + in dfx_register() 611 dma_free_coherent(bdev, alloc_size, in dfx_register() 984 int alloc_size; /* total buffer size needed */ in dfx_driver_init() local 1073 alloc_size = sizeof(PI_DESCR_BLOCK) + in dfx_driver_init() 1081 bp->kmalloced = top_v = dma_zalloc_coherent(bp->bus_dev, alloc_size, in dfx_driver_init() 3641 int alloc_size; /* total buffer size used */ in dfx_unregister() local 3645 alloc_size = sizeof(PI_DESCR_BLOCK) + in dfx_unregister() 3653 dma_free_coherent(bdev, alloc_size, in dfx_unregister()
|
/drivers/net/ethernet/toshiba/ |
D | spider_net.c | 322 size_t alloc_size; in spider_net_init_chain() local 324 alloc_size = chain->num_desc * sizeof(struct spider_net_hw_descr); in spider_net_init_chain() 326 chain->hwring = dma_alloc_coherent(&card->pdev->dev, alloc_size, in spider_net_init_chain() 2348 size_t alloc_size; in spider_net_alloc_card() local 2350 alloc_size = sizeof(struct spider_net_card) + in spider_net_alloc_card() 2352 netdev = alloc_etherdev(alloc_size); in spider_net_alloc_card()
|
D | ps3_gelic_net.c | 1541 size_t alloc_size; in gelic_alloc_card_net() local 1548 alloc_size = in gelic_alloc_card_net() 1554 p = kzalloc(alloc_size, GFP_KERNEL); in gelic_alloc_card_net()
|
/drivers/net/wan/ |
D | wanxl.c | 569 int i, ports, alloc_size; in wanxl_pci_init_one() local 604 alloc_size = sizeof(struct card) + ports * sizeof(struct port); in wanxl_pci_init_one() 605 card = kzalloc(alloc_size, GFP_KERNEL); in wanxl_pci_init_one()
|
/drivers/hsi/clients/ |
D | hsi_char.c | 186 static inline struct hsi_msg *hsc_msg_alloc(unsigned int alloc_size) in hsc_msg_alloc() argument 194 buf = kmalloc(alloc_size, GFP_KERNEL); in hsc_msg_alloc() 199 sg_init_one(msg->sgt.sgl, buf, alloc_size); in hsc_msg_alloc()
|
/drivers/hid/ |
D | hid-rmi.c | 928 size_t alloc_size; in rmi_probe() local 970 alloc_size = data->output_report_size + data->input_report_size; in rmi_probe() 972 data->writeReport = devm_kzalloc(&hdev->dev, alloc_size, GFP_KERNEL); in rmi_probe()
|
/drivers/atm/ |
D | fore200e.c | 185 chunk->alloc_size = size + alignment; in fore200e_chunk_alloc() 189 chunk->alloc_addr = kzalloc(chunk->alloc_size, GFP_KERNEL | GFP_DMA); in fore200e_chunk_alloc() 472 chunk->alloc_size = size * nbr; in fore200e_pca_dma_chunk_alloc() 474 chunk->alloc_size, in fore200e_pca_dma_chunk_alloc() 492 chunk->alloc_size, in fore200e_pca_dma_chunk_free() 722 chunk->alloc_size = chunk->align_size = size * nbr; in fore200e_sba_dma_chunk_alloc() 725 chunk->alloc_addr = dma_alloc_coherent(&op->dev, chunk->alloc_size, in fore200e_sba_dma_chunk_alloc() 741 dma_free_coherent(&op->dev, chunk->alloc_size, in fore200e_sba_dma_chunk_free()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | adapter.h | 114 unsigned int alloc_size; /* size of allocated buffer */ member
|