/arch/arm/mach-s3c/ |
D | gpio-samsung.c | 40 int samsung_gpio_setpull_updown(struct samsung_gpio_chip *chip, in samsung_gpio_setpull_updown() argument 43 void __iomem *reg = chip->base + 0x08; in samsung_gpio_setpull_updown() 55 samsung_gpio_pull_t samsung_gpio_getpull_updown(struct samsung_gpio_chip *chip, in samsung_gpio_getpull_updown() argument 58 void __iomem *reg = chip->base + 0x08; in samsung_gpio_getpull_updown() 68 int s3c2443_gpio_setpull(struct samsung_gpio_chip *chip, in s3c2443_gpio_setpull() argument 82 return samsung_gpio_setpull_updown(chip, off, pull); in s3c2443_gpio_setpull() 85 samsung_gpio_pull_t s3c2443_gpio_getpull(struct samsung_gpio_chip *chip, in s3c2443_gpio_getpull() argument 90 pull = samsung_gpio_getpull_updown(chip, off); in s3c2443_gpio_getpull() 108 static int s3c24xx_gpio_setpull_1(struct samsung_gpio_chip *chip, in s3c24xx_gpio_setpull_1() argument 112 void __iomem *reg = chip->base + 0x08; in s3c24xx_gpio_setpull_1() [all …]
|
D | pm-gpio.c | 27 static void samsung_gpio_pm_1bit_save(struct samsung_gpio_chip *chip) in samsung_gpio_pm_1bit_save() argument 29 chip->pm_save[0] = __raw_readl(chip->base + OFFS_CON); in samsung_gpio_pm_1bit_save() 30 chip->pm_save[1] = __raw_readl(chip->base + OFFS_DAT); in samsung_gpio_pm_1bit_save() 33 static void samsung_gpio_pm_1bit_resume(struct samsung_gpio_chip *chip) in samsung_gpio_pm_1bit_resume() argument 35 void __iomem *base = chip->base; in samsung_gpio_pm_1bit_resume() 38 u32 gps_gpcon = chip->pm_save[0]; in samsung_gpio_pm_1bit_resume() 39 u32 gps_gpdat = chip->pm_save[1]; in samsung_gpio_pm_1bit_resume() 56 chip->chip.label, old_gpcon, gps_gpcon, old_gpdat, gps_gpdat); in samsung_gpio_pm_1bit_resume() 64 static void samsung_gpio_pm_2bit_save(struct samsung_gpio_chip *chip) in samsung_gpio_pm_2bit_save() argument 66 chip->pm_save[0] = __raw_readl(chip->base + OFFS_CON); in samsung_gpio_pm_2bit_save() [all …]
|
D | gpio-cfg-helpers.h | 23 static inline int samsung_gpio_do_setcfg(struct samsung_gpio_chip *chip, 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 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 38 return (chip->config->set_pull)(chip, off, pull); in samsung_gpio_do_setpull() 41 static inline samsung_gpio_pull_t samsung_gpio_do_getpull(struct samsung_gpio_chip *chip, in samsung_gpio_do_getpull() argument 44 return chip->config->get_pull(chip, off); in samsung_gpio_do_getpull() 64 extern int s3c24xx_gpio_setpull_1up(struct samsung_gpio_chip *chip, 76 extern int s3c24xx_gpio_setpull_1down(struct samsung_gpio_chip *chip, [all …]
|
D | gpio-core.h | 39 void (*save)(struct samsung_gpio_chip *chip); 40 void (*resume)(struct samsung_gpio_chip *chip); 68 struct gpio_chip chip; member 83 return container_of(gpc, struct samsung_gpio_chip, chip); in to_samsung_gpio() 94 extern int samsung_gpiolib_to_irq(struct gpio_chip *chip, unsigned int offset); 102 static inline struct samsung_gpio_chip *samsung_gpiolib_getchip(unsigned int chip) in samsung_gpiolib_getchip() argument 104 return (chip < S3C_GPIO_END) ? s3c_gpios[chip] : NULL; in samsung_gpiolib_getchip() 113 struct samsung_gpio_chip *chip; in samsung_gpiolib_getchip() local 118 chip = &s3c24xx_gpios[pin/32]; in samsung_gpiolib_getchip() 119 return ((pin - chip->chip.base) < chip->chip.ngpio) ? chip : NULL; in samsung_gpiolib_getchip() [all …]
|
/arch/mips/include/asm/sibyte/ |
D | sb1250_defs.h | 98 #define SIBYTE_HDR_FMASK(chip, pass) \ argument 99 (SIBYTE_HDR_FMASK_ ## chip ## _ ## pass) 100 #define SIBYTE_HDR_FMASK_ALLREVS(chip) \ argument 101 (SIBYTE_HDR_FMASK_ ## chip ## _ALL) 121 #define SIBYTE_HDR_FMASK_BEFORE(chip, pass) \ argument 122 ((SIBYTE_HDR_FMASK(chip, pass) - 1) & SIBYTE_HDR_FMASK_ALLREVS(chip)) 125 #define SIBYTE_HDR_FMASK_AFTER(chip, pass) \ argument 126 (~(SIBYTE_HDR_FMASK(chip, pass) \ 127 | (SIBYTE_HDR_FMASK(chip, pass) - 1)) & SIBYTE_HDR_FMASK_ALLREVS(chip)) 131 #define SIBYTE_HDR_FEATURE_CHIP(chip) \ argument [all …]
|
/arch/mips/ath79/ |
D | setup.c | 54 char *chip = "????"; in ath79_detect_sys_type() local 72 chip = "7130"; in ath79_detect_sys_type() 77 chip = "7141"; in ath79_detect_sys_type() 82 chip = "7161"; in ath79_detect_sys_type() 89 chip = "7240"; in ath79_detect_sys_type() 95 chip = "7241"; in ath79_detect_sys_type() 101 chip = "7242"; in ath79_detect_sys_type() 112 chip = "9130"; in ath79_detect_sys_type() 117 chip = "9132"; in ath79_detect_sys_type() 124 chip = "9330"; in ath79_detect_sys_type() [all …]
|
/arch/mips/alchemy/common/ |
D | gpiolib.c | 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 79 static int gpio1_direction_input(struct gpio_chip *chip, unsigned offset) in gpio1_direction_input() argument 84 static int gpio1_direction_output(struct gpio_chip *chip, in gpio1_direction_output() argument 91 static int gpio1_to_irq(struct gpio_chip *chip, unsigned offset) in gpio1_to_irq() argument [all …]
|
/arch/mips/ar7/ |
D | gpio.c | 19 struct gpio_chip chip; member 22 static int ar7_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in ar7_gpio_get_value() argument 24 struct ar7_gpio_chip *gpch = gpiochip_get_data(chip); in ar7_gpio_get_value() 30 static int titan_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in titan_gpio_get_value() argument 32 struct ar7_gpio_chip *gpch = gpiochip_get_data(chip); in titan_gpio_get_value() 39 static void ar7_gpio_set_value(struct gpio_chip *chip, in ar7_gpio_set_value() argument 42 struct ar7_gpio_chip *gpch = gpiochip_get_data(chip); in ar7_gpio_set_value() 52 static void titan_gpio_set_value(struct gpio_chip *chip, in titan_gpio_set_value() argument 55 struct ar7_gpio_chip *gpch = gpiochip_get_data(chip); in titan_gpio_set_value() 66 static int ar7_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in ar7_gpio_direction_input() argument [all …]
|
/arch/ia64/kernel/ |
D | irq.c | 87 struct irq_chip *chip = irq_data_get_irq_chip(data); in migrate_irqs() local 113 if (chip && chip->irq_disable && in migrate_irqs() 114 chip->irq_enable && chip->irq_set_affinity) { in migrate_irqs() 115 chip->irq_disable(data); in migrate_irqs() 116 chip->irq_set_affinity(data, in migrate_irqs() 118 chip->irq_enable(data); in migrate_irqs() 120 WARN_ON((!chip || !chip->irq_disable || in migrate_irqs() 121 !chip->irq_enable || in migrate_irqs() 122 !chip->irq_set_affinity)); in migrate_irqs()
|
/arch/arm/plat-orion/ |
D | gpio.c | 41 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 157 struct orion_gpio_chip *ochip = gpiochip_get_data(chip); in orion_gpio_request() 166 static int orion_gpio_direction_input(struct gpio_chip *chip, unsigned pin) in orion_gpio_direction_input() argument 168 struct orion_gpio_chip *ochip = gpiochip_get_data(chip); in orion_gpio_direction_input() 181 static int orion_gpio_get(struct gpio_chip *chip, unsigned pin) in orion_gpio_get() argument 183 struct orion_gpio_chip *ochip = gpiochip_get_data(chip); in orion_gpio_get() 196 orion_gpio_direction_output(struct gpio_chip *chip, unsigned pin, int value) in orion_gpio_direction_output() argument 198 struct orion_gpio_chip *ochip = gpiochip_get_data(chip); in orion_gpio_direction_output() [all …]
|
/arch/mips/rb532/ |
D | gpio.c | 41 struct gpio_chip chip; member 87 static int rb532_gpio_get(struct gpio_chip *chip, unsigned offset) in rb532_gpio_get() argument 91 gpch = gpiochip_get_data(chip); in rb532_gpio_get() 98 static void rb532_gpio_set(struct gpio_chip *chip, in rb532_gpio_set() argument 103 gpch = gpiochip_get_data(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 = gpiochip_get_data(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 = gpiochip_get_data(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/bcm63xx/ |
D | gpio.c | 38 static void bcm63xx_gpio_set(struct gpio_chip *chip, in bcm63xx_gpio_set() argument 46 BUG_ON(gpio >= chip->ngpio); in bcm63xx_gpio_set() 67 static int bcm63xx_gpio_get(struct gpio_chip *chip, unsigned gpio) in bcm63xx_gpio_get() argument 72 BUG_ON(gpio >= chip->ngpio); in bcm63xx_gpio_get() 85 static int bcm63xx_gpio_set_direction(struct gpio_chip *chip, in bcm63xx_gpio_set_direction() argument 93 BUG_ON(gpio >= chip->ngpio); in bcm63xx_gpio_set_direction() 115 static int bcm63xx_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcm63xx_gpio_direction_input() argument 117 return bcm63xx_gpio_set_direction(chip, gpio, BCM63XX_GPIO_DIR_IN); in bcm63xx_gpio_direction_input() 120 static int bcm63xx_gpio_direction_output(struct gpio_chip *chip, in bcm63xx_gpio_direction_output() argument 123 bcm63xx_gpio_set(chip, gpio, value); in bcm63xx_gpio_direction_output() [all …]
|
/arch/powerpc/platforms/powernv/ |
D | opal-xscom.c | 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() 70 static int opal_scom_write(uint32_t chip, uint64_t addr, u64 reg, u64 value) in opal_scom_write() argument 75 rc = opal_xscom_write(chip, reg, value); in opal_scom_write() 82 u32 chip; member 103 rc = opal_scom_read(ent->chip, reg_base, reg, &val); in scom_debug_read() 136 rc = opal_scom_write(ent->chip, reg_base, reg, val); in scom_debug_write() 156 int chip) in scom_debug_init_one() argument 165 ent->chip = chip; in scom_debug_init_one() 166 snprintf(ent->name, 16, "%08x", chip); in scom_debug_init_one() [all …]
|
/arch/mips/include/asm/netlogic/xlp-hal/ |
D | xlp.h | 104 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/mach-ep93xx/ |
D | snappercl15.c | 40 #define NAND_CTRL_ADDR(chip) (chip->legacy.IO_ADDR_W + 0x40) argument 42 static void snappercl15_nand_cmd_ctrl(struct nand_chip *chip, int cmd, in snappercl15_nand_cmd_ctrl() argument 62 __raw_writew(nand_state, NAND_CTRL_ADDR(chip)); in snappercl15_nand_cmd_ctrl() 67 chip->legacy.IO_ADDR_W); in snappercl15_nand_cmd_ctrl() 70 static int snappercl15_nand_dev_ready(struct nand_chip *chip) in snappercl15_nand_dev_ready() argument 72 return !!(__raw_readw(NAND_CTRL_ADDR(chip)) & SNAPPERCL15_NAND_RDY); in snappercl15_nand_dev_ready() 89 .chip = {
|
/arch/m68k/kernel/ |
D | relocate_kernel.S | 33 .chip 68030 38 .chip 68k 59 .chip 68040 62 .chip 68k 67 .chip 68040 73 .chip 68k 126 .chip 68030 130 .chip 68k 141 .chip 68040 147 .chip 68k
|
/arch/mips/vr41xx/common/ |
D | irq.c | 57 struct irq_chip *chip = irq_desc_get_chip(desc); in irq_dispatch() local 60 if (chip->irq_mask_ack) in irq_dispatch() 61 chip->irq_mask_ack(idata); in irq_dispatch() 63 chip->irq_mask(idata); in irq_dispatch() 64 chip->irq_ack(idata); in irq_dispatch() 72 if (!irqd_irq_disabled(idata) && chip->irq_unmask) in irq_dispatch() 73 chip->irq_unmask(idata); in irq_dispatch()
|
/arch/arm/kernel/ |
D | machine_kexec.c | 134 struct irq_chip *chip; in machine_kexec_mask_interrupts() local 136 chip = irq_desc_get_chip(desc); in machine_kexec_mask_interrupts() 137 if (!chip) in machine_kexec_mask_interrupts() 140 if (chip->irq_eoi && irqd_irq_inprogress(&desc->irq_data)) in machine_kexec_mask_interrupts() 141 chip->irq_eoi(&desc->irq_data); in machine_kexec_mask_interrupts() 143 if (chip->irq_mask) in machine_kexec_mask_interrupts() 144 chip->irq_mask(&desc->irq_data); in machine_kexec_mask_interrupts() 146 if (chip->irq_disable && !irqd_irq_disabled(&desc->irq_data)) in machine_kexec_mask_interrupts() 147 chip->irq_disable(&desc->irq_data); in machine_kexec_mask_interrupts()
|
/arch/sh/boards/mach-x3proto/ |
D | gpio.c | 29 static int x3proto_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in x3proto_gpio_direction_input() argument 43 static int x3proto_gpio_get(struct gpio_chip *chip, unsigned gpio) in x3proto_gpio_get() argument 48 static int x3proto_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) in x3proto_gpio_to_irq() argument 52 if (gpio < chip->ngpio) in x3proto_gpio_to_irq() 63 struct irq_chip *chip = irq_data_get_irq_chip(data); in x3proto_gpio_irq_handler() local 67 chip->irq_mask_ack(data); in x3proto_gpio_irq_handler() 73 chip->irq_unmask(data); in x3proto_gpio_irq_handler()
|
/arch/riscv/kernel/ |
D | machine_kexec.c | 165 struct irq_chip *chip; in machine_kexec_mask_interrupts() local 168 chip = irq_desc_get_chip(desc); in machine_kexec_mask_interrupts() 169 if (!chip) in machine_kexec_mask_interrupts() 179 chip->irq_eoi) in machine_kexec_mask_interrupts() 180 chip->irq_eoi(&desc->irq_data); in machine_kexec_mask_interrupts() 182 if (chip->irq_mask) in machine_kexec_mask_interrupts() 183 chip->irq_mask(&desc->irq_data); in machine_kexec_mask_interrupts() 185 if (chip->irq_disable && !irqd_irq_disabled(&desc->irq_data)) in machine_kexec_mask_interrupts() 186 chip->irq_disable(&desc->irq_data); in machine_kexec_mask_interrupts()
|
/arch/sh/kernel/cpu/irq/ |
D | ipr.c | 26 struct irq_chip *chip = irq_data_get_irq_chip(data); in get_ipr_desc() local 27 return container_of(chip, struct ipr_desc, chip); in get_ipr_desc() 56 desc->chip.irq_mask = disable_ipr_irq; in register_ipr_controller() 57 desc->chip.irq_unmask = enable_ipr_irq; in register_ipr_controller() 74 irq_set_chip_and_handler_name(p->irq, &desc->chip, in register_ipr_controller()
|
/arch/powerpc/platforms/4xx/ |
D | gpio.c | 81 struct ppc4xx_gpio_chip *chip = gpiochip_get_data(gc); in ppc4xx_gpio_set() local 84 spin_lock_irqsave(&chip->lock, flags); in ppc4xx_gpio_set() 88 spin_unlock_irqrestore(&chip->lock, flags); in ppc4xx_gpio_set() 96 struct ppc4xx_gpio_chip *chip = gpiochip_get_data(gc); in ppc4xx_gpio_dir_in() local 100 spin_lock_irqsave(&chip->lock, flags); in ppc4xx_gpio_dir_in() 117 spin_unlock_irqrestore(&chip->lock, flags); in ppc4xx_gpio_dir_in() 126 struct ppc4xx_gpio_chip *chip = gpiochip_get_data(gc); in ppc4xx_gpio_dir_out() local 130 spin_lock_irqsave(&chip->lock, flags); in ppc4xx_gpio_dir_out() 150 spin_unlock_irqrestore(&chip->lock, flags); in ppc4xx_gpio_dir_out()
|
/arch/m68k/coldfire/ |
D | gpio.c | 110 static int mcfgpio_direction_input(struct gpio_chip *chip, unsigned offset) in mcfgpio_direction_input() argument 115 static int mcfgpio_get_value(struct gpio_chip *chip, unsigned offset) in mcfgpio_get_value() argument 120 static int mcfgpio_direction_output(struct gpio_chip *chip, unsigned offset, in mcfgpio_direction_output() argument 126 static void mcfgpio_set_value(struct gpio_chip *chip, unsigned offset, in mcfgpio_set_value() argument 132 static int mcfgpio_request(struct gpio_chip *chip, unsigned offset) in mcfgpio_request() argument 137 static void mcfgpio_free(struct gpio_chip *chip, unsigned offset) in mcfgpio_free() argument 142 static int mcfgpio_to_irq(struct gpio_chip *chip, unsigned offset) in mcfgpio_to_irq() argument
|
/arch/powerpc/kexec/ |
D | core.c | 29 struct irq_chip *chip; in machine_kexec_mask_interrupts() local 31 chip = irq_desc_get_chip(desc); in machine_kexec_mask_interrupts() 32 if (!chip) in machine_kexec_mask_interrupts() 35 if (chip->irq_eoi && irqd_irq_inprogress(&desc->irq_data)) in machine_kexec_mask_interrupts() 36 chip->irq_eoi(&desc->irq_data); in machine_kexec_mask_interrupts() 38 if (chip->irq_mask) in machine_kexec_mask_interrupts() 39 chip->irq_mask(&desc->irq_data); in machine_kexec_mask_interrupts() 41 if (chip->irq_disable && !irqd_irq_disabled(&desc->irq_data)) in machine_kexec_mask_interrupts() 42 chip->irq_disable(&desc->irq_data); in machine_kexec_mask_interrupts()
|
/arch/sh/boards/mach-se/7722/ |
D | irq.c | 31 struct irq_chip *chip = irq_data_get_irq_chip(data); in se7722_irq_demux() local 35 chip->irq_mask_ack(data); in se7722_irq_demux() 42 chip->irq_unmask(data); in se7722_irq_demux() 80 ct->chip.irq_mask = irq_gc_mask_set_bit; in se7722_gc_init() 81 ct->chip.irq_unmask = irq_gc_mask_clr_bit; in se7722_gc_init()
|