Lines Matching refs:occ
6 #include <linux/fsi-occ.h>
13 struct occ occ;
17 #define to_p9_sbe_occ(x) container_of((x), struct p9_sbe_occ, occ)
19 static int p9_sbe_occ_send_cmd(struct occ *occ, u8 *cmd)
21 struct occ_response *resp = &occ->resp;
22 struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ);
62 struct occ *occ;
69 occ = &ctx->occ;
70 occ->bus_dev = &pdev->dev;
71 platform_set_drvdata(pdev, occ);
73 occ->powr_sample_time_us = 500;
74 occ->poll_cmd_data = 0x20; /* P9 OCC poll data */
75 occ->send_cmd = p9_sbe_occ_send_cmd;
77 rc = occ_setup(occ, "p9_occ");
86 struct occ *occ = platform_get_drvdata(pdev);
87 struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ);
90 occ_shutdown(occ);
97 .name = "occ-hwmon",