/drivers/hwmon/occ/ |
D | sysfs.c | 28 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 sysfs_emit(buf, "%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 …]
|
D | common.c | 132 static int occ_poll(struct occ *occ) in occ_poll() argument 143 cmd[4] = occ->poll_cmd_data; /* data */ in occ_poll() 148 rc = occ->send_cmd(occ, cmd, sizeof(cmd), &occ->resp, sizeof(occ->resp)); in occ_poll() 150 occ->last_error = rc; in occ_poll() 151 if (occ->error_count++ > OCC_ERROR_COUNT_THRESHOLD) in occ_poll() 152 occ->error = rc; in occ_poll() 158 occ->error_count = 0; in occ_poll() 159 occ->last_error = 0; in occ_poll() 160 occ->error = 0; in occ_poll() 163 header = (struct occ_poll_response_header *)occ->resp.data; in occ_poll() [all …]
|
D | p9_sbe.c | 13 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, size_t len, in p9_sbe_occ_send_cmd() argument 22 struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ); in p9_sbe_occ_send_cmd() 61 struct occ *occ; in p9_sbe_occ_probe() local 68 occ = &ctx->occ; in p9_sbe_occ_probe() 69 occ->bus_dev = &pdev->dev; in p9_sbe_occ_probe() 70 platform_set_drvdata(pdev, occ); in p9_sbe_occ_probe() 72 occ->powr_sample_time_us = 500; in p9_sbe_occ_probe() 73 occ->poll_cmd_data = 0x20; /* P9 OCC poll data */ in p9_sbe_occ_probe() [all …]
|
D | p8_i2c.c | 30 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 …]
|
D | common.h | 91 struct occ { struct 99 int (*send_cmd)(struct occ *occ, u8 *cmd, size_t len, void *resp, 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);
|
D | Makefile | 2 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
|
D | Kconfig | 19 called occ-p8-hwmon. 34 called occ-p9-hwmon.
|
/drivers/fsi/ |
D | fsi-occ.c | 48 struct occ { struct 59 #define to_occ(x) container_of((x), struct occ, mdev) argument 70 struct occ *occ; member 85 struct occ *occ = to_occ(mdev); in occ_open() local 96 client->occ = occ; in occ_open() 180 rc = fsi_occ_submit(client->occ->dev, cmd, data_length + 6, cmd, in occ_write() 216 static int occ_verify_checksum(struct occ *occ, struct occ_response *resp, in occ_verify_checksum() argument 233 dev_err(occ->dev, "Bad checksum: %04x!=%04x\n", checksum, in occ_verify_checksum() 241 static int occ_getsram(struct occ *occ, u32 offset, void *data, ssize_t len) in occ_getsram() argument 252 switch (occ->version) { in occ_getsram() [all …]
|
D | Makefile | 10 obj-$(CONFIG_FSI_OCC) += fsi-occ.o
|
/drivers/soc/ti/ |
D | k3-ringacc.c | 43 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() 496 void k3_ringacc_ring_reset_dma(struct k3_ring *ring, u32 occ) in k3_ringacc_ring_reset_dma() argument 504 if (!occ) in k3_ringacc_ring_reset_dma() 505 occ = k3_ringacc_ring_read_occ(ring); in k3_ringacc_ring_reset_dma() 507 if (occ) { in k3_ringacc_ring_reset_dma() [all …]
|
/drivers/net/netdevsim/ |
D | fib.c | 122 u64 occ; member 1105 u64 occ = 0; in nsim_nexthop_create() local 1120 occ = 1; in nsim_nexthop_create() 1124 occ += info->nh_grp->nh_entries[i].weight; in nsim_nexthop_create() 1127 occ = info->nh_res_table->num_nh_buckets; in nsim_nexthop_create() 1136 nexthop->occ = occ; in nsim_nexthop_create() 1145 static int nsim_nexthop_account(struct nsim_fib_data *data, u64 occ, in nsim_nexthop_account() argument 1151 for (i = 0; i < occ; i++) in nsim_nexthop_account() 1159 if (WARN_ON(occ > atomic64_read(&data->nexthops.num))) in nsim_nexthop_account() 1161 atomic64_sub(occ, &data->nexthops.num); in nsim_nexthop_account() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum1_kvdl.c | 283 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()
|
D | spectrum_buffers.c | 32 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()
|
/drivers/hwmon/ |
D | Makefile | 205 obj-$(CONFIG_SENSORS_OCC) += occ/
|
D | Kconfig | 1506 source "drivers/hwmon/occ/Kconfig"
|
/drivers/gpu/drm/vmwgfx/device_include/ |
D | svga3d_types.h | 1390 SVGADXOcclusionQueryResult occ; member
|