| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
| H A D | meter.c | 8 #include "meter.h" 44 struct mutex sync_lock; /* protect flow meter operations */ 111 struct mlx5e_flow_meter_handle *meter, in mlx5e_tc_meter_modify() argument 144 mlx5_core_dbg(mdev, "meter mode=%d\n", meter_params->mode); in mlx5e_tc_meter_modify() 155 flow_meters = meter->flow_meters; in mlx5e_tc_meter_modify() 161 mlx5_aso_build_wqe(aso, ds_cnt, aso_wqe, meter->obj_id, in mlx5e_tc_meter_modify() 169 aso_ctrl->data_mask = cpu_to_be64(0x80FFFFFFULL << (meter->idx ? 0 : 32)); in mlx5e_tc_meter_modify() 173 aso_data->bytewise_data[meter->idx * 8] = cpu_to_be32((0x1 << 31) | /* valid */ in mlx5e_tc_meter_modify() 176 aso_data->bytewise_data[meter->idx * 8] |= in mlx5e_tc_meter_modify() 179 aso_data->bytewise_data[meter->idx * 8] |= in mlx5e_tc_meter_modify() [all …]
|
| H A D | meter.h | 42 struct mlx5e_flow_meter_handle *meter; member 48 struct mlx5e_flow_meter_handle *meter, 54 mlx5e_tc_meter_put(struct mlx5e_flow_meter_handle *meter); 56 mlx5e_tc_meter_update(struct mlx5e_flow_meter_handle *meter, 72 mlx5e_tc_meter_get_stats(struct mlx5e_flow_meter_handle *meter, 77 int mlx5e_flow_meter_get_base_id(struct mlx5e_flow_meter_handle *meter); 82 mlx5e_flow_meter_get_base_id(struct mlx5e_flow_meter_handle *meter) in mlx5e_flow_meter_get_base_id() argument
|
| /linux/net/openvswitch/ |
| H A D | meter.c | 20 #include "meter.h" 45 static void ovs_meter_free(struct dp_meter *meter) in ovs_meter_free() argument 47 if (!meter) in ovs_meter_free() 50 kfree_rcu(meter, rcu); in ovs_meter_free() 59 struct dp_meter *meter; in lookup_meter() local 61 meter = rcu_dereference_ovsl(ti->dp_meters[hash]); in lookup_meter() 62 if (meter && likely(meter->id == meter_id)) in lookup_meter() 63 return meter; in lookup_meter() 117 struct dp_meter *meter) in dp_meter_instance_insert() argument 121 hash = meter_hash(ti, meter->id); in dp_meter_instance_insert() [all …]
|
| H A D | meter.h | 33 spinlock_t lock; /* Per meter lock */ 62 #endif /* meter.h */
|
| H A D | Makefile | 15 meter.o \
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
| H A D | police.c | 121 struct mlx5e_flow_meter_handle *meter; in tc_act_police_offload() local 132 meter = mlx5e_tc_meter_get(priv->mdev, ¶ms); in tc_act_police_offload() 133 if (IS_ERR(meter) && PTR_ERR(meter) == -ENOENT) { in tc_act_police_offload() 134 meter = mlx5e_tc_meter_replace(priv->mdev, ¶ms); in tc_act_police_offload() 135 } else if (!IS_ERR(meter)) { in tc_act_police_offload() 136 err = mlx5e_tc_meter_update(meter, ¶ms); in tc_act_police_offload() 137 mlx5e_tc_meter_put(meter); in tc_act_police_offload() 140 if (IS_ERR(meter)) { in tc_act_police_offload() 141 NL_SET_ERR_MSG_MOD(fl_act->extack, "Failed to get flow meter"); in tc_act_police_offload() 142 mlx5_core_err(priv->mdev, "Failed to get flow meter %d\n", params.index); in tc_act_police_offload() [all …]
|
| /linux/sound/firewire/motu/ |
| H A D | motu-hwdep.c | 182 struct snd_firewire_motu_register_dsp_meter *meter; in hwdep_ioctl() local 188 meter = kzalloc_obj(*meter); in hwdep_ioctl() 189 if (!meter) in hwdep_ioctl() 192 snd_motu_register_dsp_message_parser_copy_meter(motu, meter); in hwdep_ioctl() 194 err = copy_to_user((void __user *)arg, meter, sizeof(*meter)); in hwdep_ioctl() 195 kfree(meter); in hwdep_ioctl() 204 struct snd_firewire_motu_command_dsp_meter *meter; in hwdep_ioctl() local 210 meter = kzalloc_obj(*meter); in hwdep_ioctl() 211 if (!meter) in hwdep_ioctl() 214 snd_motu_command_dsp_message_parser_copy_meter(motu, meter); in hwdep_ioctl() [all …]
|
| H A D | motu-register-dsp-message-parser.c | 40 // In 4 pre and Audio express, meter index is in 6th byte. MIDI flag is in 8th byte and MIDI byte 78 METER = 0x1f, enumerator 85 struct snd_firewire_motu_register_dsp_meter meter; member 331 case METER: in snd_motu_register_dsp_message_parser_parse() 341 parser->meter.data[pos] = val; in snd_motu_register_dsp_message_parser_parse() 346 parser->meter.data[pos] = val; in snd_motu_register_dsp_message_parser_parse() 349 // The message for meter is interruptible to the series of other in snd_motu_register_dsp_message_parser_parse() 368 struct snd_firewire_motu_register_dsp_meter *meter) in snd_motu_register_dsp_message_parser_copy_meter() argument 373 memcpy(meter, &parser->meter, sizeof(*meter)); in snd_motu_register_dsp_message_parser_copy_meter()
|
| /linux/sound/usb/caiaq/ |
| H A D | control.c | 368 { "LED: Channel A: Meter 1", 97 | CNT_INTVAL }, 369 { "LED: Channel A: Meter 2", 98 | CNT_INTVAL }, 370 { "LED: Channel A: Meter 3", 99 | CNT_INTVAL }, 371 { "LED: Channel A: Meter 4", 100 | CNT_INTVAL }, 372 { "LED: Channel A: Meter 5", 101 | CNT_INTVAL }, 373 { "LED: Channel A: Meter 6", 102 | CNT_INTVAL }, 374 { "LED: Channel A: Meter clip", 103 | CNT_INTVAL }, 382 { "LED: Channel B: Meter 1", 89 | CNT_INTVAL }, 383 { "LED: Channel B: Meter 2", 90 | CNT_INTVAL }, 384 { "LED: Channel B: Meter 3", 91 | CNT_INTVAL }, [all …]
|
| /linux/net/batman-adv/ |
| H A D | tp_meter.c | 142 * @tp_vars: the private data of the current TP meter session 175 * @tp_vars: the private data of the current TP meter session 212 * @reason: reason for tp meter session stop 244 * @reason: reason for tp meter session stop 326 * Look for a tp_vars object matching dst as end_point, session as tp meter 378 * @tp_vars: the private data of the current TP meter session to be free'd 390 * @tp_vars: the private data of the current TP meter session 415 * @tp_vars: the private data of the current TP meter session to cleanup 432 * @tp_vars: the private data of the current TP meter session 467 * @tp_vars: the private data of the current TP meter session [all …]
|
| /linux/sound/usb/ |
| H A D | fcp.c | 20 * implemented in kernel space is the Level Meter, since it requires 28 * - Configure the Level Meter control 37 * 6. Optionally set up the Level Meter control using 39 * 7. Optionally add labels to the Level Meter control using 42 * Level Meter 44 * The Level Meter is implemented as an ALSA control that provides 46 * requests the current meter levels from the device, translates the 51 * Labels for the Level Meter channels can be set using 374 /*** Level Meter Control ***/ in fcp_meter_ctl_info() 617 /* Validate the Level Meter ma in validate_meter_map() [all...] |
| H A D | mixer_us16x08.h | 30 /* the URB params to retrieve meter ranges */ 103 int master_level[2]; /* level of meter for master output */
|
| /linux/drivers/mfd/ |
| H A D | sec-acpm.c | 180 regmap_reg_range(0x00, 0x21), /* Meter config */ 181 regmap_reg_range(0x40, 0x8a), /* Meter data */ 187 regmap_reg_range(0x40, 0x8a), /* Meter data */ 208 .name = "meter", 330 regmap_reg_range(0x00, 0x3e), /* Meter config */ 331 regmap_reg_range(0x40, 0x8a), /* Meter data */ 332 regmap_reg_range(0x8d, 0x9c), /* Meter data */ 336 regmap_reg_range(0x40, 0x9c), /* Meter data */ 357 .name = "meter",
|
| /linux/sound/firewire/bebob/ |
| H A D | bebob_focusrite.c | 234 const struct snd_bebob_meter_spec *spec = bebob->spec->meter; in saffire_meter_get() 278 .meter = NULL 289 .meter = NULL 310 .meter = &saffire_le_meter_spec 321 .meter = &saffire_meter_spec
|
| H A D | bebob_proc.c | 75 const struct snd_bebob_meter_spec *spec = bebob->spec->meter; in proc_read_meters() 187 if (bebob->spec->meter != NULL) in snd_bebob_proc_init() 188 add_node(bebob, root, "meter", proc_read_meters); in snd_bebob_proc_init()
|
| H A D | bebob_terratec.c | 52 .meter = NULL
|
| /linux/include/uapi/linux/ |
| H A D | openvswitch.h | 1064 * @OVS_ACTION_ATTR_METER: Run packet through a meter, which may drop the 1114 OVS_ACTION_ATTR_METER, /* u32 meter ID. */ 1144 OVS_METER_CMD_SET, /* Add or modify a meter. */ 1145 OVS_METER_CMD_DEL, /* Delete a meter. */ 1146 OVS_METER_CMD_GET /* Get meter stats. */ 1151 OVS_METER_ATTR_ID, /* u32 meter ID within datapath. */ 1156 OVS_METER_ATTR_STATS, /* struct ovs_flow_stats for the meter. */ 1157 OVS_METER_ATTR_BANDS, /* Nested attributes for meter bands. */ 1161 OVS_METER_ATTR_MAX_BANDS, /* u32 max number of bands per meter. */ 1171 OVS_BAND_ATTR_RATE, /* u32 band rate in meter units (see above). */ [all …]
|
| H A D | batadv_packet.h | 16 * batadv_tp_is_error() - Check throughput meter return code for error 17 * @n: throughput meter return code 97 * @BATADV_TP: throughput meter packet 331 * struct batadv_icmp_tp_packet - ICMP TP Meter packet 362 * enum batadv_icmp_tp_subtype - ICMP TP Meter packet subtypes
|
| /linux/kernel/cgroup/ |
| H A D | cpuset-v1.c | 15 * Frequency meter - How fast is some event occurring? 18 * event frequency meter. There are four routines: 19 * fmeter_init() - initialize a frequency meter. 26 * frequency meter and its digital filter. 46 * Given the simple 32 bit integer arithmetic used, this meter works 64 /* Initialize a frequency meter */ 73 /* Internal meter update - process cnt events and update value */
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-driver-intel_sdsi | 77 (RO) Used to read back the current meter certificate for the CPU 78 from Intel On Demand hardware. The meter certificate contains
|
| /linux/sound/pci/asihpi/ |
| H A D | hpicmn.c | 332 phr->u.c.an_log_value[0] = pC->u.meter.an_log_peak[0]; in hpi_check_control_cache_single() 333 phr->u.c.an_log_value[1] = pC->u.meter.an_log_peak[1]; in hpi_check_control_cache_single() 335 if (pC->u.meter.an_logRMS[0] == in hpi_check_control_cache_single() 343 pC->u.meter.an_logRMS[0]; in hpi_check_control_cache_single() 345 pC->u.meter.an_logRMS[1]; in hpi_check_control_cache_single()
|
| /linux/arch/sh/drivers/ |
| H A D | Kconfig | 10 Use the power-on LED on your machine as a load meter. The exact
|
| /linux/Documentation/hwmon/ |
| H A D | aquacomputer_d5next.rst | 19 * Aquacomputer High Flow USB flow meter 78 The High Flow USB exposes an internal and external temperature sensor, and a flow meter.
|
| /linux/tools/arch/x86/intel_sdsi/ |
| H A D | intel_sdsi.c | 387 printf("Meter certificate for device %s\n", s->dev_name); in sdsi_meter_cert_show() 754 printf(" %-18s\t%s\n", "-m, --meter", "show meter certificate data"); in show_help() 755 printf(" %-18s\t%s\n", "-C, --meter_current", "show live unattested meter data"); in show_help() 777 {"meter", no_argument, 0, 'm'}, in main()
|
| /linux/drivers/net/phy/ |
| H A D | open_alliance_helpers.h | 30 * of 1 meter, ranging from 0 to 31 meters. The exact interpretation of the
|