Lines Matching refs:client

42 static int tps53679_identify_mode(struct i2c_client *client,  in tps53679_identify_mode()  argument
50 ret = pmbus_read_byte_data(client, i, PMBUS_VOUT_MODE); in tps53679_identify_mode()
74 static int tps53679_identify_phases(struct i2c_client *client, in tps53679_identify_phases() argument
80 ret = pmbus_read_byte_data(client, 0, TPS53681_MFR_SPECIFIC_20); in tps53679_identify_phases()
88 static int tps53679_identify_chip(struct i2c_client *client, in tps53679_identify_chip() argument
94 ret = pmbus_read_byte_data(client, 0, PMBUS_REVISION); in tps53679_identify_chip()
98 dev_err(&client->dev, "Unexpected PMBus revision 0x%x\n", ret); in tps53679_identify_chip()
102 ret = i2c_smbus_read_block_data(client, PMBUS_IC_DEVICE_ID, buf); in tps53679_identify_chip()
106 dev_err(&client->dev, "Unexpected device ID 0x%x\n", buf[0]); in tps53679_identify_chip()
118 static int tps53679_identify_multiphase(struct i2c_client *client, in tps53679_identify_multiphase() argument
124 ret = tps53679_identify_chip(client, pmbus_rev, device_id); in tps53679_identify_multiphase()
128 ret = tps53679_identify_mode(client, info); in tps53679_identify_multiphase()
132 return tps53679_identify_phases(client, info); in tps53679_identify_multiphase()
135 static int tps53679_identify(struct i2c_client *client, in tps53679_identify() argument
138 return tps53679_identify_mode(client, info); in tps53679_identify()
141 static int tps53681_identify(struct i2c_client *client, in tps53681_identify() argument
144 return tps53679_identify_multiphase(client, info, in tps53681_identify()
149 static int tps53676_identify(struct i2c_client *client, in tps53676_identify() argument
156 ret = i2c_smbus_read_block_data(client, PMBUS_IC_DEVICE_ID, buf); in tps53676_identify()
160 dev_err(&client->dev, "Unexpected device ID: %s\n", buf); in tps53676_identify()
164 ret = i2c_smbus_read_block_data(client, TPS53676_USER_DATA_03, buf); in tps53676_identify()
188 static int tps53681_read_word_data(struct i2c_client *client, int page, in tps53681_read_word_data() argument
202 return pmbus_read_word_data(client, page, 0x80, reg); in tps53681_read_word_data()
231 static int tps53679_probe(struct i2c_client *client) in tps53679_probe() argument
233 struct device *dev = &client->dev; in tps53679_probe()
240 chip_id = i2c_match_id(tps53679_id, client)->driver_data; in tps53679_probe()
270 return pmbus_do_probe(client, info); in tps53679_probe()