Home
last modified time | relevance | path

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

/drivers/dma/ioat/
Ddma_v2.c591 const u32 new_size = 1 << order; in reshape_ring() local
605 if (active >= new_size) in reshape_ring()
609 ring = kcalloc(new_size, sizeof(*ring), GFP_NOWAIT); in reshape_ring()
614 if (new_size > curr_size) { in reshape_ring()
618 u16 new_idx = (ioat->tail+i) & (new_size-1); in reshape_ring()
625 for (i = curr_size; i < new_size; i++) { in reshape_ring()
626 u16 new_idx = (ioat->tail+i) & (new_size-1); in reshape_ring()
631 u16 new_idx = (ioat->tail+i) & (new_size-1); in reshape_ring()
642 for (i = curr_size-1; i < new_size; i++) { in reshape_ring()
643 u16 new_idx = (ioat->tail+i) & (new_size-1); in reshape_ring()
[all …]
/drivers/staging/comedi/
Dcomedi_buf.c123 unsigned long new_size) in comedi_buf_alloc() argument
128 new_size = (new_size + PAGE_SIZE - 1) & PAGE_MASK; in comedi_buf_alloc()
131 if (async->prealloc_buf && async->prealloc_bufsz == new_size) in comedi_buf_alloc()
138 if (new_size) { in comedi_buf_alloc()
139 unsigned n_pages = new_size >> PAGE_SHIFT; in comedi_buf_alloc()
150 async->prealloc_bufsz = new_size; in comedi_buf_alloc()
Dcomedi_internal.h17 unsigned long new_size);
Dcomedi_fops.c233 struct comedi_async *async, unsigned new_size) in resize_async_buffer() argument
237 if (new_size > async->max_bufsize) in resize_async_buffer()
251 new_size = (new_size + PAGE_SIZE - 1) & PAGE_MASK; in resize_async_buffer()
253 retval = comedi_buf_alloc(dev, s, new_size); in resize_async_buffer()
258 retval = s->buf_change(dev, s, new_size); in resize_async_buffer()
Dcomedidev.h110 struct comedi_subdevice *s, unsigned long new_size);
/drivers/md/persistent-data/
Ddm-array.c631 uint32_t old_size, uint32_t new_size, in array_resize() argument
637 if (old_size == new_size) in array_resize()
648 resize.new_nr_full_blocks = new_size / resize.max_entries; in array_resize()
649 resize.new_nr_entries_in_last_block = new_size % resize.max_entries; in array_resize()
652 r = ((new_size > old_size) ? grow : shrink)(&resize); in array_resize()
661 uint32_t old_size, uint32_t new_size, in dm_array_resize() argument
665 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/uwb/
Dhwa-rc.c120 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/md/
Ddm-thin-metadata.h188 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_size);
189 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_size);
Ddm-table.c588 unsigned new_size; in realloc_argv() local
590 new_size = *array_size ? *array_size * 2 : 64; in realloc_argv()
591 argv = kmalloc(new_size * sizeof(*argv), GFP_KERNEL); in realloc_argv()
594 *array_size = new_size; in realloc_argv()
/drivers/misc/vmw_vmci/
Dvmci_handle_array.c56 size_t new_size = handle_arr_calc_size(new_capacity); in vmci_handle_arr_append_entry() local
58 new_array = krealloc(array, new_size, GFP_ATOMIC); in vmci_handle_arr_append_entry()
/drivers/staging/comedi/drivers/
Dni_pcimio.c1376 struct comedi_subdevice *s, unsigned long new_size);
1378 struct comedi_subdevice *s, unsigned long new_size);
1381 unsigned long new_size);
1384 unsigned long new_size);
1387 unsigned long new_size);
1566 struct comedi_subdevice *s, unsigned long new_size) in pcimio_ai_change() argument
1579 struct comedi_subdevice *s, unsigned long new_size) in pcimio_ao_change() argument
1593 unsigned long new_size) in pcimio_gpct0_change() argument
1607 unsigned long new_size) in pcimio_gpct1_change() argument
1620 struct comedi_subdevice *s, unsigned long new_size) in pcimio_dio_change() argument
Dni_pcidio.c960 struct comedi_subdevice *s, unsigned long new_size) in ni_pcidio_change() argument
Dni_660x.c918 unsigned long new_size) in ni_660x_buf_change() argument
/drivers/pci/
Dsetup-res.c297 resource_size_t new_size; in pci_reassign_resource() local
307 new_size = resource_size(res) + addsize; in pci_reassign_resource()
308 ret = _pci_assign_resource(dev, resno, new_size, min_align); in pci_reassign_resource()
/drivers/acpi/apei/
Derst.c517 int new_size, alloc_size; in __erst_record_id_cache_add_one() local
520 new_size = erst_record_id_cache.size * 2; in __erst_record_id_cache_add_one()
521 new_size = clamp_val(new_size, ERST_RECORD_ID_CACHE_SIZE_MIN, in __erst_record_id_cache_add_one()
523 if (new_size <= erst_record_id_cache.size) { in __erst_record_id_cache_add_one()
529 alloc_size = new_size * sizeof(entries[0]); in __erst_record_id_cache_add_one()
543 erst_record_id_cache.size = new_size; in __erst_record_id_cache_add_one()
/drivers/media/platform/soc_camera/
Dmx3_camera.c272 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 vb->v4l2_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/infiniband/hw/ehca/
Dehca_mrmw.c456 u64 new_size; in ehca_rereg_phys_mr() local
532 new_size = e_mr->size; in ehca_rereg_phys_mr()
543 &new_size); in ehca_rereg_phys_mr()
546 if ((new_size == 0) || in ehca_rereg_phys_mr()
547 (((u64)iova_start + new_size) < (u64)iova_start)) { in ehca_rereg_phys_mr()
549 "iova_start=%p", new_size, iova_start); in ehca_rereg_phys_mr()
554 new_size, PAGE_SIZE); in ehca_rereg_phys_mr()
556 new_size, hw_pgsize); in ehca_rereg_phys_mr()
572 ret = ehca_rereg_mr(shca, e_mr, new_start, new_size, new_acl, in ehca_rereg_phys_mr()
/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c230 int new_size; in mlx4_en_fill_rx_buffers() local
243 new_size = rounddown_pow_of_two(ring->actual_size); in mlx4_en_fill_rx_buffers()
246 ring->actual_size, new_size); in mlx4_en_fill_rx_buffers()
259 while (ring->actual_size > new_size) { in mlx4_en_fill_rx_buffers()
/drivers/block/xen-blkback/
Dblkback.c324 unsigned long long new_size = vbd_sz(vbd); in xen_vbd_resize() local
328 pr_info(DRV_PFX "VBD Resize: new size %llu\n", new_size); in xen_vbd_resize()
329 vbd->size = new_size; in xen_vbd_resize()
/drivers/net/wimax/i2400m/
Dfw.c224 new_size = el_size * new_count; in i2400m_zrealloc_2x() local
225 void *nptr = krealloc(*ptr, new_size, gfp_flags); in i2400m_zrealloc_2x()
230 memset(nptr, 0, new_size); in i2400m_zrealloc_2x()
/drivers/mtd/nand/
Dnandsim.c2362 uint64_t new_size = (uint64_t)nsmtd->erasesize << overridesize; in ns_init_module() local
2363 if (new_size >> overridesize != nsmtd->erasesize) { in ns_init_module()
2369 nsmtd->size = new_size; in ns_init_module()
2370 chip->chipsize = new_size; in ns_init_module()
/drivers/scsi/
Dst.c3720 static int enlarge_buffer(struct st_buffer * STbuffer, int new_size, int need_dma) in enlarge_buffer() argument
3725 if (new_size <= STbuffer->buffer_size) in enlarge_buffer()
3749 max_segs * (PAGE_SIZE << order) < new_size; in enlarge_buffer()
3754 if (max_segs * (PAGE_SIZE << order) < new_size) { in enlarge_buffer()
3758 return enlarge_buffer(STbuffer, new_size, need_dma); in enlarge_buffer()
3762 segs < max_segs && got < new_size;) { in enlarge_buffer()