/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpio-omap.c | 77 void (*set_dataout)(struct gpio_bank *bank, unsigned gpio, int enable); 83 #define BANK_USED(bank) (bank->mod_usage || bank->irq_usage) 108 static void omap_set_gpio_direction(struct gpio_bank *bank, int gpio, in omap_set_gpio_direction() argument 111 bank->context.oe = omap_gpio_rmw(bank->base + bank->regs->direction, in omap_set_gpio_direction() 117 static void omap_set_gpio_dataout_reg(struct gpio_bank *bank, unsigned offset, in omap_set_gpio_dataout_reg() argument 120 void __iomem *reg = bank in omap_set_gpio_dataout_reg() 135 omap_set_gpio_dataout_mask(struct gpio_bank *bank, unsigned offset, int enable) omap_set_gpio_dataout_mask() argument 142 omap_gpio_dbck_enable(struct gpio_bank *bank) omap_gpio_dbck_enable() argument 153 omap_gpio_dbck_disable(struct gpio_bank *bank) omap_gpio_dbck_disable() argument 180 omap2_set_gpio_debounce(struct gpio_bank *bank, unsigned offset, unsigned debounce) omap2_set_gpio_debounce() argument 232 omap_clear_gpio_debounce(struct gpio_bank *bank, unsigned offset) omap_clear_gpio_debounce() argument 262 omap_gpio_is_off_wakeup_capable(struct gpio_bank *bank, u32 gpio_mask) omap_gpio_is_off_wakeup_capable() argument 272 omap_set_gpio_trigger(struct gpio_bank *bank, int gpio, unsigned trigger) omap_set_gpio_trigger() argument 324 omap_toggle_gpio_edge_triggering(struct gpio_bank *bank, int gpio) omap_toggle_gpio_edge_triggering() argument 333 omap_set_gpio_triggering(struct gpio_bank *bank, int gpio, unsigned trigger) omap_set_gpio_triggering() argument 373 omap_enable_gpio_module(struct gpio_bank *bank, unsigned offset) omap_enable_gpio_module() argument 394 omap_disable_gpio_module(struct gpio_bank *bank, unsigned offset) omap_disable_gpio_module() argument 408 omap_gpio_is_input(struct gpio_bank *bank, unsigned offset) omap_gpio_is_input() argument 415 omap_gpio_init_irq(struct gpio_bank *bank, unsigned offset) omap_gpio_init_irq() argument 426 struct gpio_bank *bank = omap_irq_data_get_bank(d); omap_gpio_irq_type() local 469 omap_clear_gpio_irqbank(struct gpio_bank *bank, int gpio_mask) omap_clear_gpio_irqbank() argument 486 omap_clear_gpio_irqstatus(struct gpio_bank *bank, unsigned offset) omap_clear_gpio_irqstatus() argument 492 omap_get_gpio_irqbank_mask(struct gpio_bank *bank) omap_get_gpio_irqbank_mask() argument 506 omap_set_gpio_irqenable(struct gpio_bank *bank, unsigned offset, int enable) omap_set_gpio_irqenable() argument 544 struct gpio_bank *bank = omap_irq_data_get_bank(d); omap_gpio_wake_enable() local 563 struct gpio_bank *bank = gpiobank; omap_gpio_irq_handler() local 627 struct gpio_bank *bank = omap_irq_data_get_bank(d); omap_gpio_irq_startup() local 646 struct gpio_bank *bank = omap_irq_data_get_bank(d); omap_gpio_irq_shutdown() local 663 struct gpio_bank *bank = omap_irq_data_get_bank(data); omap_gpio_irq_bus_lock() local 670 struct gpio_bank *bank = omap_irq_data_get_bank(data); gpio_irq_bus_sync_unlock() local 677 struct gpio_bank *bank = omap_irq_data_get_bank(d); omap_gpio_mask_irq() local 689 struct gpio_bank *bank = omap_irq_data_get_bank(d); omap_gpio_unmask_irq() local 716 struct gpio_bank *bank = dev_get_drvdata(dev); omap_mpuio_suspend_noirq() local 730 struct gpio_bank *bank = dev_get_drvdata(dev); omap_mpuio_resume_noirq() local 764 omap_mpuio_init(struct gpio_bank *bank) omap_mpuio_init() argument 776 struct gpio_bank *bank = gpiochip_get_data(chip); omap_gpio_request() local 791 struct gpio_bank *bank = gpiochip_get_data(chip); omap_gpio_free() local 808 struct gpio_bank *bank = gpiochip_get_data(chip); omap_gpio_get_direction() local 818 struct gpio_bank *bank; omap_gpio_input() local 830 struct gpio_bank *bank = gpiochip_get_data(chip); omap_gpio_get() local 843 struct gpio_bank *bank; omap_gpio_output() local 857 struct gpio_bank *bank = gpiochip_get_data(chip); omap_gpio_get_multiple() local 879 struct gpio_bank *bank; omap_gpio_debounce() local 922 struct gpio_bank *bank; omap_gpio_set() local 934 struct gpio_bank *bank = gpiochip_get_data(chip); omap_gpio_set_multiple() local 948 omap_gpio_show_rev(struct gpio_bank *bank) omap_gpio_show_rev() argument 963 omap_gpio_mod_init(struct gpio_bank *bank) omap_gpio_mod_init() argument 990 omap_gpio_chip_init(struct gpio_bank *bank, struct irq_chip *irqc) omap_gpio_chip_init() argument 1091 omap_gpio_restore_context(struct gpio_bank *bank) omap_gpio_restore_context() argument 1116 omap_gpio_idle(struct gpio_bank *bank, bool may_lose_context) omap_gpio_idle() argument 1163 omap_gpio_unidle(struct gpio_bank *bank) omap_gpio_unidle() argument 1257 struct gpio_bank *bank; gpio_omap_cpu_notifier() local 1381 struct gpio_bank *bank; omap_gpio_probe() local 1498 struct gpio_bank *bank = platform_get_drvdata(pdev); omap_gpio_remove() local 1511 struct gpio_bank *bank = dev_get_drvdata(dev); omap_gpio_runtime_suspend() local 1524 struct gpio_bank *bank = dev_get_drvdata(dev); omap_gpio_runtime_resume() local 1537 struct gpio_bank *bank = dev_get_drvdata(dev); omap_gpio_suspend() local 1549 struct gpio_bank *bank = dev_get_drvdata(dev); omap_gpio_resume() local [all...] |
H A D | gpio-brcmstb.c | 36 #define GIO_BANK_OFF(bank, off) (((bank) * GIO_BANK_SIZE) + (off * sizeof(u32))) 37 #define GIO_ODEN(bank) GIO_BANK_OFF(bank, GIO_REG_ODEN) 38 #define GIO_DATA(bank) GIO_BANK_OFF(bank, GIO_REG_DATA) 39 #define GIO_IODIR(bank) GIO_BANK_OFF(bank, GIO_REG_IODIR) 40 #define GIO_EC(bank) GIO_BANK_OFF(bank, GIO_REG_E 76 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_gc_to_priv() local 81 __brcmstb_gpio_get_active_irqs(struct brcmstb_gpio_bank *bank) __brcmstb_gpio_get_active_irqs() argument 90 brcmstb_gpio_get_active_irqs(struct brcmstb_gpio_bank *bank) brcmstb_gpio_get_active_irqs() argument 102 brcmstb_gpio_hwirq_to_offset(irq_hw_number_t hwirq, struct brcmstb_gpio_bank *bank) brcmstb_gpio_hwirq_to_offset() argument 108 brcmstb_gpio_set_imask(struct brcmstb_gpio_bank *bank, unsigned int hwirq, bool enable) brcmstb_gpio_set_imask() argument 143 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_irq_mask() local 151 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_irq_unmask() local 159 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_irq_ack() local 169 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_irq_set_type() local 245 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_irq_set_wake() local 272 brcmstb_gpio_irq_bank_handler(struct brcmstb_gpio_bank *bank) brcmstb_gpio_irq_bank_handler() argument 298 struct brcmstb_gpio_bank *bank; brcmstb_gpio_irq_handler() local 312 struct brcmstb_gpio_bank *bank; brcmstb_gpio_hwirq_to_bank() local 336 struct brcmstb_gpio_bank *bank = brcmstb_gpio_irq_map() local 388 struct brcmstb_gpio_bank *bank; brcmstb_gpio_remove() local 422 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_of_xlate() local 513 brcmstb_gpio_bank_save(struct brcmstb_gpio_priv *priv, struct brcmstb_gpio_bank *bank) brcmstb_gpio_bank_save() argument 527 struct brcmstb_gpio_bank *bank; brcmstb_gpio_quiesce() local 558 brcmstb_gpio_bank_restore(struct brcmstb_gpio_priv *priv, struct brcmstb_gpio_bank *bank) brcmstb_gpio_bank_restore() argument 578 struct brcmstb_gpio_bank *bank; brcmstb_gpio_resume() local 606 brcmstb_gpio_set_names(struct device *dev, struct brcmstb_gpio_bank *bank) brcmstb_gpio_set_names() argument 705 struct brcmstb_gpio_bank *bank; brcmstb_gpio_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-omap.c | 78 void (*set_dataout)(struct gpio_bank *bank, unsigned gpio, int enable); 84 #define BANK_USED(bank) (bank->mod_usage || bank->irq_usage) 109 static void omap_set_gpio_direction(struct gpio_bank *bank, int gpio, in omap_set_gpio_direction() argument 112 bank->context.oe = omap_gpio_rmw(bank->base + bank->regs->direction, in omap_set_gpio_direction() 118 static void omap_set_gpio_dataout_reg(struct gpio_bank *bank, unsigned offset, in omap_set_gpio_dataout_reg() argument 121 void __iomem *reg = bank in omap_set_gpio_dataout_reg() 136 omap_set_gpio_dataout_mask(struct gpio_bank *bank, unsigned offset, int enable) omap_set_gpio_dataout_mask() argument 143 omap_gpio_dbck_enable(struct gpio_bank *bank) omap_gpio_dbck_enable() argument 154 omap_gpio_dbck_disable(struct gpio_bank *bank) omap_gpio_dbck_disable() argument 181 omap2_set_gpio_debounce(struct gpio_bank *bank, unsigned offset, unsigned debounce) omap2_set_gpio_debounce() argument 233 omap_clear_gpio_debounce(struct gpio_bank *bank, unsigned offset) omap_clear_gpio_debounce() argument 263 omap_gpio_is_off_wakeup_capable(struct gpio_bank *bank, u32 gpio_mask) omap_gpio_is_off_wakeup_capable() argument 273 omap_set_gpio_trigger(struct gpio_bank *bank, int gpio, unsigned trigger) omap_set_gpio_trigger() argument 325 omap_toggle_gpio_edge_triggering(struct gpio_bank *bank, int gpio) omap_toggle_gpio_edge_triggering() argument 334 omap_set_gpio_triggering(struct gpio_bank *bank, int gpio, unsigned trigger) omap_set_gpio_triggering() argument 374 omap_enable_gpio_module(struct gpio_bank *bank, unsigned offset) omap_enable_gpio_module() argument 395 omap_disable_gpio_module(struct gpio_bank *bank, unsigned offset) omap_disable_gpio_module() argument 409 omap_gpio_is_input(struct gpio_bank *bank, unsigned offset) omap_gpio_is_input() argument 416 omap_gpio_init_irq(struct gpio_bank *bank, unsigned offset) omap_gpio_init_irq() argument 427 struct gpio_bank *bank = omap_irq_data_get_bank(d); omap_gpio_irq_type() local 470 omap_clear_gpio_irqbank(struct gpio_bank *bank, int gpio_mask) omap_clear_gpio_irqbank() argument 487 omap_clear_gpio_irqstatus(struct gpio_bank *bank, unsigned offset) omap_clear_gpio_irqstatus() argument 493 omap_get_gpio_irqbank_mask(struct gpio_bank *bank) omap_get_gpio_irqbank_mask() argument 507 omap_set_gpio_irqenable(struct gpio_bank *bank, unsigned offset, int enable) omap_set_gpio_irqenable() argument 545 struct gpio_bank *bank = omap_irq_data_get_bank(d); omap_gpio_wake_enable() local 564 struct gpio_bank *bank = gpiobank; omap_gpio_irq_handler() local 627 struct gpio_bank *bank = omap_irq_data_get_bank(d); omap_gpio_irq_startup() local 646 struct gpio_bank *bank = omap_irq_data_get_bank(d); omap_gpio_irq_shutdown() local 663 struct gpio_bank *bank = omap_irq_data_get_bank(data); omap_gpio_irq_bus_lock() local 670 struct gpio_bank *bank = omap_irq_data_get_bank(data); gpio_irq_bus_sync_unlock() local 677 struct gpio_bank *bank = omap_irq_data_get_bank(d); omap_gpio_mask_irq() local 690 struct gpio_bank *bank = omap_irq_data_get_bank(d); omap_gpio_unmask_irq() local 716 struct gpio_bank *bank = omap_irq_data_get_bank(d); omap_gpio_irq_print_chip() local 752 struct gpio_bank *bank = dev_get_drvdata(dev); omap_mpuio_suspend_noirq() local 766 struct gpio_bank *bank = dev_get_drvdata(dev); omap_mpuio_resume_noirq() local 800 omap_mpuio_init(struct gpio_bank *bank) omap_mpuio_init() argument 812 struct gpio_bank *bank = gpiochip_get_data(chip); omap_gpio_request() local 827 struct gpio_bank *bank = gpiochip_get_data(chip); omap_gpio_free() local 844 struct gpio_bank *bank = gpiochip_get_data(chip); omap_gpio_get_direction() local 854 struct gpio_bank *bank; omap_gpio_input() local 866 struct gpio_bank *bank = gpiochip_get_data(chip); omap_gpio_get() local 879 struct gpio_bank *bank; omap_gpio_output() local 893 struct gpio_bank *bank = gpiochip_get_data(chip); omap_gpio_get_multiple() local 915 struct gpio_bank *bank; omap_gpio_debounce() local 958 struct gpio_bank *bank; omap_gpio_set() local 970 struct gpio_bank *bank = gpiochip_get_data(chip); omap_gpio_set_multiple() local 984 omap_gpio_show_rev(struct gpio_bank *bank) omap_gpio_show_rev() argument 999 omap_gpio_mod_init(struct gpio_bank *bank) omap_gpio_mod_init() argument 1026 omap_gpio_chip_init(struct gpio_bank *bank, struct device *pm_dev) omap_gpio_chip_init() argument 1110 omap_gpio_restore_context(struct gpio_bank *bank) omap_gpio_restore_context() argument 1135 omap_gpio_idle(struct gpio_bank *bank, bool may_lose_context) omap_gpio_idle() argument 1182 omap_gpio_unidle(struct gpio_bank *bank) omap_gpio_unidle() argument 1276 struct gpio_bank *bank; gpio_omap_cpu_notifier() local 1399 struct gpio_bank *bank; omap_gpio_probe() local 1494 struct gpio_bank *bank = platform_get_drvdata(pdev); omap_gpio_remove() local 1507 struct gpio_bank *bank = dev_get_drvdata(dev); omap_gpio_runtime_suspend() local 1520 struct gpio_bank *bank = dev_get_drvdata(dev); omap_gpio_runtime_resume() local 1533 struct gpio_bank *bank = dev_get_drvdata(dev); omap_gpio_suspend() local 1545 struct gpio_bank *bank = dev_get_drvdata(dev); omap_gpio_resume() local [all...] |
H A D | gpio-rockchip.c | 76 static inline void rockchip_gpio_writel(struct rockchip_pin_bank *bank, in rockchip_gpio_writel() argument 79 void __iomem *reg = bank->reg_base + offset; in rockchip_gpio_writel() 81 if (bank->gpio_type == GPIO_TYPE_V2) in rockchip_gpio_writel() 87 static inline u32 rockchip_gpio_readl(struct rockchip_pin_bank *bank, in rockchip_gpio_readl() argument 90 void __iomem *reg = bank->reg_base + offset; in rockchip_gpio_readl() 93 if (bank->gpio_type == GPIO_TYPE_V2) in rockchip_gpio_readl() 101 static inline void rockchip_gpio_writel_bit(struct rockchip_pin_bank *bank, in rockchip_gpio_writel_bit() argument 105 void __iomem *reg = bank->reg_base + offset; in rockchip_gpio_writel_bit() 108 if (bank->gpio_type == GPIO_TYPE_V2) { in rockchip_gpio_writel_bit() 123 static inline u32 rockchip_gpio_readl_bit(struct rockchip_pin_bank *bank, in rockchip_gpio_readl_bit() argument 143 struct rockchip_pin_bank *bank = gpiochip_get_data(chip); rockchip_gpio_get_direction() local 156 struct rockchip_pin_bank *bank = gpiochip_get_data(chip); rockchip_gpio_set_direction() local 176 struct rockchip_pin_bank *bank = gpiochip_get_data(gc); rockchip_gpio_set() local 186 struct rockchip_pin_bank *bank = gpiochip_get_data(gc); rockchip_gpio_get() local 200 struct rockchip_pin_bank *bank = gpiochip_get_data(gc); rockchip_gpio_set_debounce() local 307 struct rockchip_pin_bank *bank = gpiochip_get_data(gc); rockchip_gpio_to_irq() local 334 struct rockchip_pin_bank *bank = irq_desc_get_handler_data(desc); rockchip_irq_demux() local 386 struct rockchip_pin_bank *bank = gc->private; rockchip_irq_set_type() local 471 struct rockchip_pin_bank *bank = gc->private; rockchip_irq_reqres() local 479 struct rockchip_pin_bank *bank = gc->private; rockchip_irq_relres() local 487 struct rockchip_pin_bank *bank = gc->private; rockchip_irq_suspend() local 496 struct rockchip_pin_bank *bank = gc->private; rockchip_irq_resume() local 511 rockchip_interrupts_register(struct rockchip_pin_bank *bank) rockchip_interrupts_register() argument 575 rockchip_gpiolib_register(struct rockchip_pin_bank *bank) rockchip_gpiolib_register() argument 639 rockchip_get_bank_data(struct rockchip_pin_bank *bank) rockchip_get_bank_data() argument 686 struct rockchip_pin_bank *bank; rockchip_gpio_find_bank() local 707 struct rockchip_pin_bank *bank = NULL; rockchip_gpio_probe() local 783 struct rockchip_pin_bank *bank = platform_get_drvdata(pdev); rockchip_gpio_remove() local [all...] |
H A D | gpio-brcmstb.c | 26 #define GIO_BANK_OFF(bank, off) (((bank) * GIO_BANK_SIZE) + (off * sizeof(u32))) 27 #define GIO_ODEN(bank) GIO_BANK_OFF(bank, GIO_REG_ODEN) 28 #define GIO_DATA(bank) GIO_BANK_OFF(bank, GIO_REG_DATA) 29 #define GIO_IODIR(bank) GIO_BANK_OFF(bank, GIO_REG_IODIR) 30 #define GIO_EC(bank) GIO_BANK_OFF(bank, GIO_REG_E 66 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_gc_to_priv() local 71 __brcmstb_gpio_get_active_irqs(struct brcmstb_gpio_bank *bank) __brcmstb_gpio_get_active_irqs() argument 80 brcmstb_gpio_get_active_irqs(struct brcmstb_gpio_bank *bank) brcmstb_gpio_get_active_irqs() argument 92 brcmstb_gpio_hwirq_to_offset(irq_hw_number_t hwirq, struct brcmstb_gpio_bank *bank) brcmstb_gpio_hwirq_to_offset() argument 98 brcmstb_gpio_set_imask(struct brcmstb_gpio_bank *bank, unsigned int hwirq, bool enable) brcmstb_gpio_set_imask() argument 133 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_irq_mask() local 141 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_irq_unmask() local 149 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_irq_ack() local 159 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_irq_set_type() local 235 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_irq_set_wake() local 262 brcmstb_gpio_irq_bank_handler(struct brcmstb_gpio_bank *bank) brcmstb_gpio_irq_bank_handler() argument 287 struct brcmstb_gpio_bank *bank; brcmstb_gpio_irq_handler() local 301 struct brcmstb_gpio_bank *bank; brcmstb_gpio_hwirq_to_bank() local 325 struct brcmstb_gpio_bank *bank = brcmstb_gpio_irq_map() local 377 struct brcmstb_gpio_bank *bank; brcmstb_gpio_remove() local 406 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); brcmstb_gpio_of_xlate() local 497 brcmstb_gpio_bank_save(struct brcmstb_gpio_priv *priv, struct brcmstb_gpio_bank *bank) brcmstb_gpio_bank_save() argument 511 struct brcmstb_gpio_bank *bank; brcmstb_gpio_quiesce() local 542 brcmstb_gpio_bank_restore(struct brcmstb_gpio_priv *priv, struct brcmstb_gpio_bank *bank) brcmstb_gpio_bank_restore() argument 562 struct brcmstb_gpio_bank *bank; brcmstb_gpio_resume() local 645 struct brcmstb_gpio_bank *bank; brcmstb_gpio_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/pinctrl/renesas/ |
H A D | sh_pfc.h | 441 #define PORT_GP_CFG_1(bank, pin, fn, sfx, cfg) \ 442 fn(bank, pin, GP_##bank##_##pin, sfx, cfg) 443 #define PORT_GP_1(bank, pin, fn, sfx) PORT_GP_CFG_1(bank, pin, fn, sfx, 0) 445 #define PORT_GP_CFG_2(bank, fn, sfx, cfg) \ 446 PORT_GP_CFG_1(bank, 0, fn, sfx, cfg), \ 447 PORT_GP_CFG_1(bank, 1, fn, sfx, cfg) 448 #define PORT_GP_2(bank, fn, sfx) PORT_GP_CFG_2(bank, f [all...] |
/kernel/linux/linux-5.10/drivers/pinctrl/renesas/ |
H A D | sh_pfc.h | 448 #define PORT_GP_CFG_1(bank, pin, fn, sfx, cfg) \ 449 fn(bank, pin, GP_##bank##_##pin, sfx, cfg) 450 #define PORT_GP_1(bank, pin, fn, sfx) PORT_GP_CFG_1(bank, pin, fn, sfx, 0) 452 #define PORT_GP_CFG_4(bank, fn, sfx, cfg) \ 453 PORT_GP_CFG_1(bank, 0, fn, sfx, cfg), \ 454 PORT_GP_CFG_1(bank, 1, fn, sfx, cfg), \ 455 PORT_GP_CFG_1(bank, 2, fn, sfx, cfg), \ 456 PORT_GP_CFG_1(bank, [all...] |
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/ |
H A D | adf_transport.c | 36 static int adf_reserve_ring(struct adf_etr_bank_data *bank, u32 ring) in adf_reserve_ring() argument 38 spin_lock(&bank->lock); in adf_reserve_ring() 39 if (bank->ring_mask & (1 << ring)) { in adf_reserve_ring() 40 spin_unlock(&bank->lock); in adf_reserve_ring() 43 bank->ring_mask |= (1 << ring); in adf_reserve_ring() 44 spin_unlock(&bank->lock); in adf_reserve_ring() 48 static void adf_unreserve_ring(struct adf_etr_bank_data *bank, u32 ring) in adf_unreserve_ring() argument 50 spin_lock(&bank->lock); in adf_unreserve_ring() 51 bank->ring_mask &= ~(1 << ring); in adf_unreserve_ring() 52 spin_unlock(&bank in adf_unreserve_ring() 55 adf_enable_ring_irq(struct adf_etr_bank_data *bank, u32 ring) adf_enable_ring_irq() argument 65 adf_disable_ring_irq(struct adf_etr_bank_data *bank, u32 ring) adf_disable_ring_irq() argument 136 struct adf_etr_bank_data *bank = ring->bank; adf_init_ring() local 194 struct adf_etr_bank_data *bank; adf_create_ring() local 271 struct adf_etr_bank_data *bank = ring->bank; adf_remove_ring() local 288 adf_ring_response_handler(struct adf_etr_bank_data *bank) adf_ring_response_handler() argument 303 struct adf_etr_bank_data *bank = (void *)bank_addr; adf_response_handler() local 328 adf_get_coalesc_timer(struct adf_etr_bank_data *bank, const char *section, u32 bank_num_in_accel) adf_get_coalesc_timer() argument 342 adf_init_bank(struct adf_accel_dev *accel_dev, struct adf_etr_bank_data *bank, u32 bank_num, void __iomem *csr_addr) adf_init_bank() argument 466 cleanup_bank(struct adf_etr_bank_data *bank) cleanup_bank() argument [all...] |
H A D | adf_transport_access_macros.h | 77 #define READ_CSR_RING_HEAD(csr_base_addr, bank, ring) \ 78 ADF_CSR_RD(csr_base_addr, (ADF_RING_BUNDLE_SIZE * bank) + \ 80 #define READ_CSR_RING_TAIL(csr_base_addr, bank, ring) \ 81 ADF_CSR_RD(csr_base_addr, (ADF_RING_BUNDLE_SIZE * bank) + \ 83 #define READ_CSR_E_STAT(csr_base_addr, bank) \ 84 ADF_CSR_RD(csr_base_addr, (ADF_RING_BUNDLE_SIZE * bank) + \ 86 #define WRITE_CSR_RING_CONFIG(csr_base_addr, bank, ring, value) \ 87 ADF_CSR_WR(csr_base_addr, (ADF_RING_BUNDLE_SIZE * bank) + \ 89 #define WRITE_CSR_RING_BASE(csr_base_addr, bank, ring, value) \ 94 ADF_CSR_WR(csr_base_addr, (ADF_RING_BUNDLE_SIZE * bank) [all...] |
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_transport.c | 40 static int adf_reserve_ring(struct adf_etr_bank_data *bank, u32 ring) in adf_reserve_ring() argument 42 spin_lock(&bank->lock); in adf_reserve_ring() 43 if (bank->ring_mask & (1 << ring)) { in adf_reserve_ring() 44 spin_unlock(&bank->lock); in adf_reserve_ring() 47 bank->ring_mask |= (1 << ring); in adf_reserve_ring() 48 spin_unlock(&bank->lock); in adf_reserve_ring() 52 static void adf_unreserve_ring(struct adf_etr_bank_data *bank, u32 ring) in adf_unreserve_ring() argument 54 spin_lock(&bank->lock); in adf_unreserve_ring() 55 bank->ring_mask &= ~(1 << ring); in adf_unreserve_ring() 56 spin_unlock(&bank in adf_unreserve_ring() 59 adf_enable_ring_irq(struct adf_etr_bank_data *bank, u32 ring) adf_enable_ring_irq() argument 72 adf_disable_ring_irq(struct adf_etr_bank_data *bank, u32 ring) adf_disable_ring_irq() argument 162 struct adf_etr_bank_data *bank = ring->bank; adf_init_ring() local 225 struct adf_etr_bank_data *bank; adf_create_ring() local 306 struct adf_etr_bank_data *bank = ring->bank; adf_remove_ring() local 325 adf_ring_response_handler(struct adf_etr_bank_data *bank) adf_ring_response_handler() argument 343 struct adf_etr_bank_data *bank = (void *)bank_addr; adf_response_handler() local 370 adf_get_coalesc_timer(struct adf_etr_bank_data *bank, const char *section, u32 bank_num_in_accel) adf_get_coalesc_timer() argument 384 adf_init_bank(struct adf_accel_dev *accel_dev, struct adf_etr_bank_data *bank, u32 bank_num, void __iomem *csr_addr) adf_init_bank() argument 524 cleanup_bank(struct adf_etr_bank_data *bank) cleanup_bank() argument [all...] |
H A D | adf_gen4_hw_data.h | 28 #define READ_CSR_RING_HEAD(csr_base_addr, bank, ring) \ 30 ADF_RING_BUNDLE_SIZE * (bank) + \ 32 #define READ_CSR_RING_TAIL(csr_base_addr, bank, ring) \ 34 ADF_RING_BUNDLE_SIZE * (bank) + \ 36 #define READ_CSR_E_STAT(csr_base_addr, bank) \ 38 ADF_RING_BUNDLE_SIZE * (bank) + ADF_RING_CSR_E_STAT) 39 #define WRITE_CSR_RING_CONFIG(csr_base_addr, bank, ring, value) \ 41 ADF_RING_BUNDLE_SIZE * (bank) + \ 43 #define WRITE_CSR_RING_BASE(csr_base_addr, bank, ring, value) \ 46 u32 _bank = bank; \ [all...] |
H A D | adf_transport_debug.c | 44 struct adf_etr_bank_data *bank = ring->bank; in adf_ring_show() local 45 struct adf_hw_csr_ops *csr_ops = GET_CSR_OPS(bank->accel_dev); in adf_ring_show() 46 void __iomem *csr = ring->bank->csr_addr; in adf_ring_show() 51 head = csr_ops->read_csr_ring_head(csr, bank->bank_number, in adf_ring_show() 53 tail = csr_ops->read_csr_ring_tail(csr, bank->bank_number, in adf_ring_show() 55 empty = csr_ops->read_csr_e_stat(csr, bank->bank_number); in adf_ring_show() 60 seq_printf(sfile, "ring num %d, bank num %d\n", in adf_ring_show() 61 ring->ring_number, ring->bank->bank_number); in adf_ring_show() 104 ring->bank in adf_ring_debugfs_add() 121 struct adf_etr_bank_data *bank = sfile->private; adf_bank_start() local 136 struct adf_etr_bank_data *bank = sfile->private; adf_bank_next() local 147 struct adf_etr_bank_data *bank = sfile->private; adf_bank_show() local 191 adf_bank_debugfs_add(struct adf_etr_bank_data *bank) adf_bank_debugfs_add() argument 205 adf_bank_debugfs_rm(struct adf_etr_bank_data *bank) adf_bank_debugfs_rm() argument [all...] |
/kernel/linux/linux-6.6/drivers/pinctrl/samsung/ |
H A D | pinctrl-exynos.c | 54 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_mask() local 55 unsigned long reg_mask = our_chip->eint_mask + bank->eint_offset; in exynos_irq_mask() 59 raw_spin_lock_irqsave(&bank->slock, flags); in exynos_irq_mask() 61 mask = readl(bank->eint_base + reg_mask); in exynos_irq_mask() 63 writel(mask, bank->eint_base + reg_mask); in exynos_irq_mask() 65 raw_spin_unlock_irqrestore(&bank->slock, flags); in exynos_irq_mask() 72 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_ack() local 73 unsigned long reg_pend = our_chip->eint_pend + bank->eint_offset; in exynos_irq_ack() 75 writel(1 << irqd->hwirq, bank->eint_base + reg_pend); in exynos_irq_ack() 82 struct samsung_pin_bank *bank in exynos_irq_unmask() local 111 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_irq_set_type() local 152 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_irq_request_resources() local 184 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_irq_release_resources() local 246 struct samsung_pin_bank *bank = d->pin_banks; exynos_eint_gpio_irq() local 278 struct samsung_pin_bank *bank; exynos_eint_gpio_init() local 342 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_wkup_irq_set_wake() local 478 struct samsung_pin_bank *bank = eintd->bank; exynos_irq_eint0_15() local 532 struct samsung_pin_bank *bank; exynos_eint_wkup_init() local 636 exynos_pinctrl_suspend_bank( struct samsung_pinctrl_drv_data *drvdata, struct samsung_pin_bank *bank) exynos_pinctrl_suspend_bank() argument 660 struct samsung_pin_bank *bank = drvdata->pin_banks; exynos_pinctrl_suspend() local 677 exynos_pinctrl_resume_bank( struct samsung_pinctrl_drv_data *drvdata, struct samsung_pin_bank *bank) exynos_pinctrl_resume_bank() argument 709 struct samsung_pin_bank *bank = drvdata->pin_banks; exynos_pinctrl_resume() local [all...] |
/kernel/linux/linux-5.10/drivers/pinctrl/samsung/ |
H A D | pinctrl-exynos.c | 56 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_mask() local 57 unsigned long reg_mask = our_chip->eint_mask + bank->eint_offset; in exynos_irq_mask() 61 spin_lock_irqsave(&bank->slock, flags); in exynos_irq_mask() 63 mask = readl(bank->eint_base + reg_mask); in exynos_irq_mask() 65 writel(mask, bank->eint_base + reg_mask); in exynos_irq_mask() 67 spin_unlock_irqrestore(&bank->slock, flags); in exynos_irq_mask() 74 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_ack() local 75 unsigned long reg_pend = our_chip->eint_pend + bank->eint_offset; in exynos_irq_ack() 77 writel(1 << irqd->hwirq, bank->eint_base + reg_pend); in exynos_irq_ack() 84 struct samsung_pin_bank *bank in exynos_irq_unmask() local 113 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_irq_set_type() local 154 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_irq_request_resources() local 186 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_irq_release_resources() local 248 struct samsung_pin_bank *bank = d->pin_banks; exynos_eint_gpio_irq() local 279 struct samsung_pin_bank *bank; exynos_eint_gpio_init() local 343 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_wkup_irq_set_wake() local 474 struct samsung_pin_bank *bank = eintd->bank; exynos_irq_eint0_15() local 530 struct samsung_pin_bank *bank; exynos_eint_wkup_init() local 634 exynos_pinctrl_suspend_bank( struct samsung_pinctrl_drv_data *drvdata, struct samsung_pin_bank *bank) exynos_pinctrl_suspend_bank() argument 658 struct samsung_pin_bank *bank = drvdata->pin_banks; exynos_pinctrl_suspend() local 675 exynos_pinctrl_resume_bank( struct samsung_pinctrl_drv_data *drvdata, struct samsung_pin_bank *bank) exynos_pinctrl_resume_bank() argument 707 struct samsung_pin_bank *bank = drvdata->pin_banks; exynos_pinctrl_resume() local [all...] |
/kernel/linux/linux-5.10/drivers/pinctrl/ |
H A D | pinctrl-rockchip.c | 134 * @reg_base: register base of the gpio bank 136 * @clk: clock of the gpio bank 137 * @irq: interrupt of the gpio bank 140 * @nr_pins: number of pins in this bank 141 * @name: name of the bank 142 * @bank_num: number of the bank, to account for holes 143 * @iomux: array describing the 4 iomux sources of the bank 144 * @drv: array describing the 4 drive strength sources of the bank 145 * @pull_type: array describing the 4 pull type sources of the bank 147 * @of_node: dt node of this bank 823 rockchip_get_recalced_mux(struct rockchip_pin_bank *bank, int pin, int *reg, u8 *bit, int *mask) rockchip_get_recalced_mux() argument 1046 rockchip_get_mux_route(struct rockchip_pin_bank *bank, int pin, int mux, u32 *loc, u32 *reg, u32 *value) rockchip_get_mux_route() argument 1071 rockchip_get_mux(struct rockchip_pin_bank *bank, int pin) rockchip_get_mux() argument 1122 rockchip_verify_mux(struct rockchip_pin_bank *bank, int pin, int mux) rockchip_verify_mux() argument 1160 rockchip_set_mux(struct rockchip_pin_bank *bank, int pin, int mux) rockchip_set_mux() argument 1238 px30_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) px30_calc_pull_reg_and_bit() argument 1268 px30_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) px30_calc_drv_reg_and_bit() argument 1298 px30_calc_schmitt_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) px30_calc_schmitt_reg_and_bit() argument 1329 rv1108_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rv1108_calc_pull_reg_and_bit() argument 1358 rv1108_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rv1108_calc_drv_reg_and_bit() argument 1388 rv1108_calc_schmitt_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rv1108_calc_schmitt_reg_and_bit() argument 1416 rk3308_calc_schmitt_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3308_calc_schmitt_reg_and_bit() argument 1436 rk2928_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk2928_calc_pull_reg_and_bit() argument 1452 rk3128_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3128_calc_pull_reg_and_bit() argument 1472 rk3188_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3188_calc_pull_reg_and_bit() argument 1507 rk3288_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3288_calc_pull_reg_and_bit() argument 1541 rk3288_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3288_calc_drv_reg_and_bit() argument 1571 rk3228_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3228_calc_pull_reg_and_bit() argument 1588 rk3228_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3228_calc_drv_reg_and_bit() argument 1605 rk3308_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3308_calc_pull_reg_and_bit() argument 1622 rk3308_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3308_calc_drv_reg_and_bit() argument 1640 rk3368_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3368_calc_pull_reg_and_bit() argument 1671 rk3368_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3368_calc_drv_reg_and_bit() argument 1703 rk3399_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3399_calc_pull_reg_and_bit() argument 1733 rk3399_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3399_calc_drv_reg_and_bit() argument 1760 rk3568_calc_pull_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3568_calc_pull_reg_and_bit() argument 1791 rk3568_calc_drv_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3568_calc_drv_reg_and_bit() argument 1824 rockchip_get_drive_perpin(struct rockchip_pin_bank *bank, int pin_num) rockchip_get_drive_perpin() argument 1901 rockchip_set_drive_perpin(struct rockchip_pin_bank *bank, int pin_num, int strength) rockchip_set_drive_perpin() argument 2016 rockchip_get_pull(struct rockchip_pin_bank *bank, int pin_num) rockchip_get_pull() argument 2068 rockchip_set_pull(struct rockchip_pin_bank *bank, int pin_num, int pull) rockchip_set_pull() argument 2147 rk3328_calc_schmitt_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3328_calc_schmitt_reg_and_bit() argument 2170 rk3568_calc_schmitt_reg_and_bit(struct rockchip_pin_bank *bank, int pin_num, struct regmap **regmap, int *reg, u8 *bit) rk3568_calc_schmitt_reg_and_bit() argument 2193 rockchip_get_schmitt(struct rockchip_pin_bank *bank, int pin_num) rockchip_get_schmitt() argument 2221 rockchip_set_schmitt(struct rockchip_pin_bank *bank, int pin_num, int enable) rockchip_set_schmitt() argument 2291 struct rockchip_pin_bank *bank; rockchip_pmx_set() local 2322 struct rockchip_pin_bank *bank = gpiochip_get_data(chip); rockchip_gpio_get_direction() local 2349 struct rockchip_pin_bank *bank; _rockchip_pmx_gpio_set_direction() local 2438 struct rockchip_pin_bank *bank = pin_to_bank(info, pin); rockchip_pinconf_set() local 2511 struct rockchip_pin_bank *bank = pin_to_bank(info, pin); rockchip_pinconf_get() local 2608 struct rockchip_pin_bank *bank; rockchip_pinctrl_parse_groups() local 2760 int pin, bank, ret; rockchip_pinctrl_register() local 2819 struct rockchip_pin_bank *bank = gpiochip_get_data(gc); rockchip_gpio_set() local 2843 struct rockchip_pin_bank *bank = gpiochip_get_data(gc); rockchip_gpio_get() local 2879 struct rockchip_pin_bank *bank = gpiochip_get_data(gc); rockchip_gpio_set_debounce() local 2934 struct rockchip_pin_bank *bank = gpiochip_get_data(gc); rockchip_gpio_to_irq() local 2967 struct rockchip_pin_bank *bank = irq_desc_get_handler_data(desc); rockchip_irq_demux() local 3028 struct rockchip_pin_bank *bank = gc->private; rockchip_irq_set_type() local 3116 struct rockchip_pin_bank *bank = gc->private; rockchip_irq_suspend() local 3127 struct rockchip_pin_bank *bank = gc->private; rockchip_irq_resume() local 3137 struct rockchip_pin_bank *bank = gc->private; rockchip_irq_enable() local 3146 struct rockchip_pin_bank *bank = gc->private; rockchip_irq_disable() local 3156 struct rockchip_pin_bank *bank = ctrl->pin_banks; rockchip_interrupts_register() local 3233 struct rockchip_pin_bank *bank = ctrl->pin_banks; rockchip_gpiolib_register() local 3279 struct rockchip_pin_bank *bank = ctrl->pin_banks; rockchip_gpiolib_unregister() local 3291 rockchip_get_bank_data(struct rockchip_pin_bank *bank, struct rockchip_pinctrl *info) rockchip_get_bank_data() argument 3356 struct rockchip_pin_bank *bank; rockchip_pinctrl_get_soc_data() local [all...] |
/kernel/linux/linux-5.10/drivers/bus/ |
H A D | uniphier-system-bus.c | 23 #define UNIPHIER_SBC_STRIDE 0x10 /* register stride to next bank */ 25 #define UNIPHIER_SBC_BASE_DUMMY 0xffffffff /* data to squash bank 0, 1 */ 35 struct uniphier_system_bus_bank bank[UNIPHIER_SBC_NR_BANKS]; member 39 int bank, u32 addr, u64 paddr, u32 size) in uniphier_system_bus_add_bank() 44 "range found: bank = %d, addr = %08x, paddr = %08llx, size = %08x\n", in uniphier_system_bus_add_bank() 45 bank, addr, paddr, size); in uniphier_system_bus_add_bank() 47 if (bank >= ARRAY_SIZE(priv->bank)) { in uniphier_system_bus_add_bank() 48 dev_err(priv->dev, "unsupported bank number %d\n", bank); in uniphier_system_bus_add_bank() 38 uniphier_system_bus_add_bank(struct uniphier_system_bus_priv *priv, int bank, u32 addr, u64 paddr, u32 size) uniphier_system_bus_add_bank() argument 182 int pna, bank, rlen, rone, ret; uniphier_system_bus_probe() local [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
H A D | iotiming-s3c2412.c | 41 unsigned int bank; in s3c2412_print_timing() local 43 for (bank = 0; bank < MAX_BANKS; bank++) { in s3c2412_print_timing() 44 bt = iot->bank[bank].io_2412; in s3c2412_print_timing() 49 "wstoen=%d.%d wstwen=%d.%d wstbrd=%d.%d\n", pfx, bank, in s3c2412_print_timing() 87 * s3c2412_calc_bank - calculate the bank divisor settings. 89 * @bt: The bank timing. 108 * s3c2412_iotiming_debugfs - debugfs show io bank timin 142 int bank; s3c2412_iotiming_calc() local 176 int bank; s3c2412_iotiming_set() local 201 s3c2412_iotiming_getbank(struct s3c_cpufreq_config *cfg, struct s3c2412_iobank_timing *bt, unsigned int bank) s3c2412_iotiming_getbank() argument 220 bank_is_io(unsigned int bank, u32 bankcfg) bank_is_io() argument 233 unsigned int bank; s3c2412_iotiming_get() local [all...] |
/kernel/linux/linux-5.10/drivers/pinctrl/stm32/ |
H A D | pinctrl-stm32.c | 153 static void stm32_gpio_backup_value(struct stm32_gpio_bank *bank, in stm32_gpio_backup_value() argument 156 bank->pin_backup[offset] &= ~BIT(STM32_GPIO_BKP_VAL); in stm32_gpio_backup_value() 157 bank->pin_backup[offset] |= value << STM32_GPIO_BKP_VAL; in stm32_gpio_backup_value() 160 static void stm32_gpio_backup_mode(struct stm32_gpio_bank *bank, u32 offset, in stm32_gpio_backup_mode() argument 163 bank->pin_backup[offset] &= ~(STM32_GPIO_BKP_MODE_MASK | in stm32_gpio_backup_mode() 165 bank->pin_backup[offset] |= mode << STM32_GPIO_BKP_MODE_SHIFT; in stm32_gpio_backup_mode() 166 bank->pin_backup[offset] |= alt << STM32_GPIO_BKP_ALT_SHIFT; in stm32_gpio_backup_mode() 169 static void stm32_gpio_backup_driving(struct stm32_gpio_bank *bank, u32 offset, in stm32_gpio_backup_driving() argument 172 bank->pin_backup[offset] &= ~BIT(STM32_GPIO_BKP_TYPE); in stm32_gpio_backup_driving() 173 bank in stm32_gpio_backup_driving() 176 stm32_gpio_backup_speed(struct stm32_gpio_bank *bank, u32 offset, u32 speed) stm32_gpio_backup_speed() argument 183 stm32_gpio_backup_bias(struct stm32_gpio_bank *bank, u32 offset, u32 bias) stm32_gpio_backup_bias() argument 192 __stm32_gpio_set(struct stm32_gpio_bank *bank, unsigned offset, int value) __stm32_gpio_set() argument 209 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_request() local 230 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_get_noclk() local 237 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_get() local 251 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_set() local 264 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_direction_output() local 275 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_to_irq() local 288 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_get_direction() local 318 struct stm32_gpio_bank *bank = d->domain->host_data; stm32_gpio_irq_trigger() local 340 struct stm32_gpio_bank *bank = d->domain->host_data; stm32_gpio_set_type() local 366 struct stm32_gpio_bank *bank = irq_data->domain->host_data; stm32_gpio_irq_request_resources() local 391 struct stm32_gpio_bank *bank = irq_data->domain->host_data; stm32_gpio_irq_release_resources() local 434 struct stm32_gpio_bank *bank = d->host_data; stm32_gpio_domain_activate() local 478 struct stm32_gpio_bank *bank = d->host_data; stm32_gpio_domain_deactivate() local 491 struct stm32_gpio_bank *bank = d->host_data; stm32_gpio_domain_alloc() local 763 stm32_pmx_set_mode(struct stm32_gpio_bank *bank, int pin, u32 mode, u32 alt) stm32_pmx_set_mode() argument 807 stm32_pmx_get_mode(struct stm32_gpio_bank *bank, int pin, u32 *mode, u32 *alt) stm32_pmx_get_mode() argument 838 struct stm32_gpio_bank *bank; stm32_pmx_set_mux() local 868 struct stm32_gpio_bank *bank = gpiochip_get_data(range->gc); stm32_pmx_gpio_set_direction() local 885 stm32_pconf_set_driving(struct stm32_gpio_bank *bank, unsigned offset, u32 drive) stm32_pconf_set_driving() argument 922 stm32_pconf_get_driving(struct stm32_gpio_bank *bank, unsigned int offset) stm32_pconf_get_driving() argument 940 stm32_pconf_set_speed(struct stm32_gpio_bank *bank, unsigned offset, u32 speed) stm32_pconf_set_speed() argument 977 stm32_pconf_get_speed(struct stm32_gpio_bank *bank, unsigned int offset) stm32_pconf_get_speed() argument 995 stm32_pconf_set_bias(struct stm32_gpio_bank *bank, unsigned offset, u32 bias) stm32_pconf_set_bias() argument 1032 stm32_pconf_get_bias(struct stm32_gpio_bank *bank, unsigned int offset) stm32_pconf_get_bias() argument 1050 stm32_pconf_get(struct stm32_gpio_bank *bank, unsigned int offset, bool dir) stm32_pconf_get() argument 1078 struct stm32_gpio_bank *bank; stm32_pconf_parse_conf() local 1174 struct stm32_gpio_bank *bank; stm32_pconf_dbg_show() local 1244 struct stm32_gpio_bank *bank = &pctl->banks[pctl->nbanks]; stm32_gpiolib_register_bank() local 1569 struct stm32_gpio_bank *bank = &pctl->banks[i]; stm32_pctl_probe() local 1612 struct stm32_gpio_bank *bank; stm32_pinctrl_restore_gpio_regs() local [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/mce/ |
H A D | amd.c | 120 static enum smca_bank_types smca_get_bank_type(unsigned int bank) in smca_get_bank_type() argument 124 if (bank >= MAX_NR_BANKS) in smca_get_bank_type() 127 b = &smca_banks[bank]; in smca_get_bank_type() 185 * So to define a unique name for each bank, we use a temp c-string to append 214 static void smca_set_misc_banks_map(unsigned int bank, unsigned int cpu) in smca_set_misc_banks_map() argument 222 if (rdmsr_safe(MSR_AMD64_SMCA_MCx_CONFIG(bank), &low, &high)) in smca_set_misc_banks_map() 228 if (rdmsr_safe(MSR_AMD64_SMCA_MCx_MISC(bank), &low, &high)) in smca_set_misc_banks_map() 232 per_cpu(smca_misc_banks_map, cpu) |= BIT_ULL(bank); in smca_set_misc_banks_map() 236 static void smca_configure(unsigned int bank, unsigned int cpu) in smca_configure() argument 241 u32 smca_config = MSR_AMD64_SMCA_MCx_CONFIG(bank); in smca_configure() 306 is_shared_bank(int bank) is_shared_bank() argument 339 lvt_interrupt_supported(unsigned int bank, u32 msr_high_bits) lvt_interrupt_supported() argument 489 smca_get_block_address(unsigned int bank, unsigned int block, unsigned int cpu) smca_get_block_address() argument 501 get_block_address(u32 current_addr, u32 low, u32 high, unsigned int bank, unsigned int block, unsigned int cpu) get_block_address() argument 530 prepare_threshold_block(unsigned int bank, unsigned int block, u32 addr, int offset, u32 misc_high) prepare_threshold_block() argument 602 disable_err_thresholding(struct cpuinfo_x86 *c, unsigned int bank) disable_err_thresholding() argument 644 unsigned int bank, block, cpu = smp_processor_id(); mce_amd_feature_init() local 889 __log_error(unsigned int bank, u64 status, u64 addr, u64 misc) __log_error() argument 937 _log_error_bank(unsigned int bank, u32 msr_stat, u32 msr_addr, u64 misc) _log_error_bank() argument 955 _log_error_deferred(unsigned int bank, u32 misc) _log_error_deferred() argument 982 log_error_deferred(unsigned int bank) log_error_deferred() argument 998 unsigned int bank; amd_deferred_error_interrupt() local 1004 log_error_thresholding(unsigned int bank, u64 misc) log_error_thresholding() argument 1040 unsigned int bank, cpu = smp_processor_id(); amd_threshold_interrupt() local 1207 get_name(unsigned int bank, struct threshold_block *b) get_name() argument 1237 allocate_threshold_blocks(unsigned int cpu, struct threshold_bank *tb, unsigned int bank, unsigned int block, u32 address) allocate_threshold_blocks() argument 1338 threshold_create_bank(struct threshold_bank **bp, unsigned int cpu, unsigned int bank) threshold_create_bank() argument 1414 deallocate_threshold_blocks(struct threshold_bank *bank) deallocate_threshold_blocks() argument 1437 threshold_remove_bank(struct threshold_bank *bank) threshold_remove_bank() argument 1469 unsigned int bank, numbanks = this_cpu_read(mce_num_banks); __threshold_remove_device() local 1511 unsigned int numbanks, bank; mce_threshold_create_device() local [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/mce/ |
H A D | amd.c | 145 enum smca_bank_types smca_get_bank_type(unsigned int cpu, unsigned int bank) in smca_get_bank_type() argument 149 if (bank >= MAX_NR_BANKS) in smca_get_bank_type() 152 b = &per_cpu(smca_banks, cpu)[bank]; in smca_get_bank_type() 223 * So to define a unique name for each bank, we use a temp c-string to append 252 static void smca_set_misc_banks_map(unsigned int bank, unsigned int cpu) in smca_set_misc_banks_map() argument 260 if (rdmsr_safe(MSR_AMD64_SMCA_MCx_CONFIG(bank), &low, &high)) in smca_set_misc_banks_map() 266 if (rdmsr_safe(MSR_AMD64_SMCA_MCx_MISC(bank), &low, &high)) in smca_set_misc_banks_map() 270 per_cpu(smca_misc_banks_map, cpu) |= BIT_ULL(bank); in smca_set_misc_banks_map() 274 static void smca_configure(unsigned int bank, unsigned int cpu) in smca_configure() argument 280 u32 smca_config = MSR_AMD64_SMCA_MCx_CONFIG(bank); in smca_configure() 344 is_shared_bank(int bank) is_shared_bank() argument 377 lvt_interrupt_supported(unsigned int bank, u32 msr_high_bits) lvt_interrupt_supported() argument 527 smca_get_block_address(unsigned int bank, unsigned int block, unsigned int cpu) smca_get_block_address() argument 539 get_block_address(u32 current_addr, u32 low, u32 high, unsigned int bank, unsigned int block, unsigned int cpu) get_block_address() argument 568 prepare_threshold_block(unsigned int bank, unsigned int block, u32 addr, int offset, u32 misc_high) prepare_threshold_block() argument 640 disable_err_thresholding(struct cpuinfo_x86 *c, unsigned int bank) disable_err_thresholding() argument 682 unsigned int bank, block, cpu = smp_processor_id(); mce_amd_feature_init() local 729 __log_error(unsigned int bank, u64 status, u64 addr, u64 misc) __log_error() argument 769 _log_error_bank(unsigned int bank, u32 msr_stat, u32 msr_addr, u64 misc) _log_error_bank() argument 787 _log_error_deferred(unsigned int bank, u32 misc) _log_error_deferred() argument 814 log_error_deferred(unsigned int bank) log_error_deferred() argument 830 unsigned int bank; amd_deferred_error_interrupt() local 836 log_error_thresholding(unsigned int bank, u64 misc) log_error_thresholding() argument 872 unsigned int bank, cpu = smp_processor_id(); amd_threshold_interrupt() local 1040 get_name(unsigned int cpu, unsigned int bank, struct threshold_block *b) get_name() argument 1070 allocate_threshold_blocks(unsigned int cpu, struct threshold_bank *tb, unsigned int bank, unsigned int block, u32 address) allocate_threshold_blocks() argument 1171 threshold_create_bank(struct threshold_bank **bp, unsigned int cpu, unsigned int bank) threshold_create_bank() argument 1247 deallocate_threshold_blocks(struct threshold_bank *bank) deallocate_threshold_blocks() argument 1270 threshold_remove_bank(struct threshold_bank *bank) threshold_remove_bank() argument 1302 unsigned int bank, numbanks = this_cpu_read(mce_num_banks); __threshold_remove_device() local 1344 unsigned int numbanks, bank; mce_threshold_create_device() local [all...] |
/kernel/linux/linux-6.6/drivers/pinctrl/stm32/ |
H A D | pinctrl-stm32.c | 157 static void stm32_gpio_backup_value(struct stm32_gpio_bank *bank, in stm32_gpio_backup_value() argument 160 bank->pin_backup[offset] &= ~BIT(STM32_GPIO_BKP_VAL); in stm32_gpio_backup_value() 161 bank->pin_backup[offset] |= value << STM32_GPIO_BKP_VAL; in stm32_gpio_backup_value() 164 static void stm32_gpio_backup_mode(struct stm32_gpio_bank *bank, u32 offset, in stm32_gpio_backup_mode() argument 167 bank->pin_backup[offset] &= ~(STM32_GPIO_BKP_MODE_MASK | in stm32_gpio_backup_mode() 169 bank->pin_backup[offset] |= mode << STM32_GPIO_BKP_MODE_SHIFT; in stm32_gpio_backup_mode() 170 bank->pin_backup[offset] |= alt << STM32_GPIO_BKP_ALT_SHIFT; in stm32_gpio_backup_mode() 173 static void stm32_gpio_backup_driving(struct stm32_gpio_bank *bank, u32 offset, in stm32_gpio_backup_driving() argument 176 bank->pin_backup[offset] &= ~BIT(STM32_GPIO_BKP_TYPE); in stm32_gpio_backup_driving() 177 bank in stm32_gpio_backup_driving() 180 stm32_gpio_backup_speed(struct stm32_gpio_bank *bank, u32 offset, u32 speed) stm32_gpio_backup_speed() argument 187 stm32_gpio_backup_bias(struct stm32_gpio_bank *bank, u32 offset, u32 bias) stm32_gpio_backup_bias() argument 196 __stm32_gpio_set(struct stm32_gpio_bank *bank, unsigned offset, int value) __stm32_gpio_set() argument 209 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_request() local 230 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_get() local 237 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_set() local 250 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_direction_output() local 261 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_to_irq() local 274 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_get_direction() local 294 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_init_valid_mask() local 332 struct stm32_gpio_bank *bank = d->domain->host_data; stm32_gpio_irq_trigger() local 354 struct stm32_gpio_bank *bank = d->domain->host_data; stm32_gpio_set_type() local 380 struct stm32_gpio_bank *bank = irq_data->domain->host_data; stm32_gpio_irq_request_resources() local 400 struct stm32_gpio_bank *bank = irq_data->domain->host_data; stm32_gpio_irq_release_resources() local 440 struct stm32_gpio_bank *bank = d->host_data; stm32_gpio_domain_activate() local 465 struct stm32_gpio_bank *bank = d->host_data; stm32_gpio_domain_alloc() local 504 struct stm32_gpio_bank *bank = d->host_data; stm32_gpio_domain_free() local 768 stm32_pmx_set_mode(struct stm32_gpio_bank *bank, int pin, u32 mode, u32 alt) stm32_pmx_set_mode() argument 810 stm32_pmx_get_mode(struct stm32_gpio_bank *bank, int pin, u32 *mode, u32 *alt) stm32_pmx_get_mode() argument 839 struct stm32_gpio_bank *bank; stm32_pmx_set_mux() local 866 struct stm32_gpio_bank *bank = gpiochip_get_data(range->gc); stm32_pmx_gpio_set_direction() local 903 stm32_pconf_set_driving(struct stm32_gpio_bank *bank, unsigned offset, u32 drive) stm32_pconf_set_driving() argument 938 stm32_pconf_get_driving(struct stm32_gpio_bank *bank, unsigned int offset) stm32_pconf_get_driving() argument 954 stm32_pconf_set_speed(struct stm32_gpio_bank *bank, unsigned offset, u32 speed) stm32_pconf_set_speed() argument 989 stm32_pconf_get_speed(struct stm32_gpio_bank *bank, unsigned int offset) stm32_pconf_get_speed() argument 1005 stm32_pconf_set_bias(struct stm32_gpio_bank *bank, unsigned offset, u32 bias) stm32_pconf_set_bias() argument 1040 stm32_pconf_get_bias(struct stm32_gpio_bank *bank, unsigned int offset) stm32_pconf_get_bias() argument 1056 stm32_pconf_get(struct stm32_gpio_bank *bank, unsigned int offset, bool dir) stm32_pconf_get() argument 1082 struct stm32_gpio_bank *bank; stm32_pconf_parse_conf() local 1200 struct stm32_gpio_bank *bank; stm32_pconf_dbg_show() local 1277 stm32_pctrl_get_desc_pin_from_gpio(struct stm32_pinctrl *pctl, struct stm32_gpio_bank *bank, unsigned int offset) stm32_pctrl_get_desc_pin_from_gpio() argument 1303 struct stm32_gpio_bank *bank = &pctl->banks[pctl->nbanks]; stm32_gpiolib_register_bank() local 1634 struct stm32_gpio_bank *bank = &pctl->banks[i]; stm32_pctl_probe() local 1677 struct stm32_gpio_bank *bank; stm32_pinctrl_restore_gpio_regs() local [all...] |
/kernel/linux/linux-6.6/drivers/bus/ |
H A D | uniphier-system-bus.c | 23 #define UNIPHIER_SBC_STRIDE 0x10 /* register stride to next bank */ 25 #define UNIPHIER_SBC_BASE_DUMMY 0xffffffff /* data to squash bank 0, 1 */ 35 struct uniphier_system_bus_bank bank[UNIPHIER_SBC_NR_BANKS]; member 39 int bank, u32 addr, u64 paddr, u32 size) in uniphier_system_bus_add_bank() 44 "range found: bank = %d, addr = %08x, paddr = %08llx, size = %08x\n", in uniphier_system_bus_add_bank() 45 bank, addr, paddr, size); in uniphier_system_bus_add_bank() 47 if (bank >= ARRAY_SIZE(priv->bank)) { in uniphier_system_bus_add_bank() 48 dev_err(priv->dev, "unsupported bank number %d\n", bank); in uniphier_system_bus_add_bank() 38 uniphier_system_bus_add_bank(struct uniphier_system_bus_priv *priv, int bank, u32 addr, u64 paddr, u32 size) uniphier_system_bus_add_bank() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/gpio/ |
H A D | gpio-sim.sh | 181 create_bank chip bank 183 test -n `cat $CONFIGFS_DIR/chip/bank/chip_name` || fail "chip_name doesn't work" 188 create_bank chip bank 189 test "`cat $CONFIGFS_DIR/chip/bank/chip_name`" = "none" || \ 195 create_bank chip bank 204 create_bank chip bank 206 test "`get_chip_num_lines chip bank`" = "1" || fail "default number of lines is not 1" 211 create_bank chip bank 212 set_num_lines chip bank 16 214 test "`get_chip_num_lines chip bank`" [all...] |
/kernel/linux/linux-5.10/drivers/net/phy/mscc/ |
H A D | mscc_macsec.c | 23 enum macsec_bank bank, u32 reg) in vsc8584_macsec_phy_read() 34 MSCC_PHY_MACSEC_20_TARGET(bank >> 2)); in vsc8584_macsec_phy_read() 36 if (bank >> 2 == 0x1) in vsc8584_macsec_phy_read() 38 bank &= 0x3; in vsc8584_macsec_phy_read() 40 bank = 0; in vsc8584_macsec_phy_read() 45 MSCC_PHY_MACSEC_19_TARGET(bank)); in vsc8584_macsec_phy_read() 62 enum macsec_bank bank, u32 reg, u32 val) in vsc8584_macsec_phy_write() 72 MSCC_PHY_MACSEC_20_TARGET(bank >> 2)); in vsc8584_macsec_phy_write() 74 if ((bank >> 2 == 0x1) || (bank >> in vsc8584_macsec_phy_write() 22 vsc8584_macsec_phy_read(struct phy_device *phydev, enum macsec_bank bank, u32 reg) vsc8584_macsec_phy_read() argument 61 vsc8584_macsec_phy_write(struct phy_device *phydev, enum macsec_bank bank, u32 reg, u32 val) vsc8584_macsec_phy_write() argument 96 vsc8584_macsec_classification(struct phy_device *phydev, enum macsec_bank bank) vsc8584_macsec_classification() argument 106 vsc8584_macsec_flow_default_action(struct phy_device *phydev, enum macsec_bank bank, bool block) vsc8584_macsec_flow_default_action() argument 153 vsc8584_macsec_integrity_checks(struct phy_device *phydev, enum macsec_bank bank) vsc8584_macsec_integrity_checks() argument 175 vsc8584_macsec_block_init(struct phy_device *phydev, enum macsec_bank bank) vsc8584_macsec_block_init() argument 244 vsc8584_macsec_mac_init(struct phy_device *phydev, enum macsec_bank bank) vsc8584_macsec_mac_init() argument 374 enum macsec_bank bank = flow->bank; vsc8584_macsec_flow() local 448 vsc8584_macsec_find_flow(struct macsec_context *ctx, enum macsec_bank bank) vsc8584_macsec_find_flow() argument 464 enum macsec_bank bank = flow->bank; vsc8584_macsec_flow_enable() local 483 enum macsec_bank bank = flow->bank; vsc8584_macsec_flow_disable() local 524 enum macsec_bank bank = flow->bank; vsc8584_macsec_transformation() local 600 vsc8584_macsec_alloc_flow(struct vsc8531_private *priv, enum macsec_bank bank) vsc8584_macsec_alloc_flow() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/phy/mscc/ |
H A D | mscc_macsec.c | 23 enum macsec_bank bank, u32 reg) in vsc8584_macsec_phy_read() 34 MSCC_PHY_MACSEC_20_TARGET(bank >> 2)); in vsc8584_macsec_phy_read() 36 if (bank >> 2 == 0x1) in vsc8584_macsec_phy_read() 38 bank &= 0x3; in vsc8584_macsec_phy_read() 40 bank = 0; in vsc8584_macsec_phy_read() 45 MSCC_PHY_MACSEC_19_TARGET(bank)); in vsc8584_macsec_phy_read() 62 enum macsec_bank bank, u32 reg, u32 val) in vsc8584_macsec_phy_write() 72 MSCC_PHY_MACSEC_20_TARGET(bank >> 2)); in vsc8584_macsec_phy_write() 74 if ((bank >> 2 == 0x1) || (bank >> in vsc8584_macsec_phy_write() 22 vsc8584_macsec_phy_read(struct phy_device *phydev, enum macsec_bank bank, u32 reg) vsc8584_macsec_phy_read() argument 61 vsc8584_macsec_phy_write(struct phy_device *phydev, enum macsec_bank bank, u32 reg, u32 val) vsc8584_macsec_phy_write() argument 96 vsc8584_macsec_classification(struct phy_device *phydev, enum macsec_bank bank) vsc8584_macsec_classification() argument 106 vsc8584_macsec_flow_default_action(struct phy_device *phydev, enum macsec_bank bank, bool block) vsc8584_macsec_flow_default_action() argument 153 vsc8584_macsec_integrity_checks(struct phy_device *phydev, enum macsec_bank bank) vsc8584_macsec_integrity_checks() argument 175 vsc8584_macsec_block_init(struct phy_device *phydev, enum macsec_bank bank) vsc8584_macsec_block_init() argument 244 vsc8584_macsec_mac_init(struct phy_device *phydev, enum macsec_bank bank) vsc8584_macsec_mac_init() argument 374 enum macsec_bank bank = flow->bank; vsc8584_macsec_flow() local 448 vsc8584_macsec_find_flow(struct macsec_context *ctx, enum macsec_bank bank) vsc8584_macsec_find_flow() argument 464 enum macsec_bank bank = flow->bank; vsc8584_macsec_flow_enable() local 483 enum macsec_bank bank = flow->bank; vsc8584_macsec_flow_disable() local 524 enum macsec_bank bank = flow->bank; vsc8584_macsec_transformation() local 600 vsc8584_macsec_alloc_flow(struct vsc8531_private *priv, enum macsec_bank bank) vsc8584_macsec_alloc_flow() argument [all...] |