Searched refs:gc (Results 101 - 125 of 339) sorted by relevance

1234567891011>>

/linux-master/drivers/gpio/
H A Dgpio-mm-lantiq.c54 * @gc: Pointer to gpio_chip device structure.
60 static void ltq_mm_set(struct gpio_chip *gc, unsigned offset, int value) argument
62 struct ltq_mm *chip = gpiochip_get_data(gc);
73 * @gc: Pointer to gpio_chip device structure.
79 static int ltq_mm_dir_out(struct gpio_chip *gc, unsigned offset, int value) argument
81 ltq_mm_set(gc, offset, value);
112 chip->mmchip.gc.ngpio = 16;
113 chip->mmchip.gc.direction_output = ltq_mm_dir_out;
114 chip->mmchip.gc.set = ltq_mm_set;
H A Dgpio-vf610.c32 struct gpio_chip gc; member in struct:vf610_gpio_port
97 static int vf610_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument
99 struct vf610_gpio_port *port = gpiochip_get_data(gc);
112 static void vf610_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument
114 struct vf610_gpio_port *port = gpiochip_get_data(gc);
169 generic_handle_domain_irq(port->gc.irq.domain, pin);
222 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
223 struct vf610_gpio_port *port = gpiochip_get_data(gc);
228 gpiochip_disable_irq(gc, gpio_num);
233 struct gpio_chip *gc local
277 struct gpio_chip *gc; local
[all...]
H A Dgpio-da9052.c53 static int da9052_gpio_get(struct gpio_chip *gc, unsigned offset) argument
55 struct da9052_gpio *gpio = gpiochip_get_data(gc);
92 static void da9052_gpio_set(struct gpio_chip *gc, unsigned offset, int value) argument
94 struct da9052_gpio *gpio = gpiochip_get_data(gc);
118 static int da9052_gpio_direction_input(struct gpio_chip *gc, unsigned offset) argument
120 struct da9052_gpio *gpio = gpiochip_get_data(gc);
143 static int da9052_gpio_direction_output(struct gpio_chip *gc, argument
146 struct da9052_gpio *gpio = gpiochip_get_data(gc);
169 static int da9052_gpio_to_irq(struct gpio_chip *gc, u32 offset) argument
171 struct da9052_gpio *gpio = gpiochip_get_data(gc);
[all...]
H A Dgpio-stp-xway.c81 struct gpio_chip gc; member in struct:xway_stp
96 * @gc: Pointer to gpio_chip device structure.
101 static int xway_stp_get(struct gpio_chip *gc, unsigned int gpio) argument
103 struct xway_stp *chip = gpiochip_get_data(gc);
110 * @gc: Pointer to gpio_chip device structure.
116 static void xway_stp_set(struct gpio_chip *gc, unsigned gpio, int val) argument
118 struct xway_stp *chip = gpiochip_get_data(gc);
131 * @gc: Pointer to gpio_chip device structure.
137 static int xway_stp_dir_out(struct gpio_chip *gc, unsigned gpio, int val) argument
139 xway_stp_set(gc, gpi
151 xway_stp_request(struct gpio_chip *gc, unsigned gpio) argument
[all...]
H A Dgpio-rockchip.c173 static void rockchip_gpio_set(struct gpio_chip *gc, unsigned int offset, argument
176 struct rockchip_pin_bank *bank = gpiochip_get_data(gc);
184 static int rockchip_gpio_get(struct gpio_chip *gc, unsigned int offset) argument
186 struct rockchip_pin_bank *bank = gpiochip_get_data(gc);
196 static int rockchip_gpio_set_debounce(struct gpio_chip *gc, argument
200 struct rockchip_pin_bank *bank = gpiochip_get_data(gc);
257 static int rockchip_gpio_direction_input(struct gpio_chip *gc, argument
260 return rockchip_gpio_set_direction(gc, offset, true);
263 static int rockchip_gpio_direction_output(struct gpio_chip *gc, argument
266 rockchip_gpio_set(gc, offse
276 rockchip_gpio_set_config(struct gpio_chip *gc, unsigned int offset, unsigned long config) argument
305 rockchip_gpio_to_irq(struct gpio_chip *gc, unsigned int offset) argument
385 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); local
470 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); local
478 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); local
486 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); local
495 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); local
514 struct irq_chip_generic *gc; local
577 struct gpio_chip *gc; local
[all...]
H A Dgpio-max732x.c190 static int max732x_gpio_get_value(struct gpio_chip *gc, unsigned off) argument
192 struct max732x_chip *chip = gpiochip_get_data(gc);
203 static void max732x_gpio_set_mask(struct gpio_chip *gc, unsigned off, int mask, argument
206 struct max732x_chip *chip = gpiochip_get_data(gc);
228 static void max732x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val) argument
233 max732x_gpio_set_mask(gc, base, mask, val << (off & 0x7));
236 static void max732x_gpio_set_multiple(struct gpio_chip *gc, argument
243 max732x_gpio_set_mask(gc, 0, mask_lo, bits[0] & 0xff);
245 max732x_gpio_set_mask(gc, 8, mask_hi, (bits[0] >> 8) & 0xff);
248 static int max732x_gpio_direction_input(struct gpio_chip *gc, unsigne argument
269 max732x_gpio_direction_output(struct gpio_chip *gc, unsigned off, int val) argument
346 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
355 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
364 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
373 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
392 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
552 struct gpio_chip *gc = &chip->gpio_chip; local
[all...]
H A Dgpio-pca953x.c526 static int pca953x_gpio_direction_input(struct gpio_chip *gc, unsigned off) argument
528 struct pca953x_chip *chip = gpiochip_get_data(gc);
537 static int pca953x_gpio_direction_output(struct gpio_chip *gc, argument
540 struct pca953x_chip *chip = gpiochip_get_data(gc);
557 static int pca953x_gpio_get_value(struct gpio_chip *gc, unsigned off) argument
559 struct pca953x_chip *chip = gpiochip_get_data(gc);
573 static void pca953x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val) argument
575 struct pca953x_chip *chip = gpiochip_get_data(gc);
584 static int pca953x_gpio_get_direction(struct gpio_chip *gc, unsigned off) argument
586 struct pca953x_chip *chip = gpiochip_get_data(gc);
603 pca953x_gpio_get_multiple(struct gpio_chip *gc, unsigned long *mask, unsigned long *bits) argument
619 pca953x_gpio_set_multiple(struct gpio_chip *gc, unsigned long *mask, unsigned long *bits) argument
673 pca953x_gpio_set_config(struct gpio_chip *gc, unsigned int offset, unsigned long config) argument
691 struct gpio_chip *gc = &chip->gpio_chip; local
713 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
723 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
733 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
746 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
754 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
786 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
804 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
814 struct gpio_chip *gc = irq_data_get_irq_chip_data(data); local
834 struct gpio_chip *gc = &chip->gpio_chip; local
890 struct gpio_chip *gc = &chip->gpio_chip; local
924 struct gpio_chip *gc = &chip->gpio_chip; local
[all...]
H A Dgpio-sch.c100 static int sch_gpio_direction_in(struct gpio_chip *gc, unsigned int gpio_num) argument
102 struct sch_gpio *sch = gpiochip_get_data(gc);
111 static int sch_gpio_get(struct gpio_chip *gc, unsigned int gpio_num) argument
113 struct sch_gpio *sch = gpiochip_get_data(gc);
118 static void sch_gpio_set(struct gpio_chip *gc, unsigned int gpio_num, int val) argument
120 struct sch_gpio *sch = gpiochip_get_data(gc);
128 static int sch_gpio_direction_out(struct gpio_chip *gc, unsigned int gpio_num, argument
131 struct sch_gpio *sch = gpiochip_get_data(gc);
147 sch_gpio_set(gc, gpio_num, val);
151 static int sch_gpio_get_direction(struct gpio_chip *gc, unsigne argument
173 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
210 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
220 sch_irq_mask_unmask(struct gpio_chip *gc, irq_hw_number_t gpio_num, int val) argument
232 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
241 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
261 struct gpio_chip *gc = &sch->chip; local
[all...]
H A Dgpio-tps65910.c25 static int tps65910_gpio_get(struct gpio_chip *gc, unsigned offset) argument
27 struct tps65910_gpio *tps65910_gpio = gpiochip_get_data(gc);
39 static void tps65910_gpio_set(struct gpio_chip *gc, unsigned offset, argument
42 struct tps65910_gpio *tps65910_gpio = gpiochip_get_data(gc);
53 static int tps65910_gpio_output(struct gpio_chip *gc, unsigned offset, argument
56 struct tps65910_gpio *tps65910_gpio = gpiochip_get_data(gc);
60 tps65910_gpio_set(gc, offset, value);
66 static int tps65910_gpio_input(struct gpio_chip *gc, unsigned offset) argument
68 struct tps65910_gpio *tps65910_gpio = gpiochip_get_data(gc);
H A Dgpio-xgene.c37 static int xgene_gpio_get(struct gpio_chip *gc, unsigned int offset) argument
39 struct xgene_gpio *chip = gpiochip_get_data(gc);
48 static void __xgene_gpio_set(struct gpio_chip *gc, unsigned int offset, int val) argument
50 struct xgene_gpio *chip = gpiochip_get_data(gc);
65 static void xgene_gpio_set(struct gpio_chip *gc, unsigned int offset, int val) argument
67 struct xgene_gpio *chip = gpiochip_get_data(gc);
71 __xgene_gpio_set(gc, offset, val);
75 static int xgene_gpio_get_direction(struct gpio_chip *gc, unsigned int offset) argument
77 struct xgene_gpio *chip = gpiochip_get_data(gc);
89 static int xgene_gpio_dir_in(struct gpio_chip *gc, unsigne argument
109 xgene_gpio_dir_out(struct gpio_chip *gc, unsigned int offset, int val) argument
[all...]
H A Dgpio-xtensa.c72 static int xtensa_impwire_get_direction(struct gpio_chip *gc, unsigned offset) argument
77 static int xtensa_impwire_get_value(struct gpio_chip *gc, unsigned offset) argument
89 static void xtensa_impwire_set_value(struct gpio_chip *gc, unsigned offset, argument
95 static int xtensa_expstate_get_direction(struct gpio_chip *gc, unsigned offset) argument
100 static int xtensa_expstate_get_value(struct gpio_chip *gc, unsigned offset) argument
112 static void xtensa_expstate_set_value(struct gpio_chip *gc, unsigned offset, argument
H A Dgpio-mt7621.c68 struct gpio_chip *gc = &rg->chip; local
69 struct mtk *mtk = gpiochip_get_data(gc);
72 gc->write_reg(mtk->base + offset, val);
78 struct gpio_chip *gc = &rg->chip; local
79 struct mtk *mtk = gpiochip_get_data(gc);
82 return gc->read_reg(mtk->base + offset);
88 struct gpio_chip *gc = data; local
89 struct mtk_gc *rg = to_mediatek_gpio(gc);
97 generic_handle_domain_irq(gc->irq.domain, bit);
108 struct gpio_chip *gc local
131 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
154 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
[all...]
H A Dgpio-ljca.c60 struct gpio_chip gc; member in struct:ljca_gpio_dev
271 for_each_set_bit(gpio_id, ljca_gpio->reenable_irqs, ljca_gpio->gc.ngpio) {
290 irq = irq_find_mapping(ljca_gpio->gc.irq.domain,
293 dev_err(ljca_gpio->gc.parent,
299 generic_handle_domain_irq(ljca_gpio->gc.irq.domain, irq);
308 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); local
309 struct ljca_gpio_dev *ljca_gpio = gpiochip_get_data(gc);
312 gpiochip_enable_irq(gc, gpio_id);
318 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); local
319 struct ljca_gpio_dev *ljca_gpio = gpiochip_get_data(gc);
328 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); local
361 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); local
369 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); local
[all...]
H A Dgpio-mlxbf.c40 struct gpio_chip gc; member in struct:mlxbf_gpio_state
54 struct gpio_chip *gc; local
65 gc = &gs->gc;
66 ret = bgpio_init(gc, dev, 8,
76 gc->owner = THIS_MODULE;
77 gc->ngpio = MLXBF_GPIO_NR;
79 ret = devm_gpiochip_add_data(dev, &gs->gc, gs);
H A Dgpio-xilinx.c46 * @gc: GPIO chip
61 struct gpio_chip gc; member in struct:xgpio_instance
131 int bit, lastbit = xgpio_to_bit(chip, chip->gc.ngpio - 1);
139 int bit, lastbit = xgpio_to_bit(chip, chip->gc.ngpio - 1);
147 * @gc: Pointer to gpio_chip device structure.
156 static int xgpio_get(struct gpio_chip *gc, unsigned int gpio) argument
158 struct xgpio_instance *chip = gpiochip_get_data(gc);
169 * @gc: Pointer to gpio_chip device structure.
176 static void xgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument
179 struct xgpio_instance *chip = gpiochip_get_data(gc);
201 xgpio_set_multiple(struct gpio_chip *gc, unsigned long *mask, unsigned long *bits) argument
233 xgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) argument
262 xgpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument
504 struct gpio_chip *gc = &chip->gc; local
[all...]
/linux-master/drivers/infiniband/hw/mana/
H A Dcq.c15 struct gdma_context *gc; local
19 gc = mdev_to_gc(mdev);
24 if (attr->comp_vector > gc->max_num_queues)
80 struct gdma_context *gc; local
84 gc = mdev_to_gc(mdev);
94 kfree(gc->cq_table[cq->id]);
95 gc->cq_table[cq->id] = NULL;
113 struct gdma_context *gc = mdev_to_gc(mdev); local
117 WARN_ON(gc->cq_table[cq->id]);
126 gc
[all...]
H A Dmain.c76 struct gdma_context *gc; local
80 gc = mdev_to_gc(dev);
86 err = mana_gd_send_request(gc, sizeof(req), &req,
116 struct gdma_context *gc; local
120 gc = mdev_to_gc(dev);
126 err = mana_gd_send_request(gc, sizeof(req), &req,
140 static int mana_gd_destroy_doorbell_page(struct gdma_context *gc, argument
154 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp);
156 dev_err(gc->dev,
165 static int mana_gd_allocate_doorbell_page(struct gdma_context *gc, argument
202 struct gdma_context *gc; local
229 struct gdma_context *gc; local
241 mana_ib_gd_first_dma_region(struct mana_ib_dev *dev, struct gdma_context *gc, struct gdma_create_dma_region_req *create_req, size_t num_pages, mana_handle_t *gdma_region, u32 expected_status) argument
275 mana_ib_gd_add_dma_region(struct mana_ib_dev *dev, struct gdma_context *gc, struct gdma_dma_region_add_pages_req *add_req, unsigned int num_pages, u32 expected_status) argument
315 struct gdma_context *gc; local
441 struct gdma_context *gc = mdev_to_gc(dev); local
454 struct gdma_context *gc; local
[all...]
/linux-master/arch/sh/boards/mach-se/7722/
H A Dirq.c68 struct irq_chip_generic *gc; local
74 gc = irq_alloc_generic_chip(DRV_NAME, 1, irq_base, se7722_irq_regs,
76 if (unlikely(!gc))
79 ct = gc->chip_types;
85 irq_setup_generic_chip(gc, IRQ_MSK(SE7722_FPGA_IRQ_NR),
/linux-master/drivers/irqchip/
H A Dirq-ingenic.c38 struct irq_chip_generic *gc; local
43 gc = irq_get_domain_generic_chip(domain, i * 32);
45 pending = irq_reg_readl(gc, JZ_REG_INTC_PENDING);
64 struct irq_chip_generic *gc; local
109 gc = irq_get_domain_generic_chip(domain, i * 32);
111 gc->wake_enabled = IRQ_MSK(32);
112 gc->reg_base = intc->base + (i * CHIP_SIZE);
114 ct = gc->chip_types;
124 irq_reg_writel(gc, IRQ_MSK(32), JZ_REG_INTC_SET_MASK);
H A Dirq-goldfish-pic.c59 struct irq_chip_generic *gc; local
87 gc = irq_alloc_generic_chip("GFPIC", 1, GFPIC_IRQ_BASE, gfpic->base,
89 if (!gc) {
95 ct = gc->chip_types;
101 irq_setup_generic_chip(gc, IRQ_MSK(GFPIC_NR_IRQS), 0,
121 irq_destroy_generic_chip(gc, IRQ_MSK(GFPIC_NR_IRQS),
H A Dirq-csky-apb-intc.c48 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); local
53 irq_gc_lock(gc);
55 irq_reg_writel(gc, *ct->mask_cache, ct->regs.mask);
56 irq_reg_writel(gc, irq_reg_readl(gc, ifr) & ~mask, ifr);
57 irq_gc_unlock(gc);
63 struct irq_chip_generic *gc; local
65 gc = irq_get_domain_generic_chip(root_domain, irq_base);
66 gc->reg_base = reg_base;
67 gc
[all...]
/linux-master/drivers/pinctrl/bcm/
H A Dpinctrl-iproc-gpio.c92 * @gc: GPIO chip
112 struct gpio_chip gc; member in struct:iproc_gpio
167 struct gpio_chip *gc = irq_desc_get_handler_data(desc); local
168 struct iproc_gpio *chip = gpiochip_get_data(gc);
189 generic_handle_domain_irq(gc->irq.domain, pin);
199 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
200 struct iproc_gpio *chip = gpiochip_get_data(gc);
218 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
219 struct iproc_gpio *chip = gpiochip_get_data(gc);
227 struct gpio_chip *gc local
239 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
251 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
309 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
330 iproc_gpio_request(struct gpio_chip *gc, unsigned offset) argument
341 iproc_gpio_free(struct gpio_chip *gc, unsigned offset) argument
351 iproc_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) argument
365 iproc_gpio_direction_output(struct gpio_chip *gc, unsigned gpio, int val) argument
381 iproc_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) argument
393 iproc_gpio_set(struct gpio_chip *gc, unsigned gpio, int val) argument
405 iproc_gpio_get(struct gpio_chip *gc, unsigned gpio) argument
762 struct gpio_chip *gc = &chip->gc; local
807 struct gpio_chip *gc; local
[all...]
/linux-master/drivers/pinctrl/starfive/
H A Dpinctrl-starfive-jh7100.c207 struct gpio_chip gc; member in struct:starfive_pinctrl
230 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); local
232 return container_of(gc, struct starfive_pinctrl, gc);
237 struct gpio_chip *gc = irq_desc_get_handler_data(desc); local
239 return container_of(gc, struct starfive_pinctrl, gc);
482 struct device *dev = sfp->gc.parent;
647 struct device *dev = sfp->gc.parent;
716 dev_dbg(sfp->gc
919 starfive_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) argument
930 starfive_gpio_direction_input(struct gpio_chip *gc, unsigned int gpio) argument
948 starfive_gpio_direction_output(struct gpio_chip *gc, unsigned int gpio, int value) argument
969 starfive_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument
977 starfive_gpio_set(struct gpio_chip *gc, unsigned int gpio, int value) argument
989 starfive_gpio_set_config(struct gpio_chip *gc, unsigned int gpio, unsigned long config) argument
1032 starfive_gpio_add_pin_ranges(struct gpio_chip *gc) argument
1198 starfive_gpio_init_hw(struct gpio_chip *gc) argument
[all...]
/linux-master/drivers/staging/media/atomisp/pci/isp/kernels/gc/gc_1.0/
H A Dia_css_gc_param.h59 u16 gc[SH_CSS_ISP_GC_TABLE_SIZE]; member in struct:sh_css_isp_gc_vamem_params
H A Dia_css_gc.host.h46 const struct sh_css_isp_gc_params *gc,

Completed in 406 milliseconds

1234567891011>>