Searched refs:card_clock (Results 1 – 7 of 7) sorted by relevance
/drivers/misc/cardreader/ |
D | rtsx_usb.c | 389 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 …]
|
D | rts5261.c | 606 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()
|
D | rts5228.c | 581 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()
|
D | rtsx_pcr.c | 692 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()
|
D | rts5228.h | 165 int rts5228_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock,
|
D | rts5261.h | 230 int rts5261_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock,
|
/drivers/staging/rts5208/ |
D | rtsx_chip.h | 344 enum card_clock {CLK_20 = 1, CLK_30, CLK_40, CLK_50, CLK_60, enum
|