Home
last modified time | relevance | path

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

123456

/openbmc/linux/drivers/fsi/
H A Dfsi-occ.c42 struct occ { struct
69 struct occ *occ; member
84 struct occ *occ = to_occ(mdev); in occ_open() local
95 client->occ = occ; in occ_open()
396 static int occ_trigger_attn(struct occ *occ) in occ_trigger_attn() argument
471 struct occ *occ = dev_get_drvdata(dev); in fsi_occ_submit() local
485 if (!occ) in fsi_occ_submit()
627 struct occ *occ; in occ_probe() local
674 snprintf(occ->name, sizeof(occ->name), "occ%d", occ->idx); in occ_probe()
677 occ->mdev.name = occ->name; in occ_probe()
[all …]
/openbmc/linux/drivers/hwmon/occ/
H A Dsysfs.c31 struct occ *occ = dev_get_drvdata(dev); in occ_active_store() local
49 struct occ *occ = dev_get_drvdata(dev); in occ_sysfs_show() local
53 if (occ->active) { 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()
162 void occ_sysfs_poll_done(struct occ *occ) in occ_sysfs_poll_done() argument
172 if (!occ->active) in occ_sysfs_poll_done()
233 if (occ->error && occ->error != occ->prev_error) { in occ_sysfs_poll_done()
241 occ->prev_error = occ->error; in occ_sysfs_poll_done()
249 int occ_setup_sysfs(struct occ *occ) in occ_setup_sysfs() argument
[all …]
H A Dcommon.c133 static int occ_poll(struct occ *occ) in occ_poll() argument
149 rc = occ->send_cmd(occ, cmd, sizeof(cmd), &occ->resp, sizeof(occ->resp)); in occ_poll()
210 int occ_update_response(struct occ *occ) in occ_update_response() argument
235 struct occ *occ = dev_get_drvdata(dev); in occ_show_temp_1() local
271 struct occ *occ = dev_get_drvdata(dev); in occ_show_temp_2() local
322 struct occ *occ = dev_get_drvdata(dev); in occ_show_temp_10() local
369 struct occ *occ = dev_get_drvdata(dev); in occ_show_freq_1() local
399 struct occ *occ = dev_get_drvdata(dev); in occ_show_freq_2() local
1212 int occ_setup(struct occ *occ) in occ_setup() argument
1217 occ->groups[0] = &occ->group; in occ_setup()
[all …]
H A Dp9_sbe.c21 struct occ occ; member
37 struct occ *occ = dev_get_drvdata(kobj_to_dev(kobj)); in ffdc_read() local
83 static int p9_sbe_occ_send_cmd(struct occ *occ, u8 *cmd, size_t len, in p9_sbe_occ_send_cmd() argument
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()
150 occ->powr_sample_time_us = 500; in p9_sbe_occ_probe()
154 rc = occ_setup(occ); 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
[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
114 static int p8_i2c_occ_send_cmd(struct occ *occ, u8 *cmd, size_t len, in p8_i2c_occ_send_cmd() argument
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()
225 occ->send_cmd = p8_i2c_occ_send_cmd; in p8_i2c_occ_probe()
227 return occ_setup(occ); in p8_i2c_occ_probe()
232 struct occ *occ = dev_get_drvdata(&client->dev); in p8_i2c_occ_remove() local
[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.c58 occ->occmisc = val; 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()
194 val = occ->occmisc; in pnv_occ_power9_xscom_read()
211 pnv_occ_set_misc(occ, 0); in pnv_occ_power9_xscom_write()
214 pnv_occ_set_misc(occ, occ->occmisc | val); in pnv_occ_power9_xscom_write()
267 PnvOCC *occ = PNV_OCC(dev); in pnv_occ_realize() local
[all …]
/openbmc/openpower-occ-control/
H A Dmeson.build2 'openpower-occ-control', 'cpp',
20 conf_data.set_quoted('OCC_NAME', 'occ')
21 conf_data.set_quoted('OCC_MASTER_NAME', 'occ-hwmon.1')
22 conf_data.set_quoted('OCC_DEV_PATH', '/dev/occ')
32 if get_option('i2c-occ').allowed()
41 conf_data.set('I2C_OCC', get_option('i2c-occ').allowed())
60 install_data('occ-active.sh',
147 # Generate occ-sensor.hpp.
149 'occ-sensor.hpp',
155 output : 'occ-sensor.hpp')
[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()
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);
200 std::function<void(open_power::occ::instanceID, bool)> sbeCallBack =
[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";
H A Dibm,occ-hwmon.yaml4 $id: http://devicetree.org/schemas/hwmon/ibm,occ-hwmon.yaml#
21 - ibm,p9-occ-hwmon
22 - ibm,p10-occ-hwmon
37 compatible = "ibm,p10-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";
/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
517 if (!occ) in k3_ringacc_ring_reset_dma()
520 if (occ) { in k3_ringacc_ring_reset_dma()
524 ring->ring_id, occ); in k3_ringacc_ring_reset_dma()
975 ring->state.occ--; in k3_ringacc_ring_access_proxy()
990 ring->state.occ); in k3_ringacc_ring_access_proxy()
1045 ring->state.occ--; in k3_ringacc_ring_access_io()
1120 ring->state.occ--; in k3_dmaring_fwd_pop()
1140 ring->state.occ--; in k3_dmaring_reverse_pop()
[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