Home
last modified time | relevance | path

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

123

/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/pci/hda/
H 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/
H 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()
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.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);
H 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()
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.c343 * Profile name preset table
512 const struct usb_audio_device_name *preset; in usb_audio_make_shortname()
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()
547 preset = lookup_device_name(chip->usb_id); in usb_audio_make_longname()
550 if (preset && preset in usb_audio_make_longname()
504 const struct usb_audio_device_name *preset; usb_audio_make_shortname() local
535 const struct usb_audio_device_name *preset; usb_audio_make_longname() local
[all...]
/linux/drivers/iio/magnetometer/
H 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/
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
H 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/
H A Dsoundfont.c55 int bank, int preset, int key);
57 int preset, int bank, struct snd_sf_zone **table,
209 /* check if specified type is special font (GUS or preset-alias) */ in is_special_type()
1159 /* rebuild preset now */ in load_guspatch()
1180 * Rebuild the preset table. This is like a hash table in that it allows
1181 * quick access to the zone information. For each preset there are zone
1183 * link for this preset, and latter is the link for zone (i.e. instrument/ in rebuild_presets()
1192 /* clear preset table */ in rebuild_presets()
1212 * add the given zone to preset table in add_preset()
1240 cur->next_instr = sflist->presets[index]; /* preset tabl
1271 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
1304 search_first_zone(struct snd_sf_list * sflist,int bank,int preset,int key) search_first_zone() argument
1325 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...]
H A Demux_synth.c894 int preset, bank, def_preset, def_bank; in get_zone() local
897 preset = chan->midi_program; in get_zone()
903 def_preset = preset; in get_zone()
907 return snd_soundfont_search_zone(emu->sflist, notep, vel, preset, bank, in get_zone()
/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()
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()
887 static int __bnx2x_get_preset_regs(struct bnx2x *bp, u32 *p, u32 preset) in __bnx2x_get_preset_regs() argument
906 IS_REG_IN_PRESET(idle_reg_addrs[i].presets, preset)) { in __bnx2x_get_preset_regs()
[all …]
H A Dbnx2x_dump.h41 u32 preset; member
/linux/sound/soc/codecs/
H 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()
H 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/userspace-api/media/v4l/
H A Dmetafmt-d4xx.rst137 * - __u32 Sub-preset info (v3 only)
138 - Sub-preset choice information, see [4_] below
185 0x00000400 Sub-preset Info
/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/mtd/nand/raw/
H A Dmxc_nand.c128 void (*preset)(struct mtd_info *); member
1246 .preset = preset_v1,
1270 .preset = preset_v1,
1295 .preset = preset_v2,
1321 .preset = preset_v3,
1347 .preset = preset_v3,
1439 host->devtype_data->preset(mtd); in mxcnd_attach_chip()
/linux/Documentation/devicetree/bindings/timer/
H A Dti,keystone-timer.txt10 when the counter reaches preset counter values.
/linux/include/sound/
H A Dsoundfont.h29 /* The following deals with preset numbers (programs) */
105 int preset, int bank,

123