Lines Matching refs:t
152 u32 t; in rt3883_pci_irq_unmask() local
156 t = rt3883_pci_r32(rpc, RT3883_PCI_REG_PCIENA); in rt3883_pci_irq_unmask()
157 rt3883_pci_w32(rpc, t | BIT(d->hwirq), RT3883_PCI_REG_PCIENA); in rt3883_pci_irq_unmask()
165 u32 t; in rt3883_pci_irq_mask() local
169 t = rt3883_pci_r32(rpc, RT3883_PCI_REG_PCIENA); in rt3883_pci_irq_mask()
170 rt3883_pci_w32(rpc, t & ~BIT(d->hwirq), RT3883_PCI_REG_PCIENA); in rt3883_pci_irq_mask()
304 u32 t; in rt3883_pci_preinit() local
319 t = rt_sysc_r32(RT3883_SYSC_REG_PCIE_CLK_GEN0); in rt3883_pci_preinit()
320 t &= ~BIT(31); in rt3883_pci_preinit()
321 rt_sysc_w32(t, RT3883_SYSC_REG_PCIE_CLK_GEN0); in rt3883_pci_preinit()
323 t = rt_sysc_r32(RT3883_SYSC_REG_PCIE_CLK_GEN1); in rt3883_pci_preinit()
324 t &= 0x80ffffff; in rt3883_pci_preinit()
325 rt_sysc_w32(t, RT3883_SYSC_REG_PCIE_CLK_GEN1); in rt3883_pci_preinit()
327 t = rt_sysc_r32(RT3883_SYSC_REG_PCIE_CLK_GEN1); in rt3883_pci_preinit()
328 t |= 0xa << 24; in rt3883_pci_preinit()
329 rt_sysc_w32(t, RT3883_SYSC_REG_PCIE_CLK_GEN1); in rt3883_pci_preinit()
331 t = rt_sysc_r32(RT3883_SYSC_REG_PCIE_CLK_GEN0); in rt3883_pci_preinit()
332 t |= BIT(31); in rt3883_pci_preinit()
333 rt_sysc_w32(t, RT3883_SYSC_REG_PCIE_CLK_GEN0); in rt3883_pci_preinit()
365 t = (RT3883_P2P_BR_DEVNUM << RT3883_PCICFG_P2P_BR_DEVNUM_S); in rt3883_pci_preinit()
366 rt3883_pci_w32(rpc, t, RT3883_PCI_REG_PCICFG); in rt3883_pci_preinit()
375 t = rt3883_pci_r32(rpc, RT3883_PCI_REG_STATUS(1)); in rt3883_pci_preinit()
377 rpc->pcie_ready = t & BIT(0); in rt3883_pci_preinit()
381 t = rt_sysc_r32(RT3883_SYSC_REG_RSTCTRL); in rt3883_pci_preinit()
382 t |= RT3883_RSTCTRL_PCIE; in rt3883_pci_preinit()
383 rt_sysc_w32(t, RT3883_SYSC_REG_RSTCTRL); in rt3883_pci_preinit()
384 t &= ~RT3883_RSTCTRL_PCIE; in rt3883_pci_preinit()
385 rt_sysc_w32(t, RT3883_SYSC_REG_RSTCTRL); in rt3883_pci_preinit()
388 t = rt_sysc_r32(RT3883_SYSC_REG_CLKCFG1); in rt3883_pci_preinit()
389 t &= ~RT3883_CLKCFG1_PCIE_CLK_EN; in rt3883_pci_preinit()
390 rt_sysc_w32(t, RT3883_SYSC_REG_CLKCFG1); in rt3883_pci_preinit()
392 t = rt_sysc_r32(RT3883_SYSC_REG_PCIE_CLK_GEN0); in rt3883_pci_preinit()
393 t &= ~0xf000c080; in rt3883_pci_preinit()
394 rt_sysc_w32(t, RT3883_SYSC_REG_PCIE_CLK_GEN0); in rt3883_pci_preinit()