| /freebsd/sys/contrib/device-tree/Bindings/mmc/ |
| H A D | sdhci-am654.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ 4 --- 5 $id: http://devicetree.org/schemas/mmc/sdhci-am654.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Ulf Hansson <ulf.hansson@linaro.org> 14 - $ref: sdhci-common.yaml# 19 - enum: 20 - ti,am62-sdhci 21 - ti,am64-sdhci-4bit [all …]
|
| /freebsd/contrib/bsddialog/lib/ |
| H A D | timebox.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2021-2025 Alfonso Sabato Siciliano 81 y = d->y + d->h - BORDER - HBUTTONS - HBOX; in timebox_draw() 82 x = d->x + d->w/2 - 7; in timebox_draw() 83 update_box(d->conf, c[0].win, y, x, HBOX, WBOX, LOWERED); in timebox_draw() 84 mvwaddch(d->widget, d->h - 5, d->w/2 - 3, ':'); in timebox_draw() 85 update_box(d->conf, c[1].win, y, x += 5, HBOX, WBOX, LOWERED); in timebox_draw() 86 mvwaddch(d->widget, d->h - 5, d->w/2 + 2, ':'); in timebox_draw() 87 update_box(d->conf, c[2].win, y, x + 5, HBOX, WBOX, LOWERED); in timebox_draw() [all …]
|
| H A D | datebox.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2022-2025 Alfonso Sabato Siciliano 105 dd += mm < 3 ? yy-- : yy - 2; in week_day() 106 wd = 23*mm/9 + dd + 4 + yy/4 - yy/100 + yy/400; in week_day() 136 *dd -= 7; in datectl() 139 *yy -= 1; in datectl() 142 *mm -= 1; in datectl() 144 *dd = ndays - abs(7 - *dd); in datectl() 156 *dd = *dd + 7 - ndays; in datectl() [all …]
|
| H A D | menubox.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2021-2025 Alfonso Sabato Siciliano 69 int sel; /* current focus item, can be -1 */ member 102 m->nitems = 0; in build_privatemenu() 105 m->nitems += (int)groups[i].nitems; in build_privatemenu() 109 m->pritems = calloc(m->nitems, sizeof (struct privateitem)); in build_privatemenu() 110 if (m->pritems == NULL) in build_privatemenu() 112 m->hasbottomdesc = false; in build_privatemenu() 118 pritem = &m->pritems[abs]; in build_privatemenu() [all …]
|
| H A D | slider.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 39 #define NULLWIN -1 87 step = sliderctl->step; in handlesliderctl() 88 old_start = *(sliderctl->start); in handlesliderctl() 90 old_end = *(sliderctl->end); in handlesliderctl() 92 size = old_end - old_start + 1; in handlesliderctl() 94 switch (sliderctl->op) { in handlesliderctl() 99 for (i = 0; i < sliderctl->nspaces; i++) { in handlesliderctl() 100 x = (sliderctl->spaces)[i][0]; in handlesliderctl() [all …]
|
| H A D | formbox.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2021-2025 Alfonso Sabato Siciliano 66 unsigned int xcursor; /* position in fieldcols [0 - fieldcols-1] */ 87 int sel; /* selected item in pritem, can be -1 */ member 105 RETURN_FMTERROR("item %u [0-%u] fieldlen = 0", in build_privateform() 108 RETURN_FMTERROR("item %u [0-%u] maxvaluelen = 0", in build_privateform() 111 f->nitems = nitems; in build_privateform() 115 if (conf->form.securembch != NULL) { in build_privateform() 116 mbchsize = mblen(conf->form.securembch, MB_LEN_MAX); in build_privateform() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/pinctrl/ |
| H A D | fsl,imx7d-pinctrl.txt | 3 iMX7D supports two iomuxc controllers, fsl,imx7d-iomuxc controller is similar 4 as previous iMX SoC generation and fsl,imx7d-iomuxc-lpsr which provides low 5 power state retention capabilities on gpios that are part of iomuxc-lpsr 6 (GPIO1_IO7..GPIO1_IO0). While iomuxc-lpsr provides its own set of registers for 7 mux and pad control settings, it shares the input select register from main 8 iomuxc controller for daisy chain settings, the fsl,input-sel property extends 9 fsl,imx-pinctrl driver to support iomuxc-lpsr controller. 11 iomuxc_lpsr: iomuxc-lpsr@302c0000 { 12 compatible = "fsl,imx7d-iomuxc-lpsr"; 14 fsl,input-sel = <&iomuxc>; [all …]
|
| H A D | fsl,imx7d-pinctrl.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/fsl,imx7d-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dong Aisheng <aisheng.dong@nxp.com> 13 Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory 19 - enum: 20 - fsl,imx7d-iomuxc 21 - fsl,imx7d-iomuxc-lpsr 26 fsl,input-sel: [all …]
|
| H A D | nvidia,tegra114-pinmux.txt | 4 pinctrl binding, as described in nvidia,tegra20-pinmux.txt and 5 nvidia,tegra30-pinmux.txt. In fact, this document assumes that binding as 9 - compatible: "nvidia,tegra114-pinmux" 10 - reg: Should contain the register physical address and length for each of 16 - nvidia,enable-input: Integer. Enable the pin's input path. 0: no, 1: yes. 17 - nvidia,open-drain: Integer. Enable open drain mode. 0: no, 1: yes. 18 - nvidia,lock: Integer. Lock the pin configuration against further changes 20 - nvidia,io-reset: Integer. Reset the IO path. 0: no, 1: yes. 21 - nvidia,rcv-sel: Integer. Select VIL/VIH receivers. 0: normal, 1: high. 22 - nvidia,drive-type: Integer. Valid range 0...3. [all …]
|
| H A D | nvidia,tegra124-pinmux.txt | 4 pinctrl binding, as described in nvidia,tegra20-pinmux.txt and 5 nvidia,tegra30-pinmux.txt. In fact, this document assumes that binding as 9 - compatible: For Tegra124, must contain "nvidia,tegra124-pinmux". For 10 Tegra132, must contain '"nvidia,tegra132-pinmux", "nvidia-tegra124-pinmux"'. 11 - reg: Should contain a list of base address and size pairs for: 12 -- first entry - the drive strength and pad control registers. 13 -- second entry - the pinmux registers 14 -- third entry - the MIPI_PAD_CTRL register 18 include/dt-binding/pinctrl/pinctrl-tegra.h. 19 - nvidia,enable-input: Integer. Enable the pin's input path. [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/leds/ |
| H A D | leds-lm3532.txt | 1 * Texas Instruments - lm3532 White LED driver with ambient light sensing 4 The LM3532 provides the 3 high-voltage, low-side current sinks. The device is 5 programmable over an I2C-compatible interface and has independent 11 each with 32 internal voltage setting resistors, 8-bit logarithmic and linear 16 - compatible : "ti,lm3532" 17 - reg : I2C slave address 18 - #address-cells : 1 19 - #size-cells : 0 22 - enable-gpios : gpio pin to enable (active high)/disable the device. 23 - ramp-up-us - The Run time ramp rates/step are from one current [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/sound/ |
| H A D | da7218.txt | 8 - compatible : Should be "dlg,da7217" or "dlg,da7218" 9 - reg: Specifies the I2C slave address 11 - VDD-supply: VDD power supply for the device 12 - VDDMIC-supply: VDDMIC power supply for the device 13 - VDDIO-supply: VDDIO power supply for the device 18 - interrupts: IRQ line info for DA7218 chip. 19 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for 21 - interrupt-names : Name associated with interrupt line. Should be "wakeup" if 23 - wakeup-source: Flag to indicate this device can wake system (suspend/resume). 25 - clocks : phandle and clock specifier for codec MCLK. [all …]
|
| H A D | dialog,da7219.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schema [all...] |
| /freebsd/sys/contrib/device-tree/Bindings/net/ |
| H A D | cpsw.txt | 2 ------------------------------------------------------ 5 - compatible : Should be one of the below:- 7 "ti,am335x-cpsw" for AM335x controllers 8 "ti,am4372-cpsw" for AM437x controllers 9 "ti,dra7-cpsw" for DRA7x controllers 10 - reg : physical base address and size of the cpsw 12 - interrupts : property with a value describing the interrupt 14 - cpdma_channels : Specifies number of channels in CPDMA 15 - ale_entries : Specifies No of entries ALE can hold 16 - bd_ram_size : Specifies internal descriptor RAM size [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/input/ |
| H A D | ti,drv260x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/ti,drv260x.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Texas Instruments - drv260x Haptics driver family 10 - Andrew Davis <afd@ti.com> 15 - ti,drv2604 16 - ti,drv2605 17 - ti,drv2605l 22 vbat-supply: [all …]
|
| H A D | ti,drv260x.txt | 1 * Texas Instruments - drv260x Haptics driver family 4 - compatible - One of: 5 "ti,drv2604" - DRV2604 6 "ti,drv2605" - DRV2605 7 "ti,drv2605l" - DRV2605L 8 - reg - I2C slave address 9 - vbat-supply - Required supply regulator 10 - mode - Power up mode of the chip (defined in include/dt-bindings/input/ti-drv260x.h) 11 DRV260X_LRA_MODE - Linear Resonance Actuator mode (Piezoelectric) 12 DRV260X_LRA_NO_CAL_MODE - This is a LRA Mode but there is no calibration [all …]
|
| /freebsd/sys/contrib/device-tree/src/arm64/freescale/ |
| H A D | fsl-lx2160a-tqmlx2160a-mblx2160a.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 * Copyright (c) 2020-2023 TQ-Systems GmbH <linux@ew.tq-group.com>, 4 * D-82229 Seefeld, Germany. 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/net/ti-dp83867.h> 14 #include "fsl-lx2160a-tqmlx2160a.dtsi" 18 compatible = "tq,lx2160a-tqmlx2160a-mblx2160a", "tq,lx2160a-tqmlx2160a", 31 stdout-path = &uart0; [all …]
|
| /freebsd/sys/contrib/device-tree/src/arm64/renesas/ |
| H A D | rzg2ul-smarc.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 * Device Tree Source for the RZ/G2UL Type-1 SMARC EVK parts 8 #include <dt-bindings/gpio/gpio.h> 9 #include "rzg2ul-smarc-pinfunction.dtsi" 10 #include "rz-smarc-common.dtsi" 14 /delete-property/ pinctrl-0; 15 /delete-property/ pinctrl-names; 21 sound-dai = <&ssi1>; 25 clock-frequency = <400000>; 30 gpio-controller; [all …]
|
| /freebsd/contrib/wpa/wpa_supplicant/examples/ |
| H A D | p2p-nfc.py | 4 # Copyright (c) 2012-2013, Jouni Malinen <j@w1.fi> 94 res = wpas.request("NFC_GET_HANDOVER_REQ NDEF P2P-CR").rstrip() 103 res = wpas.request("NFC_GET_HANDOVER_REQ NDEF WPS-CR").rstrip() 114 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF P2P-CR-TAG").rstrip() 116 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF P2P-CR").rstrip() 126 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF WPS-CR"); 132 def wpas_report_handover(req, sel, type): argument 136 …cmd = "NFC_REPORT_HANDOVER " + type + " P2P " + str(req).encode("hex") + " " + str(sel).encode("he… 143 def wpas_report_handover_wsc(req, sel, type): argument 147 …cmd = "NFC_REPORT_HANDOVER " + type + " WPS " + str(req).encode("hex") + " " + str(sel).encode("he… [all …]
|
| /freebsd/contrib/libucl/tests/ |
| H A D | test_msgpack.c | 67 * From http://www.pcg-random.org/ 77 return (xorshifted >> rot) | (xorshifted << ((-rot) & 31)); in pcg32_random() 87 keylen = pcg32_random () % (sizeof (keybuf) - 1) + 1; in random_key() 105 uint32_t sel; in main() local 122 assert (fd != -1); in main() 130 exit (-errno); in main() 141 sel = pcg32_random () % NTESTS; in main() 145 elt = tests[sel](); in main() 179 fprintf (stderr, "error parsing input: %s", in main() 217 ucl_array_append (res, ucl_object_fromint (-(cur % 128))); in ucl_test_integer() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/media/ |
| H A D | mediatek,vcodec-subdev-decoder.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/media/mediatek,vcodec-subde [all...] |
| /freebsd/sys/contrib/device-tree/Bindings/spi/ |
| H A D | spi-mt65xx.txt | 4 - compatible: should be one of the following. 5 - mediatek,mt2701-spi: for mt2701 platforms 6 - mediatek,mt2712-spi: for mt2712 platforms 7 - mediatek,mt6589-spi: for mt6589 platforms 8 - mediatek,mt6765-spi: for mt6765 platforms 9 - mediatek,mt7622-spi: for mt7622 platforms 10 - "mediatek,mt7629-spi", "mediatek,mt7622-spi": for mt7629 platforms 11 - mediatek,mt8135-spi: for mt8135 platforms 12 - mediatek,mt8173-spi: for mt8173 platforms 13 - mediatek,mt8183-spi: for mt8183 platforms [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 1 //===- InstCombineSelect.cpp ----------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 55 static Instruction *foldSelectBinOpIdentity(SelectInst &Sel, in foldSelectBinOpIdentity() argument 62 if (!match(Sel.getCondition(), m_Cmp(Pred, m_Value(X), m_Constant(C)))) in foldSelectBinOpIdentity() 77 if (!match(Sel.getOperand(IsEq ? 1 : 2), m_BinOp(BO))) in foldSelectBinOpIdentity() 81 // If this a floating-point compare with 0.0, any zero constant will do. in foldSelectBinOpIdentity() 82 Type *Ty = BO->getType(); in foldSelectBinOpIdentity() 83 Constant *IdC = ConstantExpr::getBinOpIdentity(BO->getOpcode(), Ty, true); in foldSelectBinOpIdentity() [all …]
|
| /freebsd/sys/contrib/openzfs/module/icp/algs/aes/ |
| H A D | aes_impl.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 55 newbie->nr = 10; in aes_init_keysched() 59 newbie->nr = 12; in aes_init_keysched() 63 newbie->nr = 14; in aes_init_keysched() 77 if (!ops->needs_byteswap) { in aes_init_keysched() 95 ops->generate(newbie, keyarr.ka32, keyBits); in aes_init_keysched() 96 newbie->ops = ops; in aes_init_keysched() 102 newbie->type = AES_32BIT_KS; in aes_init_keysched() 108 * Align if needed and (for x86 32-bit only) byte-swap. [all …]
|
| /freebsd/sys/contrib/device-tree/src/arm/st/ |
| H A D | stm32mp151c-mecio1r0.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 6 /dts-v1/; 10 #include "stm32mp15-pinctrl.dtsi" 11 #include "stm32mp15xxaa-pinctrl.dtsi" 12 #include "stm32mp15x-mecio1-io.dtsi" 13 #include <dt-bindings/gpio/gpio.h> 14 #include <dt-bindings/input/input.h> 15 #include <dt-bindings/leds/common.h> 22 compatible = "gpio-leds"; 24 led-0 { [all …]
|