Lines Matching refs:fr

646 	int fr = -1;  in suspend_overlay()  local
655 fr = pb->prev_last_fr; in suspend_overlay()
656 memcpy(&last, (void*)pb->gbuf[fr].last_cmd, sizeof(last)); in suspend_overlay()
657 tab_cmd_dbdma(pb->gbuf[fr].last_cmd, DBDMA_STOP, 0); in suspend_overlay()
663 pb->suspended.frame = fr; in suspend_overlay()
669 pb->suspended.frame = fr; in suspend_overlay()
983 unsigned int fr = mp->frame; in vgrab() local
986 gbuf_ptr gbuf = &pb->gbuf[fr]; in vgrab()
995 mp->height, fmt, fr); in vgrab()
1001 if(fr > (MAX_GBUFFERS - 1) || fr < 0) { in vgrab()
1069 gbuf->last_cmd = setup_grab_cmd(fr, pb); in vgrab()
1070 planb_pre_capture(fr, pb); in vgrab()
1097 pb->last_fr = fr; in vgrab()
1133 pb->prev_last_fr = fr; in vgrab()
1171 pb->prev_last_fr = fr; in vgrab()
1203 pb->last_fr = fr; in vgrab()
1222 static void planb_pre_capture(int fr, struct planb *pb) in planb_pre_capture() argument
1224 gbuf_ptr gbuf = &pb->gbuf[fr]; in planb_pre_capture()
1271 static dbdma_cmd_ptr setup_grab_cmd(int fr, struct planb *pb) in setup_grab_cmd() argument
1284 gbuf_ptr gbuf = &pb->gbuf[fr]; in setup_grab_cmd()
1357 pb->l_to_addr[fr][gbuf->lnum] = pb->rawbuf[pagei] in setup_grab_cmd()
1360 pb->l_to_next_idx[fr][gbuf->lnum] = pagei + 1; in setup_grab_cmd()
1362 pb->l_to_next_size[fr][gbuf->lnum] = count - lov0; in setup_grab_cmd()
1429 pb->l_to_addr[fr][gbuf->lnum] = pb->rawbuf[pagei] in setup_grab_cmd()
1431 pb->l_to_next_idx[fr][gbuf->lnum] = pagei + 1; in setup_grab_cmd()
1432 pb->l_to_next_size[fr][gbuf->lnum] = count * stepsize in setup_grab_cmd()
1455 (fr << 9) | PLANB_FRM_IRQ | PLANB_GEN_IRQ); in setup_grab_cmd()
1479 unsigned int fr = stat >> 9; in planb_irq() local
1480 gbuf_ptr gbuf = &pb->gbuf[fr]; in planb_irq()
1489 pb->grabbing, fr, pb->gcount); in planb_irq()
1497 int first = gbuf->lsize - pb->l_to_next_size[fr][i]; in planb_irq()
1499 memcpy(pb->l_to_addr[fr][i], in planb_irq()
1502 memcpy(pb->rawbuf[pb->l_to_next_idx[fr][i]], in planb_irq()
1504 pb->l_to_next_size[fr][i]); in planb_irq()
1941 int fr; in planb_ioctl() local
1947 fr = vm.frame; in planb_ioctl()
1948 if(fr > (MAX_GBUFFERS - 1) || fr < 0) in planb_ioctl()
1950 if (*pb->gbuf[fr].status != GBUFFER_UNUSED) in planb_ioctl()