Lines Matching refs:occ
6 #include <linux/fsi-occ.h>
30 struct occ occ;
34 #define to_p8_i2c_occ(x) container_of((x), struct p8_i2c_occ, occ)
114 static int p8_i2c_occ_send_cmd(struct occ *occ, u8 *cmd, size_t len,
122 struct p8_i2c_occ *ctx = to_p8_i2c_occ(occ);
212 struct occ *occ;
219 occ = &ctx->occ;
220 occ->bus_dev = &client->dev;
221 dev_set_drvdata(&client->dev, occ);
223 occ->powr_sample_time_us = 250;
224 occ->poll_cmd_data = 0x10; /* P8 OCC poll data */
225 occ->send_cmd = p8_i2c_occ_send_cmd;
227 return occ_setup(occ);
232 struct occ *occ = dev_get_drvdata(&client->dev);
234 occ_shutdown(occ);
238 { .compatible = "ibm,p8-occ-hwmon" },
246 .name = "occ-hwmon",