/kernel/linux/linux-5.10/drivers/misc/cardreader/ |
H A D | rts5261.c | 607 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) in rts5261_pci_switch_clock() 675 ssc_depth = depth[ssc_depth]; in rts5261_pci_switch_clock() 677 ssc_depth = double_ssc_depth(ssc_depth); in rts5261_pci_switch_clock() 679 if (ssc_depth) { in rts5261_pci_switch_clock() 681 if (ssc_depth > 1) in rts5261_pci_switch_clock() 682 ssc_depth -= 1; in rts5261_pci_switch_clock() 684 ssc_depth = RTS5261_SSC_DEPTH_8M; in rts5261_pci_switch_clock() 686 if (ssc_depth > in rts5261_pci_switch_clock() 606 rts5261_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rts5261_pci_switch_clock() argument [all...] |
H A D | rts5228.c | 582 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) in rts5228_pci_switch_clock() 645 ssc_depth = depth[ssc_depth]; in rts5228_pci_switch_clock() 647 ssc_depth = double_ssc_depth(ssc_depth); in rts5228_pci_switch_clock() 649 if (ssc_depth) { in rts5228_pci_switch_clock() 651 if (ssc_depth > 1) in rts5228_pci_switch_clock() 652 ssc_depth -= 1; in rts5228_pci_switch_clock() 654 ssc_depth = RTS5228_SSC_DEPTH_8M; in rts5228_pci_switch_clock() 656 if (ssc_depth > in rts5228_pci_switch_clock() 581 rts5228_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rts5228_pci_switch_clock() argument [all...] |
H A D | rtsx_usb.c | 377 static u8 revise_ssc_depth(u8 ssc_depth, u8 div) in revise_ssc_depth() argument 380 if (ssc_depth > div - 1) in revise_ssc_depth() 381 ssc_depth -= (div - 1); in revise_ssc_depth() 383 ssc_depth = SSC_DEPTH_2M; in revise_ssc_depth() 386 return ssc_depth; in revise_ssc_depth() 390 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) in rtsx_usb_switch_clock() 445 ssc_depth = double_ssc_depth(ssc_depth); in rtsx_usb_switch_clock() 447 ssc_depth = revise_ssc_depth(ssc_depth, di in rtsx_usb_switch_clock() 389 rtsx_usb_switch_clock(struct rtsx_ucr *ucr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rtsx_usb_switch_clock() argument [all...] |
H A D | rtsx_pcr.c | 680 static u8 revise_ssc_depth(u8 ssc_depth, u8 div) in revise_ssc_depth() argument 683 if (ssc_depth > (div - 1)) in revise_ssc_depth() 684 ssc_depth -= (div - 1); in revise_ssc_depth() 686 ssc_depth = SSC_DEPTH_4M; in revise_ssc_depth() 689 return ssc_depth; in revise_ssc_depth() 693 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) in rtsx_pci_switch_clock() 707 ssc_depth, initial_mode, double_clk, vpclk); in rtsx_pci_switch_clock() 710 ssc_depth, initial_mode, double_clk, vpclk); in rtsx_pci_switch_clock() 769 ssc_depth = depth[ssc_depth]; in rtsx_pci_switch_clock() 692 rtsx_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rtsx_pci_switch_clock() argument [all...] |
H A D | rts5228.h | 166 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk);
|
H A D | rts5261.h | 231 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk);
|
/kernel/linux/linux-6.6/drivers/misc/cardreader/ |
H A D | rts5228.c | 558 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) in rts5228_pci_switch_clock() 621 ssc_depth = depth[ssc_depth]; in rts5228_pci_switch_clock() 623 ssc_depth = double_ssc_depth(ssc_depth); in rts5228_pci_switch_clock() 625 if (ssc_depth) { in rts5228_pci_switch_clock() 627 if (ssc_depth > 1) in rts5228_pci_switch_clock() 628 ssc_depth -= 1; in rts5228_pci_switch_clock() 630 ssc_depth = RTS5228_SSC_DEPTH_8M; in rts5228_pci_switch_clock() 632 if (ssc_depth > in rts5228_pci_switch_clock() 557 rts5228_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rts5228_pci_switch_clock() argument [all...] |
H A D | rts5261.c | 632 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) in rts5261_pci_switch_clock() 700 ssc_depth = depth[ssc_depth]; in rts5261_pci_switch_clock() 702 ssc_depth = double_ssc_depth(ssc_depth); in rts5261_pci_switch_clock() 704 if (ssc_depth) { in rts5261_pci_switch_clock() 706 if (ssc_depth > 1) in rts5261_pci_switch_clock() 707 ssc_depth -= 1; in rts5261_pci_switch_clock() 709 ssc_depth = RTS5261_SSC_DEPTH_8M; in rts5261_pci_switch_clock() 711 if (ssc_depth > in rts5261_pci_switch_clock() 631 rts5261_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rts5261_pci_switch_clock() argument [all...] |
H A D | rtsx_usb.c | 377 static u8 revise_ssc_depth(u8 ssc_depth, u8 div) in revise_ssc_depth() argument 380 if (ssc_depth > div - 1) in revise_ssc_depth() 381 ssc_depth -= (div - 1); in revise_ssc_depth() 383 ssc_depth = SSC_DEPTH_2M; in revise_ssc_depth() 386 return ssc_depth; in revise_ssc_depth() 390 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) in rtsx_usb_switch_clock() 445 ssc_depth = double_ssc_depth(ssc_depth); in rtsx_usb_switch_clock() 447 ssc_depth = revise_ssc_depth(ssc_depth, di in rtsx_usb_switch_clock() 389 rtsx_usb_switch_clock(struct rtsx_ucr *ucr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rtsx_usb_switch_clock() argument [all...] |
H A D | rtsx_pcr.c | 686 static u8 revise_ssc_depth(u8 ssc_depth, u8 div) in revise_ssc_depth() argument 689 if (ssc_depth > (div - 1)) in revise_ssc_depth() 690 ssc_depth -= (div - 1); in revise_ssc_depth() 692 ssc_depth = SSC_DEPTH_4M; in revise_ssc_depth() 695 return ssc_depth; in revise_ssc_depth() 699 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) in rtsx_pci_switch_clock() 713 ssc_depth, initial_mode, double_clk, vpclk); in rtsx_pci_switch_clock() 716 ssc_depth, initial_mode, double_clk, vpclk); in rtsx_pci_switch_clock() 775 ssc_depth = depth[ssc_depth]; in rtsx_pci_switch_clock() 698 rtsx_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk) rtsx_pci_switch_clock() argument [all...] |
H A D | rts5228.h | 166 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk);
|
H A D | rts5261.h | 204 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk);
|
/kernel/linux/linux-5.10/drivers/memstick/host/ |
H A D | rtsx_pci_ms.c | 27 u8 ssc_depth; member 401 rtsx_pci_switch_clock(host->pcr, host->clock, host->ssc_depth, in rtsx_pci_ms_handle_req() 438 u8 ssc_depth = 0; in rtsx_pci_ms_set_param() local 461 ssc_depth = RTSX_SSC_DEPTH_500K; in rtsx_pci_ms_set_param() 469 ssc_depth = RTSX_SSC_DEPTH_1M; in rtsx_pci_ms_set_param() 480 ssc_depth, false, true, false); in rtsx_pci_ms_set_param() 484 host->ssc_depth = ssc_depth; in rtsx_pci_ms_set_param()
|
H A D | rtsx_usb_ms.c | 34 u8 ssc_depth; member 557 u8 ssc_depth = 0; in rtsx_usb_ms_set_param() local 593 ssc_depth = SSC_DEPTH_512K; in rtsx_usb_ms_set_param() 600 ssc_depth = SSC_DEPTH_1M; in rtsx_usb_ms_set_param() 613 ssc_depth, false, true, false); in rtsx_usb_ms_set_param() 619 host->ssc_depth = ssc_depth; in rtsx_usb_ms_set_param()
|
/kernel/linux/linux-6.6/drivers/memstick/host/ |
H A D | rtsx_pci_ms.c | 27 u8 ssc_depth; member 401 rtsx_pci_switch_clock(host->pcr, host->clock, host->ssc_depth, in rtsx_pci_ms_handle_req() 438 u8 ssc_depth = 0; in rtsx_pci_ms_set_param() local 461 ssc_depth = RTSX_SSC_DEPTH_500K; in rtsx_pci_ms_set_param() 469 ssc_depth = RTSX_SSC_DEPTH_1M; in rtsx_pci_ms_set_param() 480 ssc_depth, false, true, false); in rtsx_pci_ms_set_param() 484 host->ssc_depth = ssc_depth; in rtsx_pci_ms_set_param()
|
H A D | rtsx_usb_ms.c | 34 u8 ssc_depth; member 557 u8 ssc_depth = 0; in rtsx_usb_ms_set_param() local 593 ssc_depth = SSC_DEPTH_512K; in rtsx_usb_ms_set_param() 600 ssc_depth = SSC_DEPTH_1M; in rtsx_usb_ms_set_param() 613 ssc_depth, false, true, false); in rtsx_usb_ms_set_param() 619 host->ssc_depth = ssc_depth; in rtsx_usb_ms_set_param()
|
/kernel/linux/linux-5.10/drivers/staging/rts5208/ |
H A D | rtsx_card.c | 626 u8 mcu_cnt, div, max_div, ssc_depth, ssc_depth_mask; in switch_ssc_clock() local 654 ssc_depth = 0x01; in switch_ssc_clock() 657 ssc_depth = 0; in switch_ssc_clock() 662 dev_dbg(rtsx_dev(chip), "ssc_depth = %d\n", ssc_depth); in switch_ssc_clock() local 668 rtsx_add_cmd(chip, WRITE_REG_CMD, SSC_CTL2, ssc_depth_mask, ssc_depth); in switch_ssc_clock()
|
/kernel/linux/linux-6.6/drivers/staging/rts5208/ |
H A D | rtsx_card.c | 626 u8 mcu_cnt, div, max_div, ssc_depth, ssc_depth_mask; in switch_ssc_clock() local 654 ssc_depth = 0x01; in switch_ssc_clock() 657 ssc_depth = 0; in switch_ssc_clock() 662 dev_dbg(rtsx_dev(chip), "ssc_depth = %d\n", ssc_depth); in switch_ssc_clock() local 668 rtsx_add_cmd(chip, WRITE_REG_CMD, SSC_CTL2, ssc_depth_mask, ssc_depth); in switch_ssc_clock()
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
H A D | rtsx_pci_sdmmc.c | 34 u8 ssc_depth; member 822 rtsx_pci_switch_clock(pcr, host->clock, host->ssc_depth, in sd_request() 1082 host->ssc_depth = RTSX_SSC_DEPTH_2M; in sdmmc_set_ios() 1089 host->ssc_depth = RTSX_SSC_DEPTH_1M; in sdmmc_set_ios() 1092 host->ssc_depth = RTSX_SSC_DEPTH_500K; in sdmmc_set_ios() 1099 rtsx_pci_switch_clock(pcr, ios->clock, host->ssc_depth, in sdmmc_set_ios()
|
H A D | rtsx_usb_sdmmc.c | 41 u8 ssc_depth; member 1123 host->ssc_depth = SSC_DEPTH_2M; in sdmmc_set_ios() 1129 host->ssc_depth = SSC_DEPTH_1M; in sdmmc_set_ios() 1132 host->ssc_depth = SSC_DEPTH_512K; in sdmmc_set_ios() 1139 rtsx_usb_switch_clock(host->ucr, host->clock, host->ssc_depth, in sdmmc_set_ios()
|
/kernel/linux/linux-6.6/drivers/mmc/host/ |
H A D | rtsx_pci_sdmmc.c | 35 u8 ssc_depth; member 825 rtsx_pci_switch_clock(pcr, host->clock, host->ssc_depth, in sd_request() 1112 host->ssc_depth = RTSX_SSC_DEPTH_2M; in sdmmc_set_ios() 1119 host->ssc_depth = RTSX_SSC_DEPTH_1M; in sdmmc_set_ios() 1122 host->ssc_depth = RTSX_SSC_DEPTH_500K; in sdmmc_set_ios() 1129 rtsx_pci_switch_clock(pcr, ios->clock, host->ssc_depth, in sdmmc_set_ios()
|
H A D | rtsx_usb_sdmmc.c | 41 u8 ssc_depth; member 1120 host->ssc_depth = SSC_DEPTH_2M; in sdmmc_set_ios() 1126 host->ssc_depth = SSC_DEPTH_1M; in sdmmc_set_ios() 1129 host->ssc_depth = SSC_DEPTH_512K; in sdmmc_set_ios() 1136 rtsx_usb_switch_clock(host->ucr, host->clock, host->ssc_depth, in sdmmc_set_ios()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | rtsx_usb.h | 88 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk);
|
H A D | rtsx_pci.h | 1286 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk);
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | rtsx_usb.h | 88 u8 ssc_depth, bool initial_mode, bool double_clk, bool vpclk);
|