| /freebsd/usr.sbin/trim/ |
| H A D | trim.8 | 30 .Nm trim 36 .Bk -words 43 .Bk -words 51 It is mostly relevant for a storage that implements trim (like flash based, 58 to trim populated UFS, and to the 59 .Xr zpool-trim 8 60 command to trim existing ZFS pool. 63 .Bl -tag -width indent 68 This is the default. 89 of the region to trim or its offset [all …]
|
| H A D | trim.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 51 static int trim(const char *path, off_t offset, off_t length, bool dryrun, bool verbose); 68 while ((ch = getopt(argc, argv, "Nfl:o:qr:v")) != -1) in main() 79 if (expand_number(optarg, &usz) == -1 || in main() 102 default: in main() 110 * trim -f /dev/da0 -r rfile in main() 112 * This would trim whole device then error on non-existing file -r. in main() 115 * trim -f -- /dev/da0 -r rfile in main() 118 if (strcmp(argv[optind-1], "--") != 0) { in main() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/phy/ |
| H A D | qcom,qusb2-phy.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/phy/qcom,qusb2-phy.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Wesley Cheng <quic_wcheng@quicinc.com> 19 - items: 20 - enum: 21 - qcom,ipq6018-qusb2-phy 22 - qcom,ipq8074-qusb2-phy 23 - qcom,ipq9574-qusb2-phy [all …]
|
| H A D | phy-stm32-usbphyc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/phy/phy-stm32-usbphyc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 22 |_ PHY port#2 ----| |________________ 27 - Amelie Delaunay <amelie.delaunay@foss.st.com> 31 const: st,stm32mp1-usbphyc 42 "#address-cells": 45 "#size-cells": 48 vdda1v1-supply: [all …]
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | vdev_trim.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 42 * TRIM is a feature which is used to notify a SSD that some previously 48 * There are two supported TRIM methods; manual and automatic. 50 * Manual TRIM: 52 * A manual TRIM is initiated by running the 'zpool trim' command. A single 54 * managing that vdev TRIM process. This involves iterating over all the 56 * required TRIM I/Os. 61 * the TRIM are regularly written to the pool. This allows the TRIM to be 64 * Automatic TRIM: [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/mmc/ |
| H A D | nvidia,tegra20-sdhci.txt | 7 by mmc.txt and the properties used by the sdhci-tegra driver. 10 - compatible : should be one of: 11 - "nvidia,tegra20-sdhci": for Tegra20 12 - "nvidia,tegra30-sdhci": for Tegra30 13 - "nvidia,tegra114-sdhci": for Tegra114 14 - "nvidia,tegra124-sdhci": for Tegra124 and Tegra132 15 - "nvidia,tegra210-sdhci": for Tegra210 16 - "nvidia,tegra186-sdhci": for Tegra186 17 - "nvidia,tegra194-sdhci": for Tegra194 18 - clocks: For Tegra210, Tegra186 and Tegra194 must contain two entries. [all …]
|
| H A D | nvidia,tegra20-sdhci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mmc/nvidia,tegra20-sdhci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jon Hunter <jonathanh@nvidia.com> 18 mmc-controller.yaml and the properties for the Tegra SDHCI controller. 23 - enum: 24 - nvidia,tegra20-sdhci 25 - nvidia,tegra30-sdhci [all …]
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | trim2.sh | 29 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 31 # Run a test on a 128 MB malloc backed MD with UFS SU fs with option trim. 34 . ../default.cfg 36 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 37 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 38 mdconfig -a -t malloc -o reserve -s 128m -u $mdstart || exit 1 39 [ $# -eq 0 ] && trim=-t 40 newfs $trim $newfs_flags md$mdstart > /dev/null 43 echo "This is a Trim (TRIM) test." >> $mntpoint/file 50 while mount | grep $mntpoint | grep -q /dev/md; do [all …]
|
| H A D | trim3.sh | 29 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 31 # Run with marcus.cfg on a 1 GB swap backed MD with option trim. 33 # A variation of trim.sh 35 . ../default.cfg 37 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 38 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 41 [ $# -eq 0 ] && trim=-t 45 [ "$newfs_flags" = "-U" ] && opt="-U -j" 47 echo "mdconfig -a -t swap -s $size -u $mdstart" 48 mdconfig -a -t swap -s $size -u $mdstart || exit 1 [all …]
|
| H A D | trim4.sh | 29 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 31 # Run with marcus.cfg on a 1 GB swap backed MD with option trim. 32 # SU+J FS corruption seen with option trim. 34 . ../default.cfg 36 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 37 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 40 [ $# -eq 0 ] && trim=-t 41 [ "$newfs_flags" = "-U" ] && flag="-j" 44 while [ $((`date +%s` - start)) -lt $((15 * 60)) ]; do 46 echo "mdconfig -a -t swap -s $size -u $mdstart" [all …]
|
| H A D | trim.sh | 29 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 31 # Run with marcus.cfg on a malloc backed MD with option trim. 33 # panic: Bad tailq head 0xfffff80160cb7170 first->prev != head 35 . ../default.cfg 39 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint 40 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 43 [ `uname -m` = "amd64" ] && size="1g" 44 [ $# -eq 0 ] && trim=-t 47 [ "$newfs_flags" = "-U" ] && opt="-U -j" 50 echo "mdconfig -a -t malloc -o reserve -s $size -u $mdstart" [all …]
|
| /freebsd/contrib/dialog/samples/ |
| H A D | msgbox2 | 4 . ./setup-vars 6 $DIALOG --title "MESSAGE BOX" --trim "$@" \ 7 --msgbox "Hi, this is a simple message box. You can use this to 10 with dialogs default aspect ratio of 9." 0 0 13 $DIALOG --aspect 12 --title "MESSAGE BOX aspect=12" --trim "$@" \ 14 --msgbox "Hi, this is a simple message box. You can use this to 20 $DIALOG --aspect 6 --title "MESSAGE BOX aspect=6" --trim "$@" \ 21 --msgbox "Hi, this is a simple message box. You can use this to 27 $DIALOG --aspect 6 --cr-wrap --title "MESSAGE BOX aspect=6 with --cr-wrap" \ 28 --trim "$@" --msgbox " \ [all …]
|
| /freebsd/usr.sbin/newsyslog/ |
| H A D | newsyslog.8 | 50 period's logs in it, and so on, up to a user-specified number of 61 .Bl -enum -offset indent 81 .Bl -tag -width indent 125 not to trim the logs, but to print out what it would do if this option 156 logfiles using the specified time format instead of the default 165 .Dq DEFAULT , 166 the default built in time format 186 If log files are given on the command-line, then the 194 to trim the logs, even if the trim conditions have not been met. 212 should rotate a given list of files, even if trim conditions are not [all …]
|
| /freebsd/sys/tools/syscalls/tools/ |
| H A D | util.lua | 1 -- 2 -- SPDX-License-Identifier: BSD-2-Clause 3 -- 4 -- Copyright (c) 2024 Tyler Baxter <agge@FreeBSD.org> 5 -- Copyright (c) 2023 Warner Losh <imp@bsdimp.com> 6 -- Copyright (c) 2019 Kyle Evans <kevans@FreeBSD.org> 7 -- 11 -- 12 -- Returns a trimmed string. Default is to trim whitespace. 13 -- [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_misc/ |
| H A D | zvol_misc_trim.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 34 # Verify we can TRIM a zvol 37 # 1. TRIM the entire zvol to remove data from older tests 41 # 5. TRIM the first 1MB and last 2MB of the 5MB block of data. 49 # We need '--force' here since the prior tests may leave a filesystem 53 # Only blkdiscard >= v2.36 supports --force, so we need to 55 if blkdiscard --help | grep -q '\-\-force' ; then 56 trimcmd='blkdiscard --force' [all …]
|
| /freebsd/sys/contrib/device-tree/src/arm64/socionext/ |
| H A D | uniphier-ld20.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 5 // Copyright (C) 2015-2016 Socionext Inc. 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/gpio/uniphier-gpio.h> 10 #include <dt-bindings/interrupt-controller/arm-gi [all...] |
| H A D | uniphier-pxs3.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/gpio/uniphier-gpio.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-binding [all...] |
| /freebsd/sys/cam/ata/ |
| H A D | ata_da.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 230 { "NONE", "DISABLED", "CFA Erase", "DSM Trim", "DSM Trim via NCQ" }; 446 * 4k optimised & trim only works in 4k requests + 4k aligned 448 { T_DIRECT, SIP_MEDIA_FIXED, "*", "Corsair CSSD-F*", "*" }, 454 * 4k optimised & trim only works in 4k requests + 4k aligned 462 * 4k optimised & trim only works in 4k requests + 4k aligned 470 * 4k optimised & trim only works in 4k requests + 4k aligned 478 * 4k optimised & trim only works in 4k requests + 4k aligned 480 { T_DIRECT, SIP_MEDIA_FIXED, "*", "M4-CT???M4SSD2*", "*" }, [all …]
|
| /freebsd/sys/contrib/device-tree/src/arm/st/ |
| H A D | stm32mp135f-dhcor-dhsbc.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 6 * DHCR-STM32MP135F-C100-R051-EE-F0409-SPI4-RTC-WBT-I-01LG 7 * DHCOR PCB number: 718-100 or newer 8 * DHSBC PCB number: 719-100 or newer 11 /dts-v1/; 13 #include <dt-bindings/regulator/st,stm32mp13-regulator.h> 16 #include "stm32mp13xx-dhcor-som.dtsi" 20 compatible = "dh,stm32mp135f-dhcor-dhsbc", 21 "dh,stm32mp135f-dhcor-som", 32 stdout-path = "serial0:115200n8"; [all …]
|
| H A D | stm32mp157c-ev1.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved 6 /dts-v1/; 8 #include "stm32mp157c-ed1.dts" 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-binding [all...] |
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | FormatVariadic.cpp | 1 //===- FormatVariadic.cpp - Format string parsing and analysis ----*-C++-*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 //===----------------------------------------------------------------------===// 16 case '-': in translateLocChar() 22 default: in translateLocChar() 60 StringRef RepString = Spec.trim("{}"); in parseReplacementItem() 62 // If the replacement sequence does not start with a non-negative integer, in parseReplacementItem() 69 RepString = RepString.trim(); in parseReplacementItem() 74 RepString = RepString.trim(); in parseReplacementItem() 79 RepString = RepString.trim(); in parseReplacementItem() [all …]
|
| /freebsd/contrib/tcsh/ |
| H A D | sh.glob.c | 4 /*- 85 name = Strnsave(u + 1, s - (u + 1)); in globtilde() 117 * kfk - 17 Jan 1984 - stack hack allows user to get at arbitrary dir names in globequal() 120 if (old[1] == '-' && (old[2] == '\0' || old[2] == '/')) { in globequal() 121 /* =- */ in globequal() 125 !dcwd->di_next->di_name && !dcwd->di_prev->di_name) in globequal() 127 dig = -1; in globequal() 132 dig = old[1] - '0'; in globequal() 134 dig = dig * 10 + (*b - '0'); in globequal() 161 prefix_len = p - s; in globbrace() [all …]
|
| H A D | tw.parse.c | 7 /*- 48 #define DOT_NOT 1 /* Don't display dot or dot-dot */ 87 int curchoice = -1; 91 static int SearchNoDirErr = 0; /* t_search returns -2 if dir is unreadable */ 97 /* do the expand or list on the command line -- SHOULD BE REPLACED */ 138 #define isaset(c, w) ((w)[-1] == '=' && \ 205 if (cmap(*cp, _ESC) && cp < str_end - 1 && cp[1] == HIST && in tenematch() 213 if (ismetahash(qline.s[qline.len - 1]) in tenematch() 224 * first word of command -> TW_COMMAND in tenematch() 225 * everything else -> TW_ZERO in tenematch() [all …]
|
| /freebsd/sys/cam/nvme/ |
| H A D | nvme_da.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 189 "Maximum number of BIO_DELETE to send down as a DSM TRIM."); 196 * All NVMe media is non-rotational, so all nvme device instances 228 nvme_ns_flush_cmd(&nvmeio->cmd, softc->nsid); in nda_nvme_flush() 242 nvme_ns_trim_cmd(&nvmeio->cmd, softc->nsid, num_ranges); in nda_nvme_trim() 256 nvme_ns_write_cmd(&nvmeio->cmd, softc->nsid, lba, count); in nda_nvme_write() 268 if (bp->bio_flags & BIO_UNMAPPED) { in nda_nvme_rw_bio() 272 payload = bp->bio_data; in nda_nvme_rw_bio() 275 lba = bp->bio_pblkno; in nda_nvme_rw_bio() [all …]
|
| /freebsd/sys/contrib/openzfs/cmd/zpool_influxdb/ |
| H A D | README.md | 6 stdout. In many ways, this is a metrics-friendly output of 18 |---|---|---| 19 | --execd | -e | For use with telegraf's `execd` plugin. When [enter] is pressed, the pools are sam… 20 | --no-histogram | -n | Do not print histogram information | 21 | --signed-int | -i | Use signed integer data type (default=unsigned) | 22 | --sum-histogram-buckets | -s | Sum histogram bucket values | 23 | --tags key=value[,key=value...] | -t | Add tags to data points. No tag sanity checking is perform… 24 | --help | -h | Print a short usage message | 28 This works well out-of-the-box with an influxdb data source and grafana's 35 Another method for storing histogram data sums the values for lower-value [all …]
|