Lines Matching full:cx

13 void cx18_memset_io(struct cx18 *cx, void __iomem *addr, int val, size_t count)  in cx18_memset_io()  argument
21 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io()
26 cx18_writew(cx, val2, dst); in cx18_memset_io()
31 cx18_writel(cx, val4, dst); in cx18_memset_io()
36 cx18_writew(cx, val2, dst); in cx18_memset_io()
41 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io()
44 void cx18_sw1_irq_enable(struct cx18 *cx, u32 val) in cx18_sw1_irq_enable() argument
46 cx18_write_reg_expect(cx, val, SW1_INT_STATUS, ~val, val); in cx18_sw1_irq_enable()
47 cx->sw1_irq_mask = cx18_read_reg(cx, SW1_INT_ENABLE_PCI) | val; in cx18_sw1_irq_enable()
48 cx18_write_reg(cx, cx->sw1_irq_mask, SW1_INT_ENABLE_PCI); in cx18_sw1_irq_enable()
51 void cx18_sw1_irq_disable(struct cx18 *cx, u32 val) in cx18_sw1_irq_disable() argument
53 cx->sw1_irq_mask = cx18_read_reg(cx, SW1_INT_ENABLE_PCI) & ~val; in cx18_sw1_irq_disable()
54 cx18_write_reg(cx, cx->sw1_irq_mask, SW1_INT_ENABLE_PCI); in cx18_sw1_irq_disable()
57 void cx18_sw2_irq_enable(struct cx18 *cx, u32 val) in cx18_sw2_irq_enable() argument
59 cx18_write_reg_expect(cx, val, SW2_INT_STATUS, ~val, val); in cx18_sw2_irq_enable()
60 cx->sw2_irq_mask = cx18_read_reg(cx, SW2_INT_ENABLE_PCI) | val; in cx18_sw2_irq_enable()
61 cx18_write_reg(cx, cx->sw2_irq_mask, SW2_INT_ENABLE_PCI); in cx18_sw2_irq_enable()
64 void cx18_sw2_irq_disable(struct cx18 *cx, u32 val) in cx18_sw2_irq_disable() argument
66 cx->sw2_irq_mask = cx18_read_reg(cx, SW2_INT_ENABLE_PCI) & ~val; in cx18_sw2_irq_disable()
67 cx18_write_reg(cx, cx->sw2_irq_mask, SW2_INT_ENABLE_PCI); in cx18_sw2_irq_disable()
70 void cx18_sw2_irq_disable_cpu(struct cx18 *cx, u32 val) in cx18_sw2_irq_disable_cpu() argument
73 r = cx18_read_reg(cx, SW2_INT_ENABLE_CPU); in cx18_sw2_irq_disable_cpu()
74 cx18_write_reg(cx, r & ~val, SW2_INT_ENABLE_CPU); in cx18_sw2_irq_disable_cpu()
77 void cx18_setup_page(struct cx18 *cx, u32 addr) in cx18_setup_page() argument
80 val = cx18_read_reg(cx, 0xD000F8); in cx18_setup_page()
82 cx18_write_reg(cx, val, 0xD000F8); in cx18_setup_page()