Home
last modified time | relevance | path

Searched refs:mcu_cnt (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/staging/rts5208/
H A Drtsx_card.c626 u8 mcu_cnt, div, max_div, ssc_depth, ssc_depth_mask; in switch_ssc_clock() local
642 mcu_cnt = (u8)(125 / clk + 3); in switch_ssc_clock()
643 if (mcu_cnt > 7) in switch_ssc_clock()
644 mcu_cnt = 7; in switch_ssc_clock()
666 rtsx_add_cmd(chip, WRITE_REG_CMD, CLK_DIV, 0xFF, (div << 4) | mcu_cnt); in switch_ssc_clock()
695 u8 sel, div, mcu_cnt; in switch_normal_clock() local
706 mcu_cnt = 7; in switch_normal_clock()
713 mcu_cnt = 7; in switch_normal_clock()
720 mcu_cnt = 7; in switch_normal_clock()
727 mcu_cnt = 6; in switch_normal_clock()
[all …]
/openbmc/linux/drivers/misc/cardreader/
H A Drts5228.c562 u8 clk_divider, mcu_cnt, div; in rts5228_pci_switch_clock() local
601 mcu_cnt = 125/clk + 3; in rts5228_pci_switch_clock()
602 if (mcu_cnt > 15) in rts5228_pci_switch_clock()
603 mcu_cnt = 15; in rts5228_pci_switch_clock()
651 0xFF, (div << 4) | mcu_cnt); in rts5228_pci_switch_clock()
H A Drts5261.c636 u8 clk_divider, mcu_cnt, div; in rts5261_pci_switch_clock() local
680 mcu_cnt = 125/clk + 3; in rts5261_pci_switch_clock()
681 if (mcu_cnt > 15) in rts5261_pci_switch_clock()
682 mcu_cnt = 15; in rts5261_pci_switch_clock()
730 0xFF, (div << 4) | mcu_cnt); in rts5261_pci_switch_clock()
H A Drtsx_usb.c408 u8 n, clk_divider, mcu_cnt, div; in rtsx_usb_switch_clock()
446 mcu_cnt = 60/card_clock + 3; in rtsx_usb_switch_clock()
447 if (mcu_cnt > 15) in rtsx_usb_switch_clock()
448 mcu_cnt = 15; in rtsx_usb_switch_clock()
468 0x3F, (div << 4) | mcu_cnt); in rtsx_usb_switch_clock()
393 u8 n, clk_divider, mcu_cnt, div; rtsx_usb_switch_clock() local
H A Drtsx_pcr.c702 u8 n, clk_divider, mcu_cnt, div; in rtsx_pci_switch_clock() local
756 mcu_cnt = (u8)(125/clk + 3); in rtsx_pci_switch_clock()
757 if (mcu_cnt > 15) in rtsx_pci_switch_clock()
758 mcu_cnt = 15; in rtsx_pci_switch_clock()
786 0xFF, (div << 4) | mcu_cnt); in rtsx_pci_switch_clock()