/kernel/linux/linux-5.10/drivers/media/usb/cx231xx/ |
H A D | cx231xx.h | 3 cx231xx.h - driver for Conexant Cx23100/101/102 USB video capture devices 30 #include "cx231xx-reg.h" 31 #include "cx231xx-pcb-cfg.h" 32 #include "cx231xx-conf-reg.h" 34 #define DRIVER_NAME "cx231xx" 89 /* maximum number of cx231xx boards */ 146 struct cx231xx; 179 int (*isoc_copy) (struct cx231xx *dev, struct urb *urb); 213 int (*bulk_copy) (struct cx231xx *dev, struct urb *urb); 290 /* cx231xx ha 561 struct cx231xx { global() struct [all...] |
H A D | Makefile | 2 cx231xx-y += cx231xx-video.o cx231xx-i2c.o cx231xx-cards.o cx231xx-core.o 3 cx231xx-y += cx231xx-avcore.o cx231xx-417.o cx231xx-pcb-cfg.o cx231xx [all...] |
H A D | cx231xx-vbi.h | 30 int cx231xx_init_vbi_isoc(struct cx231xx *dev, int max_packets, 32 int (*bulk_copy) (struct cx231xx *dev, 35 void cx231xx_uninit_vbi_isoc(struct cx231xx *dev); 38 u32 cx231xx_get_vbi_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q, 41 u32 cx231xx_copy_vbi_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q, 44 void cx231xx_reset_vbi_buffer(struct cx231xx *dev, 47 int cx231xx_do_vbi_copy(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q, 50 u8 cx231xx_is_vbi_buffer_done(struct cx231xx *dev,
|
H A D | cx231xx-vbi.c | 10 #include "cx231xx.h" 26 #include "cx231xx-vbi.h" 28 static inline void print_err_status(struct cx231xx *dev, int packet, int status) in print_err_status() 71 static inline int cx231xx_isoc_vbi_copy(struct cx231xx *dev, struct urb *urb) in cx231xx_isoc_vbi_copy() 160 struct cx231xx *dev = vb2_get_drv_priv(vq); in vbi_queue_setup() 174 struct cx231xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buf_prepare() 190 struct cx231xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buf_queue() 201 static void return_all_buffers(struct cx231xx *dev, in return_all_buffers() 219 struct cx231xx *dev = vb2_get_drv_priv(vq); in vbi_start_streaming() 235 struct cx231xx *de in vbi_stop_streaming() [all...] |
H A D | cx231xx-avcore.c | 9 other related usb control functions for cx231xx based chipset. 13 #include "cx231xx.h" 27 #include "cx231xx-dif.h" 46 static int verve_write_byte(struct cx231xx *dev, u8 saddr, u8 data) in verve_write_byte() 52 static int verve_read_byte(struct cx231xx *dev, u8 saddr, u8 *data) in verve_read_byte() 62 void initGPIO(struct cx231xx *dev) in initGPIO() 84 void uninitGPIO(struct cx231xx *dev) in uninitGPIO() 98 static int afe_write_byte(struct cx231xx *dev, u16 saddr, u8 data) in afe_write_byte() 104 static int afe_read_byte(struct cx231xx *dev, u16 saddr, u8 *data) in afe_read_byte() 115 int cx231xx_afe_init_super_block(struct cx231xx *de [all...] |
H A D | cx231xx-i2c.c | 3 cx231xx-i2c.c - driver for Conexant Cx23100/101/102 USB video capture devices 11 #include "cx231xx.h" 45 static inline int get_real_i2c_port(struct cx231xx *dev, int bus_nr) in get_real_i2c_port() 52 static inline bool is_tuner(struct cx231xx *dev, struct cx231xx_i2c *bus, in is_tuner() 76 struct cx231xx *dev = bus->dev; in cx231xx_i2c_send_bytes() 187 struct cx231xx *dev = bus->dev; in cx231xx_i2c_recv_bytes() 274 struct cx231xx *dev = bus->dev; in cx231xx_i2c_recv_bytes_with_saddr() 337 struct cx231xx *dev = bus->dev; in cx231xx_i2c_check_for_device() 364 struct cx231xx *dev = bus->dev; in cx231xx_i2c_xfer() 450 .name = "cx231xx", [all...] |
H A D | cx231xx-video.c | 3 cx231xx-video.c - driver for Conexant Cx23100/101/102 13 #include "cx231xx.h" 32 #include "cx231xx-vbi.h" 37 #define DRIVER_DESC "Conexant cx231xx based USB video device driver" 90 static int cx231xx_enable_analog_tuner(struct cx231xx *dev) in cx231xx_enable_analog_tuner() 164 static inline void buffer_filled(struct cx231xx *dev, in buffer_filled() 184 static inline void print_err_status(struct cx231xx *dev, int packet, int status) in print_err_status() 230 struct cx231xx *dev = container_of(vmode, struct cx231xx, video_mode); in get_next_buf() 262 static inline int cx231xx_isoc_copy(struct cx231xx *de [all...] |
H A D | cx231xx-audio.c | 9 #include "cx231xx.h" 31 static int cx231xx_isoc_audio_deinit(struct cx231xx *dev) in cx231xx_isoc_audio_deinit() 55 static int cx231xx_bulk_audio_deinit(struct cx231xx *dev) in cx231xx_bulk_audio_deinit() 81 struct cx231xx *dev = urb->context; in cx231xx_audio_isocirq() 173 struct cx231xx *dev = urb->context; in cx231xx_audio_bulkirq() 258 static int cx231xx_init_audio_isoc(struct cx231xx *dev) in cx231xx_init_audio_isoc() 319 static int cx231xx_init_audio_bulk(struct cx231xx *dev) in cx231xx_init_audio_bulk() 397 struct cx231xx *dev = snd_pcm_substream_chip(substream); in snd_cx231xx_capture_open() 444 struct cx231xx *dev = snd_pcm_substream_chip(substream); in snd_cx231xx_pcm_close() 481 struct cx231xx *de in snd_cx231xx_prepare() [all...] |
H A D | cx231xx-core.c | 3 cx231xx-core.c - driver for Conexant Cx23100/101/102 11 #include "cx231xx.h" 20 #include "cx231xx-reg.h" 58 void cx231xx_remove_from_devlist(struct cx231xx *dev) in cx231xx_remove_from_devlist() 73 void cx231xx_add_into_devlist(struct cx231xx *dev) in cx231xx_add_into_devlist() 85 struct cx231xx *dev = NULL; in cx231xx_register_extension() 100 struct cx231xx *dev = NULL; in cx231xx_unregister_extension() 113 void cx231xx_init_extension(struct cx231xx *dev) in cx231xx_init_extension() 125 void cx231xx_close_extension(struct cx231xx *dev) in cx231xx_close_extension() 144 struct cx231xx *de in cx231xx_send_usb_command() [all...] |
H A D | cx231xx-417.c | 4 * Support for a cx23417 mpeg encoder via cx231xx host port. 14 #include "cx231xx.h" 308 static int set_itvc_reg(struct cx231xx *dev, u32 gpio_direction, u32 value) in set_itvc_reg() 320 static int get_itvc_reg(struct cx231xx *dev, u32 gpio_direction, u32 *val_ptr) in get_itvc_reg() 333 static int wait_for_mci_complete(struct cx231xx *dev) in wait_for_mci_complete() 353 static int mc417_register_write(struct cx231xx *dev, u16 address, u32 value) in mc417_register_write() 411 static int mc417_register_read(struct cx231xx *dev, u16 address, u32 *value) in mc417_register_read() 485 static int mc417_memory_write(struct cx231xx *dev, u32 address, u32 value) in mc417_memory_write() 549 static int mc417_memory_read(struct cx231xx *dev, u32 address, u32 *value) in mc417_memory_read() 717 struct cx231xx *de in cx231xx_mbox_func() [all...] |
H A D | cx231xx-cards.c | 3 cx231xx-cards.c - driver for Conexant Cx23100/101/102 11 #include "cx231xx.h" 1086 struct cx231xx *dev = ptr; in cx231xx_tuner_callback() 1118 static void cx231xx_reset_out(struct cx231xx *dev) in cx231xx_reset_out() 1127 static void cx231xx_enable_OSC(struct cx231xx *dev) in cx231xx_enable_OSC() 1132 static void cx231xx_sleep_s5h1432(struct cx231xx *dev) in cx231xx_sleep_s5h1432() 1137 static inline void cx231xx_set_model(struct cx231xx *dev) in cx231xx_set_model() 1145 void cx231xx_pre_card_setup(struct cx231xx *dev) in cx231xx_pre_card_setup() 1173 static void cx231xx_config_tuner(struct cx231xx *dev) in cx231xx_config_tuner() 1211 static int read_eeprom(struct cx231xx *de [all...] |
H A D | cx231xx-input.c | 2 // cx231xx IR glue driver 6 // Polaris (cx231xx) has its support for IR's with a design close to MCE. 11 #include "cx231xx.h" 15 #define MODULE_NAME "cx231xx-input" 49 int cx231xx_ir_init(struct cx231xx *dev) in cx231xx_ir_init() 83 dev->init_data.rc_dev->driver_name = "cx231xx"; in cx231xx_ir_init() 97 void cx231xx_ir_exit(struct cx231xx *dev) in cx231xx_ir_exit()
|
H A D | cx231xx-dvb.c | 3 DVB device driver for cx231xx 10 #include "cx231xx.h" 35 MODULE_DESCRIPTION("driver for cx231xx based DVB cards"); 167 static inline void print_err_status(struct cx231xx *dev, int packet, int status) in print_err_status() 207 static inline int dvb_isoc_copy(struct cx231xx *dev, struct urb *urb) in dvb_isoc_copy() 241 static inline int dvb_bulk_copy(struct cx231xx *dev, struct urb *urb) in dvb_bulk_copy() 265 struct cx231xx *dev = dvb->adapter.priv; in start_streaming() 295 struct cx231xx *dev = dvb->adapter.priv; in stop_streaming() 349 struct cx231xx *dev = fe->dvb->priv; in cx231xx_dvb_bus_ctrl() 370 static int attach_xc5000(u8 addr, struct cx231xx *de [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/cx231xx/ |
H A D | cx231xx.h | 3 cx231xx.h - driver for Conexant Cx23100/101/102 USB video capture devices 30 #include "cx231xx-reg.h" 31 #include "cx231xx-pcb-cfg.h" 32 #include "cx231xx-conf-reg.h" 34 #define DRIVER_NAME "cx231xx" 89 /* maximum number of cx231xx boards */ 146 struct cx231xx; 179 int (*isoc_copy) (struct cx231xx *dev, struct urb *urb); 213 int (*bulk_copy) (struct cx231xx *dev, struct urb *urb); 290 /* cx231xx ha 559 struct cx231xx { global() struct [all...] |
H A D | Makefile | 2 cx231xx-y += cx231xx-video.o cx231xx-i2c.o cx231xx-cards.o cx231xx-core.o 3 cx231xx-y += cx231xx-avcore.o cx231xx-417.o cx231xx-pcb-cfg.o cx231xx [all...] |
H A D | cx231xx-vbi.h | 30 int cx231xx_init_vbi_isoc(struct cx231xx *dev, int max_packets, 32 int (*bulk_copy) (struct cx231xx *dev, 35 void cx231xx_uninit_vbi_isoc(struct cx231xx *dev); 38 u32 cx231xx_get_vbi_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q, 41 u32 cx231xx_copy_vbi_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q, 44 void cx231xx_reset_vbi_buffer(struct cx231xx *dev, 47 int cx231xx_do_vbi_copy(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q, 50 u8 cx231xx_is_vbi_buffer_done(struct cx231xx *dev,
|
H A D | cx231xx-vbi.c | 10 #include "cx231xx.h" 26 #include "cx231xx-vbi.h" 28 static inline void print_err_status(struct cx231xx *dev, int packet, int status) in print_err_status() 71 static inline int cx231xx_isoc_vbi_copy(struct cx231xx *dev, struct urb *urb) in cx231xx_isoc_vbi_copy() 160 struct cx231xx *dev = vb2_get_drv_priv(vq); in vbi_queue_setup() 174 struct cx231xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buf_prepare() 190 struct cx231xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buf_queue() 201 static void return_all_buffers(struct cx231xx *dev, in return_all_buffers() 219 struct cx231xx *dev = vb2_get_drv_priv(vq); in vbi_start_streaming() 235 struct cx231xx *de in vbi_stop_streaming() [all...] |
H A D | cx231xx-avcore.c | 9 other related usb control functions for cx231xx based chipset. 13 #include "cx231xx.h" 27 #include "cx231xx-dif.h" 46 static int verve_write_byte(struct cx231xx *dev, u8 saddr, u8 data) in verve_write_byte() 52 static int verve_read_byte(struct cx231xx *dev, u8 saddr, u8 *data) in verve_read_byte() 62 void initGPIO(struct cx231xx *dev) in initGPIO() 84 void uninitGPIO(struct cx231xx *dev) in uninitGPIO() 98 static int afe_write_byte(struct cx231xx *dev, u16 saddr, u8 data) in afe_write_byte() 104 static int afe_read_byte(struct cx231xx *dev, u16 saddr, u8 *data) in afe_read_byte() 115 int cx231xx_afe_init_super_block(struct cx231xx *de [all...] |
H A D | cx231xx-i2c.c | 3 cx231xx-i2c.c - driver for Conexant Cx23100/101/102 USB video capture devices 11 #include "cx231xx.h" 45 static inline int get_real_i2c_port(struct cx231xx *dev, int bus_nr) in get_real_i2c_port() 52 static inline bool is_tuner(struct cx231xx *dev, struct cx231xx_i2c *bus, in is_tuner() 76 struct cx231xx *dev = bus->dev; in cx231xx_i2c_send_bytes() 187 struct cx231xx *dev = bus->dev; in cx231xx_i2c_recv_bytes() 274 struct cx231xx *dev = bus->dev; in cx231xx_i2c_recv_bytes_with_saddr() 337 struct cx231xx *dev = bus->dev; in cx231xx_i2c_check_for_device() 364 struct cx231xx *dev = bus->dev; in cx231xx_i2c_xfer() 450 .name = "cx231xx", [all...] |
H A D | cx231xx-video.c | 3 cx231xx-video.c - driver for Conexant Cx23100/101/102 13 #include "cx231xx.h" 32 #include "cx231xx-vbi.h" 37 #define DRIVER_DESC "Conexant cx231xx based USB video device driver" 90 static int cx231xx_enable_analog_tuner(struct cx231xx *dev) in cx231xx_enable_analog_tuner() 164 static inline void buffer_filled(struct cx231xx *dev, in buffer_filled() 184 static inline void print_err_status(struct cx231xx *dev, int packet, int status) in print_err_status() 230 struct cx231xx *dev = container_of(vmode, struct cx231xx, video_mode); in get_next_buf() 262 static inline int cx231xx_isoc_copy(struct cx231xx *de [all...] |
H A D | cx231xx-audio.c | 9 #include "cx231xx.h" 31 static int cx231xx_isoc_audio_deinit(struct cx231xx *dev) in cx231xx_isoc_audio_deinit() 55 static int cx231xx_bulk_audio_deinit(struct cx231xx *dev) in cx231xx_bulk_audio_deinit() 81 struct cx231xx *dev = urb->context; in cx231xx_audio_isocirq() 173 struct cx231xx *dev = urb->context; in cx231xx_audio_bulkirq() 258 static int cx231xx_init_audio_isoc(struct cx231xx *dev) in cx231xx_init_audio_isoc() 319 static int cx231xx_init_audio_bulk(struct cx231xx *dev) in cx231xx_init_audio_bulk() 397 struct cx231xx *dev = snd_pcm_substream_chip(substream); in snd_cx231xx_capture_open() 444 struct cx231xx *dev = snd_pcm_substream_chip(substream); in snd_cx231xx_pcm_close() 481 struct cx231xx *de in snd_cx231xx_prepare() [all...] |
H A D | cx231xx-core.c | 3 cx231xx-core.c - driver for Conexant Cx23100/101/102 11 #include "cx231xx.h" 20 #include "cx231xx-reg.h" 58 void cx231xx_remove_from_devlist(struct cx231xx *dev) in cx231xx_remove_from_devlist() 73 void cx231xx_add_into_devlist(struct cx231xx *dev) in cx231xx_add_into_devlist() 85 struct cx231xx *dev = NULL; in cx231xx_register_extension() 100 struct cx231xx *dev = NULL; in cx231xx_unregister_extension() 113 void cx231xx_init_extension(struct cx231xx *dev) in cx231xx_init_extension() 125 void cx231xx_close_extension(struct cx231xx *dev) in cx231xx_close_extension() 144 struct cx231xx *de in cx231xx_send_usb_command() [all...] |
H A D | cx231xx-417.c | 4 * Support for a cx23417 mpeg encoder via cx231xx host port. 14 #include "cx231xx.h" 308 static int set_itvc_reg(struct cx231xx *dev, u32 gpio_direction, u32 value) in set_itvc_reg() 320 static int get_itvc_reg(struct cx231xx *dev, u32 gpio_direction, u32 *val_ptr) in get_itvc_reg() 333 static int wait_for_mci_complete(struct cx231xx *dev) in wait_for_mci_complete() 353 static int mc417_register_write(struct cx231xx *dev, u16 address, u32 value) in mc417_register_write() 411 static int mc417_register_read(struct cx231xx *dev, u16 address, u32 *value) in mc417_register_read() 485 static int mc417_memory_write(struct cx231xx *dev, u32 address, u32 value) in mc417_memory_write() 549 static int mc417_memory_read(struct cx231xx *dev, u32 address, u32 *value) in mc417_memory_read() 717 struct cx231xx *de in cx231xx_mbox_func() [all...] |
H A D | cx231xx-cards.c | 3 cx231xx-cards.c - driver for Conexant Cx23100/101/102 11 #include "cx231xx.h" 1086 struct cx231xx *dev = ptr; in cx231xx_tuner_callback() 1118 static void cx231xx_reset_out(struct cx231xx *dev) in cx231xx_reset_out() 1127 static void cx231xx_enable_OSC(struct cx231xx *dev) in cx231xx_enable_OSC() 1132 static void cx231xx_sleep_s5h1432(struct cx231xx *dev) in cx231xx_sleep_s5h1432() 1137 static inline void cx231xx_set_model(struct cx231xx *dev) in cx231xx_set_model() 1145 void cx231xx_pre_card_setup(struct cx231xx *dev) in cx231xx_pre_card_setup() 1173 static void cx231xx_config_tuner(struct cx231xx *dev) in cx231xx_config_tuner() 1211 static int read_eeprom(struct cx231xx *de [all...] |
H A D | cx231xx-input.c | 2 // cx231xx IR glue driver 6 // Polaris (cx231xx) has its support for IR's with a design close to MCE. 11 #include "cx231xx.h" 15 #define MODULE_NAME "cx231xx-input" 49 int cx231xx_ir_init(struct cx231xx *dev) in cx231xx_ir_init() 83 dev->init_data.rc_dev->driver_name = "cx231xx"; in cx231xx_ir_init() 97 void cx231xx_ir_exit(struct cx231xx *dev) in cx231xx_ir_exit()
|