Lines Matching refs:occ
7 #include <linux/fsi-occ.h>
21 struct occ occ;
30 #define to_p9_sbe_occ(x) container_of((x), struct p9_sbe_occ, occ)
37 struct occ *occ = dev_get_drvdata(kobj_to_dev(kobj));
38 struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ);
83 static int p9_sbe_occ_send_cmd(struct occ *occ, u8 *cmd, size_t len,
87 struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ);
96 sysfs_notify(&occ->bus_dev->kobj, NULL,
137 struct occ *occ;
146 occ = &ctx->occ;
147 occ->bus_dev = &pdev->dev;
148 platform_set_drvdata(pdev, occ);
150 occ->powr_sample_time_us = 500;
151 occ->poll_cmd_data = 0x20; /* P9 OCC poll data */
152 occ->send_cmd = p9_sbe_occ_send_cmd;
154 rc = occ_setup(occ);
159 rc = device_create_bin_file(occ->bus_dev, &bin_attr_ffdc);
161 dev_warn(occ->bus_dev,
172 struct occ *occ = platform_get_drvdata(pdev);
173 struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ);
175 device_remove_bin_file(occ->bus_dev, &bin_attr_ffdc);
178 occ_shutdown(occ);
184 { .compatible = "ibm,p9-occ-hwmon" },
185 { .compatible = "ibm,p10-occ-hwmon" },
192 .name = "occ-hwmon",