/linux/drivers/gpio/ |
H A D | gpio-mmio.c | 124 static unsigned long bgpio_line2mask(struct gpio_chip *gc, unsigned int line) in bgpio_line2mask() argument 126 if (gc->be_bits) in bgpio_line2mask() 127 return BIT(gc->bgpio_bits - 1 - line); in bgpio_line2mask() 131 static int bgpio_get_set(struct gpio_chip *gc, unsigned int gpio) in bgpio_get_set() argument 133 unsigned long pinmask = bgpio_line2mask(gc, gpio); in bgpio_get_set() 134 bool dir = !!(gc->bgpio_dir & pinmask); in bgpio_get_set() 137 return !!(gc->read_reg(gc->reg_set) & pinmask); in bgpio_get_set() 139 return !!(gc->read_reg(gc->reg_dat) & pinmask); in bgpio_get_set() 146 static int bgpio_get_set_multiple(struct gpio_chip *gc, unsigned long *mask, in bgpio_get_set_multiple() argument 155 set_mask = *mask & gc->bgpio_dir; in bgpio_get_set_multiple() [all …]
|
H A D | gpiolib.c | 95 static void gpiochip_free_hogs(struct gpio_chip *gc); 96 static int gpiochip_add_irqchip(struct gpio_chip *gc, 99 static void gpiochip_irqchip_remove(struct gpio_chip *gc); 100 static int gpiochip_irqchip_init_hw(struct gpio_chip *gc); 101 static int gpiochip_irqchip_init_valid_mask(struct gpio_chip *gc); 102 static void gpiochip_irqchip_free_valid_mask(struct gpio_chip *gc); 176 struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc, in gpiochip_get_desc() argument 179 return gpio_device_get_desc(gc->gpiodev, hwnum); in gpiochip_get_desc() 367 if (!guard.gc) in gpiod_get_direction() 381 if (!guard.gc->get_direction) in gpiod_get_direction() [all …]
|
H A D | gpio-mpc8xxx.c | 37 struct gpio_chip gc; member 63 static int mpc8572_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc8572_gpio_get() argument 66 struct mpc8xxx_gpio_chip *mpc8xxx_gc = gpiochip_get_data(gc); in mpc8572_gpio_get() 69 out_mask = gc->read_reg(mpc8xxx_gc->regs + GPIO_DIR); in mpc8572_gpio_get() 70 val = gc->read_reg(mpc8xxx_gc->regs + GPIO_DAT) & ~out_mask; in mpc8572_gpio_get() 71 out_shadow = gc->bgpio_data & out_mask; in mpc8572_gpio_get() 76 static int mpc5121_gpio_dir_out(struct gpio_chip *gc, in mpc5121_gpio_dir_out() argument 79 struct mpc8xxx_gpio_chip *mpc8xxx_gc = gpiochip_get_data(gc); in mpc5121_gpio_dir_out() 84 return mpc8xxx_gc->direction_output(gc, gpio, val); in mpc5121_gpio_dir_out() 87 static int mpc5125_gpio_dir_out(struct gpio_chip *gc, in mpc5125_gpio_dir_out() argument [all …]
|
H A D | gpio-reg.c | 22 struct gpio_chip gc; member 31 #define to_gpio_reg(x) container_of(x, struct gpio_reg, gc) 33 static int gpio_reg_get_direction(struct gpio_chip *gc, unsigned offset) in gpio_reg_get_direction() argument 35 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_get_direction() 41 static int gpio_reg_direction_output(struct gpio_chip *gc, unsigned offset, in gpio_reg_direction_output() argument 44 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_output() 49 gc->set(gc, offset, value); in gpio_reg_direction_output() 53 static int gpio_reg_direction_input(struct gpio_chip *gc, unsigned offset) in gpio_reg_direction_input() argument 55 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_input() 60 static void gpio_reg_set(struct gpio_chip *gc, unsigned offset, int value) in gpio_reg_set() argument [all …]
|
H A D | gpio-cros-ec.c | 27 static void cros_ec_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in cros_ec_gpio_set() argument 29 const char *name = gc->names[gpio] + strlen(cros_ec_gpio_prefix); in cros_ec_gpio_set() 30 struct cros_ec_device *cros_ec = gpiochip_get_data(gc); in cros_ec_gpio_set() 44 dev_err(gc->parent, "error setting gpio%d (%s) on EC: %d\n", gpio, name, ret); in cros_ec_gpio_set() 47 static int cros_ec_gpio_get(struct gpio_chip *gc, unsigned int gpio) in cros_ec_gpio_get() argument 49 const char *name = gc->names[gpio] + strlen(cros_ec_gpio_prefix); in cros_ec_gpio_get() 50 struct cros_ec_device *cros_ec = gpiochip_get_data(gc); in cros_ec_gpio_get() 63 dev_err(gc->parent, "error getting gpio%d (%s) on EC: %d\n", gpio, name, ret); in cros_ec_gpio_get() 73 static int cros_ec_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) in cros_ec_gpio_get_direction() argument 75 const char *name = gc->names[gpio] + strlen(cros_ec_gpio_prefix); in cros_ec_gpio_get_direction() [all …]
|
H A D | gpio-max77650.c | 36 struct gpio_chip gc; member 40 static int max77650_gpio_direction_input(struct gpio_chip *gc, in max77650_gpio_direction_input() argument 43 struct max77650_gpio_chip *chip = gpiochip_get_data(gc); in max77650_gpio_direction_input() 51 static int max77650_gpio_direction_output(struct gpio_chip *gc, in max77650_gpio_direction_output() argument 54 struct max77650_gpio_chip *chip = gpiochip_get_data(gc); in max77650_gpio_direction_output() 65 static void max77650_gpio_set_value(struct gpio_chip *gc, in max77650_gpio_set_value() argument 68 struct max77650_gpio_chip *chip = gpiochip_get_data(gc); in max77650_gpio_set_value() 76 dev_err(gc->parent, "cannot set GPIO value: %d\n", rv); in max77650_gpio_set_value() 79 static int max77650_gpio_get_value(struct gpio_chip *gc, in max77650_gpio_get_value() argument 82 struct max77650_gpio_chip *chip = gpiochip_get_data(gc); in max77650_gpio_get_value() [all …]
|
H A D | gpio-tps68470.c | 26 struct gpio_chip gc; member 29 static int tps68470_gpio_get(struct gpio_chip *gc, unsigned int offset) in tps68470_gpio_get() argument 31 struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc); in tps68470_gpio_get() 43 dev_err(tps68470_gpio->gc.parent, "reg 0x%x read failed\n", in tps68470_gpio_get() 50 static int tps68470_gpio_get_direction(struct gpio_chip *gc, in tps68470_gpio_get_direction() argument 53 struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc); in tps68470_gpio_get_direction() 63 dev_err(tps68470_gpio->gc.parent, "reg 0x%x read failed\n", in tps68470_gpio_get_direction() 73 static void tps68470_gpio_set(struct gpio_chip *gc, unsigned int offset, in tps68470_gpio_set() argument 76 struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc); in tps68470_gpio_set() 88 static int tps68470_gpio_output(struct gpio_chip *gc, unsigned int offset, in tps68470_gpio_output() argument [all …]
|
H A D | gpio-mockup.c | 54 struct gpio_chip gc; member 92 static int gpio_mockup_get(struct gpio_chip *gc, unsigned int offset) in gpio_mockup_get() argument 94 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_get() 103 static int gpio_mockup_get_multiple(struct gpio_chip *gc, in gpio_mockup_get_multiple() argument 106 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_get_multiple() 110 for_each_set_bit(bit, mask, gc->ngpio) { in gpio_mockup_get_multiple() 125 static void gpio_mockup_set(struct gpio_chip *gc, in gpio_mockup_set() argument 128 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_set() 135 static void gpio_mockup_set_multiple(struct gpio_chip *gc, in gpio_mockup_set_multiple() argument 138 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_set_multiple() [all …]
|
H A D | gpio-raspberrypi-exp.c | 26 struct gpio_chip gc; member 54 static int rpi_exp_gpio_get_polarity(struct gpio_chip *gc, unsigned int off) in rpi_exp_gpio_get_polarity() argument 60 gpio = gpiochip_get_data(gc); in rpi_exp_gpio_get_polarity() 67 dev_err(gc->parent, "Failed to get GPIO %u config (%d %x)\n", in rpi_exp_gpio_get_polarity() 74 static int rpi_exp_gpio_dir_in(struct gpio_chip *gc, unsigned int off) in rpi_exp_gpio_dir_in() argument 80 gpio = gpiochip_get_data(gc); in rpi_exp_gpio_dir_in() 88 ret = rpi_exp_gpio_get_polarity(gc, off); in rpi_exp_gpio_dir_in() 96 dev_err(gc->parent, "Failed to set GPIO %u to input (%d %x)\n", in rpi_exp_gpio_dir_in() 103 static int rpi_exp_gpio_dir_out(struct gpio_chip *gc, unsigned int off, int val) in rpi_exp_gpio_dir_out() argument 109 gpio = gpiochip_get_data(gc); in rpi_exp_gpio_dir_out() [all …]
|
H A D | gpio-mb86s7x.c | 36 struct gpio_chip gc; member 41 static int mb86s70_gpio_request(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_request() argument 43 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_request() 58 static void mb86s70_gpio_free(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_free() argument 60 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_free() 73 static int mb86s70_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_direction_input() argument 75 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_direction_input() 90 static int mb86s70_gpio_direction_output(struct gpio_chip *gc, in mb86s70_gpio_direction_output() argument 93 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_direction_output() 115 static int mb86s70_gpio_get(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_get() argument [all …]
|
H A D | gpio-xlp.c | 95 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in xlp_gpio_irq_enable() local 97 gpiochip_enable_irq(gc, irqd_to_hwirq(d)); in xlp_gpio_irq_enable() 102 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in xlp_gpio_irq_disable() local 103 struct xlp_gpio_priv *priv = gpiochip_get_data(gc); in xlp_gpio_irq_disable() 110 gpiochip_disable_irq(gc, irqd_to_hwirq(d)); in xlp_gpio_irq_disable() 115 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in xlp_gpio_irq_mask_ack() local 116 struct xlp_gpio_priv *priv = gpiochip_get_data(gc); in xlp_gpio_irq_mask_ack() 128 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in xlp_gpio_irq_unmask() local 129 struct xlp_gpio_priv *priv = gpiochip_get_data(gc); in xlp_gpio_irq_unmask() 140 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in xlp_gpio_set_irq_type() local [all …]
|
H A D | gpio-idt3243x.c | 21 struct gpio_chip gc; member 29 struct gpio_chip *gc = irq_desc_get_handler_data(desc); in idt_gpio_dispatch() local 30 struct idt_gpio_ctrl *ctrl = gpiochip_get_data(gc); in idt_gpio_dispatch() 39 for_each_set_bit(bit, &pending, gc->ngpio) { in idt_gpio_dispatch() 40 virq = irq_linear_revmap(gc->irq.domain, bit); in idt_gpio_dispatch() 50 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in idt_gpio_irq_set_type() local 51 struct idt_gpio_ctrl *ctrl = gpiochip_get_data(gc); in idt_gpio_irq_set_type() 60 raw_spin_lock_irqsave(&gc->bgpio_lock, flags); in idt_gpio_irq_set_type() 71 raw_spin_unlock_irqrestore(&gc->bgpio_lock, flags); in idt_gpio_irq_set_type() 77 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in idt_gpio_ack() local [all …]
|
H A D | gpio-en7523.c | 23 struct gpio_chip gc; member 29 static struct airoha_gpio_ctrl *gc_to_ctrl(struct gpio_chip *gc) in gc_to_ctrl() argument 31 return container_of(gc, struct airoha_gpio_ctrl, gc); in gc_to_ctrl() 34 static int airoha_dir_set(struct gpio_chip *gc, unsigned int gpio, in airoha_dir_set() argument 37 struct airoha_gpio_ctrl *ctrl = gc_to_ctrl(gc); in airoha_dir_set() 53 gc->set(gc, gpio, val); in airoha_dir_set() 60 static int airoha_dir_out(struct gpio_chip *gc, unsigned int gpio, in airoha_dir_out() argument 63 return airoha_dir_set(gc, gpio, val, 1); in airoha_dir_out() 66 static int airoha_dir_in(struct gpio_chip *gc, unsigned int gpio) in airoha_dir_in() argument 68 return airoha_dir_set(gc, gpio, 0, 0); in airoha_dir_in() [all …]
|
/linux/kernel/irq/ |
H A D | generic-chip.c | 39 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_mask_disable_reg() local 43 irq_gc_lock(gc); in irq_gc_mask_disable_reg() 44 irq_reg_writel(gc, mask, ct->regs.disable); in irq_gc_mask_disable_reg() 46 irq_gc_unlock(gc); in irq_gc_mask_disable_reg() 59 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_mask_set_bit() local 63 irq_gc_lock(gc); in irq_gc_mask_set_bit() 65 irq_reg_writel(gc, *ct->mask_cache, ct->regs.mask); in irq_gc_mask_set_bit() 66 irq_gc_unlock(gc); in irq_gc_mask_set_bit() 79 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_mask_clr_bit() local 83 irq_gc_lock(gc); in irq_gc_mask_clr_bit() [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-atmel-aic.c | 62 struct irq_domain_chip_generic *dgc = aic_domain->gc; in aic_handle() 63 struct irq_chip_generic *gc = dgc->gc[0]; in aic_handle() local 67 irqnr = irq_reg_readl(gc, AT91_AIC_IVR); in aic_handle() 68 irqstat = irq_reg_readl(gc, AT91_AIC_ISR); in aic_handle() 71 irq_reg_writel(gc, 0, AT91_AIC_EOICR); in aic_handle() 78 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_retrigger() local 81 irq_gc_lock(gc); in aic_retrigger() 82 irq_reg_writel(gc, d->mask, AT91_AIC_ISCR); in aic_retrigger() 83 irq_gc_unlock(gc); in aic_retrigger() 90 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_set_type() local [all …]
|
H A D | irq-tb10x.c | 30 static inline void ab_irqctl_writereg(struct irq_chip_generic *gc, u32 reg, in ab_irqctl_writereg() argument 33 irq_reg_writel(gc, val, reg); in ab_irqctl_writereg() 36 static inline u32 ab_irqctl_readreg(struct irq_chip_generic *gc, u32 reg) in ab_irqctl_readreg() argument 38 return irq_reg_readl(gc, reg); in ab_irqctl_readreg() 43 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in tb10x_irq_set_type() local 48 irq_gc_lock(gc); in tb10x_irq_set_type() 50 mod = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_MODE) | im; in tb10x_irq_set_type() 51 pol = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_POLARITY) | im; in tb10x_irq_set_type() 70 irq_gc_unlock(gc); in tb10x_irq_set_type() 79 ab_irqctl_writereg(gc, AB_IRQCTL_SRC_MODE, mod); in tb10x_irq_set_type() [all …]
|
H A D | irq-sunxi-nmi.c | 75 static inline void sunxi_sc_nmi_write(struct irq_chip_generic *gc, u32 off, in sunxi_sc_nmi_write() argument 78 irq_reg_writel(gc, val, off); in sunxi_sc_nmi_write() 81 static inline u32 sunxi_sc_nmi_read(struct irq_chip_generic *gc, u32 off) in sunxi_sc_nmi_read() argument 83 return irq_reg_readl(gc, off); in sunxi_sc_nmi_read() 98 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in sunxi_sc_nmi_set_type() local 99 struct irq_chip_type *ct = gc->chip_types; in sunxi_sc_nmi_set_type() 105 irq_gc_lock(gc); in sunxi_sc_nmi_set_type() 122 irq_gc_unlock(gc); in sunxi_sc_nmi_set_type() 131 for (i = 0; i < gc->num_ct; i++, ct++) in sunxi_sc_nmi_set_type() 135 src_type_reg = sunxi_sc_nmi_read(gc, ctrl_off); in sunxi_sc_nmi_set_type() [all …]
|
H A D | irq-lan966x-oic.c | 69 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in lan966x_oic_irq_startup() local 71 struct lan966x_oic_chip_regs *chip_regs = gc->private; in lan966x_oic_irq_startup() 74 irq_gc_lock(gc); in lan966x_oic_irq_startup() 77 map = irq_reg_readl(gc, chip_regs->reg_off_map); in lan966x_oic_irq_startup() 79 irq_reg_writel(gc, map, chip_regs->reg_off_map); in lan966x_oic_irq_startup() 81 irq_gc_unlock(gc); in lan966x_oic_irq_startup() 91 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in lan966x_oic_irq_shutdown() local 93 struct lan966x_oic_chip_regs *chip_regs = gc->private; in lan966x_oic_irq_shutdown() 98 irq_gc_lock(gc); in lan966x_oic_irq_shutdown() 101 map = irq_reg_readl(gc, chip_regs->reg_off_map); in lan966x_oic_irq_shutdown() [all …]
|
H A D | irq-loongson-liointc.c | 60 struct irq_chip_generic *gc; member 75 struct irq_chip_generic *gc = handler->priv->gc; in liointc_chained_handle_irq() local 86 (handler->parent_int_map & gc->mask_cache & in liointc_chained_handle_irq() 96 generic_handle_domain_irq(gc->domain, bit); in liointc_chained_handle_irq() 103 static void liointc_set_bit(struct irq_chip_generic *gc, in liointc_set_bit() argument 108 writel(readl(gc->reg_base + offset) | mask, in liointc_set_bit() 109 gc->reg_base + offset); in liointc_set_bit() 111 writel(readl(gc->reg_base + offset) & ~mask, in liointc_set_bit() 112 gc->reg_base + offset); in liointc_set_bit() 117 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in liointc_set_type() local [all …]
|
H A D | irq-orion.c | 35 struct irq_domain_chip_generic *dgc = orion_irq_domain->gc; in orion_handle_irq() 39 struct irq_chip_generic *gc = in orion_handle_irq() local 41 u32 stat = readl_relaxed(gc->reg_base + ORION_IRQ_CAUSE) & in orion_handle_irq() 42 gc->mask_cache; in orion_handle_irq() 46 gc->irq_base + hwirq); in orion_handle_irq() 76 struct irq_chip_generic *gc = in orion_irq_init() local 85 gc->reg_base = ioremap(r.start, resource_size(&r)); in orion_irq_init() 86 if (!gc->reg_base) in orion_irq_init() 89 gc->chip_types[0].regs.mask = ORION_IRQ_MASK; in orion_irq_init() 90 gc->chip_types[0].chip.irq_mask = irq_gc_mask_clr_bit; in orion_irq_init() [all …]
|
H A D | irq-atmel-aic5.c | 89 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic5_mask() local 96 irq_reg_writel(gc, d->hwirq, AT91_AIC5_SSR); in aic5_mask() 97 irq_reg_writel(gc, 1, AT91_AIC5_IDCR); in aic5_mask() 98 gc->mask_cache &= ~d->mask; in aic5_mask() 106 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic5_unmask() local 113 irq_reg_writel(gc, d->hwirq, AT91_AIC5_SSR); in aic5_unmask() 114 irq_reg_writel(gc, 1, AT91_AIC5_IECR); in aic5_unmask() 115 gc->mask_cache |= d->mask; in aic5_unmask() 157 struct irq_domain_chip_generic *dgc = domain->gc; in aic5_suspend() 159 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic5_suspend() local [all …]
|
H A D | irq-stm32-exti.c | 108 static unsigned long stm32_exti_pending(struct irq_chip_generic *gc) in stm32_exti_pending() argument 110 struct stm32_exti_chip_data *chip_data = gc->private; in stm32_exti_pending() 113 return irq_reg_readl(gc, stm32_bank->rpr_ofst); in stm32_exti_pending() 120 unsigned int nbanks = domain->gc->num_chips; in stm32_irq_handler() 121 struct irq_chip_generic *gc; in stm32_irq_handler() local 128 gc = irq_get_domain_generic_chip(domain, irq_base); in stm32_irq_handler() 130 while ((pending = stm32_exti_pending(gc))) { in stm32_irq_handler() 166 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in stm32_irq_set_type() local 167 struct stm32_exti_chip_data *chip_data = gc->private; in stm32_irq_set_type() 172 irq_gc_lock(gc); in stm32_irq_set_type() [all …]
|
/linux/drivers/input/joystick/ |
H A D | gamecon.c | 70 struct gc { struct 84 static struct gc *gc_base[3]; argument 130 static void gc_n64_send_command(struct gc *gc, unsigned long cmd, in gc_n64_send_command() argument 133 struct parport *port = gc->pd->port; in gc_n64_send_command() 144 static void gc_n64_send_stop_bit(struct gc *gc, unsigned char target) in gc_n64_send_stop_bit() argument 146 struct parport *port = gc->pd->port; in gc_n64_send_stop_bit() 162 static void gc_n64_read_packet(struct gc *gc, unsigned char *data) in gc_n64_read_packet() argument 172 gc_n64_send_command(gc, GC_N64_REQUEST_DATA, GC_N64_OUT); in gc_n64_read_packet() 173 gc_n64_send_stop_bit(gc, GC_N64_OUT); in gc_n64_read_packet() 188 parport_write_data(gc->pd->port, GC_N64_POWER_R); in gc_n64_read_packet() [all …]
|
/linux/include/linux/gpio/ |
H A D | driver.h | 102 int (*child_to_parent_hwirq)(struct gpio_chip *gc, 117 int (*populate_parent_alloc_arg)(struct gpio_chip *gc, 130 unsigned int (*child_offset_to_irq)(struct gpio_chip *gc, 263 int (*init_hw)(struct gpio_chip *gc); 274 void (*init_valid_mask)(struct gpio_chip *gc, 424 int (*request)(struct gpio_chip *gc, 426 void (*free)(struct gpio_chip *gc, 428 int (*get_direction)(struct gpio_chip *gc, 430 int (*direction_input)(struct gpio_chip *gc, 432 int (*direction_output)(struct gpio_chip *gc, [all …]
|
/linux/drivers/net/ethernet/microsoft/mana/ |
H A D | gdma_main.c | 26 struct gdma_context *gc = pci_get_drvdata(pdev); in mana_gd_init_pf_regs() local 30 gc->db_page_size = mana_gd_r32(gc, GDMA_PF_REG_DB_PAGE_SIZE) & 0xFFFF; in mana_gd_init_pf_regs() 31 gc->db_page_base = gc->bar0_va + in mana_gd_init_pf_regs() 32 mana_gd_r64(gc, GDMA_PF_REG_DB_PAGE_OFF); in mana_gd_init_pf_regs() 34 sriov_base_off = mana_gd_r64(gc, GDMA_SRIOV_REG_CFG_BASE_OFF); in mana_gd_init_pf_regs() 36 sriov_base_va = gc->bar0_va + sriov_base_off; in mana_gd_init_pf_regs() 37 gc->shm_base = sriov_base_va + in mana_gd_init_pf_regs() 38 mana_gd_r64(gc, sriov_base_off + GDMA_PF_REG_SHM_OFF); in mana_gd_init_pf_regs() 43 struct gdma_context *gc = pci_get_drvdata(pdev); in mana_gd_init_vf_regs() local 45 gc->db_page_size = mana_gd_r32(gc, GDMA_REG_DB_PAGE_SIZE) & 0xFFFF; in mana_gd_init_vf_regs() [all …]
|