Home
last modified time | relevance | path

Searched refs:btv (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/media/pci/bt8xx/
Dbttv-driver.c177 struct bttv *btv = video_get_drvdata(vfd); in card_show() local
178 return sprintf(buf, "%d\n", btv ? btv->c.type : UNSET); in card_show()
652 int check_alloc_btres_lock(struct bttv *btv, struct bttv_fh *fh, int bit) in check_alloc_btres_lock() argument
665 if (btv->resources & xbits) { in check_alloc_btres_lock()
671 && 0 == (btv->resources & VIDEO_RESOURCES)) { in check_alloc_btres_lock()
673 __s32 top = btv->crop[!!fh->do_crop].rect.top; in check_alloc_btres_lock()
675 if (btv->vbi_end > top) in check_alloc_btres_lock()
680 btv->crop_start = top; in check_alloc_btres_lock()
684 if (end > btv->crop_start) in check_alloc_btres_lock()
688 btv->vbi_end = end; in check_alloc_btres_lock()
[all …]
Dbttv-i2c.c48 struct bttv *btv = (struct bttv*)data; in bttv_bit_setscl() local
51 btv->i2c_state |= 0x02; in bttv_bit_setscl()
53 btv->i2c_state &= ~0x02; in bttv_bit_setscl()
54 btwrite(btv->i2c_state, BT848_I2C); in bttv_bit_setscl()
60 struct bttv *btv = (struct bttv*)data; in bttv_bit_setsda() local
63 btv->i2c_state |= 0x01; in bttv_bit_setsda()
65 btv->i2c_state &= ~0x01; in bttv_bit_setsda()
66 btwrite(btv->i2c_state, BT848_I2C); in bttv_bit_setsda()
72 struct bttv *btv = (struct bttv*)data; in bttv_bit_getscl() local
81 struct bttv *btv = (struct bttv*)data; in bttv_bit_getsda() local
[all …]
Dbttv-cards.c36 static void boot_msp34xx(struct bttv *btv, int pin);
37 static void hauppauge_eeprom(struct bttv *btv);
38 static void avermedia_eeprom(struct bttv *btv);
39 static void osprey_eeprom(struct bttv *btv, const u8 ee[256]);
40 static void modtec_eeprom(struct bttv *btv);
41 static void init_PXC200(struct bttv *btv);
42 static void init_RTV24(struct bttv *btv);
43 static void init_PCI8604PW(struct bttv *btv);
45 static void rv605_muxsel(struct bttv *btv, unsigned int input);
46 static void eagle_muxsel(struct bttv *btv, unsigned int input);
[all …]
Dbttv-input.c40 static void ir_handle_key(struct bttv *btv) in ir_handle_key() argument
42 struct bttv_ir *ir = btv->remote; in ir_handle_key()
46 gpio = bttv_gpio_read(&btv->c); in ir_handle_key()
67 if (btv->c.type == BTTV_BOARD_WINFAST2000) in ir_handle_key()
75 static void ir_enltv_handle_key(struct bttv *btv) in ir_enltv_handle_key() argument
77 struct bttv_ir *ir = btv->remote; in ir_enltv_handle_key()
81 gpio = bttv_gpio_read(&btv->c); in ir_enltv_handle_key()
115 static int bttv_rc5_irq(struct bttv *btv);
117 void bttv_input_irq(struct bttv *btv) in bttv_input_irq() argument
119 struct bttv_ir *ir = btv->remote; in bttv_input_irq()
[all …]
Dbttv-risc.c35 bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_packed() argument
54 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions)) < 0) in bttv_risc_packed()
70 if ((btv->opt_vcr_hack) && in bttv_risc_packed()
114 bttv_risc_planar(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_planar() argument
137 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions*4*5)) < 0) in bttv_risc_planar()
150 if ((btv->opt_vcr_hack) && in bttv_risc_planar()
235 bttv_risc_overlay(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_overlay() argument
256 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,dwords*4)) < 0) { in bttv_risc_overlay()
266 addr = (unsigned long)btv->fbuf.base; in bttv_risc_overlay()
267 addr += btv->fbuf.fmt.bytesperline * ov->w.top; in bttv_risc_overlay()
[all …]
Dbttv-audio-hook.h12 void winview_volume (struct bttv *btv, __u16 volume);
14 void lt9415_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
15 void avermedia_tvphone_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
16 void avermedia_tv_stereo_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
17 void terratv_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
18 void gvbctv3pci_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
19 void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
20 void winfast2000_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
21 void pvbt878p9b_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
22 void fv2000s_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set);
[all …]
Dbttv-if.c47 struct bttv *btv; in bttv_gpio_enable() local
53 btv = bttvs[card]; in bttv_gpio_enable()
54 if (!btv) in bttv_gpio_enable()
59 bttv_gpio_tracking(btv,"extern enable"); in bttv_gpio_enable()
65 struct bttv *btv; in bttv_read_gpio() local
71 btv = bttvs[card]; in bttv_read_gpio()
72 if (!btv) in bttv_read_gpio()
75 if(btv->shutdown) { in bttv_read_gpio()
87 struct bttv *btv; in bttv_write_gpio() local
93 btv = bttvs[card]; in bttv_write_gpio()
[all …]
Dbttv-audio-hook.c15 void winview_volume(struct bttv *btv, __u16 volume) in winview_volume() argument
55 void gvbctv3pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in gvbctv3pci_audio() argument
86 void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in gvbctv5pci_audio() argument
90 if (btv->radio_user) in gvbctv5pci_audio()
109 bttv_gpio_tracking(btv, "gvbctv5pci"); in gvbctv5pci_audio()
157 void avermedia_tvphone_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in avermedia_tvphone_audio() argument
184 bttv_gpio_tracking(btv, "avermedia"); in avermedia_tvphone_audio()
188 void avermedia_tv_stereo_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in avermedia_tv_stereo_audio() argument
216 bttv_gpio_tracking(btv, "avermedia"); in avermedia_tv_stereo_audio()
221 void lt9415_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in lt9415_audio() argument
[all …]
Dbttv-vbi.c61 pr_debug("%d: " fmt, btv->c.nr, ##__VA_ARGS__); \
74 struct bttv *btv = fh->btv; in vbi_buffer_setup() local
96 struct bttv *btv = fh->btv; in vbi_buffer_prepare() local
153 rc = bttv_risc_packed(btv, &buf->top, in vbi_buffer_prepare()
165 rc = bttv_risc_packed(btv, &buf->bottom, in vbi_buffer_prepare()
194 bttv_dma_free(q,btv,buf); in vbi_buffer_prepare()
202 struct bttv *btv = fh->btv; in vbi_buffer_queue() local
207 list_add_tail(&buf->vb.queue,&btv->vcapture); in vbi_buffer_queue()
208 if (NULL == btv->cvbi) { in vbi_buffer_queue()
209 fh->btv->loop_irq |= 4; in vbi_buffer_queue()
[all …]
Dbttv.h219 void (*volume_gpio)(struct bttv *btv, __u16 volume);
220 void (*audio_mode_gpio)(struct bttv *btv, struct v4l2_tuner *tuner, int set);
221 void (*muxsel_hook)(struct bttv *btv, unsigned int input);
286 extern void bttv_idcard(struct bttv *btv);
287 extern void bttv_init_card1(struct bttv *btv);
288 extern void bttv_init_card2(struct bttv *btv);
289 extern void bttv_init_tuner(struct bttv *btv);
292 extern void tea5757_set_freq(struct bttv *btv, unsigned short freq);
293 extern u32 bttv_tda9880_setnorm(struct bttv *btv, u32 gpiobits);
297 extern int bttv_handle_chipset(struct bttv *btv);
[all …]
Dbttvp.h112 struct bttv *btv; member
209 struct bttv *btv; member
238 int bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc,
245 void bttv_set_dma(struct bttv *btv, int override);
246 int bttv_risc_init_main(struct bttv *btv);
247 int bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc,
251 int bttv_buffer_risc(struct bttv *btv, struct bttv_buffer *buf);
252 int bttv_buffer_activate_video(struct bttv *btv,
254 int bttv_buffer_activate_vbi(struct bttv *btv,
256 void bttv_dma_free(struct videobuf_queue *q, struct bttv *btv,
[all …]
Dbttv-gpio.c130 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_inout() local
134 spin_lock_irqsave(&btv->gpio_lock,flags); in bttv_gpio_inout()
139 spin_unlock_irqrestore(&btv->gpio_lock,flags); in bttv_gpio_inout()
144 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_read() local
153 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_write() local
160 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_bits() local
164 spin_lock_irqsave(&btv->gpio_lock,flags); in bttv_gpio_bits()
169 spin_unlock_irqrestore(&btv->gpio_lock,flags); in bttv_gpio_bits()