/linux-6.3-rc2/drivers/fsi/ |
A D | fsi-occ.c | 42 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 …]
|
A D | Makefile | 10 obj-$(CONFIG_FSI_OCC) += fsi-occ.o
|
/linux-6.3-rc2/drivers/hwmon/occ/ |
A D | sysfs.c | 31 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 …]
|
A D | common.c | 133 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 …]
|
A D | p9_sbe.c | 21 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 …]
|
A 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);
|
A D | p8_i2c.c | 30 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 …]
|
A 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
|
A D | Kconfig | 18 called occ-p8-hwmon. 32 called occ-p9-hwmon.
|
/linux-6.3-rc2/tools/testing/selftests/drivers/net/mlxsw/ |
A 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"
|
A 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)"
|
A 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)"
|
A D | rif_mac_profiles_occ.sh | 93 occ=$(devlink -j resource show $DEVLINK_DEV \ 96 [[ $occ -eq $((count - 1)) ]]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/hwmon/ |
A 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";
|
A 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.3-rc2/arch/arm/boot/dts/ |
A 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";
|
A 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";
|
A D | aspeed-bmc-ibm-everest.dts | 2551 fsi_occ0: occ { 2554 occ-hwmon { 2700 fsi_occ1: occ { 2703 occ-hwmon { 2849 fsi_occ2: occ { 2852 occ-hwmon { 3001 occ-hwmon { 3150 occ-hwmon { 3299 occ-hwmon { 3448 occ-hwmon { [all …]
|
A D | aspeed-bmc-ibm-bonnell.dts | 337 fsi_occ0: occ { 338 compatible = "ibm,p10-occ"; 340 occ-hwmon { 341 compatible = "ibm,p10-occ-hwmon"; 486 fsi_occ1: occ { 487 compatible = "ibm,p10-occ"; 489 occ-hwmon { 490 compatible = "ibm,p10-occ-hwmon";
|
A D | aspeed-bmc-ibm-rainier.dts | 445 fsi_occ0: occ { 446 compatible = "ibm,p10-occ"; 448 occ-hwmon { 594 fsi_occ1: occ { 595 compatible = "ibm,p10-occ"; 597 occ-hwmon { 743 fsi_occ2: occ { 744 compatible = "ibm,p10-occ"; 746 occ-hwmon { 892 fsi_occ3: occ { [all …]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/fsi/ |
A D | ibm,p9-occ.txt | 10 - compatible = "ibm,p9-occ" or "ibm,p10-occ" 14 occ { 15 compatible = "ibm,p9-occ";
|
/linux-6.3-rc2/drivers/soc/ti/ |
A D | k3-ringacc.c | 43 u32 occ; member 131 u32 occ; member 510 if (!occ) in k3_ringacc_ring_reset_dma() 513 if (occ) { in k3_ringacc_ring_reset_dma() 517 ring->ring_id, occ); in k3_ringacc_ring_reset_dma() 968 ring->state.occ--; in k3_ringacc_ring_access_proxy() 983 ring->state.occ); in k3_ringacc_ring_access_proxy() 1038 ring->state.occ--; in k3_ringacc_ring_access_io() 1113 ring->state.occ--; in k3_dmaring_fwd_pop() 1133 ring->state.occ--; in k3_dmaring_reverse_pop() [all …]
|
/linux-6.3-rc2/drivers/net/netdevsim/ |
A 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() 1162 for (i = 0; i < occ; i++) in nsim_nexthop_account() 1172 atomic64_sub(occ, &data->nexthops.num); in nsim_nexthop_account() 1194 for (i = 0; i < nexthop->occ; i++) in nsim_nexthop_hw_flags_set() 1392 bucket_index >= nexthop->occ) { in nsim_nexthop_bucket_activity_write() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/ |
A 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()
|
A 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()
|