Lines Matching refs:adap_data
40 struct via_port_cfg *adap_data = data; in via_i2c_setscl() local
44 val = via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0xF0; in via_i2c_setscl()
49 switch (adap_data->type) { in via_i2c_setscl()
59 via_write_reg(adap_data->io_port, adap_data->ioport_index, val); in via_i2c_setscl()
65 struct via_port_cfg *adap_data = data; in via_i2c_getscl() local
70 if (via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0x08) in via_i2c_getscl()
78 struct via_port_cfg *adap_data = data; in via_i2c_getsda() local
83 if (via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0x04) in via_i2c_getsda()
92 struct via_port_cfg *adap_data = data; in via_i2c_setsda() local
96 val = via_read_reg(adap_data->io_port, adap_data->ioport_index) & 0xF0; in via_i2c_setsda()
101 switch (adap_data->type) { in via_i2c_setsda()
111 via_write_reg(adap_data->io_port, adap_data->ioport_index, val); in via_i2c_setsda()