Home
last modified time | relevance | path

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

12345

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
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 …]
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,
/linux-6.12.1/net/openvswitch/
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 …]
Dmeter.h33 spinlock_t lock; /* Per meter lock */
62 #endif /* meter.h */
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
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-6.12.1/sound/firewire/motu/
Dmotu-hwdep.c198 struct snd_firewire_motu_register_dsp_meter *meter; in hwdep_ioctl() local
204 meter = kzalloc(sizeof(*meter), GFP_KERNEL); in hwdep_ioctl()
205 if (!meter) in hwdep_ioctl()
208 snd_motu_register_dsp_message_parser_copy_meter(motu, meter); in hwdep_ioctl()
210 err = copy_to_user((void __user *)arg, meter, sizeof(*meter)); in hwdep_ioctl()
211 kfree(meter); in hwdep_ioctl()
220 struct snd_firewire_motu_command_dsp_meter *meter; in hwdep_ioctl() local
226 meter = kzalloc(sizeof(*meter), GFP_KERNEL); in hwdep_ioctl()
227 if (!meter) in hwdep_ioctl()
230 snd_motu_command_dsp_message_parser_copy_meter(motu, meter); in hwdep_ioctl()
[all …]
Dmotu-command-dsp-message-parser.c15 // Isochronous packets from the above models includes messages to report state of hardware meter.
33 struct snd_firewire_motu_command_dsp_meter meter; member
79 // One value of hardware meter consists of 4 messages.
153 parser->meter.data[parser->value_index] = val; in snd_motu_command_dsp_message_parser_parse()
176 struct snd_firewire_motu_command_dsp_meter *meter) in snd_motu_command_dsp_message_parser_copy_meter() argument
182 memcpy(meter, &parser->meter, sizeof(*meter)); in snd_motu_command_dsp_message_parser_copy_meter()
Dmotu-register-dsp-message-parser.c40 // 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
332 case METER: in snd_motu_register_dsp_message_parser_parse()
342 parser->meter.data[pos] = val; in snd_motu_register_dsp_message_parser_parse()
347 parser->meter.data[pos] = val; in snd_motu_register_dsp_message_parser_parse()
350 // The message for meter is interruptible to the series of other in snd_motu_register_dsp_message_parser_parse()
371 struct snd_firewire_motu_register_dsp_meter *meter) in snd_motu_register_dsp_message_parser_copy_meter() argument
377 memcpy(meter, &parser->meter, sizeof(*meter)); in snd_motu_register_dsp_message_parser_copy_meter()
/linux-6.12.1/sound/usb/caiaq/
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-6.12.1/net/batman-adv/
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-6.12.1/sound/drivers/vx/
Dvx_mixer.c345 * VU, peak meter record
357 * get the VU and peak meter values
813 * VU meter
831 struct vx_vu_meter meter[2]; in vx_vu_meter_get() local
835 vx_get_audio_vu_meter(chip, audio, capture, meter); in vx_vu_meter_get()
836 ucontrol->value.integer.value[0] = meter[0].vu_level >> METER_SHIFT; in vx_vu_meter_get()
837 ucontrol->value.integer.value[1] = meter[1].vu_level >> METER_SHIFT; in vx_vu_meter_get()
844 struct vx_vu_meter meter[2]; in vx_peak_meter_get() local
848 vx_get_audio_vu_meter(chip, audio, capture, meter); in vx_peak_meter_get()
849 ucontrol->value.integer.value[0] = meter[0].peak_level >> METER_SHIFT; in vx_peak_meter_get()
[all …]
/linux-6.12.1/include/uapi/sound/
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-6.12.1/Documentation/hwmon/
Dacpi_power_meter.rst21 features--a power meter that returns average power use over a configurable
36 arbitrary strings that ACPI provides with the meter. The measures/ directory
37 contains symlinks to the devices that this meter measures.
/linux-6.12.1/sound/firewire/bebob/
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
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()
Dbebob_maudio.c690 const struct snd_bebob_meter_spec *spec = bebob->spec->meter; in normal_meter_get()
732 .meter = &special_meter_spec
748 .meter = &fw410_meter_spec
760 .meter = &audiophile_meter_spec
772 .meter = &solo_meter_spec
784 .meter = &ozonic_meter_spec
796 .meter = &nrv10_meter_spec
/linux-6.12.1/kernel/cgroup/
Dcpuset-v1.c14 * Frequency meter - How fast is some event occurring?
17 * event frequency meter. There are four routines:
18 * fmeter_init() - initialize a frequency meter.
25 * frequency meter and its digital filter.
45 * Given the simple 32 bit integer arithmetic used, this meter works
63 /* Initialize a frequency meter */
72 /* Internal meter update - process cnt events and update value */
/linux-6.12.1/include/uapi/linux/
Dopenvswitch.h983 * @OVS_ACTION_ATTR_METER: Run packet through a meter, which may drop the
1029 OVS_ACTION_ATTR_METER, /* u32 meter ID. */
1057 OVS_METER_CMD_SET, /* Add or modify a meter. */
1058 OVS_METER_CMD_DEL, /* Delete a meter. */
1059 OVS_METER_CMD_GET /* Get meter stats. */
1064 OVS_METER_ATTR_ID, /* u32 meter ID within datapath. */
1069 OVS_METER_ATTR_STATS, /* struct ovs_flow_stats for the meter. */
1070 OVS_METER_ATTR_BANDS, /* Nested attributes for meter bands. */
1074 OVS_METER_ATTR_MAX_BANDS, /* u32 max number of bands per meter. */
1084 OVS_BAND_ATTR_RATE, /* u32 band rate in meter units (see above). */
[all …]
Dbatadv_packet.h15 * batadv_tp_is_error() - Check throughput meter return code for error
16 * @n: throughput meter return code
96 * @BATADV_TP: throughput meter packet
324 * struct batadv_icmp_tp_packet - ICMP TP Meter packet
355 * enum batadv_icmp_tp_subtype - ICMP TP Meter packet subtypes
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/mvm/
Dconstants.h121 /* 20016 pSec is 6 meter RTT, meaning 3 meter range */
/linux-6.12.1/Documentation/ABI/testing/
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-6.12.1/sound/usb/
Dmixer_us16x08.h30 /* the URB params to retrieve meter ranges */
103 int master_level[2]; /* level of meter for master output */
/linux-6.12.1/drivers/macintosh/
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-6.12.1/sound/pci/asihpi/
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-6.12.1/arch/sh/drivers/
DKconfig10 Use the power-on LED on your machine as a load meter. The exact

12345