Home
last modified time | relevance | path

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

123

/linux/drivers/counter/
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()
144 *ceiling = priv->preset[count->id]; in i8254_count_ceiling_read()
222 priv->preset[count->id] = 0; in i8254_count_mode_write()
246 *floor = (priv->preset[count->id] % 2 || priv->preset[count->id] == 0) ? 0 : 2; in i8254_count_floor_read()
263 *preset = priv->preset[count->id]; in i8254_count_preset_read()
275 if (preset > U16_MAX) in i8254_count_preset_write()
282 if (preset == 1) { in i8254_count_preset_write()
288 priv->preset[count->id] = preset; in i8254_count_preset_write()
[all …]
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()
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()
857 *ceiling = priv->preset[count->id]; in quad8_count_ceiling_read()
[all …]
/linux/sound/pci/hda/
A 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()
/linux/drivers/hwtracing/coresight/
A Dcoresight-config.c138 static int cscfg_update_presets(struct cscfg_config_csdev *config_csdev, int preset) in cscfg_update_presets() argument
149 if (preset < 1 || preset > config_desc->nr_presets) in cscfg_update_presets()
159 preset_base = &config_desc->presets[(preset - 1) * nr_cfg_params]; in cscfg_update_presets()
256 int cscfg_csdev_enable_config(struct cscfg_config_csdev *config_csdev, int preset) in cscfg_csdev_enable_config() argument
260 if (preset) in cscfg_csdev_enable_config()
261 err = cscfg_update_presets(config_csdev, preset); in cscfg_csdev_enable_config()
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);
A Dcoresight-syscfg.h109 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);
A Dcoresight-syscfg.c969 void cscfg_config_sysfs_set_preset(int preset) in cscfg_config_sysfs_set_preset() argument
972 cscfg_mgr->sysfs_active_preset = preset; in cscfg_config_sysfs_set_preset()
980 void cscfg_config_sysfs_get_active_cfg(unsigned long *cfg_hash, int *preset) in cscfg_config_sysfs_get_active_cfg() argument
983 *preset = cscfg_mgr->sysfs_active_preset; in cscfg_config_sysfs_get_active_cfg()
1047 unsigned long cfg_hash, int preset) in cscfg_csdev_enable_active_config() argument
1083 err = cscfg_csdev_enable_config(config_csdev_active, preset); in cscfg_csdev_enable_active_config()
A Dcoresight-syscfg-configfs.h19 int preset; member
A Dcoresight-config.h256 int cscfg_csdev_enable_config(struct cscfg_config_csdev *config_csdev, int preset);
/linux/Documentation/trace/coresight/
A Dcoresight-config.rst87 as well as any preset values that can be used to override default parameter
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::
249 In a configuration there are 'enable' and 'preset' files.
259 To use a preset<n> set of parameter values::
261 $ echo 3 > preset
[all …]
/linux/sound/usb/
A Dcard.c512 const struct usb_audio_device_name *preset; in usb_audio_make_shortname() local
515 preset = lookup_device_name(chip->usb_id); in usb_audio_make_shortname()
516 if (preset && preset->product_name) in usb_audio_make_shortname()
517 s = preset->product_name; in usb_audio_make_shortname()
543 const struct usb_audio_device_name *preset; in usb_audio_make_longname() local
547 preset = lookup_device_name(chip->usb_id); in usb_audio_make_longname()
550 if (preset && preset->profile_name) in usb_audio_make_longname()
551 s = preset->profile_name; in usb_audio_make_longname()
557 if (preset && preset->vendor_name) in usb_audio_make_longname()
558 s = preset->vendor_name; in usb_audio_make_longname()
/linux/drivers/iio/magnetometer/
A 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()
/linux/Documentation/ABI/testing/
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
A 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 …]
/linux/sound/synth/emux/
A Dsoundfont.c55 int bank, int preset, int key);
57 int preset, int bank, struct snd_sf_zone **table,
1276 int preset, int bank, in snd_soundfont_search_zone() argument
1292 nvoices = search_zones(sflist, notep, vel, preset, bank, in snd_soundfont_search_zone()
1295 if (preset != def_preset || bank != def_bank) in snd_soundfont_search_zone()
1314 index = get_index(bank, preset, key); in search_first_zone()
1318 if (zp->instr == preset && zp->bank == bank) in search_first_zone()
1330 int preset, int bank, struct snd_sf_zone **table, in search_zones() argument
1336 zp = search_first_zone(sflist, bank, preset, *notep); in search_zones()
1344 preset = zp->v.start; in search_zones()
[all …]
/linux/drivers/net/ethernet/broadcom/bnx2x/
A Dbnx2x_ethtool.c695 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()
875 preset)) { in bnx2x_read_pages_regs()
923 IS_REG_IN_PRESET(wreg_addr_p->presets, preset)) { in __bnx2x_get_preset_regs()
940 bnx2x_read_pages_regs(bp, p, preset); in __bnx2x_get_preset_regs()
984 dump_hdr.preset = DUMP_ALL_PRESETS; in bnx2x_get_regs()
1073 dump_hdr.preset = bp->dump_preset_idx; in bnx2x_get_dump_data()
[all …]
A Dbnx2x_dump.h41 u32 preset; member
/linux/sound/soc/codecs/
A Dhda.c205 ret = snd_hda_codec_set_name(codec, codec->preset->name); in hda_codec_probe()
207 dev_err(&hdev->dev, "set name: %s failed: %d\n", codec->preset->name, ret); in hda_codec_probe()
217 patch = (hda_codec_patch_t)codec->preset->driver_data; in hda_codec_probe()
A Dhdac_hda.c475 ret = snd_hda_codec_set_name(hcodec, hcodec->preset->name); in hdac_hda_codec_probe()
477 dev_err(&hdev->dev, "%s: name failed %s\n", __func__, hcodec->preset->name); in hdac_hda_codec_probe()
487 patch = (hda_codec_patch_t)hcodec->preset->driver_data; in hdac_hda_codec_probe()
/linux/Documentation/devicetree/bindings/timer/
A Dti,keystone-timer.txt10 when the counter reaches preset counter values.
A Dti,da830-timer.yaml19 counter reaches preset counter values.
/linux/include/sound/
A Dsoundfont.h105 int preset, int bank,
/linux/Documentation/devicetree/bindings/reset/
A Dti,tps380x-reset.yaml15 RESET signal if the voltage drops below a preset threshold or upon a manual
/linux/Documentation/hwmon/
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/
A Dmetafmt-d4xx.rst137 * - __u32 Sub-preset info (v3 only)
138 - Sub-preset choice information, see [4_] below
185 0x00000400 Sub-preset Info

Completed in 48 milliseconds

123