/linux-6.1.9/drivers/staging/rts5208/ |
D | rtsx_chip.c | 104 retval = rtsx_write_register(chip, CARD_PULL_CTL5, in rtsx_pre_handle_sdio_old() 111 retval = rtsx_write_register(chip, FPGA_PULL_CTL, in rtsx_pre_handle_sdio_old() 117 retval = rtsx_write_register(chip, CARD_SHARE_MODE, 0xFF, in rtsx_pre_handle_sdio_old() 123 retval = rtsx_write_register(chip, 0xFF2C, 0x01, 0x01); in rtsx_pre_handle_sdio_old() 127 retval = rtsx_write_register(chip, SDIO_CTRL, 0xFF, in rtsx_pre_handle_sdio_old() 184 retval = rtsx_write_register(chip, 0xFE5A, in rtsx_pre_handle_sdio_new() 189 retval = rtsx_write_register(chip, 0xFE70, in rtsx_pre_handle_sdio_new() 195 retval = rtsx_write_register(chip, TLPTISTAT, 0xFF, in rtsx_pre_handle_sdio_new() 209 retval = rtsx_write_register in rtsx_pre_handle_sdio_new() 222 retval = rtsx_write_register(chip, 0xFE5A, in rtsx_pre_handle_sdio_new() [all …]
|
D | rtsx_card.c | 91 rtsx_write_register(chip, SDIO_CTRL, 0xFF, in try_to_switch_sdio_ctrl() 93 rtsx_write_register(chip, PWR_GATE_CTRL, in try_to_switch_sdio_ctrl() 124 rtsx_write_register(chip, ASPM_FORCE_CTL, 0xFC, in dynamic_configure_sdio_aspm() 131 rtsx_write_register(chip, ASPM_FORCE_CTL, 0xFC, 0x30); in dynamic_configure_sdio_aspm() 155 rtsx_write_register(chip, SDIO_CTRL, 0xFF, 0); in do_reset_sd_card() 180 rtsx_write_register(chip, CARD_OE, SD_OUTPUT_EN, 0); in do_reset_sd_card() 209 rtsx_write_register(chip, SDIO_CTRL, 0xFF, 0); in do_reset_xd_card() 233 rtsx_write_register(chip, CARD_OE, XD_OUTPUT_EN, 0); in do_reset_xd_card() 257 rtsx_write_register(chip, SDIO_CTRL, 0xFF, 0); in do_reset_ms_card() 281 rtsx_write_register(chip, CARD_OE, MS_OUTPUT_EN, 0); in do_reset_ms_card() [all …]
|
D | sd.c | 528 retval = rtsx_write_register(chip, REG_SD_CFG1, 0x1C, val); 590 retval = rtsx_write_register(chip, REG_SD_CFG1, mask, val); 700 retval = rtsx_write_register(chip, SD_PAD_CTL, 713 retval = rtsx_write_register(chip, SD_PAD_CTL, 731 retval = rtsx_write_register(chip, SD_BUS_STAT, 752 retval = rtsx_write_register(chip, SD_BUS_STAT, 0xFF, 762 retval = rtsx_write_register(chip, SD_BUS_STAT, 0xFF, 776 rtsx_write_register(chip, SD_BUS_STAT, SD_CLK_TOGGLE_EN | 778 rtsx_write_register(chip, CARD_CLK_EN, 0xFF, 0); 782 retval = rtsx_write_register(chip, SD_BUS_STAT, [all …]
|
D | spi.c | 30 retval = rtsx_write_register(chip, SPI_CONTROL, 0xFF, in spi_init() 35 retval = rtsx_write_register(chip, SPI_TCTL, EDO_TIMING_MASK, in spi_init() 48 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER1, 0xFF, in spi_set_init_para() 52 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER0, 0xFF, in spi_set_init_para() 65 retval = rtsx_write_register(chip, CARD_CLK_EN, SPI_CLK_EN, in spi_set_init_para() 69 retval = rtsx_write_register(chip, CARD_OE, SPI_OUTPUT_EN, in spi_set_init_para() 229 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER1, 0xFF, 0x00); in spi_init_eeprom() 232 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER0, 0xFF, 0x27); in spi_init_eeprom() 244 retval = rtsx_write_register(chip, CARD_CLK_EN, SPI_CLK_EN, in spi_init_eeprom() 248 retval = rtsx_write_register(chip, CARD_OE, SPI_OUTPUT_EN, in spi_init_eeprom() [all …]
|
D | ms.c | 390 retval = rtsx_write_register(chip, CARD_PULL_CTL1, 0xFF, in ms_pull_ctl_disable() 396 retval = rtsx_write_register(chip, CARD_PULL_CTL2, 0xFF, in ms_pull_ctl_disable() 402 retval = rtsx_write_register(chip, CARD_PULL_CTL3, 0xFF, in ms_pull_ctl_disable() 408 retval = rtsx_write_register(chip, CARD_PULL_CTL4, 0xFF, in ms_pull_ctl_disable() 414 retval = rtsx_write_register(chip, CARD_PULL_CTL5, 0xFF, in ms_pull_ctl_disable() 420 retval = rtsx_write_register(chip, CARD_PULL_CTL6, 0xFF, in ms_pull_ctl_disable() 427 retval = rtsx_write_register(chip, CARD_PULL_CTL1, in ms_pull_ctl_disable() 432 retval = rtsx_write_register(chip, CARD_PULL_CTL2, in ms_pull_ctl_disable() 437 retval = rtsx_write_register(chip, CARD_PULL_CTL3, in ms_pull_ctl_disable() 442 retval = rtsx_write_register(chip, CARD_PULL_CTL4, in ms_pull_ctl_disable() [all …]
|
D | rtsx_card.h | 1052 retval = rtsx_write_register(chip, CARD_PWR_CTL, 0x0F, 0x0F); in card_power_off_all() 1061 rtsx_write_register(chip, CARD_STOP, XD_STOP | XD_CLR_ERR, in rtsx_clear_xd_error() 1067 rtsx_write_register(chip, CARD_STOP, SD_STOP | SD_CLR_ERR, in rtsx_clear_sd_error() 1073 rtsx_write_register(chip, CARD_STOP, MS_STOP | MS_CLR_ERR, in rtsx_clear_ms_error() 1079 rtsx_write_register(chip, CARD_STOP, SPI_STOP | SPI_CLR_ERR, in rtsx_clear_spi_error()
|
D | xd.c | 376 retval = rtsx_write_register(chip, CARD_PULL_CTL1, 0xFF, in xd_pull_ctl_disable() 383 retval = rtsx_write_register(chip, CARD_PULL_CTL2, 0xFF, in xd_pull_ctl_disable() 390 retval = rtsx_write_register(chip, CARD_PULL_CTL3, 0xFF, in xd_pull_ctl_disable() 397 retval = rtsx_write_register(chip, CARD_PULL_CTL4, 0xFF, in xd_pull_ctl_disable() 404 retval = rtsx_write_register(chip, CARD_PULL_CTL5, 0xFF, in xd_pull_ctl_disable() 411 retval = rtsx_write_register(chip, CARD_PULL_CTL6, 0xFF, in xd_pull_ctl_disable() 417 retval = rtsx_write_register(chip, CARD_PULL_CTL1, in xd_pull_ctl_disable() 421 retval = rtsx_write_register(chip, CARD_PULL_CTL2, in xd_pull_ctl_disable() 425 retval = rtsx_write_register(chip, CARD_PULL_CTL3, in xd_pull_ctl_disable() 429 retval = rtsx_write_register(chip, CARD_PULL_CTL4, in xd_pull_ctl_disable() [all …]
|
D | rtsx_scsi.c | 1280 retval = rtsx_write_register(chip, addr + i, 0xFF, buf[i]); in write_mem() 1684 retval = rtsx_write_register(chip, CDRESUMECTL, 0x77, 0); in set_chip_mode() 1700 retval = rtsx_write_register(chip, CDRESUMECTL, 0x77, 0x77); in set_chip_mode() 2138 retval = rtsx_write_register(chip, PWR_GATE_CTRL, in write_efuse() 2154 retval = rtsx_write_register(chip, PWR_GATE_CTRL, in write_efuse() 2190 retval = rtsx_write_register(chip, PWR_GATE_CTRL, in write_efuse() 2201 retval = rtsx_write_register(chip, PWR_GATE_CTRL, in write_efuse() 2582 rtsx_write_register(chip, CARD_GPIO_DIR, 0x07, gpio_dir & 0x06); in spi_vendor_cmd() 2614 rtsx_write_register(chip, CARD_GPIO_DIR, 0x07, gpio_dir); in spi_vendor_cmd() 2620 rtsx_write_register(chip, CARD_GPIO_DIR, 0x07, gpio_dir); in spi_vendor_cmd()
|
D | rtsx.c | 316 rtsx_write_register(chip, HOST_SLEEP_STATE, 0x03, 0x00); in rtsx_resume()
|
D | rtsx_chip.h | 960 int rtsx_write_register(struct rtsx_chip *chip, u16 addr, u8 mask, u8 data);
|