Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-sch311x.c42 unsigned short *config_regs; /* pointer to definition below */ member
53 unsigned short config_regs[8]; member
62 .config_regs = {0x23, 0x24, 0x25, 0x26, 0x27, 0x29, 0x2a, 0x2b},
67 .config_regs = {0x00, 0x2c, 0x2d, 0x00, 0x00, 0x00, 0x00, 0x32},
72 .config_regs = {0x33, 0x34, 0x35, 0x36, 0x37, 0x00, 0x39, 0x3a},
77 .config_regs = {0x3b, 0x00, 0x3d, 0x00, 0x6e, 0x6f, 0x72, 0x73},
82 .config_regs = {0x3f, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46},
87 .config_regs = {0x47, 0x48, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59},
136 if (block->config_regs[offset] == 0) /* GPIO is not available */ in sch311x_gpio_request()
139 if (!request_region(block->runtime_reg + block->config_regs[offset], in sch311x_gpio_request()
[all …]
/kernel/linux/linux-5.10/drivers/soc/mediatek/
Dmtk-mmsys.c241 static void mtk_mmsys_ddp_sout_sel(void __iomem *config_regs, in mtk_mmsys_ddp_sout_sel() argument
247 config_regs + DISP_REG_CONFIG_OUT_SEL); in mtk_mmsys_ddp_sout_sel()
250 config_regs + DISP_REG_CONFIG_OUT_SEL); in mtk_mmsys_ddp_sout_sel()
252 config_regs + DISP_REG_CONFIG_DSI_SEL); in mtk_mmsys_ddp_sout_sel()
254 config_regs + DISP_REG_CONFIG_DPI_SEL); in mtk_mmsys_ddp_sout_sel()
262 void __iomem *config_regs = dev_get_drvdata(dev); in mtk_mmsys_ddp_connect() local
267 reg = readl_relaxed(config_regs + addr) | value; in mtk_mmsys_ddp_connect()
268 writel_relaxed(reg, config_regs + addr); in mtk_mmsys_ddp_connect()
271 mtk_mmsys_ddp_sout_sel(config_regs, cur, next); in mtk_mmsys_ddp_connect()
275 reg = readl_relaxed(config_regs + addr) | value; in mtk_mmsys_ddp_connect()
[all …]
/kernel/linux/linux-5.10/drivers/atm/
Dsolos-pci.c106 void __iomem *config_regs; member
527 data32 = ioread32(card->config_regs + GPIO_STATUS); in geos_gpio_store()
530 iowrite32(data32, card->config_regs + GPIO_STATUS); in geos_gpio_store()
533 iowrite32(data32, card->config_regs + GPIO_STATUS); in geos_gpio_store()
548 data32 = ioread32(card->config_regs + GPIO_STATUS); in geos_gpio_show()
561 data32 = ioread32(card->config_regs + GPIO_STATUS); in hardware_show()
683 iowrite32(DRIVER_VERSION, card->config_regs + DRIVER_VER); in flash_upgrade()
690 iowrite32(1, card->config_regs + FPGA_MODE); in flash_upgrade()
691 (void) ioread32(card->config_regs + FPGA_MODE); in flash_upgrade()
698 iowrite32((chip * 2), card->config_regs + FLASH_MODE); in flash_upgrade()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega10_powertune.c776 …registers(struct pp_hwmgr *hwmgr, const struct vega10_didt_config_reg *config_regs, enum vega10_di… in vega10_program_didt_config_registers() argument
780 …PP_ASSERT_WITH_CODE((config_regs != NULL), "[vega10_program_didt_config_registers] Invalid config … in vega10_program_didt_config_registers()
782 while (config_regs->offset != 0xFFFFFFFF) { in vega10_program_didt_config_registers()
785 data = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__DIDT, config_regs->offset); in vega10_program_didt_config_registers()
786 data &= ~config_regs->mask; in vega10_program_didt_config_registers()
787 data |= ((config_regs->value << config_regs->shift) & config_regs->mask); in vega10_program_didt_config_registers()
788 cgs_write_ind_register(hwmgr->device, CGS_IND_REG__DIDT, config_regs->offset, data); in vega10_program_didt_config_registers()
791 data = cgs_read_ind_register(hwmgr->device, CGS_IND_REG_GC_CAC, config_regs->offset); in vega10_program_didt_config_registers()
792 data &= ~config_regs->mask; in vega10_program_didt_config_registers()
793 data |= ((config_regs->value << config_regs->shift) & config_regs->mask); in vega10_program_didt_config_registers()
[all …]
Dsmu7_powertune.c901 const struct gpu_pt_config_reg *config_regs = cac_config_regs; in smu7_program_pt_config_registers() local
905 PP_ASSERT_WITH_CODE((config_regs != NULL), "Invalid config register table.", return -EINVAL); in smu7_program_pt_config_registers()
907 while (config_regs->offset != 0xFFFFFFFF) { in smu7_program_pt_config_registers()
908 if (config_regs->type == GPU_CONFIGREG_CACHE) in smu7_program_pt_config_registers()
909 cache |= ((config_regs->value << config_regs->shift) & config_regs->mask); in smu7_program_pt_config_registers()
911 switch (config_regs->type) { in smu7_program_pt_config_registers()
913 data = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, config_regs->offset); in smu7_program_pt_config_registers()
917 data = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__DIDT, config_regs->offset); in smu7_program_pt_config_registers()
921 data = cgs_read_ind_register(hwmgr->device, CGS_IND_REG_GC_CAC, config_regs->offset); in smu7_program_pt_config_registers()
925 data = cgs_read_register(hwmgr->device, config_regs->offset); in smu7_program_pt_config_registers()
[all …]
/kernel/linux/linux-5.10/drivers/pcmcia/
Dpcmcia_resource.c521 if (!(p_dev->config_regs & PRESENT_STATUS)) in pcmcia_enable_device()
530 p_dev->config_regs |= PRESENT_EXT_STATUS; in pcmcia_enable_device()
538 p_dev->vpp, flags, p_dev->config_base, p_dev->config_regs, in pcmcia_enable_device()
543 if (p_dev->config_regs & PRESENT_COPY) { in pcmcia_enable_device()
548 if (p_dev->config_regs & PRESENT_PIN_REPLACE) { in pcmcia_enable_device()
553 if (p_dev->config_regs & PRESENT_OPTION) { in pcmcia_enable_device()
559 if (p_dev->config_regs & PRESENT_IOBASE_0) in pcmcia_enable_device()
568 if (p_dev->config_regs & PRESENT_STATUS) in pcmcia_enable_device()
571 if (p_dev->config_regs & PRESENT_EXT_STATUS) in pcmcia_enable_device()
575 if (p_dev->config_regs & PRESENT_IOBASE_0) { in pcmcia_enable_device()
[all …]
Dds.c280 p_dev->config_regs = cis_config.rmask[0]; in pcmcia_device_probe()
282 p_dev->config_regs); in pcmcia_device_probe()
287 p_dev->config_regs = 0; in pcmcia_device_probe()
/kernel/linux/linux-5.10/drivers/char/xilinx_hwicap/
Dxilinx_hwicap.c238 buffer[index++] = hwicap_type_1_write(drvdata->config_regs->CMD) | 1; in hwicap_command_desync()
342 drvdata, drvdata->config_regs->IDCODE, &idcode); in hwicap_initialize_hwicap()
605 const struct config_registers *config_regs) in hwicap_setup() argument
672 drvdata->config_regs = config_regs; in hwicap_setup()
Dxilinx_hwicap.h57 const struct config_registers *config_regs; member
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dkv_dpm.c286 const struct kv_pt_config_reg *config_regs = cac_config_regs; in kv_program_pt_config_registers() local
290 if (config_regs == NULL) in kv_program_pt_config_registers()
293 while (config_regs->offset != 0xFFFFFFFF) { in kv_program_pt_config_registers()
294 if (config_regs->type == KV_CONFIGREG_CACHE) { in kv_program_pt_config_registers()
295 cache |= ((config_regs->value << config_regs->shift) & config_regs->mask); in kv_program_pt_config_registers()
297 switch (config_regs->type) { in kv_program_pt_config_registers()
299 data = RREG32_SMC(config_regs->offset); in kv_program_pt_config_registers()
302 data = RREG32_DIDT(config_regs->offset); in kv_program_pt_config_registers()
305 data = RREG32(config_regs->offset << 2); in kv_program_pt_config_registers()
309 data &= ~config_regs->mask; in kv_program_pt_config_registers()
[all …]
Dci_dpm.c556 const struct ci_pt_config_reg *config_regs = cac_config_regs; in ci_program_pt_config_registers() local
560 if (config_regs == NULL) in ci_program_pt_config_registers()
563 while (config_regs->offset != 0xFFFFFFFF) { in ci_program_pt_config_registers()
564 if (config_regs->type == CISLANDS_CONFIGREG_CACHE) { in ci_program_pt_config_registers()
565 cache |= ((config_regs->value << config_regs->shift) & config_regs->mask); in ci_program_pt_config_registers()
567 switch (config_regs->type) { in ci_program_pt_config_registers()
569 data = RREG32_SMC(config_regs->offset); in ci_program_pt_config_registers()
572 data = RREG32_DIDT(config_regs->offset); in ci_program_pt_config_registers()
575 data = RREG32(config_regs->offset << 2); in ci_program_pt_config_registers()
579 data &= ~config_regs->mask; in ci_program_pt_config_registers()
[all …]
Dsi_dpm.c2722 const struct si_cac_config_reg *config_regs = cac_config_regs; in si_program_cac_config_registers() local
2725 if (!config_regs) in si_program_cac_config_registers()
2728 while (config_regs->offset != 0xFFFFFFFF) { in si_program_cac_config_registers()
2729 switch (config_regs->type) { in si_program_cac_config_registers()
2731 offset = SMC_CG_IND_START + config_regs->offset; in si_program_cac_config_registers()
2736 data = RREG32(config_regs->offset << 2); in si_program_cac_config_registers()
2740 data &= ~config_regs->mask; in si_program_cac_config_registers()
2741 data |= ((config_regs->value << config_regs->shift) & config_regs->mask); in si_program_cac_config_registers()
2743 switch (config_regs->type) { in si_program_cac_config_registers()
2745 offset = SMC_CG_IND_START + config_regs->offset; in si_program_cac_config_registers()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/
Dkv_dpm.c413 const struct kv_pt_config_reg *config_regs = cac_config_regs; in kv_program_pt_config_registers() local
417 if (config_regs == NULL) in kv_program_pt_config_registers()
420 while (config_regs->offset != 0xFFFFFFFF) { in kv_program_pt_config_registers()
421 if (config_regs->type == KV_CONFIGREG_CACHE) { in kv_program_pt_config_registers()
422 cache |= ((config_regs->value << config_regs->shift) & config_regs->mask); in kv_program_pt_config_registers()
424 switch (config_regs->type) { in kv_program_pt_config_registers()
426 data = RREG32_SMC(config_regs->offset); in kv_program_pt_config_registers()
429 data = RREG32_DIDT(config_regs->offset); in kv_program_pt_config_registers()
432 data = RREG32(config_regs->offset); in kv_program_pt_config_registers()
436 data &= ~config_regs->mask; in kv_program_pt_config_registers()
[all …]
Dsi_dpm.c2820 const struct si_cac_config_reg *config_regs = cac_config_regs; in si_program_cac_config_registers() local
2823 if (!config_regs) in si_program_cac_config_registers()
2826 while (config_regs->offset != 0xFFFFFFFF) { in si_program_cac_config_registers()
2827 switch (config_regs->type) { in si_program_cac_config_registers()
2829 offset = SMC_CG_IND_START + config_regs->offset; in si_program_cac_config_registers()
2834 data = RREG32(config_regs->offset); in si_program_cac_config_registers()
2838 data &= ~config_regs->mask; in si_program_cac_config_registers()
2839 data |= ((config_regs->value << config_regs->shift) & config_regs->mask); in si_program_cac_config_registers()
2841 switch (config_regs->type) { in si_program_cac_config_registers()
2843 offset = SMC_CG_IND_START + config_regs->offset; in si_program_cac_config_registers()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/pcmcia/
Dfdomain_cs.c37 link->config_regs = PRESENT_OPTION; in fdomain_probe()
Daha152x_stub.c101 link->config_regs = PRESENT_OPTION; in aha152x_probe()
Dqlogic_stub.c158 link->config_regs = PRESENT_OPTION; in qlogic_probe()
/kernel/linux/linux-5.10/include/pcmcia/
Dds.h113 unsigned int config_regs; /* PRESENT_ flags below */ member
/kernel/linux/linux-5.10/sound/pcmcia/pdaudiocf/
Dpdaudiocf.c134 link->config_regs = PRESENT_OPTION; in snd_pdacf_probe()
/kernel/linux/linux-5.10/drivers/net/can/sja1000/
Dems_pcmcia.c263 dev->config_regs = PRESENT_OPTION; in ems_pcmcia_probe()
/kernel/linux/linux-5.10/sound/pcmcia/vx/
Dvxpocket.c156 link->config_regs = PRESENT_OPTION; in snd_vxpocket_new()
/kernel/linux/linux-5.10/sound/soc/ti/
Ddavinci-mcasp.c65 u32 config_regs[ARRAY_SIZE(context_regs)]; member
2419 context->config_regs[i] = mcasp_get_reg(mcasp, context_regs[i]); in davinci_mcasp_runtime_suspend()
2445 mcasp_set_reg(mcasp, context_regs[i], context->config_regs[i]); in davinci_mcasp_runtime_resume()
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
Dnmclan_cs.c451 link->config_regs = PRESENT_OPTION; in nmclan_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/8390/
Daxnet_cs.c280 link->config_regs = 0x63; in axnet_config()
/kernel/linux/linux-5.10/drivers/char/pcmcia/
Dsynclink_cs.c591 link->config_regs = PRESENT_OPTION; in mgslpc_config()