/linux/drivers/fsi/ |
H A 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 …]
|
H A D | Makefile | 11 obj-$(CONFIG_FSI_OCC) += fsi-occ.o
|
/linux/drivers/hwmon/occ/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H 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);
|
H A 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 …]
|
H 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
|
H A D | Kconfig | 18 called occ-p8-hwmon. 32 called occ-p9-hwmon.
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H 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"
|
H A 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"
|
H 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)"
|
H 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)"
|
H A D | rif_mac_profiles_occ.sh | 93 occ=$(devlink -j resource show $DEVLINK_DEV \ 96 [[ $occ -eq $((count - 1)) ]]
|
/linux/arch/arm/boot/dts/aspeed/ |
H 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";
|
H 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";
|
H A D | ibm-power11-quad.dtsi | 464 occ { 465 compatible = "ibm,p10-occ"; 468 compatible = "ibm,p10-occ-hwmon"; 817 occ { 818 compatible = "ibm,p10-occ"; 821 compatible = "ibm,p10-occ-hwmon"; 1169 occ { 1170 compatible = "ibm,p10-occ"; 1173 compatible = "ibm,p10-occ-hwmon"; 1521 occ { [all …]
|
H A D | ibm-power10-quad.dtsi | 808 fsi_occ2: occ { 809 compatible = "ibm,p10-occ"; 811 occ-hwmon { 812 compatible = "ibm,p10-occ-hwmon"; 1181 fsi_occ3: occ { 1182 compatible = "ibm,p10-occ"; 1184 occ-hwmon { 1185 compatible = "ibm,p10-occ-hwmon";
|
/linux/drivers/soc/ti/ |
H A 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/arch/mips/boot/dts/mobileye/ |
H A D | eyeq5-clocks.dtsi | 17 occ_cpu: occ-cpu { 80 occ_isram: occ-isram { 94 occ_dbu: occ-dbu { 109 occ_vdi: occ-vdi { 123 occ_can_ser: occ-can-ser { 145 occ_periph: occ-periph { 220 occ_mjpeg_core: occ-mjpeg-core { 252 occ_pci_sys: occ-pci-sys {
|
H A D | eyeq6h-fixed-clocks.dtsi | 28 occ_cpu: clock-2000000000-occ-cpu {
|
/linux/drivers/net/netdevsim/ |
H 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() 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/drivers/net/ethernet/mellanox/mlxsw/ |
H 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()
|
H 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() 1590 &cm->occ.cur, &cm->occ.max); in mlxsw_sp_sb_sr_occ_query_cb() 1604 &cm->occ.cur, &cm->occ.max); in mlxsw_sp_sb_sr_occ_query_cb() 1776 *p_cur = mlxsw_sp_cells_bytes(mlxsw_sp, pm->occ.cur); in mlxsw_sp_sb_occ_port_pool_get() 1777 *p_max = mlxsw_sp_cells_bytes(mlxsw_sp, pm->occ.max); in mlxsw_sp_sb_occ_port_pool_get() 1795 *p_cur = mlxsw_sp_cells_bytes(mlxsw_sp, cm->occ.cur); in mlxsw_sp_sb_occ_tc_port_bind_get() 1796 *p_max = mlxsw_sp_cells_bytes(mlxsw_sp, cm->occ.max); in mlxsw_sp_sb_occ_tc_port_bind_get()
|
/linux/Documentation/networking/devlink/ |
H A 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
|