/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-hdw.c | 18 #include "pvrusb2-hdw.h" 21 #include "pvrusb2-hdw-internal.h" 314 static int pvr2_hdw_set_input(struct pvr2_hdw *hdw,int v); 322 static int pvr2_hdw_cmd_usbstream(struct pvr2_hdw *hdw,int runFl); 323 static int pvr2_hdw_commit_setup(struct pvr2_hdw *hdw); 324 static int pvr2_hdw_get_eeprom_addr(struct pvr2_hdw *hdw); 330 static int pvr2_send_request_ex(struct pvr2_hdw *hdw, 334 static int pvr2_hdw_check_cropcap(struct pvr2_hdw *hdw); 335 static v4l2_std_id pvr2_hdw_get_detected_std(struct pvr2_hdw *hdw); 346 struct pvr2_hdw *hdw in ctrl_channelfreq_get() local 357 struct pvr2_hdw *hdw = cptr->hdw; ctrl_channelfreq_set() local 385 struct pvr2_hdw *hdw = cptr->hdw; ctrl_channelprog_set() local 394 struct pvr2_hdw *hdw = cptr->hdw; ctrl_channel_get() local 402 struct pvr2_hdw *hdw = cptr->hdw; ctrl_channel_set() local 685 struct pvr2_hdw *hdw = cptr->hdw; ctrl_freq_max_get() local 707 struct pvr2_hdw *hdw = cptr->hdw; ctrl_freq_min_get() local 757 struct pvr2_hdw *hdw = cptr->hdw; ctrl_cx2341x_set() local 845 struct pvr2_hdw *hdw = cptr->hdw; ctrl_stdavail_set() local 883 struct pvr2_hdw *hdw = cptr->hdw; ctrl_stdcur_set() local 905 struct pvr2_hdw *hdw = cptr->hdw; ctrl_signal_get() local 915 struct pvr2_hdw *hdw = cptr->hdw; ctrl_audio_modes_present_get() local 1280 pvr2_hdw_get_dev(struct pvr2_hdw *hdw) pvr2_hdw_get_dev() argument 1286 pvr2_hdw_get_sn(struct pvr2_hdw *hdw) pvr2_hdw_get_sn() argument 1292 pvr2_hdw_get_bus_info(struct pvr2_hdw *hdw) pvr2_hdw_get_bus_info() argument 1298 pvr2_hdw_get_device_identifier(struct pvr2_hdw *hdw) pvr2_hdw_get_device_identifier() argument 1304 pvr2_hdw_get_cur_freq(struct pvr2_hdw *hdw) pvr2_hdw_get_cur_freq() argument 1311 pvr2_hdw_set_cur_freq(struct pvr2_hdw *hdw,unsigned long val) pvr2_hdw_set_cur_freq() argument 1338 pvr2_hdw_get_unit_number(struct pvr2_hdw *hdw) pvr2_hdw_get_unit_number() argument 1350 pvr2_locate_firmware(struct pvr2_hdw *hdw, const struct firmware **fw_entry, const char *fwtypename, unsigned int fwcount, const char *fwnames[]) pvr2_locate_firmware() argument 1406 pvr2_upload_firmware1(struct pvr2_hdw *hdw) pvr2_upload_firmware1() argument 1500 pvr2_upload_firmware2(struct pvr2_hdw *hdw) pvr2_upload_firmware2() argument 1656 pvr2_decoder_enable(struct pvr2_hdw *hdw,int enablefl) pvr2_decoder_enable() argument 1683 pvr2_hdw_get_state(struct pvr2_hdw *hdw) pvr2_hdw_get_state() argument 1689 pvr2_hdw_untrip_unlocked(struct pvr2_hdw *hdw) pvr2_hdw_untrip_unlocked() argument 1699 pvr2_hdw_untrip(struct pvr2_hdw *hdw) pvr2_hdw_untrip() argument 1712 pvr2_hdw_get_streaming(struct pvr2_hdw *hdw) pvr2_hdw_get_streaming() argument 1718 pvr2_hdw_set_streaming(struct pvr2_hdw *hdw,int enable_flag) pvr2_hdw_set_streaming() argument 1742 pvr2_hdw_set_stream_type(struct pvr2_hdw *hdw,enum pvr2_config config) pvr2_hdw_set_stream_type() argument 1759 get_default_tuner_type(struct pvr2_hdw *hdw) get_default_tuner_type() argument 1773 get_default_standard(struct pvr2_hdw *hdw) get_default_standard() argument 1785 get_default_error_tolerance(struct pvr2_hdw *hdw) get_default_error_tolerance() argument 1796 pvr2_hdw_check_firmware(struct pvr2_hdw *hdw) pvr2_hdw_check_firmware() argument 1859 pvr2_hdw_setup_std(struct pvr2_hdw *hdw) pvr2_hdw_setup_std() argument 1943 pvr2_hdw_cx25840_vbi_hack(struct pvr2_hdw *hdw) pvr2_hdw_cx25840_vbi_hack() argument 1972 pvr2_hdw_load_subdev(struct pvr2_hdw *hdw, const struct pvr2_device_client_desc *cd) pvr2_hdw_load_subdev() argument 2060 pvr2_hdw_load_modules(struct pvr2_hdw *hdw) pvr2_hdw_load_modules() argument 2083 pvr2_hdw_setup_low(struct pvr2_hdw *hdw) pvr2_hdw_setup_low() argument 2257 pvr2_hdw_setup(struct pvr2_hdw *hdw) pvr2_hdw_setup() argument 2322 pvr2_hdw_initialize(struct pvr2_hdw *hdw, void (*callback_func)(void *), void *callback_data) pvr2_hdw_initialize() argument 2350 struct pvr2_hdw *hdw = NULL; pvr2_hdw_create() local 2628 pvr2_hdw_remove_usb_stuff(struct pvr2_hdw *hdw) pvr2_hdw_remove_usb_stuff() argument 2660 pvr2_hdw_set_v4l2_dev(struct pvr2_hdw *hdw, struct video_device *vdev) pvr2_hdw_set_v4l2_dev() argument 2666 pvr2_hdw_destroy(struct pvr2_hdw *hdw) pvr2_hdw_destroy() argument 2700 pvr2_hdw_dev_ok(struct pvr2_hdw *hdw) pvr2_hdw_dev_ok() argument 2707 pvr2_hdw_disconnect(struct pvr2_hdw *hdw) pvr2_hdw_disconnect() argument 2720 pvr2_hdw_get_ctrl_count(struct pvr2_hdw *hdw) pvr2_hdw_get_ctrl_count() argument 2727 pvr2_hdw_get_ctrl_by_index(struct pvr2_hdw *hdw, unsigned int idx) pvr2_hdw_get_ctrl_by_index() argument 2736 pvr2_hdw_get_ctrl_by_id(struct pvr2_hdw *hdw, unsigned int ctl_id) pvr2_hdw_get_ctrl_by_id() argument 2754 pvr2_hdw_get_ctrl_v4l(struct pvr2_hdw *hdw,unsigned int ctl_id) pvr2_hdw_get_ctrl_v4l() argument 2772 pvr2_hdw_get_ctrl_nextv4l(struct pvr2_hdw *hdw, unsigned int ctl_id) pvr2_hdw_get_ctrl_nextv4l() argument 2806 pvr2_subdev_set_control(struct pvr2_hdw *hdw, int id, const char *name, int val) pvr2_subdev_set_control() argument 2826 pvr2_hdw_get_detected_std(struct pvr2_hdw *hdw) pvr2_hdw_get_detected_std() argument 2837 pvr2_subdev_update(struct pvr2_hdw *hdw) pvr2_subdev_update() argument 2973 pvr2_hdw_commit_setup(struct pvr2_hdw *hdw) pvr2_hdw_commit_setup() argument 3022 pvr2_hdw_commit_execute(struct pvr2_hdw *hdw) pvr2_hdw_commit_execute() argument 3182 pvr2_hdw_commit_ctl(struct pvr2_hdw *hdw) pvr2_hdw_commit_ctl() argument 3196 struct pvr2_hdw *hdw = container_of(work,struct pvr2_hdw,workpoll); pvr2_hdw_worker_poll() local 3206 pvr2_hdw_wait(struct pvr2_hdw *hdw,int state) pvr2_hdw_wait() argument 3216 pvr2_hdw_get_driver_name(struct pvr2_hdw *hdw) pvr2_hdw_get_driver_name() argument 3222 pvr2_hdw_get_desc(struct pvr2_hdw *hdw) pvr2_hdw_get_desc() argument 3228 pvr2_hdw_get_type(struct pvr2_hdw *hdw) pvr2_hdw_get_type() argument 3234 pvr2_hdw_is_hsm(struct pvr2_hdw *hdw) pvr2_hdw_is_hsm() argument 3250 pvr2_hdw_execute_tuner_poll(struct pvr2_hdw *hdw) pvr2_hdw_execute_tuner_poll() argument 3258 pvr2_hdw_check_cropcap(struct pvr2_hdw *hdw) pvr2_hdw_check_cropcap() argument 3272 pvr2_hdw_get_cropcap(struct pvr2_hdw *hdw, struct v4l2_cropcap *pp) pvr2_hdw_get_cropcap() argument 3286 pvr2_hdw_get_tuner_status(struct pvr2_hdw *hdw,struct v4l2_tuner *vtp) pvr2_hdw_get_tuner_status() argument 3305 pvr2_hdw_trigger_module_log(struct pvr2_hdw *hdw) pvr2_hdw_trigger_module_log() argument 3324 pvr2_full_eeprom_fetch(struct pvr2_hdw *hdw) pvr2_full_eeprom_fetch() argument 3394 pvr2_hdw_cpufw_set_enabled(struct pvr2_hdw *hdw, int mode, int enable_flag) pvr2_hdw_cpufw_set_enabled() argument 3470 pvr2_hdw_cpufw_get_enabled(struct pvr2_hdw *hdw) pvr2_hdw_cpufw_get_enabled() argument 3476 pvr2_hdw_cpufw_get(struct pvr2_hdw *hdw,unsigned int offs, char *buf,unsigned int cnt) pvr2_hdw_cpufw_get() argument 3511 pvr2_hdw_v4l_get_minor_number(struct pvr2_hdw *hdw, enum pvr2_v4l_type index) pvr2_hdw_v4l_get_minor_number() argument 3524 pvr2_hdw_v4l_store_minor_number(struct pvr2_hdw *hdw, enum pvr2_v4l_type index,int v) pvr2_hdw_v4l_store_minor_number() argument 3538 struct pvr2_hdw *hdw = urb->context; pvr2_ctl_write_complete() local 3547 struct pvr2_hdw *hdw = urb->context; pvr2_ctl_read_complete() local 3555 struct pvr2_hdw *hdw; global() member 3561 struct pvr2_hdw *hdw = timer->hdw; pvr2_ctl_timeout() local 3577 pvr2_send_request_ex(struct pvr2_hdw *hdw, unsigned int timeout,int probe_fl, void *write_data,unsigned int write_len, void *read_data,unsigned int read_len) pvr2_send_request_ex() argument 3810 pvr2_send_request(struct pvr2_hdw *hdw, void *write_data,unsigned int write_len, void *read_data,unsigned int read_len) pvr2_send_request() argument 3820 pvr2_issue_simple_cmd(struct pvr2_hdw *hdw,u32 cmdcode) pvr2_issue_simple_cmd() argument 3880 pvr2_write_register(struct pvr2_hdw *hdw, u16 reg, u32 data) pvr2_write_register() argument 3901 pvr2_read_register(struct pvr2_hdw *hdw, u16 reg, u32 *data) pvr2_read_register() argument 3925 pvr2_hdw_render_useless(struct pvr2_hdw *hdw) pvr2_hdw_render_useless() argument 3939 pvr2_hdw_device_reset(struct pvr2_hdw *hdw) pvr2_hdw_device_reset() argument 3961 pvr2_hdw_cpureset_assert(struct pvr2_hdw *hdw,int val) pvr2_hdw_cpureset_assert() argument 3995 pvr2_hdw_cmd_deep_reset(struct pvr2_hdw *hdw) pvr2_hdw_cmd_deep_reset() argument 4001 pvr2_hdw_cmd_powerup(struct pvr2_hdw *hdw) pvr2_hdw_cmd_powerup() argument 4008 pvr2_hdw_cmd_decoder_reset(struct pvr2_hdw *hdw) pvr2_hdw_cmd_decoder_reset() argument 4024 pvr2_hdw_cmd_hcw_demod_reset(struct pvr2_hdw *hdw, int onoff) pvr2_hdw_cmd_hcw_demod_reset() argument 4048 pvr2_hdw_cmd_onair_fe_power_ctrl(struct pvr2_hdw *hdw, int onoff) pvr2_hdw_cmd_onair_fe_power_ctrl() argument 4057 pvr2_hdw_cmd_onair_digital_path_ctrl(struct pvr2_hdw *hdw, int onoff) pvr2_hdw_cmd_onair_digital_path_ctrl() argument 4066 pvr2_hdw_cmd_modeswitch(struct pvr2_hdw *hdw,int digitalFl) pvr2_hdw_cmd_modeswitch() argument 4102 pvr2_led_ctrl_hauppauge(struct pvr2_hdw *hdw, int onoff) pvr2_led_ctrl_hauppauge() argument 4127 pvr2_led_ctrl(struct pvr2_hdw *hdw,int onoff) pvr2_led_ctrl() argument 4148 pvr2_hdw_cmd_usbstream(struct pvr2_hdw *hdw,int runFl) pvr2_hdw_cmd_usbstream() argument 4191 state_eval_pathway_ok(struct pvr2_hdw *hdw) state_eval_pathway_ok() argument 4209 state_eval_encoder_ok(struct pvr2_hdw *hdw) state_eval_encoder_ok() argument 4235 state_eval_encoder_config(struct pvr2_hdw *hdw) state_eval_encoder_config() argument 4301 state_check_disable_encoder_run(struct pvr2_hdw *hdw) state_check_disable_encoder_run() argument 4346 state_check_enable_encoder_run(struct pvr2_hdw *hdw) state_check_enable_encoder_run() argument 4392 state_eval_encoder_run(struct pvr2_hdw *hdw) state_eval_encoder_run() argument 4419 struct pvr2_hdw *hdw = from_timer(hdw, t, quiescent_timer); pvr2_hdw_quiescent_timeout() local 4430 struct pvr2_hdw *hdw = from_timer(hdw, t, decoder_stabilization_timer); pvr2_hdw_decoder_stabilization_timeout() local 4441 struct pvr2_hdw *hdw = from_timer(hdw, t, encoder_wait_timer); pvr2_hdw_encoder_wait_timeout() local 4452 struct pvr2_hdw *hdw = from_timer(hdw, t, encoder_run_timer); pvr2_hdw_encoder_run_timeout() local 4463 state_eval_decoder_run(struct pvr2_hdw *hdw) state_eval_decoder_run() argument 4538 state_eval_usbstream_run(struct pvr2_hdw *hdw) state_eval_usbstream_run() argument 4587 state_eval_pipeline_config(struct pvr2_hdw *hdw) state_eval_pipeline_config() argument 4599 state_update_pipeline_state(struct pvr2_hdw *hdw) state_update_pipeline_state() argument 4635 pvr2_hdw_state_update(struct pvr2_hdw *hdw) pvr2_hdw_state_update() argument 4700 pvr2_hdw_report_unlocked(struct pvr2_hdw *hdw,int which, char *buf,unsigned int acnt) pvr2_hdw_report_unlocked() argument 4811 pvr2_hdw_report_clients(struct pvr2_hdw *hdw, char *buf, unsigned int acnt) pvr2_hdw_report_clients() argument 4851 pvr2_hdw_state_report(struct pvr2_hdw *hdw, char *buf,unsigned int acnt) pvr2_hdw_state_report() argument 4872 pvr2_hdw_state_log_state(struct pvr2_hdw *hdw) pvr2_hdw_state_log_state() argument 4901 pvr2_hdw_state_eval(struct pvr2_hdw *hdw) pvr2_hdw_state_eval() argument 4964 pvr2_hdw_state_sched(struct pvr2_hdw *hdw) pvr2_hdw_state_sched() argument 4973 pvr2_hdw_gpio_get_dir(struct pvr2_hdw *hdw,u32 *dp) pvr2_hdw_gpio_get_dir() argument 4979 pvr2_hdw_gpio_get_out(struct pvr2_hdw *hdw,u32 *dp) pvr2_hdw_gpio_get_out() argument 4985 pvr2_hdw_gpio_get_in(struct pvr2_hdw *hdw,u32 *dp) pvr2_hdw_gpio_get_in() argument 4991 pvr2_hdw_gpio_chg_dir(struct pvr2_hdw *hdw,u32 msk,u32 val) pvr2_hdw_gpio_chg_dir() argument 5011 pvr2_hdw_gpio_chg_out(struct pvr2_hdw *hdw,u32 msk,u32 val) pvr2_hdw_gpio_chg_out() argument 5031 pvr2_hdw_status_poll(struct pvr2_hdw *hdw) pvr2_hdw_status_poll() argument 5054 pvr2_hdw_get_input_available(struct pvr2_hdw *hdw) pvr2_hdw_get_input_available() argument 5060 pvr2_hdw_get_input_allowed(struct pvr2_hdw *hdw) pvr2_hdw_get_input_allowed() argument 5066 pvr2_hdw_set_input(struct pvr2_hdw *hdw,int v) pvr2_hdw_set_input() argument 5088 pvr2_hdw_set_input_allowed(struct pvr2_hdw *hdw, unsigned int change_mask, unsigned int change_val) pvr2_hdw_set_input_allowed() argument 5129 pvr2_hdw_get_eeprom_addr(struct pvr2_hdw *hdw) pvr2_hdw_get_eeprom_addr() argument [all...] |
H A D | pvrusb2-encoder.c | 12 #include "pvrusb2-hdw-internal.h" 26 static int pvr2_encoder_write_words(struct pvr2_hdw *hdw, in pvr2_encoder_write_words() argument 48 memset(hdw->cmd_buffer,0,sizeof(hdw->cmd_buffer)); in pvr2_encoder_write_words() 50 hdw->cmd_buffer[bAddr++] = FX2CMD_MEM_WRITE_DWORD; in pvr2_encoder_write_words() 53 hdw->cmd_buffer[bAddr+6] = (addr & 0xffu); in pvr2_encoder_write_words() 54 hdw->cmd_buffer[bAddr+5] = ((addr>>8) & 0xffu); in pvr2_encoder_write_words() 55 hdw->cmd_buffer[bAddr+4] = ((addr>>16) & 0xffu); in pvr2_encoder_write_words() 56 PVR2_DECOMPOSE_LE(hdw->cmd_buffer, bAddr,data[idx]); in pvr2_encoder_write_words() 59 ret = pvr2_send_request(hdw, in pvr2_encoder_write_words() 72 pvr2_encoder_read_words(struct pvr2_hdw *hdw, unsigned int offs, u32 *data, unsigned int dlen) pvr2_encoder_read_words() argument 141 struct pvr2_hdw *hdw = (struct pvr2_hdw *)ctxt; pvr2_encoder_cmd() local 294 pvr2_encoder_vcmd(struct pvr2_hdw *hdw, int cmd, int args, ...) pvr2_encoder_vcmd() argument 321 pvr2_encoder_prep_config(struct pvr2_hdw *hdw) pvr2_encoder_prep_config() argument 389 pvr2_encoder_adjust(struct pvr2_hdw *hdw) pvr2_encoder_adjust() argument 406 pvr2_encoder_configure(struct pvr2_hdw *hdw) pvr2_encoder_configure() argument 463 pvr2_encoder_start(struct pvr2_hdw *hdw) pvr2_encoder_start() argument 490 pvr2_encoder_stop(struct pvr2_hdw *hdw) pvr2_encoder_stop() argument [all...] |
H A D | pvrusb2-i2c-core.c | 11 #include "pvrusb2-hdw-internal.h" 39 static int pvr2_i2c_write(struct pvr2_hdw *hdw, /* Context */ in pvr2_i2c_write() argument 49 if (length > (sizeof(hdw->cmd_buffer) - 3)) { in pvr2_i2c_write() 53 length,(unsigned int)(sizeof(hdw->cmd_buffer) - 3)); in pvr2_i2c_write() 57 LOCK_TAKE(hdw->ctl_lock); in pvr2_i2c_write() 60 memset(hdw->cmd_buffer, 0, sizeof(hdw->cmd_buffer)); in pvr2_i2c_write() 63 hdw->cmd_buffer[0] = FX2CMD_I2C_WRITE; /* write prefix */ in pvr2_i2c_write() 64 hdw->cmd_buffer[1] = i2c_addr; /* i2c addr of chip */ in pvr2_i2c_write() 65 hdw in pvr2_i2c_write() 89 pvr2_i2c_read(struct pvr2_hdw *hdw, u8 i2c_addr, u8 *data, u16 dlen, u8 *res, u16 rlen) pvr2_i2c_read() argument 162 pvr2_i2c_basic_op(struct pvr2_hdw *hdw, u8 i2c_addr, u8 *wdata, u16 wlen, u8 *rdata, u16 rlen) pvr2_i2c_basic_op() argument 185 i2c_24xxx_ir(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) i2c_24xxx_ir() argument 255 i2c_hack_wm8775(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) i2c_hack_wm8775() argument 268 i2c_black_hole(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) i2c_black_hole() argument 281 i2c_hack_cx25840(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) i2c_hack_cx25840() argument 368 struct pvr2_hdw *hdw = (struct pvr2_hdw *)(i2c_adap->algo_data); pvr2_i2c_xfer() local 517 do_i2c_probe(struct pvr2_hdw *hdw, int addr) do_i2c_probe() argument 530 do_i2c_scan(struct pvr2_hdw *hdw) do_i2c_scan() argument 543 pvr2_i2c_register_ir(struct pvr2_hdw *hdw) pvr2_i2c_register_ir() argument 591 pvr2_i2c_core_init(struct pvr2_hdw *hdw) pvr2_i2c_core_init() argument 649 pvr2_i2c_core_done(struct pvr2_hdw *hdw) pvr2_i2c_core_done() argument [all...] |
H A D | pvrusb2-v4l2.c | 11 #include "pvrusb2-hdw.h" 112 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querycap() local 115 strscpy(cap->bus_info, pvr2_hdw_get_bus_info(hdw), in pvr2_querycap() 117 strscpy(cap->card, pvr2_hdw_get_desc(hdw), sizeof(cap->card)); in pvr2_querycap() 127 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_std() local 132 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDCUR), &val); in pvr2_g_std() 140 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_s_std() local 152 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_querystd() local 165 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_enum_input() local 213 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_input() local 235 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_input() local 290 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_tuner() local 302 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_tuner() local 318 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_frequency() local 353 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_frequency() local 395 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_fmt_vid_cap() local 415 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_try_fmt_vid_cap() local 453 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_fmt_vid_cap() local 470 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_streamon() local 489 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_streamoff() local 504 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_queryctrl() local 562 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_querymenu() local 577 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_ctrl() local 590 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_ctrl() local 603 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_ext_ctrls() local 638 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_ext_ctrls() local 667 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_try_ext_ctrls() local 689 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_pixelaspect() local 705 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_selection() local 756 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_selection() local 788 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_log_status() local 830 struct pvr2_hdw *hdw = dip->v4lp->channel.mc_head->hdw; pvr2_v4l2_dev_destroy() local 915 struct pvr2_hdw *hdw = fhp->channel.mc_head->hdw; pvr2_v4l2_release() local 955 struct pvr2_hdw *hdw; pvr2_v4l2_open() local 1049 struct pvr2_hdw *hdw; pvr2_v4l2_iosetup() local 1088 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_v4l2_read() local 1190 struct pvr2_hdw *hdw; pvr2_v4l2_dev_init() local [all...] |
H A D | pvrusb2-debugifc.c | 9 #include "pvrusb2-hdw.h" 116 int pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt) in pvr2_debugifc_print_info() argument 121 pvr2_hdw_get_desc(hdw)); in pvr2_debugifc_print_info() 125 ccnt = pvr2_hdw_state_report(hdw,buf,acnt); in pvr2_debugifc_print_info() 132 int pvr2_debugifc_print_status(struct pvr2_hdw *hdw, in pvr2_debugifc_print_status() argument 142 ret = pvr2_hdw_is_hsm(hdw); in pvr2_debugifc_print_status() 148 pvr2_hdw_gpio_get_dir(hdw,&gpio_dir); in pvr2_debugifc_print_status() 149 pvr2_hdw_gpio_get_out(hdw,&gpio_out); in pvr2_debugifc_print_status() 150 pvr2_hdw_gpio_get_in(hdw,&gpio_in); in pvr2_debugifc_print_status() 156 pvr2_hdw_get_streaming(hdw) in pvr2_debugifc_print_status() 179 pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf, unsigned int count) pvr2_debugifc_do1cmd() argument 289 pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf, unsigned int count) pvr2_debugifc_docmd() argument [all...] |
H A D | pvrusb2-cs53l32a.c | 18 #include "pvrusb2-hdw-internal.h" 47 void pvr2_cs53l32a_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_cs53l32a_subdev_update() argument 49 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_cs53l32a_subdev_update() 51 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_cs53l32a_subdev_update() 54 hdw->input_val); in pvr2_cs53l32a_subdev_update() 58 (hdw->input_val < 0) || in pvr2_cs53l32a_subdev_update() 59 (hdw->input_val >= sp->cnt)) { in pvr2_cs53l32a_subdev_update() 62 sid, hdw->input_val); in pvr2_cs53l32a_subdev_update() 65 input = sp->def[hdw in pvr2_cs53l32a_subdev_update() [all...] |
H A D | pvrusb2-video-v4l.c | 20 #include "pvrusb2-hdw-internal.h" 64 void pvr2_saa7115_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_saa7115_subdev_update() argument 66 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_saa7115_subdev_update() 68 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_saa7115_subdev_update() 72 hdw->input_val); in pvr2_saa7115_subdev_update() 77 (hdw->input_val < 0) || in pvr2_saa7115_subdev_update() 78 (hdw->input_val >= sp->cnt)) { in pvr2_saa7115_subdev_update() 81 sid, hdw->input_val); in pvr2_saa7115_subdev_update() 84 input = sp->def[hdw in pvr2_saa7115_subdev_update() [all...] |
H A D | pvrusb2-audio.c | 9 #include "pvrusb2-hdw-internal.h" 46 void pvr2_msp3400_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_msp3400_subdev_update() argument 48 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_msp3400_subdev_update() 50 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_msp3400_subdev_update() 58 (hdw->input_val >= 0) && in pvr2_msp3400_subdev_update() 59 (hdw->input_val < sp->cnt)) { in pvr2_msp3400_subdev_update() 60 input = sp->def[hdw->input_val]; in pvr2_msp3400_subdev_update() 64 sid, hdw->input_val); in pvr2_msp3400_subdev_update()
|
H A D | pvrusb2-context.c | 10 #include "pvrusb2-hdw.h" 70 pvr2_hdw_destroy(mp->hdw); in pvr2_context_destroy() 109 if (pvr2_hdw_initialize(mp->hdw, in pvr2_context_check() 113 pvr2_hdw_get_video_stream(mp->hdw); in pvr2_context_check() 222 mp->hdw = pvr2_hdw_create(intf,devid); in pvr2_context_create() 223 if (!mp->hdw) { in pvr2_context_create() 238 struct pvr2_hdw *hdw = mp->hdw; in pvr2_context_reset_input_limits() local 239 mmsk = pvr2_hdw_get_input_available(hdw); in pvr2_context_reset_input_limits() 245 pvr2_hdw_set_input_allowed(hdw,mms in pvr2_context_reset_input_limits() 329 struct pvr2_hdw *hdw = cp->hdw; pvr2_channel_limit_inputs() local [all...] |
H A D | pvrusb2-eeprom.c | 10 #include "pvrusb2-hdw-internal.h" 31 static u8 *pvr2_eeprom_fetch(struct pvr2_hdw *hdw) in pvr2_eeprom_fetch() argument 50 hdw->eeprom_addr); in pvr2_eeprom_fetch() 51 addr = hdw->eeprom_addr; in pvr2_eeprom_fetch() 89 if ((ret = i2c_transfer(&hdw->i2c_adap, in pvr2_eeprom_fetch() 102 int pvr2_eeprom_analyze(struct pvr2_hdw *hdw) in pvr2_eeprom_analyze() argument 109 eeprom = pvr2_eeprom_fetch(hdw); in pvr2_eeprom_analyze() 125 hdw->tuner_type = tvdata.tuner_type; in pvr2_eeprom_analyze() 126 hdw->tuner_updated = !0; in pvr2_eeprom_analyze() 127 hdw in pvr2_eeprom_analyze() [all...] |
H A D | pvrusb2-cx2584x-v4l.c | 18 #include "pvrusb2-hdw-internal.h" 135 void pvr2_cx25840_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_cx25840_subdev_update() argument 138 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_cx25840_subdev_update() 142 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_cx25840_subdev_update() 147 (hdw->input_val < 0) || in pvr2_cx25840_subdev_update() 148 (hdw->input_val >= sp->cnt)) { in pvr2_cx25840_subdev_update() 151 sid, hdw->input_val); in pvr2_cx25840_subdev_update() 154 vid_input = sp->def[hdw->input_val].vid; in pvr2_cx25840_subdev_update() 155 aud_input = sp->def[hdw in pvr2_cx25840_subdev_update() [all...] |
H A D | pvrusb2-hdw.h | 265 int pvr2_hdw_gpio_get_dir(struct pvr2_hdw *hdw,u32 *); 266 int pvr2_hdw_gpio_get_out(struct pvr2_hdw *hdw,u32 *); 267 int pvr2_hdw_gpio_get_in(struct pvr2_hdw *hdw,u32 *); 268 int pvr2_hdw_gpio_chg_dir(struct pvr2_hdw *hdw,u32 msk,u32 val); 269 int pvr2_hdw_gpio_chg_out(struct pvr2_hdw *hdw,u32 msk,u32 val); 306 void pvr2_hdw_get_debug_info_unlocked(const struct pvr2_hdw *hdw, 313 void pvr2_hdw_get_debug_info_locked(struct pvr2_hdw *hdw, 318 unsigned int pvr2_hdw_state_report(struct pvr2_hdw *hdw, 322 void pvr2_hdw_trigger_module_log(struct pvr2_hdw *hdw); 327 int pvr2_upload_firmware2(struct pvr2_hdw *hdw); [all...] |
H A D | pvrusb2-wm8775.c | 18 #include "pvrusb2-hdw-internal.h" 24 void pvr2_wm8775_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_wm8775_subdev_update() argument 26 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_wm8775_subdev_update() 29 switch (hdw->input_val) { in pvr2_wm8775_subdev_update() 39 hdw->input_val, input); in pvr2_wm8775_subdev_update()
|
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-hdw.c | 18 #include "pvrusb2-hdw.h" 21 #include "pvrusb2-hdw-internal.h" 314 static int pvr2_hdw_set_input(struct pvr2_hdw *hdw,int v); 322 static int pvr2_hdw_cmd_usbstream(struct pvr2_hdw *hdw,int runFl); 323 static int pvr2_hdw_commit_setup(struct pvr2_hdw *hdw); 324 static int pvr2_hdw_get_eeprom_addr(struct pvr2_hdw *hdw); 330 static int pvr2_send_request_ex(struct pvr2_hdw *hdw, 334 static int pvr2_hdw_check_cropcap(struct pvr2_hdw *hdw); 335 static v4l2_std_id pvr2_hdw_get_detected_std(struct pvr2_hdw *hdw); 346 struct pvr2_hdw *hdw in ctrl_channelfreq_get() local 357 struct pvr2_hdw *hdw = cptr->hdw; ctrl_channelfreq_set() local 385 struct pvr2_hdw *hdw = cptr->hdw; ctrl_channelprog_set() local 394 struct pvr2_hdw *hdw = cptr->hdw; ctrl_channel_get() local 402 struct pvr2_hdw *hdw = cptr->hdw; ctrl_channel_set() local 685 struct pvr2_hdw *hdw = cptr->hdw; ctrl_freq_max_get() local 707 struct pvr2_hdw *hdw = cptr->hdw; ctrl_freq_min_get() local 757 struct pvr2_hdw *hdw = cptr->hdw; ctrl_cx2341x_set() local 845 struct pvr2_hdw *hdw = cptr->hdw; ctrl_stdavail_set() local 883 struct pvr2_hdw *hdw = cptr->hdw; ctrl_stdcur_set() local 905 struct pvr2_hdw *hdw = cptr->hdw; ctrl_signal_get() local 915 struct pvr2_hdw *hdw = cptr->hdw; ctrl_audio_modes_present_get() local 1280 pvr2_hdw_get_dev(struct pvr2_hdw *hdw) pvr2_hdw_get_dev() argument 1286 pvr2_hdw_get_sn(struct pvr2_hdw *hdw) pvr2_hdw_get_sn() argument 1292 pvr2_hdw_get_bus_info(struct pvr2_hdw *hdw) pvr2_hdw_get_bus_info() argument 1298 pvr2_hdw_get_device_identifier(struct pvr2_hdw *hdw) pvr2_hdw_get_device_identifier() argument 1304 pvr2_hdw_get_cur_freq(struct pvr2_hdw *hdw) pvr2_hdw_get_cur_freq() argument 1311 pvr2_hdw_set_cur_freq(struct pvr2_hdw *hdw,unsigned long val) pvr2_hdw_set_cur_freq() argument 1338 pvr2_hdw_get_unit_number(struct pvr2_hdw *hdw) pvr2_hdw_get_unit_number() argument 1350 pvr2_locate_firmware(struct pvr2_hdw *hdw, const struct firmware **fw_entry, const char *fwtypename, unsigned int fwcount, const char *fwnames[]) pvr2_locate_firmware() argument 1406 pvr2_upload_firmware1(struct pvr2_hdw *hdw) pvr2_upload_firmware1() argument 1500 pvr2_upload_firmware2(struct pvr2_hdw *hdw) pvr2_upload_firmware2() argument 1656 pvr2_decoder_enable(struct pvr2_hdw *hdw,int enablefl) pvr2_decoder_enable() argument 1683 pvr2_hdw_get_state(struct pvr2_hdw *hdw) pvr2_hdw_get_state() argument 1689 pvr2_hdw_untrip_unlocked(struct pvr2_hdw *hdw) pvr2_hdw_untrip_unlocked() argument 1699 pvr2_hdw_untrip(struct pvr2_hdw *hdw) pvr2_hdw_untrip() argument 1712 pvr2_hdw_get_streaming(struct pvr2_hdw *hdw) pvr2_hdw_get_streaming() argument 1718 pvr2_hdw_set_streaming(struct pvr2_hdw *hdw,int enable_flag) pvr2_hdw_set_streaming() argument 1742 pvr2_hdw_set_stream_type(struct pvr2_hdw *hdw,enum pvr2_config config) pvr2_hdw_set_stream_type() argument 1759 get_default_tuner_type(struct pvr2_hdw *hdw) get_default_tuner_type() argument 1773 get_default_standard(struct pvr2_hdw *hdw) get_default_standard() argument 1785 get_default_error_tolerance(struct pvr2_hdw *hdw) get_default_error_tolerance() argument 1796 pvr2_hdw_check_firmware(struct pvr2_hdw *hdw) pvr2_hdw_check_firmware() argument 1859 pvr2_hdw_setup_std(struct pvr2_hdw *hdw) pvr2_hdw_setup_std() argument 1943 pvr2_hdw_cx25840_vbi_hack(struct pvr2_hdw *hdw) pvr2_hdw_cx25840_vbi_hack() argument 1972 pvr2_hdw_load_subdev(struct pvr2_hdw *hdw, const struct pvr2_device_client_desc *cd) pvr2_hdw_load_subdev() argument 2060 pvr2_hdw_load_modules(struct pvr2_hdw *hdw) pvr2_hdw_load_modules() argument 2083 pvr2_hdw_setup_low(struct pvr2_hdw *hdw) pvr2_hdw_setup_low() argument 2257 pvr2_hdw_setup(struct pvr2_hdw *hdw) pvr2_hdw_setup() argument 2322 pvr2_hdw_initialize(struct pvr2_hdw *hdw, void (*callback_func)(void *), void *callback_data) pvr2_hdw_initialize() argument 2350 struct pvr2_hdw *hdw = NULL; pvr2_hdw_create() local 2628 pvr2_hdw_remove_usb_stuff(struct pvr2_hdw *hdw) pvr2_hdw_remove_usb_stuff() argument 2660 pvr2_hdw_set_v4l2_dev(struct pvr2_hdw *hdw, struct video_device *vdev) pvr2_hdw_set_v4l2_dev() argument 2666 pvr2_hdw_destroy(struct pvr2_hdw *hdw) pvr2_hdw_destroy() argument 2700 pvr2_hdw_dev_ok(struct pvr2_hdw *hdw) pvr2_hdw_dev_ok() argument 2707 pvr2_hdw_disconnect(struct pvr2_hdw *hdw) pvr2_hdw_disconnect() argument 2720 pvr2_hdw_get_ctrl_count(struct pvr2_hdw *hdw) pvr2_hdw_get_ctrl_count() argument 2727 pvr2_hdw_get_ctrl_by_index(struct pvr2_hdw *hdw, unsigned int idx) pvr2_hdw_get_ctrl_by_index() argument 2736 pvr2_hdw_get_ctrl_by_id(struct pvr2_hdw *hdw, unsigned int ctl_id) pvr2_hdw_get_ctrl_by_id() argument 2754 pvr2_hdw_get_ctrl_v4l(struct pvr2_hdw *hdw,unsigned int ctl_id) pvr2_hdw_get_ctrl_v4l() argument 2772 pvr2_hdw_get_ctrl_nextv4l(struct pvr2_hdw *hdw, unsigned int ctl_id) pvr2_hdw_get_ctrl_nextv4l() argument 2806 pvr2_subdev_set_control(struct pvr2_hdw *hdw, int id, const char *name, int val) pvr2_subdev_set_control() argument 2826 pvr2_hdw_get_detected_std(struct pvr2_hdw *hdw) pvr2_hdw_get_detected_std() argument 2837 pvr2_subdev_update(struct pvr2_hdw *hdw) pvr2_subdev_update() argument 2973 pvr2_hdw_commit_setup(struct pvr2_hdw *hdw) pvr2_hdw_commit_setup() argument 3022 pvr2_hdw_commit_execute(struct pvr2_hdw *hdw) pvr2_hdw_commit_execute() argument 3182 pvr2_hdw_commit_ctl(struct pvr2_hdw *hdw) pvr2_hdw_commit_ctl() argument 3196 struct pvr2_hdw *hdw = container_of(work,struct pvr2_hdw,workpoll); pvr2_hdw_worker_poll() local 3206 pvr2_hdw_wait(struct pvr2_hdw *hdw,int state) pvr2_hdw_wait() argument 3216 pvr2_hdw_get_driver_name(struct pvr2_hdw *hdw) pvr2_hdw_get_driver_name() argument 3222 pvr2_hdw_get_desc(struct pvr2_hdw *hdw) pvr2_hdw_get_desc() argument 3228 pvr2_hdw_get_type(struct pvr2_hdw *hdw) pvr2_hdw_get_type() argument 3234 pvr2_hdw_is_hsm(struct pvr2_hdw *hdw) pvr2_hdw_is_hsm() argument 3250 pvr2_hdw_execute_tuner_poll(struct pvr2_hdw *hdw) pvr2_hdw_execute_tuner_poll() argument 3258 pvr2_hdw_check_cropcap(struct pvr2_hdw *hdw) pvr2_hdw_check_cropcap() argument 3272 pvr2_hdw_get_cropcap(struct pvr2_hdw *hdw, struct v4l2_cropcap *pp) pvr2_hdw_get_cropcap() argument 3286 pvr2_hdw_get_tuner_status(struct pvr2_hdw *hdw,struct v4l2_tuner *vtp) pvr2_hdw_get_tuner_status() argument 3307 pvr2_hdw_trigger_module_log(struct pvr2_hdw *hdw) pvr2_hdw_trigger_module_log() argument 3326 pvr2_full_eeprom_fetch(struct pvr2_hdw *hdw) pvr2_full_eeprom_fetch() argument 3396 pvr2_hdw_cpufw_set_enabled(struct pvr2_hdw *hdw, int mode, int enable_flag) pvr2_hdw_cpufw_set_enabled() argument 3473 pvr2_hdw_cpufw_get_enabled(struct pvr2_hdw *hdw) pvr2_hdw_cpufw_get_enabled() argument 3479 pvr2_hdw_cpufw_get(struct pvr2_hdw *hdw,unsigned int offs, char *buf,unsigned int cnt) pvr2_hdw_cpufw_get() argument 3516 pvr2_hdw_v4l_get_minor_number(struct pvr2_hdw *hdw, enum pvr2_v4l_type index) pvr2_hdw_v4l_get_minor_number() argument 3529 pvr2_hdw_v4l_store_minor_number(struct pvr2_hdw *hdw, enum pvr2_v4l_type index,int v) pvr2_hdw_v4l_store_minor_number() argument 3543 struct pvr2_hdw *hdw = urb->context; pvr2_ctl_write_complete() local 3552 struct pvr2_hdw *hdw = urb->context; pvr2_ctl_read_complete() local 3560 struct pvr2_hdw *hdw; global() member 3566 struct pvr2_hdw *hdw = timer->hdw; pvr2_ctl_timeout() local 3582 pvr2_send_request_ex(struct pvr2_hdw *hdw, unsigned int timeout,int probe_fl, void *write_data,unsigned int write_len, void *read_data,unsigned int read_len) pvr2_send_request_ex() argument 3815 pvr2_send_request(struct pvr2_hdw *hdw, void *write_data,unsigned int write_len, void *read_data,unsigned int read_len) pvr2_send_request() argument 3825 pvr2_issue_simple_cmd(struct pvr2_hdw *hdw,u32 cmdcode) pvr2_issue_simple_cmd() argument 3885 pvr2_write_register(struct pvr2_hdw *hdw, u16 reg, u32 data) pvr2_write_register() argument 3906 pvr2_read_register(struct pvr2_hdw *hdw, u16 reg, u32 *data) pvr2_read_register() argument 3930 pvr2_hdw_render_useless(struct pvr2_hdw *hdw) pvr2_hdw_render_useless() argument 3944 pvr2_hdw_device_reset(struct pvr2_hdw *hdw) pvr2_hdw_device_reset() argument 3966 pvr2_hdw_cpureset_assert(struct pvr2_hdw *hdw,int val) pvr2_hdw_cpureset_assert() argument 4000 pvr2_hdw_cmd_deep_reset(struct pvr2_hdw *hdw) pvr2_hdw_cmd_deep_reset() argument 4006 pvr2_hdw_cmd_powerup(struct pvr2_hdw *hdw) pvr2_hdw_cmd_powerup() argument 4013 pvr2_hdw_cmd_decoder_reset(struct pvr2_hdw *hdw) pvr2_hdw_cmd_decoder_reset() argument 4029 pvr2_hdw_cmd_hcw_demod_reset(struct pvr2_hdw *hdw, int onoff) pvr2_hdw_cmd_hcw_demod_reset() argument 4053 pvr2_hdw_cmd_onair_fe_power_ctrl(struct pvr2_hdw *hdw, int onoff) pvr2_hdw_cmd_onair_fe_power_ctrl() argument 4062 pvr2_hdw_cmd_onair_digital_path_ctrl(struct pvr2_hdw *hdw, int onoff) pvr2_hdw_cmd_onair_digital_path_ctrl() argument 4071 pvr2_hdw_cmd_modeswitch(struct pvr2_hdw *hdw,int digitalFl) pvr2_hdw_cmd_modeswitch() argument 4107 pvr2_led_ctrl_hauppauge(struct pvr2_hdw *hdw, int onoff) pvr2_led_ctrl_hauppauge() argument 4132 pvr2_led_ctrl(struct pvr2_hdw *hdw,int onoff) pvr2_led_ctrl() argument 4153 pvr2_hdw_cmd_usbstream(struct pvr2_hdw *hdw,int runFl) pvr2_hdw_cmd_usbstream() argument 4196 state_eval_pathway_ok(struct pvr2_hdw *hdw) state_eval_pathway_ok() argument 4214 state_eval_encoder_ok(struct pvr2_hdw *hdw) state_eval_encoder_ok() argument 4240 state_eval_encoder_config(struct pvr2_hdw *hdw) state_eval_encoder_config() argument 4306 state_check_disable_encoder_run(struct pvr2_hdw *hdw) state_check_disable_encoder_run() argument 4351 state_check_enable_encoder_run(struct pvr2_hdw *hdw) state_check_enable_encoder_run() argument 4397 state_eval_encoder_run(struct pvr2_hdw *hdw) state_eval_encoder_run() argument 4424 struct pvr2_hdw *hdw = from_timer(hdw, t, quiescent_timer); pvr2_hdw_quiescent_timeout() local 4435 struct pvr2_hdw *hdw = from_timer(hdw, t, decoder_stabilization_timer); pvr2_hdw_decoder_stabilization_timeout() local 4446 struct pvr2_hdw *hdw = from_timer(hdw, t, encoder_wait_timer); pvr2_hdw_encoder_wait_timeout() local 4457 struct pvr2_hdw *hdw = from_timer(hdw, t, encoder_run_timer); pvr2_hdw_encoder_run_timeout() local 4468 state_eval_decoder_run(struct pvr2_hdw *hdw) state_eval_decoder_run() argument 4543 state_eval_usbstream_run(struct pvr2_hdw *hdw) state_eval_usbstream_run() argument 4592 state_eval_pipeline_config(struct pvr2_hdw *hdw) state_eval_pipeline_config() argument 4604 state_update_pipeline_state(struct pvr2_hdw *hdw) state_update_pipeline_state() argument 4640 pvr2_hdw_state_update(struct pvr2_hdw *hdw) pvr2_hdw_state_update() argument 4705 pvr2_hdw_report_unlocked(struct pvr2_hdw *hdw,int which, char *buf,unsigned int acnt) pvr2_hdw_report_unlocked() argument 4816 pvr2_hdw_report_clients(struct pvr2_hdw *hdw, char *buf, unsigned int acnt) pvr2_hdw_report_clients() argument 4856 pvr2_hdw_state_report(struct pvr2_hdw *hdw, char *buf,unsigned int acnt) pvr2_hdw_state_report() argument 4877 pvr2_hdw_state_log_state(struct pvr2_hdw *hdw) pvr2_hdw_state_log_state() argument 4906 pvr2_hdw_state_eval(struct pvr2_hdw *hdw) pvr2_hdw_state_eval() argument 4969 pvr2_hdw_state_sched(struct pvr2_hdw *hdw) pvr2_hdw_state_sched() argument 4978 pvr2_hdw_gpio_get_dir(struct pvr2_hdw *hdw,u32 *dp) pvr2_hdw_gpio_get_dir() argument 4984 pvr2_hdw_gpio_get_out(struct pvr2_hdw *hdw,u32 *dp) pvr2_hdw_gpio_get_out() argument 4990 pvr2_hdw_gpio_get_in(struct pvr2_hdw *hdw,u32 *dp) pvr2_hdw_gpio_get_in() argument 4996 pvr2_hdw_gpio_chg_dir(struct pvr2_hdw *hdw,u32 msk,u32 val) pvr2_hdw_gpio_chg_dir() argument 5016 pvr2_hdw_gpio_chg_out(struct pvr2_hdw *hdw,u32 msk,u32 val) pvr2_hdw_gpio_chg_out() argument 5036 pvr2_hdw_status_poll(struct pvr2_hdw *hdw) pvr2_hdw_status_poll() argument 5059 pvr2_hdw_get_input_available(struct pvr2_hdw *hdw) pvr2_hdw_get_input_available() argument 5065 pvr2_hdw_get_input_allowed(struct pvr2_hdw *hdw) pvr2_hdw_get_input_allowed() argument 5071 pvr2_hdw_set_input(struct pvr2_hdw *hdw,int v) pvr2_hdw_set_input() argument 5093 pvr2_hdw_set_input_allowed(struct pvr2_hdw *hdw, unsigned int change_mask, unsigned int change_val) pvr2_hdw_set_input_allowed() argument 5134 pvr2_hdw_get_eeprom_addr(struct pvr2_hdw *hdw) pvr2_hdw_get_eeprom_addr() argument [all...] |
H A D | pvrusb2-encoder.c | 12 #include "pvrusb2-hdw-internal.h" 26 static int pvr2_encoder_write_words(struct pvr2_hdw *hdw, in pvr2_encoder_write_words() argument 48 memset(hdw->cmd_buffer,0,sizeof(hdw->cmd_buffer)); in pvr2_encoder_write_words() 50 hdw->cmd_buffer[bAddr++] = FX2CMD_MEM_WRITE_DWORD; in pvr2_encoder_write_words() 53 hdw->cmd_buffer[bAddr+6] = (addr & 0xffu); in pvr2_encoder_write_words() 54 hdw->cmd_buffer[bAddr+5] = ((addr>>8) & 0xffu); in pvr2_encoder_write_words() 55 hdw->cmd_buffer[bAddr+4] = ((addr>>16) & 0xffu); in pvr2_encoder_write_words() 56 PVR2_DECOMPOSE_LE(hdw->cmd_buffer, bAddr,data[idx]); in pvr2_encoder_write_words() 59 ret = pvr2_send_request(hdw, in pvr2_encoder_write_words() 72 pvr2_encoder_read_words(struct pvr2_hdw *hdw, unsigned int offs, u32 *data, unsigned int dlen) pvr2_encoder_read_words() argument 141 struct pvr2_hdw *hdw = (struct pvr2_hdw *)ctxt; pvr2_encoder_cmd() local 294 pvr2_encoder_vcmd(struct pvr2_hdw *hdw, int cmd, int args, ...) pvr2_encoder_vcmd() argument 321 pvr2_encoder_prep_config(struct pvr2_hdw *hdw) pvr2_encoder_prep_config() argument 389 pvr2_encoder_adjust(struct pvr2_hdw *hdw) pvr2_encoder_adjust() argument 406 pvr2_encoder_configure(struct pvr2_hdw *hdw) pvr2_encoder_configure() argument 463 pvr2_encoder_start(struct pvr2_hdw *hdw) pvr2_encoder_start() argument 490 pvr2_encoder_stop(struct pvr2_hdw *hdw) pvr2_encoder_stop() argument [all...] |
H A D | pvrusb2-i2c-core.c | 11 #include "pvrusb2-hdw-internal.h" 39 static int pvr2_i2c_write(struct pvr2_hdw *hdw, /* Context */ in pvr2_i2c_write() argument 49 if (length > (sizeof(hdw->cmd_buffer) - 3)) { in pvr2_i2c_write() 53 length,(unsigned int)(sizeof(hdw->cmd_buffer) - 3)); in pvr2_i2c_write() 57 LOCK_TAKE(hdw->ctl_lock); in pvr2_i2c_write() 60 memset(hdw->cmd_buffer, 0, sizeof(hdw->cmd_buffer)); in pvr2_i2c_write() 63 hdw->cmd_buffer[0] = FX2CMD_I2C_WRITE; /* write prefix */ in pvr2_i2c_write() 64 hdw->cmd_buffer[1] = i2c_addr; /* i2c addr of chip */ in pvr2_i2c_write() 65 hdw in pvr2_i2c_write() 89 pvr2_i2c_read(struct pvr2_hdw *hdw, u8 i2c_addr, u8 *data, u16 dlen, u8 *res, u16 rlen) pvr2_i2c_read() argument 162 pvr2_i2c_basic_op(struct pvr2_hdw *hdw, u8 i2c_addr, u8 *wdata, u16 wlen, u8 *rdata, u16 rlen) pvr2_i2c_basic_op() argument 185 i2c_24xxx_ir(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) i2c_24xxx_ir() argument 255 i2c_hack_wm8775(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) i2c_hack_wm8775() argument 268 i2c_black_hole(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) i2c_black_hole() argument 281 i2c_hack_cx25840(struct pvr2_hdw *hdw, u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) i2c_hack_cx25840() argument 368 struct pvr2_hdw *hdw = (struct pvr2_hdw *)(i2c_adap->algo_data); pvr2_i2c_xfer() local 517 do_i2c_probe(struct pvr2_hdw *hdw, int addr) do_i2c_probe() argument 530 do_i2c_scan(struct pvr2_hdw *hdw) do_i2c_scan() argument 543 pvr2_i2c_register_ir(struct pvr2_hdw *hdw) pvr2_i2c_register_ir() argument 591 pvr2_i2c_core_init(struct pvr2_hdw *hdw) pvr2_i2c_core_init() argument 649 pvr2_i2c_core_done(struct pvr2_hdw *hdw) pvr2_i2c_core_done() argument [all...] |
H A D | pvrusb2-v4l2.c | 11 #include "pvrusb2-hdw.h" 112 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querycap() local 115 strscpy(cap->bus_info, pvr2_hdw_get_bus_info(hdw), in pvr2_querycap() 117 strscpy(cap->card, pvr2_hdw_get_desc(hdw), sizeof(cap->card)); in pvr2_querycap() 127 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_std() local 132 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDCUR), &val); in pvr2_g_std() 140 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_s_std() local 152 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_querystd() local 165 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_enum_input() local 213 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_input() local 235 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_input() local 290 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_tuner() local 302 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_tuner() local 318 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_frequency() local 353 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_frequency() local 395 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_fmt_vid_cap() local 415 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_try_fmt_vid_cap() local 453 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_fmt_vid_cap() local 470 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_streamon() local 489 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_streamoff() local 504 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_queryctrl() local 562 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_querymenu() local 577 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_ctrl() local 590 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_ctrl() local 603 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_ext_ctrls() local 638 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_ext_ctrls() local 663 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_try_ext_ctrls() local 685 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_pixelaspect() local 701 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_g_selection() local 752 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_s_selection() local 784 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_log_status() local 826 struct pvr2_hdw *hdw = dip->v4lp->channel.mc_head->hdw; pvr2_v4l2_dev_destroy() local 911 struct pvr2_hdw *hdw = fhp->channel.mc_head->hdw; pvr2_v4l2_release() local 951 struct pvr2_hdw *hdw; pvr2_v4l2_open() local 1047 struct pvr2_hdw *hdw; pvr2_v4l2_iosetup() local 1086 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; pvr2_v4l2_read() local 1188 struct pvr2_hdw *hdw; pvr2_v4l2_dev_init() local [all...] |
H A D | pvrusb2-debugifc.c | 9 #include "pvrusb2-hdw.h" 116 int pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt) in pvr2_debugifc_print_info() argument 121 pvr2_hdw_get_desc(hdw)); in pvr2_debugifc_print_info() 125 ccnt = pvr2_hdw_state_report(hdw,buf,acnt); in pvr2_debugifc_print_info() 132 int pvr2_debugifc_print_status(struct pvr2_hdw *hdw, in pvr2_debugifc_print_status() argument 142 ret = pvr2_hdw_is_hsm(hdw); in pvr2_debugifc_print_status() 148 pvr2_hdw_gpio_get_dir(hdw,&gpio_dir); in pvr2_debugifc_print_status() 149 pvr2_hdw_gpio_get_out(hdw,&gpio_out); in pvr2_debugifc_print_status() 150 pvr2_hdw_gpio_get_in(hdw,&gpio_in); in pvr2_debugifc_print_status() 156 pvr2_hdw_get_streaming(hdw) in pvr2_debugifc_print_status() 179 pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf, unsigned int count) pvr2_debugifc_do1cmd() argument 289 pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf, unsigned int count) pvr2_debugifc_docmd() argument [all...] |
H A D | pvrusb2-cs53l32a.c | 18 #include "pvrusb2-hdw-internal.h" 47 void pvr2_cs53l32a_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_cs53l32a_subdev_update() argument 49 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_cs53l32a_subdev_update() 51 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_cs53l32a_subdev_update() 54 hdw->input_val); in pvr2_cs53l32a_subdev_update() 58 (hdw->input_val < 0) || in pvr2_cs53l32a_subdev_update() 59 (hdw->input_val >= sp->cnt)) { in pvr2_cs53l32a_subdev_update() 62 sid, hdw->input_val); in pvr2_cs53l32a_subdev_update() 65 input = sp->def[hdw in pvr2_cs53l32a_subdev_update() [all...] |
H A D | pvrusb2-video-v4l.c | 20 #include "pvrusb2-hdw-internal.h" 64 void pvr2_saa7115_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_saa7115_subdev_update() argument 66 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_saa7115_subdev_update() 68 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_saa7115_subdev_update() 72 hdw->input_val); in pvr2_saa7115_subdev_update() 77 (hdw->input_val < 0) || in pvr2_saa7115_subdev_update() 78 (hdw->input_val >= sp->cnt)) { in pvr2_saa7115_subdev_update() 81 sid, hdw->input_val); in pvr2_saa7115_subdev_update() 84 input = sp->def[hdw in pvr2_saa7115_subdev_update() [all...] |
H A D | pvrusb2-audio.c | 9 #include "pvrusb2-hdw-internal.h" 46 void pvr2_msp3400_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_msp3400_subdev_update() argument 48 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_msp3400_subdev_update() 50 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_msp3400_subdev_update() 58 (hdw->input_val >= 0) && in pvr2_msp3400_subdev_update() 59 (hdw->input_val < sp->cnt)) { in pvr2_msp3400_subdev_update() 60 input = sp->def[hdw->input_val]; in pvr2_msp3400_subdev_update() 64 sid, hdw->input_val); in pvr2_msp3400_subdev_update()
|
H A D | pvrusb2-context.c | 10 #include "pvrusb2-hdw.h" 70 pvr2_hdw_destroy(mp->hdw); in pvr2_context_destroy() 111 if (pvr2_hdw_initialize(mp->hdw, pvr2_context_notify, mp)) { in pvr2_context_check() 113 pvr2_hdw_get_video_stream(mp->hdw); in pvr2_context_check() 222 mp->hdw = pvr2_hdw_create(intf,devid); in pvr2_context_create() 223 if (!mp->hdw) { in pvr2_context_create() 238 struct pvr2_hdw *hdw = mp->hdw; in pvr2_context_reset_input_limits() local 239 mmsk = pvr2_hdw_get_input_available(hdw); in pvr2_context_reset_input_limits() 245 pvr2_hdw_set_input_allowed(hdw,mms in pvr2_context_reset_input_limits() 329 struct pvr2_hdw *hdw = cp->hdw; pvr2_channel_limit_inputs() local [all...] |
H A D | pvrusb2-eeprom.c | 10 #include "pvrusb2-hdw-internal.h" 31 static u8 *pvr2_eeprom_fetch(struct pvr2_hdw *hdw) in pvr2_eeprom_fetch() argument 50 hdw->eeprom_addr); in pvr2_eeprom_fetch() 51 addr = hdw->eeprom_addr; in pvr2_eeprom_fetch() 89 if ((ret = i2c_transfer(&hdw->i2c_adap, in pvr2_eeprom_fetch() 102 int pvr2_eeprom_analyze(struct pvr2_hdw *hdw) in pvr2_eeprom_analyze() argument 109 eeprom = pvr2_eeprom_fetch(hdw); in pvr2_eeprom_analyze() 125 hdw->tuner_type = tvdata.tuner_type; in pvr2_eeprom_analyze() 126 hdw->tuner_updated = !0; in pvr2_eeprom_analyze() 127 hdw in pvr2_eeprom_analyze() [all...] |
H A D | pvrusb2-cx2584x-v4l.c | 18 #include "pvrusb2-hdw-internal.h" 135 void pvr2_cx25840_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_cx25840_subdev_update() argument 138 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_cx25840_subdev_update() 142 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_cx25840_subdev_update() 147 (hdw->input_val < 0) || in pvr2_cx25840_subdev_update() 148 (hdw->input_val >= sp->cnt)) { in pvr2_cx25840_subdev_update() 151 sid, hdw->input_val); in pvr2_cx25840_subdev_update() 154 vid_input = sp->def[hdw->input_val].vid; in pvr2_cx25840_subdev_update() 155 aud_input = sp->def[hdw in pvr2_cx25840_subdev_update() [all...] |
H A D | pvrusb2-hdw.h | 265 int pvr2_hdw_gpio_get_dir(struct pvr2_hdw *hdw,u32 *); 266 int pvr2_hdw_gpio_get_out(struct pvr2_hdw *hdw,u32 *); 267 int pvr2_hdw_gpio_get_in(struct pvr2_hdw *hdw,u32 *); 268 int pvr2_hdw_gpio_chg_dir(struct pvr2_hdw *hdw,u32 msk,u32 val); 269 int pvr2_hdw_gpio_chg_out(struct pvr2_hdw *hdw,u32 msk,u32 val); 306 void pvr2_hdw_get_debug_info_unlocked(const struct pvr2_hdw *hdw, 313 void pvr2_hdw_get_debug_info_locked(struct pvr2_hdw *hdw, 318 unsigned int pvr2_hdw_state_report(struct pvr2_hdw *hdw, 322 void pvr2_hdw_trigger_module_log(struct pvr2_hdw *hdw); 327 int pvr2_upload_firmware2(struct pvr2_hdw *hdw); [all...] |