/drivers/media/usb/pvrusb2/ |
D | pvrusb2-hdw.c | 326 static int pvr2_hdw_set_input(struct pvr2_hdw *hdw,int v); 334 static int pvr2_hdw_cmd_usbstream(struct pvr2_hdw *hdw,int runFl); 335 static int pvr2_hdw_commit_setup(struct pvr2_hdw *hdw); 336 static int pvr2_hdw_get_eeprom_addr(struct pvr2_hdw *hdw); 342 static int pvr2_send_request_ex(struct pvr2_hdw *hdw, 346 static int pvr2_hdw_check_cropcap(struct pvr2_hdw *hdw); 347 static v4l2_std_id pvr2_hdw_get_detected_std(struct pvr2_hdw *hdw); 358 struct pvr2_hdw *hdw = cptr->hdw; in ctrl_channelfreq_get() local 359 if ((hdw->freqProgSlot > 0) && (hdw->freqProgSlot <= FREQTABLE_SIZE)) { in ctrl_channelfreq_get() 360 *vp = hdw->freqTable[hdw->freqProgSlot-1]; in ctrl_channelfreq_get() [all …]
|
D | pvrusb2-encoder.c | 40 static int pvr2_encoder_write_words(struct pvr2_hdw *hdw, in pvr2_encoder_write_words() argument 62 memset(hdw->cmd_buffer,0,sizeof(hdw->cmd_buffer)); in pvr2_encoder_write_words() 64 hdw->cmd_buffer[bAddr++] = FX2CMD_MEM_WRITE_DWORD; in pvr2_encoder_write_words() 67 hdw->cmd_buffer[bAddr+6] = (addr & 0xffu); in pvr2_encoder_write_words() 68 hdw->cmd_buffer[bAddr+5] = ((addr>>8) & 0xffu); in pvr2_encoder_write_words() 69 hdw->cmd_buffer[bAddr+4] = ((addr>>16) & 0xffu); in pvr2_encoder_write_words() 70 PVR2_DECOMPOSE_LE(hdw->cmd_buffer, bAddr,data[idx]); in pvr2_encoder_write_words() 73 ret = pvr2_send_request(hdw, in pvr2_encoder_write_words() 74 hdw->cmd_buffer,1+(chunkCnt*7), in pvr2_encoder_write_words() 86 static int pvr2_encoder_read_words(struct pvr2_hdw *hdw, in pvr2_encoder_read_words() argument [all …]
|
D | pvrusb2-i2c-core.c | 53 static int pvr2_i2c_write(struct pvr2_hdw *hdw, /* Context */ in pvr2_i2c_write() argument 63 if (length > (sizeof(hdw->cmd_buffer) - 3)) { in pvr2_i2c_write() 68 length,(unsigned int)(sizeof(hdw->cmd_buffer) - 3)); in pvr2_i2c_write() 72 LOCK_TAKE(hdw->ctl_lock); in pvr2_i2c_write() 75 memset(hdw->cmd_buffer, 0, sizeof(hdw->cmd_buffer)); in pvr2_i2c_write() 78 hdw->cmd_buffer[0] = FX2CMD_I2C_WRITE; /* write prefix */ in pvr2_i2c_write() 79 hdw->cmd_buffer[1] = i2c_addr; /* i2c addr of chip */ in pvr2_i2c_write() 80 hdw->cmd_buffer[2] = length; /* length of what follows */ in pvr2_i2c_write() 81 if (length) memcpy(hdw->cmd_buffer + 3, data, length); in pvr2_i2c_write() 84 ret = pvr2_send_request(hdw, in pvr2_i2c_write() [all …]
|
D | pvrusb2-v4l2.c | 144 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querycap() local 147 strlcpy(cap->bus_info, pvr2_hdw_get_bus_info(hdw), in pvr2_querycap() 149 strlcpy(cap->card, pvr2_hdw_get_desc(hdw), sizeof(cap->card)); in pvr2_querycap() 168 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_std() local 173 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDCUR), &val); in pvr2_g_std() 181 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_s_std() local 184 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDCUR), std); in pvr2_s_std() 190 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querystd() local 195 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDDETECT), &val); in pvr2_querystd() 203 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_enum_input() local [all …]
|
D | pvrusb2-debugifc.c | 130 int pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt) in pvr2_debugifc_print_info() argument 135 pvr2_hdw_get_desc(hdw)); in pvr2_debugifc_print_info() 139 ccnt = pvr2_hdw_state_report(hdw,buf,acnt); in pvr2_debugifc_print_info() 146 int pvr2_debugifc_print_status(struct pvr2_hdw *hdw, in pvr2_debugifc_print_status() argument 156 ret = pvr2_hdw_is_hsm(hdw); in pvr2_debugifc_print_status() 162 pvr2_hdw_gpio_get_dir(hdw,&gpio_dir); in pvr2_debugifc_print_status() 163 pvr2_hdw_gpio_get_out(hdw,&gpio_out); in pvr2_debugifc_print_status() 164 pvr2_hdw_gpio_get_in(hdw,&gpio_in); in pvr2_debugifc_print_status() 170 pvr2_hdw_get_streaming(hdw) ? "on" : "off"); in pvr2_debugifc_print_status() 174 sp = pvr2_hdw_get_video_stream(hdw); in pvr2_debugifc_print_status() [all …]
|
D | pvrusb2-cs53l32a.c | 61 void pvr2_cs53l32a_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_cs53l32a_subdev_update() argument 63 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_cs53l32a_subdev_update() 65 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_cs53l32a_subdev_update() 68 hdw->input_val); in pvr2_cs53l32a_subdev_update() 72 (hdw->input_val < 0) || in pvr2_cs53l32a_subdev_update() 73 (hdw->input_val >= sp->cnt)) { in pvr2_cs53l32a_subdev_update() 78 sid, hdw->input_val); in pvr2_cs53l32a_subdev_update() 81 input = sp->def[hdw->input_val]; in pvr2_cs53l32a_subdev_update()
|
D | pvrusb2-video-v4l.c | 78 void pvr2_saa7115_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_saa7115_subdev_update() argument 80 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_saa7115_subdev_update() 82 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_saa7115_subdev_update() 86 hdw->input_val); in pvr2_saa7115_subdev_update() 91 (hdw->input_val < 0) || in pvr2_saa7115_subdev_update() 92 (hdw->input_val >= sp->cnt)) { in pvr2_saa7115_subdev_update() 97 sid, hdw->input_val); in pvr2_saa7115_subdev_update() 100 input = sp->def[hdw->input_val]; in pvr2_saa7115_subdev_update()
|
D | pvrusb2-context.c | 83 pvr2_hdw_destroy(mp->hdw); in pvr2_context_destroy() 122 if (pvr2_hdw_initialize(mp->hdw, in pvr2_context_check() 126 pvr2_hdw_get_video_stream(mp->hdw); in pvr2_context_check() 235 mp->hdw = pvr2_hdw_create(intf,devid); in pvr2_context_create() 236 if (!mp->hdw) { in pvr2_context_create() 251 struct pvr2_hdw *hdw = mp->hdw; in pvr2_context_reset_input_limits() local 252 mmsk = pvr2_hdw_get_input_available(hdw); in pvr2_context_reset_input_limits() 258 pvr2_hdw_set_input_allowed(hdw,mmsk,tmsk); in pvr2_context_reset_input_limits() 259 pvr2_hdw_commit_ctl(hdw); in pvr2_context_reset_input_limits() 282 pvr2_hdw_disconnect(mp->hdw); in pvr2_context_disconnect() [all …]
|
D | pvrusb2-eeprom.c | 45 static u8 *pvr2_eeprom_fetch(struct pvr2_hdw *hdw) in pvr2_eeprom_fetch() argument 65 hdw->eeprom_addr); in pvr2_eeprom_fetch() 66 addr = hdw->eeprom_addr; in pvr2_eeprom_fetch() 105 if ((ret = i2c_transfer(&hdw->i2c_adap, in pvr2_eeprom_fetch() 118 int pvr2_eeprom_analyze(struct pvr2_hdw *hdw) in pvr2_eeprom_analyze() argument 125 eeprom = pvr2_eeprom_fetch(hdw); in pvr2_eeprom_analyze() 141 hdw->tuner_type = tvdata.tuner_type; in pvr2_eeprom_analyze() 142 hdw->tuner_updated = !0; in pvr2_eeprom_analyze() 143 hdw->serial_number = tvdata.serial_number; in pvr2_eeprom_analyze() 144 hdw->std_mask_eeprom = tvdata.tuner_formats; in pvr2_eeprom_analyze()
|
D | pvrusb2-audio.c | 60 void pvr2_msp3400_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_msp3400_subdev_update() argument 62 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_msp3400_subdev_update() 64 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_msp3400_subdev_update() 72 (hdw->input_val >= 0) && in pvr2_msp3400_subdev_update() 73 (hdw->input_val < sp->cnt)) { in pvr2_msp3400_subdev_update() 74 input = sp->def[hdw->input_val]; in pvr2_msp3400_subdev_update() 80 sid, hdw->input_val); in pvr2_msp3400_subdev_update()
|
D | pvrusb2-cx2584x-v4l.c | 125 void pvr2_cx25840_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_cx25840_subdev_update() argument 128 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_cx25840_subdev_update() 132 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_cx25840_subdev_update() 137 (hdw->input_val < 0) || in pvr2_cx25840_subdev_update() 138 (hdw->input_val >= sp->cnt)) { in pvr2_cx25840_subdev_update() 143 sid, hdw->input_val); in pvr2_cx25840_subdev_update() 146 vid_input = sp->def[hdw->input_val].vid; in pvr2_cx25840_subdev_update() 147 aud_input = sp->def[hdw->input_val].aud; in pvr2_cx25840_subdev_update()
|
D | pvrusb2-hdw.h | 279 int pvr2_hdw_gpio_get_dir(struct pvr2_hdw *hdw,u32 *); 280 int pvr2_hdw_gpio_get_out(struct pvr2_hdw *hdw,u32 *); 281 int pvr2_hdw_gpio_get_in(struct pvr2_hdw *hdw,u32 *); 282 int pvr2_hdw_gpio_chg_dir(struct pvr2_hdw *hdw,u32 msk,u32 val); 283 int pvr2_hdw_gpio_chg_out(struct pvr2_hdw *hdw,u32 msk,u32 val); 320 void pvr2_hdw_get_debug_info_unlocked(const struct pvr2_hdw *hdw, 327 void pvr2_hdw_get_debug_info_locked(struct pvr2_hdw *hdw, 332 unsigned int pvr2_hdw_state_report(struct pvr2_hdw *hdw, 336 void pvr2_hdw_trigger_module_log(struct pvr2_hdw *hdw); 341 int pvr2_upload_firmware2(struct pvr2_hdw *hdw);
|
D | pvrusb2-ctrl.c | 64 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_set_mask_value() 79 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_set_mask_value() 89 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_get_value() 91 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_get_value() 109 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_get_max() 115 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_get_max() 125 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_get_min() 131 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_get_min() 141 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_get_def() 147 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_get_def() [all …]
|
D | pvrusb2-wm8775.c | 38 void pvr2_wm8775_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_wm8775_subdev_update() argument 40 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_wm8775_subdev_update() 43 switch (hdw->input_val) { in pvr2_wm8775_subdev_update() 54 hdw->input_val, input); in pvr2_wm8775_subdev_update()
|
D | pvrusb2-devattr.c | 197 &adap->channel.hdw->i2c_adap); in pvr2_lgdt3303_attach() 207 &adap->channel.hdw->i2c_adap, 0x61, in pvr2_lgh06xf_attach() 257 &adap->channel.hdw->i2c_adap); in pvr2_lgdt3302_attach() 267 &adap->channel.hdw->i2c_adap, 0x61, in pvr2_fcv1236d_attach() 343 &adap->channel.hdw->i2c_adap); in pvr2_tda10048_attach() 353 &adap->channel.hdw->i2c_adap, 0x42, in pvr2_73xxx_tda18271_8295_attach() 356 &adap->channel.hdw->i2c_adap, in pvr2_73xxx_tda18271_8295_attach() 441 &adap->channel.hdw->i2c_adap); in pvr2_s5h1409_attach() 451 &adap->channel.hdw->i2c_adap); in pvr2_s5h1411_attach() 461 &adap->channel.hdw->i2c_adap, 0x42, in pvr2_tda18271_8295_attach() [all …]
|
D | pvrusb2-sysfs.c | 269 pvr2_hdw_commit_ctl(cip->chptr->channel.hdw); in store_val_any() 308 cptr = pvr2_hdw_get_ctrl_by_index(sfp->channel.hdw,ctl_id); in pvr2_sysfs_add_control() 484 cnt = pvr2_hdw_get_ctrl_count(sfp->channel.hdw); in pvr2_sysfs_add_controls() 570 pvr2_hdw_v4l_get_minor_number(sfp->channel.hdw, in v4l_minor_number_show() 582 pvr2_hdw_get_bus_info(sfp->channel.hdw)); in bus_info_show() 593 pvr2_hdw_get_type(sfp->channel.hdw)); in hdw_name_show() 604 pvr2_hdw_get_desc(sfp->channel.hdw)); in hdw_desc_show() 616 pvr2_hdw_v4l_get_minor_number(sfp->channel.hdw, in v4l_radio_minor_number_show() 628 pvr2_hdw_get_unit_number(sfp->channel.hdw)); in unit_number_show() 639 usb_dev = pvr2_hdw_get_dev(sfp->channel.hdw); in class_dev_create() [all …]
|
D | pvrusb2-dvb.c | 125 pvr2_hdw_set_streaming(adap->channel.hdw, 0); in pvr2_dvb_stream_end() 177 ret = pvr2_hdw_set_streaming(adap->channel.hdw, 1); in pvr2_dvb_stream_do_start() 262 &adap->channel.hdw->usb_dev->dev, in pvr2_dvb_adapter_init() 324 struct pvr2_hdw *hdw = adap->channel.hdw; in pvr2_dvb_frontend_init() local 325 const struct pvr2_dvb_props *dvb_props = hdw->hdw_desc->dvb_props; in pvr2_dvb_frontend_init() 412 if (!pvr->hdw->hdw_desc->dvb_props) { in pvr2_dvb_create()
|
D | pvrusb2-context.h | 46 struct pvr2_hdw *hdw; member 63 struct pvr2_hdw *hdw; member
|
D | Makefile | 9 pvrusb2-main.o pvrusb2-hdw.o pvrusb2-v4l2.o \
|
D | pvrusb2-hdw-internal.h | 138 struct pvr2_hdw *hdw; member
|
/drivers/scsi/lpfc/ |
D | lpfc_attr.c | 79 lpfc_jedec_to_ascii(int incr, char hdw[]) in lpfc_jedec_to_ascii() argument 85 hdw[7 - i] = 0x30 + j; in lpfc_jedec_to_ascii() 87 hdw[7 - i] = 0x61 + j - 10; in lpfc_jedec_to_ascii() 90 hdw[8] = 0; in lpfc_jedec_to_ascii() 384 char hdw[9]; in lpfc_hdw_show() local 390 lpfc_jedec_to_ascii(vp->rev.biuRev, hdw); in lpfc_hdw_show() 391 return snprintf(buf, PAGE_SIZE, "%s\n", hdw); in lpfc_hdw_show() 2062 static DEVICE_ATTR(hdw, S_IRUGO, lpfc_hdw_show, NULL);
|