Home
last modified time | relevance | path

Searched full:preset (Results 1 – 25 of 412) sorted by relevance

12345678910>>...17

/kernel/linux/linux-6.6/drivers/counter/
Di8254.c46 * @preset: array of Counter Register states
52 u16 preset[I8254_NUM_COUNTERS]; member
135 *ceiling = (priv->preset[count->id] == 0) ? U16_MAX : priv->preset[count->id]; in i8254_count_ceiling_read()
138 if (priv->preset[count->id] % 2) in i8254_count_ceiling_read()
139 *ceiling = priv->preset[count->id] - 1; in i8254_count_ceiling_read()
140 else if (priv->preset[count->id] == 0) in i8254_count_ceiling_read()
144 *ceiling = priv->preset[count->id]; in i8254_count_ceiling_read()
222 priv->preset[count->id] = 0; in i8254_count_mode_write()
242 *floor = (priv->preset[count->id] == 0) ? 0 : 1; in i8254_count_floor_read()
245 /* counter is always reloaded after 2 for even preset values */ in i8254_count_floor_read()
[all …]
D104-quad-8.c56 * @preset: array of preset values
66 unsigned int preset[QUAD8_NUM_COUNTERS]; member
123 /* Preset Register to Counter */
127 /* Transfer Preset Register LSB to FCK Prescaler */
260 const unsigned long preset) in quad8_preset_register_set() argument
265 put_unaligned_le24(preset, value); in quad8_preset_register_set()
295 /* Counter can only be set via Preset Register */ in quad8_count_write()
307 /* Set Preset Register back to original value */ in quad8_count_write()
308 ret = quad8_preset_register_set(priv, count->id, priv->preset[count->id]); in quad8_count_write()
816 struct counter_count *count, u64 *preset) in quad8_count_preset_read() argument
[all …]
/kernel/linux/linux-6.6/Documentation/trace/coresight/
Dcoresight-config.rst87 as well as any preset values that can be used to override default parameter
91 Preset Values
94 Preset values are easily selectable sets of parameter values for the features
95 that the configuration uses. The number of values in a single preset set, equals
99 a single parameter, and another has no parameters. A single preset set will
103 If no preset is selected, then the parameter values defined in the feature
159 enable preset preset2 preset4 preset6 preset8
165 Each preset declared has a 'preset<n>' subdirectory declared. The values for
166 the preset can be examined::
173 The 'enable' and 'preset' files allow the control of a configuration when
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-bus-iio-counter-104-quad-821 normal, range limit, non-recycle, and modulo-n. The preset value
30 the preset value, while the lower limit is set to 0. The
31 counter freezes at count = preset when counting up, and
39 new count value is loaded to the counter via a preset
43 A count boundary is set between 0 and the preset value.
44 The counter is reset to 0 at count = preset when
45 counting up, while the counter is set to the preset
66 If the counter device supports preset registers, the preset
98 Whether to set channel Y counter with channel Y preset value
Dsysfs-bus-counter45 new count value is loaded to the counter via a preset
157 What: /sys/bus/counter/devices/counterX/countY/preset
161 If the counter device supports preset registers -- registers
163 preset operation trigger events -- the preset count for channel
170 Whether channel Y counter preset operation is enabled. Valid
Dsysfs-bus-iio-timer-stm32105 Reading returns the current preset value.
106 Writing sets the preset value.
108 event when reach preset value.
109 When counting down the counter start from preset value
/kernel/linux/linux-6.6/drivers/hwtracing/coresight/
Dcoresight-config.c136 * the value of the preset index associated with the parameter.
138 static int cscfg_update_presets(struct cscfg_config_csdev *config_csdev, int preset) in cscfg_update_presets() argument
148 /* preset in range 1 to nr_presets */ in cscfg_update_presets()
149 if (preset < 1 || preset > config_desc->nr_presets) in cscfg_update_presets()
152 * Go through the array of features, assigning preset values to in cscfg_update_presets()
154 * There should be precisely the same number of preset values as the in cscfg_update_presets()
159 preset_base = &config_desc->presets[(preset - 1) * nr_cfg_params]; in cscfg_update_presets()
188 * if we are not using a preset, then need to update the feature params
254 * @preset: preset values to use - 0 for default.
256 int cscfg_csdev_enable_config(struct cscfg_config_csdev *config_csdev, int preset) in cscfg_csdev_enable_config() argument
[all …]
Dcoresight-syscfg-configfs.c51 /* list preset values in order of features and params */
113 cscfg_config_sysfs_set_preset(fs_config->preset); in cscfg_cfg_enable_store()
124 return scnprintf(page, PAGE_SIZE, "%d\n", fs_config->preset); in cscfg_cfg_preset_show()
132 int preset, err; in cscfg_cfg_preset_store() local
134 err = kstrtoint(page, 0, &preset); in cscfg_cfg_preset_store()
140 if ((preset < 1) || (preset > fs_config->config_desc->nr_presets)) in cscfg_cfg_preset_store()
146 fs_config->preset = preset; in cscfg_cfg_preset_store()
149 cscfg_config_sysfs_set_preset(fs_config->preset); in cscfg_cfg_preset_store()
153 CONFIGFS_ATTR(cscfg_cfg_, preset);
195 snprintf(name, CONFIGFS_ITEM_NAME_LEN, "preset%d", preset_num); in cscfg_add_preset_groups()
[all …]
Dcoresight-syscfg.h43 * @sysfs_active_preset:Active preset index used if CoreSight controlled from sysfs.
109 void cscfg_config_sysfs_set_preset(int preset);
123 unsigned long cfg_hash, int preset);
125 void cscfg_config_sysfs_get_active_cfg(unsigned long *cfg_hash, int *preset);
Dcoresight-config.h38 * This is related to the number of bits (4) we use to select the preset on
39 * the perf command line. Preset 0 is always none selected.
40 * See PMU_FORMAT_ATTR(preset, "config:0-3") in coresight-etm-perf.c
119 * A configuration describes device features in use, and may provide preset
132 * @presets: Array of preset values.
256 int cscfg_csdev_enable_config(struct cscfg_config_csdev *config_csdev, int preset);
Dcoresight-syscfg-configfs.h19 int preset; member
35 /* container for preset view */
/kernel/linux/linux-5.10/drivers/counter/
D104-quad-8.c35 * @preset: array of preset values
50 unsigned int preset[QUAD8_NUM_COUNTERS]; member
85 /* Preset Register to Counter */
89 /* Transfer Preset Register LSB to FCK Prescaler */
161 /* Counter can only be set via Preset Register */ in quad8_write_raw()
165 /* Transfer Preset Register to Counter */ in quad8_write_raw()
171 /* Set Preset Register back to original value */ in quad8_write_raw()
172 val = priv->preset[chan->channel]; in quad8_write_raw()
248 return snprintf(buf, PAGE_SIZE, "%u\n", priv->preset[chan->channel]); in quad8_read_preset()
256 unsigned int preset; in quad8_write_preset() local
[all …]
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dsysfs-bus-counter81 new count value is loaded to the counter via a preset
96 goes high and remains high until a new preset value is
104 trigger results in loading the counter to the preset
112 counter is reloaded to the preset value, and the process
121 counter is reloaded to the preset value. The process
128 counter is reloaded to the preset value minus one.
131 counter is reloaded to the preset value minus one. The
138 by setting the preset value.
145 to the preset value.
257 What: /sys/bus/counter/devices/counterX/countY/preset
[all …]
Dsysfs-bus-iio-timer-stm3297 Reading returns the current preset value.
98 Writing sets the preset value.
100 event when reach preset value.
101 When counting down the counter start from preset value
/kernel/linux/linux-6.6/sound/pci/hda/
Dhda_bind.c34 codec->preset = list; in hda_codec_match()
99 if (WARN_ON(!codec->preset)) in hda_codec_driver_probe()
102 err = snd_hda_codec_set_name(codec, codec->preset->name); in hda_codec_driver_probe()
114 patch = (hda_codec_patch_t)codec->preset->driver_data; in hda_codec_driver_probe()
146 codec->preset = NULL; in hda_codec_driver_probe()
169 codec->preset = NULL; in hda_codec_driver_remove()
204 return device_attach(hda_codec_dev(codec)) > 0 && codec->preset; in codec_probed()
330 if (!codec->preset) in snd_hda_codec_configure()
332 if (!codec->preset) { in snd_hda_codec_configure()
/kernel/linux/linux-5.10/sound/pci/hda/
Dhda_bind.c34 codec->preset = list; in hda_codec_match()
99 if (WARN_ON(!codec->preset)) in hda_codec_driver_probe()
102 err = snd_hda_codec_set_name(codec, codec->preset->name); in hda_codec_driver_probe()
114 patch = (hda_codec_patch_t)codec->preset->driver_data; in hda_codec_driver_probe()
146 codec->preset = NULL; in hda_codec_driver_probe()
163 codec->preset = NULL; in hda_codec_driver_remove()
201 return device_attach(hda_codec_dev(codec)) > 0 && codec->preset; in codec_probed()
320 if (!codec->preset) in snd_hda_codec_configure()
322 if (!codec->preset) { in snd_hda_codec_configure()
/kernel/liteos_a/testsuites/unittest/security/reugid/smoke/
Dreugid_test_001.cpp130 list[0] = 1000; // 1000: preset value of list[0] in Child()
131 list[1] = 2000; // 2000: preset value of list[1] in Child()
132 list[2] = 3000; // 3000: preset value of list[2] in Child()
133 list[3] = 4000; // 4000: preset value of list[3] in Child()
134 list[4] = 5000; // 5000: preset value of list[4] in Child()
148 list[0] = 1000; // 1000: preset value of list[0] in Child()
149 list[1] = 2000; // 2000: preset value of list[1] in Child()
150 list[2] = 6000; // 6000: preset value of list[2] in Child()
151 list[3] = 4000; // 4000: preset value of list[3] in Child()
152 list[4] = 5000; // 5000: preset value of list[4] in Child()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/
Dintel_ddi_buf_trans.c631 /* HDMI Preset VS Pre-emph */
689 /* HDMI Preset VS Pre-emph */
1016 { .snps = { 62, 0, 0 } }, /* preset 0 */
1017 { .snps = { 55, 0, 7 } }, /* preset 1 */
1018 { .snps = { 50, 0, 12 } }, /* preset 2 */
1019 { .snps = { 44, 0, 18 } }, /* preset 3 */
1020 { .snps = { 35, 0, 21 } }, /* preset 4 */
1021 { .snps = { 59, 3, 0 } }, /* preset 5 */
1022 { .snps = { 53, 3, 6 } }, /* preset 6 */
1023 { .snps = { 48, 3, 11 } }, /* preset 7 */
[all …]
/kernel/linux/linux-5.10/drivers/media/i2c/
Ds5k6aa.c256 struct s5k6aa_preset *preset; member
313 struct s5k6aa_preset *preset = &s5k6aa->presets[0]; in s5k6aa_presets_data_init() local
317 preset->mbus_fmt.width = S5K6AA_OUT_WIDTH_DEF; in s5k6aa_presets_data_init()
318 preset->mbus_fmt.height = S5K6AA_OUT_HEIGHT_DEF; in s5k6aa_presets_data_init()
319 preset->mbus_fmt.code = s5k6aa_formats[0].code; in s5k6aa_presets_data_init()
320 preset->index = i; in s5k6aa_presets_data_init()
321 preset->clk_id = 0; in s5k6aa_presets_data_init()
322 preset++; in s5k6aa_presets_data_init()
326 s5k6aa->preset = &s5k6aa->presets[0]; in s5k6aa_presets_data_init()
467 int index = s5k6aa->preset->index; in s5k6aa_set_mirror()
[all …]
/kernel/linux/linux-6.6/Documentation/userspace-api/media/v4l/
Dmetafmt-d4xx.rst75 * - __u32 Preset
76 - Preset selector value, default: 0, unless changed by the user
137 * - __u32 Sub-preset info (v3 only)
138 - Sub-preset choice information, see [4_] below
156 0x00000040 Preset
185 0x00000400 Sub-preset Info
/kernel/linux/linux-5.10/sound/synth/emux/
Dsoundfont.c54 int bank, int preset, int key);
56 int preset, int bank, struct snd_sf_zone **table,
207 /* check if specified type is special font (GUS or preset-alias) */
1108 /* rebuild preset now */ in load_guspatch()
1128 * Rebuild the preset table. This is like a hash table in that it allows
1129 * quick access to the zone information. For each preset there are zone
1131 * link for this preset, and latter is the link for zone (i.e. instrument/
1140 /* clear preset table */ in rebuild_presets()
1160 * add the given zone to preset table
1187 cur->next_instr = sflist->presets[index]; /* preset table link */ in add_preset()
[all …]
/kernel/linux/linux-6.6/sound/synth/emux/
Dsoundfont.c54 int bank, int preset, int key);
56 int preset, int bank, struct snd_sf_zone **table,
207 /* check if specified type is special font (GUS or preset-alias) */
1121 /* rebuild preset now */ in load_guspatch()
1141 * Rebuild the preset table. This is like a hash table in that it allows
1142 * quick access to the zone information. For each preset there are zone
1144 * link for this preset, and latter is the link for zone (i.e. instrument/
1153 /* clear preset table */ in rebuild_presets()
1173 * add the given zone to preset table
1201 cur->next_instr = sflist->presets[index]; /* preset table link */ in add_preset()
[all …]
/kernel/linux/linux-5.10/drivers/iio/magnetometer/
Dbmc150_magn.c693 struct bmc150_magn_preset preset; in bmc150_magn_init() local
715 preset = bmc150_magn_presets_table[BMC150_MAGN_DEFAULT_PRESET]; in bmc150_magn_init()
716 ret = bmc150_magn_set_odr(data, preset.odr); in bmc150_magn_init()
719 preset.odr); in bmc150_magn_init()
724 BMC150_MAGN_REPXY_TO_REGVAL(preset.rep_xy)); in bmc150_magn_init()
727 preset.rep_xy); in bmc150_magn_init()
732 BMC150_MAGN_REPZ_TO_REGVAL(preset.rep_z)); in bmc150_magn_init()
735 preset.rep_z); in bmc150_magn_init()
739 ret = bmc150_magn_set_max_odr(data, preset.rep_xy, preset.rep_z, in bmc150_magn_init()
740 preset.odr); in bmc150_magn_init()
/kernel/linux/linux-5.10/sound/usb/
Dcard.c336 * Profile name preset table
475 const struct usb_audio_device_name *preset; in usb_audio_make_shortname() local
478 preset = lookup_device_name(chip->usb_id); in usb_audio_make_shortname()
479 if (preset && preset->product_name) in usb_audio_make_shortname()
480 s = preset->product_name; in usb_audio_make_shortname()
506 const struct usb_audio_device_name *preset; in usb_audio_make_longname() local
510 preset = lookup_device_name(chip->usb_id); in usb_audio_make_longname()
513 if (preset && preset->profile_name) in usb_audio_make_longname()
514 s = preset->profile_name; in usb_audio_make_longname()
520 if (preset && preset->vendor_name) in usb_audio_make_longname()
[all …]
/kernel/linux/linux-6.6/drivers/iio/magnetometer/
Dbmc150_magn.c695 struct bmc150_magn_preset preset; in bmc150_magn_init() local
729 preset = bmc150_magn_presets_table[BMC150_MAGN_DEFAULT_PRESET]; in bmc150_magn_init()
730 ret = bmc150_magn_set_odr(data, preset.odr); in bmc150_magn_init()
733 preset.odr); in bmc150_magn_init()
738 BMC150_MAGN_REPXY_TO_REGVAL(preset.rep_xy)); in bmc150_magn_init()
741 preset.rep_xy); in bmc150_magn_init()
746 BMC150_MAGN_REPZ_TO_REGVAL(preset.rep_z)); in bmc150_magn_init()
749 preset.rep_z); in bmc150_magn_init()
753 ret = bmc150_magn_set_max_odr(data, preset.rep_xy, preset.rep_z, in bmc150_magn_init()
754 preset.odr); in bmc150_magn_init()

12345678910>>...17