| /OK3568_Linux_fs/kernel/drivers/pinctrl/renesas/ |
| H A D | sh_pfc.h | 1 /* SPDX-License-Identifier: GPL-2.0 12 #include <linux/pinctrl/pinconf-generic.h> 39 const char *name; member 45 .name = #alias, \ 54 const char *name; member 68 .name = #n#s#__VA_ARGS__, \ 99 .name = #n, \ 105 const char *name; member 112 const char *name; member 132 * - name: Register name (unused, for documentation purposes only) [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/samsung/ |
| H A D | pinctrl-exynos.c | 1 // 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 <dt-bindings/pinctrl/samsung.h> 32 #include "pinctrl-samsung.h" 33 #include "pinctrl-exynos.h" 56 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_mask() local 57 unsigned long reg_mask = our_chip->eint_mask + bank->eint_offset; in exynos_irq_mask() 61 spin_lock_irqsave(&bank->slock, flags); in exynos_irq_mask() 63 mask = readl(bank->eint_base + reg_mask); in exynos_irq_mask() [all …]
|
| H A D | pinctrl-samsung.h | 1 /* 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. 57 * enum eint_type - possible external interrupt types. 58 * @EINT_TYPE_NONE: bank does not support external interrupts 59 * @EINT_TYPE_GPIO: bank supportes external gpio interrupts 60 * @EINT_TYPE_WKUP: bank supportes external wakeup interrupts 61 * @EINT_TYPE_WKUP_MUX: bank supports multiplexed external wakeup interrupts [all …]
|
| H A D | pinctrl-samsung.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // pin-controller/pin-mux/pin-config/gpio-driver for Samsung's SoC's. 28 #include <dt-bindings/pinctrl/samsung.h> 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() [all …]
|
| H A D | pinctrl-s3c64xx.c | 1 // 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 …]
|
| /OK3568_Linux_fs/u-boot/drivers/irq/ |
| H A D | irq-gpio-switch.c | 4 * SPDX-License-Identifier: GPL-2.0+ 8 #include "irq-internal.h" 52 IRQ_E("gpio-%d(bank-%d, pin-%d) is invalid!\n", in gpio_is_valid() 62 int idx, bank = 0, pin = 0; in __hard_gpio_to_irq() local 66 return -EINVAL; in __hard_gpio_to_irq() 68 bank = (gpio & GPIO_BANK_MASK) >> GPIO_BANK_OFFSET; in __hard_gpio_to_irq() 72 if (gpio_banks[idx].id == bank) { in __hard_gpio_to_irq() 75 return -EBUSY; in __hard_gpio_to_irq() 80 return -EINVAL; in __hard_gpio_to_irq() 85 const void *blob = gd->fdt_blob; in __phandle_gpio_to_irq() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/qat/qat_common/ |
| H A D | adf_transport_debug.c | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/ |
| H A D | pinctrl-rk628.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Author: Weixin Zhou <zwx@rock-chips.com> 9 * Based on the pinctrl-rk805/pinctrl-rockchip driver 21 #include <linux/pinctrl/pinconf-generic.h> 33 #include "pinctrl-utils.h" 78 .name = "rk628-"#fname, \ 87 const char *name; member 94 const char *name; member 101 char *name; member 141 #define PINCTRL_GROUP(a, b, c, d) { .name = a, .pins = b, .npins = c, .iomux_base = d} [all …]
|
| H A D | pinctrl-equilibrium.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/pinctrl/pinconf-generic.h> 18 #include "pinctrl-equilibrium.h" 20 #define PIN_NAME_FMT "io-%d" 31 raw_spin_lock_irqsave(&gctrl->lock, flags); in eqbr_gpio_disable_irq() 32 writel(BIT(offset), gctrl->membase + GPIO_IRNENCLR); in eqbr_gpio_disable_irq() 33 raw_spin_unlock_irqrestore(&gctrl->lock, flags); in eqbr_gpio_disable_irq() 43 gc->direction_input(gc, offset); in eqbr_gpio_enable_irq() 44 raw_spin_lock_irqsave(&gctrl->lock, flags); in eqbr_gpio_enable_irq() 45 writel(BIT(offset), gctrl->membase + GPIO_IRNRNSET); in eqbr_gpio_enable_irq() [all …]
|
| H A D | pinctrl-st.c | 1 // SPDX-License-Identifier: GPL-2.0-only 60 * There are two registers cfg0 and cfg1 in this style for each bank. 61 * Each field in this register is 8 bit corresponding to 8 pins in the bank. 96 * (direction, retime-type, retime-clk, retime-delay) 98 * +----------------+ 99 *[31:28]| reserved-3 | 100 * +----------------+------------- 102 * +----------------+ v 104 * +----------------+ ^ 106 * +----------------+------------- [all …]
|
| H A D | pinctrl-oxnas.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Based on pinctrl-pic32.c 18 #include <linux/pinctrl/pinconf-generic.h> 26 #include "pinctrl-utils.h" 30 #define GPIO_BANK_START(bank) ((bank) * PINS_PER_BANK) argument 63 const char *name; member 69 const char *name; member 71 unsigned int bank; member 76 const char *name; member 254 .name = #_name, \ [all …]
|
| H A D | pinctrl-rockchip.h | 1 /* 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> 245 * @offset: if initialized to -1 it will be autocalculated, by specifying 279 * @offset: if initialized to -1 it will be autocalculated, by specifying 292 * @dev: the pinctrl device bind to the bank 293 * @reg_base: register base of the gpio bank 295 * @clk: clock of the gpio bank [all …]
|
| H A D | pinctrl-at91-pio4.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <dt-bindings/pinctrl/at91.h> 18 #include <linux/pinctrl/pinconf-generic.h> 24 #include "pinctrl-utils.h" 30 * designed the pin id into this bank. 79 const char *name; member 87 unsigned bank; member 93 * struct atmel_pioctrl - Atmel PIO controller (pinmux + gpio) 98 * @groups: groups table to provide group name and pin in the group to pinctrl. 101 * @pins: pins table used for both pinctrl and gpio. pin_id, bank and line [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-omap2/ |
| H A D | powerdomain.c | 1 // 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 …]
|
| /OK3568_Linux_fs/u-boot/drivers/gpio/ |
| H A D | sunxi_gpio.c | 6 * (C) Copyright 2007-2011 10 * SPDX-License-Identifier: GPL-2.0+ 21 #include <dm/device-internal.h> 22 #include <dt-bindings/gpio/gpio.h> 30 const char *bank_name; /* Name of bank, e.g. "B" */ 38 u32 bank = GPIO_BANK(pin); in sunxi_gpio_output() local 40 struct sunxi_gpio *pio = BANK_TO_GPIO(bank); in sunxi_gpio_output() 42 dat = readl(&pio->dat); in sunxi_gpio_output() 48 writel(dat, &pio->dat); in sunxi_gpio_output() 56 u32 bank = GPIO_BANK(pin); in sunxi_gpio_input() local [all …]
|
| H A D | tegra_gpio.c | 3 * (C) Copyright 2010-2012,2015 6 * SPDX-License-Identifier: GPL-2.0+ 23 #include <dm/device-internal.h> 24 #include <dt-bindings/gpio/gpio.h> 34 struct gpio_ctlr_bank *bank; member 35 const char *port_name; /* Name of port, e.g. "B" */ 36 int base_gpio; /* Port number for this port (0, 1,.., n-1) */ 39 /* Information about each port at run-time */ 41 struct gpio_ctlr_bank *bank; member 42 int base_gpio; /* Port number for this port (0, 1,.., n-1) */ [all …]
|
| H A D | hi6220_gpio.c | 5 * SPDX-License-Identifier: GPL-2.0+ 16 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_input() local 19 data = readb(bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_input() 21 writeb(data, bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_input() 29 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_set_value() local 31 writeb(!!value << gpio, bank->base + (BIT(gpio + 2))); in hi6220_gpio_set_value() 38 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_direction_output() local 41 data = readb(bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_output() 43 writeb(data, bank->base + HI6220_GPIO_DIR); in hi6220_gpio_direction_output() 52 struct gpio_bank *bank = dev_get_priv(dev); in hi6220_gpio_get_value() local [all …]
|
| H A D | dwapb_gpio.c | 6 * SPDX-License-Identifier: GPL-2.0+ 15 #include <dm/device-internal.h> 34 const char *name; member 35 int bank; member 44 clrbits_le32(plat->base + GPIO_SWPORT_DDR(plat->bank), 1 << pin); in dwapb_gpio_direction_input() 53 setbits_le32(plat->base + GPIO_SWPORT_DDR(plat->bank), 1 << pin); in dwapb_gpio_direction_output() 56 setbits_le32(plat->base + GPIO_SWPORT_DR(plat->bank), 1 << pin); in dwapb_gpio_direction_output() 58 clrbits_le32(plat->base + GPIO_SWPORT_DR(plat->bank), 1 << pin); in dwapb_gpio_direction_output() 66 return !!(readl(plat->base + GPIO_EXT_PORT(plat->bank)) & (1 << pin)); in dwapb_gpio_get_value() 75 setbits_le32(plat->base + GPIO_SWPORT_DR(plat->bank), 1 << pin); in dwapb_gpio_set_value() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/uio/ |
| H A D | uio_fsl_elbc_gpcm.c | 1 // 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/sunxi/ |
| H A D | pinctrl-sunxi.h | 6 * 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) 62 #define IRQ_CFG_IRQ_MASK ((1 << IRQ_CFG_IRQ_BITS) - 1) 66 #define IRQ_CTRL_IRQ_MASK ((1 << IRQ_CTRL_IRQ_BITS) - 1) 70 #define IRQ_STATUS_IRQ_MASK ((1 << IRQ_STATUS_IRQ_BITS) - 1) 118 const char *name; member 142 const char *name; member 148 const char *name; member 192 .name = _name, \ [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/cpu/mce/ |
| H A D | amd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * (c) 2005-2016 Advanced Micro Devices, Inc. 5 * Written by Jacob Shin - AMD, Inc. 75 const char *name; /* Short name for sysfs */ member 76 const char *long_name; /* Long name for pretty-printing */ 108 return smca_names[t].name; in smca_get_name() 120 static enum smca_bank_types smca_get_bank_type(unsigned int bank) in smca_get_bank_type() argument 124 if (bank >= MAX_NR_BANKS) in smca_get_bank_type() 127 b = &smca_banks[bank]; in smca_get_bank_type() 128 if (!b->hwid) in smca_get_bank_type() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/stm32/ |
| H A D | pinctrl-stm32.c | 1 // SPDX-License-Identifier: GPL-2.0 23 #include <linux/pinctrl/pinconf-generic.h> 33 #include "../pinctrl-utils.h" 34 #include "pinctrl-stm32.h" 79 const char *name; member 145 return function - 1; in stm32_gpio_get_alt() 153 static void stm32_gpio_backup_value(struct stm32_gpio_bank *bank, in stm32_gpio_backup_value() argument 156 bank->pin_backup[offset] &= ~BIT(STM32_GPIO_BKP_VAL); in stm32_gpio_backup_value() 157 bank->pin_backup[offset] |= value << STM32_GPIO_BKP_VAL; in stm32_gpio_backup_value() 160 static void stm32_gpio_backup_mode(struct stm32_gpio_bank *bank, u32 offset, in stm32_gpio_backup_mode() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-brcmstb.c | 2 * Copyright (C) 2015-2017 Broadcom 36 #define GIO_BANK_OFF(bank, off) (((bank) * GIO_BANK_SIZE) + (off * sizeof(u32))) argument 37 #define GIO_ODEN(bank) GIO_BANK_OFF(bank, GIO_REG_ODEN) argument 38 #define GIO_DATA(bank) GIO_BANK_OFF(bank, GIO_REG_DATA) argument 39 #define GIO_IODIR(bank) GIO_BANK_OFF(bank, GIO_REG_IODIR) argument 40 #define GIO_EC(bank) GIO_BANK_OFF(bank, GIO_REG_EC) argument 41 #define GIO_EI(bank) GIO_BANK_OFF(bank, GIO_REG_EI) argument 42 #define GIO_MASK(bank) GIO_BANK_OFF(bank, GIO_REG_MASK) argument 43 #define GIO_LEVEL(bank) GIO_BANK_OFF(bank, GIO_REG_LEVEL) argument 44 #define GIO_STAT(bank) GIO_BANK_OFF(bank, GIO_REG_STAT) argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/meson/ |
| H A D | pinctrl-meson.c | 1 // 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 47 #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 …]
|
| /OK3568_Linux_fs/kernel/drivers/leds/ |
| H A D | leds-tca6507.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * leds-tca6507 9 * blink or double-blink. 12 * out-only (pull-up resistor required) or as an LED with variable 13 * brightness and hardware-assisted blinking. 21 * with separate time for rise, on, fall, off and second-off. Thus if 22 * 3 or more different non-trivial rates are required, software must 25 * support double-blink so 'second-off' always matches 'off'. 42 * delays in the ranges: 56-72, 112-144, 168-216, 224-27504, 43 * 28560-36720. [all …]
|