/linux-6.1.9/drivers/gpio/ |
D | gpio-mmio.c | 125 static unsigned long bgpio_line2mask(struct gpio_chip *gc, unsigned int line) in bgpio_line2mask() argument 127 if (gc->be_bits) in bgpio_line2mask() 128 return BIT(gc->bgpio_bits - 1 - line); in bgpio_line2mask() 132 static int bgpio_get_set(struct gpio_chip *gc, unsigned int gpio) in bgpio_get_set() argument 134 unsigned long pinmask = bgpio_line2mask(gc, gpio); in bgpio_get_set() 135 bool dir = !!(gc->bgpio_dir & pinmask); in bgpio_get_set() 138 return !!(gc->read_reg(gc->reg_set) & pinmask); in bgpio_get_set() 140 return !!(gc->read_reg(gc->reg_dat) & pinmask); in bgpio_get_set() 147 static int bgpio_get_set_multiple(struct gpio_chip *gc, unsigned long *mask, in bgpio_get_set_multiple() argument 156 set_mask = *mask & gc->bgpio_dir; in bgpio_get_set_multiple() [all …]
|
D | gpiolib.c | 83 static void gpiochip_free_hogs(struct gpio_chip *gc); 84 static int gpiochip_add_irqchip(struct gpio_chip *gc, 87 static void gpiochip_irqchip_remove(struct gpio_chip *gc); 88 static int gpiochip_irqchip_init_hw(struct gpio_chip *gc); 89 static int gpiochip_irqchip_init_valid_mask(struct gpio_chip *gc); 90 static void gpiochip_irqchip_free_valid_mask(struct gpio_chip *gc); 141 struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc, in gpiochip_get_desc() argument 144 struct gpio_device *gdev = gc->gpiodev; in gpiochip_get_desc() 215 struct gpio_chip *gc; in gpiod_get_direction() local 219 gc = gpiod_to_chip(desc); in gpiod_get_direction() [all …]
|
D | gpio-mpc8xxx.c | 39 struct gpio_chip gc; member 65 static int mpc8572_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc8572_gpio_get() argument 68 struct mpc8xxx_gpio_chip *mpc8xxx_gc = gpiochip_get_data(gc); in mpc8572_gpio_get() 71 out_mask = gc->read_reg(mpc8xxx_gc->regs + GPIO_DIR); in mpc8572_gpio_get() 72 val = gc->read_reg(mpc8xxx_gc->regs + GPIO_DAT) & ~out_mask; in mpc8572_gpio_get() 73 out_shadow = gc->bgpio_data & out_mask; in mpc8572_gpio_get() 78 static int mpc5121_gpio_dir_out(struct gpio_chip *gc, in mpc5121_gpio_dir_out() argument 81 struct mpc8xxx_gpio_chip *mpc8xxx_gc = gpiochip_get_data(gc); in mpc5121_gpio_dir_out() 86 return mpc8xxx_gc->direction_output(gc, gpio, val); in mpc5121_gpio_dir_out() 89 static int mpc5125_gpio_dir_out(struct gpio_chip *gc, in mpc5125_gpio_dir_out() argument [all …]
|
D | gpio-reg.c | 14 struct gpio_chip gc; member 23 #define to_gpio_reg(x) container_of(x, struct gpio_reg, gc) 25 static int gpio_reg_get_direction(struct gpio_chip *gc, unsigned offset) in gpio_reg_get_direction() argument 27 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_get_direction() 33 static int gpio_reg_direction_output(struct gpio_chip *gc, unsigned offset, in gpio_reg_direction_output() argument 36 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_output() 41 gc->set(gc, offset, value); in gpio_reg_direction_output() 45 static int gpio_reg_direction_input(struct gpio_chip *gc, unsigned offset) in gpio_reg_direction_input() argument 47 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_input() 52 static void gpio_reg_set(struct gpio_chip *gc, unsigned offset, int value) in gpio_reg_set() argument [all …]
|
D | gpio-mpc5200.c | 44 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get() argument 46 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_get() 58 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set() argument 60 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_wkup_gpio_set() 61 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in __mpc52xx_wkup_gpio_set() 73 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set() argument 79 __mpc52xx_wkup_gpio_set(gc, gpio, val); in mpc52xx_wkup_gpio_set() 86 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in() argument 88 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_in() 89 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in mpc52xx_wkup_gpio_dir_in() [all …]
|
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 …]
|
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 …]
|
D | gpio-tb10x.c | 45 struct gpio_chip gc; member 65 raw_spin_lock_irqsave(&gpio->gc.bgpio_lock, flags); in tb10x_set_bits() 72 raw_spin_unlock_irqrestore(&gpio->gc.bgpio_lock, flags); in tb10x_set_bits() 130 tb10x_gpio->gc.label = in tb10x_gpio_probe() 132 if (!tb10x_gpio->gc.label) in tb10x_gpio_probe() 140 ret = bgpio_init(&tb10x_gpio->gc, dev, 4, in tb10x_gpio_probe() 151 tb10x_gpio->gc.base = -1; in tb10x_gpio_probe() 152 tb10x_gpio->gc.parent = dev; in tb10x_gpio_probe() 153 tb10x_gpio->gc.owner = THIS_MODULE; in tb10x_gpio_probe() 158 tb10x_gpio->gc.ngpio = ngpio; in tb10x_gpio_probe() [all …]
|
D | gpio-mockup.c | 49 struct gpio_chip gc; member 88 static int gpio_mockup_get(struct gpio_chip *gc, unsigned int offset) in gpio_mockup_get() argument 90 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_get() 100 static int gpio_mockup_get_multiple(struct gpio_chip *gc, in gpio_mockup_get_multiple() argument 103 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_get_multiple() 107 for_each_set_bit(bit, mask, gc->ngpio) { in gpio_mockup_get_multiple() 122 static void gpio_mockup_set(struct gpio_chip *gc, in gpio_mockup_set() argument 125 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_set() 132 static void gpio_mockup_set_multiple(struct gpio_chip *gc, in gpio_mockup_set_multiple() argument 135 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_set_multiple() [all …]
|
D | gpio-grgpio.c | 61 struct gpio_chip gc; member 93 struct gpio_chip *gc = &priv->gc; in grgpio_set_imask() local 99 gc->write_reg(priv->regs + GRGPIO_IMASK, priv->imask); in grgpio_set_imask() 102 static int grgpio_to_irq(struct gpio_chip *gc, unsigned offset) in grgpio_to_irq() argument 104 struct grgpio_priv *priv = gpiochip_get_data(gc); in grgpio_to_irq() 106 if (offset >= gc->ngpio) in grgpio_to_irq() 148 raw_spin_lock_irqsave(&priv->gc.bgpio_lock, flags); in grgpio_irq_set_type() 150 ipol = priv->gc.read_reg(priv->regs + GRGPIO_IPOL) & ~mask; in grgpio_irq_set_type() 151 iedge = priv->gc.read_reg(priv->regs + GRGPIO_IEDGE) & ~mask; in grgpio_irq_set_type() 153 priv->gc.write_reg(priv->regs + GRGPIO_IPOL, ipol | pol); in grgpio_irq_set_type() [all …]
|
D | gpio-brcmstb.c | 39 struct gpio_chip gc; member 64 brcmstb_gpio_gc_to_priv(struct gpio_chip *gc) in brcmstb_gpio_gc_to_priv() argument 66 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); in brcmstb_gpio_gc_to_priv() 75 return bank->gc.read_reg(reg_base + GIO_STAT(bank->id)) & in __brcmstb_gpio_get_active_irqs() 76 bank->gc.read_reg(reg_base + GIO_MASK(bank->id)); in __brcmstb_gpio_get_active_irqs() 85 raw_spin_lock_irqsave(&bank->gc.bgpio_lock, flags); in brcmstb_gpio_get_active_irqs() 87 raw_spin_unlock_irqrestore(&bank->gc.bgpio_lock, flags); in brcmstb_gpio_get_active_irqs() 95 return hwirq - (bank->gc.base - bank->parent_priv->gpio_base); in brcmstb_gpio_hwirq_to_offset() 101 struct gpio_chip *gc = &bank->gc; in brcmstb_gpio_set_imask() local 107 raw_spin_lock_irqsave(&gc->bgpio_lock, flags); in brcmstb_gpio_set_imask() [all …]
|
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 …]
|
D | gpio-ucb1400.c | 12 static int ucb1400_gpio_dir_in(struct gpio_chip *gc, unsigned off) in ucb1400_gpio_dir_in() argument 15 gpio = gpiochip_get_data(gc); in ucb1400_gpio_dir_in() 20 static int ucb1400_gpio_dir_out(struct gpio_chip *gc, unsigned off, int val) in ucb1400_gpio_dir_out() argument 23 gpio = gpiochip_get_data(gc); in ucb1400_gpio_dir_out() 29 static int ucb1400_gpio_get(struct gpio_chip *gc, unsigned off) in ucb1400_gpio_get() argument 33 gpio = gpiochip_get_data(gc); in ucb1400_gpio_get() 37 static void ucb1400_gpio_set(struct gpio_chip *gc, unsigned off, int val) in ucb1400_gpio_set() argument 40 gpio = gpiochip_get_data(gc); in ucb1400_gpio_set() 56 ucb->gc.label = "ucb1400_gpio"; in ucb1400_gpio_probe() 57 ucb->gc.base = ucb->gpio_offset; in ucb1400_gpio_probe() [all …]
|
D | gpio-loongson1.c | 24 static int ls1x_gpio_request(struct gpio_chip *gc, unsigned int offset) in ls1x_gpio_request() argument 28 raw_spin_lock_irqsave(&gc->bgpio_lock, flags); in ls1x_gpio_request() 31 raw_spin_unlock_irqrestore(&gc->bgpio_lock, flags); in ls1x_gpio_request() 36 static void ls1x_gpio_free(struct gpio_chip *gc, unsigned int offset) in ls1x_gpio_free() argument 40 raw_spin_lock_irqsave(&gc->bgpio_lock, flags); in ls1x_gpio_free() 43 raw_spin_unlock_irqrestore(&gc->bgpio_lock, flags); in ls1x_gpio_free() 49 struct gpio_chip *gc; in ls1x_gpio_probe() local 52 gc = devm_kzalloc(dev, sizeof(*gc), GFP_KERNEL); in ls1x_gpio_probe() 53 if (!gc) in ls1x_gpio_probe() 60 ret = bgpio_init(gc, dev, 4, gpio_reg_base + GPIO_DATA, in ls1x_gpio_probe() [all …]
|
D | gpio-ep93xx.c | 53 struct gpio_chip gc; member 59 struct ep93xx_gpio_chip gc[EP93XX_GPIO_CHIP_NUM]; member 62 #define to_ep93xx_gpio_chip(x) container_of(x, struct ep93xx_gpio_chip, gc) 64 static struct ep93xx_gpio_irq_chip *to_ep93xx_gpio_irq_chip(struct gpio_chip *gc) in to_ep93xx_gpio_irq_chip() argument 66 struct ep93xx_gpio_chip *egc = to_ep93xx_gpio_chip(gc); in to_ep93xx_gpio_irq_chip() 97 static void ep93xx_gpio_int_debounce(struct gpio_chip *gc, in ep93xx_gpio_int_debounce() argument 100 struct ep93xx_gpio *epg = gpiochip_get_data(gc); in ep93xx_gpio_int_debounce() 101 struct ep93xx_gpio_irq_chip *eic = to_ep93xx_gpio_irq_chip(gc); in ep93xx_gpio_int_debounce() 115 struct gpio_chip *gc = irq_desc_get_handler_data(desc); in ep93xx_gpio_ab_irq_handler() local 116 struct ep93xx_gpio *epg = gpiochip_get_data(gc); in ep93xx_gpio_ab_irq_handler() [all …]
|
D | gpio-pl061.c | 54 struct gpio_chip gc; member 62 static int pl061_get_direction(struct gpio_chip *gc, unsigned offset) in pl061_get_direction() argument 64 struct pl061 *pl061 = gpiochip_get_data(gc); in pl061_get_direction() 72 static int pl061_direction_input(struct gpio_chip *gc, unsigned offset) in pl061_direction_input() argument 74 struct pl061 *pl061 = gpiochip_get_data(gc); in pl061_direction_input() 87 static int pl061_direction_output(struct gpio_chip *gc, unsigned offset, in pl061_direction_output() argument 90 struct pl061 *pl061 = gpiochip_get_data(gc); in pl061_direction_output() 110 static int pl061_get_value(struct gpio_chip *gc, unsigned offset) in pl061_get_value() argument 112 struct pl061 *pl061 = gpiochip_get_data(gc); in pl061_get_value() 117 static void pl061_set_value(struct gpio_chip *gc, unsigned offset, int value) in pl061_set_value() argument [all …]
|
/linux-6.1.9/kernel/irq/ |
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-6.1.9/drivers/irqchip/ |
D | irq-atmel-aic.c | 63 struct irq_domain_chip_generic *dgc = aic_domain->gc; in aic_handle() 64 struct irq_chip_generic *gc = dgc->gc[0]; in aic_handle() local 68 irqnr = irq_reg_readl(gc, AT91_AIC_IVR); in aic_handle() 69 irqstat = irq_reg_readl(gc, AT91_AIC_ISR); in aic_handle() 72 irq_reg_writel(gc, 0, AT91_AIC_EOICR); in aic_handle() 79 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_retrigger() local 82 irq_gc_lock(gc); in aic_retrigger() 83 irq_reg_writel(gc, d->mask, AT91_AIC_ISCR); in aic_retrigger() 84 irq_gc_unlock(gc); in aic_retrigger() 91 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_set_type() local [all …]
|
D | irq-tb10x.c | 31 static inline void ab_irqctl_writereg(struct irq_chip_generic *gc, u32 reg, in ab_irqctl_writereg() argument 34 irq_reg_writel(gc, val, reg); in ab_irqctl_writereg() 37 static inline u32 ab_irqctl_readreg(struct irq_chip_generic *gc, u32 reg) in ab_irqctl_readreg() argument 39 return irq_reg_readl(gc, reg); in ab_irqctl_readreg() 44 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in tb10x_irq_set_type() local 49 irq_gc_lock(gc); in tb10x_irq_set_type() 51 mod = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_MODE) | im; in tb10x_irq_set_type() 52 pol = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_POLARITY) | im; in tb10x_irq_set_type() 71 irq_gc_unlock(gc); in tb10x_irq_set_type() 80 ab_irqctl_writereg(gc, AB_IRQCTL_SRC_MODE, mod); in tb10x_irq_set_type() [all …]
|
D | irq-sunxi-nmi.c | 76 static inline void sunxi_sc_nmi_write(struct irq_chip_generic *gc, u32 off, in sunxi_sc_nmi_write() argument 79 irq_reg_writel(gc, val, off); in sunxi_sc_nmi_write() 82 static inline u32 sunxi_sc_nmi_read(struct irq_chip_generic *gc, u32 off) in sunxi_sc_nmi_read() argument 84 return irq_reg_readl(gc, off); in sunxi_sc_nmi_read() 99 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in sunxi_sc_nmi_set_type() local 100 struct irq_chip_type *ct = gc->chip_types; in sunxi_sc_nmi_set_type() 106 irq_gc_lock(gc); in sunxi_sc_nmi_set_type() 123 irq_gc_unlock(gc); in sunxi_sc_nmi_set_type() 132 for (i = 0; i < gc->num_ct; i++, ct++) in sunxi_sc_nmi_set_type() 136 src_type_reg = sunxi_sc_nmi_read(gc, ctrl_off); in sunxi_sc_nmi_set_type() [all …]
|
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() 77 struct irq_chip_generic *gc = in orion_irq_init() local 86 gc->reg_base = ioremap(r.start, resource_size(&r)); in orion_irq_init() 87 if (!gc->reg_base) in orion_irq_init() 90 gc->chip_types[0].regs.mask = ORION_IRQ_MASK; in orion_irq_init() 91 gc->chip_types[0].chip.irq_mask = irq_gc_mask_clr_bit; in orion_irq_init() [all …]
|
D | irq-atmel-aic5.c | 90 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic5_mask() local 97 irq_reg_writel(gc, d->hwirq, AT91_AIC5_SSR); in aic5_mask() 98 irq_reg_writel(gc, 1, AT91_AIC5_IDCR); in aic5_mask() 99 gc->mask_cache &= ~d->mask; in aic5_mask() 107 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic5_unmask() local 114 irq_reg_writel(gc, d->hwirq, AT91_AIC5_SSR); in aic5_unmask() 115 irq_reg_writel(gc, 1, AT91_AIC5_IECR); in aic5_unmask() 116 gc->mask_cache |= d->mask; in aic5_unmask() 158 struct irq_domain_chip_generic *dgc = domain->gc; in aic5_suspend() 160 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic5_suspend() local [all …]
|
/linux-6.1.9/include/linux/gpio/ |
D | driver.h | 100 int (*child_to_parent_hwirq)(struct gpio_chip *gc, 115 int (*populate_parent_alloc_arg)(struct gpio_chip *gc, 128 unsigned int (*child_offset_to_irq)(struct gpio_chip *gc, 253 int (*init_hw)(struct gpio_chip *gc); 264 void (*init_valid_mask)(struct gpio_chip *gc, 414 int (*request)(struct gpio_chip *gc, 416 void (*free)(struct gpio_chip *gc, 418 int (*get_direction)(struct gpio_chip *gc, 420 int (*direction_input)(struct gpio_chip *gc, 422 int (*direction_output)(struct gpio_chip *gc, [all …]
|
/linux-6.1.9/drivers/input/joystick/ |
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-6.1.9/drivers/net/ethernet/microsoft/mana/ |
D | gdma_main.c | 23 struct gdma_context *gc = pci_get_drvdata(pdev); in mana_gd_init_pf_regs() local 27 gc->db_page_size = mana_gd_r32(gc, GDMA_PF_REG_DB_PAGE_SIZE) & 0xFFFF; in mana_gd_init_pf_regs() 28 gc->db_page_base = gc->bar0_va + in mana_gd_init_pf_regs() 29 mana_gd_r64(gc, GDMA_PF_REG_DB_PAGE_OFF); in mana_gd_init_pf_regs() 31 sriov_base_off = mana_gd_r64(gc, GDMA_SRIOV_REG_CFG_BASE_OFF); in mana_gd_init_pf_regs() 33 sriov_base_va = gc->bar0_va + sriov_base_off; in mana_gd_init_pf_regs() 34 gc->shm_base = sriov_base_va + in mana_gd_init_pf_regs() 35 mana_gd_r64(gc, sriov_base_off + GDMA_PF_REG_SHM_OFF); in mana_gd_init_pf_regs() 40 struct gdma_context *gc = pci_get_drvdata(pdev); in mana_gd_init_vf_regs() local 42 gc->db_page_size = mana_gd_r32(gc, GDMA_REG_DB_PAGE_SIZE) & 0xFFFF; in mana_gd_init_vf_regs() [all …]
|