Lines Matching refs:tx
39 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_is_prepared() local
41 return (readl(tx->base_addr) & REF2USB_EN_MASK) == REF2USB_EN_MASK; in mtk_ref2usb_tx_is_prepared()
46 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_prepare() local
49 val = readl(tx->base_addr); in mtk_ref2usb_tx_prepare()
52 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare()
56 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare()
59 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare()
66 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_unprepare() local
69 val = readl(tx->base_addr); in mtk_ref2usb_tx_unprepare()
71 writel(val, tx->base_addr); in mtk_ref2usb_tx_unprepare()
83 struct mtk_ref2usb_tx *tx; in mtk_clk_register_ref2usb_tx() local
87 tx = kzalloc(sizeof(*tx), GFP_KERNEL); in mtk_clk_register_ref2usb_tx()
88 if (!tx) in mtk_clk_register_ref2usb_tx()
91 tx->base_addr = reg; in mtk_clk_register_ref2usb_tx()
92 tx->hw.init = &init; in mtk_clk_register_ref2usb_tx()
99 clk = clk_register(NULL, &tx->hw); in mtk_clk_register_ref2usb_tx()
103 kfree(tx); in mtk_clk_register_ref2usb_tx()