/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
D | meter.c | 7 #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 …]
|
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,
|
/linux-6.12.1/net/openvswitch/ |
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 …]
|
D | meter.h | 33 spinlock_t lock; /* Per meter lock */ 62 #endif /* meter.h */
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
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-6.12.1/sound/firewire/motu/ |
D | motu-hwdep.c | 198 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 …]
|
D | motu-command-dsp-message-parser.c | 15 // 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()
|
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 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/ |
D | control.c | 347 { "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/ |
D | tp_meter.c | 135 * @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/ |
D | vx_mixer.c | 345 * 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/ |
D | firewire.h | 160 * 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/ |
D | acpi_power_meter.rst | 21 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/ |
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
|
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()
|
D | bebob_maudio.c | 690 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/ |
D | cpuset-v1.c | 14 * 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/ |
D | openvswitch.h | 983 * @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 …]
|
D | batadv_packet.h | 15 * 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/ |
D | constants.h | 121 /* 20016 pSec is 6 meter RTT, meaning 3 meter range */
|
/linux-6.12.1/Documentation/ABI/testing/ |
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-6.12.1/sound/usb/ |
D | mixer_us16x08.h | 30 /* the URB params to retrieve meter ranges */ 103 int master_level[2]; /* level of meter for master output */
|
/linux-6.12.1/drivers/macintosh/ |
D | rack-meter.c | 3 * 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/ |
D | hpicmn.c | 326 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/ |
D | Kconfig | 10 Use the power-on LED on your machine as a load meter. The exact
|