Home
last modified time | relevance | path

Searched refs:preset (Results 1 – 25 of 32) sorted by relevance

12

/linux/drivers/counter/
H A Di8254.c52 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()
246 *floor = (priv->preset[count->id] % 2 || priv->preset[count->id] == 0) ? 0 : 2; in i8254_count_floor_read()
259 struct counter_count *const count, u64 *const preset) in i8254_count_preset_read() argument
[all …]
H A D104-quad-8.c66 unsigned int preset[QUAD8_NUM_COUNTERS]; member
260 const unsigned long preset) in quad8_preset_register_set() argument
265 put_unaligned_le24(preset, value); in quad8_preset_register_set()
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
820 *preset = priv->preset[count->id]; in quad8_count_preset_read()
826 struct counter_count *count, u64 preset) in quad8_count_preset_write() argument
832 if (preset > LS7267_CNTR_MAX) in quad8_count_preset_write()
837 priv->preset[count->id] = preset; in quad8_count_preset_write()
838 ret = quad8_preset_register_set(priv, count->id, preset); in quad8_count_preset_write()
[all …]
/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()
171 codec->preset = NULL; in hda_codec_driver_remove()
206 return device_attach(hda_codec_dev(codec)) > 0 && codec->preset; in codec_probed()
332 if (!codec->preset) in snd_hda_codec_configure()
334 if (!codec->preset) { in snd_hda_codec_configure()
/linux/drivers/hwtracing/coresight/
H A Dcoresight-syscfg-configfs.c113 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);
H A Dcoresight-syscfg-configfs.h19 int preset; member
H A Dcoresight-config.h256 int cscfg_csdev_enable_config(struct cscfg_config_csdev *config_csdev, int preset);
/linux/Documentation/trace/coresight/
H A Dcoresight-config.rst87 as well as any preset values that can be used to override default parameter
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
236 A preset to override the current parameter values can also be selected::
238 $ perf record -e cs_etm/autofdo,preset=1/u --per-thread <application>
[all …]
/linux/sound/usb/
H A Dcard.c451 * Profile name preset table
620 const struct usb_audio_device_name *preset; in usb_audio_make_shortname() local
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() local
656 preset = lookup_device_name(chip->usb_id); in usb_audio_make_longname()
659 if (preset && preset in usb_audio_make_longname()
[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/tools/testing/selftests/bpf/
H A Dveristat.c1781 static int append_preset_atom(struct var_preset *preset, char *value, bool is_index) in append_preset_atom() argument
1784 int i = preset->atom_count; in append_preset_atom()
1787 tmp = reallocarray(preset->atoms, i + 1, sizeof(*preset->atoms)); in append_preset_atom()
1791 preset->atoms = tmp; in append_preset_atom()
1792 preset->atom_count++; in append_preset_atom()
1795 preset->atoms[i].type = ARRAY_INDEX; in append_preset_atom()
1796 err = parse_rvalue(value, &preset->atoms[i].index); in append_preset_atom()
1800 preset->atoms[i].type = FIELD_NAME; in append_preset_atom()
1801 preset->atoms[i].name = strdup(value); in append_preset_atom()
1802 if (!preset->atoms[i].name) in append_preset_atom()
[all …]
/linux/sound/synth/emux/
H A Dsoundfont.c55 int bank, int preset, int key);
57 int preset, int bank, struct snd_sf_zone **table,
1231 int preset, int bank, in snd_soundfont_search_zone() argument
1244 nvoices = search_zones(sflist, notep, vel, preset, bank, in snd_soundfont_search_zone()
1247 if (preset != def_preset || bank != def_bank) in snd_soundfont_search_zone()
1260 search_first_zone(struct snd_sf_list *sflist, int bank, int preset, int key) in search_first_zone() argument
1265 index = get_index(bank, preset, key); in search_first_zone()
1269 if (zp->instr == preset && zp->bank == bank) in search_first_zone()
1281 int preset, int bank, struct snd_sf_zone **table, in search_zones() argument
1287 zp = search_first_zone(sflist, bank, preset, *notep); in search_zones()
[all …]
/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()
H A Dhdac_hda.c472 ret = snd_hda_codec_set_name(hcodec, hcodec->preset->name); in hdac_hda_codec_probe()
474 dev_err(&hdev->dev, "%s: name failed %s\n", __func__, hcodec->preset->name); in hdac_hda_codec_probe()
489 ret = driver->ops->probe(hcodec, hcodec->preset); in hdac_hda_codec_probe()
/linux/sound/hda/codecs/hdmi/
H A Dnvhdmi-mcp.c271 switch (codec->preset->vendor_id) { in nvhdmi_mcp_build_controls()
328 switch (codec->preset->vendor_id) { in nvhdmi_mcp_probe()
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_dump.h41 u32 preset; member
/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/Documentation/userspace-api/media/v4l/
H A Dmetafmt-d4xx.rst138 * - __u32 Sub-preset info (v3 only)
139 - Sub-preset choice information, see [4_] below
186 0x00000400 Sub-preset Info
H A Dext-ctrls-camera.rst267 .. _v4l2-auto-n-preset-white-balance:
273 Sets white balance to automatic, manual or a preset. The presets
294 - White balance preset for fluorescent lighting. It corresponds
303 - White balance preset for daylight (with clear sky). It corresponds
310 - White balance preset for moderately overcast sky. This option
314 - White balance preset for shade or heavily overcast sky. It
H A Dvidioc-query-dv-timings.rst13 VIDIOC_QUERY_DV_TIMINGS - VIDIOC_SUBDEV_QUERY_DV_TIMINGS - Sense the DV preset received by the curr…
/linux/Documentation/userspace-api/media/drivers/
H A Dmax2175.rst40 The Rx mode controls a number of preset parameters of the tuner like
/linux/drivers/iio/trigger/
H A Dstm32-timer-trigger.c689 unsigned int preset; in stm32_count_set_preset() local
692 ret = kstrtouint(buf, 0, &preset); in stm32_count_set_preset()
698 regmap_write(priv->regmap, TIM_ARR, preset); in stm32_count_set_preset()
/linux/Documentation/devicetree/bindings/powerpc/fsl/
H A Dsrio.txt49 Usage: required if local access windows preset
/linux/Documentation/devicetree/bindings/sound/
H A Dst,sta350.txt84 If not present, preset DC coefficient is used.
/linux/drivers/bluetooth/
H A Dbtintel.h173 __u8 preset[8]; member
/linux/Documentation/networking/
H A Dgeneric-hdlc.rst88 no-parity / crc16 / crc16-pr0 (CRC16 with preset zeros) / crc32-itu

12