Home
last modified time | relevance | path

Searched refs:bank (Results 1 – 25 of 545) sorted by relevance

12345678910>>...22

/linux/drivers/pinctrl/samsung/
H A Dpinctrl-exynos.c62 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_mask() local
67 if (bank->eint_mask_offset) in exynos_irq_mask()
68 reg_mask = bank->pctl_offset + bank->eint_mask_offset; in exynos_irq_mask()
70 reg_mask = our_chip->eint_mask + bank->eint_offset; in exynos_irq_mask()
72 if (clk_enable(bank->drvdata->pclk)) { in exynos_irq_mask()
73 dev_err(bank->gpio_chip.parent, in exynos_irq_mask()
78 raw_spin_lock_irqsave(&bank->slock, flags); in exynos_irq_mask()
80 mask = readl(bank->eint_base + reg_mask); in exynos_irq_mask()
82 writel(mask, bank in exynos_irq_mask()
93 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_irq_ack() local
116 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_irq_unmask() local
158 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_irq_set_type() local
215 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_irq_set_affinity() local
227 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_irq_request_resources() local
269 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_irq_release_resources() local
341 struct samsung_pin_bank *bank = d->pin_banks; exynos_eint_gpio_irq() local
399 exynos_eint_set_filter(struct samsung_pin_bank * bank,int filter) exynos_eint_set_filter() argument
416 struct samsung_pin_bank *bank; exynos_eint_gpio_init() local
479 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); gs101_wkup_irq_set_wake() local
525 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); exynos_wkup_irq_set_wake() local
699 struct samsung_pin_bank *bank = eintd->bank; exynos_irq_eint0_15() local
772 struct samsung_pin_bank *bank; exynos_eint_wkup_init() local
871 exynos_set_wakeup(struct samsung_pin_bank * bank) exynos_set_wakeup() argument
881 exynos_pinctrl_suspend(struct samsung_pin_bank * bank) exynos_pinctrl_suspend() argument
909 gs101_pinctrl_suspend(struct samsung_pin_bank * bank) gs101_pinctrl_suspend() argument
945 exynosautov920_pinctrl_suspend(struct samsung_pin_bank * bank) exynosautov920_pinctrl_suspend() argument
964 gs101_pinctrl_resume(struct samsung_pin_bank * bank) gs101_pinctrl_resume() argument
1002 exynos_pinctrl_resume(struct samsung_pin_bank * bank) exynos_pinctrl_resume() argument
1033 exynosautov920_pinctrl_resume(struct samsung_pin_bank * bank) exynosautov920_pinctrl_resume() argument
[all...]
H A Dpinctrl-samsung.c351 * given a pin number that is local to a pin controller, find out the pin bank
352 * and the register base of the pin bank.
356 struct samsung_pin_bank **bank) in pin_to_reg_bank() argument
368 if (bank) in pin_to_reg_bank()
369 *bank = b; in pin_to_reg_bank()
378 struct samsung_pin_bank *bank; in samsung_pinmux_setup() local
390 pin_to_reg_bank(drvdata, grp->pins[0], &reg, &pin_offset, &bank); in samsung_pinmux_setup()
391 type = bank->type; in samsung_pinmux_setup()
406 raw_spin_lock_irqsave(&bank->slock, flags); in samsung_pinmux_setup()
413 raw_spin_unlock_irqrestore(&bank in samsung_pinmux_setup()
442 struct samsung_pin_bank *bank; samsung_pinconf_rw() local
558 struct samsung_pin_bank *bank = gpiochip_get_data(gc); samsung_gpio_set_value() local
576 struct samsung_pin_bank *bank = gpiochip_get_data(gc); samsung_gpio_set() local
601 struct samsung_pin_bank *bank = gpiochip_get_data(gc); samsung_gpio_get() local
633 struct samsung_pin_bank *bank; samsung_gpio_set_direction() local
663 struct samsung_pin_bank *bank = gpiochip_get_data(gc); samsung_gpio_direction_input() local
687 struct samsung_pin_bank *bank = gpiochip_get_data(gc); samsung_gpio_direction_output() local
714 struct samsung_pin_bank *bank = gpiochip_get_data(gc); samsung_gpio_to_irq() local
727 struct samsung_pin_bank *bank = gpiochip_get_data(gc); samsung_add_pin_ranges() local
926 int pin, bank, ret; samsung_pinctrl_register() local
987 struct samsung_pin_bank *bank = drvdata->pin_banks; samsung_pinctrl_unregister() local
1012 struct samsung_pin_bank *bank = gpiochip_get_data(gc); samsung_gpio_set_pud() local
1032 struct samsung_pin_bank *bank = gpiochip_get_data(gc); samsung_gpio_set_config() local
1084 struct samsung_pin_bank *bank = drvdata->pin_banks; samsung_gpiolib_register() local
1134 struct samsung_pin_bank *bank; samsung_banks_node_put() local
1149 struct samsung_pin_bank *bank; samsung_banks_node_get() local
1191 struct samsung_pin_bank *bank; samsung_pinctrl_get_soc_data() local
1341 struct samsung_pin_bank *bank; samsung_pinctrl_suspend() local
1405 struct samsung_pin_bank *bank; samsung_pinctrl_resume() local
[all...]
H A Dpinctrl-s3c64xx.c213 * @bank: pin bank related to the domain
217 struct samsung_pin_bank *bank; member
281 struct samsung_pin_bank *bank, int pin) in s3c64xx_irq_set_function() argument
283 const struct samsung_pin_bank_type *bank_type = bank->type; in s3c64xx_irq_set_function()
291 reg = d->virt_base + bank->pctl_offset; in s3c64xx_irq_set_function()
294 /* 4-bit bank type with 2 con regs */ in s3c64xx_irq_set_function()
302 raw_spin_lock_irqsave(&bank->slock, flags); in s3c64xx_irq_set_function()
306 val |= bank->eint_func << shift; in s3c64xx_irq_set_function()
309 raw_spin_unlock_irqrestore(&bank in s3c64xx_irq_set_function()
318 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); s3c64xx_gpio_irq_set_mask() local
344 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); s3c64xx_gpio_irq_ack() local
354 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); s3c64xx_gpio_irq_set_type() local
398 struct samsung_pin_bank *bank = h->host_data; s3c64xx_gpio_irq_map() local
465 struct samsung_pin_bank *bank; s3c64xx_eint_gpio_init() local
560 struct samsung_pin_bank *bank = ddata->bank; s3c64xx_eint0_irq_set_type() local
668 struct samsung_pin_bank *bank = ddata->bank; s3c64xx_eint0_irq_map() local
703 struct samsung_pin_bank *bank; s3c64xx_eint_eint0_init() local
[all...]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_gen4_hw_csr_data.h37 #define READ_CSR_RING_HEAD(csr_base_addr, bank, ring) \ argument
39 ADF_RING_BUNDLE_SIZE * (bank) + \
41 #define READ_CSR_RING_TAIL(csr_base_addr, bank, ring) \ argument
43 ADF_RING_BUNDLE_SIZE * (bank) + \
45 #define READ_CSR_STAT(csr_base_addr, bank) \ argument
47 ADF_RING_BUNDLE_SIZE * (bank) + ADF_RING_CSR_STAT)
48 #define READ_CSR_UO_STAT(csr_base_addr, bank) \ argument
50 ADF_RING_BUNDLE_SIZE * (bank) + ADF_RING_CSR_UO_STAT)
51 #define READ_CSR_E_STAT(csr_base_addr, bank) \ argument
53 ADF_RING_BUNDLE_SIZE * (bank) + ADF_RING_CSR_E_STAT)
[all …]
H A Dadf_gen4_hw_csr_data.c11 static u32 read_csr_ring_head(void __iomem *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_head() argument
13 return READ_CSR_RING_HEAD(csr_base_addr, bank, ring); in read_csr_ring_head()
16 static void write_csr_ring_head(void __iomem *csr_base_addr, u32 bank, u32 ring, in write_csr_ring_head() argument
19 WRITE_CSR_RING_HEAD(csr_base_addr, bank, ring, value); in write_csr_ring_head()
22 static u32 read_csr_ring_tail(void __iomem *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_tail() argument
24 return READ_CSR_RING_TAIL(csr_base_addr, bank, ring); in read_csr_ring_tail()
27 static void write_csr_ring_tail(void __iomem *csr_base_addr, u32 bank, u32 ring, in write_csr_ring_tail() argument
30 WRITE_CSR_RING_TAIL(csr_base_addr, bank, ring, value); in write_csr_ring_tail()
33 static u32 read_csr_stat(void __iomem *csr_base_addr, u32 bank) in read_csr_stat() argument
35 return READ_CSR_STAT(csr_base_addr, bank); in read_csr_stat()
[all …]
H A Dadf_transport.c40 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->lock); in adf_unreserve_ring()
[all …]
H A Dadf_gen2_hw_csr_data.h30 #define READ_CSR_RING_HEAD(csr_base_addr, bank, ring) \ argument
31 ADF_CSR_RD(csr_base_addr, (ADF_RING_BUNDLE_SIZE * (bank)) + \
33 #define READ_CSR_RING_TAIL(csr_base_addr, bank, ring) \ argument
34 ADF_CSR_RD(csr_base_addr, (ADF_RING_BUNDLE_SIZE * (bank)) + \
36 #define READ_CSR_E_STAT(csr_base_addr, bank) \ argument
37 ADF_CSR_RD(csr_base_addr, (ADF_RING_BUNDLE_SIZE * (bank)) + \
39 #define WRITE_CSR_RING_CONFIG(csr_base_addr, bank, ring, value) \ argument
40 ADF_CSR_WR(csr_base_addr, (ADF_RING_BUNDLE_SIZE * (bank)) + \
42 #define WRITE_CSR_RING_BASE(csr_base_addr, bank, ring, value) \ argument
47 ADF_CSR_WR(csr_base_addr, (ADF_RING_BUNDLE_SIZE * (bank)) + \
[all …]
H A Dadf_gen2_hw_csr_data.c11 static u32 read_csr_ring_head(void __iomem *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_head() argument
13 return READ_CSR_RING_HEAD(csr_base_addr, bank, ring); in read_csr_ring_head()
16 static void write_csr_ring_head(void __iomem *csr_base_addr, u32 bank, u32 ring, in write_csr_ring_head() argument
19 WRITE_CSR_RING_HEAD(csr_base_addr, bank, ring, value); in write_csr_ring_head()
22 static u32 read_csr_ring_tail(void __iomem *csr_base_addr, u32 bank, u32 ring) in read_csr_ring_tail() argument
24 return READ_CSR_RING_TAIL(csr_base_addr, bank, ring); in read_csr_ring_tail()
27 static void write_csr_ring_tail(void __iomem *csr_base_addr, u32 bank, u32 ring, in write_csr_ring_tail() argument
30 WRITE_CSR_RING_TAIL(csr_base_addr, bank, ring, value); in write_csr_ring_tail()
33 static u32 read_csr_e_stat(void __iomem *csr_base_addr, u32 bank) in read_csr_e_stat() argument
35 return READ_CSR_E_STAT(csr_base_addr, bank); in read_csr_e_stat()
[all …]
/linux/drivers/pinctrl/renesas/
H A Dsh_pfc.h442 #define PORT_GP_CFG_1(bank, pin, fn, sfx, cfg) \ argument
443 fn(bank, pin, GP_##bank##_##pin, sfx, cfg)
444 #define PORT_GP_1(bank, pin, fn, sfx) PORT_GP_CFG_1(bank, pin, fn, sfx, 0) argument
446 #define PORT_GP_CFG_2(bank, fn, sfx, cfg) \ argument
447 PORT_GP_CFG_1(bank, 0, fn, sfx, cfg), \
448 PORT_GP_CFG_1(bank, 1, fn, sfx, cfg)
449 #define PORT_GP_2(bank, fn, sfx) PORT_GP_CFG_2(bank, fn, sfx, 0) argument
451 #define PORT_GP_CFG_4(bank, fn, sfx, cfg) \ argument
452 PORT_GP_CFG_2(bank, fn, sfx, cfg), \
453 PORT_GP_CFG_1(bank, 2, fn, sfx, cfg), \
[all …]
/linux/drivers/pinctrl/stm32/
H A Dpinctrl-stm32.c184 static void stm32_pmx_get_mode(struct stm32_gpio_bank *bank, int pin, u32 *mode, u32 *alt);
219 static void stm32_gpio_backup_value(struct stm32_gpio_bank *bank, in stm32_gpio_backup_value() argument
222 bank->pin_backup[offset].value = value; in stm32_gpio_backup_value()
225 static void stm32_gpio_backup_mode(struct stm32_gpio_bank *bank, u32 offset, in stm32_gpio_backup_mode() argument
228 bank->pin_backup[offset].mode = mode; in stm32_gpio_backup_mode()
229 bank->pin_backup[offset].alt = alt; in stm32_gpio_backup_mode()
232 static void stm32_gpio_backup_driving(struct stm32_gpio_bank *bank, u32 offset, in stm32_gpio_backup_driving() argument
235 bank->pin_backup[offset].drive = drive; in stm32_gpio_backup_driving()
238 static void stm32_gpio_backup_speed(struct stm32_gpio_bank *bank, u32 offset, in stm32_gpio_backup_speed() argument
241 bank in stm32_gpio_backup_speed()
244 stm32_gpio_backup_bias(struct stm32_gpio_bank * bank,u32 offset,u32 bias) stm32_gpio_backup_bias() argument
250 stm32_gpio_backup_advcfg(struct stm32_gpio_bank * bank,u32 offset,u32 mask,u32 value) stm32_gpio_backup_advcfg() argument
260 stm32_gpio_backup_skew_delay(struct stm32_gpio_bank * bank,u32 offset,u32 delay) stm32_gpio_backup_skew_delay() argument
267 stm32_gpio_rif_valid(struct stm32_gpio_bank * bank,unsigned int gpio_nr) stm32_gpio_rif_valid() argument
289 stm32_gpio_rif_acquire_semaphore(struct stm32_gpio_bank * bank,unsigned int gpio_nr) stm32_gpio_rif_acquire_semaphore() argument
326 stm32_gpio_rif_release_semaphore(struct stm32_gpio_bank * bank,unsigned int gpio_nr) stm32_gpio_rif_release_semaphore() argument
341 __stm32_gpio_set(struct stm32_gpio_bank * bank,unsigned int offset,u32 value) __stm32_gpio_set() argument
354 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_request() local
375 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_free() local
385 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_get() local
393 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_set() local
403 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_direction_output() local
413 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_to_irq() local
426 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_get_direction() local
446 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); stm32_gpio_init_valid_mask() local
497 struct stm32_gpio_bank *bank = d->domain->host_data; stm32_gpio_irq_trigger() local
519 struct stm32_gpio_bank *bank = d->domain->host_data; stm32_gpio_set_type() local
545 struct stm32_gpio_bank *bank = irq_data->domain->host_data; stm32_gpio_irq_request_resources() local
565 struct stm32_gpio_bank *bank = irq_data->domain->host_data; stm32_gpio_irq_release_resources() local
606 struct stm32_gpio_bank *bank = d->host_data; stm32_gpio_domain_activate() local
631 struct stm32_gpio_bank *bank = d->host_data; stm32_gpio_domain_alloc() local
670 struct stm32_gpio_bank *bank = d->host_data; stm32_gpio_domain_free() local
935 stm32_pmx_set_mode(struct stm32_gpio_bank * bank,int pin,u32 mode,u32 alt) stm32_pmx_set_mode() argument
977 stm32_pmx_get_mode(struct stm32_gpio_bank * bank,int pin,u32 * mode,u32 * alt) stm32_pmx_get_mode() argument
1000 struct stm32_gpio_bank *bank; stm32_pmx_set_mux() local
1032 struct stm32_gpio_bank *bank = gpiochip_get_data(range->gc); stm32_pmx_gpio_set_direction() local
1043 struct stm32_gpio_bank *bank; stm32_pmx_request() local
1080 stm32_pconf_set_driving(struct stm32_gpio_bank * bank,unsigned offset,u32 drive) stm32_pconf_set_driving() argument
1115 stm32_pconf_get_driving(struct stm32_gpio_bank * bank,unsigned int offset) stm32_pconf_get_driving() argument
1126 stm32_pconf_set_speed(struct stm32_gpio_bank * bank,unsigned offset,u32 speed) stm32_pconf_set_speed() argument
1161 stm32_pconf_get_speed(struct stm32_gpio_bank * bank,unsigned int offset) stm32_pconf_get_speed() argument
1172 stm32_pconf_set_bias(struct stm32_gpio_bank * bank,unsigned offset,u32 bias) stm32_pconf_set_bias() argument
1207 stm32_pconf_get_bias(struct stm32_gpio_bank * bank,unsigned int offset) stm32_pconf_get_bias() argument
1219 stm32_pconf_set_advcfgr_nolock(struct stm32_gpio_bank * bank,int offset,u32 mask,u32 value) stm32_pconf_set_advcfgr_nolock() argument
1233 stm32_pconf_set_advcfgr(struct stm32_gpio_bank * bank,int offset,u32 mask,u32 value) stm32_pconf_set_advcfgr() argument
1263 stm32_pconf_get_advcfgr(struct stm32_gpio_bank * bank,int offset,u32 mask) stm32_pconf_get_advcfgr() argument
1278 stm32_pconf_set_io_sync(struct stm32_gpio_bank * bank,int offset,u32 io_sync) stm32_pconf_set_io_sync() argument
1287 stm32_pconf_get_io_sync_str(struct stm32_gpio_bank * bank,int offset) stm32_pconf_get_io_sync_str() argument
1308 stm32_pconf_set_skew_delay(struct stm32_gpio_bank * bank,int offset,u32 delay,bool is_dir_input) stm32_pconf_set_skew_delay() argument
1349 stm32_pconf_get_skew_delay_val(struct stm32_gpio_bank * bank,int offset) stm32_pconf_get_skew_delay_val() argument
1361 stm32_pconf_get_skew_dir_str(struct stm32_gpio_bank * bank,int offset) stm32_pconf_get_skew_dir_str() argument
1367 stm32_pconf_get(struct stm32_gpio_bank * bank,unsigned int offset,bool dir) stm32_pconf_get() argument
1389 struct stm32_gpio_bank *bank; stm32_pconf_parse_conf() local
1519 struct stm32_gpio_bank *bank; stm32_pconf_dbg_show() local
1613 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
1638 struct stm32_gpio_bank *bank = &pctl->banks[pctl->nbanks]; stm32_gpiolib_register_bank() local
1967 struct stm32_gpio_bank *bank = &pctl->banks[i]; stm32_pctl_probe() local
2007 struct stm32_gpio_bank *bank = &pctl->banks[i]; stm32_pctl_probe() local
2023 struct stm32_gpio_bank *bank; stm32_pinctrl_restore_gpio_regs() local
[all...]
/linux/drivers/net/phy/mscc/
H A Dmscc_macsec.c23 enum macsec_bank bank, u32 reg) in vsc8584_macsec_phy_read() argument
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() argument
72 MSCC_PHY_MACSEC_20_TARGET(bank >> 2)); in vsc8584_macsec_phy_write()
74 if ((bank >> 2 == 0x1) || (bank >> 2 == 0x3)) in vsc8584_macsec_phy_write()
75 bank &= 0x3; in vsc8584_macsec_phy_write()
[all …]
/linux/tools/testing/selftests/gpio/
H A Dgpio-sim.sh182 create_bank chip bank
184 test -n `cat $CONFIGFS_DIR/chip/bank/chip_name` || fail "chip_name doesn't work"
190 create_bank chip bank
197 create_bank chip bank
207 create_bank chip bank
215 create_bank chip bank
216 set_num_lines chip bank 16
224 create_bank chip bank
225 set_label chip bank foobar
233 create_bank chip bank
[all …]
/linux/arch/x86/kernel/cpu/mce/
H A Damd.c151 enum smca_bank_types smca_get_bank_type(unsigned int cpu, unsigned int bank) in smca_get_bank_type() argument
155 if (bank >= MAX_NR_BANKS) in smca_get_bank_type()
158 b = &per_cpu(smca_banks, cpu)[bank]; in smca_get_bank_type()
170 * alphanumerically sorted by bank type.
224 * So to define a unique name for each bank, we use a temp c-string to append
234 /* This block's number within its bank. */
236 /* MCA bank number that contains this block. */
237 unsigned int bank; member
238 /* CPU which controls this block's MCA bank. */
250 /* List of threshold blocks within this block's MCA bank
277 smca_configure(unsigned int bank,unsigned int cpu) smca_configure() argument
387 lvt_interrupt_supported(unsigned int bank,u32 msr_high_bits) lvt_interrupt_supported() argument
481 threshold_restart_bank(unsigned int bank,bool intr_en) threshold_restart_bank() argument
533 get_block_address(u32 current_addr,u32 low,u32 high,unsigned int bank,unsigned int block,unsigned int cpu) get_block_address() argument
567 prepare_threshold_block(unsigned int bank,unsigned int block,u32 addr,int offset,u32 misc_high) prepare_threshold_block() argument
638 disable_err_thresholding(struct cpuinfo_x86 * c,unsigned int bank) disable_err_thresholding() argument
728 unsigned int bank, block, cpu = smp_processor_id(); mce_amd_feature_init() local
866 mce_amd_handle_storm(unsigned int bank,bool on) mce_amd_handle_storm() argument
871 amd_reset_thr_limit(unsigned int bank) amd_reset_thr_limit() argument
1045 get_name(unsigned int cpu,unsigned int bank,struct threshold_block * b) get_name() argument
1083 allocate_threshold_blocks(unsigned int cpu,struct threshold_bank * tb,unsigned int bank,unsigned int block,u32 address) allocate_threshold_blocks() argument
1156 threshold_create_bank(struct threshold_bank ** bp,unsigned int cpu,unsigned int bank) threshold_create_bank() argument
1201 threshold_remove_bank(struct threshold_bank * bank) threshold_remove_bank() argument
1216 unsigned int bank, numbanks = this_cpu_read(mce_num_banks); __threshold_remove_device() local
1258 unsigned int numbanks, bank; mce_threshold_create_device() local
[all...]
H A Dintel.c138 static void cmci_set_threshold(int bank, int thresh) in cmci_set_threshold() argument
144 rdmsrq(MSR_IA32_MCx_CTL2(bank), val); in cmci_set_threshold()
146 wrmsrq(MSR_IA32_MCx_CTL2(bank), val | thresh); in cmci_set_threshold()
150 void mce_intel_handle_storm(int bank, bool on) in mce_intel_handle_storm() argument
153 cmci_set_threshold(bank, CMCI_STORM_THRESHOLD); in mce_intel_handle_storm()
155 cmci_set_threshold(bank, cmci_threshold[bank]); in mce_intel_handle_storm()
176 static bool cmci_skip_bank(int bank, u64 *val) in cmci_skip_bank() argument
180 if (test_bit(bank, owned)) in cmci_skip_bank()
184 if (test_bit(bank, mce_banks_ce_disabled)) in cmci_skip_bank()
187 rdmsrq(MSR_IA32_MCx_CTL2(bank), *val); in cmci_skip_bank()
[all …]
/linux/drivers/bus/
H A Duniphier-system-bus.c23 #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() argument
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()
[all...]
/linux/drivers/pinctrl/
H A Dpinctrl-rockchip.c331 * given a pin number that is local to a pin controller, find out the pin bank
332 * and the register base of the pin bank.
900 static void rockchip_get_recalced_mux(struct rockchip_pin_bank *bank, int pin, in rockchip_get_recalced_mux() argument
903 struct rockchip_pinctrl *info = bank->drvdata; in rockchip_get_recalced_mux()
910 if (data->num == bank->bank_num && in rockchip_get_recalced_mux()
1276 static bool rockchip_get_mux_route(struct rockchip_pin_bank *bank, int pin, in rockchip_get_mux_route() argument
1279 struct rockchip_pinctrl *info = bank->drvdata; in rockchip_get_mux_route()
1286 if ((data->bank_num == bank->bank_num) && in rockchip_get_mux_route()
1301 static int rockchip_get_mux(struct rockchip_pin_bank *bank, int pin) in rockchip_get_mux() argument
1303 struct rockchip_pinctrl *info = bank in rockchip_get_mux()
1399 rockchip_verify_mux(struct rockchip_pin_bank * bank,int pin,int mux) rockchip_verify_mux() argument
1437 rockchip_set_mux(struct rockchip_pin_bank * bank,int pin,int mux) rockchip_set_mux() argument
1581 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
1613 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
1645 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
1679 rv1103b_calc_drv_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rv1103b_calc_drv_reg_and_bit() argument
1748 rv1103b_calc_pull_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rv1103b_calc_pull_reg_and_bit() argument
1817 rv1103b_calc_schmitt_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rv1103b_calc_schmitt_reg_and_bit() argument
1894 rv1106_calc_drv_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rv1106_calc_drv_reg_and_bit() argument
1915 rv1106_calc_pull_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rv1106_calc_pull_reg_and_bit() argument
1932 rv1106_calc_schmitt_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rv1106_calc_schmitt_reg_and_bit() argument
1956 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
1987 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
2019 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
2050 rv1126_calc_pull_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rv1126_calc_pull_reg_and_bit() argument
2087 rv1126_calc_drv_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rv1126_calc_drv_reg_and_bit() argument
2125 rv1126_calc_schmitt_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rv1126_calc_schmitt_reg_and_bit() argument
2160 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
2180 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
2198 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
2220 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
2257 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
2293 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
2325 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
2344 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
2363 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
2382 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
2402 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
2435 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
2469 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
2501 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
2533 rk3506_calc_drv_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3506_calc_drv_reg_and_bit() argument
2618 rk3506_calc_pull_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3506_calc_pull_reg_and_bit() argument
2703 rk3506_calc_schmitt_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3506_calc_schmitt_reg_and_bit() argument
2788 rk3528_calc_drv_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3528_calc_drv_reg_and_bit() argument
2824 rk3528_calc_pull_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3528_calc_pull_reg_and_bit() argument
2860 rk3528_calc_schmitt_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3528_calc_schmitt_reg_and_bit() argument
2897 rk3562_calc_drv_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3562_calc_drv_reg_and_bit() argument
2945 rk3562_calc_pull_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3562_calc_pull_reg_and_bit() argument
2993 rk3562_calc_schmitt_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3562_calc_schmitt_reg_and_bit() argument
3040 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
3073 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
3111 rk3576_calc_drv_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3576_calc_drv_reg_and_bit() argument
3156 rk3576_calc_pull_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3576_calc_pull_reg_and_bit() argument
3201 rk3576_calc_schmitt_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3576_calc_schmitt_reg_and_bit() argument
3344 rk3588_calc_pull_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3588_calc_pull_reg_and_bit() argument
3369 rk3588_calc_drv_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3588_calc_drv_reg_and_bit() argument
3394 rk3588_calc_schmitt_reg_and_bit(struct rockchip_pin_bank * bank,int pin_num,struct regmap ** regmap,int * reg,u8 * bit) rk3588_calc_schmitt_reg_and_bit() argument
3425 rockchip_get_drive_perpin(struct rockchip_pin_bank * bank,int pin_num) rockchip_get_drive_perpin() argument
3531 rockchip_set_drive_perpin(struct rockchip_pin_bank * bank,int pin_num,int strength) rockchip_set_drive_perpin() argument
3678 rockchip_get_pull(struct rockchip_pin_bank * bank,int pin_num) rockchip_get_pull() argument
3744 rockchip_set_pull(struct rockchip_pin_bank * bank,int pin_num,int pull) rockchip_set_pull() argument
3836 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
3859 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
3882 rockchip_get_schmitt(struct rockchip_pin_bank * bank,int pin_num) rockchip_get_schmitt() argument
3920 rockchip_set_schmitt(struct rockchip_pin_bank * bank,int pin_num,int enable) rockchip_set_schmitt() argument
4007 struct rockchip_pin_bank *bank; rockchip_pmx_set() local
4043 struct rockchip_pin_bank *bank; rockchip_pmx_gpio_request_enable() local
4095 rockchip_pinconf_defer_pin(struct rockchip_pin_bank * bank,unsigned int pin,u32 param,u32 arg) rockchip_pinconf_defer_pin() argument
4118 struct rockchip_pin_bank *bank = pin_to_bank(info, pin); rockchip_pinconf_set() local
4219 struct rockchip_pin_bank *bank = pin_to_bank(info, pin); rockchip_pinconf_get() local
4323 struct rockchip_pin_bank *bank; rockchip_pinctrl_parse_groups() local
4462 int pin, bank, ret; rockchip_pinctrl_register() local
4518 struct rockchip_pin_bank *bank; rockchip_pinctrl_get_soc_data() local
4620 struct rockchip_pin_bank *bank = ctrl->pin_banks; iomux_recalced_routes_init() local
4845 struct rockchip_pin_bank *bank = NULL; rockchip_pinctrl_probe() local
4889 struct rockchip_pin_bank *bank; rockchip_pinctrl_remove() local
[all...]
H A Dpinctrl-microchip-sgpio.c354 struct sgpio_bank *bank = pinctrl_dev_get_drvdata(pctldev); in sgpio_pinconf_get() local
356 struct sgpio_priv *priv = bank->priv; in sgpio_pinconf_get()
364 val = bank->is_input; in sgpio_pinconf_get()
368 val = !bank->is_input; in sgpio_pinconf_get()
372 if (bank->is_input) in sgpio_pinconf_get()
389 struct sgpio_bank *bank = pinctrl_dev_get_drvdata(pctldev); in sgpio_pinconf_set() local
390 struct sgpio_priv *priv = bank->priv; in sgpio_pinconf_set()
403 if (bank->is_input) in sgpio_pinconf_set()
455 struct sgpio_bank *bank = pinctrl_dev_get_drvdata(pctldev); in sgpio_gpio_set_direction() local
457 return (input == bank in sgpio_gpio_set_direction()
464 struct sgpio_bank *bank = pinctrl_dev_get_drvdata(pctldev); sgpio_gpio_request_enable() local
490 struct sgpio_bank *bank = pinctrl_dev_get_drvdata(pctldev); sgpio_pctl_get_groups_count() local
498 struct sgpio_bank *bank = pinctrl_dev_get_drvdata(pctldev); sgpio_pctl_get_group_name() local
508 struct sgpio_bank *bank = pinctrl_dev_get_drvdata(pctldev); sgpio_pctl_get_group_pins() local
526 struct sgpio_bank *bank = gpiochip_get_data(gc); microchip_sgpio_direction_input() local
535 struct sgpio_bank *bank = gpiochip_get_data(gc); microchip_sgpio_direction_output() local
550 struct sgpio_bank *bank = gpiochip_get_data(gc); microchip_sgpio_get_direction() local
563 struct sgpio_bank *bank = gpiochip_get_data(gc); microchip_sgpio_get_value() local
576 struct sgpio_bank *bank = gpiochip_get_data(gc); microchip_sgpio_of_xlate() local
642 struct sgpio_bank *bank = gpiochip_get_data(chip); microchip_sgpio_irq_settype() local
677 struct sgpio_bank *bank = gpiochip_get_data(chip); microchip_sgpio_irq_setreg() local
708 struct sgpio_bank *bank = gpiochip_get_data(chip); microchip_sgpio_irq_ack() local
761 struct sgpio_bank *bank = gpiochip_get_data(chip); sgpio_irq_handler() local
790 struct sgpio_bank *bank; microchip_sgpio_register_bank() local
[all...]
/linux/drivers/pinctrl/meson/
H A Dpinctrl-amlogic-a4.c55 * partial bank(subordinate) pins mux config use other bank(main) mux registgers
56 * m_bank_id: the main bank which pin_id from 0, but register bit not from bit 0
57 * m_bit_offs: bit offset the main bank mux register
58 * s_bit_offs: start bit that subordinate bank use mux register
59 * sid: start pin_id of subordinate bank
60 * eid: end pin_id of subordinate bank
61 * next: subordinate bank reused multiple other bank groups.
224 struct aml_gpio_bank *bank in aml_pctl_set_function() local
332 struct aml_gpio_bank *bank = gpio_chip_to_bank(range->gc); aml_calc_reg_and_bit() local
346 struct aml_gpio_bank *bank = gpio_chip_to_bank(range->gc); aml_pinconf_get_pull() local
380 struct aml_gpio_bank *bank = gpio_chip_to_bank(range->gc); aml_pinconf_get_drive_strength() local
419 struct aml_gpio_bank *bank = gpio_chip_to_bank(range->gc); aml_pinconf_get_gpio_bit() local
509 struct aml_gpio_bank *bank = gpio_chip_to_bank(range->gc); aml_pinconf_disable_bias() local
522 struct aml_gpio_bank *bank = gpio_chip_to_bank(range->gc); aml_pinconf_enable_bias() local
544 struct aml_gpio_bank *bank = gpio_chip_to_bank(range->gc); aml_pinconf_set_drive_strength() local
579 struct aml_gpio_bank *bank = gpio_chip_to_bank(range->gc); aml_pinconf_set_gpio_bit() local
939 aml_gpio_calc_reg_and_bit(struct aml_gpio_bank * bank,unsigned int reg_type,unsigned int gpio,unsigned int * reg,unsigned int * bit) aml_gpio_calc_reg_and_bit() argument
954 struct aml_gpio_bank *bank = gpiochip_get_data(chip); aml_gpio_get_direction() local
969 struct aml_gpio_bank *bank = gpiochip_get_data(chip); aml_gpio_direction_input() local
980 struct aml_gpio_bank *bank = gpiochip_get_data(chip); aml_gpio_direction_output() local
996 struct aml_gpio_bank *bank = gpiochip_get_data(chip); aml_gpio_set() local
1007 struct aml_gpio_bank *bank = gpiochip_get_data(chip); aml_gpio_get() local
1029 init_bank_register_bit(struct aml_pinctrl * info,struct aml_gpio_bank * bank) init_bank_register_bit() argument
1060 struct aml_gpio_bank *bank = &info->banks[bank_nr]; aml_gpiolib_register_bank() local
1114 int i = 0, j = 0, k = 0, bank; aml_pctl_probe_dt() local
[all...]
/linux/sound/pci/au88x0/
H A Dau88x0_wt.h21 #define WT_CTRL(bank) (((((bank)&1)<<0xd) + 0x00)<<2) /* 0x0000 */ argument
22 #define WT_SRAMP(bank) (((((bank)&1)<<0xd) + 0x01)<<2) /* 0x0004 */ argument
23 #define WT_DSREG(bank) (((((bank)&1)<<0xd) + 0x02)<<2) /* 0x0008 */ argument
24 #define WT_MRAMP(bank) (((((bank)&1)<<0xd) + 0x03)<<2) /* 0x000c */ argument
25 #define WT_GMODE(bank) (((((bank)&1)<<0xd) + 0x04)<<2) /* 0x0010 */ argument
26 #define WT_ARAMP(bank) (((((bank)&1)<<0xd) + 0x05)<<2) /* 0x0014 */ argument
/linux/arch/arm/boot/dts/samsung/
H A Dexynos5410-pinctrl.dtsi12 gpa0: gpa0-gpio-bank {
20 gpa1: gpa1-gpio-bank {
28 gpa2: gpa2-gpio-bank {
36 gpb0: gpb0-gpio-bank {
44 gpb1: gpb1-gpio-bank {
52 gpb2: gpb2-gpio-bank {
60 gpb3: gpb3-gpio-bank {
68 gpc0: gpc0-gpio-bank {
76 gpc3: gpc3-gpio-bank {
84 gpc1: gpc1-gpio-bank {
[all …]
/linux/drivers/gpio/
H A Dgpio-f7188x.c96 struct f7188x_gpio_bank *bank; member
293 struct f7188x_gpio_bank *bank = gpiochip_get_data(chip); in f7188x_gpio_get_direction() local
294 struct f7188x_sio *sio = bank->data->sio; in f7188x_gpio_get_direction()
302 dir = superio_inb(sio->addr, f7188x_gpio_dir(bank->regbase)); in f7188x_gpio_get_direction()
318 struct f7188x_gpio_bank *bank = gpiochip_get_data(chip); in f7188x_gpio_direction_in() local
319 struct f7188x_sio *sio = bank->data->sio; in f7188x_gpio_direction_in()
327 dir = superio_inb(sio->addr, f7188x_gpio_dir(bank->regbase)); in f7188x_gpio_direction_in()
333 superio_outb(sio->addr, f7188x_gpio_dir(bank->regbase), dir); in f7188x_gpio_direction_in()
343 struct f7188x_gpio_bank *bank = gpiochip_get_data(chip); in f7188x_gpio_get() local
344 struct f7188x_sio *sio = bank in f7188x_gpio_get()
368 struct f7188x_gpio_bank *bank = gpiochip_get_data(chip); f7188x_gpio_direction_out() local
400 struct f7188x_gpio_bank *bank = gpiochip_get_data(chip); f7188x_gpio_set() local
427 struct f7188x_gpio_bank *bank = gpiochip_get_data(chip); f7188x_gpio_set_config() local
512 struct f7188x_gpio_bank *bank = &data->bank[i]; f7188x_gpio_probe() local
[all...]
H A Dgpio-mt7621.c34 int bank; member
65 struct mtk_gc *bank = gpiochip_get_data(gc); in mt7621_gpio_gc_to_priv() local
67 return bank->parent_priv; in mt7621_gpio_gc_to_priv()
84 offset = (rg->bank * GPIO_BANK_STRIDE) + offset; in mtk_gpio_w32()
94 offset = (rg->bank * GPIO_BANK_STRIDE) + offset; in mtk_gpio_r32()
99 mt7621_gpio_irq_bank_handler(struct mtk_gc *bank) in mt7621_gpio_irq_bank_handler() argument
101 struct mtk *priv = bank->parent_priv; in mt7621_gpio_irq_bank_handler()
103 int hwbase = bank->chip.gc.offset; in mt7621_gpio_irq_bank_handler()
107 pending = mtk_gpio_r32(bank, GPIO_REG_STAT); in mt7621_gpio_irq_bank_handler()
111 mtk_gpio_w32(bank, GPIO_REG_STA in mt7621_gpio_irq_bank_handler()
126 struct mtk_gc *bank = &priv->gc_map[i]; mt7621_gpio_irq_handler() local
134 mt7621_gpio_hwirq_to_offset(irq_hw_number_t hwirq,struct mtk_gc * bank) mt7621_gpio_hwirq_to_offset() argument
299 struct mtk_gc *bank = &priv->gc_map[i]; mt7621_gpio_hwirq_to_bank() local
314 struct mtk_gc *bank = mt7621_gpio_hwirq_to_bank(priv, hwirq); mt7621_gpio_irq_map() local
383 mt7621_gpio_bank_probe(struct device * dev,int bank) mt7621_gpio_bank_probe() argument
[all...]
H A Dgpio-tegra.c64 unsigned int bank; member
114 static unsigned int tegra_gpio_compose(unsigned int bank, unsigned int port, in tegra_gpio_compose() argument
117 return (bank << 5) | ((port & 0x3) << 3) | (bit & 0x7); in tegra_gpio_compose()
218 struct tegra_gpio_bank *bank = &tgi->bank_info[GPIO_BANK(offset)]; in tegra_gpio_set_debounce() local
235 spin_lock_irqsave(&bank->dbc_lock[port], flags); in tegra_gpio_set_debounce()
236 if (bank->dbc_cnt[port] < debounce_ms) { in tegra_gpio_set_debounce()
238 bank->dbc_cnt[port] = debounce_ms; in tegra_gpio_set_debounce()
240 spin_unlock_irqrestore(&bank->dbc_lock[port], flags); in tegra_gpio_set_debounce()
293 struct tegra_gpio_bank *bank; in tegra_gpio_irq_set_type() local
298 bank in tegra_gpio_irq_set_type()
372 struct tegra_gpio_bank *bank = NULL; tegra_gpio_irq_handler() local
455 struct tegra_gpio_bank *bank = &tgi->bank_info[b]; tegra_gpio_resume() local
490 struct tegra_gpio_bank *bank = &tgi->bank_info[b]; tegra_gpio_suspend() local
526 struct tegra_gpio_bank *bank; tegra_gpio_irq_set_wake() local
678 struct tegra_gpio_bank *bank; tegra_gpio_probe() local
[all...]
/linux/drivers/pinctrl/sunxi/
H A Dpinctrl-sunxi.h37 #define SUNXI_PINCTRL_PIN(bank, pin) \ argument
38 PINCTRL_PIN(P ## bank ## _BASE + (pin), "P" #bank #pin)
191 * Output latch shadow, one word per bank. Seeded lockless at
250 u8 bank) in sunxi_irq_cfg_reg()
253 return bank; in sunxi_irq_cfg_reg()
255 return desc->irq_bank_map[bank];
258 static inline u32 sunxi_irq_base_reg(const struct sunxi_pinctrl *pctl, u16 bank) in sunxi_irq_cfg_offset()
261 return pctl->bank_offset + bank * pctl->bank_mem_size +
265 sunxi_irq_hw_bank_num(pctl->desc, bank) * IRQ_MEM_SIZ in sunxi_irq_ctrl_reg_from_bank()
238 sunxi_irq_hw_bank_num(const struct sunxi_pinctrl_desc * desc,u8 bank) sunxi_irq_hw_bank_num() argument
249 u8 bank = irq / IRQ_PER_BANK; sunxi_irq_cfg_reg() local
262 sunxi_irq_ctrl_reg_from_bank(const struct sunxi_pinctrl_desc * desc,u8 bank) sunxi_irq_ctrl_reg_from_bank() argument
270 u8 bank = irq / IRQ_PER_BANK; sunxi_irq_ctrl_reg() local
281 sunxi_irq_debounce_reg_from_bank(const struct sunxi_pinctrl_desc * desc,u8 bank) sunxi_irq_debounce_reg_from_bank() argument
287 sunxi_irq_status_reg_from_bank(const struct sunxi_pinctrl_desc * desc,u8 bank) sunxi_irq_status_reg_from_bank() argument
296 u8 bank = irq / IRQ_PER_BANK; sunxi_irq_status_reg() local
309 u8 bank = pin / PINS_PER_BANK; sunxi_grp_config_reg() local
[all...]
/linux/drivers/mtd/nand/raw/
H A Ddenali.h18 #define DEVICE_RESET__BANK(bank) BIT(bank) argument
36 #define RB_PIN_ENABLED__BANK(bank) BIT(bank) argument
208 #define INTR_STATUS(bank) (0x410 + (bank) * 0x50) argument
209 #define INTR_EN(bank) (0x420 + (bank) * 0x50) argument
230 #define PAGE_CNT(bank) (0x430 + (bank) * 0x50) argument
231 #define ERR_PAGE_ADDR(bank) (0x440 + (bank) * 0x50) argument
232 #define ERR_BLOCK_ADDR(bank) (0x450 + (bank) * 0x50) argument
254 #define ECC_COR_INFO(bank) (0x650 + (bank) / 2 * 0x10) argument
255 #define ECC_COR_INFO__SHIFT(bank) ((bank) % 2 * 8) argument
308 int bank; member

12345678910>>...22