Home
last modified time | relevance | path

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

12345678910>>...12

/openbmc/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 …]
/openbmc/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 …]
/openbmc/linux/drivers/hwtracing/coresight/
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) in cscfg_update_presets() argument
148 /* preset in range 1 to nr_presets */ in cscfg_update_presets()
149 if (preset < 1 || preset > config_desc->nr_presets) in cscfg_update_presets()
152 * Go through the array of features, assigning preset values to in cscfg_update_presets()
154 * There should be precisely the same number of preset values as the in cscfg_update_presets()
159 preset_base = &config_desc->presets[(preset - 1) * nr_cfg_params]; in cscfg_update_presets()
188 * if we are not using a preset, then need to update the feature params
254 * @preset: preset values to use - 0 for default.
256 int cscfg_csdev_enable_config(struct cscfg_config_csdev *config_csdev, int preset) in cscfg_csdev_enable_config() 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); 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 */
H A Dcoresight-syscfg.c968 /* set the sysfs preset value */
969 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()
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) in cscfg_config_sysfs_get_active_cfg() argument
983 *preset = cscfg_mgr->sysfs_active_preset; in cscfg_config_sysfs_get_active_cfg()
1037 * configuration, using @preset parameters.
1044 * @preset: Preset parameter values to use, 0 for current / default values.
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()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/systemd/systemd-systemctl/
H A Dsystemctl4 Mask/preset systemd units
103 """Parse presets out of a set of preset files"""
108 for preset in presets:
109 with preset.open() as f:
119 sys.exit("Unparsed preset line in {}".format(preset))
122 """Collect list of preset files"""
125 paths = (root / location / scope).glob("*.preset")
134 """Return state of preset for unit_name
141 None: no matching preset
267 presets = Presets('system-preset', root)
[all …]
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd-systemctl/
H A Dsystemctl4 Mask/preset systemd units
119 """Parse presets out of a set of preset files"""
124 for preset in presets:
125 with preset.open() as f:
135 sys.exit("Unparsed preset line in {}".format(preset))
138 """Collect list of preset files"""
141 paths = (root / location / scope).glob("*.preset")
150 """Return state of preset for unit_name
157 None: no matching preset
289 presets = Presets('system-preset', root)
[all …]
/openbmc/linux/Documentation/ABI/testing/
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 …]
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
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_ddi_buf_trans.c631 /* HDMI Preset VS Pre-emph */
689 /* HDMI Preset VS Pre-emph */
1016 { .snps = { 62, 0, 0 } }, /* preset 0 */
1017 { .snps = { 55, 0, 7 } }, /* preset 1 */
1018 { .snps = { 50, 0, 12 } }, /* preset 2 */
1019 { .snps = { 44, 0, 18 } }, /* preset 3 */
1020 { .snps = { 35, 0, 21 } }, /* preset 4 */
1021 { .snps = { 59, 3, 0 } }, /* preset 5 */
1022 { .snps = { 53, 3, 6 } }, /* preset 6 */
1023 { .snps = { 48, 3, 11 } }, /* preset 7 */
[all …]
/openbmc/openbmc/poky/meta/classes-recipe/
H A Dsystemd.bbclass47 systemctl preset ${SYSTEMD_SERVICE_ESCAPED}
188 …f = oe.path.join(d.getVar("PKGD"), d.getVar("systemd_unitdir"), "system-preset/98-%s.preset" % pkg)
193 …LES:%s" % pkg, ' ' + oe.path.join(d.getVar("systemd_unitdir"), "system-preset/98-%s.preset" % pkg))
204 elif action not in ("mask", "preset"):
205 …fatal("SYSTEMD_AUTO_ENABLE:%s '%s' is not 'enable', 'disable', 'mask' or 'preset'" % (pkg, action))
/openbmc/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
/openbmc/u-boot/board/compulab/common/
H A Domap3_display.c147 static void set_preset(const struct panel_config preset, int x_res, int y_res) in set_preset() argument
149 panel_cfg = preset; in set_preset()
153 static enum display_type set_dvi_preset(const struct panel_config preset, in set_dvi_preset() argument
156 set_preset(preset, x_res, y_res); in set_dvi_preset()
160 static enum display_type set_dataimage_preset(const struct panel_config preset, in set_dataimage_preset() argument
163 set_preset(preset, x_res, y_res); in set_dataimage_preset()
371 * name of the display type or preset, in which case it applies its
406 /* If we did not recognize the preset, check if it's an env variable */ in lcd_ctrl_init()
/openbmc/linux/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) */
1121 /* rebuild preset now */ in load_guspatch()
1141 * Rebuild the preset table. This is like a hash table in that it allows
1142 * quick access to the zone information. For each preset there are zone
1144 * link for this preset, and latter is the link for zone (i.e. instrument/
1153 /* clear preset table */ in rebuild_presets()
1173 * add the given zone to preset table
1201 cur->next_instr = sflist->presets[index]; /* preset table link */ in add_preset()
[all …]
/openbmc/u-boot/board/compulab/cm_fx6/
H A Dcm_fx6.c119 struct display_info_t *preset; in board_video_skip() local
129 preset = &preset_hdmi_1024X768; in board_video_skip()
133 ret = ipuv3_fb_init(&preset->mode, 0, preset->pixfmt); in board_video_skip()
135 printf("Can't init display %s: %d\n", preset->mode.name, ret); in board_video_skip()
139 preset->enable(preset); in board_video_skip()
140 printf("Display: %s (%ux%u)\n", preset->mode.name, preset->mode.xres, in board_video_skip()
141 preset->mode.yres); in board_video_skip()
/openbmc/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()
/openbmc/linux/sound/usb/
H A Dcard.c341 * Profile name preset table
506 const struct usb_audio_device_name *preset; in usb_audio_make_shortname() local
509 preset = lookup_device_name(chip->usb_id); in usb_audio_make_shortname()
510 if (preset && preset->product_name) in usb_audio_make_shortname()
511 s = preset->product_name; in usb_audio_make_shortname()
537 const struct usb_audio_device_name *preset; in usb_audio_make_longname() local
541 preset = lookup_device_name(chip->usb_id); in usb_audio_make_longname()
544 if (preset && preset->profile_name) in usb_audio_make_longname()
545 s = preset->profile_name; in usb_audio_make_longname()
551 if (preset && preset->vendor_name) in usb_audio_make_longname()
[all …]
/openbmc/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
/openbmc/linux/drivers/mmc/host/
H A Dsdhci-acpi.c479 u16 preset, preset_driver_strength; in amd_select_drive_strength() local
483 * read from the HS200 (SDR104) preset register. in amd_select_drive_strength()
488 preset = sdhci_readw(host, SDHCI_PRESET_FOR_SDR104); in amd_select_drive_strength()
489 preset_driver_strength = FIELD_GET(SDHCI_PRESET_DRV_MASK, preset); in amd_select_drive_strength()
633 * By default, the SDR104 preset register has a driver strength of in sdhci_acpi_emmc_amd_probe_slot()
634 * A, but the (internal) HS400 preset register has a driver in sdhci_acpi_emmc_amd_probe_slot()
642 * HS400 preset driver strengths match. in sdhci_acpi_emmc_amd_probe_slot()
650 * preset register anywhere in the SDHCI memory map. This results in sdhci_acpi_emmc_amd_probe_slot()
654 * instead use the SDR104 preset register. in sdhci_acpi_emmc_amd_probe_slot()
/openbmc/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 …]

12345678910>>...12