Home
last modified time | relevance | path

Searched +full:bank +full:- +full:name (Results 1 – 25 of 968) sorted by relevance

12345678910>>...39

/openbmc/linux/drivers/pinctrl/renesas/
H A Dsh_pfc.h1 /* SPDX-License-Identifier: GPL-2.0
12 #include <linux/pinctrl/pinconf-generic.h>
43 const char *name; member
50 .name = #alias, \
56 #define SH_PFC_PIN_GROUP(name) SH_PFC_PIN_GROUP_ALIAS(name, name) argument
62 .name = #_name, \
79 const char *name; member
86 .name = #n, \
92 const char *name; member
99 const char *name; member
[all …]
/openbmc/u-boot/drivers/pinctrl/renesas/
H A Dsh_pfc.h35 const char *name; member
41 .name = #alias, \
49 const char *name; member
62 .name = #n#s, \
80 .name = #n, \
86 const char *name; member
93 const char *name; member
105 * - name: Register name (unused, for documentation purposes only)
106 * - r: Physical register address
107 * - r_width: Width of the register (in bits)
[all …]
/openbmc/linux/tools/testing/selftests/gpio/
H A Dgpio-sim.sh2 # SPDX-License-Identifier: GPL-2.0
6 CONFIGFS_DIR="/sys/kernel/config/gpio-sim"
7 MODULE="gpio-sim"
25 BANK=`basename $FILE`
26 if [ "$BANK" = "live" -o "$BANK" = "dev_name" ]; then
30 LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | grep -E ^line`
33 if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then
34 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog || \
38 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE || \
43 rmdir $CONFIGFS_DIR/$CHIP/$BANK
[all …]
/openbmc/linux/drivers/pinctrl/samsung/
H A Dpinctrl-exynos.c1 // SPDX-License-Identifier: GPL-2.0+
27 #include <linux/soc/samsung/exynos-pmu.h>
28 #include <linux/soc/samsung/exynos-regs-pmu.h>
30 #include "pinctrl-samsung.h"
31 #include "pinctrl-exynos.h"
54 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_mask() local
55 unsigned long reg_mask = our_chip->eint_mask + bank->eint_offset; in exynos_irq_mask()
59 raw_spin_lock_irqsave(&bank->slock, flags); in exynos_irq_mask()
61 mask = readl(bank->eint_base + reg_mask); in exynos_irq_mask()
62 mask |= 1 << irqd->hwirq; in exynos_irq_mask()
[all …]
H A Dpinctrl-samsung.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * pin-controller/pin-mux/pin-config/gpio-driver for Samsung's SoC's.
25 * enum pincfg_type - possible pin configuration types supported.
46 * packed together into a 16-bits. The upper 8-bits represent the configuration
47 * type and the lower 8-bits hold the value of the configuration type.
65 * enum eint_type - possible external interrupt types.
66 * @EINT_TYPE_NONE: bank does not support external interrupts
67 * @EINT_TYPE_GPIO: bank supportes external gpio interrupts
68 * @EINT_TYPE_WKUP: bank supportes external wakeup interrupts
69 * @EINT_TYPE_WKUP_MUX: bank supports multiplexed external wakeup interrupts
[all …]
H A Dpinctrl-samsung.c1 // SPDX-License-Identifier: GPL-2.0+
3 // pin-controller/pin-mux/pin-config/gpio-driver for Samsung's SoC's.
31 #include "pinctrl-samsung.h"
41 { "samsung,pin-pud", PINCFG_TYPE_PUD },
42 { "samsung,pin-drv", PINCFG_TYPE_DRV },
43 { "samsung,pin-con-pdn", PINCFG_TYPE_CON_PDN },
44 { "samsung,pin-pud-pdn", PINCFG_TYPE_PUD_PDN },
45 { "samsung,pin-val", PINCFG_TYPE_DAT },
54 return pmx->nr_groups; in samsung_get_group_count()
62 return pmx->pin_groups[group].name; in samsung_get_group_name()
[all …]
H A Dpinctrl-s3c64xx.c1 // SPDX-License-Identifier: GPL-2.0+
3 // S3C64xx specific support for pinctrl-samsung driver.
7 // Based on pinctrl-exynos.c, please see the file for original copyrights.
24 #include "pinctrl-samsung.h"
102 .name = id \
112 .eint_mask = (1 << (pins)) - 1, \
114 .name = id \
126 .name = id \
136 .eint_mask = (1 << (pins)) - 1, \
138 .name = id \
[all …]
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_transport_debug.c1 // SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only)
2 /* Copyright(c) 2014 - 2020 Intel Corporation */
15 struct adf_etr_ring_data *ring = sfile->private; in adf_ring_start()
21 if (*pos >= (ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size) / in adf_ring_start()
22 ADF_MSG_SIZE_TO_BYTES(ring->msg_size))) in adf_ring_start()
25 return ring->base_addr + in adf_ring_start()
26 (ADF_MSG_SIZE_TO_BYTES(ring->msg_size) * (*pos)++); in adf_ring_start()
31 struct adf_etr_ring_data *ring = sfile->private; in adf_ring_next()
33 if (*pos >= (ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size) / in adf_ring_next()
34 ADF_MSG_SIZE_TO_BYTES(ring->msg_size))) in adf_ring_next()
[all …]
/openbmc/linux/drivers/pinctrl/
H A Dpinctrl-equilibrium.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/pinctrl/pinconf-generic.h>
19 #include "pinctrl-equilibrium.h"
21 #define PIN_NAME_FMT "io-%d"
32 raw_spin_lock_irqsave(&gctrl->lock, flags); in eqbr_gpio_disable_irq()
33 writel(BIT(offset), gctrl->membase + GPIO_IRNENCLR); in eqbr_gpio_disable_irq()
34 raw_spin_unlock_irqrestore(&gctrl->lock, flags); in eqbr_gpio_disable_irq()
45 gc->direction_input(gc, offset); in eqbr_gpio_enable_irq()
47 raw_spin_lock_irqsave(&gctrl->lock, flags); in eqbr_gpio_enable_irq()
48 writel(BIT(offset), gctrl->membase + GPIO_IRNRNSET); in eqbr_gpio_enable_irq()
[all …]
H A Dpinctrl-st.c1 // SPDX-License-Identifier: GPL-2.0-only
64 * There are two registers cfg0 and cfg1 in this style for each bank.
65 * Each field in this register is 8 bit corresponding to 8 pins in the bank.
100 * (direction, retime-type, retime-clk, retime-delay)
102 * +----------------+
103 *[31:28]| reserved-3 |
104 * +----------------+-------------
106 * +----------------+ v
108 * +----------------+ ^
110 * +----------------+-------------
[all …]
H A Dpinctrl-rockchip.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2020-2021 Rockchip Electronics Co. Ltd.
8 * With some ideas taken from pinctrl-samsung:
14 * and pinctrl-at91:
15 * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
242 * @offset: if initialized to -1 it will be autocalculated, by specifying
275 * @offset: if initialized to -1 it will be autocalculated, by specifying
288 * @dev: the pinctrl device bind to the bank
289 * @reg_base: register base of the gpio bank
291 * @clk: clock of the gpio bank
[all …]
H A Dpinctrl-at91-pio4.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <dt-bindings/pinctrl/at91.h>
21 #include <linux/pinctrl/pinconf-generic.h>
28 #include "pinctrl-utils.h"
34 * designed the pin id into this bank.
80 * struct atmel_pioctrl_data - Atmel PIO controller (pinmux + gpio) data struct
82 * @last_bank_count: number of lines in the last bank (can be less than
93 const char *name; member
101 unsigned int bank; member
107 * struct atmel_pioctrl - Atmel PIO controller (pinmux + gpio)
[all …]
/openbmc/linux/arch/x86/kernel/cpu/mce/
H A Damd.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * (c) 2005-2016 Advanced Micro Devices, Inc.
5 * Written by Jacob Shin - AMD, Inc.
84 u8 sysfs_id; /* Value used for sysfs name. */
91 const char *name; /* Short name for sysfs */ member
92 const char *long_name; /* Long name for pretty-printing */
133 return smca_names[t].name; in smca_get_name()
145 enum smca_bank_types smca_get_bank_type(unsigned int cpu, unsigned int bank) in smca_get_bank_type() argument
149 if (bank >= MAX_NR_BANKS) in smca_get_bank_type()
152 b = &per_cpu(smca_banks, cpu)[bank]; in smca_get_bank_type()
[all …]
/openbmc/linux/drivers/gpio/
H A Dgpio-sim.c1 // SPDX-License-Identifier: GPL-2.0-or-later
70 gc = &chip->gc; in gpio_sim_apply_pull()
71 desc = &gc->gpiodev->descs[offset]; in gpio_sim_apply_pull()
73 guard(mutex)(&chip->lock); in gpio_sim_apply_pull()
75 if (test_bit(FLAG_REQUESTED, &desc->flags) && in gpio_sim_apply_pull()
76 !test_bit(FLAG_IS_OUT, &desc->flags)) { in gpio_sim_apply_pull()
77 if (value == !!test_bit(offset, chip->value_map)) in gpio_sim_apply_pull()
81 * This is fine - it just means, nobody is listening in gpio_sim_apply_pull()
86 irq = irq_find_mapping(chip->irq_sim, offset); in gpio_sim_apply_pull()
103 if (!test_bit(FLAG_REQUESTED, &desc->flags) || in gpio_sim_apply_pull()
[all …]
/openbmc/linux/arch/arm/mach-omap2/
H A Dpowerdomain.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2007-2008, 2011 Texas Instruments, Inc.
6 * Copyright (C) 2007-2011 Nokia Corporation
65 static struct powerdomain *_pwrdm_lookup(const char *name) in _pwrdm_lookup() argument
72 if (!strcmp(name, temp_pwrdm->name)) { in _pwrdm_lookup()
82 * _pwrdm_register - register a powerdomain
86 * -EINVAL if given a null pointer, -EEXIST if a powerdomain is
87 * already registered by the provided name, or 0 upon success.
94 if (!pwrdm || !pwrdm->name) in _pwrdm_register()
95 return -EINVAL; in _pwrdm_register()
[all …]
/openbmc/u-boot/drivers/gpio/
H A Ddwapb_gpio.c1 // SPDX-License-Identifier: GPL-2.0+
14 #include <dm/device-internal.h>
38 const char *name; member
39 int bank; member
48 clrbits_le32(plat->base + GPIO_SWPORT_DDR(plat->bank), 1 << pin); in dwapb_gpio_direction_input()
57 setbits_le32(plat->base + GPIO_SWPORT_DDR(plat->bank), 1 << pin); in dwapb_gpio_direction_output()
60 setbits_le32(plat->base + GPIO_SWPORT_DR(plat->bank), 1 << pin); in dwapb_gpio_direction_output()
62 clrbits_le32(plat->base + GPIO_SWPORT_DR(plat->bank), 1 << pin); in dwapb_gpio_direction_output()
70 return !!(readl(plat->base + GPIO_EXT_PORT(plat->bank)) & (1 << pin)); in dwapb_gpio_get_value()
79 setbits_le32(plat->base + GPIO_SWPORT_DR(plat->bank), 1 << pin); in dwapb_gpio_set_value()
[all …]
H A Dsunxi_gpio.c1 // SPDX-License-Identifier: GPL-2.0+
7 * (C) Copyright 2007-2011
20 #include <dm/device-internal.h>
21 #include <dt-bindings/gpio/gpio.h>
27 const char *bank_name; /* Name of bank, e.g. "B" */
35 u32 bank = GPIO_BANK(pin); in sunxi_gpio_output() local
37 struct sunxi_gpio *pio = BANK_TO_GPIO(bank); in sunxi_gpio_output()
39 dat = readl(&pio->dat); in sunxi_gpio_output()
45 writel(dat, &pio->dat); in sunxi_gpio_output()
53 u32 bank = GPIO_BANK(pin); in sunxi_gpio_input() local
[all …]
H A Dhi6220_gpio.c1 // SPDX-License-Identifier: GPL-2.0+
15 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_input() local
18 data = readb(bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_input()
20 writeb(data, bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_input()
28 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_set_value() local
30 writeb(!!value << gpio, bank->base + (BIT(gpio + 2))); in hi6220_gpio_set_value()
37 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_output() local
40 data = readb(bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_output()
42 writeb(data, bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_output()
51 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_get_value() local
[all …]
H A Dtegra_gpio.c1 // SPDX-License-Identifier: GPL-2.0+
4 * (C) Copyright 2010-2012,2015
22 #include <dm/device-internal.h>
23 #include <dt-bindings/gpio/gpio.h>
31 struct gpio_ctlr_bank *bank; member
32 const char *port_name; /* Name of port, e.g. "B" */
33 int base_gpio; /* Port number for this port (0, 1,.., n-1) */
36 /* Information about each port at run-time */
38 struct gpio_ctlr_bank *bank; member
39 int base_gpio; /* Port number for this port (0, 1,.., n-1) */
[all …]
H A Domap_gpio.c1 // SPDX-License-Identifier: GPL-2.0
8 * git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
13 * linux/arch/arm/plat-omap/gpio.c
17 * Copyright (C) 2003-2005 Nokia Corporation
54 static void _set_gpio_direction(const struct gpio_bank *bank, int gpio, in _set_gpio_direction() argument
57 void *reg = bank->base; in _set_gpio_direction()
72 * corresponding to the specified bank.
74 static int _get_gpio_direction(const struct gpio_bank *bank, int gpio) in _get_gpio_direction() argument
76 void *reg = bank->base; in _get_gpio_direction()
89 static void _set_gpio_dataout(const struct gpio_bank *bank, int gpio, in _set_gpio_dataout() argument
[all …]
/openbmc/linux/drivers/pinctrl/sunxi/
H A Dpinctrl-sunxi.h6 * Maxime Ripard <maxime.ripard@free-electrons.com>
32 #define SUNXI_PINCTRL_PIN(bank, pin) \ argument
33 PINCTRL_PIN(P ## bank ## _BASE + (pin), "P" #bank #pin)
58 #define IRQ_CFG_IRQ_MASK ((1 << IRQ_CFG_IRQ_BITS) - 1)
62 #define IRQ_CTRL_IRQ_MASK ((1 << IRQ_CTRL_IRQ_BITS) - 1)
66 #define IRQ_STATUS_IRQ_MASK ((1 << IRQ_STATUS_IRQ_BITS) - 1)
123 const char *name; member
147 const char *name; member
153 const char *name; member
200 .name = _name, \
[all …]
/openbmc/linux/drivers/uio/
H A Duio_fsl_elbc_gpcm.c1 // SPDX-License-Identifier: GPL-2.0
9 using the general purpose chip-select mode (GPCM).
17 compatible = "fsl,elbc-gpcm-uio";
19 elbc-gpcm-br = <0xff810800>;
20 elbc-gpcm-or = <0xffff09f7>;
21 interrupt-parent = <&mpic>;
25 netx5152,init-win0-offset = <0x0>;
29 Only the entries reg (to identify bank) and elbc-gpcm-* (initial BR/OR
31 are optional (as well as any type-specific options such as
32 netx5152,init-win0-offset). As long as no interrupt handler is needed,
[all …]
/openbmc/linux/drivers/pinctrl/stm32/
H A Dpinctrl-stm32.c1 // SPDX-License-Identifier: GPL-2.0
28 #include <linux/pinctrl/pinconf-generic.h>
35 #include "../pinctrl-utils.h"
36 #include "pinctrl-stm32.h"
82 const char *name; member
149 return function - 1; in stm32_gpio_get_alt()
157 static void stm32_gpio_backup_value(struct stm32_gpio_bank *bank, in stm32_gpio_backup_value() argument
160 bank->pin_backup[offset] &= ~BIT(STM32_GPIO_BKP_VAL); in stm32_gpio_backup_value()
161 bank->pin_backup[offset] |= value << STM32_GPIO_BKP_VAL; in stm32_gpio_backup_value()
164 static void stm32_gpio_backup_mode(struct stm32_gpio_bank *bank, u32 offset, in stm32_gpio_backup_mode() argument
[all …]
/openbmc/linux/arch/arm64/boot/dts/st/
H A Dstm32mp251.dtsi1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause)
3 * Copyright (C) STMicroelectronics 2023 - All Rights Reserved
6 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #address-cells = <2>;
10 #size-cells = <2>;
13 #address-cells = <1>;
14 #size-cells = <0>;
17 compatible = "arm,cortex-a35";
20 enable-method = "psci";
24 arm-pmu {
[all …]
/openbmc/linux/drivers/pinctrl/meson/
H A Dpinctrl-meson.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * X,Y,DV,H,AO,BOOT,CARD,DIF for meson8b) and each bank has a
14 * The AO bank is special because it belongs to the Always-On power
15 * domain which can't be powered off; the bank also uses a set of
31 * For the pull and GPIO configuration every bank uses a contiguous
46 #include <linux/pinctrl/pinconf-generic.h>
56 #include "../pinctrl-utils.h"
57 #include "pinctrl-meson.h"
64 * meson_get_bank() - find the bank containing a given pin
68 * @bank: the found bank
[all …]

12345678910>>...39