Home
last modified time | relevance | path

Searched refs:FIELD_PREP (Results 1 – 19 of 19) sorted by relevance

/linux-4.19.296/drivers/iio/adc/
Dstm32-dfsdm.h48 #define DFSDM_CHCFGR1_SITP(v) FIELD_PREP(DFSDM_CHCFGR1_SITP_MASK, v)
50 #define DFSDM_CHCFGR1_SPICKSEL(v) FIELD_PREP(DFSDM_CHCFGR1_SPICKSEL_MASK, v)
52 #define DFSDM_CHCFGR1_SCDEN(v) FIELD_PREP(DFSDM_CHCFGR1_SCDEN_MASK, v)
54 #define DFSDM_CHCFGR1_CKABEN(v) FIELD_PREP(DFSDM_CHCFGR1_CKABEN_MASK, v)
56 #define DFSDM_CHCFGR1_CHEN(v) FIELD_PREP(DFSDM_CHCFGR1_CHEN_MASK, v)
58 #define DFSDM_CHCFGR1_CHINSEL(v) FIELD_PREP(DFSDM_CHCFGR1_CHINSEL_MASK, v)
60 #define DFSDM_CHCFGR1_DATMPX(v) FIELD_PREP(DFSDM_CHCFGR1_DATMPX_MASK, v)
62 #define DFSDM_CHCFGR1_DATPACK(v) FIELD_PREP(DFSDM_CHCFGR1_DATPACK_MASK, v)
64 #define DFSDM_CHCFGR1_CKOUTDIV(v) FIELD_PREP(DFSDM_CHCFGR1_CKOUTDIV_MASK, v)
66 #define DFSDM_CHCFGR1_CKOUTSRC(v) FIELD_PREP(DFSDM_CHCFGR1_CKOUTSRC_MASK, v)
[all …]
Dmeson_saradc.c370 regval = FIELD_PREP(MESON_SAR_ADC_CHAN_LIST_MAX_INDEX_MASK, 0); in meson_sar_adc_enable_channel()
375 regval = FIELD_PREP(MESON_SAR_ADC_CHAN_LIST_ENTRY_MASK(0), in meson_sar_adc_enable_channel()
380 regval = FIELD_PREP(MESON_SAR_ADC_DETECT_IDLE_SW_DETECT_MUX_MASK, in meson_sar_adc_enable_channel()
386 regval = FIELD_PREP(MESON_SAR_ADC_DETECT_IDLE_SW_IDLE_MUX_SEL_MASK, in meson_sar_adc_enable_channel()
403 regval = FIELD_PREP(MESON_SAR_ADC_REG3_CTRL_CHAN7_MUX_SEL_MASK, sel); in meson_sar_adc_set_chan7_mux()
675 FIELD_PREP(MESON_SAR_ADC_DELAY_SAMPLE_DLY_CNT_MASK, in meson_sar_adc_init()
679 FIELD_PREP(MESON_SAR_ADC_DELAY_SAMPLE_DLY_SEL_MASK, in meson_sar_adc_init()
685 FIELD_PREP(MESON_SAR_ADC_DELAY_INPUT_DLY_CNT_MASK, in meson_sar_adc_init()
689 FIELD_PREP(MESON_SAR_ADC_DELAY_INPUT_DLY_SEL_MASK, in meson_sar_adc_init()
696 regval = FIELD_PREP(MESON_SAR_ADC_CHAN_10_SW_CHAN0_MUX_SEL_MASK, 0); in meson_sar_adc_init()
[all …]
/linux-4.19.296/drivers/clk/meson/
Dgxbb-aoclk-32k.c155 reg = FIELD_PREP(CLK_CNTL0_N1_MASK, freq->n1 - 1); in aoclk_cec_32k_set_rate()
158 FIELD_PREP(CLK_CNTL0_N2_MASK, freq->n2 - 1); in aoclk_cec_32k_set_rate()
162 reg = FIELD_PREP(CLK_CNTL1_M1_MASK, freq->m1 - 1); in aoclk_cec_32k_set_rate()
164 reg |= FIELD_PREP(CLK_CNTL1_M2_MASK, freq->m2 - 1); in aoclk_cec_32k_set_rate()
184 FIELD_PREP(PWR_CNTL_ALT_32K_SEL, 4)); in aoclk_cec_32k_set_rate()
/linux-4.19.296/drivers/iio/humidity/
Dhts221_buffer.c46 FIELD_PREP(HTS221_REG_DRDY_EN_MASK, state)); in hts221_trig_set_state()
105 FIELD_PREP(HTS221_REG_DRDY_HL_MASK, in hts221_allocate_trigger()
119 FIELD_PREP(HTS221_REG_DRDY_PP_OD_MASK, in hts221_allocate_trigger()
Dhts221_core.c167 FIELD_PREP(HTS221_ODR_MASK, in hts221_update_odr()
257 FIELD_PREP(HTS221_ENABLE_MASK, enable)); in hts221_set_enable()
593 FIELD_PREP(HTS221_BDU_MASK, 1)); in hts221_probe()
652 FIELD_PREP(HTS221_ENABLE_MASK, false)); in hts221_suspend()
664 FIELD_PREP(HTS221_ENABLE_MASK, in hts221_resume()
/linux-4.19.296/drivers/i2c/busses/
Di2c-fsi.c197 mode |= FIELD_PREP(I2C_MODE_CLKDIV, I2C_DEFAULT_CLK_DIV); in fsi_i2c_dev_init()
207 watermark = FIELD_PREP(I2C_WATERMARK_HI, in fsi_i2c_dev_init()
209 watermark |= FIELD_PREP(I2C_WATERMARK_LO, I2C_FIFO_LO_LVL); in fsi_i2c_dev_init()
227 mode = (mode & ~I2C_MODE_PORT) | FIELD_PREP(I2C_MODE_PORT, port->port); in fsi_i2c_set_port()
250 cmd |= FIELD_PREP(I2C_CMD_ADDR, msg->addr); in fsi_i2c_start()
251 cmd |= FIELD_PREP(I2C_CMD_LEN, msg->len); in fsi_i2c_start()
460 mode |= FIELD_PREP(I2C_MODE_PORT, port); in fsi_i2c_reset_engine()
Di2c-meson.c155 FIELD_PREP(REG_CTRL_CLKDIV, div & GENMASK(9, 0))); in meson_i2c_set_clk_div()
158 FIELD_PREP(REG_CTRL_CLKDIVEXT, div >> 10)); in meson_i2c_set_clk_div()
292 FIELD_PREP(REG_SLV_ADDR, msg->addr << 1)); in meson_i2c_do_start()
/linux-4.19.296/drivers/media/rc/
Dmeson-ir.c174 FIELD_PREP(REG1_MODE_MASK, DECODE_MODE_RAW)); in meson_ir_probe()
177 FIELD_PREP(REG2_MODE_MASK, DECODE_MODE_RAW)); in meson_ir_probe()
183 FIELD_PREP(REG1_IRQSEL_MASK, REG1_IRQSEL_RISE_FALL)); in meson_ir_probe()
/linux-4.19.296/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_buffer.c166 FIELD_PREP(ST_LSM6DSX_FIFO_MODE_MASK, in st_lsm6dsx_set_fifo_mode()
185 FIELD_PREP(ST_LSM6DSX_FIFO_ODR_MASK, data)); in st_lsm6dsx_set_fifo_odr()
545 FIELD_PREP(ST_LSM6DSX_REG_HLACTIVE_MASK, in st_lsm6dsx_fifo_setup()
555 FIELD_PREP(ST_LSM6DSX_REG_PP_OD_MASK, in st_lsm6dsx_fifo_setup()
Dst_lsm6dsx_core.c741 FIELD_PREP(ST_LSM6DSX_REG_BDU_MASK, 1)); in st_lsm6dsx_init_device()
752 FIELD_PREP(ST_LSM6DSX_REG_FIFO_FTH_IRQ_MASK, in st_lsm6dsx_init_device()
/linux-4.19.296/drivers/pwm/
Dpwm-stm32-lp.c95 val = FIELD_PREP(STM32_LPTIM_PRESC, presc); in stm32_pwm_lp_apply()
96 val |= FIELD_PREP(STM32_LPTIM_WAVPOL, state->polarity); in stm32_pwm_lp_apply()
Dpwm-stm32.c265 FIELD_PREP(TIM_CCMR_IC1PSC, icpsc) | in stm32_pwm_capture()
266 FIELD_PREP(TIM_CCMR_IC2PSC, icpsc)); in stm32_pwm_capture()
/linux-4.19.296/drivers/iio/counter/
Dstm32-lptimer-cnt.c46 val = FIELD_PREP(STM32_LPTIM_ENABLE, enable); in stm32_lptim_set_enable_state()
99 val |= FIELD_PREP(STM32_LPTIM_CKPOL, enable ? priv->polarity : 0); in stm32_lptim_setup()
/linux-4.19.296/drivers/pci/controller/
Dpci-thunder-pem.c366 res_pem->start = PEM_RES_BASE | FIELD_PREP(PEM_NODE_MASK, node) | in thunder_pem_legacy_fw()
367 FIELD_PREP(PEM_INDX_MASK, index); in thunder_pem_legacy_fw()
/linux-4.19.296/include/linux/
Dbitfield.h87 #define FIELD_PREP(_mask, _val) \ macro
/linux-4.19.296/drivers/regulator/
Dstm32-vrefbuf.c89 val = (val & ~STM32_VRS) | FIELD_PREP(STM32_VRS, sel); in stm32_vrefbuf_set_voltage_sel()
/linux-4.19.296/drivers/nvmem/
Dmeson-mx-efuse.c105 regval = FIELD_PREP(MESON_MX_EFUSE_CNTL1_BYTE_ADDR_MASK, addr); in meson_mx_efuse_read_addr()
/linux-4.19.296/drivers/iio/chemical/
Dbme680_core.c543 u8 osrs = FIELD_PREP(BME680_OSRS_HUMIDITY_MASK, in bme680_chip_config()
565 osrs = FIELD_PREP(BME680_OSRS_TEMP_MASK, data->oversampling_temp + 1) | in bme680_chip_config()
566 FIELD_PREP(BME680_OSRS_PRESS_MASK, data->oversampling_press + 1); in bme680_chip_config()
/linux-4.19.296/drivers/edac/
Dthunderx_edac.c760 l2c_ioaddr = ioremap(L2C_CTL | FIELD_PREP(THUNDERX_NODE, lmc->node), PAGE_SIZE); in thunderx_lmc_probe()