Home
last modified time | relevance | path

Searched +full:off +full:- +full:chip (Results 1 – 25 of 1115) sorted by relevance

12345678910>>...45

/kernel/linux/linux-4.19/arch/arm/plat-samsung/include/plat/
Dgpio-cfg-helpers.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 * Samsung Platform - GPIO pin configuration helper definitions
23 static inline int samsung_gpio_do_setcfg(struct samsung_gpio_chip *chip, in samsung_gpio_do_setcfg() argument
24 unsigned int off, unsigned int config) in samsung_gpio_do_setcfg() argument
26 return (chip->config->set_config)(chip, off, config); in samsung_gpio_do_setcfg()
29 static inline unsigned samsung_gpio_do_getcfg(struct samsung_gpio_chip *chip, in samsung_gpio_do_getcfg() argument
30 unsigned int off) in samsung_gpio_do_getcfg() argument
32 return (chip->config->get_config)(chip, off); in samsung_gpio_do_getcfg()
35 static inline int samsung_gpio_do_setpull(struct samsung_gpio_chip *chip, in samsung_gpio_do_setpull() argument
36 unsigned int off, samsung_gpio_pull_t pull) in samsung_gpio_do_setpull() argument
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
Dgpio-cfg-helpers.h1 /* SPDX-License-Identifier: GPL-2.0 */
8 * Samsung Platform - GPIO pin configuration helper definitions
23 static inline int samsung_gpio_do_setcfg(struct samsung_gpio_chip *chip, in samsung_gpio_do_setcfg() argument
24 unsigned int off, unsigned int config) in samsung_gpio_do_setcfg() argument
26 return (chip->config->set_config)(chip, off, config); in samsung_gpio_do_setcfg()
29 static inline unsigned samsung_gpio_do_getcfg(struct samsung_gpio_chip *chip, in samsung_gpio_do_getcfg() argument
30 unsigned int off) in samsung_gpio_do_getcfg() argument
32 return (chip->config->get_config)(chip, off); in samsung_gpio_do_getcfg()
35 static inline int samsung_gpio_do_setpull(struct samsung_gpio_chip *chip, in samsung_gpio_do_setpull() argument
36 unsigned int off, samsung_gpio_pull_t pull) in samsung_gpio_do_setpull() argument
[all …]
Dgpio-samsung.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (c) 2009-2011 Samsung Electronics Co., Ltd.
11 // Samsung - GPIOlib support
31 #include "regs-gpio.h"
32 #include "gpio-samsung.h"
35 #include "gpio-core.h"
36 #include "gpio-cfg.h"
37 #include "gpio-cfg-helpers.h"
40 int samsung_gpio_setpull_updown(struct samsung_gpio_chip *chip, in samsung_gpio_setpull_updown() argument
41 unsigned int off, samsung_gpio_pull_t pull) in samsung_gpio_setpull_updown() argument
[all …]
/kernel/linux/linux-5.10/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 struct snd_pdacf *chip = dev; in pdacf_interrupt() local
22 if ((chip->chip_status & (PDAUDIOCF_STAT_IS_STALE| in pdacf_interrupt()
27 stat = inw(chip->port + PDAUDIOCF_REG_ISR); in pdacf_interrupt()
31 if (chip->pcm_substream) in pdacf_interrupt()
37 snd_ak4117_check_rate_and_errors(chip->ak4117, 0); in pdacf_interrupt()
43 while (size-- > 0) { in pdacf_transfer_mono16()
53 while (size-- > 0) { in pdacf_transfer_mono32()
63 while (size-- > 0) { in pdacf_transfer_stereo16()
73 while (size-- > 0) { in pdacf_transfer_stereo32()
[all …]
/kernel/linux/linux-4.19/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 struct snd_pdacf *chip = dev; in pdacf_interrupt() local
35 if ((chip->chip_status & (PDAUDIOCF_STAT_IS_STALE| in pdacf_interrupt()
40 stat = inw(chip->port + PDAUDIOCF_REG_ISR); in pdacf_interrupt()
44 if (chip->pcm_substream) in pdacf_interrupt()
50 snd_ak4117_check_rate_and_errors(chip->ak4117, 0); in pdacf_interrupt()
56 while (size-- > 0) { in pdacf_transfer_mono16()
66 while (size-- > 0) { in pdacf_transfer_mono32()
76 while (size-- > 0) { in pdacf_transfer_stereo16()
86 while (size-- > 0) { in pdacf_transfer_stereo32()
[all …]
/kernel/linux/linux-4.19/arch/arm/plat-samsung/
Dgpio-samsung.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (c) 2009-2011 Samsung Electronics Co., Ltd.
11 // SAMSUNG - GPIOlib support
31 #include <mach/regs-gpio.h>
32 #include <mach/gpio-samsung.h>
35 #include <plat/gpio-core.h>
36 #include <plat/gpio-cfg.h>
37 #include <plat/gpio-cfg-helpers.h>
40 int samsung_gpio_setpull_updown(struct samsung_gpio_chip *chip, in samsung_gpio_setpull_updown() argument
41 unsigned int off, samsung_gpio_pull_t pull) in samsung_gpio_setpull_updown() argument
[all …]
/kernel/linux/linux-4.19/drivers/gpio/
Dgpio-pca953x.c116 #define NBANK(chip) DIV_ROUND_UP(chip->gpio_chip.ngpio, BANK_SZ) argument
162 static int pca953x_read_single(struct pca953x_chip *chip, int reg, u32 *val, in pca953x_read_single() argument
163 int off) in pca953x_read_single() argument
166 int bank_shift = fls((chip->gpio_chip.ngpio - 1) / BANK_SZ); in pca953x_read_single()
167 int offset = off / BANK_SZ; in pca953x_read_single()
169 ret = i2c_smbus_read_byte_data(chip->client, in pca953x_read_single()
174 dev_err(&chip->client->dev, "failed reading register\n"); in pca953x_read_single()
181 static int pca953x_write_single(struct pca953x_chip *chip, int reg, u32 val, in pca953x_write_single() argument
182 int off) in pca953x_write_single() argument
185 int bank_shift = fls((chip->gpio_chip.ngpio - 1) / BANK_SZ); in pca953x_write_single()
[all …]
Dgpio-max732x.c31 * - Push Pull Output
32 * - Input
33 * - Open Drain I/O
42 * - Group A : by I2C address 0b'110xxxx
43 * - Group B : by I2C address 0b'101xxxx
57 * NOTE: MAX7328/MAX7329 are drop-in replacements for PCF8574/a, so
62 #define PORT_OUTPUT 0x1 /* 'O' Push-Pull, Output Only */
64 #define PORT_OPENDRAIN 0x3 /* 'P' Open-Drain, I/O */
161 static int max732x_writeb(struct max732x_chip *chip, int group_a, uint8_t val) in max732x_writeb() argument
166 client = group_a ? chip->client_group_a : chip->client_group_b; in max732x_writeb()
[all …]
Dgpio-adp5520.c6 * Licensed under the GPL-2 or later.
24 static int adp5520_gpio_get_value(struct gpio_chip *chip, unsigned off) in adp5520_gpio_get_value() argument
29 dev = gpiochip_get_data(chip); in adp5520_gpio_get_value()
36 if (test_bit(off, &dev->output)) in adp5520_gpio_get_value()
37 adp5520_read(dev->master, ADP5520_GPIO_OUT, &reg_val); in adp5520_gpio_get_value()
39 adp5520_read(dev->master, ADP5520_GPIO_IN, &reg_val); in adp5520_gpio_get_value()
41 return !!(reg_val & dev->lut[off]); in adp5520_gpio_get_value()
44 static void adp5520_gpio_set_value(struct gpio_chip *chip, in adp5520_gpio_set_value() argument
45 unsigned off, int val) in adp5520_gpio_set_value() argument
48 dev = gpiochip_get_data(chip); in adp5520_gpio_set_value()
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-max732x.c1 // SPDX-License-Identifier: GPL-2.0-only
28 * - Push Pull Output
29 * - Input
30 * - Open Drain I/O
39 * - Group A : by I2C address 0b'110xxxx
40 * - Group B : by I2C address 0b'101xxxx
54 * NOTE: MAX7328/MAX7329 are drop-in replacements for PCF8574/a, so
59 #define PORT_OUTPUT 0x1 /* 'O' Push-Pull, Output Only */
61 #define PORT_OPENDRAIN 0x3 /* 'P' Open-Drain, I/O */
158 static int max732x_writeb(struct max732x_chip *chip, int group_a, uint8_t val) in max732x_writeb() argument
[all …]
Dgpio-adp5520.c1 // SPDX-License-Identifier: GPL-2.0-or-later
23 static int adp5520_gpio_get_value(struct gpio_chip *chip, unsigned off) in adp5520_gpio_get_value() argument
28 dev = gpiochip_get_data(chip); in adp5520_gpio_get_value()
35 if (test_bit(off, &dev->output)) in adp5520_gpio_get_value()
36 adp5520_read(dev->master, ADP5520_GPIO_OUT, &reg_val); in adp5520_gpio_get_value()
38 adp5520_read(dev->master, ADP5520_GPIO_IN, &reg_val); in adp5520_gpio_get_value()
40 return !!(reg_val & dev->lut[off]); in adp5520_gpio_get_value()
43 static void adp5520_gpio_set_value(struct gpio_chip *chip, in adp5520_gpio_set_value() argument
44 unsigned off, int val) in adp5520_gpio_set_value() argument
47 dev = gpiochip_get_data(chip); in adp5520_gpio_set_value()
[all …]
/kernel/linux/linux-5.10/arch/mips/alchemy/common/
Dgpiolib.c2 * Copyright (C) 2007-2009, OpenWrt.org, Florian Fainelli <florian@openwrt.org>
37 #include <asm/mach-au1x00/gpio-au1000.h>
38 #include <asm/mach-au1x00/gpio-au1300.h>
40 static int gpio2_get(struct gpio_chip *chip, unsigned offset) in gpio2_get() argument
45 static void gpio2_set(struct gpio_chip *chip, unsigned offset, int value) in gpio2_set() argument
50 static int gpio2_direction_input(struct gpio_chip *chip, unsigned offset) in gpio2_direction_input() argument
55 static int gpio2_direction_output(struct gpio_chip *chip, unsigned offset, in gpio2_direction_output() argument
62 static int gpio2_to_irq(struct gpio_chip *chip, unsigned offset) in gpio2_to_irq() argument
68 static int gpio1_get(struct gpio_chip *chip, unsigned offset) in gpio1_get() argument
73 static void gpio1_set(struct gpio_chip *chip, in gpio1_set() argument
[all …]
/kernel/linux/linux-4.19/arch/mips/alchemy/common/
Dgpiolib.c2 * Copyright (C) 2007-2009, OpenWrt.org, Florian Fainelli <florian@openwrt.org>
37 #include <asm/mach-au1x00/gpio-au1000.h>
38 #include <asm/mach-au1x00/gpio-au1300.h>
40 static int gpio2_get(struct gpio_chip *chip, unsigned offset) in gpio2_get() argument
45 static void gpio2_set(struct gpio_chip *chip, unsigned offset, int value) in gpio2_set() argument
50 static int gpio2_direction_input(struct gpio_chip *chip, unsigned offset) in gpio2_direction_input() argument
55 static int gpio2_direction_output(struct gpio_chip *chip, unsigned offset, in gpio2_direction_output() argument
62 static int gpio2_to_irq(struct gpio_chip *chip, unsigned offset) in gpio2_to_irq() argument
68 static int gpio1_get(struct gpio_chip *chip, unsigned offset) in gpio1_get() argument
73 static void gpio1_set(struct gpio_chip *chip, in gpio1_set() argument
[all …]
/kernel/linux/linux-4.19/tools/perf/pmu-events/arch/s390/cf_zec12/
Dextended.json3 "Unit": "CPU-M-CF",
7 …"PublicDescription": "Level-1 Data TLB miss in progress. Incremented by one for every cycle a DTLB…
10 "Unit": "CPU-M-CF",
14 …"PublicDescription": "Level-1 Instruction TLB miss in progress. Incremented by one for every cycle…
17 "Unit": "CPU-M-CF",
21 …on": "A directory write to the Level-1 Data cache directory where the returned cache line was sour…
24 "Unit": "CPU-M-CF",
28 … "A directory write to the Level-1 Instruction cache directory where the returned cache line was s…
31 "Unit": "CPU-M-CF",
35 …on": "A directory write to the Level-1 Data cache directory where the returned cache line was sour…
[all …]
/kernel/linux/linux-5.10/tools/perf/pmu-events/arch/s390/cf_zec12/
Dextended.json3 "Unit": "CPU-M-CF",
7 …"PublicDescription": "Level-1 Data TLB miss in progress. Incremented by one for every cycle a DTLB…
10 "Unit": "CPU-M-CF",
14 …"PublicDescription": "Level-1 Instruction TLB miss in progress. Incremented by one for every cycle…
17 "Unit": "CPU-M-CF",
21 …on": "A directory write to the Level-1 Data cache directory where the returned cache line was sour…
24 "Unit": "CPU-M-CF",
28 … "A directory write to the Level-1 Instruction cache directory where the returned cache line was s…
31 "Unit": "CPU-M-CF",
35 …on": "A directory write to the Level-1 Data cache directory where the returned cache line was sour…
[all …]
/kernel/linux/linux-5.10/drivers/leds/
Dleds-an30259a.c1 // SPDX-License-Identifier: GPL-2.0+
3 // Driver for Panasonic AN30259A 3-channel LED driver
24 #define AN30259A_LED_EN(x) BIT((x) - 1)
25 #define AN30259A_LED_SLOPE(x) BIT(((x) - 1) + 4)
27 #define AN30259A_REG_LEDCC(x) (0x03 + ((x) - 1))
30 #define AN30259A_REG_SLOPE(x) (0x06 + ((x) - 1))
34 #define AN30259A_REG_LEDCNT1(x) (0x09 + (4 * ((x) - 1)))
38 #define AN30259A_REG_LEDCNT2(x) (0x0A + (4 * ((x) - 1)))
43 #define AN30259A_REG_LEDCNT3(x) (0x0B + (4 * ((x) - 1)))
47 #define AN30259A_REG_LEDCNT4(x) (0x0C + (4 * ((x) - 1)))
[all …]
/kernel/linux/linux-5.10/sound/ppc/
Dburgundy.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 snd_pmac_burgundy_busy_wait(struct snd_pmac *chip) in snd_pmac_burgundy_busy_wait() argument
22 while ((in_le32(&chip->awacs->codec_ctrl) & MASK_NEWECMD) && timeout--) in snd_pmac_burgundy_busy_wait()
29 snd_pmac_burgundy_extend_wait(struct snd_pmac *chip) in snd_pmac_burgundy_extend_wait() argument
33 while (!(in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) in snd_pmac_burgundy_extend_wait()
38 while ((in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) in snd_pmac_burgundy_extend_wait()
45 snd_pmac_burgundy_wcw(struct snd_pmac *chip, unsigned addr, unsigned val) in snd_pmac_burgundy_wcw() argument
47 out_le32(&chip->awacs->codec_ctrl, addr + 0x200c00 + (val & 0xff)); in snd_pmac_burgundy_wcw()
48 snd_pmac_burgundy_busy_wait(chip); in snd_pmac_burgundy_wcw()
49 out_le32(&chip->awacs->codec_ctrl, addr + 0x200d00 +((val>>8) & 0xff)); in snd_pmac_burgundy_wcw()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Dopal-xscom.c1 // SPDX-License-Identifier: GPL-2.0-or-later
30 * its form. Bits 4-11 are always 0. in opal_scom_unmangle()
34 * of the 64-bit address, and thus cannot use the indirect bit. in opal_scom_unmangle()
37 * bits 4-7 (IBM notation) instead of bit 0-3 in this API, we in opal_scom_unmangle()
40 * For in-kernel use, we don't need to do this mangling. In in opal_scom_unmangle()
41 * kernel won't have bits 4-7 set. in opal_scom_unmangle()
44 * debugfs will always set 0-3 = 0 and clear 4-7 in opal_scom_unmangle()
45 * kernel will always clear 0-3 = 0 and set 4-7 in opal_scom_unmangle()
55 static int opal_scom_read(uint32_t chip, uint64_t addr, u64 reg, u64 *value) in opal_scom_read() argument
61 rc = opal_xscom_read(chip, reg, (__be64 *)__pa(&v)); in opal_scom_read()
[all …]
/kernel/linux/linux-4.19/drivers/pinctrl/spear/
Dpinctrl-plgpio.c56 * chip: gpio framework specific chip information structure
58 * machines where mapping b/w pin and offset is not 1-to-1.
60 * machines where mapping b/w pin and offset is not 1-to-1.
69 struct gpio_chip chip; member
108 static int plgpio_direction_input(struct gpio_chip *chip, unsigned offset) in plgpio_direction_input() argument
110 struct plgpio *plgpio = gpiochip_get_data(chip); in plgpio_direction_input()
114 if (plgpio->p2o && (plgpio->p2o_regs & PTO_DIR_REG)) { in plgpio_direction_input()
115 offset = plgpio->p2o(offset); in plgpio_direction_input()
116 if (offset == -1) in plgpio_direction_input()
117 return -EINVAL; in plgpio_direction_input()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/spear/
Dpinctrl-plgpio.c56 * chip: gpio framework specific chip information structure
58 * machines where mapping b/w pin and offset is not 1-to-1.
60 * machines where mapping b/w pin and offset is not 1-to-1.
69 struct gpio_chip chip; member
108 static int plgpio_direction_input(struct gpio_chip *chip, unsigned offset) in plgpio_direction_input() argument
110 struct plgpio *plgpio = gpiochip_get_data(chip); in plgpio_direction_input()
114 if (plgpio->p2o && (plgpio->p2o_regs & PTO_DIR_REG)) { in plgpio_direction_input()
115 offset = plgpio->p2o(offset); in plgpio_direction_input()
116 if (offset == -1) in plgpio_direction_input()
117 return -EINVAL; in plgpio_direction_input()
[all …]
/kernel/linux/linux-5.10/tools/perf/pmu-events/arch/s390/cf_z14/
Dextended.json3 "Unit": "CPU-M-CF",
6 "BriefDescription": "L1D Read-only Exclusive Writes",
7 …blicDescription": "A directory write to the Level-1 Data cache where the line was originally in a …
10 "Unit": "CPU-M-CF",
17 "Unit": "CPU-M-CF",
21 …data cache. Incremented by one for every TLB2 miss in progress for the Level-1 Data cache on this …
24 "Unit": "CPU-M-CF",
27 "BriefDescription": "DTLB2 One-Megabyte Page Writes",
28 … into the Combined Region and Segment Table Entry array in the Level-2 TLB for a one-megabyte page…
31 "Unit": "CPU-M-CF",
[all …]
/kernel/linux/linux-4.19/tools/perf/pmu-events/arch/s390/cf_z14/
Dextended.json3 "Unit": "CPU-M-CF",
6 "BriefDescription": "L1D Read-only Exclusive Writes",
7 …L1D_RO_EXCL_WRITES A directory write to the Level-1 Data cache where the line was originally in a …
10 "Unit": "CPU-M-CF",
17 "Unit": "CPU-M-CF",
21 …data cache. Incremented by one for every TLB2 miss in progress for the Level-1 Data cache on this …
24 "Unit": "CPU-M-CF",
27 "BriefDescription": "DTLB2 One-Megabyte Page Writes",
28 … into the Combined Region and Segment Table Entry array in the Level-2 TLB for a one-megabyte page…
31 "Unit": "CPU-M-CF",
[all …]
/kernel/linux/linux-4.19/sound/ppc/
Dburgundy.c19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 snd_pmac_burgundy_busy_wait(struct snd_pmac *chip) in snd_pmac_burgundy_busy_wait() argument
35 while ((in_le32(&chip->awacs->codec_ctrl) & MASK_NEWECMD) && timeout--) in snd_pmac_burgundy_busy_wait()
42 snd_pmac_burgundy_extend_wait(struct snd_pmac *chip) in snd_pmac_burgundy_extend_wait() argument
46 while (!(in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) in snd_pmac_burgundy_extend_wait()
51 while ((in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) in snd_pmac_burgundy_extend_wait()
58 snd_pmac_burgundy_wcw(struct snd_pmac *chip, unsigned addr, unsigned val) in snd_pmac_burgundy_wcw() argument
60 out_le32(&chip->awacs->codec_ctrl, addr + 0x200c00 + (val & 0xff)); in snd_pmac_burgundy_wcw()
61 snd_pmac_burgundy_busy_wait(chip); in snd_pmac_burgundy_wcw()
62 out_le32(&chip->awacs->codec_ctrl, addr + 0x200d00 +((val>>8) & 0xff)); in snd_pmac_burgundy_wcw()
[all …]
/kernel/linux/linux-5.10/tools/perf/pmu-events/arch/s390/cf_z15/
Dextended.json3 "Unit": "CPU-M-CF",
6 "BriefDescription": "L1D Read-only Exclusive Writes",
7 …blicDescription": "A directory write to the Level-1 Data cache where the line was originally in a …
10 "Unit": "CPU-M-CF",
17 "Unit": "CPU-M-CF",
21 …data cache. Incremented by one for every TLB2 miss in progress for the Level-1 Data cache on this …
24 "Unit": "CPU-M-CF",
27 "BriefDescription": "DTLB2 One-Megabyte Page Writes",
28 … into the Combined Region and Segment Table Entry array in the Level-2 TLB for a one-megabyte page"
31 "Unit": "CPU-M-CF",
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/net/
Dgpmc-eth.txt1 Device tree bindings for Ethernet chip connected to TI GPMC
4 General-Purpose Memory Controller can be used to connect Pseudo-SRAM devices
12 Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt
18 Child nodes need to specify the GPMC bus address width using the "bank-width"
20 specify the I/O registers address width. Even when the GPMC has a maximum 16-bit
21 address width, it supports devices with 32-bit word registers.
23 OMAP2+ board, "bank-width = <2>;" and "reg-io-width = <4>;".
26 - bank-width: Address width of the device in bytes. GPMC supports 8-bit
27 and 16-bit devices and so must be either 1 or 2 bytes.
28 - compatible: Compatible string property for the ethernet child device.
[all …]

12345678910>>...45