Lines Matching refs:cur_ctrl
81 u8 cur_ctrl; // current control port contents member
135 ppc->cur_ctrl = ppc->org_ctrl; in ppc6_select()
137 ppc->cur_ctrl |= port_sel; in ppc6_select()
139 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_select()
149 ppc->cur_ctrl &= ~port_sel; in ppc6_select()
151 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_select()
153 ppc->cur_ctrl = (ppc->cur_ctrl & port_int) | port_init; in ppc6_select()
155 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_select()
164 ppc->cur_ctrl |= port_sel; in ppc6_select()
166 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_select()
170 ppc->cur_ctrl |= port_afd; in ppc6_select()
172 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_select()
180 ppc->cur_ctrl &= ~port_afd; in ppc6_select()
182 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_select()
189 ppc->cur_ctrl &= ~(port_sel | port_init); in ppc6_select()
191 ppc->cur_ctrl &= ~port_sel; in ppc6_select()
193 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_select()
211 ppc->cur_ctrl |= port_init; in ppc6_deselect()
213 ppc->cur_ctrl |= port_sel; in ppc6_deselect()
215 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_deselect()
237 ppc->cur_ctrl ^= cmd_stb; in ppc6_send_cmd()
239 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_send_cmd()
268 ppc->cur_ctrl ^= data_stb; in ppc6_wr_data_byte()
270 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_wr_data_byte()
297 ppc->cur_ctrl = (ppc->cur_ctrl & ~port_stb) ^ data_stb; in ppc6_rd_data_byte()
299 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_byte()
307 ppc->cur_ctrl |= port_stb; in ppc6_rd_data_byte()
309 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_byte()
321 ppc->cur_ctrl |= port_dir; in ppc6_rd_data_byte()
323 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_byte()
325 ppc->cur_ctrl = (ppc->cur_ctrl | port_stb) ^ data_stb; in ppc6_rd_data_byte()
327 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_byte()
331 ppc->cur_ctrl &= ~port_stb; in ppc6_rd_data_byte()
333 outb(ppc->cur_ctrl,ppc->lpt_addr + 2); in ppc6_rd_data_byte()
335 ppc->cur_ctrl &= ~port_dir; in ppc6_rd_data_byte()
337 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_byte()
346 outb((ppc->cur_ctrl | port_dir),ppc->lpt_addr + 2); in ppc6_rd_data_byte()
350 outb(ppc->cur_ctrl,ppc->lpt_addr + 2); in ppc6_rd_data_byte()
390 ppc->cur_ctrl = (ppc->cur_ctrl & ~port_stb) ^ data_stb; in ppc6_rd_data_blk()
392 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_blk()
400 ppc->cur_ctrl |= port_stb; in ppc6_rd_data_blk()
402 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_blk()
418 ppc->cur_ctrl |= port_dir; in ppc6_rd_data_blk()
420 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_blk()
422 ppc->cur_ctrl |= port_stb; in ppc6_rd_data_blk()
426 ppc->cur_ctrl ^= data_stb; in ppc6_rd_data_blk()
428 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_blk()
434 ppc->cur_ctrl &= ~port_stb; in ppc6_rd_data_blk()
436 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_blk()
438 ppc->cur_ctrl &= ~port_dir; in ppc6_rd_data_blk()
440 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_blk()
447 outb((ppc->cur_ctrl | port_dir), ppc->lpt_addr + 2); in ppc6_rd_data_blk()
457 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_blk()
464 outb((ppc->cur_ctrl | port_dir), ppc->lpt_addr + 2); in ppc6_rd_data_blk()
481 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_blk()
488 outb((ppc->cur_ctrl | port_dir),ppc->lpt_addr + 2); in ppc6_rd_data_blk()
505 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_rd_data_blk()
539 ppc->cur_ctrl ^= data_stb; in ppc6_wr_data_blk()
541 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_wr_data_blk()
554 ppc->cur_ctrl |= port_stb; in ppc6_wr_data_blk()
556 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_wr_data_blk()
569 ppc->cur_ctrl ^= data_stb; in ppc6_wr_data_blk()
571 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_wr_data_blk()
581 ppc->cur_ctrl &= ~port_stb; in ppc6_wr_data_blk()
583 outb(ppc->cur_ctrl, ppc->lpt_addr + 2); in ppc6_wr_data_blk()