occ 49 drivers/fsi/fsi-occ.c #define to_occ(x) container_of((x), struct occ, mdev) occ 60 drivers/fsi/fsi-occ.c struct occ *occ; occ 75 drivers/fsi/fsi-occ.c struct occ *occ = to_occ(mdev); occ 86 drivers/fsi/fsi-occ.c client->occ = occ; occ 181 drivers/fsi/fsi-occ.c rc = fsi_occ_submit(client->occ->dev, cmd, data_length + 6, cmd, occ 238 drivers/fsi/fsi-occ.c static int occ_getsram(struct occ *occ, u32 address, void *data, ssize_t len) occ 260 drivers/fsi/fsi-occ.c rc = sbefifo_submit(occ->sbefifo, cmd, 5, resp, &resp_len); occ 264 drivers/fsi/fsi-occ.c rc = sbefifo_parse_status(occ->sbefifo, SBEFIFO_CMD_GET_OCC_SRAM, occ 271 drivers/fsi/fsi-occ.c dev_err(occ->dev, "SRAM read expected %d bytes got %zd\n", occ 281 drivers/fsi/fsi-occ.c dev_err(occ->dev, "SRAM read returned failure status: %08x\n", occ 290 drivers/fsi/fsi-occ.c static int occ_putsram(struct occ *occ, u32 address, const void *data, occ 321 drivers/fsi/fsi-occ.c rc = sbefifo_submit(occ->sbefifo, buf, cmd_len, buf, &resp_len); occ 325 drivers/fsi/fsi-occ.c rc = sbefifo_parse_status(occ->sbefifo, SBEFIFO_CMD_PUT_OCC_SRAM, occ 331 drivers/fsi/fsi-occ.c dev_err(occ->dev, "SRAM write response length invalid: %zd\n", occ 337 drivers/fsi/fsi-occ.c dev_err(occ->dev, occ 347 drivers/fsi/fsi-occ.c dev_err(occ->dev, "SRAM write returned failure status: %08x\n", occ 356 drivers/fsi/fsi-occ.c static int occ_trigger_attn(struct occ *occ) occ 373 drivers/fsi/fsi-occ.c rc = sbefifo_submit(occ->sbefifo, buf, 7, buf, &resp_len); occ 377 drivers/fsi/fsi-occ.c rc = sbefifo_parse_status(occ->sbefifo, SBEFIFO_CMD_PUT_OCC_SRAM, occ 383 drivers/fsi/fsi-occ.c dev_err(occ->dev, "SRAM attn response length invalid: %zd\n", occ 389 drivers/fsi/fsi-occ.c dev_err(occ->dev, occ 399 drivers/fsi/fsi-occ.c dev_err(occ->dev, "SRAM attn returned failure status: %08x\n", occ 413 drivers/fsi/fsi-occ.c struct occ *occ = dev_get_drvdata(dev); occ 420 drivers/fsi/fsi-occ.c if (!occ) occ 428 drivers/fsi/fsi-occ.c mutex_lock(&occ->occ_lock); occ 432 drivers/fsi/fsi-occ.c rc = occ_putsram(occ, OCC_SRAM_CMD_ADDR, request, req_len); occ 436 drivers/fsi/fsi-occ.c rc = occ_trigger_attn(occ); occ 443 drivers/fsi/fsi-occ.c rc = occ_getsram(occ, OCC_SRAM_RSP_ADDR, resp, 8); occ 452 drivers/fsi/fsi-occ.c dev_err(occ->dev, "resp timeout status=%02x " occ 479 drivers/fsi/fsi-occ.c rc = occ_getsram(occ, OCC_SRAM_RSP_ADDR + 8, occ 489 drivers/fsi/fsi-occ.c mutex_unlock(&occ->occ_lock); occ 508 drivers/fsi/fsi-occ.c struct occ *occ; occ 516 drivers/fsi/fsi-occ.c occ = devm_kzalloc(dev, sizeof(*occ), GFP_KERNEL); occ 517 drivers/fsi/fsi-occ.c if (!occ) occ 520 drivers/fsi/fsi-occ.c occ->dev = dev; occ 521 drivers/fsi/fsi-occ.c occ->sbefifo = dev->parent; occ 522 drivers/fsi/fsi-occ.c mutex_init(&occ->occ_lock); occ 528 drivers/fsi/fsi-occ.c occ->idx = ida_simple_get(&occ_ida, reg, reg + 1, occ 530 drivers/fsi/fsi-occ.c if (occ->idx < 0) occ 531 drivers/fsi/fsi-occ.c occ->idx = ida_simple_get(&occ_ida, 1, INT_MAX, occ 534 drivers/fsi/fsi-occ.c occ->idx = ida_simple_get(&occ_ida, 1, INT_MAX, occ 538 drivers/fsi/fsi-occ.c occ->idx = ida_simple_get(&occ_ida, 1, INT_MAX, GFP_KERNEL); occ 541 drivers/fsi/fsi-occ.c platform_set_drvdata(pdev, occ); occ 543 drivers/fsi/fsi-occ.c snprintf(occ->name, sizeof(occ->name), "occ%d", occ->idx); occ 544 drivers/fsi/fsi-occ.c occ->mdev.fops = &occ_fops; occ 545 drivers/fsi/fsi-occ.c occ->mdev.minor = MISC_DYNAMIC_MINOR; occ 546 drivers/fsi/fsi-occ.c occ->mdev.name = occ->name; occ 547 drivers/fsi/fsi-occ.c occ->mdev.parent = dev; occ 549 drivers/fsi/fsi-occ.c rc = misc_register(&occ->mdev); occ 552 drivers/fsi/fsi-occ.c ida_simple_remove(&occ_ida, occ->idx); occ 556 drivers/fsi/fsi-occ.c hwmon_dev_info.id = occ->idx; occ 566 drivers/fsi/fsi-occ.c struct occ *occ = platform_get_drvdata(pdev); occ 568 drivers/fsi/fsi-occ.c misc_deregister(&occ->mdev); occ 572 drivers/fsi/fsi-occ.c ida_simple_remove(&occ_ida, occ->idx); occ 124 drivers/hwmon/occ/common.c static int occ_poll(struct occ *occ) occ 127 drivers/hwmon/occ/common.c u16 checksum = occ->poll_cmd_data + occ->seq_no + 1; occ 132 drivers/hwmon/occ/common.c cmd[0] = occ->seq_no++; /* sequence number */ occ 136 drivers/hwmon/occ/common.c cmd[4] = occ->poll_cmd_data; /* data */ occ 142 drivers/hwmon/occ/common.c rc = occ->send_cmd(occ, cmd); occ 144 drivers/hwmon/occ/common.c occ->last_error = rc; occ 145 drivers/hwmon/occ/common.c if (occ->error_count++ > OCC_ERROR_COUNT_THRESHOLD) occ 146 drivers/hwmon/occ/common.c occ->error = rc; occ 152 drivers/hwmon/occ/common.c occ->error_count = 0; occ 153 drivers/hwmon/occ/common.c occ->last_error = 0; occ 154 drivers/hwmon/occ/common.c occ->error = 0; occ 157 drivers/hwmon/occ/common.c header = (struct occ_poll_response_header *)occ->resp.data; occ 159 drivers/hwmon/occ/common.c if (occ->last_safe) { occ 161 drivers/hwmon/occ/common.c occ->last_safe + OCC_SAFE_TIMEOUT)) occ 162 drivers/hwmon/occ/common.c occ->error = -EHOSTDOWN; occ 164 drivers/hwmon/occ/common.c occ->last_safe = jiffies; occ 167 drivers/hwmon/occ/common.c occ->last_safe = 0; occ 171 drivers/hwmon/occ/common.c occ_sysfs_poll_done(occ); occ 175 drivers/hwmon/occ/common.c static int occ_set_user_power_cap(struct occ *occ, u16 user_power_cap) occ 193 drivers/hwmon/occ/common.c rc = mutex_lock_interruptible(&occ->lock); occ 197 drivers/hwmon/occ/common.c rc = occ->send_cmd(occ, cmd); occ 199 drivers/hwmon/occ/common.c mutex_unlock(&occ->lock); occ 204 drivers/hwmon/occ/common.c int occ_update_response(struct occ *occ) occ 206 drivers/hwmon/occ/common.c int rc = mutex_lock_interruptible(&occ->lock); occ 212 drivers/hwmon/occ/common.c if (time_after(jiffies, occ->last_update + OCC_UPDATE_FREQUENCY)) { occ 213 drivers/hwmon/occ/common.c rc = occ_poll(occ); occ 214 drivers/hwmon/occ/common.c occ->last_update = jiffies; occ 216 drivers/hwmon/occ/common.c rc = occ->last_error; occ 219 drivers/hwmon/occ/common.c mutex_unlock(&occ->lock); occ 229 drivers/hwmon/occ/common.c struct occ *occ = dev_get_drvdata(dev); occ 230 drivers/hwmon/occ/common.c struct occ_sensors *sensors = &occ->sensors; occ 233 drivers/hwmon/occ/common.c rc = occ_update_response(occ); occ 265 drivers/hwmon/occ/common.c struct occ *occ = dev_get_drvdata(dev); occ 266 drivers/hwmon/occ/common.c struct occ_sensors *sensors = &occ->sensors; occ 269 drivers/hwmon/occ/common.c rc = occ_update_response(occ); occ 316 drivers/hwmon/occ/common.c struct occ *occ = dev_get_drvdata(dev); occ 317 drivers/hwmon/occ/common.c struct occ_sensors *sensors = &occ->sensors; occ 320 drivers/hwmon/occ/common.c rc = occ_update_response(occ); occ 346 drivers/hwmon/occ/common.c struct occ *occ = dev_get_drvdata(dev); occ 347 drivers/hwmon/occ/common.c struct occ_sensors *sensors = &occ->sensors; occ 350 drivers/hwmon/occ/common.c rc = occ_update_response(occ); occ 376 drivers/hwmon/occ/common.c struct occ *occ = dev_get_drvdata(dev); occ 377 drivers/hwmon/occ/common.c struct occ_sensors *sensors = &occ->sensors; occ 380 drivers/hwmon/occ/common.c rc = occ_update_response(occ); occ 397 drivers/hwmon/occ/common.c occ->powr_sample_time_us; occ 423 drivers/hwmon/occ/common.c struct occ *occ = dev_get_drvdata(dev); occ 424 drivers/hwmon/occ/common.c struct occ_sensors *sensors = &occ->sensors; occ 427 drivers/hwmon/occ/common.c rc = occ_update_response(occ); occ 444 drivers/hwmon/occ/common.c occ->powr_sample_time_us; occ 462 drivers/hwmon/occ/common.c struct occ *occ = dev_get_drvdata(dev); occ 463 drivers/hwmon/occ/common.c struct occ_sensors *sensors = &occ->sensors; occ 466 drivers/hwmon/occ/common.c rc = occ_update_response(occ); occ 482 drivers/hwmon/occ/common.c occ->powr_sample_time_us; occ 496 drivers/hwmon/occ/common.c occ->powr_sample_time_us; occ 510 drivers/hwmon/occ/common.c occ->powr_sample_time_us; occ 524 drivers/hwmon/occ/common.c occ->powr_sample_time_us; occ 542 drivers/hwmon/occ/common.c struct occ *occ = dev_get_drvdata(dev); occ 543 drivers/hwmon/occ/common.c struct occ_sensors *sensors = &occ->sensors; occ 546 drivers/hwmon/occ/common.c rc = occ_update_response(occ); occ 574 drivers/hwmon/occ/common.c if (occ->sensors.caps.version == 1) occ 592 drivers/hwmon/occ/common.c struct occ *occ = dev_get_drvdata(dev); occ 593 drivers/hwmon/occ/common.c struct occ_sensors *sensors = &occ->sensors; occ 596 drivers/hwmon/occ/common.c rc = occ_update_response(occ); occ 640 drivers/hwmon/occ/common.c struct occ *occ = dev_get_drvdata(dev); occ 648 drivers/hwmon/occ/common.c rc = occ_set_user_power_cap(occ, user_power_cap); occ 660 drivers/hwmon/occ/common.c struct occ *occ = dev_get_drvdata(dev); occ 661 drivers/hwmon/occ/common.c struct occ_sensors *sensors = &occ->sensors; occ 664 drivers/hwmon/occ/common.c rc = occ_update_response(occ); occ 724 drivers/hwmon/occ/common.c static int occ_setup_sensor_attrs(struct occ *occ) occ 727 drivers/hwmon/occ/common.c struct device *dev = occ->bus_dev; occ 728 drivers/hwmon/occ/common.c struct occ_sensors *sensors = &occ->sensors; occ 800 drivers/hwmon/occ/common.c occ->attrs = devm_kzalloc(dev, sizeof(*occ->attrs) * num_attrs, occ 802 drivers/hwmon/occ/common.c if (!occ->attrs) occ 806 drivers/hwmon/occ/common.c occ->group.attrs = devm_kzalloc(dev, sizeof(*occ->group.attrs) * occ 808 drivers/hwmon/occ/common.c if (!occ->group.attrs) occ 811 drivers/hwmon/occ/common.c attr = occ->attrs; occ 1009 drivers/hwmon/occ/common.c sysfs_attr_init(&occ->attrs[i].sensor.dev_attr.attr); occ 1010 drivers/hwmon/occ/common.c occ->group.attrs[i] = &occ->attrs[i].sensor.dev_attr.attr; occ 1017 drivers/hwmon/occ/common.c static void occ_parse_poll_response(struct occ *occ) occ 1021 drivers/hwmon/occ/common.c struct occ_sensors *sensors = &occ->sensors; occ 1022 drivers/hwmon/occ/common.c struct occ_response *resp = &occ->resp; occ 1028 drivers/hwmon/occ/common.c dev_info(occ->bus_dev, "OCC found, code level: %.16s\n", occ 1040 drivers/hwmon/occ/common.c dev_warn(occ->bus_dev, "exceeded response buffer\n"); occ 1044 drivers/hwmon/occ/common.c dev_dbg(occ->bus_dev, " %04x..%04x: %.4s (%d sensors)\n", occ 1060 drivers/hwmon/occ/common.c dev_warn(occ->bus_dev, "sensor not supported %.4s\n", occ 1070 drivers/hwmon/occ/common.c dev_dbg(occ->bus_dev, "Max resp size: %u+%zd=%zd\n", size, occ 1074 drivers/hwmon/occ/common.c int occ_setup(struct occ *occ, const char *name) occ 1078 drivers/hwmon/occ/common.c mutex_init(&occ->lock); occ 1079 drivers/hwmon/occ/common.c occ->groups[0] = &occ->group; occ 1082 drivers/hwmon/occ/common.c rc = occ_poll(occ); occ 1084 drivers/hwmon/occ/common.c dev_info(occ->bus_dev, "host is not ready\n"); occ 1087 drivers/hwmon/occ/common.c dev_err(occ->bus_dev, "failed to get OCC poll response: %d\n", occ 1092 drivers/hwmon/occ/common.c occ_parse_poll_response(occ); occ 1094 drivers/hwmon/occ/common.c rc = occ_setup_sensor_attrs(occ); occ 1096 drivers/hwmon/occ/common.c dev_err(occ->bus_dev, "failed to setup sensor attrs: %d\n", occ 1101 drivers/hwmon/occ/common.c occ->hwmon = devm_hwmon_device_register_with_groups(occ->bus_dev, name, occ 1102 drivers/hwmon/occ/common.c occ, occ->groups); occ 1103 drivers/hwmon/occ/common.c if (IS_ERR(occ->hwmon)) { occ 1104 drivers/hwmon/occ/common.c rc = PTR_ERR(occ->hwmon); occ 1105 drivers/hwmon/occ/common.c dev_err(occ->bus_dev, "failed to register hwmon device: %d\n", occ 1110 drivers/hwmon/occ/common.c rc = occ_setup_sysfs(occ); occ 1112 drivers/hwmon/occ/common.c dev_err(occ->bus_dev, "failed to setup sysfs: %d\n", rc); occ 100 drivers/hwmon/occ/common.h int (*send_cmd)(struct occ *occ, u8 *cmd); occ 125 drivers/hwmon/occ/common.h int occ_setup(struct occ *occ, const char *name); occ 126 drivers/hwmon/occ/common.h int occ_setup_sysfs(struct occ *occ); occ 127 drivers/hwmon/occ/common.h void occ_shutdown(struct occ *occ); occ 128 drivers/hwmon/occ/common.h void occ_sysfs_poll_done(struct occ *occ); occ 129 drivers/hwmon/occ/common.h int occ_update_response(struct occ *occ); occ 30 drivers/hwmon/occ/p8_i2c.c struct occ occ; occ 34 drivers/hwmon/occ/p8_i2c.c #define to_p8_i2c_occ(x) container_of((x), struct p8_i2c_occ, occ) occ 111 drivers/hwmon/occ/p8_i2c.c static int p8_i2c_occ_send_cmd(struct occ *occ, u8 *cmd) occ 118 drivers/hwmon/occ/p8_i2c.c struct p8_i2c_occ *ctx = to_p8_i2c_occ(occ); occ 120 drivers/hwmon/occ/p8_i2c.c struct occ_response *resp = &occ->resp; occ 209 drivers/hwmon/occ/p8_i2c.c struct occ *occ; occ 216 drivers/hwmon/occ/p8_i2c.c occ = &ctx->occ; occ 217 drivers/hwmon/occ/p8_i2c.c occ->bus_dev = &client->dev; occ 218 drivers/hwmon/occ/p8_i2c.c dev_set_drvdata(&client->dev, occ); occ 220 drivers/hwmon/occ/p8_i2c.c occ->powr_sample_time_us = 250; occ 221 drivers/hwmon/occ/p8_i2c.c occ->poll_cmd_data = 0x10; /* P8 OCC poll data */ occ 222 drivers/hwmon/occ/p8_i2c.c occ->send_cmd = p8_i2c_occ_send_cmd; occ 224 drivers/hwmon/occ/p8_i2c.c return occ_setup(occ, "p8_occ"); occ 229 drivers/hwmon/occ/p8_i2c.c struct occ *occ = dev_get_drvdata(&client->dev); occ 231 drivers/hwmon/occ/p8_i2c.c occ_shutdown(occ); occ 13 drivers/hwmon/occ/p9_sbe.c struct occ occ; occ 17 drivers/hwmon/occ/p9_sbe.c #define to_p9_sbe_occ(x) container_of((x), struct p9_sbe_occ, occ) occ 19 drivers/hwmon/occ/p9_sbe.c static int p9_sbe_occ_send_cmd(struct occ *occ, u8 *cmd) occ 21 drivers/hwmon/occ/p9_sbe.c struct occ_response *resp = &occ->resp; occ 22 drivers/hwmon/occ/p9_sbe.c struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ); occ 62 drivers/hwmon/occ/p9_sbe.c struct occ *occ; occ 69 drivers/hwmon/occ/p9_sbe.c occ = &ctx->occ; occ 70 drivers/hwmon/occ/p9_sbe.c occ->bus_dev = &pdev->dev; occ 71 drivers/hwmon/occ/p9_sbe.c platform_set_drvdata(pdev, occ); occ 73 drivers/hwmon/occ/p9_sbe.c occ->powr_sample_time_us = 500; occ 74 drivers/hwmon/occ/p9_sbe.c occ->poll_cmd_data = 0x20; /* P9 OCC poll data */ occ 75 drivers/hwmon/occ/p9_sbe.c occ->send_cmd = p9_sbe_occ_send_cmd; occ 77 drivers/hwmon/occ/p9_sbe.c rc = occ_setup(occ, "p9_occ"); occ 86 drivers/hwmon/occ/p9_sbe.c struct occ *occ = platform_get_drvdata(pdev); occ 87 drivers/hwmon/occ/p9_sbe.c struct p9_sbe_occ *ctx = to_p9_sbe_occ(occ); occ 90 drivers/hwmon/occ/p9_sbe.c occ_shutdown(occ); occ 28 drivers/hwmon/occ/sysfs.c struct occ *occ = dev_get_drvdata(dev); occ 32 drivers/hwmon/occ/sysfs.c rc = occ_update_response(occ); occ 36 drivers/hwmon/occ/sysfs.c header = (struct occ_poll_response_header *)occ->resp.data; occ 76 drivers/hwmon/occ/sysfs.c struct occ *occ = dev_get_drvdata(dev); occ 78 drivers/hwmon/occ/sysfs.c occ_update_response(occ); occ 80 drivers/hwmon/occ/sysfs.c return snprintf(buf, PAGE_SIZE - 1, "%d\n", occ->error); occ 110 drivers/hwmon/occ/sysfs.c void occ_sysfs_poll_done(struct occ *occ) occ 114 drivers/hwmon/occ/sysfs.c (struct occ_poll_response_header *)occ->resp.data; occ 120 drivers/hwmon/occ/sysfs.c if (!occ->hwmon) occ 124 drivers/hwmon/occ/sysfs.c (occ->prev_stat & OCC_STAT_MASTER)) { occ 126 drivers/hwmon/occ/sysfs.c sysfs_notify(&occ->bus_dev->kobj, NULL, name); occ 130 drivers/hwmon/occ/sysfs.c (occ->prev_stat & OCC_STAT_ACTIVE)) { occ 132 drivers/hwmon/occ/sysfs.c sysfs_notify(&occ->bus_dev->kobj, NULL, name); occ 136 drivers/hwmon/occ/sysfs.c (occ->prev_ext_stat & OCC_EXT_STAT_DVFS_OT)) { occ 138 drivers/hwmon/occ/sysfs.c sysfs_notify(&occ->bus_dev->kobj, NULL, name); occ 142 drivers/hwmon/occ/sysfs.c (occ->prev_ext_stat & OCC_EXT_STAT_DVFS_POWER)) { occ 144 drivers/hwmon/occ/sysfs.c sysfs_notify(&occ->bus_dev->kobj, NULL, name); occ 148 drivers/hwmon/occ/sysfs.c (occ->prev_ext_stat & OCC_EXT_STAT_MEM_THROTTLE)) { occ 150 drivers/hwmon/occ/sysfs.c sysfs_notify(&occ->bus_dev->kobj, NULL, name); occ 154 drivers/hwmon/occ/sysfs.c (occ->prev_ext_stat & OCC_EXT_STAT_QUICK_DROP)) { occ 156 drivers/hwmon/occ/sysfs.c sysfs_notify(&occ->bus_dev->kobj, NULL, name); occ 160 drivers/hwmon/occ/sysfs.c header->occs_present != occ->prev_occs_present) { occ 162 drivers/hwmon/occ/sysfs.c sysfs_notify(&occ->bus_dev->kobj, NULL, name); occ 165 drivers/hwmon/occ/sysfs.c if (occ->error && occ->error != occ->prev_error) { occ 167 drivers/hwmon/occ/sysfs.c sysfs_notify(&occ->bus_dev->kobj, NULL, name); occ 173 drivers/hwmon/occ/sysfs.c occ->prev_error = occ->error; occ 174 drivers/hwmon/occ/sysfs.c occ->prev_stat = header->status; occ 175 drivers/hwmon/occ/sysfs.c occ->prev_ext_stat = header->ext_status; occ 176 drivers/hwmon/occ/sysfs.c occ->prev_occs_present = header->occs_present; occ 179 drivers/hwmon/occ/sysfs.c int occ_setup_sysfs(struct occ *occ) occ 181 drivers/hwmon/occ/sysfs.c return sysfs_create_group(&occ->bus_dev->kobj, &occ_sysfs); occ 184 drivers/hwmon/occ/sysfs.c void occ_shutdown(struct occ *occ) occ 186 drivers/hwmon/occ/sysfs.c sysfs_remove_group(&occ->bus_dev->kobj, &occ_sysfs); occ 283 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c u64 occ = 0; occ 290 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c occ += info->alloc_size; occ 291 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c return occ; occ 297 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c u64 occ = 0; occ 301 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c occ += mlxsw_sp1_kvdl_part_occ(kvdl->parts[i]); occ 303 drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c return occ; occ 32 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c struct mlxsw_cp_sb_occ occ; occ 42 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c struct mlxsw_cp_sb_occ occ; occ 269 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c mlxsw_reg_sbpm_unpack(sbpm_pl, &pm->occ.cur, &pm->occ.max); occ 1217 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c &cm->occ.cur, &cm->occ.max); occ 1231 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c &cm->occ.cur, &cm->occ.max); occ 1379 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c *p_cur = mlxsw_sp_cells_bytes(mlxsw_sp, pm->occ.cur); occ 1380 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c *p_max = mlxsw_sp_cells_bytes(mlxsw_sp, pm->occ.max); occ 1398 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c *p_cur = mlxsw_sp_cells_bytes(mlxsw_sp, cm->occ.cur); occ 1399 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c *p_max = mlxsw_sp_cells_bytes(mlxsw_sp, cm->occ.max);