Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/hwmon/occ/
Dsysfs.c28 struct occ *occ = dev_get_drvdata(dev); in occ_sysfs_show() local
32 rc = occ_update_response(occ); in occ_sysfs_show()
36 header = (struct occ_poll_response_header *)occ->resp.data; in occ_sysfs_show()
76 struct occ *occ = dev_get_drvdata(dev); in occ_error_show() local
78 occ_update_response(occ); in occ_error_show()
80 return snprintf(buf, PAGE_SIZE - 1, "%d\n", occ->error); in occ_error_show()
110 void occ_sysfs_poll_done(struct occ *occ) in occ_sysfs_poll_done() argument
114 (struct occ_poll_response_header *)occ->resp.data; in occ_sysfs_poll_done()
120 if (!occ->hwmon) in occ_sysfs_poll_done()
124 (occ->prev_stat & OCC_STAT_MASTER)) { in occ_sysfs_poll_done()
[all …]
Dp9_sbe.c13 struct occ occ; member
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) in p9_sbe_occ_send_cmd() argument
21 struct occ_response *resp = &occ->resp; in p9_sbe_occ_send_cmd()
22 struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ); in p9_sbe_occ_send_cmd()
62 struct occ *occ; in p9_sbe_occ_probe() local
69 occ = &ctx->occ; in p9_sbe_occ_probe()
70 occ->bus_dev = &pdev->dev; in p9_sbe_occ_probe()
71 platform_set_drvdata(pdev, occ); in p9_sbe_occ_probe()
73 occ->powr_sample_time_us = 500; in p9_sbe_occ_probe()
[all …]
Dcommon.c124 static int occ_poll(struct occ *occ) in occ_poll() argument
127 u16 checksum = occ->poll_cmd_data + occ->seq_no + 1; in occ_poll()
132 cmd[0] = occ->seq_no++; /* sequence number */ in occ_poll()
136 cmd[4] = occ->poll_cmd_data; /* data */ in occ_poll()
142 rc = occ->send_cmd(occ, cmd); in occ_poll()
144 occ->last_error = rc; in occ_poll()
145 if (occ->error_count++ > OCC_ERROR_COUNT_THRESHOLD) in occ_poll()
146 occ->error = rc; in occ_poll()
152 occ->error_count = 0; in occ_poll()
153 occ->last_error = 0; in occ_poll()
[all …]
Dcommon.h91 struct occ { struct
100 int (*send_cmd)(struct occ *occ, u8 *cmd); argument
125 int occ_setup(struct occ *occ, const char *name); argument
126 int occ_setup_sysfs(struct occ *occ);
127 void occ_shutdown(struct occ *occ);
128 void occ_sysfs_poll_done(struct occ *occ);
129 int occ_update_response(struct occ *occ);
Dp8_i2c.c30 struct occ occ; member
34 #define to_p8_i2c_occ(x) container_of((x), struct p8_i2c_occ, occ)
111 static int p8_i2c_occ_send_cmd(struct occ *occ, u8 *cmd) in p8_i2c_occ_send_cmd() argument
118 struct p8_i2c_occ *ctx = to_p8_i2c_occ(occ); in p8_i2c_occ_send_cmd()
120 struct occ_response *resp = &occ->resp; in p8_i2c_occ_send_cmd()
208 struct occ *occ; in p8_i2c_occ_probe() local
215 occ = &ctx->occ; in p8_i2c_occ_probe()
216 occ->bus_dev = &client->dev; in p8_i2c_occ_probe()
217 dev_set_drvdata(&client->dev, occ); in p8_i2c_occ_probe()
219 occ->powr_sample_time_us = 250; in p8_i2c_occ_probe()
[all …]
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
DKconfig19 called occ-p8-hwmon.
34 called occ-p9-hwmon.
/kernel/linux/linux-5.10/drivers/fsi/
Dfsi-occ.c40 struct occ { struct
49 #define to_occ(x) container_of((x), struct occ, mdev) argument
60 struct occ *occ; member
75 struct occ *occ = to_occ(mdev); in occ_open() local
86 client->occ = occ; in occ_open()
181 rc = fsi_occ_submit(client->occ->dev, cmd, data_length + 6, cmd, in occ_write()
238 static int occ_getsram(struct occ *occ, u32 address, void *data, ssize_t len) in occ_getsram() argument
260 rc = sbefifo_submit(occ->sbefifo, cmd, 5, resp, &resp_len); in occ_getsram()
264 rc = sbefifo_parse_status(occ->sbefifo, SBEFIFO_CMD_GET_OCC_SRAM, in occ_getsram()
271 dev_err(occ->dev, "SRAM read expected %d bytes got %zd\n", in occ_getsram()
[all …]
DMakefile10 obj-$(CONFIG_FSI_OCC) += fsi-occ.o
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
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"
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/i2c/
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";
/kernel/linux/linux-5.10/arch/arm/boot/dts/
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";
Dibm-power9-dual.dtsi89 fsi_occ0: occ@1 {
90 compatible = "ibm,p9-occ";
190 fsi_occ1: occ@2 {
191 compatible = "ibm,p9-occ";
Daspeed-bmc-ibm-rainier.dts295 fsi_occ0: occ {
296 compatible = "ibm,p10-occ";
407 fsi_occ1: occ {
408 compatible = "ibm,p10-occ";
517 fsi_occ2: occ {
518 compatible = "ibm,p10-occ";
Daspeed-bmc-opp-tacoma.dts277 fsi_occ0: occ {
278 compatible = "ibm,p9-occ";
378 fsi_occ1: occ {
379 compatible = "ibm,p9-occ";
Daspeed-bmc-opp-palmetto.dts175 occ-hwmon@50 {
176 compatible = "ibm,p8-occ-hwmon";
/kernel/linux/linux-5.10/drivers/soc/ti/
Dk3-ringacc.c40 u32 occ; member
122 u32 occ; member
276 dev_dbg(dev, "dump occ%08x\n", readl(&ring->rt->occ)); in k3_ringacc_ring_dump()
420 void k3_ringacc_ring_reset_dma(struct k3_ring *ring, u32 occ) in k3_ringacc_ring_reset_dma() argument
428 if (!occ) in k3_ringacc_ring_reset_dma()
429 occ = readl(&ring->rt->occ); in k3_ringacc_ring_reset_dma()
431 if (occ) { in k3_ringacc_ring_reset_dma()
435 ring->ring_id, occ); in k3_ringacc_ring_reset_dma()
451 db_ring_cnt = (1U << 22) - occ; in k3_ringacc_ring_reset_dma()
714 ring->state.free = ring->size - readl(&ring->rt->occ); in k3_ringacc_ring_get_free()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/fsi/
Dibm,p9-occ.txt10 - compatible = "ibm,p9-occ"
14 occ {
15 compatible = "ibm,p9-occ";
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum1_kvdl.c283 u64 occ = 0; in mlxsw_sp1_kvdl_part_occ() local
290 occ += info->alloc_size; in mlxsw_sp1_kvdl_part_occ()
291 return occ; in mlxsw_sp1_kvdl_part_occ()
297 u64 occ = 0; in mlxsw_sp1_kvdl_occ_get() local
301 occ += mlxsw_sp1_kvdl_part_occ(kvdl->parts[i]); in mlxsw_sp1_kvdl_occ_get()
303 return occ; in mlxsw_sp1_kvdl_occ_get()
Dspectrum_buffers.c32 struct mlxsw_cp_sb_occ occ; member
43 struct mlxsw_cp_sb_occ occ; member
279 mlxsw_reg_sbpm_unpack(sbpm_pl, &pm->occ.cur, &pm->occ.max); in mlxsw_sp_sb_pm_occ_query_cb()
1560 &cm->occ.cur, &cm->occ.max); in mlxsw_sp_sb_sr_occ_query_cb()
1574 &cm->occ.cur, &cm->occ.max); in mlxsw_sp_sb_sr_occ_query_cb()
1722 *p_cur = mlxsw_sp_cells_bytes(mlxsw_sp, pm->occ.cur); in mlxsw_sp_sb_occ_port_pool_get()
1723 *p_max = mlxsw_sp_cells_bytes(mlxsw_sp, pm->occ.max); in mlxsw_sp_sb_occ_port_pool_get()
1741 *p_cur = mlxsw_sp_cells_bytes(mlxsw_sp, cm->occ.cur); in mlxsw_sp_sb_occ_tc_port_bind_get()
1742 *p_max = mlxsw_sp_cells_bytes(mlxsw_sp, cm->occ.max); in mlxsw_sp_sb_occ_tc_port_bind_get()
/kernel/linux/linux-5.10/Documentation/networking/devlink/
Ddevlink-resource.rst37 name linear size 98304 occ 0 unit entry size_min 0 size_max 147456 size_gran 128
57 … name linear size 98304 size_new 147456 occ 0 unit entry size_min 0 size_max 147456 size_gran 128
/kernel/linux/linux-5.10/include/linux/soc/ti/
Dk3-ringacc.h128 void k3_ringacc_ring_reset_dma(struct k3_ring *ring, u32 occ);
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/netdevsim/
Ddevlink.sh296 local occ=$(res_val_get testns1 IPv4 fib occ)
297 local limit=$((occ+1))
/kernel/linux/linux-5.10/Documentation/hwmon/
Dindex.rst143 occ
Docc.rst1 Kernel driver occ-hwmon
20 manually if an "ibm,p8-occ-hwmon" compatible device is found under the

12