Lines Matching refs:io_port

109 		      struct mn103iop *io_port)
129 io_port->block[i].base = attach_address;
133 io_port->block[i].bound = attach_address + (attach_size - 1);
144 struct mn103iop *io_port;
147 io_port = HW_ZALLOC (me, struct mn103iop);
148 set_hw_data (me, io_port);
153 attach_mn103iop_regs (me, io_port);
158 io_port->port[i].output = 0;
159 io_port->port[i].output_mode = 0;
160 io_port->port[i].control = 0;
161 io_port->port[i].pin = 0;
163 io_port->port[2].output_mode = 0xff;
164 io_port->p2ss = 0;
165 io_port->p4ss = 0x0f;
173 struct mn103iop *io_port,
177 offset = address - io_port->block[0].base;
209 struct mn103iop *io_port,
216 *(unsigned8 *)dest = io_port->port[io_port_reg].output;
228 struct mn103iop *io_port,
237 *(unsigned8 *)dest = io_port->port[io_port_reg].output_mode;
249 struct mn103iop *io_port,
256 *(unsigned8 *)dest = io_port->port[io_port_reg].control;
268 struct mn103iop *io_port,
275 *(unsigned8 *)dest = io_port->port[io_port_reg].pin;
287 struct mn103iop *io_port,
297 *(unsigned8 *)dest = io_port->p2ss;
301 *(unsigned8 *)dest = io_port->p4ss;
318 struct mn103iop *io_port = hw_data (me);
322 io_port_reg = decode_addr (me, io_port, base);
330 read_output_reg(me, io_port, io_port_reg-P0OUT, dest, nr_bytes);
338 read_output_mode_reg(me, io_port, io_port_reg-P0MD, dest, nr_bytes);
346 read_control_reg(me, io_port, io_port_reg-P0DIR, dest, nr_bytes);
353 read_pin_reg(me, io_port, io_port_reg-P0IN, dest, nr_bytes);
358 read_dedicated_control_reg(me, io_port, io_port_reg, dest, nr_bytes);
371 struct mn103iop *io_port,
385 io_port->port[io_port_reg].output = buf;
398 struct mn103iop *io_port,
415 io_port->port[io_port_reg].output_mode = buf;
428 struct mn103iop *io_port,
442 io_port->port[io_port_reg].control = buf;
455 struct mn103iop *io_port,
472 io_port->p2ss = buf;
483 io_port->p4ss = buf;
501 struct mn103iop *io_port = hw_data (me);
505 io_port_reg = decode_addr (me, io_port, base);
513 write_output_reg(me, io_port, io_port_reg-P0OUT, source, nr_bytes);
521 write_output_mode_reg(me, io_port, io_port_reg-P0MD, source, nr_bytes);
529 write_control_reg(me, io_port, io_port_reg-P0DIR, source, nr_bytes);
541 write_dedicated_control_reg(me, io_port, io_port_reg, source, nr_bytes);