/linux-6.6.21/drivers/fsi/ |
D | fsi-occ.c | 42 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 …]
|
D | Makefile | 11 obj-$(CONFIG_FSI_OCC) += fsi-occ.o
|
/linux-6.6.21/drivers/hwmon/occ/ |
D | sysfs.c | 31 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 …]
|
D | common.c | 133 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 …]
|
D | p9_sbe.c | 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() [all …]
|
D | common.h | 91 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);
|
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 | 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 | 18 called occ-p8-hwmon. 32 called occ-p9-hwmon.
|
/linux-6.6.21/tools/testing/selftests/drivers/net/mlxsw/ |
D | tc_police_occ.sh | 68 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"
|
D | port_range_occ.sh | 69 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"
|
D | port_scale.sh | 56 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)"
|
D | rif_mac_profile_scale.sh | 42 occ=$(devlink -j resource show $DEVLINK_DEV \ 45 [[ $occ -eq $count ]] 46 check_err_fail $should_fail $? "Attempt to use $count profiles (actual result $occ)"
|
D | rif_mac_profiles_occ.sh | 93 occ=$(devlink -j resource show $DEVLINK_DEV \ 96 [[ $occ -eq $((count - 1)) ]]
|
/linux-6.6.21/Documentation/devicetree/bindings/hwmon/ |
D | ibm,p8-occ-hwmon.txt | 5 - 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";
|
D | ibm,occ-hwmon.yaml | 4 $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";
|
/linux-6.6.21/arch/arm/boot/dts/aspeed/ |
D | aspeed-bmc-opp-vesnin.dts | 166 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";
|
D | ibm-power10-dual.dtsi | 157 fsi_occ0: occ { 158 compatible = "ibm,p10-occ"; 160 occ-hwmon { 161 compatible = "ibm,p10-occ-hwmon"; 322 fsi_occ1: occ { 323 compatible = "ibm,p10-occ"; 325 occ-hwmon { 326 compatible = "ibm,p10-occ-hwmon";
|
D | ibm-power9-dual.dtsi | 89 fsi_occ0: occ@1 { 90 compatible = "ibm,p9-occ"; 190 fsi_occ1: occ@2 { 191 compatible = "ibm,p9-occ";
|
/linux-6.6.21/Documentation/devicetree/bindings/fsi/ |
D | ibm,p9-occ.txt | 10 - compatible = "ibm,p9-occ" or "ibm,p10-occ" 14 occ { 15 compatible = "ibm,p9-occ";
|
/linux-6.6.21/drivers/soc/ti/ |
D | k3-ringacc.c | 42 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 …]
|
/linux-6.6.21/drivers/net/netdevsim/ |
D | fib.c | 124 u64 occ; member 1116 u64 occ = 0; in nsim_nexthop_create() local 1131 occ = 1; in nsim_nexthop_create() 1135 occ += info->nh_grp->nh_entries[i].weight; in nsim_nexthop_create() 1138 occ = info->nh_res_table->num_nh_buckets; in nsim_nexthop_create() 1147 nexthop->occ = occ; in nsim_nexthop_create() 1156 static int nsim_nexthop_account(struct nsim_fib_data *data, u64 occ, in nsim_nexthop_account() argument 1162 for (i = 0; i < occ; i++) in nsim_nexthop_account() 1170 if (WARN_ON(occ > atomic64_read(&data->nexthops.num))) in nsim_nexthop_account() 1172 atomic64_sub(occ, &data->nexthops.num); in nsim_nexthop_account() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum1_kvdl.c | 282 u64 occ = 0; in mlxsw_sp1_kvdl_part_occ() local 289 occ += info->alloc_size; in mlxsw_sp1_kvdl_part_occ() 290 return occ; in mlxsw_sp1_kvdl_part_occ() 296 u64 occ = 0; in mlxsw_sp1_kvdl_occ_get() local 300 occ += mlxsw_sp1_kvdl_part_occ(kvdl->parts[i]); in mlxsw_sp1_kvdl_occ_get() 302 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 294 mlxsw_reg_sbpm_unpack(sbpm_pl, &pm->occ.cur, &pm->occ.max); in mlxsw_sp_sb_pm_occ_query_cb() 1586 &cm->occ.cur, &cm->occ.max); in mlxsw_sp_sb_sr_occ_query_cb() 1600 &cm->occ.cur, &cm->occ.max); in mlxsw_sp_sb_sr_occ_query_cb() 1764 *p_cur = mlxsw_sp_cells_bytes(mlxsw_sp, pm->occ.cur); in mlxsw_sp_sb_occ_port_pool_get() 1765 *p_max = mlxsw_sp_cells_bytes(mlxsw_sp, pm->occ.max); in mlxsw_sp_sb_occ_port_pool_get() 1783 *p_cur = mlxsw_sp_cells_bytes(mlxsw_sp, cm->occ.cur); in mlxsw_sp_sb_occ_tc_port_bind_get() 1784 *p_max = mlxsw_sp_cells_bytes(mlxsw_sp, cm->occ.max); in mlxsw_sp_sb_occ_tc_port_bind_get()
|
/linux-6.6.21/Documentation/networking/devlink/ |
D | devlink-resource.rst | 51 name linear size 98304 occ 0 unit entry size_min 0 size_max 147456 size_gran 128 71 … name linear size 98304 size_new 147456 occ 0 unit entry size_min 0 size_max 147456 size_gran 128
|