Home
last modified time | relevance | path

Searched refs:gc (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/linux-6.6.21/drivers/gpio/
Dgpio-mmio.c127 static unsigned long bgpio_line2mask(struct gpio_chip *gc, unsigned int line) in bgpio_line2mask() argument
129 if (gc->be_bits) in bgpio_line2mask()
130 return BIT(gc->bgpio_bits - 1 - line); in bgpio_line2mask()
134 static int bgpio_get_set(struct gpio_chip *gc, unsigned int gpio) in bgpio_get_set() argument
136 unsigned long pinmask = bgpio_line2mask(gc, gpio); in bgpio_get_set()
137 bool dir = !!(gc->bgpio_dir & pinmask); in bgpio_get_set()
140 return !!(gc->read_reg(gc->reg_set) & pinmask); in bgpio_get_set()
142 return !!(gc->read_reg(gc->reg_dat) & pinmask); in bgpio_get_set()
149 static int bgpio_get_set_multiple(struct gpio_chip *gc, unsigned long *mask, in bgpio_get_set_multiple() argument
158 set_mask = *mask & gc->bgpio_dir; in bgpio_get_set_multiple()
[all …]
Dgpiolib.c101 static void gpiochip_free_hogs(struct gpio_chip *gc);
102 static int gpiochip_add_irqchip(struct gpio_chip *gc,
105 static void gpiochip_irqchip_remove(struct gpio_chip *gc);
106 static int gpiochip_irqchip_init_hw(struct gpio_chip *gc);
107 static int gpiochip_irqchip_init_valid_mask(struct gpio_chip *gc);
108 static void gpiochip_irqchip_free_valid_mask(struct gpio_chip *gc);
159 struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc, in gpiochip_get_desc() argument
162 struct gpio_device *gdev = gc->gpiodev; in gpiochip_get_desc()
235 struct gpio_chip *gc; in gpiod_get_direction() local
239 gc = gpiod_to_chip(desc); in gpiod_get_direction()
[all …]
Dgpio-mpc8xxx.c36 struct gpio_chip gc; member
62 static int mpc8572_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc8572_gpio_get() argument
65 struct mpc8xxx_gpio_chip *mpc8xxx_gc = gpiochip_get_data(gc); in mpc8572_gpio_get()
68 out_mask = gc->read_reg(mpc8xxx_gc->regs + GPIO_DIR); in mpc8572_gpio_get()
69 val = gc->read_reg(mpc8xxx_gc->regs + GPIO_DAT) & ~out_mask; in mpc8572_gpio_get()
70 out_shadow = gc->bgpio_data & out_mask; in mpc8572_gpio_get()
75 static int mpc5121_gpio_dir_out(struct gpio_chip *gc, in mpc5121_gpio_dir_out() argument
78 struct mpc8xxx_gpio_chip *mpc8xxx_gc = gpiochip_get_data(gc); in mpc5121_gpio_dir_out()
83 return mpc8xxx_gc->direction_output(gc, gpio, val); in mpc5121_gpio_dir_out()
86 static int mpc5125_gpio_dir_out(struct gpio_chip *gc, in mpc5125_gpio_dir_out() argument
[all …]
Dgpio-reg.c22 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 …]
Dgpio-mpc5200.c44 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 …]
Dgpio-max77650.c36 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 …]
Dgpio-tps68470.c26 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 …]
Dgpio-tb10x.c45 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 …]
Dgpio-mockup.c50 struct gpio_chip gc; member
89 static int gpio_mockup_get(struct gpio_chip *gc, unsigned int offset) in gpio_mockup_get() argument
91 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_get()
101 static int gpio_mockup_get_multiple(struct gpio_chip *gc, in gpio_mockup_get_multiple() argument
104 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_get_multiple()
108 for_each_set_bit(bit, mask, gc->ngpio) { in gpio_mockup_get_multiple()
123 static void gpio_mockup_set(struct gpio_chip *gc, in gpio_mockup_set() argument
126 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_set()
133 static void gpio_mockup_set_multiple(struct gpio_chip *gc, in gpio_mockup_set_multiple() argument
136 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_set_multiple()
[all …]
Dgpio-ep93xx.c53 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 …]
Dgpio-grgpio.c61 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 …]
Dgpio-brcmstb.c39 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 …]
Dgpio-raspberrypi-exp.c26 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 …]
Dgpio-idt3243x.c21 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 …]
Dgpio-pl061.c55 struct gpio_chip gc; member
63 static int pl061_get_direction(struct gpio_chip *gc, unsigned offset) in pl061_get_direction() argument
65 struct pl061 *pl061 = gpiochip_get_data(gc); in pl061_get_direction()
73 static int pl061_direction_input(struct gpio_chip *gc, unsigned offset) in pl061_direction_input() argument
75 struct pl061 *pl061 = gpiochip_get_data(gc); in pl061_direction_input()
88 static int pl061_direction_output(struct gpio_chip *gc, unsigned offset, in pl061_direction_output() argument
91 struct pl061 *pl061 = gpiochip_get_data(gc); in pl061_direction_output()
111 static int pl061_get_value(struct gpio_chip *gc, unsigned offset) in pl061_get_value() argument
113 struct pl061 *pl061 = gpiochip_get_data(gc); in pl061_get_value()
118 static void pl061_set_value(struct gpio_chip *gc, unsigned offset, int value) in pl061_set_value() argument
[all …]
/linux-6.6.21/kernel/irq/
Dgeneric-chip.c39 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.6.21/drivers/irqchip/
Dirq-atmel-aic.c63 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 …]
Dirq-tb10x.c30 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 …]
Dirq-sunxi-nmi.c75 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 …]
Dirq-loongson-liointc.c58 struct irq_chip_generic *gc; member
73 struct irq_chip_generic *gc = handler->priv->gc; in liointc_chained_handle_irq() local
84 (handler->parent_int_map & gc->mask_cache & in liointc_chained_handle_irq()
94 generic_handle_domain_irq(gc->domain, bit); in liointc_chained_handle_irq()
101 static void liointc_set_bit(struct irq_chip_generic *gc, in liointc_set_bit() argument
106 writel(readl(gc->reg_base + offset) | mask, in liointc_set_bit()
107 gc->reg_base + offset); in liointc_set_bit()
109 writel(readl(gc->reg_base + offset) & ~mask, in liointc_set_bit()
110 gc->reg_base + offset); in liointc_set_bit()
115 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in liointc_set_type() local
[all …]
Dirq-orion.c35 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 …]
Dirq-atmel-aic5.c90 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.6.21/include/linux/gpio/
Ddriver.h100 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,
261 int (*init_hw)(struct gpio_chip *gc);
272 void (*init_valid_mask)(struct gpio_chip *gc,
422 int (*request)(struct gpio_chip *gc,
424 void (*free)(struct gpio_chip *gc,
426 int (*get_direction)(struct gpio_chip *gc,
428 int (*direction_input)(struct gpio_chip *gc,
430 int (*direction_output)(struct gpio_chip *gc,
[all …]
/linux-6.6.21/drivers/input/joystick/
Dgamecon.c70 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.6.21/drivers/net/ethernet/microsoft/mana/
Dgdma_main.c23 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 …]

12345678910>>...15