Home
last modified time | relevance | path

Searched refs:st (Results 1 – 25 of 1175) sorted by relevance

12345678910>>...47

/Linux-v5.4/crypto/
Dsha3_generic.c47 static SHA3_INLINE void keccakf_round(u64 st[25]) in keccakf_round()
52 bc[0] = st[0] ^ st[5] ^ st[10] ^ st[15] ^ st[20]; in keccakf_round()
53 bc[1] = st[1] ^ st[6] ^ st[11] ^ st[16] ^ st[21]; in keccakf_round()
54 bc[2] = st[2] ^ st[7] ^ st[12] ^ st[17] ^ st[22]; in keccakf_round()
55 bc[3] = st[3] ^ st[8] ^ st[13] ^ st[18] ^ st[23]; in keccakf_round()
56 bc[4] = st[4] ^ st[9] ^ st[14] ^ st[19] ^ st[24]; in keccakf_round()
64 st[0] ^= t[0]; in keccakf_round()
67 tt = st[1]; in keccakf_round()
68 st[ 1] = rol64(st[ 6] ^ t[1], 44); in keccakf_round()
69 st[ 6] = rol64(st[ 9] ^ t[4], 20); in keccakf_round()
[all …]
/Linux-v5.4/drivers/macintosh/
Dwindfarm_pid.c25 void wf_pid_init(struct wf_pid_state *st, struct wf_pid_param *param) in wf_pid_init() argument
27 memset(st, 0, sizeof(struct wf_pid_state)); in wf_pid_init()
28 st->param = *param; in wf_pid_init()
29 st->first = 1; in wf_pid_init()
33 s32 wf_pid_run(struct wf_pid_state *st, s32 new_sample) in wf_pid_run() argument
37 int i, hlen = st->param.history_len; in wf_pid_run()
40 error = new_sample - st->param.itarget; in wf_pid_run()
43 if (st->first) { in wf_pid_run()
45 st->samples[i] = new_sample; in wf_pid_run()
46 st->errors[i] = error; in wf_pid_run()
[all …]
/Linux-v5.4/drivers/iio/dac/
Dad5592r-base.c27 struct ad5592r_state *st = gpiochip_get_data(chip); in ad5592r_gpio_get() local
31 mutex_lock(&st->gpio_lock); in ad5592r_gpio_get()
33 if (st->gpio_out & BIT(offset)) in ad5592r_gpio_get()
34 val = st->gpio_val; in ad5592r_gpio_get()
36 ret = st->ops->gpio_read(st, &val); in ad5592r_gpio_get()
38 mutex_unlock(&st->gpio_lock); in ad5592r_gpio_get()
48 struct ad5592r_state *st = gpiochip_get_data(chip); in ad5592r_gpio_set() local
50 mutex_lock(&st->gpio_lock); in ad5592r_gpio_set()
53 st->gpio_val |= BIT(offset); in ad5592r_gpio_set()
55 st->gpio_val &= ~BIT(offset); in ad5592r_gpio_set()
[all …]
Dad5758.c187 static int ad5758_spi_reg_read(struct ad5758_state *st, unsigned int addr) in ad5758_spi_reg_read() argument
191 .tx_buf = &st->d32[0], in ad5758_spi_reg_read()
195 .tx_buf = &st->d32[1], in ad5758_spi_reg_read()
196 .rx_buf = &st->d32[2], in ad5758_spi_reg_read()
202 st->d32[0] = cpu_to_be32( in ad5758_spi_reg_read()
205 st->d32[1] = cpu_to_be32(AD5758_WR_FLAG_MSK(AD5758_NOP) << 24); in ad5758_spi_reg_read()
207 ret = spi_sync_transfer(st->spi, t, ARRAY_SIZE(t)); in ad5758_spi_reg_read()
211 return (be32_to_cpu(st->d32[2]) >> 8) & 0xFFFF; in ad5758_spi_reg_read()
214 static int ad5758_spi_reg_write(struct ad5758_state *st, in ad5758_spi_reg_write() argument
218 st->d32[0] = cpu_to_be32((AD5758_WR_FLAG_MSK(addr) << 24) | in ad5758_spi_reg_write()
[all …]
/Linux-v5.4/drivers/iio/adc/
Dad7606.c51 static int ad7606_reset(struct ad7606_state *st) in ad7606_reset() argument
53 if (st->gpio_reset) { in ad7606_reset()
54 gpiod_set_value(st->gpio_reset, 1); in ad7606_reset()
56 gpiod_set_value(st->gpio_reset, 0); in ad7606_reset()
68 struct ad7606_state *st = iio_priv(indio_dev); in ad7606_reg_access() local
71 mutex_lock(&st->lock); in ad7606_reg_access()
73 ret = st->bops->reg_read(st, reg); in ad7606_reg_access()
79 ret = st->bops->reg_write(st, reg, writeval); in ad7606_reg_access()
82 mutex_unlock(&st->lock); in ad7606_reg_access()
86 static int ad7606_read_samples(struct ad7606_state *st) in ad7606_read_samples() argument
[all …]
Dat91_adc.c138 #define AT91_ADC_CHAN(st, ch) \ argument
139 (st->registers->channel_base + (ch * 4))
140 #define at91_adc_readl(st, reg) \ argument
141 (readl_relaxed(st->reg_base + reg))
142 #define at91_adc_writel(st, reg, val) \ argument
143 (writel_relaxed(val, st->reg_base + reg))
249 struct at91_adc_state *st = iio_priv(idev); in at91_adc_trigger_handler() local
257 st->buffer[j] = at91_adc_readl(st, AT91_ADC_CHAN(st, chan->channel)); in at91_adc_trigger_handler()
261 iio_push_to_buffers_with_timestamp(idev, st->buffer, pf->timestamp); in at91_adc_trigger_handler()
266 at91_adc_readl(st, AT91_ADC_LCDR); in at91_adc_trigger_handler()
[all …]
Dat91-sama5d2_adc.c330 #define at91_adc_readl(st, reg) readl_relaxed(st->base + reg) argument
331 #define at91_adc_writel(st, reg, val) writel_relaxed(val, st->base + reg) argument
489 static void at91_adc_config_emr(struct at91_adc_state *st) in at91_adc_config_emr() argument
492 unsigned int emr = at91_adc_readl(st, AT91_SAMA5D2_EMR); in at91_adc_config_emr()
501 switch (st->oversampling_ratio) { in at91_adc_config_emr()
516 at91_adc_writel(st, AT91_SAMA5D2_EMR, emr); in at91_adc_config_emr()
519 static int at91_adc_adjust_val_osr(struct at91_adc_state *st, int *val) in at91_adc_adjust_val_osr() argument
521 if (st->oversampling_ratio == AT91_OSR_1SAMPLES) { in at91_adc_adjust_val_osr()
527 } else if (st->oversampling_ratio == AT91_OSR_4SAMPLES) { in at91_adc_adjust_val_osr()
538 static void at91_adc_adjust_val_osr_array(struct at91_adc_state *st, void *buf, in at91_adc_adjust_val_osr_array() argument
[all …]
Dad7298.c107 struct ad7298_state *st = iio_priv(indio_dev); in ad7298_update_scan_mode() local
115 command = AD7298_WRITE | st->ext_ref; in ad7298_update_scan_mode()
121 st->tx_buf[0] = cpu_to_be16(command); in ad7298_update_scan_mode()
124 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; in ad7298_update_scan_mode()
125 st->ring_xfer[0].len = 2; in ad7298_update_scan_mode()
126 st->ring_xfer[0].cs_change = 1; in ad7298_update_scan_mode()
127 st->ring_xfer[1].tx_buf = &st->tx_buf[1]; in ad7298_update_scan_mode()
128 st->ring_xfer[1].len = 2; in ad7298_update_scan_mode()
129 st->ring_xfer[1].cs_change = 1; in ad7298_update_scan_mode()
131 spi_message_init(&st->ring_msg); in ad7298_update_scan_mode()
[all …]
Dti-ads7950.c60 #define TI_ADS7950_MAN_CMD_SETTINGS(st) \ argument
61 (TI_ADS7950_MAN_CMD(TI_ADS7950_CR_WRITE | st->cmd_settings_bitmask))
63 #define TI_ADS7950_GPIO_CMD_SETTINGS(st) \ argument
64 (TI_ADS7950_GPIO_CMD(st->gpio_cmd_settings_bitmask))
286 struct ti_ads7950_state *st = iio_priv(indio_dev); in ti_ads7950_update_scan_mode() local
292 st->tx_buf[len++] = cmd; in ti_ads7950_update_scan_mode()
296 st->tx_buf[len++] = 0; in ti_ads7950_update_scan_mode()
297 st->tx_buf[len++] = 0; in ti_ads7950_update_scan_mode()
299 st->ring_xfer.len = len * 2; in ti_ads7950_update_scan_mode()
308 struct ti_ads7950_state *st = iio_priv(indio_dev); in ti_ads7950_trigger_handler() local
[all …]
Dad7887.c78 struct ad7887_state *st = iio_priv(indio_dev); in ad7887_ring_preenable() local
83 st->ring_msg = &st->msg[AD7887_CH0]; in ad7887_ring_preenable()
86 st->ring_msg = &st->msg[AD7887_CH1]; in ad7887_ring_preenable()
88 spi_sync(st->spi, st->ring_msg); in ad7887_ring_preenable()
91 st->ring_msg = &st->msg[AD7887_CH0_CH1]; in ad7887_ring_preenable()
100 struct ad7887_state *st = iio_priv(indio_dev); in ad7887_ring_postdisable() local
103 return spi_sync(st->spi, &st->msg[AD7887_CH0]); in ad7887_ring_postdisable()
116 struct ad7887_state *st = iio_priv(indio_dev); in ad7887_trigger_handler() local
119 b_sent = spi_sync(st->spi, st->ring_msg); in ad7887_trigger_handler()
123 iio_push_to_buffers_with_timestamp(indio_dev, st->data, in ad7887_trigger_handler()
[all …]
Dnau7802.c84 struct nau7802_state *st = iio_priv(dev_to_iio_dev(dev)); in nau7802_show_scales() local
87 for (i = 0; i < ARRAY_SIZE(st->scale_avail); i++) in nau7802_show_scales()
89 st->scale_avail[i]); in nau7802_show_scales()
111 static int nau7802_set_gain(struct nau7802_state *st, int gain) in nau7802_set_gain() argument
115 mutex_lock(&st->lock); in nau7802_set_gain()
116 st->conversion_count = 0; in nau7802_set_gain()
118 ret = i2c_smbus_read_byte_data(st->client, NAU7802_REG_CTRL1); in nau7802_set_gain()
121 ret = i2c_smbus_write_byte_data(st->client, NAU7802_REG_CTRL1, in nau7802_set_gain()
126 mutex_unlock(&st->lock); in nau7802_set_gain()
131 static int nau7802_read_conversion(struct nau7802_state *st) in nau7802_read_conversion() argument
[all …]
/Linux-v5.4/drivers/gpu/drm/arm/display/komeda/
Dkomeda_private_obj.c11 komeda_component_state_reset(struct komeda_component_state *st) in komeda_component_state_reset() argument
13 st->binding_user = NULL; in komeda_component_state_reset()
14 st->affected_inputs = st->active_inputs; in komeda_component_state_reset()
15 st->active_inputs = 0; in komeda_component_state_reset()
16 st->changed_active_inputs = 0; in komeda_component_state_reset()
22 struct komeda_layer_state *st; in komeda_layer_atomic_duplicate_state() local
24 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_layer_atomic_duplicate_state()
25 if (!st) in komeda_layer_atomic_duplicate_state()
28 komeda_component_state_reset(&st->base); in komeda_layer_atomic_duplicate_state()
29 __drm_atomic_helper_private_obj_duplicate_state(obj, &st->base.obj); in komeda_layer_atomic_duplicate_state()
[all …]
/Linux-v5.4/drivers/staging/iio/frequency/
Dad9832.c129 static int ad9832_write_frequency(struct ad9832_state *st, in ad9832_write_frequency() argument
134 if (fout > (clk_get_rate(st->mclk) / 2)) in ad9832_write_frequency()
137 regval = ad9832_calc_freqreg(clk_get_rate(st->mclk), fout); in ad9832_write_frequency()
139 st->freq_data[0] = cpu_to_be16((AD9832_CMD_FRE8BITSW << CMD_SHIFT) | in ad9832_write_frequency()
142 st->freq_data[1] = cpu_to_be16((AD9832_CMD_FRE16BITSW << CMD_SHIFT) | in ad9832_write_frequency()
145 st->freq_data[2] = cpu_to_be16((AD9832_CMD_FRE8BITSW << CMD_SHIFT) | in ad9832_write_frequency()
148 st->freq_data[3] = cpu_to_be16((AD9832_CMD_FRE16BITSW << CMD_SHIFT) | in ad9832_write_frequency()
152 return spi_sync(st->spi, &st->freq_msg); in ad9832_write_frequency()
155 static int ad9832_write_phase(struct ad9832_state *st, in ad9832_write_phase() argument
161 st->phase_data[0] = cpu_to_be16((AD9832_CMD_PHA8BITSW << CMD_SHIFT) | in ad9832_write_phase()
[all …]
Dad9834.c110 static int ad9834_write_frequency(struct ad9834_state *st, in ad9834_write_frequency() argument
116 clk_freq = clk_get_rate(st->mclk); in ad9834_write_frequency()
123 st->freq_data[0] = cpu_to_be16(addr | (regval & in ad9834_write_frequency()
125 st->freq_data[1] = cpu_to_be16(addr | ((regval >> in ad9834_write_frequency()
129 return spi_sync(st->spi, &st->freq_msg); in ad9834_write_frequency()
132 static int ad9834_write_phase(struct ad9834_state *st, in ad9834_write_phase() argument
137 st->data = cpu_to_be16(addr | phase); in ad9834_write_phase()
139 return spi_sync(st->spi, &st->msg); in ad9834_write_phase()
148 struct ad9834_state *st = iio_priv(indio_dev); in ad9834_write() local
157 mutex_lock(&st->lock); in ad9834_write()
[all …]
/Linux-v5.4/drivers/iio/accel/
Dsca3000.c277 static int sca3000_write_reg(struct sca3000_state *st, u8 address, u8 val) in sca3000_write_reg() argument
279 st->tx[0] = SCA3000_WRITE_REG(address); in sca3000_write_reg()
280 st->tx[1] = val; in sca3000_write_reg()
281 return spi_write(st->us, st->tx, 2); in sca3000_write_reg()
284 static int sca3000_read_data_short(struct sca3000_state *st, in sca3000_read_data_short() argument
291 .tx_buf = st->tx, in sca3000_read_data_short()
294 .rx_buf = st->rx, in sca3000_read_data_short()
297 st->tx[0] = SCA3000_READ_REG(reg_address_high); in sca3000_read_data_short()
299 return spi_sync_transfer(st->us, xfer, ARRAY_SIZE(xfer)); in sca3000_read_data_short()
308 static int sca3000_reg_lock_on(struct sca3000_state *st) in sca3000_reg_lock_on() argument
[all …]
/Linux-v5.4/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_ring.c29 static void inv_mpu6050_update_period(struct inv_mpu6050_state *st, in inv_mpu6050_update_period() argument
37 const s32 divider = INV_MPU6050_FREQ_DIVIDER(st); in inv_mpu6050_update_period()
41 if (st->it_timestamp == 0) { in inv_mpu6050_update_period()
52 delta = div_s64(timestamp - st->it_timestamp, divider); in inv_mpu6050_update_period()
55 st->chip_period = (st->chip_period + delta) / 2; in inv_mpu6050_update_period()
66 interval = (nb - 1) * st->chip_period * divider; in inv_mpu6050_update_period()
67 st->data_timestamp = timestamp - interval; in inv_mpu6050_update_period()
71 st->it_timestamp = timestamp; in inv_mpu6050_update_period()
82 static s64 inv_mpu6050_get_timestamp(struct inv_mpu6050_state *st) in inv_mpu6050_get_timestamp() argument
87 ts = st->data_timestamp; in inv_mpu6050_get_timestamp()
[all …]
Dinv_mpu_core.c177 int inv_mpu6050_switch_engine(struct inv_mpu6050_state *st, bool en, u32 mask) in inv_mpu6050_switch_engine() argument
187 result = regmap_read(st->map, st->reg->pwr_mgmt_1, &mgmt_1); in inv_mpu6050_switch_engine()
200 result = regmap_write(st->map, st->reg->pwr_mgmt_1, mgmt_1); in inv_mpu6050_switch_engine()
205 result = regmap_read(st->map, st->reg->pwr_mgmt_2, &d); in inv_mpu6050_switch_engine()
212 result = regmap_write(st->map, st->reg->pwr_mgmt_2, d); in inv_mpu6050_switch_engine()
222 result = regmap_write(st->map, in inv_mpu6050_switch_engine()
223 st->reg->pwr_mgmt_1, mgmt_1); in inv_mpu6050_switch_engine()
232 int inv_mpu6050_set_power_itg(struct inv_mpu6050_state *st, bool power_on) in inv_mpu6050_set_power_itg() argument
237 if (!st->powerup_count) { in inv_mpu6050_set_power_itg()
238 result = regmap_write(st->map, st->reg->pwr_mgmt_1, 0); in inv_mpu6050_set_power_itg()
[all …]
/Linux-v5.4/drivers/staging/iio/resolver/
Dad2s1210.c108 struct ad2s1210_state *st) in ad2s1210_set_mode() argument
110 gpiod_set_value(st->gpios[AD2S1210_A0], ad2s1210_mode_vals[mode][0]); in ad2s1210_set_mode()
111 gpiod_set_value(st->gpios[AD2S1210_A1], ad2s1210_mode_vals[mode][1]); in ad2s1210_set_mode()
112 st->mode = mode; in ad2s1210_set_mode()
116 static int ad2s1210_config_write(struct ad2s1210_state *st, u8 data) in ad2s1210_config_write() argument
120 ad2s1210_set_mode(MOD_CONFIG, st); in ad2s1210_config_write()
121 st->tx[0] = data; in ad2s1210_config_write()
122 ret = spi_write(st->sdev, st->tx, 1); in ad2s1210_config_write()
130 static int ad2s1210_config_read(struct ad2s1210_state *st, in ad2s1210_config_read() argument
135 .rx_buf = st->rx, in ad2s1210_config_read()
[all …]
/Linux-v5.4/drivers/staging/iio/meter/
Dade7854-i2c.c25 struct ade7854_state *st = iio_priv(indio_dev); in ade7854_i2c_write_reg() local
27 mutex_lock(&st->buf_lock); in ade7854_i2c_write_reg()
28 st->tx[0] = (reg_address >> 8) & 0xFF; in ade7854_i2c_write_reg()
29 st->tx[1] = reg_address & 0xFF; in ade7854_i2c_write_reg()
33 st->tx[2] = val & 0xFF; in ade7854_i2c_write_reg()
37 st->tx[2] = (val >> 8) & 0xFF; in ade7854_i2c_write_reg()
38 st->tx[3] = val & 0xFF; in ade7854_i2c_write_reg()
42 st->tx[2] = (val >> 16) & 0xFF; in ade7854_i2c_write_reg()
43 st->tx[3] = (val >> 8) & 0xFF; in ade7854_i2c_write_reg()
44 st->tx[4] = val & 0xFF; in ade7854_i2c_write_reg()
[all …]
Dade7854-spi.c24 struct ade7854_state *st = iio_priv(indio_dev); in ade7854_spi_write_reg() local
26 .tx_buf = st->tx, in ade7854_spi_write_reg()
31 mutex_lock(&st->buf_lock); in ade7854_spi_write_reg()
32 st->tx[0] = ADE7854_WRITE_REG; in ade7854_spi_write_reg()
33 st->tx[1] = (reg_address >> 8) & 0xFF; in ade7854_spi_write_reg()
34 st->tx[2] = reg_address & 0xFF; in ade7854_spi_write_reg()
37 st->tx[3] = val & 0xFF; in ade7854_spi_write_reg()
41 st->tx[3] = (val >> 8) & 0xFF; in ade7854_spi_write_reg()
42 st->tx[4] = val & 0xFF; in ade7854_spi_write_reg()
46 st->tx[3] = (val >> 16) & 0xFF; in ade7854_spi_write_reg()
[all …]
/Linux-v5.4/arch/powerpc/mm/ptdump/
Dptdump.c113 static void dump_flag_info(struct pg_state *st, const struct flag_info in dump_flag_info() argument
130 pt_dump_seq_printf(st->seq, " %s:%llx", flag->set, val); in dump_flag_info()
137 pt_dump_seq_printf(st->seq, " %s", s); in dump_flag_info()
139 st->current_flags &= ~flag->mask; in dump_flag_info()
141 if (st->current_flags != 0) in dump_flag_info()
142 pt_dump_seq_printf(st->seq, " unknown flags:%llx", st->current_flags); in dump_flag_info()
145 static void dump_addr(struct pg_state *st, unsigned long addr) in dump_addr() argument
157 pt_dump_seq_printf(st->seq, REG "-" REG " ", st->start_address, addr - 1); in dump_addr()
158 if (st->start_pa == st->last_pa && st->start_address + PAGE_SIZE != addr) { in dump_addr()
159 pt_dump_seq_printf(st->seq, "[" REG "]", st->start_pa); in dump_addr()
[all …]
/Linux-v5.4/drivers/staging/iio/adc/
Dad7192.c183 struct ad7192_state *st = ad_sigma_delta_to_ad7192(sd); in ad7192_set_channel() local
185 st->conf &= ~AD7192_CONF_CHAN_MASK; in ad7192_set_channel()
186 st->conf |= AD7192_CONF_CHAN(channel); in ad7192_set_channel()
188 return ad_sd_write_reg(&st->sd, AD7192_REG_CONF, 3, st->conf); in ad7192_set_channel()
194 struct ad7192_state *st = ad_sigma_delta_to_ad7192(sd); in ad7192_set_mode() local
196 st->mode &= ~AD7192_MODE_SEL_MASK; in ad7192_set_mode()
197 st->mode |= AD7192_MODE_SEL(mode); in ad7192_set_mode()
199 return ad_sd_write_reg(&st->sd, AD7192_REG_MODE, 3, st->mode); in ad7192_set_mode()
221 static int ad7192_calibrate_all(struct ad7192_state *st) in ad7192_calibrate_all() argument
223 return ad_sd_calibrate_all(&st->sd, ad7192_calib_arr, in ad7192_calibrate_all()
[all …]
/Linux-v5.4/drivers/iio/frequency/
Dadf4350.c67 static int adf4350_sync_config(struct adf4350_state *st) in adf4350_sync_config() argument
72 if ((st->regs_hw[i] != st->regs[i]) || in adf4350_sync_config()
81 st->val = cpu_to_be32(st->regs[i] | i); in adf4350_sync_config()
82 ret = spi_write(st->spi, &st->val, 4); in adf4350_sync_config()
85 st->regs_hw[i] = st->regs[i]; in adf4350_sync_config()
86 dev_dbg(&st->spi->dev, "[%d] 0x%X\n", in adf4350_sync_config()
87 i, (u32)st->regs[i] | i); in adf4350_sync_config()
97 struct adf4350_state *st = iio_priv(indio_dev); in adf4350_reg_access() local
105 st->regs[reg] = writeval & ~(BIT(0) | BIT(1) | BIT(2)); in adf4350_reg_access()
106 ret = adf4350_sync_config(st); in adf4350_reg_access()
[all …]
/Linux-v5.4/drivers/isdn/mISDN/
Dstack.c21 _queue_message(struct mISDNstack *st, struct sk_buff *skb) in _queue_message() argument
28 skb_queue_tail(&st->msgq, skb); in _queue_message()
29 if (likely(!test_bit(mISDN_STACK_STOPPED, &st->status))) { in _queue_message()
30 test_and_set_bit(mISDN_STACK_WORK, &st->status); in _queue_message()
31 wake_up_interruptible(&st->workq); in _queue_message()
38 _queue_message(ch->st, skb); in mISDN_queue_message()
43 get_channel4id(struct mISDNstack *st, u_int id) in get_channel4id() argument
47 mutex_lock(&st->lmutex); in get_channel4id()
48 list_for_each_entry(ch, &st->layer2, list) { in get_channel4id()
54 mutex_unlock(&st->lmutex); in get_channel4id()
[all …]
/Linux-v5.4/drivers/media/dvb-frontends/
Dgp8psk-fe.c41 struct gp8psk_fe_state *st = fe->demodulator_priv; in gp8psk_tuned_to_DCII() local
44 st->ops->in(st->priv, GET_8PSK_CONFIG, 0, 0, &status, 1); in gp8psk_tuned_to_DCII()
50 struct gp8psk_fe_state *st = fe->demodulator_priv; in gp8psk_set_tuner_mode() local
52 return st->ops->out(st->priv, SET_8PSK_CONFIG, mode, 0, NULL, 0); in gp8psk_set_tuner_mode()
55 static int gp8psk_fe_update_status(struct gp8psk_fe_state *st) in gp8psk_fe_update_status() argument
58 if (time_after(jiffies,st->next_status_check)) { in gp8psk_fe_update_status()
59 st->ops->in(st->priv, GET_SIGNAL_LOCK, 0, 0, &st->lock, 1); in gp8psk_fe_update_status()
60 st->ops->in(st->priv, GET_SIGNAL_STRENGTH, 0, 0, buf, 6); in gp8psk_fe_update_status()
61 st->snr = (buf[1]) << 8 | buf[0]; in gp8psk_fe_update_status()
62 st->next_status_check = jiffies + (st->status_check_interval*HZ)/1000; in gp8psk_fe_update_status()
[all …]

12345678910>>...47