/Linux-v6.1/crypto/ |
D | sha3_generic.c | 20 * over 1 KB of stack if we inline the round calculation into the loop 47 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() 58 t[0] = bc[4] ^ rol64(bc[1], 1); in keccakf_round() 59 t[1] = bc[0] ^ rol64(bc[2], 1); in keccakf_round() 60 t[2] = bc[1] ^ rol64(bc[3], 1); in keccakf_round() [all …]
|
D | aegis128-neon-inner.c | 41 static void aegis128_save_state_neon(struct aegis128_state st, void *state) in aegis128_save_state_neon() argument 43 vst1q_u8(state, st.v[0]); in aegis128_save_state_neon() 44 vst1q_u8(state + 16, st.v[1]); in aegis128_save_state_neon() 45 vst1q_u8(state + 32, st.v[2]); in aegis128_save_state_neon() 46 vst1q_u8(state + 48, st.v[3]); in aegis128_save_state_neon() 47 vst1q_u8(state + 64, st.v[4]); in aegis128_save_state_neon() 56 if (!__builtin_expect(aegis128_have_aes_insn, 1)) { in aegis_aes_round() 87 w = (v << 1) ^ (uint8x16_t)(((int8x16_t)v >> 7) & 0x1b); in aegis_aes_round() 106 struct aegis128_state aegis128_update_neon(struct aegis128_state st, in aegis128_update_neon() argument 109 m ^= aegis_aes_round(st.v[4]); in aegis128_update_neon() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/iio/accel/ |
D | lis302.txt | 8 - compatible: should be set to "st,lis3lv02d-spi" 15 - compatible: should be set to "st,lis3lv02d" 23 - st,click-single-{x,y,z}: if present, tells the device to issue an 26 - st,click-double-{x,y,z}: if present, tells the device to issue an 29 - st,click-thresh-{x,y,z}: set the x/y/z axis threshold 30 - st,click-click-time-limit: click time limit, from 0 to 127.5msec 32 - st,click-latency: click latency, from 0 to 255 msec with 33 step of 1 msec. 34 - st,click-window: click window, from 0 to 255 msec with 35 step of 1 msec. [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/iio/ |
D | st,st-sensors.yaml | 4 $id: http://devicetree.org/schemas/iio/st,st-sensors.yaml# 19 - Denis Ciocca <denis.ciocca@st.com> 27 - st,h3lis331dl-accel 28 - st,lis2de12 29 - st,lis2dw12 30 - st,lis2hh12 31 - st,lis2dh12-accel 32 - st,lis302dl 33 - st,lis331dl-accel 34 - st,lis331dlh-accel [all …]
|
/Linux-v6.1/drivers/staging/iio/frequency/ |
D | ad9832.c | 72 #define RES_MASK(bits) ((1 << (bits)) - 1) 124 (u64)((u64)1L << AD9832_FREQ_BITS); in ad9832_calc_freqreg() 129 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() 143 ((addr - 1) << ADD_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() [all …]
|
D | ad9834.c | 49 #define AD9834_MODE BIT(1) 54 #define RES_MASK(bits) (BIT(bits) - 1) 109 static int ad9834_write_frequency(struct ad9834_state *st, in ad9834_write_frequency() argument 115 clk_freq = clk_get_rate(st->mclk); in ad9834_write_frequency() 122 st->freq_data[0] = cpu_to_be16(addr | (regval & in ad9834_write_frequency() 124 st->freq_data[1] = cpu_to_be16(addr | ((regval >> in ad9834_write_frequency() 128 return spi_sync(st->spi, &st->freq_msg); in ad9834_write_frequency() 131 static int ad9834_write_phase(struct ad9834_state *st, in ad9834_write_phase() argument 136 st->data = cpu_to_be16(addr | phase); in ad9834_write_phase() 138 return spi_sync(st->spi, &st->msg); in ad9834_write_phase() [all …]
|
/Linux-v6.1/drivers/iio/dac/ |
D | ad5592r-base.c | 25 struct ad5592r_state *st = gpiochip_get_data(chip); in ad5592r_gpio_get() local 29 mutex_lock(&st->gpio_lock); in ad5592r_gpio_get() 31 if (st->gpio_out & BIT(offset)) in ad5592r_gpio_get() 32 val = st->gpio_val; in ad5592r_gpio_get() 34 ret = st->ops->gpio_read(st, &val); in ad5592r_gpio_get() 36 mutex_unlock(&st->gpio_lock); in ad5592r_gpio_get() 46 struct ad5592r_state *st = gpiochip_get_data(chip); in ad5592r_gpio_set() local 48 mutex_lock(&st->gpio_lock); in ad5592r_gpio_set() 51 st->gpio_val |= BIT(offset); in ad5592r_gpio_set() 53 st->gpio_val &= ~BIT(offset); in ad5592r_gpio_set() [all …]
|
D | ad5791.c | 32 #define AD5791_ADDR_DAC0 1 38 #define AD5791_CTRL_RBUF BIT(1) 46 #define AD5791_LINCOMP_10_12 1 56 #define AD5791_SWCTRL_CLR BIT(1) 60 #define AD5791_DAC_PWRDN_3STATE 1 108 static int ad5791_spi_write(struct ad5791_state *st, u8 addr, u32 val) in ad5791_spi_write() argument 110 st->data[0].d32 = cpu_to_be32(AD5791_CMD_WRITE | in ad5791_spi_write() 114 return spi_write(st->spi, &st->data[0].d8[1], 3); in ad5791_spi_write() 117 static int ad5791_spi_read(struct ad5791_state *st, u8 addr, u32 *val) in ad5791_spi_read() argument 122 .tx_buf = &st->data[0].d8[1], in ad5791_spi_read() [all …]
|
/Linux-v6.1/drivers/gpu/drm/etnaviv/ |
D | etnaviv_cmd_parser.c | 26 #define ST(start, num) { (start) >> 2, (num) } macro 28 ST(0x1200, 1), 29 ST(0x1228, 1), 30 ST(0x1238, 1), 31 ST(0x1284, 1), 32 ST(0x128c, 1), 33 ST(0x1304, 1), 34 ST(0x1310, 1), 35 ST(0x1318, 1), 36 ST(0x12800, 4), [all …]
|
/Linux-v6.1/drivers/iio/adc/ |
D | at91_adc.c | 34 #define AT91_ADC_SWRST (1 << 0) /* Software Reset */ 35 #define AT91_ADC_START (1 << 1) /* Start Conversion */ 40 #define AT91_ADC_TSAMOD_TS_ONLY_MODE (1 << 0) /* Touch Screen Only Mode */ 41 #define AT91_ADC_TRGEN (1 << 0) /* Trigger Enable */ 42 #define AT91_ADC_TRGSEL (7 << 1) /* Trigger Selection */ 43 #define AT91_ADC_TRGSEL_TC0 (0 << 1) 44 #define AT91_ADC_TRGSEL_TC1 (1 << 1) 45 #define AT91_ADC_TRGSEL_TC2 (2 << 1) 46 #define AT91_ADC_TRGSEL_EXTERNAL (6 << 1) 47 #define AT91_ADC_LOWRES (1 << 4) /* Low Resolution */ [all …]
|
D | ad7298.c | 32 #define AD7298_TAVG BIT(1) /* temperature sensor averaging enable */ 59 .indexed = 1, \ 76 .indexed = 1, 82 .scan_index = -1, 90 AD7298_V_CHAN(1), 106 struct ad7298_state *st = iio_priv(indio_dev); in ad7298_update_scan_mode() local 114 command = AD7298_WRITE | st->ext_ref; in ad7298_update_scan_mode() 116 for (i = 0, m = AD7298_CH(0); i < AD7298_MAX_CHAN; i++, m >>= 1) in ad7298_update_scan_mode() 120 st->tx_buf[0] = cpu_to_be16(command); in ad7298_update_scan_mode() 123 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; in ad7298_update_scan_mode() [all …]
|
D | ad7887.c | 30 #define AD7887_CH_AIN1 BIT(3) /* convert on channel 1, DUAL=1 */ 31 #define AD7887_CH_AIN0 0 /* convert on channel 0, DUAL=0,1 */ 33 #define AD7887_PM_MODE2 1 /* full on */ 83 struct ad7887_state *st = iio_priv(indio_dev); in ad7887_ring_preenable() local 87 case (1 << 0): in ad7887_ring_preenable() 88 st->ring_msg = &st->msg[AD7887_CH0]; in ad7887_ring_preenable() 90 case (1 << 1): in ad7887_ring_preenable() 91 st->ring_msg = &st->msg[AD7887_CH1]; in ad7887_ring_preenable() 93 spi_sync(st->spi, st->ring_msg); in ad7887_ring_preenable() 95 case ((1 << 1) | (1 << 0)): in ad7887_ring_preenable() [all …]
|
D | ad7266.c | 51 static int ad7266_wakeup(struct ad7266_state *st) in ad7266_wakeup() argument 54 return spi_read(st->spi, &st->data.sample[0], 2); in ad7266_wakeup() 57 static int ad7266_powerdown(struct ad7266_state *st) in ad7266_powerdown() argument 60 return spi_read(st->spi, &st->data.sample[0], 1); in ad7266_powerdown() 65 struct ad7266_state *st = iio_priv(indio_dev); in ad7266_preenable() local 66 return ad7266_wakeup(st); in ad7266_preenable() 71 struct ad7266_state *st = iio_priv(indio_dev); in ad7266_postdisable() local 72 return ad7266_powerdown(st); in ad7266_postdisable() 84 struct ad7266_state *st = iio_priv(indio_dev); in ad7266_trigger_handler() local 87 ret = spi_read(st->spi, st->data.sample, 4); in ad7266_trigger_handler() [all …]
|
D | ad7280a.c | 45 #define AD7280A_CTRL_HB_CONV_INPUT_6CELL_AUX1_3_5 1 50 #define AD7280A_CTRL_HB_CONV_RREAD_6CELL_AUX1_3_5 1 55 #define AD7280A_CTRL_HB_CONV_START_CS 1 56 #define AD7280A_CTRL_HB_CONV_AVG_MSK GENMASK(2, 1) 58 #define AD7280A_CTRL_HB_CONV_AVG_2 1 67 #define AD7280A_CTRL_LB_ACQ_TIME_800ns 1 73 #define AD7280A_CTRL_LB_INC_DEV_ADDR_MSK BIT(1) 84 #define AD7280A_ALERT_REMOVE_AUX3_AUX5 BIT(1) 124 #define AD7280A_MAX_SPI_CLK_HZ 700000 /* < 1MHz */ 129 AD7280A_CELL_VOLTAGE_1_REG + 1) [all …]
|
D | ad7606.c | 45 1, 2, 4, 8, 16, 32, 64, 49 1, 2, 4, 8, 16, 32, 64, 128, 52 static int ad7606_reset(struct ad7606_state *st) in ad7606_reset() argument 54 if (st->gpio_reset) { in ad7606_reset() 55 gpiod_set_value(st->gpio_reset, 1); in ad7606_reset() 57 gpiod_set_value(st->gpio_reset, 0); in ad7606_reset() 69 struct ad7606_state *st = iio_priv(indio_dev); in ad7606_reg_access() local 72 mutex_lock(&st->lock); in ad7606_reg_access() 74 ret = st->bops->reg_read(st, reg); in ad7606_reg_access() 80 ret = st->bops->reg_write(st, reg, writeval); in ad7606_reg_access() [all …]
|
D | ad7192.c | 32 #define AD7192_REG_MODE 1 /* Mode Register (RW, 24-bit */ 55 #define AD7192_STAT_CH2 BIT(1) /* Channel 2 */ 56 #define AD7192_STAT_CH1 BIT(0) /* Channel 1 */ 74 #define AD7192_MODE_SINGLE 1 /* Single Conversion Mode */ 85 #define AD7192_CLK_EXT_MCLK2 1 /* External Clock applied to MCLK2 */ 104 #define AD7192_CH_AIN3P_AIN4M BIT(1) /* AIN3(+) - AIN4(-) */ 141 #define AD7192_GPOCON_P1DAT BIT(1) /* P1 state */ 148 #define AD7192_NO_SYNC_FILTER 1 205 struct ad7192_state *st = iio_priv(indio_dev); in ad7192_set_syscalib_mode() local 207 st->syscalib_mode[chan->channel] = mode; in ad7192_set_syscalib_mode() [all …]
|
/Linux-v6.1/drivers/staging/iio/resolver/ |
D | ad2s1210.c | 103 [MOD_VEL] = { 0, 1 }, 104 [MOD_CONFIG] = { 1, 0 }, 108 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() 115 /* write 1 bytes (address or data) to the chip */ 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() [all …]
|
/Linux-v6.1/drivers/iio/filter/ |
D | admv8818.c | 54 #define ADMV8818_LSBFIRST_MSK BIT(1) 117 [1] = "manual" 120 static int __admv8818_hpf_select(struct admv8818_state *st, u64 freq) in __admv8818_hpf_select() argument 129 if (freq > freq_range_hpf[3][1]) { in __admv8818_hpf_select() 137 freq_step = div_u64((freq_range_hpf[i][1] - in __admv8818_hpf_select() 141 (freq < freq_range_hpf[i][1] + freq_step)) { in __admv8818_hpf_select() 142 hpf_band = i + 1; in __admv8818_hpf_select() 144 for (j = 1; j <= 16; j++) { in __admv8818_hpf_select() 146 hpf_step = j - 1; in __admv8818_hpf_select() 161 ret = regmap_update_bits(st->regmap, ADMV8818_REG_WR0_SW, in __admv8818_hpf_select() [all …]
|
/Linux-v6.1/drivers/macintosh/ |
D | windfarm_pid.c | 25 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-v6.1/drivers/iio/accel/ |
D | sca3000.c | 34 #define SCA3000_EEPROM_CS_ERROR BIT(1) 63 * (approx 1 - 25Hz) and then a programmable threshold used to trigger 77 #define SCA3000_INT_STATUS_X_TRIGGER BIT(1) 109 #define SCA3000_MD_CTRL_OR_X BIT(1) 182 * @option_mode_1_freq: option mode 1 sampling frequency 277 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 [all …]
|
/Linux-v6.1/drivers/iio/common/hid-sensors/ |
D | hid-sensor-attributes.c | 22 HID_USAGE_SENSOR_UNITS_METERS_PER_SEC_SQRD, 1, 0}, 28 HID_USAGE_SENSOR_UNITS_METERS_PER_SEC_SQRD, 1, 0}, 34 HID_USAGE_SENSOR_UNITS_RADIANS_PER_SECOND, 1, 0}, 39 {HID_USAGE_SENSOR_COMPASS_3D, HID_USAGE_SENSOR_UNITS_GAUSS, 1, 0}, 45 HID_USAGE_SENSOR_UNITS_RADIANS, 1, 0}, 47 {HID_USAGE_SENSOR_ALS, 0, 1, 0}, 48 {HID_USAGE_SENSOR_ALS, HID_USAGE_SENSOR_UNITS_LUX, 1, 0}, 57 {HID_USAGE_SENSOR_DEVICE_ORIENTATION, 0, 1, 0}, 59 {HID_USAGE_SENSOR_RELATIVE_ORIENTATION, 0, 1, 0}, 61 {HID_USAGE_SENSOR_GEOMAGNETIC_ORIENTATION, 0, 1, 0}, [all …]
|
/Linux-v6.1/drivers/staging/iio/impedance-analyzer/ |
D | ad5933.c | 26 #define AD5933_REG_CONTROL_HB 0x80 /* R/W, 1 byte */ 27 #define AD5933_REG_CONTROL_LB 0x81 /* R/W, 1 byte */ 32 #define AD5933_REG_STATUS 0x8F /* R, 1 byte */ 46 #define AD5933_CTRL_RANGE_2000mVpp (0x0 << 1) 47 #define AD5933_CTRL_RANGE_200mVpp (0x1 << 1) 48 #define AD5933_CTRL_RANGE_400mVpp (0x2 << 1) 49 #define AD5933_CTRL_RANGE_1000mVpp (0x3 << 1) 50 #define AD5933_CTRL_RANGE(x) ((x) << 1) 62 #define AD5933_STAT_DATA_VALID (0x1 << 1) 75 #define AD5933_OUT_RANGE 1 [all …]
|
/Linux-v6.1/drivers/iio/frequency/ |
D | adrf6780.c | 53 #define ADRF6780_LO_EN_MSK BIT(1) 67 #define ADRF6780_ADC_EN_MSK BIT(1) 92 static int __adrf6780_spi_read(struct adrf6780_state *st, unsigned int reg, in __adrf6780_spi_read() argument 98 st->data[0] = 0x80 | (reg << 1); in __adrf6780_spi_read() 99 st->data[1] = 0x0; in __adrf6780_spi_read() 100 st->data[2] = 0x0; in __adrf6780_spi_read() 102 t.rx_buf = &st->data[0]; in __adrf6780_spi_read() 103 t.tx_buf = &st->data[0]; in __adrf6780_spi_read() 106 ret = spi_sync_transfer(st->spi, &t, 1); in __adrf6780_spi_read() 110 *val = (get_unaligned_be24(&st->data[0]) >> 1) & GENMASK(15, 0); in __adrf6780_spi_read() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/iio/adc/ |
D | st,stm32-dfsdm-adc.yaml | 4 $id: http://devicetree.org/schemas/iio/adc/st,stm32-dfsdm-adc.yaml# 10 - Fabrice Gasnier <fabrice.gasnier@foss.st.com> 11 - Olivier Moysan <olivier.moysan@foss.st.com> 28 - st,stm32h7-dfsdm 29 - st,stm32mp1-dfsdm 32 maxItems: 1 40 minItems: 1 46 minItems: 1 49 const: 1 81 - st,stm32-dfsdm-adc [all …]
|
/Linux-v6.1/drivers/media/usb/dvb-usb-v2/ |
D | lmedm04.c | 92 MODULE_PARM_DESC(debug, "set debugging level (1=info (or-able))."); 96 MODULE_PARM_DESC(firmware, "set default firmware 0=Sharp7395 1=LG"); 100 MODULE_PARM_DESC(pid, "set default 0=default 1=off 2=on"); 143 struct lme2510_state *st = d->priv; in lme2510_usb_talk() local 146 if (max(wlen, rlen) > sizeof(st->usb_buffer)) in lme2510_usb_talk() 153 memcpy(st->usb_buffer, wbuf, wlen); in lme2510_usb_talk() 155 ret = dvb_usbv2_generic_rw_locked(d, st->usb_buffer, wlen, in lme2510_usb_talk() 156 st->usb_buffer, rlen); in lme2510_usb_talk() 159 memcpy(rbuf, st->usb_buffer, rlen); in lme2510_usb_talk() 168 struct lme2510_state *st = d->priv; in lme2510_stream_restart() local [all …]
|