Home
last modified time | relevance | path

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

1234567

/linux/drivers/counter/
H A 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 …]
H A 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 …]
/linux/Documentation/trace/coresight/
H A 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 …]
/linux/drivers/hwtracing/coresight/
H A 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 …]
H A 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);
H A 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);
H A Dcoresight-syscfg-configfs.h19 int preset; member
35 /* container for preset view */
/linux/sound/hda/common/
H A Dbind.c34 codec->preset = list; in hda_codec_match()
100 if (WARN_ON(!codec->preset)) in hda_codec_driver_probe()
103 err = snd_hda_codec_set_name(codec, codec->preset->name); in hda_codec_driver_probe()
120 err = driver->ops->probe(codec, codec->preset); in hda_codec_driver_probe()
148 codec->preset = NULL; in hda_codec_driver_probe()
172 codec->preset = NULL; in hda_codec_driver_remove()
207 return device_attach(hda_codec_dev(codec)) > 0 && codec->preset; in codec_probed()
333 if (!codec->preset) in snd_hda_codec_configure()
335 if (!codec->preset) { in snd_hda_codec_configure()
/linux/Documentation/userspace-api/media/v4l/
H A 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
H A Dext-ctrls-camera.rst266 .. _v4l2-auto-n-preset-white-balance:
272 Sets white balance to automatic, manual or a preset. The presets
293 - White balance preset for fluorescent lighting. It corresponds
302 - White balance preset for daylight (with clear sky). It corresponds
309 - White balance preset for moderately overcast sky. This option
313 - White balance preset for shade or heavily overcast sky. It
/linux/sound/synth/emux/
H A Dsoundfont.c55 int bank, int preset, int key);
57 int preset, int bank, struct snd_sf_zone **table,
172 /* check if specified type is special font (GUS or preset-alias) */ in snd_soundfont_load()
1117 /* rebuild preset now */ in load_guspatch()
1135 * Rebuild the preset table. This is like a hash table in that it allows in load_guspatch()
1136 * quick access to the zone information. For each preset there are zone in load_guspatch()
1138 * link for this preset, and latter is the link for zone (i.e. instrument/ in load_guspatch()
1147 /* clear preset table */ in load_guspatch()
1167 * add the given zone to preset table in snd_soundfont_load_guspatch()
1195 cur->next_instr = sflist->presets[index]; /* preset tabl in rebuild_presets()
1276 snd_soundfont_search_zone(struct snd_sf_list * sflist,int * notep,int vel,int preset,int bank,int def_preset,int def_bank,struct snd_sf_zone ** table,int max_layers) snd_soundfont_search_zone() argument
1309 search_first_zone(struct snd_sf_list * sflist,int bank,int preset,int key) search_first_zone() argument
1330 search_zones(struct snd_sf_list * sflist,int * notep,int vel,int preset,int bank,struct snd_sf_zone ** table,int max_layers,int level) search_zones() argument
[all...]
/linux/Documentation/ABI/testing/
H A 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
/linux/sound/usb/
H A Dcard.c451 * Profile name preset table
620 const struct usb_audio_device_name *preset; in usb_audio_make_shortname()
623 preset = lookup_device_name(chip->usb_id); in usb_audio_make_shortname()
624 if (preset && preset->product_name) in usb_audio_make_shortname()
625 s = preset->product_name; in usb_audio_make_shortname()
652 const struct usb_audio_device_name *preset; in usb_audio_make_longname()
656 preset = lookup_device_name(chip->usb_id); in usb_audio_make_longname()
659 if (preset && preset in usb_audio_make_longname()
601 const struct usb_audio_device_name *preset; usb_audio_make_shortname() local
633 const struct usb_audio_device_name *preset; usb_audio_make_longname() local
[all...]
/linux/tools/testing/selftests/bpf/
H A Dveristat.c1706 static int append_preset_atom(struct var_preset *preset, char *value, bool is_index) in parse_var_atoms()
1709 int i = preset->atom_count; in parse_var_atoms()
1712 tmp = reallocarray(preset->atoms, i + 1, sizeof(*preset->atoms)); in append_var_preset()
1716 preset->atoms = tmp; in append_var_preset()
1717 preset->atom_count++; in append_var_preset()
1720 preset->atoms[i].type = ARRAY_INDEX; in append_var_preset()
1721 err = parse_rvalue(value, &preset->atoms[i].index); in append_var_preset()
1725 preset->atoms[i].type = FIELD_NAME; in append_var_preset()
1726 preset in append_var_preset()
1652 append_preset_atom(struct var_preset * preset,char * value,bool is_index) append_preset_atom() argument
1679 parse_var_atoms(const char * full_var,struct var_preset * preset) parse_var_atoms() argument
1948 adjust_var_secinfo(struct btf * btf,const struct btf_type * t,struct btf_var_secinfo * sinfo,struct var_preset * preset) adjust_var_secinfo() argument
1990 set_global_var(struct bpf_object * obj,struct btf * btf,struct bpf_map * map,struct btf_var_secinfo * sinfo,struct var_preset * preset) set_global_var() argument
[all...]
/linux/Documentation/hwmon/
H A Dw83792d.rst160 slowly to 0 or a preset stop value until the temperature exceeds the low
161 limit. (The preset stop value handling is not yet implemented in driver)
167 available. When related temperature sensors detects the temperature in preset
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_ethtool.c692 static int __bnx2x_get_preset_regs_len(struct bnx2x *bp, u32 preset) in __bnx2x_get_preset_regs_len() argument
695 return dump_num_registers[0][preset-1]; in __bnx2x_get_preset_regs_len()
697 return dump_num_registers[1][preset-1]; in __bnx2x_get_preset_regs_len()
699 return dump_num_registers[2][preset-1]; in __bnx2x_get_preset_regs_len()
701 return dump_num_registers[3][preset-1]; in __bnx2x_get_preset_regs_len()
703 return dump_num_registers[4][preset-1]; in __bnx2x_get_preset_regs_len()
713 /* Calculate the total preset regs length */ in __bnx2x_get_regs_len()
844 * @preset: the preset value
851 static void bnx2x_read_pages_regs(struct bnx2x *bp, u32 *p, u32 preset) in bnx2x_read_pages_regs() argument
875 preset)) { in bnx2x_read_pages_regs()
[all …]
/linux/include/sound/
H A Dsoundfont.h29 /* The following deals with preset numbers (programs) */
105 int preset, int bank,
H A Dhda_codec.h72 * codec preset
185 /* detected preset */
186 const struct hda_device_id *preset; member
187 const char *modelname; /* model name for preset */
/linux/Documentation/admin-guide/auxdisplay/
H A Dcfag12864b.rst76 Ground (22)---[GND] | - P1 = Preset = 10 Kohm
77 Ground (23)---[GND] ---- S ------( 3) V0 - P2 = Preset = 1 Kohm
/linux/drivers/mtd/nand/raw/
H A Dmxc_nand.c128 void (*preset)(struct mtd_info *); member
1013 /* preset operation */ in preset_v1()
1127 /* preset operation */ in preset_v2()
1246 .preset = preset_v1,
1270 .preset = preset_v1,
1295 .preset = preset_v2,
1321 .preset = preset_v3,
1347 .preset = preset_v3,
1438 /* Call preset again, with correct writesize chip time */ in mxcnd_attach_chip()
1439 host->devtype_data->preset(mtd); in mxcnd_attach_chip()
/linux/sound/soc/codecs/
H A Dhda.c204 ret = snd_hda_codec_set_name(codec, codec->preset->name); in hda_codec_probe()
206 dev_err(&hdev->dev, "set name: %s failed: %d\n", codec->preset->name, ret); in hda_codec_probe()
221 ret = driver->ops->probe(codec, codec->preset); in hda_codec_probe()
/linux/include/uapi/sound/
H A Dsfnt_info.h132 unsigned char instr; /* midi preset number */
167 * voice preset mapping (aliasing)
/linux/Documentation/devicetree/bindings/reset/
H A Dti,tps380x-reset.yaml15 RESET signal if the voltage drops below a preset threshold or upon a manual
/linux/Documentation/devicetree/bindings/timer/
H A Dti,da830-timer.yaml19 counter reaches preset counter values.
H A Dti,keystone-timer.yaml20 when the counter reaches preset counter values.

1234567