• Home
  • Raw
  • Download

Lines Matching refs:btv

44 bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc,  in bttv_risc_packed()  argument
63 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions)) < 0) in bttv_risc_packed()
79 if ((btv->opt_vcr_hack) && in bttv_risc_packed()
123 bttv_risc_planar(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_planar() argument
146 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions*4*5)) < 0) in bttv_risc_planar()
159 if ((btv->opt_vcr_hack) && in bttv_risc_planar()
243 bttv_risc_overlay(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_overlay() argument
263 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,dwords*4)) < 0) { in bttv_risc_overlay()
273 addr = (unsigned long)btv->fbuf.base; in bttv_risc_overlay()
274 addr += btv->fbuf.fmt.bytesperline * ov->w.top; in bttv_risc_overlay()
279 line++, addr += btv->fbuf.fmt.bytesperline) { in bttv_risc_overlay()
280 if ((btv->opt_vcr_hack) && in bttv_risc_overlay()
333 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, in bttv_calc_geo_old() argument
344 if (bttv_tvcards[btv->c.type].muxsel[btv->input] < 0) { in bttv_calc_geo_old()
367 if (btv->opt_combfilter) { in bttv_calc_geo_old()
377 bttv_calc_geo (struct bttv * btv, in bttv_calc_geo() argument
394 || bttv_tvcards[btv->c.type].muxsel[btv->input] < 0) { in bttv_calc_geo()
395 bttv_calc_geo_old(btv, geo, width, height, in bttv_calc_geo()
423 if (btv->opt_combfilter) { in bttv_calc_geo()
433 bttv_apply_geo(struct bttv *btv, struct bttv_geometry *geo, int odd) in bttv_apply_geo() argument
460 bttv_set_dma(struct bttv *btv, int override) in bttv_set_dma() argument
465 btv->cap_ctl = 0; in bttv_set_dma()
466 if (NULL != btv->curr.top) btv->cap_ctl |= 0x02; in bttv_set_dma()
467 if (NULL != btv->curr.bottom) btv->cap_ctl |= 0x01; in bttv_set_dma()
468 if (NULL != btv->cvbi) btv->cap_ctl |= 0x0c; in bttv_set_dma()
471 capctl |= (btv->cap_ctl & 0x03) ? 0x03 : 0x00; /* capture */ in bttv_set_dma()
472 capctl |= (btv->cap_ctl & 0x0c) ? 0x0c : 0x00; /* vbi data */ in bttv_set_dma()
477 btv->c.nr,capctl,btv->loop_irq, in bttv_set_dma()
478 btv->cvbi ? (unsigned long long)btv->cvbi->top.dma : 0, in bttv_set_dma()
479 btv->curr.top ? (unsigned long long)btv->curr.top->top.dma : 0, in bttv_set_dma()
480 btv->cvbi ? (unsigned long long)btv->cvbi->bottom.dma : 0, in bttv_set_dma()
481 btv->curr.bottom ? (unsigned long long)btv->curr.bottom->bottom.dma : 0); in bttv_set_dma()
484 if (btv->loop_irq) { in bttv_set_dma()
486 cmd |= (btv->loop_irq & 0x0f) << 16; in bttv_set_dma()
487 cmd |= (~btv->loop_irq & 0x0f) << 20; in bttv_set_dma()
489 if (btv->curr.frame_irq || btv->loop_irq || btv->cvbi) { in bttv_set_dma()
490 mod_timer(&btv->timeout, jiffies+BTTV_TIMEOUT); in bttv_set_dma()
492 del_timer(&btv->timeout); in bttv_set_dma()
494 btv->main.cpu[RISC_SLOT_LOOP] = cpu_to_le32(cmd); in bttv_set_dma()
498 if (btv->dma_on) in bttv_set_dma()
500 btwrite(btv->main.dma, BT848_RISC_STRT_ADD); in bttv_set_dma()
502 btv->dma_on = 1; in bttv_set_dma()
504 if (!btv->dma_on) in bttv_set_dma()
507 btv->dma_on = 0; in bttv_set_dma()
513 bttv_risc_init_main(struct bttv *btv) in bttv_risc_init_main() argument
517 if ((rc = btcx_riscmem_alloc(btv->c.pci,&btv->main,PAGE_SIZE)) < 0) in bttv_risc_init_main()
520 btv->c.nr,(unsigned long long)btv->main.dma); in bttv_risc_init_main()
522 btv->main.cpu[0] = cpu_to_le32(BT848_RISC_SYNC | BT848_RISC_RESYNC | in bttv_risc_init_main()
524 btv->main.cpu[1] = cpu_to_le32(0); in bttv_risc_init_main()
525 btv->main.cpu[2] = cpu_to_le32(BT848_RISC_JUMP); in bttv_risc_init_main()
526 btv->main.cpu[3] = cpu_to_le32(btv->main.dma + (4<<2)); in bttv_risc_init_main()
529 btv->main.cpu[4] = cpu_to_le32(BT848_RISC_JUMP); in bttv_risc_init_main()
530 btv->main.cpu[5] = cpu_to_le32(btv->main.dma + (6<<2)); in bttv_risc_init_main()
531 btv->main.cpu[6] = cpu_to_le32(BT848_RISC_JUMP); in bttv_risc_init_main()
532 btv->main.cpu[7] = cpu_to_le32(btv->main.dma + (8<<2)); in bttv_risc_init_main()
534 btv->main.cpu[8] = cpu_to_le32(BT848_RISC_SYNC | BT848_RISC_RESYNC | in bttv_risc_init_main()
536 btv->main.cpu[9] = cpu_to_le32(0); in bttv_risc_init_main()
539 btv->main.cpu[10] = cpu_to_le32(BT848_RISC_JUMP); in bttv_risc_init_main()
540 btv->main.cpu[11] = cpu_to_le32(btv->main.dma + (12<<2)); in bttv_risc_init_main()
541 btv->main.cpu[12] = cpu_to_le32(BT848_RISC_JUMP); in bttv_risc_init_main()
542 btv->main.cpu[13] = cpu_to_le32(btv->main.dma + (14<<2)); in bttv_risc_init_main()
545 btv->main.cpu[14] = cpu_to_le32(BT848_RISC_JUMP); in bttv_risc_init_main()
546 btv->main.cpu[15] = cpu_to_le32(btv->main.dma + (0<<2)); in bttv_risc_init_main()
552 bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc, in bttv_risc_hook() argument
556 unsigned long next = btv->main.dma + ((slot+2) << 2); in bttv_risc_hook()
560 btv->c.nr,risc,slot); in bttv_risc_hook()
561 btv->main.cpu[slot+1] = cpu_to_le32(next); in bttv_risc_hook()
564 btv->c.nr,risc,slot,(unsigned long long)risc->dma,irqflags); in bttv_risc_hook()
573 btv->main.cpu[slot+1] = cpu_to_le32(risc->dma); in bttv_risc_hook()
579 bttv_dma_free(struct videobuf_queue *q,struct bttv *btv, struct bttv_buffer *buf) in bttv_dma_free() argument
587 btcx_riscmem_free(btv->c.pci,&buf->bottom); in bttv_dma_free()
588 btcx_riscmem_free(btv->c.pci,&buf->top); in bttv_dma_free()
593 bttv_buffer_activate_vbi(struct bttv *btv, in bttv_buffer_activate_vbi() argument
638 bttv_risc_hook(btv, RISC_SLOT_O_VBI, top, top_irq_flags); in bttv_buffer_activate_vbi()
639 bttv_risc_hook(btv, RISC_SLOT_E_VBI, bottom, bottom_irq_flags); in bttv_buffer_activate_vbi()
645 bttv_buffer_activate_video(struct bttv *btv, in bttv_buffer_activate_video() argument
662 bttv_apply_geo(btv, &set->top->geo, 1); in bttv_buffer_activate_video()
663 bttv_apply_geo(btv, &set->bottom->geo,0); in bttv_buffer_activate_video()
664 bttv_risc_hook(btv, RISC_SLOT_O_FIELD, &set->top->top, in bttv_buffer_activate_video()
666 bttv_risc_hook(btv, RISC_SLOT_E_FIELD, &set->bottom->bottom, in bttv_buffer_activate_video()
676 bttv_apply_geo(btv, &set->top->geo,1); in bttv_buffer_activate_video()
677 bttv_apply_geo(btv, &set->top->geo,0); in bttv_buffer_activate_video()
678 bttv_risc_hook(btv, RISC_SLOT_O_FIELD, &set->top->top, in bttv_buffer_activate_video()
680 bttv_risc_hook(btv, RISC_SLOT_E_FIELD, NULL, 0); in bttv_buffer_activate_video()
687 bttv_apply_geo(btv, &set->bottom->geo,1); in bttv_buffer_activate_video()
688 bttv_apply_geo(btv, &set->bottom->geo,0); in bttv_buffer_activate_video()
689 bttv_risc_hook(btv, RISC_SLOT_O_FIELD, NULL, 0); in bttv_buffer_activate_video()
690 bttv_risc_hook(btv, RISC_SLOT_E_FIELD, &set->bottom->bottom, in bttv_buffer_activate_video()
695 bttv_risc_hook(btv, RISC_SLOT_O_FIELD, NULL, 0); in bttv_buffer_activate_video()
696 bttv_risc_hook(btv, RISC_SLOT_E_FIELD, NULL, 0); in bttv_buffer_activate_video()
705 bttv_buffer_risc(struct bttv *btv, struct bttv_buffer *buf) in bttv_buffer_risc() argument
712 btv->c.nr, v4l2_field_names[buf->vb.field], in bttv_buffer_risc()
720 bttv_calc_geo(btv,&buf->geo,buf->vb.width,buf->vb.height, in bttv_buffer_risc()
726 bttv_risc_packed(btv,&buf->top,dma->sglist, in bttv_buffer_risc()
732 bttv_risc_packed(btv,&buf->bottom,dma->sglist, in bttv_buffer_risc()
736 bttv_risc_packed(btv,&buf->top,dma->sglist, in bttv_buffer_risc()
738 bttv_risc_packed(btv,&buf->bottom,dma->sglist, in bttv_buffer_risc()
742 bttv_risc_packed(btv,&buf->top,dma->sglist, in bttv_buffer_risc()
744 bttv_risc_packed(btv,&buf->bottom,dma->sglist, in bttv_buffer_risc()
774 bttv_calc_geo(btv,&buf->geo,buf->vb.width, in bttv_buffer_risc()
777 bttv_risc_planar(btv, &buf->top, dma->sglist, in bttv_buffer_risc()
783 bttv_calc_geo(btv,&buf->geo,buf->vb.width, in bttv_buffer_risc()
786 bttv_risc_planar(btv, &buf->bottom, dma->sglist, in bttv_buffer_risc()
792 bttv_calc_geo(btv,&buf->geo,buf->vb.width, in bttv_buffer_risc()
798 bttv_risc_planar(btv,&buf->top, in bttv_buffer_risc()
805 bttv_risc_planar(btv,&buf->bottom, in bttv_buffer_risc()
815 bttv_calc_geo(btv,&buf->geo,buf->vb.width, in bttv_buffer_risc()
821 bttv_risc_planar(btv,&buf->top, in bttv_buffer_risc()
829 bttv_risc_planar(btv,&buf->bottom, in bttv_buffer_risc()
847 bttv_calc_geo(btv,&buf->geo,tvnorm->swidth,tvnorm->sheight, in bttv_buffer_risc()
849 bttv_risc_packed(btv, &buf->top, dma->sglist, in bttv_buffer_risc()
852 bttv_risc_packed(btv, &buf->bottom, dma->sglist, in bttv_buffer_risc()
866 bttv_overlay_risc(struct bttv *btv, in bttv_overlay_risc() argument
874 btv->c.nr, v4l2_field_names[buf->vb.field], in bttv_overlay_risc()
878 bttv_calc_geo(btv,&buf->geo,ov->w.width,ov->w.height, in bttv_overlay_risc()
885 bttv_risc_overlay(btv, &buf->top, fmt, ov, 0, 0); in bttv_overlay_risc()
888 bttv_risc_overlay(btv, &buf->bottom, fmt, ov, 0, 0); in bttv_overlay_risc()
891 bttv_risc_overlay(btv, &buf->top, fmt, ov, 0, 1); in bttv_overlay_risc()
892 bttv_risc_overlay(btv, &buf->bottom, fmt, ov, 1, 0); in bttv_overlay_risc()