Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/media/usb/pvrusb2/
Dpvrusb2-hdw.c322 static int pvr2_hdw_set_input(struct pvr2_hdw *hdw,int v);
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);
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() local
355 if ((hdw->freqProgSlot > 0) && (hdw->freqProgSlot <= FREQTABLE_SIZE)) { in ctrl_channelfreq_get()
356 *vp = hdw->freqTable[hdw->freqProgSlot-1]; in ctrl_channelfreq_get()
[all …]
Dpvrusb2-encoder.c36 static int pvr2_encoder_write_words(struct pvr2_hdw *hdw, in pvr2_encoder_write_words() argument
58 memset(hdw->cmd_buffer,0,sizeof(hdw->cmd_buffer)); in pvr2_encoder_write_words()
60 hdw->cmd_buffer[bAddr++] = FX2CMD_MEM_WRITE_DWORD; in pvr2_encoder_write_words()
63 hdw->cmd_buffer[bAddr+6] = (addr & 0xffu); in pvr2_encoder_write_words()
64 hdw->cmd_buffer[bAddr+5] = ((addr>>8) & 0xffu); in pvr2_encoder_write_words()
65 hdw->cmd_buffer[bAddr+4] = ((addr>>16) & 0xffu); in pvr2_encoder_write_words()
66 PVR2_DECOMPOSE_LE(hdw->cmd_buffer, bAddr,data[idx]); in pvr2_encoder_write_words()
69 ret = pvr2_send_request(hdw, in pvr2_encoder_write_words()
70 hdw->cmd_buffer,1+(chunkCnt*7), in pvr2_encoder_write_words()
82 static int pvr2_encoder_read_words(struct pvr2_hdw *hdw, in pvr2_encoder_read_words() argument
[all …]
Dpvrusb2-i2c-core.c49 static int pvr2_i2c_write(struct pvr2_hdw *hdw, /* Context */ in pvr2_i2c_write() argument
59 if (length > (sizeof(hdw->cmd_buffer) - 3)) { in pvr2_i2c_write()
63 length,(unsigned int)(sizeof(hdw->cmd_buffer) - 3)); in pvr2_i2c_write()
67 LOCK_TAKE(hdw->ctl_lock); in pvr2_i2c_write()
70 memset(hdw->cmd_buffer, 0, sizeof(hdw->cmd_buffer)); in pvr2_i2c_write()
73 hdw->cmd_buffer[0] = FX2CMD_I2C_WRITE; /* write prefix */ in pvr2_i2c_write()
74 hdw->cmd_buffer[1] = i2c_addr; /* i2c addr of chip */ in pvr2_i2c_write()
75 hdw->cmd_buffer[2] = length; /* length of what follows */ in pvr2_i2c_write()
76 if (length) memcpy(hdw->cmd_buffer + 3, data, length); in pvr2_i2c_write()
79 ret = pvr2_send_request(hdw, in pvr2_i2c_write()
[all …]
Dpvrusb2-v4l2.c122 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querycap() local
125 strlcpy(cap->bus_info, pvr2_hdw_get_bus_info(hdw), in pvr2_querycap()
127 strlcpy(cap->card, pvr2_hdw_get_desc(hdw), sizeof(cap->card)); in pvr2_querycap()
148 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_g_std() local
153 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDCUR), &val); in pvr2_g_std()
161 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_s_std() local
165 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDCUR), std); in pvr2_s_std()
166 pvr2_hdw_commit_ctl(hdw); in pvr2_s_std()
173 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; in pvr2_querystd() local
178 pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDDETECT), &val); in pvr2_querystd()
[all …]
Dpvrusb2-debugifc.c126 int pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt) in pvr2_debugifc_print_info() argument
131 pvr2_hdw_get_desc(hdw)); in pvr2_debugifc_print_info()
135 ccnt = pvr2_hdw_state_report(hdw,buf,acnt); in pvr2_debugifc_print_info()
142 int pvr2_debugifc_print_status(struct pvr2_hdw *hdw, in pvr2_debugifc_print_status() argument
152 ret = pvr2_hdw_is_hsm(hdw); in pvr2_debugifc_print_status()
158 pvr2_hdw_gpio_get_dir(hdw,&gpio_dir); in pvr2_debugifc_print_status()
159 pvr2_hdw_gpio_get_out(hdw,&gpio_out); in pvr2_debugifc_print_status()
160 pvr2_hdw_gpio_get_in(hdw,&gpio_in); in pvr2_debugifc_print_status()
166 pvr2_hdw_get_streaming(hdw) ? "on" : "off"); in pvr2_debugifc_print_status()
170 sp = pvr2_hdw_get_video_stream(hdw); in pvr2_debugifc_print_status()
[all …]
Dpvrusb2-cs53l32a.c57 void pvr2_cs53l32a_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_cs53l32a_subdev_update() argument
59 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_cs53l32a_subdev_update()
61 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_cs53l32a_subdev_update()
64 hdw->input_val); in pvr2_cs53l32a_subdev_update()
68 (hdw->input_val < 0) || in pvr2_cs53l32a_subdev_update()
69 (hdw->input_val >= sp->cnt)) { in pvr2_cs53l32a_subdev_update()
72 sid, hdw->input_val); in pvr2_cs53l32a_subdev_update()
75 input = sp->def[hdw->input_val]; in pvr2_cs53l32a_subdev_update()
Dpvrusb2-video-v4l.c74 void pvr2_saa7115_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_saa7115_subdev_update() argument
76 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_saa7115_subdev_update()
78 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_saa7115_subdev_update()
82 hdw->input_val); in pvr2_saa7115_subdev_update()
87 (hdw->input_val < 0) || in pvr2_saa7115_subdev_update()
88 (hdw->input_val >= sp->cnt)) { in pvr2_saa7115_subdev_update()
91 sid, hdw->input_val); in pvr2_saa7115_subdev_update()
94 input = sp->def[hdw->input_val]; in pvr2_saa7115_subdev_update()
Dpvrusb2-audio.c56 void pvr2_msp3400_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_msp3400_subdev_update() argument
58 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_msp3400_subdev_update()
60 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_msp3400_subdev_update()
68 (hdw->input_val >= 0) && in pvr2_msp3400_subdev_update()
69 (hdw->input_val < sp->cnt)) { in pvr2_msp3400_subdev_update()
70 input = sp->def[hdw->input_val]; in pvr2_msp3400_subdev_update()
74 sid, hdw->input_val); in pvr2_msp3400_subdev_update()
Dpvrusb2-eeprom.c41 static u8 *pvr2_eeprom_fetch(struct pvr2_hdw *hdw) in pvr2_eeprom_fetch() argument
60 hdw->eeprom_addr); in pvr2_eeprom_fetch()
61 addr = hdw->eeprom_addr; in pvr2_eeprom_fetch()
100 if ((ret = i2c_transfer(&hdw->i2c_adap, in pvr2_eeprom_fetch()
113 int pvr2_eeprom_analyze(struct pvr2_hdw *hdw) in pvr2_eeprom_analyze() argument
120 eeprom = pvr2_eeprom_fetch(hdw); in pvr2_eeprom_analyze()
136 hdw->tuner_type = tvdata.tuner_type; in pvr2_eeprom_analyze()
137 hdw->tuner_updated = !0; in pvr2_eeprom_analyze()
138 hdw->serial_number = tvdata.serial_number; in pvr2_eeprom_analyze()
139 hdw->std_mask_eeprom = tvdata.tuner_formats; in pvr2_eeprom_analyze()
Dpvrusb2-context.c79 pvr2_hdw_destroy(mp->hdw); in pvr2_context_destroy()
118 if (pvr2_hdw_initialize(mp->hdw, in pvr2_context_check()
122 pvr2_hdw_get_video_stream(mp->hdw); in pvr2_context_check()
231 mp->hdw = pvr2_hdw_create(intf,devid); in pvr2_context_create()
232 if (!mp->hdw) { in pvr2_context_create()
247 struct pvr2_hdw *hdw = mp->hdw; in pvr2_context_reset_input_limits() local
248 mmsk = pvr2_hdw_get_input_available(hdw); in pvr2_context_reset_input_limits()
254 pvr2_hdw_set_input_allowed(hdw,mmsk,tmsk); in pvr2_context_reset_input_limits()
255 pvr2_hdw_commit_ctl(hdw); in pvr2_context_reset_input_limits()
278 pvr2_hdw_disconnect(mp->hdw); in pvr2_context_disconnect()
[all …]
Dpvrusb2-cx2584x-v4l.c120 void pvr2_cx25840_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_cx25840_subdev_update() argument
123 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_cx25840_subdev_update()
127 unsigned int sid = hdw->hdw_desc->signal_routing_scheme; in pvr2_cx25840_subdev_update()
132 (hdw->input_val < 0) || in pvr2_cx25840_subdev_update()
133 (hdw->input_val >= sp->cnt)) { in pvr2_cx25840_subdev_update()
136 sid, hdw->input_val); in pvr2_cx25840_subdev_update()
139 vid_input = sp->def[hdw->input_val].vid; in pvr2_cx25840_subdev_update()
140 aud_input = sp->def[hdw->input_val].aud; in pvr2_cx25840_subdev_update()
Dpvrusb2-hdw.h274 int pvr2_hdw_gpio_get_dir(struct pvr2_hdw *hdw,u32 *);
275 int pvr2_hdw_gpio_get_out(struct pvr2_hdw *hdw,u32 *);
276 int pvr2_hdw_gpio_get_in(struct pvr2_hdw *hdw,u32 *);
277 int pvr2_hdw_gpio_chg_dir(struct pvr2_hdw *hdw,u32 msk,u32 val);
278 int pvr2_hdw_gpio_chg_out(struct pvr2_hdw *hdw,u32 msk,u32 val);
315 void pvr2_hdw_get_debug_info_unlocked(const struct pvr2_hdw *hdw,
322 void pvr2_hdw_get_debug_info_locked(struct pvr2_hdw *hdw,
327 unsigned int pvr2_hdw_state_report(struct pvr2_hdw *hdw,
331 void pvr2_hdw_trigger_module_log(struct pvr2_hdw *hdw);
336 int pvr2_upload_firmware2(struct pvr2_hdw *hdw);
Dpvrusb2-wm8775.c34 void pvr2_wm8775_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) in pvr2_wm8775_subdev_update() argument
36 if (hdw->input_dirty || hdw->force_dirty) { in pvr2_wm8775_subdev_update()
39 switch (hdw->input_val) { in pvr2_wm8775_subdev_update()
49 hdw->input_val, input); in pvr2_wm8775_subdev_update()
Dpvrusb2-ctrl.c60 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_set_mask_value()
75 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_set_mask_value()
85 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_get_value()
87 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_get_value()
105 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_get_max()
111 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_get_max()
121 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_get_min()
127 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_get_min()
137 LOCK_TAKE(cptr->hdw->big_lock); do { in pvr2_ctrl_get_def()
143 } while(0); LOCK_GIVE(cptr->hdw->big_lock); in pvr2_ctrl_get_def()
[all …]
Dpvrusb2-devattr.c193 &adap->channel.hdw->i2c_adap); in pvr2_lgdt3303_attach()
203 &adap->channel.hdw->i2c_adap, 0x61, in pvr2_lgh06xf_attach()
253 &adap->channel.hdw->i2c_adap); in pvr2_lgdt3302_attach()
263 &adap->channel.hdw->i2c_adap, 0x61, in pvr2_fcv1236d_attach()
339 &adap->channel.hdw->i2c_adap); in pvr2_tda10048_attach()
349 &adap->channel.hdw->i2c_adap, 0x42, in pvr2_73xxx_tda18271_8295_attach()
352 &adap->channel.hdw->i2c_adap, in pvr2_73xxx_tda18271_8295_attach()
437 &adap->channel.hdw->i2c_adap); in pvr2_s5h1409_attach()
447 &adap->channel.hdw->i2c_adap); in pvr2_s5h1411_attach()
457 &adap->channel.hdw->i2c_adap, 0x42, in pvr2_tda18271_8295_attach()
[all …]
Dpvrusb2-dvb.c121 pvr2_hdw_set_streaming(adap->channel.hdw, 0); in pvr2_dvb_stream_end()
173 ret = pvr2_hdw_set_streaming(adap->channel.hdw, 1); in pvr2_dvb_stream_do_start()
258 &adap->channel.hdw->usb_dev->dev, in pvr2_dvb_adapter_init()
320 struct pvr2_hdw *hdw = adap->channel.hdw; in pvr2_dvb_frontend_init() local
321 const struct pvr2_dvb_props *dvb_props = hdw->hdw_desc->dvb_props; in pvr2_dvb_frontend_init()
408 if (!pvr->hdw->hdw_desc->dvb_props) { in pvr2_dvb_create()
Dpvrusb2-sysfs.c264 pvr2_hdw_commit_ctl(cip->chptr->channel.hdw); in store_val_any()
303 cptr = pvr2_hdw_get_ctrl_by_index(sfp->channel.hdw,ctl_id); in pvr2_sysfs_add_control()
479 cnt = pvr2_hdw_get_ctrl_count(sfp->channel.hdw); in pvr2_sysfs_add_controls()
565 pvr2_hdw_v4l_get_minor_number(sfp->channel.hdw, in v4l_minor_number_show()
577 pvr2_hdw_get_bus_info(sfp->channel.hdw)); in bus_info_show()
588 pvr2_hdw_get_type(sfp->channel.hdw)); in hdw_name_show()
599 pvr2_hdw_get_desc(sfp->channel.hdw)); in hdw_desc_show()
611 pvr2_hdw_v4l_get_minor_number(sfp->channel.hdw, in v4l_radio_minor_number_show()
623 pvr2_hdw_get_unit_number(sfp->channel.hdw)); in unit_number_show()
634 usb_dev = pvr2_hdw_get_dev(sfp->channel.hdw); in class_dev_create()
[all …]
Dpvrusb2-context.h42 struct pvr2_hdw *hdw; member
59 struct pvr2_hdw *hdw; member
DMakefile10 pvrusb2-main.o pvrusb2-hdw.o pvrusb2-v4l2.o \
Dpvrusb2-hdw-internal.h134 struct pvr2_hdw *hdw; member
/Linux-v4.19/drivers/crypto/inside-secure/
Dsafexcel.c210 u32 hdw, cd_size_rnd, val; in safexcel_hw_setup_cdesc_rings() local
213 hdw = readl(EIP197_HIA_AIC_G(priv) + EIP197_HIA_OPTIONS); in safexcel_hw_setup_cdesc_rings()
214 hdw &= GENMASK(27, 25); in safexcel_hw_setup_cdesc_rings()
215 hdw >>= 25; in safexcel_hw_setup_cdesc_rings()
217 cd_size_rnd = (priv->config.cd_size + (BIT(hdw) - 1)) >> hdw; in safexcel_hw_setup_cdesc_rings()
229 writel(((EIP197_FETCH_COUNT * (cd_size_rnd << hdw)) << 16) | in safexcel_hw_setup_cdesc_rings()
248 u32 hdw, rd_size_rnd, val; in safexcel_hw_setup_rdesc_rings() local
251 hdw = readl(EIP197_HIA_AIC_G(priv) + EIP197_HIA_OPTIONS); in safexcel_hw_setup_rdesc_rings()
252 hdw &= GENMASK(27, 25); in safexcel_hw_setup_rdesc_rings()
253 hdw >>= 25; in safexcel_hw_setup_rdesc_rings()
[all …]
/Linux-v4.19/Documentation/media/v4l-drivers/
Dpvrusb2.rst110 pvrusb2-hdw-internal.h - This header defines the core data structure
117 pvrusb2-hdw.h and NOT this header.
119 pvrusb2-hdw.h - This header defines the full internal API for
123 pvrusb2-hdw.c - This module implements all the various bits of logic
154 glue logic which is coordinated by pvrusb2-hdw, doled out by
/Linux-v4.19/drivers/scsi/lpfc/
Dlpfc_attr.c93 lpfc_jedec_to_ascii(int incr, char hdw[]) in lpfc_jedec_to_ascii() argument
99 hdw[7 - i] = 0x30 + j; in lpfc_jedec_to_ascii()
101 hdw[7 - i] = 0x61 + j - 10; in lpfc_jedec_to_ascii()
104 hdw[8] = 0; in lpfc_jedec_to_ascii()
765 char hdw[9]; in lpfc_hdw_show() local
771 lpfc_jedec_to_ascii(vp->rev.biuRev, hdw); in lpfc_hdw_show()
772 return snprintf(buf, PAGE_SIZE, "%s\n", hdw); in lpfc_hdw_show()
2403 static DEVICE_ATTR(hdw, S_IRUGO, lpfc_hdw_show, NULL);