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)
111 static int p8_i2c_occ_send_cmd(struct occ *occ, u8 *cmd)
118 struct p8_i2c_occ *ctx = to_p8_i2c_occ(occ);
120 struct occ_response *resp = &occ->resp;
208 struct occ *occ;
215 occ = &ctx->occ;
216 occ->bus_dev = &client->dev;
217 dev_set_drvdata(&client->dev, occ);
219 occ->powr_sample_time_us = 250;
220 occ->poll_cmd_data = 0x10; /* P8 OCC poll data */
221 occ->send_cmd = p8_i2c_occ_send_cmd;
223 return occ_setup(occ, "p8_occ");
228 struct occ *occ = dev_get_drvdata(&client->dev);
230 occ_shutdown(occ);
236 { .compatible = "ibm,p8-occ-hwmon" },
244 .name = "occ-hwmon",