Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 25 of 42) sorted by relevance

12

/drivers/staging/most/dim2/
Ddim2.c455 u16 new_size; in configure_channel() local
474 new_size = dim_norm_ctrl_async_buffer_size(buf_size); in configure_channel()
475 if (new_size == 0) { in configure_channel()
479 ccfg->buffer_size = new_size; in configure_channel()
480 if (new_size != buf_size) in configure_channel()
482 hdm_ch->name, buf_size, new_size); in configure_channel()
485 is_tx ? new_size * 2 : new_size); in configure_channel()
488 new_size = dim_norm_ctrl_async_buffer_size(buf_size); in configure_channel()
489 if (new_size == 0) { in configure_channel()
493 ccfg->buffer_size = new_size; in configure_channel()
[all …]
/drivers/hid/
Dhid-gembird.c67 size_t new_size = *rsize + delta_size; in gembird_report_fixup() local
72 new_rdesc = devm_kzalloc(&hdev->dev, new_size, GFP_KERNEL); in gembird_report_fixup()
90 *rsize = new_size; in gembird_report_fixup()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cotable.c383 static int vmw_cotable_resize(struct vmw_resource *res, size_t new_size) in vmw_cotable_resize() argument
413 ret = vmw_bo_init(dev_priv, buf, new_size, &vmw_mob_ne_placement, in vmw_cotable_resize()
462 res->backup_size = new_size; in vmw_cotable_resize()
510 size_t new_size = res->backup_size; in vmw_cotable_create() local
516 while (needed_size > new_size) in vmw_cotable_create()
517 new_size *= 2; in vmw_cotable_create()
519 if (likely(new_size <= res->backup_size)) { in vmw_cotable_create()
529 return vmw_cotable_resize(res, new_size); in vmw_cotable_create()
/drivers/scsi/cxlflash/
Dvlun.c505 u64 *new_size) in grow_lxt() argument
516 u64 delta = *new_size - rhte->lxt_cnt; in grow_lxt()
601 *new_size = my_new_size; in grow_lxt()
623 u64 *new_size) in shrink_lxt() argument
636 u64 delta = rhte->lxt_cnt - *new_size; in shrink_lxt()
709 *new_size = my_new_size; in shrink_lxt()
741 u64 new_size; in _cxlflash_vlun_resize() local
755 new_size = DIV_ROUND_UP(nsectors, MC_CHUNK_SIZE); in _cxlflash_vlun_resize()
759 new_size); in _cxlflash_vlun_resize()
789 if (new_size > rhte->lxt_cnt) in _cxlflash_vlun_resize()
[all …]
/drivers/staging/comedi/
Dcomedi_buf.c258 unsigned long new_size) in comedi_buf_alloc() argument
265 new_size = (new_size + PAGE_SIZE - 1) & PAGE_MASK; in comedi_buf_alloc()
268 if (async->prealloc_buf && async->prealloc_bufsz == new_size) in comedi_buf_alloc()
275 if (new_size) { in comedi_buf_alloc()
276 unsigned int n_pages = new_size >> PAGE_SHIFT; in comedi_buf_alloc()
286 async->prealloc_bufsz = new_size; in comedi_buf_alloc()
Dcomedi_internal.h28 unsigned long new_size);
/drivers/gpu/drm/lima/
Dlima_gem.c26 size_t new_size = bo->heap_size ? bo->heap_size * 2 : in lima_heap_alloc() local
34 new_size = min(new_size, bo->base.base.size); in lima_heap_alloc()
54 for (i = old_size >> PAGE_SHIFT; i < new_size >> PAGE_SHIFT; i++) { in lima_heap_alloc()
67 new_size, GFP_KERNEL); in lima_heap_alloc()
98 bo->heap_size = new_size; in lima_heap_alloc()
/drivers/md/
Ddm-era-target.c833 dm_block_t *new_size = arg; in metadata_resize() local
836 if (!valid_nr_blocks(*new_size)) { in metadata_resize()
838 (unsigned long long) *new_size); in metadata_resize()
845 r = writeset_alloc(&md->writesets[0], *new_size); in metadata_resize()
851 r = writeset_alloc(&md->writesets[1], *new_size); in metadata_resize()
861 md->nr_blocks, *new_size, in metadata_resize()
870 md->nr_blocks = *new_size; in metadata_resize()
1581 dm_block_t new_size = calc_nr_blocks(era); in era_preresume() local
1583 if (era->nr_blocks != new_size) { in era_preresume()
1584 r = metadata_resize(era->md, &new_size); in era_preresume()
[all …]
Ddm-thin-metadata.h207 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_size);
208 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_size);
Ddm-cache-target.c2955 static bool can_resize(struct cache *cache, dm_cblock_t new_size) in can_resize() argument
2957 if (from_cblock(new_size) > from_cblock(cache->cache_size)) { in can_resize()
2968 while (from_cblock(new_size) < from_cblock(cache->cache_size)) { in can_resize()
2969 new_size = to_cblock(from_cblock(new_size) + 1); in can_resize()
2970 if (is_dirty(cache, new_size)) { in can_resize()
2973 (unsigned long long) from_cblock(new_size)); in can_resize()
2981 static int resize_cache_dev(struct cache *cache, dm_cblock_t new_size) in resize_cache_dev() argument
2985 r = dm_cache_resize(cache->cmd, new_size); in resize_cache_dev()
2992 set_cache_size(cache, new_size); in resize_cache_dev()
/drivers/misc/vmw_vmci/
Dvmci_handle_array.c54 size_t new_size = handle_arr_calc_size(array->capacity + in vmci_handle_arr_append_entry() local
60 new_array = krealloc(array, new_size, GFP_ATOMIC); in vmci_handle_arr_append_entry()
/drivers/xen/
Devtchn.c310 unsigned int new_size; in evtchn_resize_ring() local
321 new_size = 64; in evtchn_resize_ring()
323 new_size = 2 * u->ring_size; in evtchn_resize_ring()
325 new_ring = kvmalloc_array(new_size, sizeof(*new_ring), GFP_KERNEL); in evtchn_resize_ring()
354 u->ring_size = new_size; in evtchn_resize_ring()
/drivers/of/
Dbase.c1586 u32 list_size, new_size; in of_parse_phandle_with_args_map() local
1657 ret = of_property_read_u32(new, cells_name, &new_size); in of_parse_phandle_with_args_map()
1662 if (WARN_ON(new_size > MAX_PHANDLE_ARGS)) in of_parse_phandle_with_args_map()
1664 if (map_len < new_size) in of_parse_phandle_with_args_map()
1668 map += new_size; in of_parse_phandle_with_args_map()
1669 map_len -= new_size; in of_parse_phandle_with_args_map()
1684 match_array = map - new_size; in of_parse_phandle_with_args_map()
1685 for (i = 0; i < new_size; i++) { in of_parse_phandle_with_args_map()
1686 __be32 val = *(map - new_size + i); in of_parse_phandle_with_args_map()
1695 out_args->args_count = list_size = new_size; in of_parse_phandle_with_args_map()
/drivers/md/persistent-data/
Ddm-array.c656 uint32_t old_size, uint32_t new_size, in array_resize() argument
662 if (old_size == new_size) { in array_resize()
675 resize.new_nr_full_blocks = new_size / resize.max_entries; in array_resize()
676 resize.new_nr_entries_in_last_block = new_size % resize.max_entries; in array_resize()
679 r = ((new_size > old_size) ? grow : shrink)(&resize); in array_resize()
688 uint32_t old_size, uint32_t new_size, in dm_array_resize() argument
692 int r = array_resize(info, root, old_size, new_size, value, new_root); in dm_array_resize()
Ddm-array.h110 uint32_t old_size, uint32_t new_size,
/drivers/acpi/apei/
Derst.c508 int new_size; in __erst_record_id_cache_add_one() local
511 new_size = erst_record_id_cache.size * 2; in __erst_record_id_cache_add_one()
512 new_size = clamp_val(new_size, ERST_RECORD_ID_CACHE_SIZE_MIN, in __erst_record_id_cache_add_one()
514 if (new_size <= erst_record_id_cache.size) { in __erst_record_id_cache_add_one()
519 new_entries = kvmalloc_array(new_size, sizeof(entries[0]), in __erst_record_id_cache_add_one()
527 erst_record_id_cache.size = new_size; in __erst_record_id_cache_add_one()
/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_rule.c360 enum mlx5dr_icm_chunk_size new_size) in dr_rule_rehash_htbl() argument
383 new_size, in dr_rule_rehash_htbl()
479 enum mlx5dr_icm_chunk_size new_size; in dr_rule_rehash() local
481 new_size = mlx5dr_icm_next_higher_chunk(cur_htbl->chunk_size); in dr_rule_rehash()
482 new_size = min_t(u32, new_size, dmn->info.max_log_sw_icm_sz); in dr_rule_rehash()
484 if (new_size == cur_htbl->chunk_size) in dr_rule_rehash()
488 update_list, new_size); in dr_rule_rehash()
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_ctcam.c16 u16 new_size) in mlxsw_sp_acl_ctcam_region_resize() argument
21 region->key_type, new_size, region->id, in mlxsw_sp_acl_ctcam_region_resize()
/drivers/pci/
Dsetup-res.c371 resource_size_t new_size; in pci_reassign_resource() local
386 new_size = resource_size(res) + addsize; in pci_reassign_resource()
387 ret = _pci_assign_resource(dev, resno, new_size, min_align); in pci_reassign_resource()
Dsetup-bus.c1863 resource_size_t new_size) in adjust_bridge_window() argument
1870 if (!new_size) in adjust_bridge_window()
1873 if (new_size > size) { in adjust_bridge_window()
1874 add_size = new_size - size; in adjust_bridge_window()
1877 } else if (new_size < size) { in adjust_bridge_window()
1878 add_size = size - new_size; in adjust_bridge_window()
1885 res->end = res->start + new_size - 1; in adjust_bridge_window()
/drivers/base/
Ddevres.c864 void *devm_krealloc(struct device *dev, void *ptr, size_t new_size, gfp_t gfp) in devm_krealloc() argument
870 if (unlikely(!new_size)) { in devm_krealloc()
876 return devm_kmalloc(dev, new_size, gfp); in devm_krealloc()
885 if (!check_dr_size(new_size, &total_new_size)) in devm_krealloc()
/drivers/gpu/drm/vc4/
Dvc4_bo.c197 uint32_t new_size = max(vc4->bo_cache.size_list_size * 2, in vc4_get_cache_list_for_size() local
202 new_list = kmalloc_array(new_size, sizeof(struct list_head), in vc4_get_cache_list_for_size()
220 for (i = vc4->bo_cache.size_list_size; i < new_size; i++) in vc4_get_cache_list_for_size()
225 vc4->bo_cache.size_list_size = new_size; in vc4_get_cache_list_for_size()
/drivers/infiniband/hw/hfi1/
Dinit.c1919 u32 new_size, i, j; in hfi1_setup_eagerbufs() local
1936 new_size = rcd->egrbufs.rcvtid_size / 2; in hfi1_setup_eagerbufs()
1944 rcd->egrbufs.rcvtid_size = new_size; in hfi1_setup_eagerbufs()
1962 new_size) == in hfi1_setup_eagerbufs()
1968 offset += new_size; in hfi1_setup_eagerbufs()
1971 rcd->egrbufs.rcvtid_size = new_size; in hfi1_setup_eagerbufs()
/drivers/iio/adc/
Dxilinx-xadc-core.c589 size_t new_size, n; in xadc_update_scan_mode() local
594 if (check_mul_overflow(n, sizeof(*xadc->data), &new_size)) in xadc_update_scan_mode()
598 new_size, GFP_KERNEL); in xadc_update_scan_mode()
602 memset(data, 0, new_size); in xadc_update_scan_mode()
/drivers/staging/media/atomisp/pci/
Datomisp_fops.c1176 u32 origin_size, new_size; in atomisp_mmap() local
1207 new_size = pipe->pix.width * pipe->pix.height * 2; in atomisp_mmap()
1226 raw_virt_addr->data_bytes = new_size; in atomisp_mmap()
1228 if (size != PAGE_ALIGN(new_size)) { in atomisp_mmap()

12