Lines Matching refs:pvr2_hdw
63 static struct pvr2_hdw *unit_pointers[PVR_NUM] = {[ 0 ... PVR_NUM-1 ] = NULL};
111 typedef void (*pvr2_subdev_update_func)(struct pvr2_hdw *,
322 static int pvr2_hdw_set_input(struct pvr2_hdw *hdw,int v);
323 static void pvr2_hdw_state_sched(struct pvr2_hdw *);
324 static int pvr2_hdw_state_eval(struct pvr2_hdw *);
325 static void pvr2_hdw_set_cur_freq(struct pvr2_hdw *,unsigned long);
327 static int pvr2_hdw_wait(struct pvr2_hdw *,int state);
328 static int pvr2_hdw_untrip_unlocked(struct pvr2_hdw *);
329 static void pvr2_hdw_state_log_state(struct pvr2_hdw *);
330 static int pvr2_hdw_cmd_usbstream(struct pvr2_hdw *hdw,int runFl);
331 static int pvr2_hdw_commit_setup(struct pvr2_hdw *hdw);
332 static int pvr2_hdw_get_eeprom_addr(struct pvr2_hdw *hdw);
337 static int pvr2_issue_simple_cmd(struct pvr2_hdw *,u32);
338 static int pvr2_send_request_ex(struct pvr2_hdw *hdw,
342 static int pvr2_hdw_check_cropcap(struct pvr2_hdw *hdw);
343 static v4l2_std_id pvr2_hdw_get_detected_std(struct pvr2_hdw *hdw);
354 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelfreq_get()
365 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelfreq_set()
393 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelprog_set()
402 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channel_get()
410 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channel_set()
691 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_freq_max_get()
713 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_freq_min_get()
763 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_cx2341x_set()
851 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_stdavail_set()
890 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_stdcur_set()
912 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_signal_get()
922 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_audio_modes_present_get()
1287 struct usb_device *pvr2_hdw_get_dev(struct pvr2_hdw *hdw) in pvr2_hdw_get_dev()
1293 unsigned long pvr2_hdw_get_sn(struct pvr2_hdw *hdw) in pvr2_hdw_get_sn()
1299 const char *pvr2_hdw_get_bus_info(struct pvr2_hdw *hdw) in pvr2_hdw_get_bus_info()
1305 const char *pvr2_hdw_get_device_identifier(struct pvr2_hdw *hdw) in pvr2_hdw_get_device_identifier()
1311 unsigned long pvr2_hdw_get_cur_freq(struct pvr2_hdw *hdw) in pvr2_hdw_get_cur_freq()
1318 static void pvr2_hdw_set_cur_freq(struct pvr2_hdw *hdw,unsigned long val) in pvr2_hdw_set_cur_freq()
1345 int pvr2_hdw_get_unit_number(struct pvr2_hdw *hdw) in pvr2_hdw_get_unit_number()
1357 static int pvr2_locate_firmware(struct pvr2_hdw *hdw, in pvr2_locate_firmware()
1413 static int pvr2_upload_firmware1(struct pvr2_hdw *hdw) in pvr2_upload_firmware1()
1507 int pvr2_upload_firmware2(struct pvr2_hdw *hdw) in pvr2_upload_firmware2()
1663 static int pvr2_decoder_enable(struct pvr2_hdw *hdw,int enablefl) in pvr2_decoder_enable()
1690 int pvr2_hdw_get_state(struct pvr2_hdw *hdw) in pvr2_hdw_get_state()
1696 static int pvr2_hdw_untrip_unlocked(struct pvr2_hdw *hdw) in pvr2_hdw_untrip_unlocked()
1706 int pvr2_hdw_untrip(struct pvr2_hdw *hdw) in pvr2_hdw_untrip()
1719 int pvr2_hdw_get_streaming(struct pvr2_hdw *hdw) in pvr2_hdw_get_streaming()
1725 int pvr2_hdw_set_streaming(struct pvr2_hdw *hdw,int enable_flag) in pvr2_hdw_set_streaming()
1749 int pvr2_hdw_set_stream_type(struct pvr2_hdw *hdw,enum pvr2_config config) in pvr2_hdw_set_stream_type()
1766 static int get_default_tuner_type(struct pvr2_hdw *hdw) in get_default_tuner_type()
1780 static v4l2_std_id get_default_standard(struct pvr2_hdw *hdw) in get_default_standard()
1792 static unsigned int get_default_error_tolerance(struct pvr2_hdw *hdw) in get_default_error_tolerance()
1803 static int pvr2_hdw_check_firmware(struct pvr2_hdw *hdw) in pvr2_hdw_check_firmware()
1866 static void pvr2_hdw_setup_std(struct pvr2_hdw *hdw) in pvr2_hdw_setup_std()
1950 static void pvr2_hdw_cx25840_vbi_hack(struct pvr2_hdw *hdw) in pvr2_hdw_cx25840_vbi_hack()
1979 static int pvr2_hdw_load_subdev(struct pvr2_hdw *hdw, in pvr2_hdw_load_subdev()
2067 static void pvr2_hdw_load_modules(struct pvr2_hdw *hdw) in pvr2_hdw_load_modules()
2090 static void pvr2_hdw_setup_low(struct pvr2_hdw *hdw) in pvr2_hdw_setup_low()
2246 static void pvr2_hdw_setup(struct pvr2_hdw *hdw) in pvr2_hdw_setup()
2311 int pvr2_hdw_initialize(struct pvr2_hdw *hdw, in pvr2_hdw_initialize()
2335 struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf, in pvr2_hdw_create()
2339 struct pvr2_hdw *hdw = NULL; in pvr2_hdw_create()
2614 static void pvr2_hdw_remove_usb_stuff(struct pvr2_hdw *hdw) in pvr2_hdw_remove_usb_stuff()
2646 void pvr2_hdw_set_v4l2_dev(struct pvr2_hdw *hdw, struct video_device *vdev) in pvr2_hdw_set_v4l2_dev()
2652 void pvr2_hdw_destroy(struct pvr2_hdw *hdw) in pvr2_hdw_destroy()
2687 int pvr2_hdw_dev_ok(struct pvr2_hdw *hdw) in pvr2_hdw_dev_ok()
2694 void pvr2_hdw_disconnect(struct pvr2_hdw *hdw) in pvr2_hdw_disconnect()
2706 unsigned int pvr2_hdw_get_ctrl_count(struct pvr2_hdw *hdw) in pvr2_hdw_get_ctrl_count()
2713 struct pvr2_ctrl *pvr2_hdw_get_ctrl_by_index(struct pvr2_hdw *hdw, in pvr2_hdw_get_ctrl_by_index()
2722 struct pvr2_ctrl *pvr2_hdw_get_ctrl_by_id(struct pvr2_hdw *hdw, in pvr2_hdw_get_ctrl_by_id()
2740 struct pvr2_ctrl *pvr2_hdw_get_ctrl_v4l(struct pvr2_hdw *hdw,unsigned int ctl_id) in pvr2_hdw_get_ctrl_v4l()
2758 struct pvr2_ctrl *pvr2_hdw_get_ctrl_nextv4l(struct pvr2_hdw *hdw, in pvr2_hdw_get_ctrl_nextv4l()
2792 static void pvr2_subdev_set_control(struct pvr2_hdw *hdw, int id, in pvr2_subdev_set_control()
2812 static v4l2_std_id pvr2_hdw_get_detected_std(struct pvr2_hdw *hdw) in pvr2_hdw_get_detected_std()
2823 static void pvr2_subdev_update(struct pvr2_hdw *hdw) in pvr2_subdev_update()
2959 static int pvr2_hdw_commit_setup(struct pvr2_hdw *hdw) in pvr2_hdw_commit_setup()
3008 static int pvr2_hdw_commit_execute(struct pvr2_hdw *hdw) in pvr2_hdw_commit_execute()
3168 int pvr2_hdw_commit_ctl(struct pvr2_hdw *hdw) in pvr2_hdw_commit_ctl()
3182 struct pvr2_hdw *hdw = container_of(work,struct pvr2_hdw,workpoll); in pvr2_hdw_worker_poll()
3192 static int pvr2_hdw_wait(struct pvr2_hdw *hdw,int state) in pvr2_hdw_wait()
3202 const char *pvr2_hdw_get_driver_name(struct pvr2_hdw *hdw) in pvr2_hdw_get_driver_name()
3208 const char *pvr2_hdw_get_desc(struct pvr2_hdw *hdw) in pvr2_hdw_get_desc()
3214 const char *pvr2_hdw_get_type(struct pvr2_hdw *hdw) in pvr2_hdw_get_type()
3220 int pvr2_hdw_is_hsm(struct pvr2_hdw *hdw) in pvr2_hdw_is_hsm()
3236 void pvr2_hdw_execute_tuner_poll(struct pvr2_hdw *hdw) in pvr2_hdw_execute_tuner_poll()
3244 static int pvr2_hdw_check_cropcap(struct pvr2_hdw *hdw) in pvr2_hdw_check_cropcap()
3258 int pvr2_hdw_get_cropcap(struct pvr2_hdw *hdw, struct v4l2_cropcap *pp) in pvr2_hdw_get_cropcap()
3272 int pvr2_hdw_get_tuner_status(struct pvr2_hdw *hdw,struct v4l2_tuner *vtp) in pvr2_hdw_get_tuner_status()
3285 struct pvr2_stream *pvr2_hdw_get_video_stream(struct pvr2_hdw *hp) in pvr2_hdw_get_video_stream()
3291 void pvr2_hdw_trigger_module_log(struct pvr2_hdw *hdw) in pvr2_hdw_trigger_module_log()
3310 static u8 *pvr2_full_eeprom_fetch(struct pvr2_hdw *hdw) in pvr2_full_eeprom_fetch()
3381 void pvr2_hdw_cpufw_set_enabled(struct pvr2_hdw *hdw, in pvr2_hdw_cpufw_set_enabled()
3457 int pvr2_hdw_cpufw_get_enabled(struct pvr2_hdw *hdw) in pvr2_hdw_cpufw_get_enabled()
3463 int pvr2_hdw_cpufw_get(struct pvr2_hdw *hdw,unsigned int offs, in pvr2_hdw_cpufw_get()
3498 int pvr2_hdw_v4l_get_minor_number(struct pvr2_hdw *hdw, in pvr2_hdw_v4l_get_minor_number()
3511 void pvr2_hdw_v4l_store_minor_number(struct pvr2_hdw *hdw, in pvr2_hdw_v4l_store_minor_number()
3525 struct pvr2_hdw *hdw = urb->context; in pvr2_ctl_write_complete()
3534 struct pvr2_hdw *hdw = urb->context; in pvr2_ctl_read_complete()
3542 struct pvr2_hdw *hdw;
3548 struct pvr2_hdw *hdw = timer->hdw; in pvr2_ctl_timeout()
3564 static int pvr2_send_request_ex(struct pvr2_hdw *hdw, in pvr2_send_request_ex()
3797 int pvr2_send_request(struct pvr2_hdw *hdw, in pvr2_send_request()
3807 static int pvr2_issue_simple_cmd(struct pvr2_hdw *hdw,u32 cmdcode) in pvr2_issue_simple_cmd()
3867 int pvr2_write_register(struct pvr2_hdw *hdw, u16 reg, u32 data) in pvr2_write_register()
3888 static int pvr2_read_register(struct pvr2_hdw *hdw, u16 reg, u32 *data) in pvr2_read_register()
3912 void pvr2_hdw_render_useless(struct pvr2_hdw *hdw) in pvr2_hdw_render_useless()
3926 void pvr2_hdw_device_reset(struct pvr2_hdw *hdw) in pvr2_hdw_device_reset()
3948 void pvr2_hdw_cpureset_assert(struct pvr2_hdw *hdw,int val) in pvr2_hdw_cpureset_assert()
3982 int pvr2_hdw_cmd_deep_reset(struct pvr2_hdw *hdw) in pvr2_hdw_cmd_deep_reset()
3988 int pvr2_hdw_cmd_powerup(struct pvr2_hdw *hdw) in pvr2_hdw_cmd_powerup()
3995 int pvr2_hdw_cmd_decoder_reset(struct pvr2_hdw *hdw) in pvr2_hdw_cmd_decoder_reset()
4011 static int pvr2_hdw_cmd_hcw_demod_reset(struct pvr2_hdw *hdw, int onoff) in pvr2_hdw_cmd_hcw_demod_reset()
4021 static int pvr2_hdw_cmd_onair_fe_power_ctrl(struct pvr2_hdw *hdw, int onoff) in pvr2_hdw_cmd_onair_fe_power_ctrl()
4030 static int pvr2_hdw_cmd_onair_digital_path_ctrl(struct pvr2_hdw *hdw, in pvr2_hdw_cmd_onair_digital_path_ctrl()
4039 static void pvr2_hdw_cmd_modeswitch(struct pvr2_hdw *hdw,int digitalFl) in pvr2_hdw_cmd_modeswitch()
4075 static void pvr2_led_ctrl_hauppauge(struct pvr2_hdw *hdw, int onoff) in pvr2_led_ctrl_hauppauge()
4092 typedef void (*led_method_func)(struct pvr2_hdw *,int);
4100 static void pvr2_led_ctrl(struct pvr2_hdw *hdw,int onoff) in pvr2_led_ctrl()
4121 static int pvr2_hdw_cmd_usbstream(struct pvr2_hdw *hdw,int runFl) in pvr2_hdw_cmd_usbstream()
4164 static int state_eval_pathway_ok(struct pvr2_hdw *hdw) in state_eval_pathway_ok()
4182 static int state_eval_encoder_ok(struct pvr2_hdw *hdw) in state_eval_encoder_ok()
4208 static int state_eval_encoder_config(struct pvr2_hdw *hdw) in state_eval_encoder_config()
4274 static int state_check_disable_encoder_run(struct pvr2_hdw *hdw) in state_check_disable_encoder_run()
4319 static int state_check_enable_encoder_run(struct pvr2_hdw *hdw) in state_check_enable_encoder_run()
4365 static int state_eval_encoder_run(struct pvr2_hdw *hdw) in state_eval_encoder_run()
4392 struct pvr2_hdw *hdw = from_timer(hdw, t, quiescent_timer); in pvr2_hdw_quiescent_timeout()
4403 struct pvr2_hdw *hdw = from_timer(hdw, t, decoder_stabilization_timer); in pvr2_hdw_decoder_stabilization_timeout()
4414 struct pvr2_hdw *hdw = from_timer(hdw, t, encoder_wait_timer); in pvr2_hdw_encoder_wait_timeout()
4425 struct pvr2_hdw *hdw = from_timer(hdw, t, encoder_run_timer); in pvr2_hdw_encoder_run_timeout()
4436 static int state_eval_decoder_run(struct pvr2_hdw *hdw) in state_eval_decoder_run()
4511 static int state_eval_usbstream_run(struct pvr2_hdw *hdw) in state_eval_usbstream_run()
4560 static int state_eval_pipeline_config(struct pvr2_hdw *hdw) in state_eval_pipeline_config()
4572 static int state_update_pipeline_state(struct pvr2_hdw *hdw) in state_update_pipeline_state()
4593 typedef int (*state_eval_func)(struct pvr2_hdw *);
4608 static int pvr2_hdw_state_update(struct pvr2_hdw *hdw) in pvr2_hdw_state_update()
4673 static unsigned int pvr2_hdw_report_unlocked(struct pvr2_hdw *hdw,int which, in pvr2_hdw_report_unlocked()
4784 static unsigned int pvr2_hdw_report_clients(struct pvr2_hdw *hdw, in pvr2_hdw_report_clients()
4824 unsigned int pvr2_hdw_state_report(struct pvr2_hdw *hdw, in pvr2_hdw_state_report()
4845 static void pvr2_hdw_state_log_state(struct pvr2_hdw *hdw) in pvr2_hdw_state_log_state()
4874 static int pvr2_hdw_state_eval(struct pvr2_hdw *hdw) in pvr2_hdw_state_eval()
4937 static void pvr2_hdw_state_sched(struct pvr2_hdw *hdw) in pvr2_hdw_state_sched()
4946 int pvr2_hdw_gpio_get_dir(struct pvr2_hdw *hdw,u32 *dp) in pvr2_hdw_gpio_get_dir()
4952 int pvr2_hdw_gpio_get_out(struct pvr2_hdw *hdw,u32 *dp) in pvr2_hdw_gpio_get_out()
4958 int pvr2_hdw_gpio_get_in(struct pvr2_hdw *hdw,u32 *dp) in pvr2_hdw_gpio_get_in()
4964 int pvr2_hdw_gpio_chg_dir(struct pvr2_hdw *hdw,u32 msk,u32 val) in pvr2_hdw_gpio_chg_dir()
4984 int pvr2_hdw_gpio_chg_out(struct pvr2_hdw *hdw,u32 msk,u32 val) in pvr2_hdw_gpio_chg_out()
5004 void pvr2_hdw_status_poll(struct pvr2_hdw *hdw) in pvr2_hdw_status_poll()
5027 unsigned int pvr2_hdw_get_input_available(struct pvr2_hdw *hdw) in pvr2_hdw_get_input_available()
5033 unsigned int pvr2_hdw_get_input_allowed(struct pvr2_hdw *hdw) in pvr2_hdw_get_input_allowed()
5039 static int pvr2_hdw_set_input(struct pvr2_hdw *hdw,int v) in pvr2_hdw_set_input()
5061 int pvr2_hdw_set_input_allowed(struct pvr2_hdw *hdw, in pvr2_hdw_set_input_allowed()
5102 static int pvr2_hdw_get_eeprom_addr(struct pvr2_hdw *hdw) in pvr2_hdw_get_eeprom_addr()