Home
last modified time | relevance | path

Searched refs:hdw (Results 1 – 21 of 21) sorted by relevance

/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-hdw.c18 #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
2626 pvr2_hdw_remove_usb_stuff(struct pvr2_hdw * hdw) pvr2_hdw_remove_usb_stuff() argument
2658 pvr2_hdw_set_v4l2_dev(struct pvr2_hdw * hdw,struct video_device * vdev) pvr2_hdw_set_v4l2_dev() argument
2664 pvr2_hdw_destroy(struct pvr2_hdw * hdw) pvr2_hdw_destroy() argument
2698 pvr2_hdw_dev_ok(struct pvr2_hdw * hdw) pvr2_hdw_dev_ok() argument
2705 pvr2_hdw_disconnect(struct pvr2_hdw * hdw) pvr2_hdw_disconnect() argument
2718 pvr2_hdw_get_ctrl_count(struct pvr2_hdw * hdw) pvr2_hdw_get_ctrl_count() argument
2725 pvr2_hdw_get_ctrl_by_index(struct pvr2_hdw * hdw,unsigned int idx) pvr2_hdw_get_ctrl_by_index() argument
2734 pvr2_hdw_get_ctrl_by_id(struct pvr2_hdw * hdw,unsigned int ctl_id) pvr2_hdw_get_ctrl_by_id() argument
2752 pvr2_hdw_get_ctrl_v4l(struct pvr2_hdw * hdw,unsigned int ctl_id) pvr2_hdw_get_ctrl_v4l() argument
2770 pvr2_hdw_get_ctrl_nextv4l(struct pvr2_hdw * hdw,unsigned int ctl_id) pvr2_hdw_get_ctrl_nextv4l() argument
2804 pvr2_subdev_set_control(struct pvr2_hdw * hdw,int id,const char * name,int val) pvr2_subdev_set_control() argument
2819 PVR2_SUBDEV_SET_CONTROL(hdw,id,lab) global() argument
2824 pvr2_hdw_get_detected_std(struct pvr2_hdw * hdw) pvr2_hdw_get_detected_std() argument
2835 pvr2_subdev_update(struct pvr2_hdw * hdw) pvr2_subdev_update() argument
2971 pvr2_hdw_commit_setup(struct pvr2_hdw * hdw) pvr2_hdw_commit_setup() argument
3020 pvr2_hdw_commit_execute(struct pvr2_hdw * hdw) pvr2_hdw_commit_execute() argument
3180 pvr2_hdw_commit_ctl(struct pvr2_hdw * hdw) pvr2_hdw_commit_ctl() argument
3194 struct pvr2_hdw *hdw = container_of(work,struct pvr2_hdw,workpoll); pvr2_hdw_worker_poll() local
3204 pvr2_hdw_wait(struct pvr2_hdw * hdw,int state) pvr2_hdw_wait() argument
3214 pvr2_hdw_get_driver_name(struct pvr2_hdw * hdw) pvr2_hdw_get_driver_name() argument
3220 pvr2_hdw_get_desc(struct pvr2_hdw * hdw) pvr2_hdw_get_desc() argument
3226 pvr2_hdw_get_type(struct pvr2_hdw * hdw) pvr2_hdw_get_type() argument
3232 pvr2_hdw_is_hsm(struct pvr2_hdw * hdw) pvr2_hdw_is_hsm() argument
3248 pvr2_hdw_execute_tuner_poll(struct pvr2_hdw * hdw) pvr2_hdw_execute_tuner_poll() argument
3256 pvr2_hdw_check_cropcap(struct pvr2_hdw * hdw) pvr2_hdw_check_cropcap() argument
3270 pvr2_hdw_get_cropcap(struct pvr2_hdw * hdw,struct v4l2_cropcap * pp) pvr2_hdw_get_cropcap() argument
3284 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
3471 pvr2_hdw_cpufw_get_enabled(struct pvr2_hdw * hdw) pvr2_hdw_cpufw_get_enabled() argument
3477 pvr2_hdw_cpufw_get(struct pvr2_hdw * hdw,unsigned int offs,char * buf,unsigned int cnt) pvr2_hdw_cpufw_get() argument
3514 pvr2_hdw_v4l_get_minor_number(struct pvr2_hdw * hdw,enum pvr2_v4l_type index) pvr2_hdw_v4l_get_minor_number() argument
3527 pvr2_hdw_v4l_store_minor_number(struct pvr2_hdw * hdw,enum pvr2_v4l_type index,int v) pvr2_hdw_v4l_store_minor_number() argument
3541 struct pvr2_hdw *hdw = urb->context; pvr2_ctl_write_complete() local
3550 struct pvr2_hdw *hdw = urb->context; pvr2_ctl_read_complete() local
3558 struct pvr2_hdw *hdw; global() member
3564 struct pvr2_hdw *hdw = timer->hdw; pvr2_ctl_timeout() local
3580 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
3818 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
3828 pvr2_issue_simple_cmd(struct pvr2_hdw * hdw,u32 cmdcode) pvr2_issue_simple_cmd() argument
3888 pvr2_write_register(struct pvr2_hdw * hdw,u16 reg,u32 data) pvr2_write_register() argument
3909 pvr2_read_register(struct pvr2_hdw * hdw,u16 reg,u32 * data) pvr2_read_register() argument
3933 pvr2_hdw_render_useless(struct pvr2_hdw * hdw) pvr2_hdw_render_useless() argument
3947 pvr2_hdw_device_reset(struct pvr2_hdw * hdw) pvr2_hdw_device_reset() argument
3969 pvr2_hdw_cpureset_assert(struct pvr2_hdw * hdw,int val) pvr2_hdw_cpureset_assert() argument
4003 pvr2_hdw_cmd_deep_reset(struct pvr2_hdw * hdw) pvr2_hdw_cmd_deep_reset() argument
4009 pvr2_hdw_cmd_powerup(struct pvr2_hdw * hdw) pvr2_hdw_cmd_powerup() argument
4016 pvr2_hdw_cmd_decoder_reset(struct pvr2_hdw * hdw) pvr2_hdw_cmd_decoder_reset() argument
4032 pvr2_hdw_cmd_hcw_demod_reset(struct pvr2_hdw * hdw,int onoff) pvr2_hdw_cmd_hcw_demod_reset() argument
4056 pvr2_hdw_cmd_onair_fe_power_ctrl(struct pvr2_hdw * hdw,int onoff) pvr2_hdw_cmd_onair_fe_power_ctrl() argument
4065 pvr2_hdw_cmd_onair_digital_path_ctrl(struct pvr2_hdw * hdw,int onoff) pvr2_hdw_cmd_onair_digital_path_ctrl() argument
4074 pvr2_hdw_cmd_modeswitch(struct pvr2_hdw * hdw,int digitalFl) pvr2_hdw_cmd_modeswitch() argument
4110 pvr2_led_ctrl_hauppauge(struct pvr2_hdw * hdw,int onoff) pvr2_led_ctrl_hauppauge() argument
4135 pvr2_led_ctrl(struct pvr2_hdw * hdw,int onoff) pvr2_led_ctrl() argument
4156 pvr2_hdw_cmd_usbstream(struct pvr2_hdw * hdw,int runFl) pvr2_hdw_cmd_usbstream() argument
4199 state_eval_pathway_ok(struct pvr2_hdw * hdw) state_eval_pathway_ok() argument
4217 state_eval_encoder_ok(struct pvr2_hdw * hdw) state_eval_encoder_ok() argument
4243 state_eval_encoder_config(struct pvr2_hdw * hdw) state_eval_encoder_config() argument
4309 state_check_disable_encoder_run(struct pvr2_hdw * hdw) state_check_disable_encoder_run() argument
4354 state_check_enable_encoder_run(struct pvr2_hdw * hdw) state_check_enable_encoder_run() argument
4400 state_eval_encoder_run(struct pvr2_hdw * hdw) state_eval_encoder_run() argument
4427 struct pvr2_hdw *hdw = timer_container_of(hdw, t, quiescent_timer); pvr2_hdw_quiescent_timeout() local
4438 struct pvr2_hdw *hdw = timer_container_of(hdw, t, pvr2_hdw_decoder_stabilization_timeout() local
4450 struct pvr2_hdw *hdw = timer_container_of(hdw, t, encoder_wait_timer); pvr2_hdw_encoder_wait_timeout() local
4461 struct pvr2_hdw *hdw = timer_container_of(hdw, t, encoder_run_timer); pvr2_hdw_encoder_run_timeout() local
4472 state_eval_decoder_run(struct pvr2_hdw * hdw) state_eval_decoder_run() argument
4547 state_eval_usbstream_run(struct pvr2_hdw * hdw) state_eval_usbstream_run() argument
4596 state_eval_pipeline_config(struct pvr2_hdw * hdw) state_eval_pipeline_config() argument
4608 state_update_pipeline_state(struct pvr2_hdw * hdw) state_update_pipeline_state() argument
4644 pvr2_hdw_state_update(struct pvr2_hdw * hdw) pvr2_hdw_state_update() argument
4709 pvr2_hdw_report_unlocked(struct pvr2_hdw * hdw,int which,char * buf,unsigned int acnt) pvr2_hdw_report_unlocked() argument
4820 pvr2_hdw_report_clients(struct pvr2_hdw * hdw,char * buf,unsigned int acnt) pvr2_hdw_report_clients() argument
4860 pvr2_hdw_state_report(struct pvr2_hdw * hdw,char * buf,unsigned int acnt) pvr2_hdw_state_report() argument
4881 pvr2_hdw_state_log_state(struct pvr2_hdw * hdw) pvr2_hdw_state_log_state() argument
4910 pvr2_hdw_state_eval(struct pvr2_hdw * hdw) pvr2_hdw_state_eval() argument
4973 pvr2_hdw_state_sched(struct pvr2_hdw * hdw) pvr2_hdw_state_sched() argument
4982 pvr2_hdw_gpio_get_dir(struct pvr2_hdw * hdw,u32 * dp) pvr2_hdw_gpio_get_dir() argument
4988 pvr2_hdw_gpio_get_out(struct pvr2_hdw * hdw,u32 * dp) pvr2_hdw_gpio_get_out() argument
4994 pvr2_hdw_gpio_get_in(struct pvr2_hdw * hdw,u32 * dp) pvr2_hdw_gpio_get_in() argument
5000 pvr2_hdw_gpio_chg_dir(struct pvr2_hdw * hdw,u32 msk,u32 val) pvr2_hdw_gpio_chg_dir() argument
5020 pvr2_hdw_gpio_chg_out(struct pvr2_hdw * hdw,u32 msk,u32 val) pvr2_hdw_gpio_chg_out() argument
5040 pvr2_hdw_status_poll(struct pvr2_hdw * hdw) pvr2_hdw_status_poll() argument
5063 pvr2_hdw_get_input_available(struct pvr2_hdw * hdw) pvr2_hdw_get_input_available() argument
5069 pvr2_hdw_get_input_allowed(struct pvr2_hdw * hdw) pvr2_hdw_get_input_allowed() argument
5075 pvr2_hdw_set_input(struct pvr2_hdw * hdw,int v) pvr2_hdw_set_input() argument
5097 pvr2_hdw_set_input_allowed(struct pvr2_hdw * hdw,unsigned int change_mask,unsigned int change_val) pvr2_hdw_set_input_allowed() argument
5138 pvr2_hdw_get_eeprom_addr(struct pvr2_hdw * hdw) pvr2_hdw_get_eeprom_addr() argument
[all...]
H A Dpvrusb2-encoder.c26 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()
60 hdw->cmd_buffer,1+(chunkCnt*7), in pvr2_encoder_write_words()
72 static int pvr2_encoder_read_words(struct pvr2_hdw *hdw, in pvr2_encoder_read_words() argument
[all …]
H A Dpvrusb2-i2c-core.c39 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->cmd_buffer[2] = length; /* length of what follows */ in pvr2_i2c_write()
66 if (length) memcpy(hdw->cmd_buffer + 3, data, length); in pvr2_i2c_write()
69 ret = pvr2_send_request(hdw, in pvr2_i2c_write()
[all …]
H A Dpvrusb2-v4l2.c115 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querycap() local
118 strscpy(cap->bus_info, pvr2_hdw_get_bus_info(hdw), in pvr2_querycap()
120 strscpy(cap->card, pvr2_hdw_get_desc(hdw), sizeof(cap->card)); in pvr2_querycap()
130 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_std() local
135 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDCUR), &val); in pvr2_g_std()
143 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_s_std() local
147 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDCUR), std); in pvr2_s_std()
148 pvr2_hdw_commit_ctl(hdw); in pvr2_s_std()
155 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querystd() local
160 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDDETECT), &val); in pvr2_querystd()
[all …]
H A Dpvrusb2-cs53l32a.c47 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->input_val]; in pvr2_cs53l32a_subdev_update()
H A Dpvrusb2-video-v4l.c64 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->input_val]; in pvr2_saa7115_subdev_update()
H A Dpvrusb2-context.c70 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,mmsk,tmsk); in pvr2_context_reset_input_limits()
246 pvr2_hdw_commit_ctl(hdw); in pvr2_context_reset_input_limits()
269 pvr2_hdw_disconnect(mp->hdw); in pvr2_context_disconnect()
[all …]
H A Dpvrusb2-eeprom.c31 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->serial_number = tvdata.serial_number; in pvr2_eeprom_analyze()
128 hdw->std_mask_eeprom = tvdata.tuner_formats; in pvr2_eeprom_analyze()
H A Dpvrusb2-audio.c46 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 Dpvrusb2-hdw.h265 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);
H A Dpvrusb2-cx2584x-v4l.c135 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->input_val].aud; in pvr2_cx25840_subdev_update()
H A Dpvrusb2-wm8775.c24 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()
H A Dpvrusb2-ctrl.c50 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_set_mask_value()
65 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_set_mask_value()
75 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_get_value()
77 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_get_value()
95 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_get_max()
101 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_get_max()
111 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_get_min()
117 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_get_min()
127 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_get_def()
133 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_get_def()
[all …]
H A Dpvrusb2-devattr.c186 &adap->channel.hdw->i2c_adap); in pvr2_lgdt3303_attach()
196 &adap->channel.hdw->i2c_adap, 0x61, in pvr2_lgh06xf_attach()
246 &adap->channel.hdw->i2c_adap); in pvr2_lgdt3302_attach()
256 &adap->channel.hdw->i2c_adap, 0x61, in pvr2_fcv1236d_attach()
332 &adap->channel.hdw->i2c_adap); in pvr2_tda10048_attach()
342 &adap->channel.hdw->i2c_adap, 0x42, in pvr2_73xxx_tda18271_8295_attach()
345 &adap->channel.hdw->i2c_adap, in pvr2_73xxx_tda18271_8295_attach()
430 &adap->channel.hdw->i2c_adap); in pvr2_s5h1409_attach()
440 &adap->channel.hdw->i2c_adap); in pvr2_s5h1411_attach()
450 &adap->channel.hdw->i2c_adap, 0x42, in pvr2_tda18271_8295_attach()
[all …]
H A Dpvrusb2-sysfs.c10 #include "pvrusb2-hdw.h"
250 pvr2_hdw_commit_ctl(cip->chptr->channel.hdw); in store_val_any()
289 cptr = pvr2_hdw_get_ctrl_by_index(sfp->channel.hdw,ctl_id); in pvr2_sysfs_add_control()
465 cnt = pvr2_hdw_get_ctrl_count(sfp->channel.hdw); in pvr2_sysfs_add_controls()
548 pvr2_hdw_v4l_get_minor_number(sfp->channel.hdw, in v4l_minor_number_show()
560 pvr2_hdw_get_bus_info(sfp->channel.hdw)); in bus_info_show()
571 pvr2_hdw_get_type(sfp->channel.hdw)); in hdw_name_show()
582 pvr2_hdw_get_desc(sfp->channel.hdw)); in hdw_desc_show()
594 pvr2_hdw_v4l_get_minor_number(sfp->channel.hdw, in v4l_radio_minor_number_show()
606 pvr2_hdw_get_unit_number(sfp->channel.hdw)); in unit_number_show()
[all...]
H A Dpvrusb2-dvb.c110 pvr2_hdw_set_streaming(adap->channel.hdw, 0); in pvr2_dvb_stream_end()
162 ret = pvr2_hdw_set_streaming(adap->channel.hdw, 1); in pvr2_dvb_stream_do_start()
247 &adap->channel.hdw->usb_dev->dev, in pvr2_dvb_adapter_init()
309 struct pvr2_hdw *hdw = adap->channel.hdw; in pvr2_dvb_frontend_init() local
310 const struct pvr2_dvb_props *dvb_props = hdw->hdw_desc->dvb_props; in pvr2_dvb_frontend_init()
447 if (!pvr->hdw->hdw_desc->dvb_props) { in pvr2_dvb_create()
H A Dpvrusb2-context.h33 struct pvr2_hdw *hdw; member
50 struct pvr2_hdw *hdw; member
H A DMakefile10 pvrusb2-main.o pvrusb2-hdw.o pvrusb2-v4l2.o \
H A Dpvrusb2-hdw-internal.h124 struct pvr2_hdw *hdw; member
/linux/Documentation/driver-api/media/drivers/
H A Dpvrusb2.rst112 pvrusb2-hdw-internal.h - This header defines the core data structure
119 pvrusb2-hdw.h and NOT this header.
121 pvrusb2-hdw.h - This header defines the full internal API for
125 pvrusb2-hdw.c - This module implements all the various bits of logic
156 glue logic which is coordinated by pvrusb2-hdw, doled out by
/linux/drivers/scsi/lpfc/
H A Dlpfc_attr.c101 lpfc_jedec_to_ascii(int incr, char hdw[]) in lpfc_jedec_to_ascii() argument
107 hdw[7 - i] = 0x30 + j; in lpfc_jedec_to_ascii()
109 hdw[7 - i] = 0x61 + j - 10; in lpfc_jedec_to_ascii()
112 hdw[8] = 0; in lpfc_jedec_to_ascii()
1026 char hdw[9]; in lpfc_hdw_show() local
1032 lpfc_jedec_to_ascii(vp->rev.biuRev, hdw); in lpfc_hdw_show()
1033 return scnprintf(buf, PAGE_SIZE, "%s %08x %08x\n", hdw, in lpfc_hdw_show()
3024 static DEVICE_ATTR(hdw, S_IRUGO, lpfc_hdw_show, NULL);