/Linux-v6.1/drivers/gpu/drm/tve200/ |
D | tve200_display.c | 133 u32 ctrl1 = 0; in tve200_display_enable() local 154 ctrl1 |= TVE200_CTRL_CSMODE; in tve200_display_enable() 156 ctrl1 |= TVE200_CTRL_NONINTERLACE; in tve200_display_enable() 158 ctrl1 |= TVE200_CTRL_BURST_32_WORDS; in tve200_display_enable() 160 ctrl1 |= TVE200_CTRL_RETRYCNT_16; in tve200_display_enable() 162 ctrl1 |= TVE200_CTRL_NTSC; in tve200_display_enable() 165 ctrl1 |= TVE200_VSTSTYPE_VSYNC; in tve200_display_enable() 169 ctrl1 |= TVE200_CTRL_TVCLKP; in tve200_display_enable() 173 ctrl1 |= TVE200_CTRL_IPRESOL_CIF; in tve200_display_enable() 176 ctrl1 |= TVE200_CTRL_IPRESOL_VGA; in tve200_display_enable() [all …]
|
/Linux-v6.1/drivers/gpu/drm/aspeed/ |
D | aspeed_gfx_crtc.c | 32 u32 ctrl1; in aspeed_gfx_set_pixel_fmt() local 34 ctrl1 = readl(priv->base + CRT_CTRL1); in aspeed_gfx_set_pixel_fmt() 35 ctrl1 &= ~CRT_CTRL_COLOR_MASK; in aspeed_gfx_set_pixel_fmt() 40 ctrl1 |= CRT_CTRL_COLOR_RGB565; in aspeed_gfx_set_pixel_fmt() 45 ctrl1 |= CRT_CTRL_COLOR_XRGB8888; in aspeed_gfx_set_pixel_fmt() 53 writel(ctrl1, priv->base + CRT_CTRL1); in aspeed_gfx_set_pixel_fmt() 60 u32 ctrl1 = readl(priv->base + CRT_CTRL1); in aspeed_gfx_enable_controller() local 66 writel(ctrl1 | CRT_CTRL_EN, priv->base + CRT_CTRL1); in aspeed_gfx_enable_controller() 72 u32 ctrl1 = readl(priv->base + CRT_CTRL1); in aspeed_gfx_disable_controller() local 75 writel(ctrl1 & ~CRT_CTRL_EN, priv->base + CRT_CTRL1); in aspeed_gfx_disable_controller() [all …]
|
/Linux-v6.1/drivers/crypto/bcm/ |
D | spu2.c | 367 /* Dump FMD ctrl1. The ctrl1 input is in host byte order */ 368 static void spu2_dump_fmd_ctrl1(u64 ctrl1) in spu2_dump_fmd_ctrl1() argument 378 packet_log(" FMD CTRL1 %#16llx\n", ctrl1); in spu2_dump_fmd_ctrl1() 379 if (ctrl1 & SPU2_TAG_LOC) in spu2_dump_fmd_ctrl1() 383 if (ctrl1 & SPU2_HAS_FR_DATA) in spu2_dump_fmd_ctrl1() 385 if (ctrl1 & SPU2_HAS_AAD1) in spu2_dump_fmd_ctrl1() 387 if (ctrl1 & SPU2_HAS_NAAD) in spu2_dump_fmd_ctrl1() 389 if (ctrl1 & SPU2_HAS_AAD2) in spu2_dump_fmd_ctrl1() 391 if (ctrl1 & SPU2_HAS_ESN) in spu2_dump_fmd_ctrl1() 395 hash_key_len = (ctrl1 & SPU2_HASH_KEY_LEN) >> SPU2_HASH_KEY_LEN_SHIFT; in spu2_dump_fmd_ctrl1() [all …]
|
/Linux-v6.1/drivers/net/can/cc770/ |
D | cc770.c | 149 cc770_write_reg(priv, msgobj[mo].ctrl1, in enable_all_objs() 153 cc770_write_reg(priv, msgobj[mo].ctrl1, in enable_all_objs() 160 cc770_write_reg(priv, msgobj[mo].ctrl1, in enable_all_objs() 181 cc770_write_reg(priv, msgobj[mo].ctrl1, in disable_all_objs() 189 cc770_write_reg(priv, msgobj[mo].ctrl1, in disable_all_objs() 270 cc770_write_reg(priv, msgobj[mo].ctrl1, in chipset_init() 400 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_tx() 421 cc770_write_reg(priv, msgobj[mo].ctrl1, in cc770_tx() 438 msgobj[mo].ctrl1) & TXRQST_UNC) == TXRQST_SET) { in cc770_start_xmit() 449 static void cc770_rx(struct net_device *dev, unsigned int mo, u8 ctrl1) in cc770_rx() argument [all …]
|
/Linux-v6.1/drivers/rtc/ |
D | rtc-rx8025.c | 82 u8 ctrl1; member 202 rx8025->ctrl1 & ~RX8025_BIT_CTRL1_DALE)) in rx8025_handle_irq() 293 rx8025->ctrl1 = ctrl[0] & ~RX8025_BIT_CTRL1_TEST; in rx8025_init_client() 353 t->enabled = !!(rx8025->ctrl1 & RX8025_BIT_CTRL1_DALE); in rx8025_read_alarm() 375 if (rx8025->ctrl1 & RX8025_BIT_CTRL1_DALE) { in rx8025_set_alarm() 376 rx8025->ctrl1 &= ~RX8025_BIT_CTRL1_DALE; in rx8025_set_alarm() 378 rx8025->ctrl1); in rx8025_set_alarm() 387 rx8025->ctrl1 |= RX8025_BIT_CTRL1_DALE; in rx8025_set_alarm() 389 rx8025->ctrl1); in rx8025_set_alarm() 401 u8 ctrl1; in rx8025_alarm_irq_enable() local [all …]
|
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 233 err = regmap_read(rtc->rn5t618->regmap, RN5T618_RTC_CTRL1, &ctrl1); in rc5t619_rtc_read_alarm() 258 if (ctrl1 & CTRL1_24HR) in rc5t619_rtc_read_alarm() 266 alrm->enabled = !!(ctrl1 & CTRL1_ALARM_ENABLED); in rc5t619_rtc_read_alarm() [all …]
|
D | rtc-pcf2127.c | 511 unsigned int ctrl1, ctrl2; in pcf2127_rtc_irq() local 514 ret = regmap_read(pcf2127->regmap, PCF2127_REG_CTRL1, &ctrl1); in pcf2127_rtc_irq() 522 if (!(ctrl1 & PCF2127_CTRL1_IRQ_MASK || ctrl2 & PCF2127_CTRL2_IRQ_MASK)) in pcf2127_rtc_irq() 525 if (ctrl1 & PCF2127_BIT_CTRL1_TSF1 || ctrl2 & PCF2127_BIT_CTRL2_TSF2) in pcf2127_rtc_irq() 528 if (ctrl1 & PCF2127_CTRL1_IRQ_MASK) in pcf2127_rtc_irq() 530 ctrl1 & ~PCF2127_CTRL1_IRQ_MASK); in pcf2127_rtc_irq() 568 dev_err(dev, "%s: update ctrl1 ret=%d\n", __func__, ret); in timestamp0_store() 591 unsigned int ctrl1, ctrl2; in timestamp0_show() local 600 ret = regmap_read(pcf2127->regmap, PCF2127_REG_CTRL1, &ctrl1); in timestamp0_show() 608 if (!(ctrl1 & PCF2127_BIT_CTRL1_TSF1) && in timestamp0_show()
|
/Linux-v6.1/sound/soc/codecs/ |
D | ssm2518.c | 340 unsigned int ctrl1, ctrl1_mask; in ssm2518_hw_params() local 351 ctrl1 = SSM2518_SAI_CTRL1_FS_8000_12000; in ssm2518_hw_params() 353 ctrl1 = SSM2518_SAI_CTRL1_FS_16000_24000; in ssm2518_hw_params() 355 ctrl1 = SSM2518_SAI_CTRL1_FS_32000_48000; in ssm2518_hw_params() 357 ctrl1 = SSM2518_SAI_CTRL1_FS_64000_96000; in ssm2518_hw_params() 364 ctrl1 |= SSM2518_SAI_CTRL1_FMT_RJ_16BIT; in ssm2518_hw_params() 367 ctrl1 |= SSM2518_SAI_CTRL1_FMT_RJ_24BIT; in ssm2518_hw_params() 382 ctrl1_mask, ctrl1); in ssm2518_hw_params() 407 unsigned int ctrl1 = 0, ctrl2 = 0; in ssm2518_set_dai_fmt() local 440 ctrl1 |= SSM2518_SAI_CTRL1_FMT_I2S; in ssm2518_set_dai_fmt() [all …]
|
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()
|
D | adau1977.c | 300 unsigned int ctrl1; in adau1977_hw_params() local 336 ctrl1 = ADAU1977_SAI_CTRL1_DATA_WIDTH_16BIT; in adau1977_hw_params() 341 ctrl1 = ADAU1977_SAI_CTRL1_DATA_WIDTH_24BIT; in adau1977_hw_params() 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() 541 ctrl1 = ADAU1977_SAI_CTRL1_SLOT_WIDTH_32; in adau1977_set_tdm_slot() [all …]
|
D | ak4613.c | 113 #define CTRL1 0x03 /* Control 1 */ macro 146 /* CTRL1 */ 191 * Same as Ctrl1 :: TDM1/TDM0 232 u8 ctrl1; member 272 * CTRL1 register 288 #define AK4613_CTRL1_TO_MODE(priv) ((priv)->ctrl1 >> 6) /* AK4613_CONFIG_MODE_x */ 394 priv->ctrl1 = 0; in ak4613_dai_shutdown() 605 * If it was already working, use current priv->ctrl1 in ak4613_dai_hw_params() 626 * Ctrl1 in ak4613_dai_hw_params() 631 priv->ctrl1 = (tdm << 6) | (iface->dif << 3); in ak4613_dai_hw_params() [all …]
|
/Linux-v6.1/drivers/spi/ |
D | spi-mpc52xx.c | 152 u8 ctrl1; in mpc52xx_spi_fsmstate_idle() local 167 ctrl1 = SPI_CTRL1_SPIE | SPI_CTRL1_SPE | SPI_CTRL1_MSTR; in mpc52xx_spi_fsmstate_idle() 170 ctrl1 |= SPI_CTRL1_CPHA; in mpc52xx_spi_fsmstate_idle() 172 ctrl1 |= SPI_CTRL1_CPOL; in mpc52xx_spi_fsmstate_idle() 174 ctrl1 |= SPI_CTRL1_LSBFE; in mpc52xx_spi_fsmstate_idle() 175 out_8(ms->regs + SPI_CTRL1, ctrl1); in mpc52xx_spi_fsmstate_idle() 392 u8 ctrl1; in mpc52xx_spi_probe() local 402 ctrl1 = SPI_CTRL1_SPIE | SPI_CTRL1_SPE | SPI_CTRL1_MSTR; in mpc52xx_spi_probe() 403 out_8(regs + SPI_CTRL1, ctrl1); in mpc52xx_spi_probe() 413 out_8(regs + SPI_CTRL1, ctrl1); in mpc52xx_spi_probe()
|
/Linux-v6.1/drivers/net/phy/ |
D | phy-c45.c | 109 int ctrl1, ctrl2, ret; in genphy_c45_pma_setup_forced() local 115 ctrl1 = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_CTRL1); in genphy_c45_pma_setup_forced() 116 if (ctrl1 < 0) in genphy_c45_pma_setup_forced() 117 return ctrl1; in genphy_c45_pma_setup_forced() 123 ctrl1 &= ~MDIO_CTRL1_SPEEDSEL; in genphy_c45_pma_setup_forced() 138 ctrl1 |= MDIO_PMA_CTRL1_SPEED100; in genphy_c45_pma_setup_forced() 142 ctrl1 |= MDIO_PMA_CTRL1_SPEED1000; in genphy_c45_pma_setup_forced() 147 ctrl1 |= MDIO_CTRL1_SPEED2_5G; in genphy_c45_pma_setup_forced() 152 ctrl1 |= MDIO_CTRL1_SPEED5G; in genphy_c45_pma_setup_forced() 157 ctrl1 |= MDIO_CTRL1_SPEED10G; in genphy_c45_pma_setup_forced() [all …]
|
/Linux-v6.1/drivers/usb/host/ |
D | sl811-hcd.c | 94 sl811->ctrl1 = 0; in port_power() 114 sl811_write(sl811, SL11H_CTLREG1, sl811->ctrl1); in port_power() 689 sl811->ctrl1 = 0; in sl811h_irq() 690 sl811_write(sl811, SL11H_CTLREG1, sl811->ctrl1); in sl811h_irq() 868 if (!(sl811->ctrl1 & SL11H_CTL1MASK_LSPD)) in sl811h_urb_enqueue() 1127 u8 signaling = sl811->ctrl1 & SL11H_CTL1MASK_FORCE; in sl811h_timer() 1135 sl811->ctrl1 &= ~SL11H_CTL1MASK_FORCE; in sl811h_timer() 1136 sl811_write(sl811, SL11H_CTLREG1, sl811->ctrl1); in sl811h_timer() 1146 sl811->ctrl1 = 0; in sl811h_timer() 1184 sl811->ctrl1 |= SL11H_CTL1MASK_LSPD; in sl811h_timer() [all …]
|
/Linux-v6.1/drivers/input/rmi4/ |
D | rmi_f3a.c | 170 u8 ctrl1[RMI_F3A_MAX_REG_SIZE]; in rmi_f3a_initialize() local 192 /* Ctrl1 -> gpio direction */ in rmi_f3a_initialize() 194 ctrl1, f3a->register_count); in rmi_f3a_initialize() 200 error = rmi_f3a_map_gpios(fn, f3a, query1, ctrl1); in rmi_f3a_initialize()
|
/Linux-v6.1/drivers/gpu/drm/bridge/analogix/ |
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-v6.1/drivers/gpu/drm/mxsfb/ |
D | mxsfb_kms.c | 56 u32 ctrl, ctrl1; in mxsfb_set_formats() local 63 /* CTRL1 contains IRQ config and status bits, preserve those. */ in mxsfb_set_formats() 64 ctrl1 = readl(mxsfb->base + LCDC_CTRL1); in mxsfb_set_formats() 65 ctrl1 &= CTRL1_CUR_FRAME_DONE_IRQ_EN | CTRL1_CUR_FRAME_DONE_IRQ; in mxsfb_set_formats() 71 ctrl1 |= CTRL1_SET_BYTE_PACKAGING(0xf); in mxsfb_set_formats() 77 ctrl1 |= CTRL1_SET_BYTE_PACKAGING(0x7); in mxsfb_set_formats() 96 writel(ctrl1, mxsfb->base + LCDC_CTRL1); in mxsfb_set_formats() 192 * All known revisions of the LCDIF IP have CTRL1 RECOVER_ON_UNDERFLOW in mxsfb_enable_controller()
|
/Linux-v6.1/drivers/leds/ |
D | leds-is31fl319x.c | 253 u8 ctrl1 = 0, ctrl2 = 0; in is31fl3196_brightness_set() local 278 ctrl1 |= on << i; /* 0..2 => bit 0..2 */ in is31fl3196_brightness_set() 280 ctrl1 |= on << (i + 1); /* 3..5 => bit 4..6 */ in is31fl3196_brightness_set() 285 if (ctrl1 > 0 || ctrl2 > 0) { in is31fl3196_brightness_set() 287 ctrl1, ctrl2); in is31fl3196_brightness_set() 288 regmap_write(is31->regmap, IS31FL3196_CTRL1, ctrl1); in is31fl3196_brightness_set() 296 /* shut down (no need to clear CTRL1/2) */ in is31fl3196_brightness_set()
|
/Linux-v6.1/drivers/phy/ |
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-v6.1/drivers/iio/accel/ |
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() 487 ret = i2c_smbus_write_byte_data(data->client, data->regs->ctrl1, ret); in kxcjk1013_set_range() 521 ret = i2c_smbus_read_byte_data(data->client, data->regs->ctrl1); in kxcjk1013_chip_init() [all …]
|
/Linux-v6.1/drivers/comedi/drivers/ |
D | me_daq.c | 138 unsigned short ctrl1; /* Mirror of CONTROL_1 register */ member 268 devpriv->ctrl1 |= ME_CTRL1_ADC_MODE_SOFT_TRIG; in me_ai_insn_read() 269 writew(devpriv->ctrl1, dev->mmio + ME_CTRL1_REG); in me_ai_insn_read() 288 devpriv->ctrl1 &= ~ME_CTRL1_ADC_MODE_MASK; in me_ai_insn_read() 289 writew(devpriv->ctrl1, dev->mmio + ME_CTRL1_REG); in me_ai_insn_read() 420 devpriv->ctrl1 = 0; in me_reset()
|
/Linux-v6.1/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_eqs.c | 485 u32 page_size_val, elem_size, val, ctrl1; in get_ctrl1_val() local 489 /* RMW Ctrl1 */ in get_ctrl1_val() 501 ctrl1 = HINIC_AEQ_CTRL_1_SET(eq->q_len, LEN) | in get_ctrl1_val() 505 val |= ctrl1; in get_ctrl1_val() 507 /* RMW Ctrl1 */ in get_ctrl1_val() 517 ctrl1 = HINIC_CEQ_CTRL_1_SET(eq->q_len, LEN) | in get_ctrl1_val() 520 val |= ctrl1; in get_ctrl1_val() 554 ceq_ctrl.ctrl1 = get_ctrl1_val(eq, addr); in set_ceq_ctrl_reg()
|
/Linux-v6.1/drivers/extcon/ |
D | extcon-max77843.c | 204 unsigned int ctrl1, ctrl2; in max77843_muic_set_path() local 207 ctrl1 = val; in max77843_muic_set_path() 209 ctrl1 = MAX77843_MUIC_CONTROL1_SW_OPEN; in max77843_muic_set_path() 212 ctrl1 |= MAX77843_MUIC_CONTROL1_NOBCCOMP_MASK; in max77843_muic_set_path() 219 ctrl1); in max77843_muic_set_path() 241 ctrl1, ctrl2, attached ? "attached" : "detached"); in max77843_muic_set_path()
|
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-v6.1/drivers/thermal/ |
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()
|