/linux-6.12.1/drivers/media/usb/pvrusb2/ |
D | pvrusb2-hdw.c | 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 = cptr->hdw; in ctrl_channelfreq_get() local 347 if ((hdw->freqProgSlot > 0) && (hdw->freqProgSlot <= FREQTABLE_SIZE)) { in ctrl_channelfreq_get() 348 *vp = hdw->freqTable[hdw->freqProgSlot-1]; in ctrl_channelfreq_get() [all …]
|
D | pvrusb2-encoder.c | 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() 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 …]
|
D | pvrusb2-i2c-core.c | 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->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 …]
|
D | pvrusb2-v4l2.c | 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 144 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDCUR), std); in pvr2_s_std() 145 pvr2_hdw_commit_ctl(hdw); in pvr2_s_std() 152 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querystd() local 157 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDDETECT), &val); in pvr2_querystd() [all …]
|
D | pvrusb2-debugifc.c | 111 int pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt) in pvr2_debugifc_print_info() argument 116 pvr2_hdw_get_desc(hdw)); in pvr2_debugifc_print_info() 120 ccnt = pvr2_hdw_state_report(hdw,buf,acnt); in pvr2_debugifc_print_info() 127 int pvr2_debugifc_print_status(struct pvr2_hdw *hdw, in pvr2_debugifc_print_status() argument 137 ret = pvr2_hdw_is_hsm(hdw); in pvr2_debugifc_print_status() 143 pvr2_hdw_gpio_get_dir(hdw,&gpio_dir); in pvr2_debugifc_print_status() 144 pvr2_hdw_gpio_get_out(hdw,&gpio_out); in pvr2_debugifc_print_status() 145 pvr2_hdw_gpio_get_in(hdw,&gpio_in); in pvr2_debugifc_print_status() 151 pvr2_hdw_get_streaming(hdw) ? "on" : "off"); in pvr2_debugifc_print_status() 155 sp = pvr2_hdw_get_video_stream(hdw); in pvr2_debugifc_print_status() [all …]
|
D | pvrusb2-cs53l32a.c | 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->input_val]; in pvr2_cs53l32a_subdev_update()
|
D | pvrusb2-video-v4l.c | 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->input_val]; in pvr2_saa7115_subdev_update()
|
D | pvrusb2-audio.c | 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()
|
D | pvrusb2-eeprom.c | 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->serial_number = tvdata.serial_number; in pvr2_eeprom_analyze() 128 hdw->std_mask_eeprom = tvdata.tuner_formats; in pvr2_eeprom_analyze()
|
D | pvrusb2-context.c | 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,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 …]
|
D | pvrusb2-cx2584x-v4l.c | 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->input_val].aud; in pvr2_cx25840_subdev_update()
|
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);
|
D | pvrusb2-wm8775.c | 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()
|
D | pvrusb2-ctrl.c | 50 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 …]
|
D | pvrusb2-devattr.c | 186 &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 …]
|
D | pvrusb2-sysfs.c | 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() 616 usb_dev = pvr2_hdw_get_dev(sfp->channel.hdw); in class_dev_create() [all …]
|
D | pvrusb2-dvb.c | 110 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()
|
D | pvrusb2-context.h | 33 struct pvr2_hdw *hdw; member 50 struct pvr2_hdw *hdw; member
|
D | Makefile | 10 pvrusb2-main.o pvrusb2-hdw.o pvrusb2-v4l2.o \
|
D | pvrusb2-hdw-internal.h | 124 struct pvr2_hdw *hdw; member
|
/linux-6.12.1/Documentation/driver-api/media/drivers/ |
D | pvrusb2.rst | 112 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-6.12.1/drivers/scsi/lpfc/ |
D | lpfc_attr.c | 102 lpfc_jedec_to_ascii(int incr, char hdw[]) in lpfc_jedec_to_ascii() argument 108 hdw[7 - i] = 0x30 + j; in lpfc_jedec_to_ascii() 110 hdw[7 - i] = 0x61 + j - 10; in lpfc_jedec_to_ascii() 113 hdw[8] = 0; in lpfc_jedec_to_ascii() 989 char hdw[9]; in lpfc_hdw_show() local 995 lpfc_jedec_to_ascii(vp->rev.biuRev, hdw); in lpfc_hdw_show() 996 return scnprintf(buf, PAGE_SIZE, "%s %08x %08x\n", hdw, in lpfc_hdw_show() 2987 static DEVICE_ATTR(hdw, S_IRUGO, lpfc_hdw_show, NULL);
|