Searched refs:adap_data (Results 1 – 1 of 1) sorted by relevance
26 struct via_port_cfg *adap_data = data; in via_i2c_setscl() local30 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() local56 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() local72 if (adap_data->type == VIA_PORT_GPIO) in via_i2c_getsda()[all …]