/linux/drivers/gpu/drm/tve200/ |
A D | tve200_display.c | 132 u32 ctrl1 = 0; in tve200_display_enable() local 153 ctrl1 |= TVE200_CTRL_CSMODE; in tve200_display_enable() 161 ctrl1 |= TVE200_CTRL_NTSC; in tve200_display_enable() 164 ctrl1 |= TVE200_VSTSTYPE_VSYNC; in tve200_display_enable() 168 ctrl1 |= TVE200_CTRL_TVCLKP; in tve200_display_enable() 184 ctrl1 |= TVE200_CTRL_BBBP; in tve200_display_enable() 190 ctrl1 |= TVE200_IPDMOD_RGB888; in tve200_display_enable() 193 ctrl1 |= TVE200_IPDMOD_RGB565; in tve200_display_enable() 196 ctrl1 |= TVE200_IPDMOD_RGB555; in tve200_display_enable() 224 ctrl1 |= TVE200_CTRL_YUV420; in tve200_display_enable() [all …]
|
/linux/drivers/crypto/bcm/ |
A D | spu2.c | 401 if (ctrl1 & SPU2_GENIV) in spu2_dump_fmd_ctrl1() 512 u64 ctrl1; in spu2_dump_msg_hdr() local 525 ctrl1 = le64_to_cpu(fmd->ctrl1); in spu2_dump_msg_hdr() 560 u64 ctrl1; in spu2_fmd_init() local 590 fmd->ctrl1 = cpu_to_le64(ctrl1); in spu2_fmd_init() 669 u64 ctrl1 = 0; in spu2_fmd_ctrl1_write() local 672 ctrl1 |= SPU2_TAG_LOC; in spu2_fmd_ctrl1_write() 688 ctrl1 |= SPU2_GENIV; in spu2_fmd_ctrl1_write() 691 ctrl1 |= SPU2_HASH_IV; in spu2_fmd_ctrl1_write() 694 ctrl1 |= SPU2_RET_IV; in spu2_fmd_ctrl1_write() [all …]
|
/linux/drivers/gpu/drm/aspeed/ |
A D | aspeed_gfx_crtc.c | 31 u32 ctrl1; in aspeed_gfx_set_pixel_fmt() local 33 ctrl1 = readl(priv->base + CRT_CTRL1); in aspeed_gfx_set_pixel_fmt() 34 ctrl1 &= ~CRT_CTRL_COLOR_MASK; in aspeed_gfx_set_pixel_fmt() 39 ctrl1 |= CRT_CTRL_COLOR_RGB565; in aspeed_gfx_set_pixel_fmt() 44 ctrl1 |= CRT_CTRL_COLOR_XRGB8888; in aspeed_gfx_set_pixel_fmt() 52 writel(ctrl1, priv->base + CRT_CTRL1); in aspeed_gfx_set_pixel_fmt() 83 u32 ctrl1, d_offset, t_count, bpp; in aspeed_gfx_crtc_mode_set_nofb() local 97 ctrl1 &= ~(CRT_CTRL_INTERLACED | in aspeed_gfx_crtc_mode_set_nofb() 102 ctrl1 |= CRT_CTRL_INTERLACED; in aspeed_gfx_crtc_mode_set_nofb() 105 ctrl1 |= CRT_CTRL_HSYNC_NEGATIVE; in aspeed_gfx_crtc_mode_set_nofb() [all …]
|
/linux/drivers/rtc/ |
A D | rtc-rx8025.c | 80 u8 ctrl1; member 364 rx8025->ctrl1); in rx8025_set_alarm() 373 rx8025->ctrl1 |= RX8025_BIT_CTRL1_DALE; in rx8025_set_alarm() 375 rx8025->ctrl1); in rx8025_set_alarm() 387 u8 ctrl1; in rx8025_alarm_irq_enable() local 390 ctrl1 = rx8025->ctrl1; in rx8025_alarm_irq_enable() 392 ctrl1 |= RX8025_BIT_CTRL1_DALE; in rx8025_alarm_irq_enable() 394 ctrl1 &= ~RX8025_BIT_CTRL1_DALE; in rx8025_alarm_irq_enable() 396 if (ctrl1 != rx8025->ctrl1) { in rx8025_alarm_irq_enable() 397 rx8025->ctrl1 = ctrl1; in rx8025_alarm_irq_enable() [all …]
|
A D | rtc-rc5t619.c | 122 unsigned int ctrl1; in rc5t619_rtc_read_time() local 132 err = regmap_read(rtc->rn5t618->regmap, RN5T618_RTC_CTRL1, &ctrl1); in rc5t619_rtc_read_time() 149 if (ctrl1 & CTRL1_24HR) in rc5t619_rtc_read_time() 168 unsigned int ctrl1; in rc5t619_rtc_set_time() local 178 err = regmap_read(rtc->rn5t618->regmap, RN5T618_RTC_CTRL1, &ctrl1); in rc5t619_rtc_set_time() 190 if (ctrl1 & CTRL1_24HR) in rc5t619_rtc_set_time() 231 unsigned int ctrl1; in rc5t619_rtc_read_alarm() local 258 if (ctrl1 & CTRL1_24HR) in rc5t619_rtc_read_alarm() 266 alrm->enabled = !!(ctrl1 & CTRL1_ALARM_ENABLED); in rc5t619_rtc_read_alarm() 278 unsigned int ctrl1; in rc5t619_rtc_set_alarm() local [all …]
|
A D | rtc-pcf2127.c | 510 unsigned int ctrl1, ctrl2; in pcf2127_rtc_irq() local 513 ret = regmap_read(pcf2127->regmap, PCF2127_REG_CTRL1, &ctrl1); in pcf2127_rtc_irq() 521 if (!(ctrl1 & PCF2127_CTRL1_IRQ_MASK || ctrl2 & PCF2127_CTRL2_IRQ_MASK)) in pcf2127_rtc_irq() 524 if (ctrl1 & PCF2127_BIT_CTRL1_TSF1 || ctrl2 & PCF2127_BIT_CTRL2_TSF2) in pcf2127_rtc_irq() 527 if (ctrl1 & PCF2127_CTRL1_IRQ_MASK) in pcf2127_rtc_irq() 529 ctrl1 & ~PCF2127_CTRL1_IRQ_MASK); in pcf2127_rtc_irq() 590 unsigned int ctrl1, ctrl2; in timestamp0_show() local 599 ret = regmap_read(pcf2127->regmap, PCF2127_REG_CTRL1, &ctrl1); in timestamp0_show() 607 if (!(ctrl1 & PCF2127_BIT_CTRL1_TSF1) && in timestamp0_show()
|
/linux/sound/soc/codecs/ |
A D | ssm2518.c | 341 unsigned int ctrl1, ctrl1_mask; in ssm2518_hw_params() local 383 ctrl1_mask, ctrl1); in ssm2518_hw_params() 408 unsigned int ctrl1 = 0, ctrl2 = 0; in ssm2518_set_dai_fmt() local 441 ctrl1 |= SSM2518_SAI_CTRL1_FMT_I2S; in ssm2518_set_dai_fmt() 444 ctrl1 |= SSM2518_SAI_CTRL1_FMT_LJ; in ssm2518_set_dai_fmt() 454 ctrl1 |= SSM2518_SAI_CTRL1_FMT_I2S; in ssm2518_set_dai_fmt() 459 ctrl1 |= SSM2518_SAI_CTRL1_FMT_LJ; in ssm2518_set_dai_fmt() 527 unsigned int ctrl1, ctrl2; in ssm2518_set_tdm_slot() local 575 ctrl1 = SSM2518_SAI_CTRL1_SAI_MONO; in ssm2518_set_tdm_slot() 578 ctrl1 = SSM2518_SAI_CTRL1_SAI_TDM_2; in ssm2518_set_tdm_slot() [all …]
|
A D | ssm4567.c | 278 unsigned int ctrl1 = 0; in ssm4567_set_dai_fmt() local 293 ctrl1 |= SSM4567_SAI_CTRL_1_BCLK; in ssm4567_set_dai_fmt() 297 ctrl1 |= SSM4567_SAI_CTRL_1_FSYNC; in ssm4567_set_dai_fmt() 301 ctrl1 |= SSM4567_SAI_CTRL_1_BCLK; in ssm4567_set_dai_fmt() 312 ctrl1 |= SSM4567_SAI_CTRL_1_LJ; in ssm4567_set_dai_fmt() 316 ctrl1 |= SSM4567_SAI_CTRL_1_TDM; in ssm4567_set_dai_fmt() 319 ctrl1 |= SSM4567_SAI_CTRL_1_TDM | SSM4567_SAI_CTRL_1_LJ; in ssm4567_set_dai_fmt() 322 ctrl1 |= SSM4567_SAI_CTRL_1_PDM; in ssm4567_set_dai_fmt() 329 ctrl1 |= SSM4567_SAI_CTRL_1_FSYNC; in ssm4567_set_dai_fmt() 337 ctrl1); in ssm4567_set_dai_fmt()
|
A D | adau1977.c | 300 unsigned int ctrl1; in adau1977_hw_params() local 353 ctrl1 |= ADAU1977_SAI_CTRL1_BCLKRATE_16; in adau1977_hw_params() 355 ctrl1 |= ADAU1977_SAI_CTRL1_BCLKRATE_32; in adau1977_hw_params() 361 ctrl1); in adau1977_hw_params() 499 unsigned int ctrl0, ctrl1, drv; in adau1977_set_tdm_slot() local 532 ctrl1 = ADAU1977_SAI_CTRL1_SLOT_WIDTH_16; in adau1977_set_tdm_slot() 538 ctrl1 = ADAU1977_SAI_CTRL1_SLOT_WIDTH_24; in adau1977_set_tdm_slot() 628 ctrl1 |= ADAU1977_SAI_CTRL1_MASTER; in adau1977_set_dai_fmt() 669 ctrl1 |= ADAU1977_SAI_CTRL1_LRCLK_PULSE; in adau1977_set_dai_fmt() 674 ctrl1 |= ADAU1977_SAI_CTRL1_LRCLK_PULSE; in adau1977_set_dai_fmt() [all …]
|
/linux/drivers/net/can/cc770/ |
A D | cc770.c | 464 if (ctrl1 & RMTPND_SET) { in cc770_rx() 604 u8 ctrl1; in cc770_rx_interrupt() local 608 ctrl1 = cc770_read_reg(priv, msgobj[mo].ctrl1); in cc770_rx_interrupt() 621 if (ctrl1 & MSGLST_SET) { in cc770_rx_interrupt() 629 cc770_rx(dev, mo, ctrl1); in cc770_rx_interrupt() 644 u8 ctrl0, ctrl1; in cc770_rtr_interrupt() local 652 ctrl1 = cc770_read_reg(priv, msgobj[mo].ctrl1); in cc770_rtr_interrupt() 653 cc770_rx(dev, mo, ctrl1); in cc770_rtr_interrupt() 670 u8 ctrl1; in cc770_tx_interrupt() local 672 ctrl1 = cc770_read_reg(priv, msgobj[mo].ctrl1); in cc770_tx_interrupt() [all …]
|
/linux/drivers/net/phy/ |
A D | phy-c45.c | 60 int ctrl1, ctrl2, ret; in genphy_c45_pma_setup_forced() local 66 ctrl1 = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL1); in genphy_c45_pma_setup_forced() 67 if (ctrl1 < 0) in genphy_c45_pma_setup_forced() 68 return ctrl1; in genphy_c45_pma_setup_forced() 74 ctrl1 &= ~MDIO_CTRL1_SPEEDSEL; in genphy_c45_pma_setup_forced() 86 ctrl1 |= MDIO_PMA_CTRL1_SPEED100; in genphy_c45_pma_setup_forced() 90 ctrl1 |= MDIO_PMA_CTRL1_SPEED1000; in genphy_c45_pma_setup_forced() 95 ctrl1 |= MDIO_CTRL1_SPEED2_5G; in genphy_c45_pma_setup_forced() 100 ctrl1 |= MDIO_CTRL1_SPEED5G; in genphy_c45_pma_setup_forced() 105 ctrl1 |= MDIO_CTRL1_SPEED10G; in genphy_c45_pma_setup_forced() [all …]
|
/linux/drivers/spi/ |
A D | spi-mpc52xx.c | 147 u8 ctrl1; in mpc52xx_spi_fsmstate_idle() local 162 ctrl1 = SPI_CTRL1_SPIE | SPI_CTRL1_SPE | SPI_CTRL1_MSTR; in mpc52xx_spi_fsmstate_idle() 165 ctrl1 |= SPI_CTRL1_CPHA; in mpc52xx_spi_fsmstate_idle() 167 ctrl1 |= SPI_CTRL1_CPOL; in mpc52xx_spi_fsmstate_idle() 169 ctrl1 |= SPI_CTRL1_LSBFE; in mpc52xx_spi_fsmstate_idle() 170 out_8(ms->regs + SPI_CTRL1, ctrl1); in mpc52xx_spi_fsmstate_idle() 386 u8 ctrl1; in mpc52xx_spi_probe() local 397 ctrl1 = SPI_CTRL1_SPIE | SPI_CTRL1_SPE | SPI_CTRL1_MSTR; in mpc52xx_spi_probe() 398 out_8(regs + SPI_CTRL1, ctrl1); in mpc52xx_spi_probe() 408 out_8(regs + SPI_CTRL1, ctrl1); in mpc52xx_spi_probe()
|
/linux/drivers/usb/host/ |
A D | sl811-hcd.c | 94 sl811->ctrl1 = 0; in port_power() 689 sl811->ctrl1 = 0; in sl811h_irq() 1135 sl811->ctrl1 &= ~SL11H_CTL1MASK_FORCE; in sl811h_timer() 1146 sl811->ctrl1 = 0; in sl811h_timer() 1184 sl811->ctrl1 |= SL11H_CTL1MASK_LSPD; in sl811h_timer() 1189 sl811->ctrl1 |= SL11H_CTL1MASK_SOF_ENA; in sl811h_timer() 1202 sl811->ctrl1 = 0; in sl811h_timer() 1244 sl811->ctrl1 = 0; in sl811h_hub_control() 1259 sl811->ctrl1 |= SL11H_CTL1MASK_K; in sl811h_hub_control() 1306 sl811->ctrl1 &= ~SL11H_CTL1MASK_SOF_ENA; in sl811h_hub_control() [all …]
|
/linux/drivers/leds/ |
A D | leds-is31fl319x.c | 119 u8 ctrl1 = 0, ctrl2 = 0; in is31fl319x_brightness_set() local 146 ctrl1 |= on << i; /* 0..2 => bit 0..2 */ in is31fl319x_brightness_set() 148 ctrl1 |= on << (i + 1); /* 3..5 => bit 4..6 */ in is31fl319x_brightness_set() 153 if (ctrl1 > 0 || ctrl2 > 0) { in is31fl319x_brightness_set() 155 ctrl1, ctrl2); in is31fl319x_brightness_set() 156 regmap_write(is31->regmap, IS31FL319X_CTRL1, ctrl1); in is31fl319x_brightness_set()
|
/linux/drivers/gpu/drm/bridge/analogix/ |
A D | analogix-i2c-dptx.c | 104 u8 ctrl1 = msg->request; in anx_dp_aux_transfer() local 117 ctrl1 |= (msg->size - 1) << SP_AUX_LENGTH_SHIFT; in anx_dp_aux_transfer() 133 err = regmap_write(map_dptx, SP_DP_AUX_CH_CTRL1_REG, ctrl1); in anx_dp_aux_transfer()
|
/linux/drivers/iio/accel/ |
A D | kxcjk-1013.c | 190 u8 ctrl1; member 202 .ctrl1 = KXCJK1013_REG_CTRL1, 215 .ctrl1 = KXCJK1013_REG_CTRL1, 228 .ctrl1 = KX023_REG_CNTL1, 433 ret = i2c_smbus_read_byte_data(data->client, data->regs->ctrl1); in kxcjk1013_set_mode() 444 ret = i2c_smbus_write_byte_data(data->client, data->regs->ctrl1, ret); in kxcjk1013_set_mode() 458 ret = i2c_smbus_read_byte_data(data->client, data->regs->ctrl1); in kxcjk1013_get_mode() 476 ret = i2c_smbus_read_byte_data(data->client, data->regs->ctrl1); in kxcjk1013_set_range() 521 ret = i2c_smbus_read_byte_data(data->client, data->regs->ctrl1); in kxcjk1013_chip_init() 681 ret = i2c_smbus_read_byte_data(data->client, data->regs->ctrl1); in kxcjk1013_setup_any_motion_interrupt() [all …]
|
/linux/drivers/comedi/drivers/ |
A D | me_daq.c | 139 unsigned short ctrl1; /* Mirror of CONTROL_1 register */ member 269 devpriv->ctrl1 |= ME_CTRL1_ADC_MODE_SOFT_TRIG; in me_ai_insn_read() 270 writew(devpriv->ctrl1, dev->mmio + ME_CTRL1_REG); in me_ai_insn_read() 289 devpriv->ctrl1 &= ~ME_CTRL1_ADC_MODE_MASK; in me_ai_insn_read() 290 writew(devpriv->ctrl1, dev->mmio + ME_CTRL1_REG); in me_ai_insn_read() 421 devpriv->ctrl1 = 0; in me_reset()
|
/linux/drivers/phy/ |
A D | phy-lgm-usb.c | 71 void __iomem *ctrl1 = phy->io_priv + CTRL1_OFFSET; in phy_init() local 80 ret = readl_poll_timeout(ctrl1, val, val & SRAM_INIT_DONE, 10, 10 * 1000); in phy_init() 86 writel(readl(ctrl1) | SRAM_EXT_LD_DONE, ctrl1); in phy_init()
|
/linux/drivers/gpu/drm/mxsfb/ |
A D | mxsfb_kms.c | 55 u32 ctrl, ctrl1; in mxsfb_set_formats() local 63 ctrl1 = readl(mxsfb->base + LCDC_CTRL1); in mxsfb_set_formats() 64 ctrl1 &= CTRL1_CUR_FRAME_DONE_IRQ_EN | CTRL1_CUR_FRAME_DONE_IRQ; in mxsfb_set_formats() 70 ctrl1 |= CTRL1_SET_BYTE_PACKAGING(0xf); in mxsfb_set_formats() 76 ctrl1 |= CTRL1_SET_BYTE_PACKAGING(0x7); in mxsfb_set_formats() 95 writel(ctrl1, mxsfb->base + LCDC_CTRL1); in mxsfb_set_formats()
|
/linux/drivers/staging/ralink-gdma/ |
A D | ralink-gdma.c | 274 u32 ctrl0, ctrl1; in rt305x_gdma_start_transfer() local 317 ctrl1 = chan->id << GDMA_REG_CTRL1_NEXT_SHIFT; in rt305x_gdma_start_transfer() 322 gdma_dma_write(dma_dev, GDMA_REG_CTRL1(chan->id), ctrl1); in rt305x_gdma_start_transfer() 351 u32 ctrl0, ctrl1; in rt3883_gdma_start_transfer() local 367 ctrl1 = (32 << GDMA_REG_CTRL1_SRC_REQ_SHIFT) | in rt3883_gdma_start_transfer() 373 ctrl1 = (chan->slave_id << GDMA_REG_CTRL1_SRC_REQ_SHIFT) | in rt3883_gdma_start_transfer() 380 ctrl1 = (32 << GDMA_REG_CTRL1_SRC_REQ_SHIFT) | in rt3883_gdma_start_transfer() 392 ctrl1 |= chan->id << GDMA_REG_CTRL1_NEXT_SHIFT; in rt3883_gdma_start_transfer() 397 gdma_dma_write(dma_dev, GDMA_REG_CTRL1(chan->id), ctrl1); in rt3883_gdma_start_transfer()
|
/linux/drivers/iio/adc/ |
A D | ab8500-gpadc.c | 395 u8 ctrl1; in ab8500_gpadc_read() local 430 ctrl1 = AB8500_GPADC_CTRL1_ENABLE; in ab8500_gpadc_read() 451 ctrl1 |= AB8500_GPADC_CTRL1_TRIG_ENA; in ab8500_gpadc_read() 453 ctrl1 |= AB8500_GPADC_CTRL1_TRIG_EDGE; in ab8500_gpadc_read() 472 ctrl1 |= AB8500_GPADC_CTRL1_BUF_ENA | in ab8500_gpadc_read() 477 ctrl1 |= AB8500_GPADC_CTRL1_BUF_ENA | in ab8500_gpadc_read() 489 ctrl1 |= AB8500_GPADC_CTRL1_BUF_ENA; in ab8500_gpadc_read() 495 AB8500_GPADC, AB8500_GPADC_CTRL1_REG, ctrl1); in ab8500_gpadc_read()
|
/linux/drivers/thermal/ |
A D | armada_thermal.c | 504 u32 ctrl1; in armada_set_overheat_thresholds() local 506 regmap_read(priv->syscon, data->syscon_control1_off, &ctrl1); in armada_set_overheat_thresholds() 510 ctrl1 &= ~(data->temp_mask << data->thresh_shift); in armada_set_overheat_thresholds() 511 ctrl1 |= threshold << data->thresh_shift; in armada_set_overheat_thresholds() 517 ctrl1 &= ~(data->hyst_mask << data->hyst_shift); in armada_set_overheat_thresholds() 518 ctrl1 |= hysteresis << data->hyst_shift; in armada_set_overheat_thresholds() 522 regmap_write(priv->syscon, data->syscon_control1_off, ctrl1); in armada_set_overheat_thresholds()
|
/linux/drivers/extcon/ |
A D | extcon-max14577.c | 198 u8 ctrl1, ctrl2 = 0; in max14577_muic_set_path() local 211 ctrl1 = val; in max14577_muic_set_path() 213 ctrl1 = CTRL1_SW_OPEN; in max14577_muic_set_path() 217 CLEAR_IDBEN_MICEN_MASK, ctrl1); in max14577_muic_set_path() 238 ctrl1, ctrl2, attached ? "attached" : "detached"); in max14577_muic_set_path()
|
A D | extcon-max8997.c | 201 u8 ctrl1, ctrl2 = 0; in max8997_muic_set_path() local 204 ctrl1 = val; in max8997_muic_set_path() 206 ctrl1 = CONTROL1_SW_OPEN; in max8997_muic_set_path() 209 MAX8997_MUIC_REG_CONTROL1, ctrl1, COMP_SW_MASK); in max8997_muic_set_path() 230 ctrl1, ctrl2, attached ? "attached" : "detached"); in max8997_muic_set_path()
|
/linux/drivers/input/rmi4/ |
A D | rmi_f3a.c | 170 u8 ctrl1[RMI_F3A_MAX_REG_SIZE]; in rmi_f3a_initialize() local 194 ctrl1, f3a->register_count); in rmi_f3a_initialize() 200 error = rmi_f3a_map_gpios(fn, f3a, query1, ctrl1); in rmi_f3a_initialize()
|