Lines Matching refs:card_clock
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()
431 mcu_cnt = 60/card_clock + 3; in rtsx_usb_switch_clock()
482 ucr->cur_clk = card_clock; in rtsx_usb_switch_clock()