Home
last modified time | relevance | path

Searched refs:card_clock (Results 1 – 7 of 7) sorted by relevance

/drivers/misc/cardreader/
Drtsx_usb.c389 int rtsx_usb_switch_clock(struct rtsx_ucr *ucr, unsigned int card_clock, in rtsx_usb_switch_clock() argument
395 if (!card_clock) { in rtsx_usb_switch_clock()
403 card_clock = 30000000; in rtsx_usb_switch_clock()
413 card_clock /= 1000000; in rtsx_usb_switch_clock()
415 "Switch card clock to %dMHz\n", card_clock); in rtsx_usb_switch_clock()
418 card_clock *= 2; in rtsx_usb_switch_clock()
421 card_clock, ucr->cur_clk); in rtsx_usb_switch_clock()
423 if (card_clock == ucr->cur_clk) in rtsx_usb_switch_clock()
427 n = card_clock - 2; in rtsx_usb_switch_clock()
428 if ((card_clock <= 2) || (n > MAX_DIV_N)) in rtsx_usb_switch_clock()
[all …]
Drts5261.c606 int rts5261_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, in rts5261_pci_switch_clock() argument
623 card_clock = 60000000; in rts5261_pci_switch_clock()
626 card_clock = 30000000; in rts5261_pci_switch_clock()
636 card_clock /= 1000000; in rts5261_pci_switch_clock()
637 pcr_dbg(pcr, "Switch card clock to %dMHz\n", card_clock); in rts5261_pci_switch_clock()
639 clk = card_clock; in rts5261_pci_switch_clock()
641 clk = card_clock * 2; in rts5261_pci_switch_clock()
Drts5228.c581 int rts5228_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, in rts5228_pci_switch_clock() argument
597 card_clock = 30000000; in rts5228_pci_switch_clock()
606 card_clock /= 1000000; in rts5228_pci_switch_clock()
607 pcr_dbg(pcr, "Switch card clock to %dMHz\n", card_clock); in rts5228_pci_switch_clock()
609 clk = card_clock; in rts5228_pci_switch_clock()
611 clk = card_clock * 2; in rts5228_pci_switch_clock()
Drtsx_pcr.c692 int rtsx_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, in rtsx_pci_switch_clock() argument
706 return rts5261_pci_switch_clock(pcr, card_clock, in rtsx_pci_switch_clock()
709 return rts5228_pci_switch_clock(pcr, card_clock, in rtsx_pci_switch_clock()
715 card_clock = 30000000; in rtsx_pci_switch_clock()
725 if (card_clock == UHS_SDR104_MAX_DTR && in rtsx_pci_switch_clock()
728 card_clock = UHS_SDR104_MAX_DTR - in rtsx_pci_switch_clock()
731 card_clock /= 1000000; in rtsx_pci_switch_clock()
732 pcr_dbg(pcr, "Switch card clock to %dMHz\n", card_clock); in rtsx_pci_switch_clock()
734 clk = card_clock; in rtsx_pci_switch_clock()
736 clk = card_clock * 2; in rtsx_pci_switch_clock()
Drts5228.h165 int rts5228_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock,
Drts5261.h230 int rts5261_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock,
/drivers/staging/rts5208/
Drtsx_chip.h344 enum card_clock {CLK_20 = 1, CLK_30, CLK_40, CLK_50, CLK_60, enum