Lines Matching refs:adap_data
26 struct via_port_cfg *adap_data = data; in via_i2c_setscl() local
30 val = via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0xF0; in via_i2c_setscl()
35 switch (adap_data->type) { in via_i2c_setscl()
45 via_write_reg(adap_data->io_port, adap_data->ioport_index, val); in via_i2c_setscl()
51 struct via_port_cfg *adap_data = data; in via_i2c_getscl() local
56 if (adap_data->type == VIA_PORT_GPIO) in via_i2c_getscl()
57 via_write_reg_mask(adap_data->io_port, adap_data->ioport_index, in via_i2c_getscl()
59 if (via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0x08) in via_i2c_getscl()
67 struct via_port_cfg *adap_data = data; in via_i2c_getsda() local
72 if (adap_data->type == VIA_PORT_GPIO) in via_i2c_getsda()
73 via_write_reg_mask(adap_data->io_port, adap_data->ioport_index, in via_i2c_getsda()
75 if (via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0x04) in via_i2c_getsda()
84 struct via_port_cfg *adap_data = data; in via_i2c_setsda() local
88 val = via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0xF0; in via_i2c_setsda()
93 switch (adap_data->type) { in via_i2c_setsda()
103 via_write_reg(adap_data->io_port, adap_data->ioport_index, val); in via_i2c_setsda()