/linux-4.19.296/drivers/media/radio/ |
D | tea575x.c | 93 static void snd_tea575x_write(struct snd_tea575x *tea, unsigned int val) in snd_tea575x_write() argument 98 if (tea->ops->write_val) in snd_tea575x_write() 99 return tea->ops->write_val(tea, val); in snd_tea575x_write() 101 tea->ops->set_direction(tea, 1); in snd_tea575x_write() 107 tea->ops->set_pins(tea, data | TEA575X_WREN); in snd_tea575x_write() 109 tea->ops->set_pins(tea, data | TEA575X_WREN | TEA575X_CLK); in snd_tea575x_write() 111 tea->ops->set_pins(tea, data | TEA575X_WREN); in snd_tea575x_write() 115 if (!tea->mute) in snd_tea575x_write() 116 tea->ops->set_pins(tea, 0); in snd_tea575x_write() 119 static u32 snd_tea575x_read(struct snd_tea575x *tea) in snd_tea575x_read() argument [all …]
|
D | radio-tea5777.c | 172 static u32 tea5777_freq_to_v4l2_freq(struct radio_tea5777 *tea, u32 freq) in tea5777_freq_to_v4l2_freq() argument 174 switch (tea->band) { in tea5777_freq_to_v4l2_freq() 183 int radio_tea5777_set_freq(struct radio_tea5777 *tea) in radio_tea5777_set_freq() argument 188 freq = clamp(tea->freq, bands[tea->band].rangelow, in radio_tea5777_set_freq() 189 bands[tea->band].rangehigh); in radio_tea5777_set_freq() 192 switch (tea->band) { in radio_tea5777_set_freq() 194 tea->write_reg &= ~TEA5777_W_AM_FM_MASK; in radio_tea5777_set_freq() 196 tea->write_reg &= ~TEA5777_W_FM_PLL_MASK; in radio_tea5777_set_freq() 197 tea->write_reg |= (u64)freq << TEA5777_W_FM_PLL_SHIFT; in radio_tea5777_set_freq() 198 tea->write_reg &= ~TEA5777_W_FM_FREF_MASK; in radio_tea5777_set_freq() [all …]
|
D | radio-maxiradio.c | 71 struct snd_tea575x tea; member 83 static void maxiradio_tea575x_set_pins(struct snd_tea575x *tea, u8 pins) in maxiradio_tea575x_set_pins() argument 85 struct maxiradio *dev = tea->private_data; in maxiradio_tea575x_set_pins() 98 static u8 maxiradio_tea575x_get_pins(struct snd_tea575x *tea) in maxiradio_tea575x_get_pins() argument 100 struct maxiradio *dev = tea->private_data; in maxiradio_tea575x_get_pins() 107 static void maxiradio_tea575x_set_direction(struct snd_tea575x *tea, bool output) in maxiradio_tea575x_set_direction() argument 138 dev->tea.private_data = dev; in maxiradio_probe() 139 dev->tea.ops = &maxiradio_tea_ops; in maxiradio_probe() 142 dev->tea.cannot_read_data = true; in maxiradio_probe() 143 dev->tea.v4l2_dev = v4l2_dev; in maxiradio_probe() [all …]
|
D | radio-sf16fmr2.c | 33 struct snd_tea575x tea; member 59 static void fmr2_tea575x_set_pins(struct snd_tea575x *tea, u8 pins) in fmr2_tea575x_set_pins() argument 61 struct fmr2 *fmr2 = tea->private_data; in fmr2_tea575x_set_pins() 72 static u8 fmr2_tea575x_get_pins(struct snd_tea575x *tea) in fmr2_tea575x_get_pins() argument 74 struct fmr2 *fmr2 = tea->private_data; in fmr2_tea575x_get_pins() 81 static void fmr2_tea575x_set_direction(struct snd_tea575x *tea, bool output) in fmr2_tea575x_set_direction() argument 117 if (!fmr2->tea.mute) in tc9154a_set_pins() 150 struct snd_tea575x *tea = container_of(ctrl->handler, struct snd_tea575x, ctrl_handler); in fmr2_s_ctrl() local 151 struct fmr2 *fmr2 = tea->private_data; in fmr2_s_ctrl() 183 static int fmr2_tea_ext_init(struct snd_tea575x *tea) in fmr2_tea_ext_init() argument [all …]
|
D | radio-shark2.c | 60 struct radio_tea5777 tea; member 75 static int shark_write_reg(struct radio_tea5777 *tea, u64 reg) in shark_write_reg() argument 77 struct shark_device *shark = tea->private_data; in shark_write_reg() 85 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-write: %*ph\n", in shark_write_reg() 93 v4l2_err(tea->v4l2_dev, "write error: %d\n", res); in shark_write_reg() 100 static int shark_read_reg(struct radio_tea5777 *tea, u32 *reg_ret) in shark_read_reg() argument 102 struct shark_device *shark = tea->private_data; in shark_read_reg() 113 v4l2_err(tea->v4l2_dev, "request-read error: %d\n", res); in shark_read_reg() 122 v4l2_err(tea->v4l2_dev, "read error: %d\n", res); in shark_read_reg() 129 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-read: %*ph\n", in shark_read_reg() [all …]
|
D | radio-shark.c | 64 struct snd_tea575x tea; member 80 static void shark_write_val(struct snd_tea575x *tea, u32 val) in shark_write_val() argument 82 struct shark_device *shark = tea->private_data; in shark_write_val() 104 static u32 shark_read_val(struct snd_tea575x *tea) in shark_read_val() argument 106 struct shark_device *shark = tea->private_data; in shark_read_val() 142 shark->tea.stereo = true; in shark_read_val() 144 shark->tea.stereo = false; in shark_read_val() 295 mutex_lock(&shark->tea.mutex); in usb_shark_disconnect() 297 snd_tea575x_exit(&shark->tea); in usb_shark_disconnect() 298 mutex_unlock(&shark->tea.mutex); in usb_shark_disconnect() [all …]
|
D | radio-tea5777.h | 46 int (*write_reg)(struct radio_tea5777 *tea, u64 val); 57 int (*read_reg)(struct radio_tea5777 *tea, u32 *val); 82 int radio_tea5777_init(struct radio_tea5777 *tea, struct module *owner); 83 void radio_tea5777_exit(struct radio_tea5777 *tea); 84 int radio_tea5777_set_freq(struct radio_tea5777 *tea);
|
/linux-4.19.296/include/media/drv-intf/ |
D | tea575x.h | 38 void (*write_val)(struct snd_tea575x *tea, u32 val); 39 u32 (*read_val)(struct snd_tea575x *tea); 41 void (*set_pins)(struct snd_tea575x *tea, u8 pins); 42 u8 (*get_pins)(struct snd_tea575x *tea); 43 void (*set_direction)(struct snd_tea575x *tea, bool output); 67 int (*ext_init)(struct snd_tea575x *tea); 70 int snd_tea575x_enum_freq_bands(struct snd_tea575x *tea, 72 int snd_tea575x_g_tuner(struct snd_tea575x *tea, struct v4l2_tuner *v); 73 int snd_tea575x_s_hw_freq_seek(struct file *file, struct snd_tea575x *tea, 75 int snd_tea575x_hw_init(struct snd_tea575x *tea); [all …]
|
/linux-4.19.296/crypto/ |
D | Makefile | 114 obj-$(CONFIG_CRYPTO_TEA) += tea.o
|