Lines Matching refs:occ
21 struct occ occ; member
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)); in ffdc_read() local
38 struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ); in ffdc_read()
83 static int p9_sbe_occ_send_cmd(struct occ *occ, u8 *cmd, size_t len, in p9_sbe_occ_send_cmd() argument
87 struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ); in p9_sbe_occ_send_cmd()
96 sysfs_notify(&occ->bus_dev->kobj, NULL, in p9_sbe_occ_send_cmd()
137 struct occ *occ; in p9_sbe_occ_probe() local
146 occ = &ctx->occ; in p9_sbe_occ_probe()
147 occ->bus_dev = &pdev->dev; in p9_sbe_occ_probe()
148 platform_set_drvdata(pdev, occ); in p9_sbe_occ_probe()
150 occ->powr_sample_time_us = 500; in p9_sbe_occ_probe()
151 occ->poll_cmd_data = 0x20; /* P9 OCC poll data */ in p9_sbe_occ_probe()
152 occ->send_cmd = p9_sbe_occ_send_cmd; in p9_sbe_occ_probe()
154 rc = occ_setup(occ); in p9_sbe_occ_probe()
159 rc = device_create_bin_file(occ->bus_dev, &bin_attr_ffdc); in p9_sbe_occ_probe()
161 dev_warn(occ->bus_dev, in p9_sbe_occ_probe()
172 struct occ *occ = platform_get_drvdata(pdev); in p9_sbe_occ_remove() local
173 struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ); in p9_sbe_occ_remove()
175 device_remove_bin_file(occ->bus_dev, &bin_attr_ffdc); in p9_sbe_occ_remove()
178 occ_shutdown(occ); in p9_sbe_occ_remove()