Home
last modified time | relevance | path

Searched refs:occ (Results 1 – 25 of 145) sorted by relevance

123456

/openbmc/linux/drivers/fsi/
H A Dfsi-occ.c42 struct occ { struct
58 #define to_occ(x) container_of((x), struct occ, mdev) argument
69 struct occ *occ; member
84 struct occ *occ = to_occ(mdev); in occ_open() local
95 client->occ = occ; in occ_open()
98 get_device(occ->dev); in occ_open()
180 rc = fsi_occ_submit(client->occ->dev, cmd, data_length + 6, cmd, in occ_write()
202 put_device(client->occ->dev); in occ_release()
217 static void occ_save_ffdc(struct occ *occ, __be32 *resp, size_t parsed_len, in occ_save_ffdc() argument
225 if (ffdc_len > occ->client_buffer_size) in occ_save_ffdc()
[all …]
/openbmc/linux/drivers/hwmon/occ/
H A Dsysfs.c31 struct occ *occ = dev_get_drvdata(dev); in occ_active_store() local
37 rc = occ_active(occ, active); in occ_active_store()
49 struct occ *occ = dev_get_drvdata(dev); in occ_sysfs_show() local
53 if (occ->active) { in occ_sysfs_show()
54 rc = occ_update_response(occ); in occ_sysfs_show()
58 header = (struct occ_poll_response_header *)occ->resp.data; in occ_sysfs_show()
119 struct occ *occ = dev_get_drvdata(dev); in occ_error_show() local
121 occ_update_response(occ); in occ_error_show()
123 return sysfs_emit(buf, "%d\n", occ->error); in occ_error_show()
162 void occ_sysfs_poll_done(struct occ *occ) in occ_sysfs_poll_done() argument
[all …]
H A Dcommon.c133 static int occ_poll(struct occ *occ) in occ_poll() argument
144 cmd[4] = occ->poll_cmd_data; /* data */ in occ_poll()
149 rc = occ->send_cmd(occ, cmd, sizeof(cmd), &occ->resp, sizeof(occ->resp)); in occ_poll()
151 occ->last_error = rc; in occ_poll()
152 if (occ->error_count++ > OCC_ERROR_COUNT_THRESHOLD) in occ_poll()
153 occ->error = rc; in occ_poll()
159 occ->error_count = 0; in occ_poll()
160 occ->last_error = 0; in occ_poll()
161 occ->error = 0; in occ_poll()
164 header = (struct occ_poll_response_header *)occ->resp.data; in occ_poll()
[all …]
H A Dp9_sbe.c21 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()
[all …]
H A Dcommon.h91 struct occ { struct
99 int (*send_cmd)(struct occ *occ, u8 *cmd, size_t len, void *resp, argument
128 int occ_active(struct occ *occ, bool active); argument
129 int occ_setup(struct occ *occ);
130 int occ_setup_sysfs(struct occ *occ);
131 void occ_shutdown(struct occ *occ);
132 void occ_shutdown_sysfs(struct occ *occ);
133 void occ_sysfs_poll_done(struct occ *occ);
134 int occ_update_response(struct occ *occ);
H A Dp8_i2c.c30 struct occ occ; member
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, in p8_i2c_occ_send_cmd() argument
122 struct p8_i2c_occ *ctx = to_p8_i2c_occ(occ); in p8_i2c_occ_send_cmd()
212 struct occ *occ; in p8_i2c_occ_probe() local
219 occ = &ctx->occ; in p8_i2c_occ_probe()
220 occ->bus_dev = &client->dev; in p8_i2c_occ_probe()
221 dev_set_drvdata(&client->dev, occ); in p8_i2c_occ_probe()
223 occ->powr_sample_time_us = 250; in p8_i2c_occ_probe()
224 occ->poll_cmd_data = 0x10; /* P8 OCC poll data */ in p8_i2c_occ_probe()
[all …]
H A DMakefile2 occ-hwmon-common-objs := common.o sysfs.o
3 occ-p8-hwmon-objs := p8_i2c.o
4 occ-p9-hwmon-objs := p9_sbe.o
6 obj-$(CONFIG_SENSORS_OCC) += occ-hwmon-common.o
7 obj-$(CONFIG_SENSORS_OCC_P8_I2C) += occ-p8-hwmon.o
8 obj-$(CONFIG_SENSORS_OCC_P9_SBE) += occ-p9-hwmon.o
/openbmc/qemu/hw/ppc/
H A Dpnv_occ.c52 static void pnv_occ_set_misc(PnvOCC *occ, uint64_t val) in pnv_occ_set_misc() argument
58 occ->occmisc = val; in pnv_occ_set_misc()
60 qemu_set_irq(occ->psi_irq, irq_state); in pnv_occ_set_misc()
66 PnvOCC *occ = PNV_OCC(opaque); in pnv_occ_power8_xscom_read() local
72 val = occ->occmisc; in pnv_occ_power8_xscom_read()
84 PnvOCC *occ = PNV_OCC(opaque); in pnv_occ_power8_xscom_write() local
89 pnv_occ_set_misc(occ, occ->occmisc & val); in pnv_occ_power8_xscom_write()
92 pnv_occ_set_misc(occ, occ->occmisc | val); in pnv_occ_power8_xscom_write()
95 pnv_occ_set_misc(occ, val); in pnv_occ_power8_xscom_write()
188 PnvOCC *occ = PNV_OCC(opaque); in pnv_occ_power9_xscom_read() local
[all …]
/openbmc/openpower-occ-control/
H A Dmeson.build2 'openpower-occ-control',
21 conf_data.set_quoted('OCC_NAME', 'occ')
22 conf_data.set_quoted('OCC_MASTER_NAME', 'occ-hwmon.1')
23 conf_data.set_quoted('OCC_DEV_PATH', '/dev/occ')
30 '/var/lib/openpower-occ-control',
39 if get_option('i2c-occ').allowed()
40 conf_data.set_quoted('OCC_HWMON_PATH', '/sys/bus/i2c/drivers/occ-hwmon/')
42 conf_data.set_quoted('I2C_OCC_DEVICE_NAME', 'p8-occ-hwmon')
46 '/sys/bus/platform/drivers/occ-hwmon/',
51 conf_data.set('I2C_OCC', get_option('i2c-occ').allowed())
[all …]
H A Dpldm.hpp29 using namespace open_power::occ;
36 using InstanceToEffecter = std::map<open_power::occ::instanceID, EffecterID>;
40 using SensorToInstance = std::map<SensorID, open_power::occ::instanceID>;
44 constexpr open_power::occ::instanceID start = 0;
76 std::function<bool(open_power::occ::instanceID, bool)> in Interface()
78 std::function<void(open_power::occ::instanceID, bool)> sbeCallBack, in Interface()
83 open_power::occ::utils::getBus(), in Interface()
91 open_power::occ::utils::getBus(), in Interface()
160 void resetOCC(open_power::occ::instanceID occInstanceId);
166 void sendHRESET(open_power::occ::instanceID sbeInstanceId);
[all …]
H A Docc_sensor.mako.hpp14 namespace occ namespace
23 % for occ in occDict:
25 instance = occ.get("Instance")
26 id = occ.get("SensorID")
27 name = occ.get("SensorName")
H A Docc_command.hpp16 namespace occ namespace
173 struct std::formatter<open_power::occ::SysPwrMode> : formatter<int>
175 auto format(open_power::occ::SysPwrMode f, format_context& ctx) const in format()
182 struct std::formatter<open_power::occ::CmdStatus> : formatter<int>
184 auto format(open_power::occ::CmdStatus f, format_context& ctx) const in format()
H A Dapp.cpp21 auto& bus = open_power::occ::utils::getBus(); in main()
31 open_power::occ::EventPtr eventP{event}; in main()
48 open_power::occ::Manager mgr(eventP); in main()
/openbmc/openbmc/meta-openpower/recipes-phosphor/occ/
H A Dopenpower-occ-control_git.bb3 HOMEPAGE = "https://github.com/openbmc/openpower-occ-control"
16 SYSTEMD_SERVICE:${PN} += "op-occ-enable@.service"
17 SYSTEMD_SERVICE:${PN} += "op-occ-disable@.service"
40 EXTRA_OEMESON:append = "${@bb.utils.contains('MACHINE_FEATURES', 'i2c-occ', ' -Di2c-occ=enabled', '…
47 # Ensure host-stop and host-startmin targets wants needed occ states
48 OCC_TMPL = "op-occ-{0}@.service"
50 OCC_INSTFMT = "op-occ-{0}@{2}.service"
55 # Set the occ disable service to be executed on host error
58 OCC_DISABLE_TMPL = "op-occ-disable@.service"
60 OCC_DISABLE_INSTFMT = "op-occ-disable@{1}.service"
H A Dopenpower-occ-control-config-example-native_git.bb1 SUMMARY = "OpenPower OCC Control with example occ sensor IDs"
5 require openpower-occ-control.inc
6 inherit openpower-occ-control
9 PROVIDES += "virtual/openpower-occ-control-config-native"
13 # Copies example occ sensor ID yaml file
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dtc_police_occ.sh68 local occ=$(tc_police_occ_get)
73 (( occ + 1 == $(tc_police_occ_get) ))
77 (( occ == $(tc_police_occ_get) ))
78 check_err $? "Got occupancy $(tc_police_occ_get), expected $occ"
87 (( occ + 1 == $(tc_police_occ_get) ))
91 (( occ + 1 == $(tc_police_occ_get) ))
95 (( occ == $(tc_police_occ_get) ))
96 check_err $? "Got occupancy $(tc_police_occ_get), expected $occ"
H A Dport_range_occ.sh69 local occ=$(port_range_occ_get)
76 (( occ + 2 == $(port_range_occ_get) ))
88 (( occ + 2 == $(port_range_occ_get) ))
94 (( occ + 2 == $(port_range_occ_get) ))
98 (( occ == $(port_range_occ_get) ))
99 check_err $? "Got occupancy $(port_range_occ_get), expected $occ"
H A Dport_scale.sh56 occ=$(devlink -j resource show $DEVLINK_DEV \
59 [[ $occ -eq $max_ports ]]
60 check_err_fail $should_fail $? "Attempt to create $max_ports ports (actual result $occ)"
/openbmc/linux/Documentation/devicetree/bindings/hwmon/
H A Dibm,p8-occ-hwmon.txt5 - compatible = "ibm,p8-occ-hwmon";
16 occ-hwmon@1 {
17 compatible = "ibm,p8-occ-hwmon";
21 occ-hwmon@2 {
22 compatible = "ibm,p8-occ-hwmon";
/openbmc/linux/arch/arm/boot/dts/aspeed/
H A Daspeed-bmc-opp-vesnin.dts166 occ-hwmon@50 {
167 compatible = "ibm,p8-occ-hwmon";
175 occ-hwmon@51 {
176 compatible = "ibm,p8-occ-hwmon";
193 occ-hwmon@56 {
194 compatible = "ibm,p8-occ-hwmon";
210 occ-hwmon@57 {
211 compatible = "ibm,p8-occ-hwmon";
H A Dibm-power10-dual.dtsi157 fsi_occ0: occ {
158 compatible = "ibm,p10-occ";
160 occ-hwmon {
161 compatible = "ibm,p10-occ-hwmon";
324 fsi_occ1: occ {
325 compatible = "ibm,p10-occ";
327 occ-hwmon {
328 compatible = "ibm,p10-occ-hwmon";
/openbmc/linux/Documentation/devicetree/bindings/fsi/
H A Dibm,p9-occ.txt10 - compatible = "ibm,p9-occ" or "ibm,p10-occ"
14 occ {
15 compatible = "ibm,p9-occ";
/openbmc/qemu/target/openrisc/
H A Dcpu.c92 OpenRISCCPUClass *occ = OPENRISC_CPU_GET_CLASS(obj); in openrisc_cpu_reset_hold() local
94 if (occ->parent_phases.hold) { in openrisc_cpu_reset_hold()
95 occ->parent_phases.hold(obj, type); in openrisc_cpu_reset_hold()
153 OpenRISCCPUClass *occ = OPENRISC_CPU_GET_CLASS(dev); in openrisc_cpu_realizefn() local
165 occ->parent_realize(dev, errp); in openrisc_cpu_realizefn()
249 OpenRISCCPUClass *occ = OPENRISC_CPU_CLASS(oc); in openrisc_cpu_class_init() local
250 CPUClass *cc = CPU_CLASS(occ); in openrisc_cpu_class_init()
255 &occ->parent_realize); in openrisc_cpu_class_init()
257 &occ->parent_phases); in openrisc_cpu_class_init()
/openbmc/linux/drivers/soc/ti/
H A Dk3-ringacc.c42 u32 occ; member
131 u32 occ; member
242 return readl(&ring->rt->occ) & K3_RINGACC_RT_OCC_MASK; in k3_ringacc_ring_read_occ()
249 val = readl(&ring->rt->occ); in k3_ringacc_ring_update_occ()
251 ring->state.occ = val & K3_RINGACC_RT_OCC_MASK; in k3_ringacc_ring_update_occ()
322 dev_dbg(dev, "dump occ%08x\n", readl(&ring->rt->occ)); in k3_ringacc_ring_dump()
509 void k3_ringacc_ring_reset_dma(struct k3_ring *ring, u32 occ) in k3_ringacc_ring_reset_dma() argument
517 if (!occ) in k3_ringacc_ring_reset_dma()
518 occ = k3_ringacc_ring_read_occ(ring); in k3_ringacc_ring_reset_dma()
520 if (occ) { in k3_ringacc_ring_reset_dma()
[all …]
/openbmc/openbmc/meta-openpower/recipes-phosphor/configuration/
H A Dopenpower-yaml-config.bb12 file://ipmi-occ-active-sensor-mrw.yaml \
25 install -m 0644 -D ipmi-occ-active-sensor-mrw.yaml \
26 ${D}${datadir}/${BPN}/ipmi-occ-active-sensor-mrw.yaml
33 ${datadir}/${BPN}/ipmi-occ-active-sensor-mrw.yaml \

123456