Home
last modified time | relevance | path

Searched full:meter (Results 1 – 25 of 95) 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 */
/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 …]
H A 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.
152 parser->meter.data[parser->value_index] = val; in snd_motu_command_dsp_message_parser_parse()
173 struct snd_firewire_motu_command_dsp_meter *meter) in snd_motu_command_dsp_message_parser_parse()
178 memcpy(meter, &parser->meter, sizeof(*meter)); in snd_motu_command_dsp_message_parser_copy_meter()
176 snd_motu_command_dsp_message_parser_copy_meter(struct snd_motu * motu,struct snd_firewire_motu_command_dsp_meter * meter) snd_motu_command_dsp_message_parser_copy_meter() argument
H A 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
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_parse()
373 memcpy(meter, &parser->meter, sizeo in snd_motu_register_dsp_message_parser_copy_meter()
371 snd_motu_register_dsp_message_parser_copy_meter(struct snd_motu * motu,struct snd_firewire_motu_register_dsp_meter * meter) snd_motu_register_dsp_message_parser_copy_meter() argument
[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/sound/drivers/vx/
H A Dvx_mixer.c343 * VU, peak meter record
355 * get the VU and peak meter values
790 * VU meter in vx_iec958_put()
808 struct vx_vu_meter meter[2];
812 vx_get_audio_vu_meter(chip, audio, capture, meter);
813 ucontrol->value.integer.value[0] = meter[0].vu_level >> METER_SHIFT;
814 ucontrol->value.integer.value[1] = meter[1].vu_level >> METER_SHIFT;
821 struct vx_vu_meter meter[2]; in vx_vu_meter_info()
825 vx_get_audio_vu_meter(chip, audio, capture, meter); in vx_vu_meter_info()
826 ucontrol->value.integer.value[0] = meter[ in vx_vu_meter_info()
831 struct vx_vu_meter meter[2]; vx_vu_meter_get() local
844 struct vx_vu_meter meter[2]; vx_peak_meter_get() local
859 struct vx_vu_meter meter[2]; vx_saturation_get() local
[all...]
/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_maudio.c678 const struct snd_bebob_meter_spec *spec = bebob->spec->meter;
720 .meter = &special_meter_spec
736 .meter = &fw410_meter_spec
748 .meter = &audiophile_meter_spec
760 .meter = &solo_meter_spec
772 .meter = &ozonic_meter_spec
784 .meter = &nrv10_meter_spec
/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

1234