Lines Matching refs:cir_regs

44 volatile struct it8172_cir_regs *cir_regs[NUM_CIR_PORTS] = {  variable
58 cir_regs[port]->bdlr = cir->baud_rate & 0xff; in cir_port_init()
59 cir_regs[port]->bdhr = (cir->baud_rate >> 8) & 0xff; in cir_port_init()
62 cir_regs[port]->rcr = (CIR_SET_RDWOS(cir->rdwos) | CIR_SET_RXDCR(cir->rxdcr)); in cir_port_init()
65 cir_regs[port]->cfr = (CIR_SET_CF(cir->cfq) | CIR_SET_HS(cir->hcfs)); in cir_port_init()
68 data = cir_regs[port]->mstcr & 0xf3; in cir_port_init()
70 cir_regs[port]->mstcr = data; in cir_port_init()
86 cir_regs[cir->port]->mstcr |= CIR_FIFO_CLEAR; in clear_fifo()
91 cir_regs[cir->port]->rcr |= CIR_RXEN; in enable_receiver()
96 cir_regs[cir->port]->rcr &= ~CIR_RXEN; in disable_receiver()
101 cir_regs[cir->port]->rcr |= CIR_RXEND; in enable_rx_demodulation()
106 cir_regs[cir->port]->rcr &= ~CIR_RXEND; in disable_rx_demodulation()
111 cir_regs[cir->port]->rcr |= CIR_RXACT; in set_rx_active()
116 cir_regs[cir->port]->ier |= CIR_IEC; in int_enable()
121 cir_regs[cir->port]->ier |= CIR_RDAIE; in rx_int_enable()
127 cir_regs[cir->port]->mstcr, in dump_regs()
128 cir_regs[cir->port]->ier, in dump_regs()
129 cir_regs[cir->port]->iir, in dump_regs()
130 cir_regs[cir->port]->cfr, in dump_regs()
131 cir_regs[cir->port]->rcr, in dump_regs()
132 cir_regs[cir->port]->tcr, in dump_regs()
133 cir_regs[cir->port]->tfsr, in dump_regs()
134 cir_regs[cir->port]->rfsr); in dump_regs()
136 while (cir_regs[cir->port]->iir & CIR_RDAI) { in dump_regs()
137 printk("data %x\n", cir_regs[cir->port]->dr); in dump_regs()
144 (unsigned)&cir_regs[cir->port]->dr, in dump_reg_addr()
145 (unsigned)&cir_regs[cir->port]->mstcr, in dump_reg_addr()
146 (unsigned)&cir_regs[cir->port]->ier, in dump_reg_addr()
147 (unsigned)&cir_regs[cir->port]->iir, in dump_reg_addr()
148 (unsigned)&cir_regs[cir->port]->cfr, in dump_reg_addr()
149 (unsigned)&cir_regs[cir->port]->rcr, in dump_reg_addr()
150 (unsigned)&cir_regs[cir->port]->tcr, in dump_reg_addr()
151 (unsigned)&cir_regs[cir->port]->bdlr, in dump_reg_addr()
152 (unsigned)&cir_regs[cir->port]->bdhr, in dump_reg_addr()
153 (unsigned)&cir_regs[cir->port]->tfsr, in dump_reg_addr()
154 (unsigned)&cir_regs[cir->port]->rfsr); in dump_reg_addr()
159 return cir_regs[cir->port]->rfsr & CIR_RXFBC_MASK; in cir_get_rx_count()
164 return cir_regs[cir->port]->dr; in cir_read_data()
169 return cir_regs[cir->port]->iir; in get_int_status()