/linux-4.19.296/drivers/iio/adc/ |
D | stm32-dfsdm.h | 48 #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 …]
|
D | meson_saradc.c | 370 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/ |
D | gxbb-aoclk-32k.c | 155 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/ |
D | hts221_buffer.c | 46 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()
|
D | hts221_core.c | 167 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/ |
D | i2c-fsi.c | 197 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()
|
D | i2c-meson.c | 155 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/ |
D | meson-ir.c | 174 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/ |
D | st_lsm6dsx_buffer.c | 166 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()
|
D | st_lsm6dsx_core.c | 741 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/ |
D | pwm-stm32-lp.c | 95 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()
|
D | pwm-stm32.c | 265 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/ |
D | stm32-lptimer-cnt.c | 46 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/ |
D | pci-thunder-pem.c | 366 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/ |
D | bitfield.h | 87 #define FIELD_PREP(_mask, _val) \ macro
|
/linux-4.19.296/drivers/regulator/ |
D | stm32-vrefbuf.c | 89 val = (val & ~STM32_VRS) | FIELD_PREP(STM32_VRS, sel); in stm32_vrefbuf_set_voltage_sel()
|
/linux-4.19.296/drivers/nvmem/ |
D | meson-mx-efuse.c | 105 regval = FIELD_PREP(MESON_MX_EFUSE_CNTL1_BYTE_ADDR_MASK, addr); in meson_mx_efuse_read_addr()
|
/linux-4.19.296/drivers/iio/chemical/ |
D | bme680_core.c | 543 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/ |
D | thunderx_edac.c | 760 l2c_ioaddr = ioremap(L2C_CTL | FIELD_PREP(THUNDERX_NODE, lmc->node), PAGE_SIZE); in thunderx_lmc_probe()
|