Home
last modified time | relevance | path

Searched full:meter (Results 1 – 25 of 87) sorted by relevance

1234

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dmeter.c7 #include "meter.h"
43 struct mutex sync_lock; /* protect flow meter operations */
110 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 Dmeter.h42 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 Dmeter.c20 #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 Dmeter.h33 spinlock_t lock; /* Per meter lock */
62 #endif /* meter.h */
H A DMakefile15 meter.o \
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dpolice.c121 struct mlx5e_flow_meter_handle *meter; in tc_act_police_offload() local
132 meter = mlx5e_tc_meter_get(priv->mdev, &params); 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, &params); in tc_act_police_offload()
135 } else if (!IS_ERR(meter)) { in tc_act_police_offload()
136 err = mlx5e_tc_meter_update(meter, &params); 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 Dmotu-hwdep.c181 struct snd_firewire_motu_register_dsp_meter *meter; in hwdep_ioctl() local
187 meter = kzalloc(sizeof(*meter), GFP_KERNEL); in hwdep_ioctl()
188 if (!meter) in hwdep_ioctl()
191 snd_motu_register_dsp_message_parser_copy_meter(motu, meter); in hwdep_ioctl()
193 err = copy_to_user((void __user *)arg, meter, sizeof(*meter)); in hwdep_ioctl()
194 kfree(meter); in hwdep_ioctl()
203 struct snd_firewire_motu_command_dsp_meter *meter; in hwdep_ioctl() local
209 meter = kzalloc(sizeof(*meter), GFP_KERNEL); in hwdep_ioctl()
210 if (!meter) in hwdep_ioctl()
213 snd_motu_command_dsp_message_parser_copy_meter(motu, meter); in hwdep_ioctl()
[all …]
/linux/sound/usb/caiaq/
H A Dcontrol.c347 { "LED: Channel A: Meter 1", 97 | CNT_INTVAL },
348 { "LED: Channel A: Meter 2", 98 | CNT_INTVAL },
349 { "LED: Channel A: Meter 3", 99 | CNT_INTVAL },
350 { "LED: Channel A: Meter 4", 100 | CNT_INTVAL },
351 { "LED: Channel A: Meter 5", 101 | CNT_INTVAL },
352 { "LED: Channel A: Meter 6", 102 | CNT_INTVAL },
353 { "LED: Channel A: Meter clip", 103 | CNT_INTVAL },
361 { "LED: Channel B: Meter 1", 89 | CNT_INTVAL },
362 { "LED: Channel B: Meter 2", 90 | CNT_INTVAL },
363 { "LED: Channel B: Meter 3", 91 | CNT_INTVAL },
[all …]
/linux/net/batman-adv/
H A Dtp_meter.c135 * @tp_vars: the private data of the current TP meter session
171 * @tp_vars: the private data of the current TP meter session
207 * @reason: reason for tp meter session stop
239 * @reason: reason for tp meter session stop
294 * Look for a tp_vars object matching dst as end_point, session as tp meter
357 * @tp_vars: the private data of the current TP meter session to be free'd
370 * @tp_vars: the private data of the current TP meter session to cleanup
400 * @tp_vars: the private data of the current TP meter session
432 * @tp_vars: the private data of the current TP meter session
433 * @reason: reason for tp meter session stop
[all …]
/linux/sound/usb/
H A Dfcp.c20 * 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
364 /*** Level Meter Control ***/
604 /* Validate the Level Meter map passed by the user */
[all …]
H A Dmixer_us16x08.h30 /* the URB params to retrieve meter ranges */
103 int master_level[2]; /* level of meter for master output */
/linux/include/uapi/sound/
H A Dfirewire.h160 * to read it via ioctl. In 828mk2, 896hd, and Traveler, hardware meter for all of physical inputs
176 * struct snd_firewire_motu_register_dsp_meter - the container for meter information in DSP
181 * The structure expresses the part of DSP status for hardware meter. The u8 storage includes linear
263 * On the other hand, the states of hardware meter is split into specific messages included in the
271 * struct snd_firewire_motu_command_dsp_meter - the container for meter information in DSP
275 * The structure expresses the part of DSP status for hardware meter. The 32 bit storage is
/linux/sound/firewire/bebob/
H A Dbebob_focusrite.c234 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 Dbebob_proc.c75 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 Dbebob_terratec.c52 .meter = NULL
/linux/kernel/cgroup/
H A Dcpuset-v1.c15 * 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/include/uapi/linux/
H A Dopenvswitch.h989 * @OVS_ACTION_ATTR_METER: Run packet through a meter, which may drop the
1035 OVS_ACTION_ATTR_METER, /* u32 meter ID. */
1063 OVS_METER_CMD_SET, /* Add or modify a meter. */
1064 OVS_METER_CMD_DEL, /* Delete a meter. */
1065 OVS_METER_CMD_GET /* Get meter stats. */
1070 OVS_METER_ATTR_ID, /* u32 meter ID within datapath. */
1075 OVS_METER_ATTR_STATS, /* struct ovs_flow_stats for the meter. */
1076 OVS_METER_ATTR_BANDS, /* Nested attributes for meter bands. */
1080 OVS_METER_ATTR_MAX_BANDS, /* u32 max number of bands per meter. */
1090 OVS_BAND_ATTR_RATE, /* u32 band rate in meter units (see above). */
[all …]
/linux/drivers/mfd/
H A Dsec-acpm.c180 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",
/linux/Documentation/ABI/testing/
H A Dsysfs-driver-intel_sdsi77 (RO) Used to read back the current meter certificate for the CPU
78 from Intel On Demand hardware. The meter certificate contains
/linux/drivers/macintosh/
H A Drack-meter.c3 * RackMac vu-meter driver
8 * Support the CPU-meter LEDs of the Xserve G5
11 * interface for fun. Also, the CPU-meter could be made nicer by being
39 /* CPU meter sampling rate in ms */
617 MODULE_DESCRIPTION("RackMeter: Support vu-meter on XServe front panel");
/linux/sound/pci/asihpi/
H A Dhpicmn.c326 phr->u.c.an_log_value[0] = pC->u.meter.an_log_peak[0]; in hpi_check_control_cache_single()
327 phr->u.c.an_log_value[1] = pC->u.meter.an_log_peak[1]; in hpi_check_control_cache_single()
329 if (pC->u.meter.an_logRMS[0] == in hpi_check_control_cache_single()
337 pC->u.meter.an_logRMS[0]; in hpi_check_control_cache_single()
339 pC->u.meter.an_logRMS[1]; in hpi_check_control_cache_single()
/linux/Documentation/hwmon/
H A Daquacomputer_d5next.rst19 * Aquacomputer High Flow USB flow meter
78 The High Flow USB exposes an internal and external temperature sensor, and a flow meter.
/linux/arch/sh/drivers/
H A DKconfig10 Use the power-on LED on your machine as a load meter. The exact
/linux/drivers/net/ethernet/airoha/
H A Dairoha_ppe.c553 u32 index, pse_port, val, *data, *ib2, *meter; in airoha_ppe_foe_flow_stats_update()
570 meter = &hwe->bridge.l2.meter; in airoha_ppe_foe_get_entry_locked()
574 meter = &hwe->ipv6.meter; in airoha_ppe_foe_get_entry_locked()
578 meter = &hwe->ipv4.l2.meter; in airoha_ppe_foe_get_entry_locked()
593 *meter |= FIELD_PREP(AIROHA_FOE_TUNNEL_MTU, val); in airoha_ppe_foe_get_entry()
515 u32 index, pse_port, val, *data, *ib2, *meter; airoha_ppe_foe_flow_stats_update() local
/linux/tools/arch/x86/intel_sdsi/
H A Dintel_sdsi.c387 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()

1234