Home
last modified time | relevance | path

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

/drivers/gpu/drm/radeon/
Dr600_blit.c601 int cur_size = size_bytes; in r600_blit_copy() local
609 h = (cur_size / max_bytes); in r600_blit_copy()
615 cur_size = max_bytes; in r600_blit_copy()
617 if (cur_size > max_bytes) in r600_blit_copy()
618 cur_size = max_bytes; in r600_blit_copy()
619 if (cur_size > (max_bytes - dst_x)) in r600_blit_copy()
620 cur_size = (max_bytes - dst_x); in r600_blit_copy()
621 if (cur_size > (max_bytes - src_x)) in r600_blit_copy()
622 cur_size = (max_bytes - src_x); in r600_blit_copy()
645 vb[8] = i2f(dst_x + cur_size); in r600_blit_copy()
[all …]
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()
Dr100.c2898 int cur_size = 16; /* in octawords */ in r100_bandwidth_update() local
3114 temp_ff.full = dfixed_const((2 * (cur_size - (rdev->mc.vram_is_ddr + 1)))); in r100_bandwidth_update()
3120 temp_ff.full = dfixed_const(cur_size); in r100_bandwidth_update()
/drivers/net/ethernet/alteon/
Dacenic.c1587 int cur_size; in ace_tasklet() local
1589 cur_size = atomic_read(&ap->cur_rx_bufs); in ace_tasklet()
1590 if ((cur_size < RX_LOW_STD_THRES) && in ace_tasklet()
1593 printk("refilling buffers (current %i)\n", cur_size); in ace_tasklet()
1595 ace_load_std_rx_ring(dev, RX_RING_SIZE - cur_size); in ace_tasklet()
1599 cur_size = atomic_read(&ap->cur_mini_bufs); in ace_tasklet()
1600 if ((cur_size < RX_LOW_MINI_THRES) && in ace_tasklet()
1604 cur_size); in ace_tasklet()
1606 ace_load_mini_rx_ring(dev, RX_MINI_SIZE - cur_size); in ace_tasklet()
1610 cur_size = atomic_read(&ap->cur_jumbo_bufs); in ace_tasklet()
[all …]
/drivers/media/video/
Dzr364xx.c133 unsigned long cur_size; /* current data copied to it */ member
615 frm->cur_size = 0; in zr364xx_read_video_callback()
639 frm->cur_size = ptr - pdest; in zr364xx_read_video_callback()
641 if (frm->cur_size + purb->actual_length > MAX_FRAME_SIZE) { in zr364xx_read_video_callback()
647 pdest += frm->cur_size; in zr364xx_read_video_callback()
649 frm->cur_size += purb->actual_length; in zr364xx_read_video_callback()
666 ptr += frm->cur_size - 2; in zr364xx_read_video_callback()
692 frm->cur_size, in zr364xx_read_video_callback()
696 zr364xx_got_frame(cam, frm->cur_size); in zr364xx_read_video_callback()
701 frm->cur_size = 0; in zr364xx_read_video_callback()
[all …]
Ds2255drv.c166 unsigned long cur_size; /* current data copied to it */ member
1312 channel->buffer.frame[j].cur_size = 0; in vidioc_streamon()
2106 frm->cur_size = 0; in save_frame()
2119 pdest = frm->lpvbits + frm->cur_size; in save_frame()
2126 if ((copy_size + frm->cur_size) < channel->req_image_size) in save_frame()
2129 frm->cur_size += copy_size; in save_frame()
2130 dprintk(4, "cur_size size %lu size %lu \n", frm->cur_size, size); in save_frame()
2132 if (frm->cur_size >= size) { in save_frame()
2146 frm->cur_size = 0; in save_frame()
2246 channel->buffer.frame[i].cur_size = 0; in s2255_create_sys_buffers()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_resource.c717 const struct drm_vmw_size *cur_size = &srf->sizes[i]; in vmw_surface_dma_encode() local
724 body->guest.pitch = (cur_size->width * stride_bpp + 7) >> 3; in vmw_surface_dma_encode()
736 cb->w = cur_size->width; in vmw_surface_dma_encode()
737 cb->h = cur_size->height; in vmw_surface_dma_encode()
738 cb->d = cur_size->depth; in vmw_surface_dma_encode()
741 suffix->maximumOffset = body->guest.pitch*cur_size->height* in vmw_surface_dma_encode()
742 cur_size->depth*bpp / stride_bpp; in vmw_surface_dma_encode()
1294 struct drm_vmw_size *cur_size; in vmw_surface_define_ioctl() local
1374 cur_size = srf->sizes; in vmw_surface_define_ioctl()
1382 (cur_size->width * stride_bpp + 7) >> 3; in vmw_surface_define_ioctl()
[all …]
Dvmwgfx_execbuf.c837 int32_t cur_size = size; in vmw_cmd_check_all() local
840 while (cur_size > 0) { in vmw_cmd_check_all()
841 size = cur_size; in vmw_cmd_check_all()
846 cur_size -= size; in vmw_cmd_check_all()
849 if (unlikely(cur_size != 0)) { in vmw_cmd_check_all()
/drivers/video/via/
Dviafbdev.c777 int i, j = 0, cur_size = 64; in viafb_cursor() local
803 cur_size = 32; in viafb_cursor()
805 cur_size = 64; in viafb_cursor()
814 if (cur_size == 32) in viafb_cursor()
863 if (cur_size == 32) { in viafb_cursor()
893 if (cur_size == 32) { in viafb_cursor()
/drivers/scsi/osd/
Dosd_initiator.c1261 const unsigned cur_size = sizeof(*attrid); in osd_req_add_get_attr_list() local
1263 total_bytes += cur_size; in osd_req_add_get_attr_list()
1265 or->enc_get_attr.total_bytes = total_bytes - cur_size; in osd_req_add_get_attr_list()
1278 attr_last += cur_size; in osd_req_add_get_attr_list()