Home
last modified time | relevance | path

Searched refs:config_reg (Results 1 – 25 of 48) sorted by relevance

12

/OK3568_Linux_fs/kernel/drivers/iio/common/ms_sensors/
H A Dms_sensors_i2c.c254 u8 *config_reg) in ms_sensors_read_config_reg() argument
264 ret = i2c_master_recv(client, config_reg, 1); in ms_sensors_read_config_reg()
269 dev_dbg(&client->dev, "Config register :%x\n", *config_reg); in ms_sensors_read_config_reg()
288 u8 config_reg; in ms_sensors_write_resolution() local
291 ret = ms_sensors_read_config_reg(dev_data->client, &config_reg); in ms_sensors_write_resolution()
295 config_reg &= 0x7E; in ms_sensors_write_resolution()
296 config_reg |= ((i & 1) << 7) + ((i & 2) >> 1); in ms_sensors_write_resolution()
300 config_reg); in ms_sensors_write_resolution()
319 u8 config_reg; in ms_sensors_show_battery_low() local
322 ret = ms_sensors_read_config_reg(dev_data->client, &config_reg); in ms_sensors_show_battery_low()
[all …]
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-zynq-qspi.c183 u32 config_reg; in zynq_qspi_init_hw() local
189 config_reg = 0; in zynq_qspi_init_hw()
192 config_reg |= ZYNQ_QSPI_LCFG_TWO_MEM; in zynq_qspi_init_hw()
194 zynq_qspi_write(xqspi, ZYNQ_QSPI_LINEAR_CFG_OFFSET, config_reg); in zynq_qspi_init_hw()
202 config_reg = zynq_qspi_read(xqspi, ZYNQ_QSPI_CONFIG_OFFSET); in zynq_qspi_init_hw()
203 config_reg &= ~(ZYNQ_QSPI_CONFIG_MSTREN_MASK | in zynq_qspi_init_hw()
210 config_reg |= (ZYNQ_QSPI_CONFIG_MSTREN_MASK | in zynq_qspi_init_hw()
214 zynq_qspi_write(xqspi, ZYNQ_QSPI_CONFIG_OFFSET, config_reg); in zynq_qspi_init_hw()
294 u32 config_reg; in zynq_qspi_chipselect() local
298 config_reg = zynq_qspi_read(xqspi, ZYNQ_QSPI_LINEAR_CFG_OFFSET); in zynq_qspi_chipselect()
[all …]
H A Dspi-zynqmp-gqspi.c270 u32 config_reg; in zynqmp_qspi_init_hw() local
292 config_reg = zynqmp_gqspi_read(xqspi, GQSPI_CONFIG_OFST); in zynqmp_qspi_init_hw()
293 config_reg &= ~GQSPI_CFG_MODE_EN_MASK; in zynqmp_qspi_init_hw()
295 config_reg |= GQSPI_CFG_GEN_FIFO_START_MODE_MASK; in zynqmp_qspi_init_hw()
297 config_reg &= ~GQSPI_CFG_ENDIAN_MASK; in zynqmp_qspi_init_hw()
299 config_reg &= ~GQSPI_CFG_EN_POLL_TO_MASK; in zynqmp_qspi_init_hw()
301 config_reg |= GQSPI_CFG_WP_HOLD_MASK; in zynqmp_qspi_init_hw()
303 config_reg &= ~GQSPI_CFG_BAUD_RATE_DIV_MASK; in zynqmp_qspi_init_hw()
305 config_reg &= ~GQSPI_CFG_CLK_PHA_MASK; in zynqmp_qspi_init_hw()
307 config_reg &= ~GQSPI_CFG_CLK_POL_MASK; in zynqmp_qspi_init_hw()
[all …]
/OK3568_Linux_fs/u-boot/drivers/gpio/
H A Dsh_pfc.c249 struct pinmux_cfg_reg *config_reg; in get_config_reg() local
255 config_reg = gpioc->cfg_regs + k; in get_config_reg()
257 r_width = config_reg->reg_width; in get_config_reg()
258 f_width = config_reg->field_width; in get_config_reg()
269 curr_width = config_reg->var_field_width[m]; in get_config_reg()
273 if (config_reg->enum_ids[pos + n] == enum_id) { in get_config_reg()
274 *crp = config_reg; in get_config_reg()
277 *cntp = &config_reg->cnt[m]; in get_config_reg()
H A Dtca642x.c122 uint8_t config_reg = tca642x_regs[gpio_bank].configuration_reg; in tca642x_set_dir() local
124 return tca642x_reg_write(chip, config_reg, reg_bit, data); in tca642x_set_dir()
147 uint8_t config_reg; in tca642x_set_inital_state() local
152 config_reg = tca642x_regs[i].configuration_reg; in tca642x_set_inital_state()
153 ret = tca642x_reg_write(chip, config_reg, 0xff, in tca642x_set_inital_state()
/OK3568_Linux_fs/u-boot/board/theadorable/
H A Dfpga.c68 u32 config_reg; in fpga_write_fn() local
89 config_reg = readl(&reg->cfg); in fpga_write_fn()
99 writel(config_reg, &reg->cfg); in fpga_write_fn()
/OK3568_Linux_fs/kernel/drivers/input/misc/
H A Dmax77693-haptic.c107 unsigned int value, config_reg; in max77693_haptic_configure() local
116 config_reg = MAX77693_HAPTIC_REG_CONFIG2; in max77693_haptic_configure()
122 config_reg = MAX77843_HAP_REG_MCONFIG; in max77693_haptic_configure()
129 config_reg, value); in max77693_haptic_configure()
/OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/
H A Demif-common.c557 u32 config_reg = 0; in get_sdram_config_reg() local
559 config_reg |= (cs0_device->type + 4) << EMIF_REG_SDRAM_TYPE_SHIFT; in get_sdram_config_reg()
560 config_reg |= EMIF_INTERLEAVING_POLICY_MAX_INTERLEAVING << in get_sdram_config_reg()
563 config_reg |= cs0_device->io_width << EMIF_REG_NARROW_MODE_SHIFT; in get_sdram_config_reg()
565 config_reg |= RL << EMIF_REG_CL_SHIFT; in get_sdram_config_reg()
567 config_reg |= addressing->row_sz[cs0_device->io_width] << in get_sdram_config_reg()
570 config_reg |= addressing->num_banks << EMIF_REG_IBANK_SHIFT; in get_sdram_config_reg()
572 config_reg |= (cs1_device ? EBANK_CS1_EN : EBANK_CS1_DIS) << in get_sdram_config_reg()
575 config_reg |= addressing->col_sz[cs0_device->io_width] << in get_sdram_config_reg()
578 return config_reg; in get_sdram_config_reg()
/OK3568_Linux_fs/kernel/drivers/tty/serial/
H A Dsirfsoc_uart.c700 unsigned long config_reg = 0; in sirfsoc_uart_set_termios() local
717 config_reg |= SIRFUART_DATA_BIT_LEN_8; in sirfsoc_uart_set_termios()
721 config_reg |= SIRFUART_DATA_BIT_LEN_7; in sirfsoc_uart_set_termios()
725 config_reg |= SIRFUART_DATA_BIT_LEN_6; in sirfsoc_uart_set_termios()
729 config_reg |= SIRFUART_DATA_BIT_LEN_5; in sirfsoc_uart_set_termios()
733 config_reg |= SIRFUART_STOP_BIT_LEN_2; in sirfsoc_uart_set_termios()
759 config_reg |= SIRFUART_STICK_BIT_MARK; in sirfsoc_uart_set_termios()
761 config_reg |= SIRFUART_STICK_BIT_SPACE; in sirfsoc_uart_set_termios()
764 config_reg |= SIRFUART_STICK_BIT_ODD; in sirfsoc_uart_set_termios()
766 config_reg |= SIRFUART_STICK_BIT_EVEN; in sirfsoc_uart_set_termios()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/
H A Dbcmsdspi_linux.c176 uint32 config_reg; local
183 config_reg = OSL_PCI_READ_CONFIG(osh, 0x4c, 4);
191 config_reg |= 0x02;
192 OSL_PCI_WRITE_CONFIG(osh, 0x4c, 4, config_reg);
H A Dbcmsdstd_linux.c587 uint32 config_reg; in bcmsdh_pci_probe() local
595 config_reg = OSL_PCI_READ_CONFIG(osh, 0x4c, 4); in bcmsdh_pci_probe()
603 config_reg |= 0x02; in bcmsdh_pci_probe()
604 OSL_PCI_WRITE_CONFIG(osh, 0x4c, 4, config_reg); in bcmsdh_pci_probe()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/
H A Dbcmsdspi_linux.c176 uint32 config_reg; local
183 config_reg = OSL_PCI_READ_CONFIG(osh, 0x4c, 4);
191 config_reg |= 0x02;
192 OSL_PCI_WRITE_CONFIG(osh, 0x4c, 4, config_reg);
H A Dbcmsdstd_linux.c587 uint32 config_reg; in bcmsdh_pci_probe() local
595 config_reg = OSL_PCI_READ_CONFIG(osh, 0x4c, 4); in bcmsdh_pci_probe()
603 config_reg |= 0x02; in bcmsdh_pci_probe()
604 OSL_PCI_WRITE_CONFIG(osh, 0x4c, 4, config_reg); in bcmsdh_pci_probe()
/OK3568_Linux_fs/external/rkwifibt/drivers/infineon/
H A Dbcmsdspi_linux.c176 uint32 config_reg; local
183 config_reg = OSL_PCI_READ_CONFIG(osh, 0x4c, 4);
191 config_reg |= 0x02;
192 OSL_PCI_WRITE_CONFIG(osh, 0x4c, 4, config_reg);
H A Dbcmsdstd_linux.c587 uint32 config_reg; in bcmsdh_pci_probe() local
595 config_reg = OSL_PCI_READ_CONFIG(osh, 0x4c, 4); in bcmsdh_pci_probe()
603 config_reg |= 0x02; in bcmsdh_pci_probe()
604 OSL_PCI_WRITE_CONFIG(osh, 0x4c, 4, config_reg); in bcmsdh_pci_probe()
/OK3568_Linux_fs/kernel/drivers/clk/qcom/
H A Dclk-pll.c103 regmap_read(pll->clkr.regmap, pll->config_reg, &config); in clk_pll_recalc_rate()
162 regmap_write(pll->clkr.regmap, pll->config_reg, f->ibits); in clk_pll_set_rate()
242 regmap_update_bits(regmap, pll->config_reg, mask, val); in clk_pll_configure()
H A Dclk-hfpll.h17 u32 config_reg; member
H A Dclk-pll.h43 u32 config_reg; member
H A Dhfpll.c22 .config_reg = 0x14,
H A Da53-pll.c63 pll->config_reg = 0x14; in qcom_a53pll_probe()
H A Dgcc-msm8960.c32 .config_reg = 0x3174,
59 .config_reg = 0x3154,
87 .config_reg = 0x3204,
113 .config_reg = 0x3244,
127 .config_reg = 0x3304,
153 .config_reg = 0x3284,
179 .config_reg = 0x32c4,
205 .config_reg = 0x3304,
219 .config_reg = 0x3404,
244 .config_reg = 0x31d4,
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Dbcmsdstd_linux.c585 uint32 config_reg; in bcmsdh_pci_probe() local
593 config_reg = OSL_PCI_READ_CONFIG(osh, 0x4c, 4); in bcmsdh_pci_probe()
601 config_reg |= 0x02; in bcmsdh_pci_probe()
602 OSL_PCI_WRITE_CONFIG(osh, 0x4c, 4, config_reg); in bcmsdh_pci_probe()
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Dbcmsdstd_linux.c585 uint32 config_reg; in bcmsdh_pci_probe() local
593 config_reg = OSL_PCI_READ_CONFIG(osh, 0x4c, 4); in bcmsdh_pci_probe()
601 config_reg |= 0x02; in bcmsdh_pci_probe()
602 OSL_PCI_WRITE_CONFIG(osh, 0x4c, 4, config_reg); in bcmsdh_pci_probe()
/OK3568_Linux_fs/kernel/drivers/pinctrl/renesas/
H A Dcore.c244 const struct pinmux_cfg_reg *config_reg = in sh_pfc_get_config_reg() local
246 unsigned int r_width = config_reg->reg_width; in sh_pfc_get_config_reg()
247 unsigned int f_width = config_reg->field_width; in sh_pfc_get_config_reg()
263 curr_width = config_reg->var_field_width[m]; in sh_pfc_get_config_reg()
267 if (config_reg->enum_ids[pos + n] == enum_id) { in sh_pfc_get_config_reg()
268 *crp = config_reg; in sh_pfc_get_config_reg()
/OK3568_Linux_fs/kernel/drivers/i2c/busses/
H A Di2c-mlxbf.c1394 u32 config_reg; in mlxbf_i2c_init_master() local
1431 config_reg = readl(gpio_res->io + MLXBF_I2C_GPIO_0_FUNC_EN_0); in mlxbf_i2c_init_master()
1432 config_reg = MLXBF_I2C_GPIO_SMBUS_GW_ASSERT_PINS(priv->bus, in mlxbf_i2c_init_master()
1433 config_reg); in mlxbf_i2c_init_master()
1434 writel(config_reg, gpio_res->io + MLXBF_I2C_GPIO_0_FUNC_EN_0); in mlxbf_i2c_init_master()
1436 config_reg = readl(gpio_res->io + MLXBF_I2C_GPIO_0_FORCE_OE_EN); in mlxbf_i2c_init_master()
1437 config_reg = MLXBF_I2C_GPIO_SMBUS_GW_RESET_PINS(priv->bus, in mlxbf_i2c_init_master()
1438 config_reg); in mlxbf_i2c_init_master()
1439 writel(config_reg, gpio_res->io + MLXBF_I2C_GPIO_0_FORCE_OE_EN); in mlxbf_i2c_init_master()

12