Home
last modified time | relevance | path

Searched refs:chip (Results 1 – 25 of 263) sorted by relevance

1234567891011

/arch/arm/plat-samsung/
Dpm-gpio.c33 static void samsung_gpio_pm_1bit_save(struct samsung_gpio_chip *chip) in samsung_gpio_pm_1bit_save() argument
35 chip->pm_save[0] = __raw_readl(chip->base + OFFS_CON); in samsung_gpio_pm_1bit_save()
36 chip->pm_save[1] = __raw_readl(chip->base + OFFS_DAT); in samsung_gpio_pm_1bit_save()
39 static void samsung_gpio_pm_1bit_resume(struct samsung_gpio_chip *chip) in samsung_gpio_pm_1bit_resume() argument
41 void __iomem *base = chip->base; in samsung_gpio_pm_1bit_resume()
44 u32 gps_gpcon = chip->pm_save[0]; in samsung_gpio_pm_1bit_resume()
45 u32 gps_gpdat = chip->pm_save[1]; in samsung_gpio_pm_1bit_resume()
62 chip->chip.label, old_gpcon, gps_gpcon, old_gpdat, gps_gpdat); in samsung_gpio_pm_1bit_resume()
70 static void samsung_gpio_pm_2bit_save(struct samsung_gpio_chip *chip) in samsung_gpio_pm_2bit_save() argument
72 chip->pm_save[0] = __raw_readl(chip->base + OFFS_CON); in samsung_gpio_pm_2bit_save()
[all …]
/arch/arm/plat-samsung/include/plat/
Dgpio-cfg-helpers.h27 static inline int samsung_gpio_do_setcfg(struct samsung_gpio_chip *chip, in samsung_gpio_do_setcfg() argument
30 return (chip->config->set_config)(chip, off, config); in samsung_gpio_do_setcfg()
33 static inline unsigned samsung_gpio_do_getcfg(struct samsung_gpio_chip *chip, in samsung_gpio_do_getcfg() argument
36 return (chip->config->get_config)(chip, off); in samsung_gpio_do_getcfg()
39 static inline int samsung_gpio_do_setpull(struct samsung_gpio_chip *chip, in samsung_gpio_do_setpull() argument
42 return (chip->config->set_pull)(chip, off, pull); in samsung_gpio_do_setpull()
45 static inline samsung_gpio_pull_t samsung_gpio_do_getpull(struct samsung_gpio_chip *chip, in samsung_gpio_do_getpull() argument
48 return chip->config->get_pull(chip, off); in samsung_gpio_do_getpull()
68 extern int s3c24xx_gpio_setpull_1up(struct samsung_gpio_chip *chip,
80 extern int s3c24xx_gpio_setpull_1down(struct samsung_gpio_chip *chip,
[all …]
Dgpio-core.h42 void (*save)(struct samsung_gpio_chip *chip);
43 void (*resume)(struct samsung_gpio_chip *chip);
71 struct gpio_chip chip; member
86 return container_of(gpc, struct samsung_gpio_chip, chip); in to_samsung_gpio()
97 extern int samsung_gpiolib_to_irq(struct gpio_chip *chip, unsigned int offset);
105 static inline struct samsung_gpio_chip *samsung_gpiolib_getchip(unsigned int chip) in samsung_gpiolib_getchip() argument
107 return (chip < S3C_GPIO_END) ? s3c_gpios[chip] : NULL; in samsung_gpiolib_getchip()
116 struct samsung_gpio_chip *chip; in samsung_gpiolib_getchip() local
121 chip = &s3c24xx_gpios[pin/32]; in samsung_gpiolib_getchip()
122 return ((pin - chip->chip.base) < chip->chip.ngpio) ? chip : NULL; in samsung_gpiolib_getchip()
[all …]
/arch/mips/jz4740/
Dgpio.c75 #define CHIP_TO_REG(chip, reg) (gpio_chip_to_jz_gpio_chip(chip)->base + (reg)) argument
207 static int jz_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in jz_gpio_get_value() argument
209 return !!(readl(CHIP_TO_REG(chip, JZ_REG_GPIO_PIN)) & BIT(gpio)); in jz_gpio_get_value()
212 static void jz_gpio_set_value(struct gpio_chip *chip, unsigned gpio, int value) in jz_gpio_set_value() argument
214 uint32_t __iomem *reg = CHIP_TO_REG(chip, JZ_REG_GPIO_DATA_SET); in jz_gpio_set_value()
219 static int jz_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, in jz_gpio_direction_output() argument
222 writel(BIT(gpio), CHIP_TO_REG(chip, JZ_REG_GPIO_DIRECTION_SET)); in jz_gpio_direction_output()
223 jz_gpio_set_value(chip, gpio, value); in jz_gpio_direction_output()
228 static int jz_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in jz_gpio_direction_input() argument
230 writel(BIT(gpio), CHIP_TO_REG(chip, JZ_REG_GPIO_DIRECTION_CLEAR)); in jz_gpio_direction_input()
[all …]
/arch/mips/include/asm/sibyte/
Dsb1250_defs.h111 #define SIBYTE_HDR_FMASK(chip, pass) \ argument
112 (SIBYTE_HDR_FMASK_ ## chip ## _ ## pass)
113 #define SIBYTE_HDR_FMASK_ALLREVS(chip) \ argument
114 (SIBYTE_HDR_FMASK_ ## chip ## _ALL)
134 #define SIBYTE_HDR_FMASK_BEFORE(chip, pass) \ argument
135 ((SIBYTE_HDR_FMASK(chip, pass) - 1) & SIBYTE_HDR_FMASK_ALLREVS(chip))
138 #define SIBYTE_HDR_FMASK_AFTER(chip, pass) \ argument
139 (~(SIBYTE_HDR_FMASK(chip, pass) \
140 | (SIBYTE_HDR_FMASK(chip, pass) - 1)) & SIBYTE_HDR_FMASK_ALLREVS(chip))
144 #define SIBYTE_HDR_FEATURE_CHIP(chip) \ argument
[all …]
/arch/mips/ar7/
Dgpio.c31 struct gpio_chip chip; member
34 static int ar7_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in ar7_gpio_get_value() argument
37 container_of(chip, struct ar7_gpio_chip, chip); in ar7_gpio_get_value()
43 static int titan_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in titan_gpio_get_value() argument
46 container_of(chip, struct ar7_gpio_chip, chip); in titan_gpio_get_value()
53 static void ar7_gpio_set_value(struct gpio_chip *chip, in ar7_gpio_set_value() argument
57 container_of(chip, struct ar7_gpio_chip, chip); in ar7_gpio_set_value()
67 static void titan_gpio_set_value(struct gpio_chip *chip, in titan_gpio_set_value() argument
71 container_of(chip, struct ar7_gpio_chip, chip); in titan_gpio_set_value()
82 static int ar7_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in ar7_gpio_direction_input() argument
[all …]
/arch/arm/plat-orion/
Dgpio.c41 struct gpio_chip chip; member
136 if (pin >= ochip->chip.ngpio) in orion_gpio_is_valid()
155 static int orion_gpio_request(struct gpio_chip *chip, unsigned pin) in orion_gpio_request() argument
158 container_of(chip, struct orion_gpio_chip, chip); in orion_gpio_request()
167 static int orion_gpio_direction_input(struct gpio_chip *chip, unsigned pin) in orion_gpio_direction_input() argument
170 container_of(chip, struct orion_gpio_chip, chip); in orion_gpio_direction_input()
183 static int orion_gpio_get(struct gpio_chip *chip, unsigned pin) in orion_gpio_get() argument
186 container_of(chip, struct orion_gpio_chip, chip); in orion_gpio_get()
199 orion_gpio_direction_output(struct gpio_chip *chip, unsigned pin, int value) in orion_gpio_direction_output() argument
202 container_of(chip, struct orion_gpio_chip, chip); in orion_gpio_direction_output()
[all …]
/arch/mips/rb532/
Dgpio.c41 struct gpio_chip chip; member
87 static int rb532_gpio_get(struct gpio_chip *chip, unsigned offset) in rb532_gpio_get() argument
91 gpch = container_of(chip, struct rb532_gpio_chip, chip); in rb532_gpio_get()
98 static void rb532_gpio_set(struct gpio_chip *chip, in rb532_gpio_set() argument
103 gpch = container_of(chip, struct rb532_gpio_chip, chip); in rb532_gpio_set()
110 static int rb532_gpio_direction_input(struct gpio_chip *chip, unsigned offset) in rb532_gpio_direction_input() argument
114 gpch = container_of(chip, struct rb532_gpio_chip, chip); in rb532_gpio_direction_input()
126 static int rb532_gpio_direction_output(struct gpio_chip *chip, in rb532_gpio_direction_output() argument
131 gpch = container_of(chip, struct rb532_gpio_chip, chip); in rb532_gpio_direction_output()
143 static int rb532_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) in rb532_gpio_to_irq() argument
[all …]
/arch/mips/alchemy/common/
Dgpiolib.c41 static int gpio2_get(struct gpio_chip *chip, unsigned offset) in gpio2_get() argument
46 static void gpio2_set(struct gpio_chip *chip, unsigned offset, int value) in gpio2_set() argument
51 static int gpio2_direction_input(struct gpio_chip *chip, unsigned offset) in gpio2_direction_input() argument
56 static int gpio2_direction_output(struct gpio_chip *chip, unsigned offset, in gpio2_direction_output() argument
63 static int gpio2_to_irq(struct gpio_chip *chip, unsigned offset) in gpio2_to_irq() argument
69 static int gpio1_get(struct gpio_chip *chip, unsigned offset) in gpio1_get() argument
74 static void gpio1_set(struct gpio_chip *chip, in gpio1_set() argument
80 static int gpio1_direction_input(struct gpio_chip *chip, unsigned offset) in gpio1_direction_input() argument
85 static int gpio1_direction_output(struct gpio_chip *chip, in gpio1_direction_output() argument
92 static int gpio1_to_irq(struct gpio_chip *chip, unsigned offset) in gpio1_to_irq() argument
[all …]
/arch/mips/ath79/
Dsetup.c62 char *chip = "????"; in ath79_detect_sys_type() local
79 chip = "7130"; in ath79_detect_sys_type()
84 chip = "7141"; in ath79_detect_sys_type()
89 chip = "7161"; in ath79_detect_sys_type()
96 chip = "7240"; in ath79_detect_sys_type()
102 chip = "7241"; in ath79_detect_sys_type()
108 chip = "7242"; in ath79_detect_sys_type()
119 chip = "9130"; in ath79_detect_sys_type()
124 chip = "9132"; in ath79_detect_sys_type()
131 chip = "9330"; in ath79_detect_sys_type()
[all …]
/arch/ia64/kernel/
Dirq.c108 struct irq_chip *chip = irq_data_get_irq_chip(data); in migrate_irqs() local
134 if (chip && chip->irq_disable && in migrate_irqs()
135 chip->irq_enable && chip->irq_set_affinity) { in migrate_irqs()
136 chip->irq_disable(data); in migrate_irqs()
137 chip->irq_set_affinity(data, in migrate_irqs()
139 chip->irq_enable(data); in migrate_irqs()
141 WARN_ON((!chip || !chip->irq_disable || in migrate_irqs()
142 !chip->irq_enable || in migrate_irqs()
143 !chip->irq_set_affinity)); in migrate_irqs()
/arch/avr32/mach-at32ap/
Dpio.c28 struct gpio_chip chip; member
204 static int direction_input(struct gpio_chip *chip, unsigned offset) in direction_input() argument
206 struct pio_device *pio = container_of(chip, struct pio_device, chip); in direction_input()
216 static int gpio_get(struct gpio_chip *chip, unsigned offset) in gpio_get() argument
218 struct pio_device *pio = container_of(chip, struct pio_device, chip); in gpio_get()
223 static void gpio_set(struct gpio_chip *chip, unsigned offset, int value);
225 static int direction_output(struct gpio_chip *chip, unsigned offset, int value) in direction_output() argument
227 struct pio_device *pio = container_of(chip, struct pio_device, chip); in direction_output()
233 gpio_set(chip, offset, value); in direction_output()
238 static void gpio_set(struct gpio_chip *chip, unsigned offset, int value) in gpio_set() argument
[all …]
/arch/blackfin/mach-bf538/
Dext-gpio.c27 static void __iomem *gpio_chip_to_mmr(struct gpio_chip *chip) in gpio_chip_to_mmr() argument
29 switch (chip->base) { in gpio_chip_to_mmr()
37 static int bf538_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in bf538_gpio_get_value() argument
39 void __iomem *port = gpio_chip_to_mmr(chip); in bf538_gpio_get_value()
43 static void bf538_gpio_set_value(struct gpio_chip *chip, unsigned gpio, int value) in bf538_gpio_set_value() argument
45 void __iomem *port = gpio_chip_to_mmr(chip); in bf538_gpio_set_value()
52 static int bf538_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bf538_gpio_direction_input() argument
54 void __iomem *port = gpio_chip_to_mmr(chip); in bf538_gpio_direction_input()
60 static int bf538_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, int value) in bf538_gpio_direction_output() argument
62 void __iomem *port = gpio_chip_to_mmr(chip); in bf538_gpio_direction_output()
[all …]
/arch/mips/bcm63xx/
Dgpio.c38 static void bcm63xx_gpio_set(struct gpio_chip *chip, in bcm63xx_gpio_set() argument
46 if (gpio >= chip->ngpio) in bcm63xx_gpio_set()
68 static int bcm63xx_gpio_get(struct gpio_chip *chip, unsigned gpio) in bcm63xx_gpio_get() argument
73 if (gpio >= chip->ngpio) in bcm63xx_gpio_get()
87 static int bcm63xx_gpio_set_direction(struct gpio_chip *chip, in bcm63xx_gpio_set_direction() argument
95 if (gpio >= chip->ngpio) in bcm63xx_gpio_set_direction()
118 static int bcm63xx_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcm63xx_gpio_direction_input() argument
120 return bcm63xx_gpio_set_direction(chip, gpio, BCM63XX_GPIO_DIR_IN); in bcm63xx_gpio_direction_input()
123 static int bcm63xx_gpio_direction_output(struct gpio_chip *chip, in bcm63xx_gpio_direction_output() argument
126 bcm63xx_gpio_set(chip, gpio, value); in bcm63xx_gpio_direction_output()
[all …]
/arch/arm/mach-w90x900/
Dgpio.c33 #define to_nuc900_gpio_chip(c) container_of(c, struct nuc900_gpio_chip, chip)
37 .chip = { \
49 struct gpio_chip chip; member
54 static int nuc900_gpio_get(struct gpio_chip *chip, unsigned offset) in nuc900_gpio_get() argument
56 struct nuc900_gpio_chip *nuc900_gpio = to_nuc900_gpio_chip(chip); in nuc900_gpio_get()
66 static void nuc900_gpio_set(struct gpio_chip *chip, unsigned offset, int val) in nuc900_gpio_set() argument
68 struct nuc900_gpio_chip *nuc900_gpio = to_nuc900_gpio_chip(chip); in nuc900_gpio_set()
87 static int nuc900_dir_input(struct gpio_chip *chip, unsigned offset) in nuc900_dir_input() argument
89 struct nuc900_gpio_chip *nuc900_gpio = to_nuc900_gpio_chip(chip); in nuc900_dir_input()
105 static int nuc900_dir_output(struct gpio_chip *chip, unsigned offset, int val) in nuc900_dir_output() argument
[all …]
/arch/mips/include/asm/netlogic/xlp-hal/
Dxlp.h104 int chip = read_c0_prid() & PRID_IMP_MASK; in cpu_is_xlpii() local
106 return chip == PRID_IMP_NETLOGIC_XLP2XX || in cpu_is_xlpii()
107 chip == PRID_IMP_NETLOGIC_XLP9XX || in cpu_is_xlpii()
108 chip == PRID_IMP_NETLOGIC_XLP5XX; in cpu_is_xlpii()
113 int chip = read_c0_prid() & PRID_IMP_MASK; in cpu_is_xlp9xx() local
115 return chip == PRID_IMP_NETLOGIC_XLP9XX || in cpu_is_xlp9xx()
116 chip == PRID_IMP_NETLOGIC_XLP5XX; in cpu_is_xlp9xx()
/arch/arm/kernel/
Dmachine_kexec.c103 struct irq_chip *chip; in machine_kexec_mask_interrupts() local
105 chip = irq_desc_get_chip(desc); in machine_kexec_mask_interrupts()
106 if (!chip) in machine_kexec_mask_interrupts()
109 if (chip->irq_eoi && irqd_irq_inprogress(&desc->irq_data)) in machine_kexec_mask_interrupts()
110 chip->irq_eoi(&desc->irq_data); in machine_kexec_mask_interrupts()
112 if (chip->irq_mask) in machine_kexec_mask_interrupts()
113 chip->irq_mask(&desc->irq_data); in machine_kexec_mask_interrupts()
115 if (chip->irq_disable && !irqd_irq_disabled(&desc->irq_data)) in machine_kexec_mask_interrupts()
116 chip->irq_disable(&desc->irq_data); in machine_kexec_mask_interrupts()
/arch/m68k/kernel/
Drelocate_kernel.S32 .chip 68030
37 .chip 68k
58 .chip 68040
61 .chip 68k
66 .chip 68040
72 .chip 68k
125 .chip 68030
129 .chip 68k
140 .chip 68040
146 .chip 68k
/arch/arm/mach-ep93xx/
Dsnappercl15.c47 #define NAND_CTRL_ADDR(chip) (chip->IO_ADDR_W + 0x40) argument
52 struct nand_chip *chip = mtd->priv; in snappercl15_nand_cmd_ctrl() local
70 __raw_writew(nand_state, NAND_CTRL_ADDR(chip)); in snappercl15_nand_cmd_ctrl()
74 __raw_writew((cmd & 0xff) | nand_state, chip->IO_ADDR_W); in snappercl15_nand_cmd_ctrl()
79 struct nand_chip *chip = mtd->priv; in snappercl15_nand_dev_ready() local
81 return !!(__raw_readw(NAND_CTRL_ADDR(chip)) & SNAPPERCL15_NAND_RDY); in snappercl15_nand_dev_ready()
98 .chip = {
/arch/mips/vr41xx/common/
Dirq.c75 struct irq_chip *chip = irq_desc_get_chip(desc); in irq_dispatch() local
78 if (chip->irq_mask_ack) in irq_dispatch()
79 chip->irq_mask_ack(idata); in irq_dispatch()
81 chip->irq_mask(idata); in irq_dispatch()
82 chip->irq_ack(idata); in irq_dispatch()
90 if (!irqd_irq_disabled(idata) && chip->irq_unmask) in irq_dispatch()
91 chip->irq_unmask(idata); in irq_dispatch()
/arch/sh/boards/mach-x3proto/
Dgpio.c32 static int x3proto_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in x3proto_gpio_direction_input() argument
46 static int x3proto_gpio_get(struct gpio_chip *chip, unsigned gpio) in x3proto_gpio_get() argument
51 static int x3proto_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) in x3proto_gpio_to_irq() argument
55 if (gpio < chip->ngpio) in x3proto_gpio_to_irq()
66 struct irq_chip *chip = irq_data_get_irq_chip(data); in x3proto_gpio_irq_handler() local
70 chip->irq_mask_ack(data); in x3proto_gpio_irq_handler()
76 chip->irq_unmask(data); in x3proto_gpio_irq_handler()
/arch/sh/kernel/cpu/irq/
Dipr.c29 struct irq_chip *chip = irq_data_get_irq_chip(data); in get_ipr_desc() local
30 return container_of(chip, struct ipr_desc, chip); in get_ipr_desc()
59 desc->chip.irq_mask = disable_ipr_irq; in register_ipr_controller()
60 desc->chip.irq_unmask = enable_ipr_irq; in register_ipr_controller()
77 irq_set_chip_and_handler_name(p->irq, &desc->chip, in register_ipr_controller()
/arch/powerpc/include/asm/
Dqe_ic.h103 struct irq_chip *chip = irq_desc_get_chip(desc); in qe_ic_cascade_low_mpic() local
108 chip->irq_eoi(&desc->irq_data); in qe_ic_cascade_low_mpic()
115 struct irq_chip *chip = irq_desc_get_chip(desc); in qe_ic_cascade_high_mpic() local
120 chip->irq_eoi(&desc->irq_data); in qe_ic_cascade_high_mpic()
127 struct irq_chip *chip = irq_desc_get_chip(desc); in qe_ic_cascade_muxed_mpic() local
136 chip->irq_eoi(&desc->irq_data); in qe_ic_cascade_muxed_mpic()
/arch/m68k/coldfire/
Dgpio.c117 static int mcfgpio_direction_input(struct gpio_chip *chip, unsigned offset) in mcfgpio_direction_input() argument
122 static int mcfgpio_get_value(struct gpio_chip *chip, unsigned offset) in mcfgpio_get_value() argument
127 static int mcfgpio_direction_output(struct gpio_chip *chip, unsigned offset, in mcfgpio_direction_output() argument
133 static void mcfgpio_set_value(struct gpio_chip *chip, unsigned offset, in mcfgpio_set_value() argument
139 static int mcfgpio_request(struct gpio_chip *chip, unsigned offset) in mcfgpio_request() argument
144 static void mcfgpio_free(struct gpio_chip *chip, unsigned offset) in mcfgpio_free() argument
149 static int mcfgpio_to_irq(struct gpio_chip *chip, unsigned offset) in mcfgpio_to_irq() argument
/arch/powerpc/sysdev/
Dppc4xx_gpio.c100 struct ppc4xx_gpio_chip *chip = to_ppc4xx_gpiochip(mm_gc); in ppc4xx_gpio_set() local
103 spin_lock_irqsave(&chip->lock, flags); in ppc4xx_gpio_set()
107 spin_unlock_irqrestore(&chip->lock, flags); in ppc4xx_gpio_set()
115 struct ppc4xx_gpio_chip *chip = to_ppc4xx_gpiochip(mm_gc); in ppc4xx_gpio_dir_in() local
119 spin_lock_irqsave(&chip->lock, flags); in ppc4xx_gpio_dir_in()
136 spin_unlock_irqrestore(&chip->lock, flags); in ppc4xx_gpio_dir_in()
145 struct ppc4xx_gpio_chip *chip = to_ppc4xx_gpiochip(mm_gc); in ppc4xx_gpio_dir_out() local
149 spin_lock_irqsave(&chip->lock, flags); in ppc4xx_gpio_dir_out()
169 spin_unlock_irqrestore(&chip->lock, flags); in ppc4xx_gpio_dir_out()

1234567891011