Lines Matching defs:io_port

111 		      struct mn103iop *io_port)
131 io_port->block[i].base = attach_address;
135 io_port->block[i].bound = attach_address + (attach_size - 1);
146 struct mn103iop *io_port;
149 io_port = HW_ZALLOC (me, struct mn103iop);
150 set_hw_data (me, io_port);
155 attach_mn103iop_regs (me, io_port);
160 io_port->port[i].output = 0;
161 io_port->port[i].output_mode = 0;
162 io_port->port[i].control = 0;
163 io_port->port[i].pin = 0;
165 io_port->port[2].output_mode = 0xff;
166 io_port->p2ss = 0;
167 io_port->p4ss = 0x0f;
175 struct mn103iop *io_port,
179 offset = address - io_port->block[0].base;
211 struct mn103iop *io_port,
218 *(uint8_t *)dest = io_port->port[io_port_reg].output;
230 struct mn103iop *io_port,
239 *(uint8_t *)dest = io_port->port[io_port_reg].output_mode;
251 struct mn103iop *io_port,
258 *(uint8_t *)dest = io_port->port[io_port_reg].control;
270 struct mn103iop *io_port,
277 *(uint8_t *)dest = io_port->port[io_port_reg].pin;
289 struct mn103iop *io_port,
299 *(uint8_t *)dest = io_port->p2ss;
303 *(uint8_t *)dest = io_port->p4ss;
320 struct mn103iop *io_port = hw_data (me);
324 io_port_reg = decode_addr (me, io_port, base);
332 read_output_reg(me, io_port, io_port_reg-P0OUT, dest, nr_bytes);
340 read_output_mode_reg(me, io_port, io_port_reg-P0MD, dest, nr_bytes);
348 read_control_reg(me, io_port, io_port_reg-P0DIR, dest, nr_bytes);
355 read_pin_reg(me, io_port, io_port_reg-P0IN, dest, nr_bytes);
360 read_dedicated_control_reg(me, io_port, io_port_reg, dest, nr_bytes);
373 struct mn103iop *io_port,
387 io_port->port[io_port_reg].output = buf;
400 struct mn103iop *io_port,
417 io_port->port[io_port_reg].output_mode = buf;
430 struct mn103iop *io_port,
444 io_port->port[io_port_reg].control = buf;
457 struct mn103iop *io_port,
474 io_port->p2ss = buf;
485 io_port->p4ss = buf;
503 struct mn103iop *io_port = hw_data (me);
507 io_port_reg = decode_addr (me, io_port, base);
515 write_output_reg(me, io_port, io_port_reg-P0OUT, source, nr_bytes);
523 write_output_mode_reg(me, io_port, io_port_reg-P0MD, source, nr_bytes);
531 write_control_reg(me, io_port, io_port_reg-P0DIR, source, nr_bytes);
543 write_dedicated_control_reg(me, io_port, io_port_reg, source, nr_bytes);