/drivers/staging/most/hdm-dim2/ |
D | dim2_hdm.c | 526 u16 new_size; in configure_channel() local 539 new_size = DIM_NormCtrlAsyncBufferSize(buf_size); in configure_channel() 540 if (new_size == 0) { in configure_channel() 544 ccfg->buffer_size = new_size; in configure_channel() 545 if (new_size != buf_size) in configure_channel() 547 hdm_ch->name, buf_size, new_size); in configure_channel() 553 new_size = DIM_NormCtrlAsyncBufferSize(buf_size); in configure_channel() 554 if (new_size == 0) { in configure_channel() 558 ccfg->buffer_size = new_size; in configure_channel() 559 if (new_size != buf_size) in configure_channel() [all …]
|
/drivers/dma/ioat/ |
D | dma.c | 374 const u32 new_size = 1 << order; in reshape_ring() local 388 if (active >= new_size) in reshape_ring() 392 ring = kcalloc(new_size, sizeof(*ring), GFP_NOWAIT); in reshape_ring() 397 if (new_size > curr_size) { in reshape_ring() 401 u16 new_idx = (ioat_chan->tail+i) & (new_size-1); in reshape_ring() 408 for (i = curr_size; i < new_size; i++) { in reshape_ring() 409 u16 new_idx = (ioat_chan->tail+i) & (new_size-1); in reshape_ring() 415 (new_size-1); in reshape_ring() 426 for (i = curr_size-1; i < new_size; i++) { in reshape_ring() 427 u16 new_idx = (ioat_chan->tail+i) & (new_size-1); in reshape_ring() [all …]
|
/drivers/hid/ |
D | hid-gembird.c | 70 size_t new_size = *rsize + delta_size; in gembird_report_fixup() local 75 new_rdesc = devm_kzalloc(&hdev->dev, new_size, GFP_KERNEL); in gembird_report_fixup() 93 *rsize = new_size; in gembird_report_fixup()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cotable.c | 387 static int vmw_cotable_resize(struct vmw_resource *res, size_t new_size) in vmw_cotable_resize() argument 416 ret = vmw_dmabuf_init(dev_priv, buf, new_size, &vmw_mob_ne_placement, in vmw_cotable_resize() 464 res->backup_size = new_size; in vmw_cotable_resize() 512 size_t new_size = res->backup_size; in vmw_cotable_create() local 518 while (needed_size > new_size) in vmw_cotable_create() 519 new_size *= 2; in vmw_cotable_create() 521 if (likely(new_size <= res->backup_size)) { in vmw_cotable_create() 531 return vmw_cotable_resize(res, new_size); in vmw_cotable_create()
|
/drivers/staging/comedi/ |
D | comedi_buf.c | 195 unsigned long new_size) in comedi_buf_alloc() argument 200 new_size = (new_size + PAGE_SIZE - 1) & PAGE_MASK; in comedi_buf_alloc() 203 if (async->prealloc_buf && async->prealloc_bufsz == new_size) in comedi_buf_alloc() 210 if (new_size) { in comedi_buf_alloc() 211 unsigned n_pages = new_size >> PAGE_SHIFT; in comedi_buf_alloc() 221 async->prealloc_bufsz = new_size; in comedi_buf_alloc()
|
D | comedi_internal.h | 27 unsigned long new_size);
|
/drivers/scsi/cxlflash/ |
D | vlun.c | 509 u64 *new_size) in grow_lxt() argument 518 u64 delta = *new_size - rhte->lxt_cnt; in grow_lxt() 600 *new_size = my_new_size; in grow_lxt() 622 u64 *new_size) in shrink_lxt() argument 633 u64 delta = rhte->lxt_cnt - *new_size; in shrink_lxt() 707 *new_size = my_new_size; in shrink_lxt() 738 u64 new_size; in _cxlflash_vlun_resize() local 752 new_size = DIV_ROUND_UP(nsectors, MC_CHUNK_SIZE); in _cxlflash_vlun_resize() 756 resize->req_size, new_size); in _cxlflash_vlun_resize() 784 if (new_size > rhte->lxt_cnt) in _cxlflash_vlun_resize() [all …]
|
/drivers/staging/lustre/lustre/libcfs/ |
D | hash.c | 914 unsigned int old_size, unsigned int new_size) in cfs_hash_buckets_realloc() argument 921 if (old_bkts != NULL && old_size == new_size) in cfs_hash_buckets_realloc() 924 LIBCFS_ALLOC(new_bkts, sizeof(new_bkts[0]) * new_size); in cfs_hash_buckets_realloc() 930 min(old_size, new_size) * sizeof(*old_bkts)); in cfs_hash_buckets_realloc() 933 for (i = old_size; i < new_size; i++) { in cfs_hash_buckets_realloc() 940 old_size, new_size); in cfs_hash_buckets_realloc() 1882 unsigned int new_size; in cfs_hash_rehash_worker() local 1894 new_size = CFS_HASH_RH_NBKT(hs); in cfs_hash_rehash_worker() 1903 old_size, new_size); in cfs_hash_rehash_worker() 1918 old_size = new_size; in cfs_hash_rehash_worker() [all …]
|
/drivers/md/persistent-data/ |
D | dm-array.c | 642 uint32_t old_size, uint32_t new_size, in array_resize() argument 648 if (old_size == new_size) { in array_resize() 661 resize.new_nr_full_blocks = new_size / resize.max_entries; in array_resize() 662 resize.new_nr_entries_in_last_block = new_size % resize.max_entries; in array_resize() 665 r = ((new_size > old_size) ? grow : shrink)(&resize); in array_resize() 674 uint32_t old_size, uint32_t new_size, in dm_array_resize() argument 678 int r = array_resize(info, root, old_size, new_size, value, new_root); in dm_array_resize()
|
D | dm-array.h | 110 uint32_t old_size, uint32_t new_size,
|
/drivers/md/ |
D | dm-era-target.c | 834 dm_block_t *new_size = arg; in metadata_resize() local 837 if (!valid_nr_blocks(*new_size)) { in metadata_resize() 839 (unsigned long long) *new_size); in metadata_resize() 846 r = writeset_alloc(&md->writesets[0], *new_size); in metadata_resize() 852 r = writeset_alloc(&md->writesets[1], *new_size); in metadata_resize() 862 md->nr_blocks, *new_size, in metadata_resize() 871 md->nr_blocks = *new_size; in metadata_resize() 1592 dm_block_t new_size = calc_nr_blocks(era); in era_preresume() local 1594 if (era->nr_blocks != new_size) { in era_preresume() 1595 r = metadata_resize(era->md, &new_size); in era_preresume() [all …]
|
D | dm-thin-metadata.h | 204 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_size); 205 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_size);
|
D | dm-table.c | 523 unsigned new_size; in realloc_argv() local 527 new_size = *size * 2; in realloc_argv() 530 new_size = 8; in realloc_argv() 533 argv = kmalloc(new_size * sizeof(*argv), gfp); in realloc_argv() 536 *size = new_size; in realloc_argv()
|
/drivers/xen/ |
D | evtchn.c | 316 unsigned int new_size; in evtchn_resize_ring() local 327 new_size = 64; in evtchn_resize_ring() 329 new_size = 2 * u->ring_size; in evtchn_resize_ring() 331 new_ring = evtchn_alloc_ring(new_size); in evtchn_resize_ring() 360 u->ring_size = new_size; in evtchn_resize_ring()
|
/drivers/gpu/drm/vc4/ |
D | vc4_plane.c | 128 u32 new_size = max(4u, vc4_state->dlist_count * 2); in vc4_dlist_write() local 129 u32 *new_dlist = kmalloc(new_size * 4, GFP_KERNEL); in vc4_dlist_write() 137 vc4_state->dlist_size = new_size; in vc4_dlist_write()
|
/drivers/uwb/ |
D | hwa-rc.c | 120 size_t *new_size) in hwarc_filter_evt_beacon_WUSB_0100() argument 155 *new_size = sizeof(*newbe) + ielength; in hwarc_filter_evt_beacon_WUSB_0100() 178 size_t *new_size) in hwarc_filter_evt_drp_avail_WUSB_0100() argument 222 *new_size = sizeof(*newda); in hwarc_filter_evt_drp_avail_WUSB_0100() 253 size_t *new_size) in hwarc_filter_evt_drp_WUSB_0100() argument 286 *new_size = sizeof(*newdrpev) + ielength; in hwarc_filter_evt_drp_WUSB_0100()
|
/drivers/misc/vmw_vmci/ |
D | vmci_handle_array.c | 62 size_t new_size = handle_arr_calc_size(array->capacity + in vmci_handle_arr_append_entry() local 68 new_array = krealloc(array, new_size, GFP_ATOMIC); in vmci_handle_arr_append_entry()
|
/drivers/acpi/apei/ |
D | erst.c | 515 int new_size, alloc_size; in __erst_record_id_cache_add_one() local 518 new_size = erst_record_id_cache.size * 2; in __erst_record_id_cache_add_one() 519 new_size = clamp_val(new_size, ERST_RECORD_ID_CACHE_SIZE_MIN, in __erst_record_id_cache_add_one() 521 if (new_size <= erst_record_id_cache.size) { in __erst_record_id_cache_add_one() 526 alloc_size = new_size * sizeof(entries[0]); in __erst_record_id_cache_add_one() 540 erst_record_id_cache.size = new_size; in __erst_record_id_cache_add_one()
|
/drivers/pci/ |
D | setup-res.c | 341 resource_size_t new_size; in pci_reassign_resource() local 353 new_size = resource_size(res) + addsize; in pci_reassign_resource() 354 ret = _pci_assign_resource(dev, resno, new_size, min_align); in pci_reassign_resource()
|
/drivers/staging/lustre/lustre/lov/ |
D | lov_pool.c | 319 int new_size; in lov_ost_pool_extend() local 326 new_size = max(min_count, 2 * op->op_size); in lov_ost_pool_extend() 327 new = kcalloc(new_size, sizeof(op->op_array[0]), GFP_NOFS); in lov_ost_pool_extend() 335 op->op_size = new_size; in lov_ost_pool_extend()
|
/drivers/staging/lustre/lustre/obdclass/ |
D | acl.c | 100 int new_size = CFS_ACL_XATTR_SIZE(new_count, posix_acl_xattr); in lustre_posix_acl_xattr_reduce_space() local 106 new = kmemdup(*header, new_size, GFP_NOFS); in lustre_posix_acl_xattr_reduce_space() 112 return new_size; in lustre_posix_acl_xattr_reduce_space()
|
/drivers/media/platform/soc_camera/ |
D | mx3_camera.c | 272 size_t new_size; in mx3_videobuf_queue() local 274 new_size = icd->sizeimage; in mx3_videobuf_queue() 276 if (vb2_plane_size(vb, 0) < new_size) { in mx3_videobuf_queue() 278 vbuf->vb2_buf.index, vb2_plane_size(vb, 0), new_size); in mx3_videobuf_queue() 284 sg_dma_len(sg) = new_size; in mx3_videobuf_queue() 300 vb2_set_plane_payload(vb, 0, new_size); in mx3_videobuf_queue()
|
/drivers/staging/rdma/hfi1/ |
D | init.c | 1607 u32 new_size, i, j; in hfi1_setup_eagerbufs() local 1623 new_size = rcd->egrbufs.rcvtid_size / 2; in hfi1_setup_eagerbufs() 1631 rcd->egrbufs.rcvtid_size = new_size; in hfi1_setup_eagerbufs() 1649 new_size) == in hfi1_setup_eagerbufs() 1655 offset += new_size; in hfi1_setup_eagerbufs() 1657 rcd->egrbufs.rcvtid_size = new_size; in hfi1_setup_eagerbufs()
|
/drivers/staging/lustre/lustre/llite/ |
D | vvp_io.c | 365 __u64 new_size; in vvp_io_setattr_lock() local 369 new_size = io->u.ci_setattr.sa_attr.lvb_size; in vvp_io_setattr_lock() 370 if (new_size == 0) in vvp_io_setattr_lock() 378 new_size = 0; in vvp_io_setattr_lock() 382 new_size, OBD_OBJECT_EOF); in vvp_io_setattr_lock()
|
/drivers/base/ |
D | component.c | 270 size_t new_size = match ? match->alloc + 16 : 15; in component_match_add() local 272 match = component_match_realloc(dev, match, new_size); in component_match_add()
|