Searched refs:preset (Results 1 - 25 of 31) sorted by relevance

12

/linux-master/drivers/counter/
H A Di8254.c46 * @preset: array of Counter Register states
52 u16 preset[I8254_NUM_COUNTERS]; member in struct:i8254
135 *ceiling = (priv->preset[count->id] == 0) ? U16_MAX : priv->preset[count->id];
138 if (priv->preset[count->id] % 2)
139 *ceiling = priv->preset[count->id] - 1;
140 else if (priv->preset[count->id] == 0)
144 *ceiling = priv->preset[count->id];
222 priv->preset[count->id] = 0;
242 *floor = (priv->preset[coun
258 i8254_count_preset_read(struct counter_device *const counter, struct counter_count *const count, u64 *const preset) argument
268 i8254_count_preset_write(struct counter_device *const counter, struct counter_count *const count, const u64 preset) argument
[all...]
H A D104-quad-8.c56 * @preset: array of preset values
66 unsigned int preset[QUAD8_NUM_COUNTERS]; member in struct:quad8
260 const unsigned long preset)
265 put_unaligned_le24(preset, value);
308 ret = quad8_preset_register_set(priv, count->id, priv->preset[count->id]);
816 struct counter_count *count, u64 *preset)
820 *preset = priv->preset[count->id];
826 struct counter_count *count, u64 preset)
259 quad8_preset_register_set(struct quad8 *const priv, const size_t id, const unsigned long preset) argument
815 quad8_count_preset_read(struct counter_device *counter, struct counter_count *count, u64 *preset) argument
825 quad8_count_preset_write(struct counter_device *counter, struct counter_count *count, u64 preset) argument
[all...]
/linux-master/drivers/hwtracing/coresight/
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-syscfg-configfs.h19 int preset; member in struct:cscfg_fs_config
35 /* container for preset view */
H A 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) argument
148 /* preset in range 1 to nr_presets */
149 if (preset < 1 || preset > config_desc->nr_presets)
152 * Go through the array of features, assigning preset values to
154 * There should be precisely the same number of preset values as the
159 preset_base = &config_desc->presets[(preset - 1) * nr_cfg_params];
188 * if we are not using a preset, then need to update the feature params
254 * @preset
256 cscfg_csdev_enable_config(struct cscfg_config_csdev *config_csdev, int preset) argument
[all...]
H A Dcoresight-syscfg-configfs.c51 /* list preset values in order of features and params */
113 cscfg_config_sysfs_set_preset(fs_config->preset);
124 return scnprintf(page, PAGE_SIZE, "%d\n", fs_config->preset);
132 int preset, err; local
134 err = kstrtoint(page, 0, &preset);
140 if ((preset < 1) || (preset > fs_config->config_desc->nr_presets))
146 fs_config->preset = preset;
149 cscfg_config_sysfs_set_preset(fs_config->preset);
[all...]
H A Dcoresight-config.h38 * This is related to the number of bits (4) we use to select the preset on
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.c968 /* set the sysfs preset value */
969 void cscfg_config_sysfs_set_preset(int preset) argument
972 cscfg_mgr->sysfs_active_preset = preset;
977 * Used by a device to get the config and preset selected as active in configfs,
980 void cscfg_config_sysfs_get_active_cfg(unsigned long *cfg_hash, int *preset) argument
983 *preset = cscfg_mgr->sysfs_active_preset;
1037 * configuration, using @preset parameters.
1044 * @preset: Preset parameter values to use, 0 for current / default values.
1047 unsigned long cfg_hash, int preset)
1083 err = cscfg_csdev_enable_config(config_csdev_active, preset);
1046 cscfg_csdev_enable_active_config(struct coresight_device *csdev, unsigned long cfg_hash, int preset) argument
[all...]
H A Dcoresight-etm4x-core.c647 int preset, cc_threshold; local
723 * Set any selected configuration and preset.
725 * This extracts the values of PMU_FORMAT_ATTR(configid) and PMU_FORMAT_ATTR(preset)
727 * configid uses bits 63:32 of attr->config2, preset uses bits 3:0 of attr->config.
728 * A zero configid means no configuration active, preset = 0 means no preset selected.
732 preset = attr->config & 0xF;
733 ret = cscfg_csdev_enable_active_config(csdev, cfg_hash, preset);
799 int ret, preset; local
802 cscfg_config_sysfs_get_active_cfg(&cfg_hash, &preset);
[all...]
/linux-master/sound/pci/hda/
H A Dhda_bind.c34 codec->preset = list;
99 if (WARN_ON(!codec->preset))
102 err = snd_hda_codec_set_name(codec, codec->preset->name);
114 patch = (hda_codec_patch_t)codec->preset->driver_data;
146 codec->preset = NULL;
169 codec->preset = NULL;
204 return device_attach(hda_codec_dev(codec)) > 0 && codec->preset;
330 if (!codec->preset)
332 if (!codec->preset) {
/linux-master/sound/usb/
H A Dcard.c341 * Profile name preset table
500 const struct usb_audio_device_name *preset; local
503 preset = lookup_device_name(chip->usb_id);
504 if (preset && preset->product_name)
505 s = preset->product_name;
531 const struct usb_audio_device_name *preset; local
535 preset = lookup_device_name(chip->usb_id);
538 if (preset && preset
[all...]
/linux-master/include/sound/
H A Dsoundfont.h29 /* The following deals with preset numbers (programs) */
103 int preset, int bank,
/linux-master/drivers/iio/magnetometer/
H A Dbmc150_magn.c695 struct bmc150_magn_preset preset; local
729 preset = bmc150_magn_presets_table[BMC150_MAGN_DEFAULT_PRESET];
730 ret = bmc150_magn_set_odr(data, preset.odr);
733 preset.odr);
738 BMC150_MAGN_REPXY_TO_REGVAL(preset.rep_xy));
741 preset.rep_xy);
746 BMC150_MAGN_REPZ_TO_REGVAL(preset.rep_z));
749 preset.rep_z);
753 ret = bmc150_magn_set_max_odr(data, preset.rep_xy, preset
[all...]
/linux-master/sound/synth/emux/
H A 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) */
1116 /* rebuild preset now */
1136 * Rebuild the preset table. This is like a hash table in that it allows
1137 * quick access to the zone information. For each preset there are zone
1139 * link for this preset, and latter is the link for zone (i.e. instrument/
1148 /* clear preset table */
1168 * add the given zone to preset table
1196 cur->next_instr = sflist->presets[index]; /* preset tabl
1231 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) argument
1265 search_first_zone(struct snd_sf_list *sflist, int bank, int preset, int key) argument
1285 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) argument
[all...]
H A Demux_synth.c894 int preset, bank, def_preset, def_bank; local
897 preset = chan->midi_program;
903 def_preset = preset;
907 return snd_soundfont_search_zone(emu->sflist, notep, vel, preset, bank,
/linux-master/sound/soc/codecs/
H A Dhda.c205 ret = snd_hda_codec_set_name(codec, codec->preset->name);
207 dev_err(&hdev->dev, "set name: %s failed: %d\n", codec->preset->name, ret);
217 patch = (hda_codec_patch_t)codec->preset->driver_data;
H A Dhdac_hda.c471 ret = snd_hda_codec_set_name(hcodec, hcodec->preset->name);
473 dev_err(&hdev->dev, "name failed %s\n", hcodec->preset->name);
483 patch = (hda_codec_patch_t)hcodec->preset->driver_data;
/linux-master/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_ethtool.c692 static int __bnx2x_get_preset_regs_len(struct bnx2x *bp, u32 preset) argument
695 return dump_num_registers[0][preset-1];
697 return dump_num_registers[1][preset-1];
699 return dump_num_registers[2][preset-1];
701 return dump_num_registers[3][preset-1];
703 return dump_num_registers[4][preset-1];
713 /* Calculate the total preset regs length */
844 * @preset: the preset value
851 static void bnx2x_read_pages_regs(struct bnx2x *bp, u32 *p, u32 preset) argument
887 __bnx2x_get_preset_regs(struct bnx2x *bp, u32 *p, u32 preset) argument
1019 bnx2x_get_preset_regs_len(struct net_device *dev, u32 preset) argument
[all...]
/linux-master/drivers/mtd/nand/raw/
H A Dmxc_nand.c125 void (*preset)(struct mtd_info *); member in struct:mxc_nand_devtype_data
1127 /* preset operation */
1241 /* preset operation */
1348 host->devtype_data->preset(mtd);
1461 .preset = preset_v1,
1485 .preset = preset_v1,
1510 .preset = preset_v2,
1536 .preset = preset_v3,
1562 .preset = preset_v3,
1651 /* Call preset agai
[all...]
/linux-master/drivers/bluetooth/
H A Dbtintel.h139 __u8 preset[8]; member in struct:intel_offload_use_cases
/linux-master/drivers/mmc/host/
H A Dsdhci.c1850 u16 preset = 0; local
1855 preset = sdhci_readw(host, SDHCI_PRESET_FOR_HIGH_SPEED);
1858 preset = sdhci_readw(host, SDHCI_PRESET_FOR_SDR12);
1861 preset = sdhci_readw(host, SDHCI_PRESET_FOR_SDR25);
1864 preset = sdhci_readw(host, SDHCI_PRESET_FOR_SDR50);
1868 preset = sdhci_readw(host, SDHCI_PRESET_FOR_SDR104);
1872 preset = sdhci_readw(host, SDHCI_PRESET_FOR_DDR50);
1875 preset = sdhci_readw(host, SDHCI_PRESET_FOR_HS400);
1880 preset = sdhci_readw(host, SDHCI_PRESET_FOR_SDR12);
1883 return preset;
2454 u16 preset; local
[all...]
H A Dsdhci-acpi.c476 u16 preset, preset_driver_strength; local
480 * read from the HS200 (SDR104) preset register.
485 preset = sdhci_readw(host, SDHCI_PRESET_FOR_SDR104);
486 preset_driver_strength = FIELD_GET(SDHCI_PRESET_DRV_MASK, preset);
630 * By default, the SDR104 preset register has a driver strength of
631 * A, but the (internal) HS400 preset register has a driver
639 * HS400 preset driver strengths match.
647 * preset register anywhere in the SDHCI memory map. This results
651 * instead use the SDR104 preset register.
/linux-master/arch/x86/kernel/
H A Dhead_32.S175 movl $-1,pa(X86_CPUID) # preset CPUID level
/linux-master/drivers/iio/trigger/
H A Dstm32-timer-trigger.c678 unsigned int preset; local
681 ret = kstrtouint(buf, 0, &preset);
687 regmap_write(priv->regmap, TIM_ARR, preset);
694 .name = "preset",
/linux-master/drivers/memory/tegra/
H A Dtegra30-emc.c461 bool preset = false; local
471 preset = true;
482 preset = true;
494 preset = true;
498 return preset;

Completed in 275 milliseconds

12