Home
last modified time | relevance | path

Searched refs:cur_size (Results 1 – 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_fbdev.c351 unsigned int cur_size; in intel_fbdev_init_bios() local
370 cur_size = crtc->state->adjusted_mode.crtc_hdisplay; in intel_fbdev_init_bios()
371 cur_size = cur_size * fb->base.format->cpp[0]; in intel_fbdev_init_bios()
372 if (fb->base.pitches[0] < cur_size) { in intel_fbdev_init_bios()
376 cur_size, fb->base.pitches[0]); in intel_fbdev_init_bios()
381 cur_size = crtc->state->adjusted_mode.crtc_vdisplay; in intel_fbdev_init_bios()
382 cur_size = intel_fb_align_height(&fb->base, 0, cur_size); in intel_fbdev_init_bios()
383 cur_size *= fb->base.pitches[0]; in intel_fbdev_init_bios()
390 cur_size); in intel_fbdev_init_bios()
392 if (cur_size > max_size) { in intel_fbdev_init_bios()
[all …]
/kernel/linux/linux-5.10/sound/soc/stm/
Dstm32_adfsdm.c175 size_t cur_size, src_size = size; in stm32_afsdm_pcm_cb() local
180 cur_size = src_size; in stm32_afsdm_pcm_cb()
192 cur_size -= buff_size - priv->pos; in stm32_afsdm_pcm_cb()
198 &src_buff[src_size - cur_size], cur_size); in stm32_afsdm_pcm_cb()
200 memcpy(&pcm_buff[priv->pos], &src_buff[src_size - cur_size], in stm32_afsdm_pcm_cb()
201 cur_size); in stm32_afsdm_pcm_cb()
203 priv->pos = (priv->pos + cur_size) % buff_size; in stm32_afsdm_pcm_cb()
205 if (cur_size != src_size || (old_pos && (old_pos % period_size < size))) in stm32_afsdm_pcm_cb()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/hdcp/
Dhdcp_ddc.c156 uint32_t cur_size = 0; in read() local
161 cur_size = MIN(buf_len, HDCP_MAX_AUX_TRANSACTION_SIZE); in read()
165 cur_size); in read()
170 buf_len -= cur_size; in read()
171 data_offset += cur_size; in read()
192 uint32_t cur_size = 0; in read_repeatedly() local
196 cur_size = MIN(buf_len, read_size); in read_repeatedly()
197 status = read(hdcp, msg_id, buf + data_offset, cur_size); in read_repeatedly()
202 buf_len -= cur_size; in read_repeatedly()
203 data_offset += cur_size; in read_repeatedly()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/mm/
Ddma-noncoherent.c63 size_t cur_size = seg_size; in __dma_sync_page_highmem() local
79 seg_size = min((size_t)PAGE_SIZE, size - cur_size); in __dma_sync_page_highmem()
82 cur_size += seg_size; in __dma_sync_page_highmem()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dr200.c92 uint32_t cur_size; in r200_copy_dma() local
108 cur_size = size; in r200_copy_dma()
109 if (cur_size > 0x1FFFFF) { in r200_copy_dma()
110 cur_size = 0x1FFFFF; in r200_copy_dma()
112 size -= cur_size; in r200_copy_dma()
116 radeon_ring_write(ring, cur_size | (1 << 31) | (1 << 30)); in r200_copy_dma()
117 src_offset += cur_size; in r200_copy_dma()
118 dst_offset += cur_size; in r200_copy_dma()
Dradeon_ttm.c1047 size_t cur_size = min_t(size_t, size, PAGE_SIZE - off); in radeon_ttm_gtt_read() local
1059 r = copy_to_user(buf, ptr, cur_size); in radeon_ttm_gtt_read()
1062 r = clear_user(buf, cur_size); in radeon_ttm_gtt_read()
1067 result += cur_size; in radeon_ttm_gtt_read()
1068 buf += cur_size; in radeon_ttm_gtt_read()
1069 *pos += cur_size; in radeon_ttm_gtt_read()
1070 size -= cur_size; in radeon_ttm_gtt_read()
/kernel/linux/linux-5.10/fs/reiserfs/
Dobjectid.c182 int cur_size = sb_oid_cursize(disk_sb); in reiserfs_convert_objectid_map_v1() local
193 if (cur_size > new_size) { in reiserfs_convert_objectid_map_v1()
198 objectid_map[new_size - 1] = objectid_map[cur_size - 1]; in reiserfs_convert_objectid_map_v1()
/kernel/linux/linux-5.10/drivers/net/ethernet/alteon/
Dacenic.c1570 int cur_size; in ace_tasklet() local
1572 cur_size = atomic_read(&ap->cur_rx_bufs); in ace_tasklet()
1573 if ((cur_size < RX_LOW_STD_THRES) && in ace_tasklet()
1576 printk("refilling buffers (current %i)\n", cur_size); in ace_tasklet()
1578 ace_load_std_rx_ring(dev, RX_RING_SIZE - cur_size); in ace_tasklet()
1582 cur_size = atomic_read(&ap->cur_mini_bufs); in ace_tasklet()
1583 if ((cur_size < RX_LOW_MINI_THRES) && in ace_tasklet()
1587 cur_size); in ace_tasklet()
1589 ace_load_mini_rx_ring(dev, RX_MINI_SIZE - cur_size); in ace_tasklet()
1593 cur_size = atomic_read(&ap->cur_jumbo_bufs); in ace_tasklet()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/zr364xx/
Dzr364xx.c118 unsigned long cur_size; /* current data copied to it */ member
592 frm->cur_size = 0; in zr364xx_read_video_callback()
616 frm->cur_size = ptr - pdest; in zr364xx_read_video_callback()
618 if (frm->cur_size + purb->actual_length > MAX_FRAME_SIZE) { in zr364xx_read_video_callback()
623 pdest += frm->cur_size; in zr364xx_read_video_callback()
625 frm->cur_size += purb->actual_length; in zr364xx_read_video_callback()
642 ptr += frm->cur_size - 2; in zr364xx_read_video_callback()
668 frm->cur_size, in zr364xx_read_video_callback()
672 zr364xx_got_frame(cam, frm->cur_size); in zr364xx_read_video_callback()
677 frm->cur_size = 0; in zr364xx_read_video_callback()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.c394 uint32_t cur_size; in amdgpu_ttm_copy_mem_to_mem() local
400 cur_size = max(src_page_offset, dst_page_offset); in amdgpu_ttm_copy_mem_to_mem()
401 cur_size = min(min3(src_node_size, dst_node_size, size), in amdgpu_ttm_copy_mem_to_mem()
402 (uint64_t)(GTT_MAX_BYTES - cur_size)); in amdgpu_ttm_copy_mem_to_mem()
406 PFN_UP(cur_size + src_page_offset), in amdgpu_ttm_copy_mem_to_mem()
412 PFN_UP(cur_size + dst_page_offset), in amdgpu_ttm_copy_mem_to_mem()
417 r = amdgpu_copy_buffer(ring, from, to, cur_size, in amdgpu_ttm_copy_mem_to_mem()
425 size -= cur_size; in amdgpu_ttm_copy_mem_to_mem()
429 src_node_size -= cur_size; in amdgpu_ttm_copy_mem_to_mem()
435 src_offset += cur_size; in amdgpu_ttm_copy_mem_to_mem()
[all …]
/kernel/linux/linux-5.10/drivers/misc/
Dsram.c159 unsigned long size, cur_start, cur_size; in sram_reserve_regions() local
296 cur_size = block->start - cur_start; in sram_reserve_regions()
299 cur_start, cur_start + cur_size); in sram_reserve_regions()
303 res->start + cur_start, cur_size, -1); in sram_reserve_regions()
/kernel/linux/linux-5.10/samples/bpf/
Dtest_lru_dist.c97 unsigned int cur_size; member
118 lru->cur_size = 0; in pfect_lru_init()
144 if (lru->cur_size < lru->lru_size) { in pfect_lru_lookup_or_insert()
145 node = &lru->free_nodes[lru->cur_size++]; in pfect_lru_lookup_or_insert()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_device.c1114 unsigned int found, start_search, cur_size; in kfd_gtt_sa_allocate() local
1167 cur_size = size - kfd->gtt_sa_chunk_size; in kfd_gtt_sa_allocate()
1189 if (cur_size <= kfd->gtt_sa_chunk_size) in kfd_gtt_sa_allocate()
1190 cur_size = 0; in kfd_gtt_sa_allocate()
1192 cur_size -= kfd->gtt_sa_chunk_size; in kfd_gtt_sa_allocate()
1194 } while (cur_size > 0); in kfd_gtt_sa_allocate()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_surface.c317 const struct drm_vmw_size *cur_size = &srf->metadata.sizes[i]; in vmw_surface_dma_encode() local
325 cur_size); in vmw_surface_dma_encode()
337 cb->w = cur_size->width; in vmw_surface_dma_encode()
338 cb->h = cur_size->height; in vmw_surface_dma_encode()
339 cb->d = cur_size->depth; in vmw_surface_dma_encode()
343 svga3dsurface_get_image_buffer_size(desc, cur_size, in vmw_surface_dma_encode()
747 struct drm_vmw_size *cur_size; in vmw_surface_define_ioctl() local
833 cur_size = metadata->sizes; in vmw_surface_define_ioctl()
838 (desc, cur_size); in vmw_surface_define_ioctl()
844 (desc, cur_size, stride); in vmw_surface_define_ioctl()
[all …]
Dvmwgfx_execbuf.c3674 int32_t cur_size = size; in vmw_cmd_check_all() local
3679 while (cur_size > 0) { in vmw_cmd_check_all()
3680 size = cur_size; in vmw_cmd_check_all()
3685 cur_size -= size; in vmw_cmd_check_all()
3688 if (unlikely(cur_size != 0)) { in vmw_cmd_check_all()
/kernel/linux/linux-5.10/drivers/media/usb/s2255/
Ds2255drv.c156 unsigned long cur_size; /* current data copied to it */ member
1074 vc->buffer.frame[j].cur_size = 0; in start_streaming()
1803 frm->cur_size = 0; in save_frame()
1816 pdest = frm->lpvbits + frm->cur_size; in save_frame()
1823 if ((copy_size + frm->cur_size) < vc->req_image_size) in save_frame()
1826 frm->cur_size += copy_size; in save_frame()
1827 dprintk(dev, 4, "cur_size: %lu, size: %lu\n", frm->cur_size, size); in save_frame()
1829 if (frm->cur_size >= size) { in save_frame()
1843 frm->cur_size = 0; in save_frame()
1950 vc->buffer.frame[i].cur_size = 0; in s2255_create_sys_buffers()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dfadump.c425 unsigned long size, cur_size, hole_size, last_end; in fadump_get_boot_mem_regions() local
435 cur_size = 0; in fadump_get_boot_mem_regions()
440 if ((cur_size + size) >= mem_size) { in fadump_get_boot_mem_regions()
441 size = (mem_size - cur_size); in fadump_get_boot_mem_regions()
447 cur_size += size; in fadump_get_boot_mem_regions()
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c1199 u16 cur_size = pkt_len > rxq->rx_buf_size ? rxq->rx_buf_size : in qede_rx_build_jumbo() local
1202 if (unlikely(!cur_size)) { in qede_rx_build_jumbo()
1224 bd->data, rxq->rx_headroom, cur_size); in qede_rx_build_jumbo()
1227 skb->data_len += cur_size; in qede_rx_build_jumbo()
1228 skb->len += cur_size; in qede_rx_build_jumbo()
1229 pkt_len -= cur_size; in qede_rx_build_jumbo()
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/
Dotx_cptpf_ucode.c410 unsigned int cur_size; in load_tar_archive() local
441 ret = kstrtouint(tar_blk->hdr.size, 8, &cur_size); in load_tar_archive()
445 if (tar_offs + cur_size > tar_size || in load_tar_archive()
457 cur_size); in load_tar_archive()
462 tar_offs += (cur_size/TAR_BLOCK_LEN) * TAR_BLOCK_LEN; in load_tar_archive()
463 if (cur_size % TAR_BLOCK_LEN) in load_tar_archive()
/kernel/linux/linux-5.10/drivers/scsi/aacraid/
Daachba.c3968 u32 min_size = PAGE_SIZE, cur_size; in aac_build_sgraw2() local
3981 cur_size = cpu_to_le32(count); in aac_build_sgraw2()
3982 rio2->sge[i].length = cur_size; in aac_build_sgraw2()
3986 rio2->sgeFirstSize = cur_size; in aac_build_sgraw2()
3988 rio2->sgeNominalSize = cur_size; in aac_build_sgraw2()
3989 min_size = cur_size; in aac_build_sgraw2()
3990 } else if ((i+1) < nseg && cur_size != rio2->sgeNominalSize) { in aac_build_sgraw2()
3992 if (cur_size < min_size) in aac_build_sgraw2()
3993 min_size = cur_size; in aac_build_sgraw2()
4086 u32 cur_size; in aac_build_sghba() local
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/via/
Dviafbdev.c764 int i, j = 0, cur_size = 64; in viafb_cursor() local
790 cur_size = 32; in viafb_cursor()
792 cur_size = 64; in viafb_cursor()
801 if (cur_size == 32) in viafb_cursor()
850 if (cur_size == 32) { in viafb_cursor()
880 if (cur_size == 32) { in viafb_cursor()
/kernel/linux/linux-5.10/fs/btrfs/
Dfree-space-tree.c594 u64 cur_start, cur_size; in modify_free_space_bitmap() local
640 cur_size = size; in modify_free_space_bitmap()
642 free_space_set_bits(block_group, path, &cur_start, &cur_size, in modify_free_space_bitmap()
644 if (cur_size == 0) in modify_free_space_bitmap()
/kernel/linux/linux-5.10/tools/perf/util/
Dsession.c1956 uint32_t size, cur_size = 0; in __perf_session__process_pipe_events() local
1966 cur_size = sizeof(union perf_event); in __perf_session__process_pipe_events()
1968 buf = malloc(cur_size); in __perf_session__process_pipe_events()
1992 if (size > cur_size) { in __perf_session__process_pipe_events()
1999 cur_size = size; in __perf_session__process_pipe_events()
/kernel/linux/linux-5.10/drivers/block/drbd/
Ddrbd_receiver.c4112 sector_t new_size, cur_size; in receive_sizes() local
4120 cur_size = get_capacity(device->vdisk); in receive_sizes()
4149 if (new_size < cur_size && in receive_sizes()
4153 (unsigned long long)new_size, (unsigned long long)cur_size); in receive_sizes()
4221 } else if (new_size == cur_size) { in receive_sizes()
4223 } else if (cur_size != 0 && p_size == 0) { in receive_sizes()
4225 (unsigned long long)new_size, (unsigned long long)cur_size); in receive_sizes()
4226 } else if (new_size < cur_size && device->state.role == R_PRIMARY) { in receive_sizes()
4228 (unsigned long long)new_size, (unsigned long long)cur_size); in receive_sizes()
/kernel/linux/linux-5.10/fs/nfs/
Dinode.c1440 loff_t cur_size, new_isize; in nfs_check_inode_attributes() local
1478 cur_size = i_size_read(inode); in nfs_check_inode_attributes()
1480 if (cur_size != new_isize) in nfs_check_inode_attributes()

12