Lines Matching full:tx
32 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_is_prepared() local
34 return (readl(tx->base_addr) & REF2USB_EN_MASK) == REF2USB_EN_MASK; in mtk_ref2usb_tx_is_prepared()
39 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_prepare() local
42 val = readl(tx->base_addr); in mtk_ref2usb_tx_prepare()
45 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare()
49 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare()
52 writel(val, tx->base_addr); in mtk_ref2usb_tx_prepare()
59 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_ref2usb_tx_unprepare() local
62 val = readl(tx->base_addr); in mtk_ref2usb_tx_unprepare()
64 writel(val, tx->base_addr); in mtk_ref2usb_tx_unprepare()
76 struct mtk_ref2usb_tx *tx; in mtk_clk_register_ref2usb_tx() local
80 tx = kzalloc(sizeof(*tx), GFP_KERNEL); in mtk_clk_register_ref2usb_tx()
81 if (!tx) in mtk_clk_register_ref2usb_tx()
84 tx->base_addr = reg; in mtk_clk_register_ref2usb_tx()
85 tx->hw.init = &init; in mtk_clk_register_ref2usb_tx()
92 ret = clk_hw_register(NULL, &tx->hw); in mtk_clk_register_ref2usb_tx()
95 kfree(tx); in mtk_clk_register_ref2usb_tx()
99 return &tx->hw; in mtk_clk_register_ref2usb_tx()
105 struct mtk_ref2usb_tx *tx = to_mtk_ref2usb_tx(hw); in mtk_clk_unregister_ref2usb_tx() local
108 kfree(tx); in mtk_clk_unregister_ref2usb_tx()