/drivers/mfd/ |
D | asic3.c | 92 void asic3_write_register(struct asic3 *asic, unsigned int reg, u32 value) in asic3_write_register() argument 94 iowrite16(value, asic->mapping + in asic3_write_register() 95 (reg >> asic->bus_shift)); in asic3_write_register() 99 u32 asic3_read_register(struct asic3 *asic, unsigned int reg) in asic3_read_register() argument 101 return ioread16(asic->mapping + in asic3_read_register() 102 (reg >> asic->bus_shift)); in asic3_read_register() 106 static void asic3_set_register(struct asic3 *asic, u32 reg, u32 bits, bool set) in asic3_set_register() argument 111 spin_lock_irqsave(&asic->lock, flags); in asic3_set_register() 112 val = asic3_read_register(asic, reg); in asic3_set_register() 117 asic3_write_register(asic, reg, val); in asic3_set_register() [all …]
|
D | htc-pasic3.c | 39 struct pasic3_data *asic = dev_get_drvdata(dev); in pasic3_write_register() local 40 int bus_shift = asic->bus_shift; in pasic3_write_register() 41 void __iomem *addr = asic->mapping + (REG_ADDR << bus_shift); in pasic3_write_register() 42 void __iomem *data = asic->mapping + (REG_DATA << bus_shift); in pasic3_write_register() 54 struct pasic3_data *asic = dev_get_drvdata(dev); in pasic3_read_register() local 55 int bus_shift = asic->bus_shift; in pasic3_read_register() 56 void __iomem *addr = asic->mapping + (REG_ADDR << bus_shift); in pasic3_read_register() 57 void __iomem *data = asic->mapping + (REG_DATA << bus_shift); in pasic3_read_register() 131 struct pasic3_data *asic; in pasic3_probe() local 150 asic = devm_kzalloc(dev, sizeof(struct pasic3_data), GFP_KERNEL); in pasic3_probe() [all …]
|
/drivers/staging/comedi/drivers/ |
D | pcmuio.c | 139 int asic) in pcmuio_asic_iobase() argument 141 return dev->iobase + (asic * PCMUIO_ASIC_IOSIZE); in pcmuio_asic_iobase() 163 int asic, int page, int port) in pcmuio_write() argument 166 struct pcmuio_asic *chip = &devpriv->asics[asic]; in pcmuio_write() 167 unsigned long iobase = pcmuio_asic_iobase(dev, asic); in pcmuio_write() 186 int asic, int page, int port) in pcmuio_read() argument 189 struct pcmuio_asic *chip = &devpriv->asics[asic]; in pcmuio_read() 190 unsigned long iobase = pcmuio_asic_iobase(dev, asic); in pcmuio_read() 226 int asic = pcmuio_subdevice_to_asic(s); in pcmuio_dio_insn_bits() local 244 pcmuio_write(dev, val, asic, 0, port); in pcmuio_dio_insn_bits() [all …]
|
/drivers/leds/ |
D | leds-asic3.c | 44 struct asic3 *asic = dev_get_drvdata(pdev->dev.parent); in brightness_set() local 51 asic3_write_register(asic, (base + ASIC3_LED_PeriodTime), 32); in brightness_set() 52 asic3_write_register(asic, (base + ASIC3_LED_DutyTime), 32); in brightness_set() 53 asic3_write_register(asic, (base + ASIC3_LED_AutoStopCount), 0); in brightness_set() 54 asic3_write_register(asic, (base + ASIC3_LED_TimeBase), timebase); in brightness_set() 63 struct asic3 *asic = dev_get_drvdata(pdev->dev.parent); in blink_set() local 83 asic3_write_register(asic, (base + ASIC3_LED_PeriodTime), (on + off)); in blink_set() 84 asic3_write_register(asic, (base + ASIC3_LED_DutyTime), on); in blink_set() 85 asic3_write_register(asic, (base + ASIC3_LED_AutoStopCount), 0); in blink_set() 86 asic3_write_register(asic, (base + ASIC3_LED_TimeBase), (LED_EN|0x4)); in blink_set()
|
/drivers/gpu/drm/radeon/ |
D | radeon.h | 2396 struct radeon_asic *asic; member 2722 #define radeon_init(rdev) (rdev)->asic->init((rdev)) 2723 #define radeon_fini(rdev) (rdev)->asic->fini((rdev)) 2724 #define radeon_resume(rdev) (rdev)->asic->resume((rdev)) 2725 #define radeon_suspend(rdev) (rdev)->asic->suspend((rdev)) 2726 #define radeon_cs_parse(rdev, r, p) (rdev)->asic->ring[(r)]->cs_parse((p)) 2727 #define radeon_vga_set_state(rdev, state) (rdev)->asic->vga_set_state((rdev), (state)) 2728 #define radeon_asic_reset(rdev) (rdev)->asic->asic_reset((rdev), false) 2729 #define radeon_gart_tlb_flush(rdev) (rdev)->asic->gart.tlb_flush((rdev)) 2730 #define radeon_gart_get_page_entry(a, f) (rdev)->asic->gart.get_page_entry((a), (f)) [all …]
|
D | radeon_asic.c | 165 rdev->asic->gart.tlb_flush = &rv370_pcie_gart_tlb_flush; in radeon_agp_disable() 166 rdev->asic->gart.get_page_entry = &rv370_pcie_gart_get_page_entry; in radeon_agp_disable() 167 rdev->asic->gart.set_page = &rv370_pcie_gart_set_page; in radeon_agp_disable() 171 rdev->asic->gart.tlb_flush = &r100_pci_gart_tlb_flush; in radeon_agp_disable() 172 rdev->asic->gart.get_page_entry = &r100_pci_gart_get_page_entry; in radeon_agp_disable() 173 rdev->asic->gart.set_page = &r100_pci_gart_set_page; in radeon_agp_disable() 2335 rdev->asic = &r100_asic; in radeon_asic_init() 2341 rdev->asic = &r200_asic; in radeon_asic_init() 2348 rdev->asic = &r300_asic_pcie; in radeon_asic_init() 2350 rdev->asic = &r300_asic; in radeon_asic_init() [all …]
|
D | radeon_pm.c | 78 if (rdev->asic->dpm.enable_bapm) in radeon_pm_acpi_event_handler() 227 if (rdev->asic->pm.set_memory_clock && (mclk != rdev->pm.current_mclk)) { in radeon_set_power_state() 549 if (rdev->asic->dpm.force_performance_level) { in radeon_set_dpm_forced_performance_level() 571 if (rdev->asic->dpm.fan_ctrl_get_mode) in radeon_hwmon_get_pwm1_enable() 572 pwm_mode = rdev->asic->dpm.fan_ctrl_get_mode(rdev); in radeon_hwmon_get_pwm1_enable() 587 if(!rdev->asic->dpm.fan_ctrl_set_mode) in radeon_hwmon_set_pwm1_enable() 596 rdev->asic->dpm.fan_ctrl_set_mode(rdev, FDO_PWM_MODE_STATIC); in radeon_hwmon_set_pwm1_enable() 599 rdev->asic->dpm.fan_ctrl_set_mode(rdev, 0); in radeon_hwmon_set_pwm1_enable() 634 err = rdev->asic->dpm.set_fan_speed_percent(rdev, value); in radeon_hwmon_set_pwm1() 649 err = rdev->asic->dpm.get_fan_speed_percent(rdev, &speed); in radeon_hwmon_get_pwm1() [all …]
|
D | ni_dma.c | 161 if ((rdev->asic->copy.copy_ring_index == R600_RING_TYPE_DMA_INDEX) || in cayman_dma_stop() 162 (rdev->asic->copy.copy_ring_index == CAYMAN_RING_TYPE_DMA1_INDEX)) in cayman_dma_stop() 257 if ((rdev->asic->copy.copy_ring_index == R600_RING_TYPE_DMA_INDEX) || in cayman_dma_resume() 258 (rdev->asic->copy.copy_ring_index == CAYMAN_RING_TYPE_DMA1_INDEX)) in cayman_dma_resume()
|
D | radeon_ring.c | 170 if (hdp_flush && rdev->asic->ring[ring->idx]->hdp_flush) in radeon_ring_commit() 171 rdev->asic->ring[ring->idx]->hdp_flush(rdev, ring); in radeon_ring_commit() 180 if (hdp_flush && rdev->asic->mmio_hdp_flush) in radeon_ring_commit() 181 rdev->asic->mmio_hdp_flush(rdev); in radeon_ring_commit()
|
D | radeon_benchmark.c | 122 if (rdev->asic->copy.dma) { in radeon_benchmark_move() 133 if (rdev->asic->copy.blit) { in radeon_benchmark_move()
|
D | r600_dma.c | 103 if (rdev->asic->copy.copy_ring_index == R600_RING_TYPE_DMA_INDEX) in r600_dma_stop() 180 if (rdev->asic->copy.copy_ring_index == R600_RING_TYPE_DMA_INDEX) in r600_dma_resume() 451 int ring_index = rdev->asic->copy.dma_ring_index; in r600_copy_dma()
|
D | cik_sdma.c | 255 if ((rdev->asic->copy.copy_ring_index == R600_RING_TYPE_DMA_INDEX) || in cik_sdma_gfx_stop() 256 (rdev->asic->copy.copy_ring_index == CAYMAN_RING_TYPE_DMA1_INDEX)) in cik_sdma_gfx_stop() 433 if ((rdev->asic->copy.copy_ring_index == R600_RING_TYPE_DMA_INDEX) || in cik_sdma_gfx_resume() 434 (rdev->asic->copy.copy_ring_index == CAYMAN_RING_TYPE_DMA1_INDEX)) in cik_sdma_gfx_resume() 586 int ring_index = rdev->asic->copy.dma_ring_index; in cik_copy_dma()
|
D | rv770_dma.c | 49 int ring_index = rdev->asic->copy.dma_ring_index; in rv770_copy_dma()
|
D | evergreen_dma.c | 115 int ring_index = rdev->asic->copy.dma_ring_index; in evergreen_copy_dma()
|
D | radeon_test.c | 255 if (rdev->asic->copy.dma) in radeon_test_moves() 257 if (rdev->asic->copy.blit) in radeon_test_moves()
|
D | si_dma.c | 238 int ring_index = rdev->asic->copy.dma_ring_index; in si_copy_dma()
|
D | radeon_gem.c | 481 if (rdev->asic->mmio_hdp_flush && in radeon_gem_wait_idle_ioctl() 483 robj->rdev->asic->mmio_hdp_flush(rdev); in radeon_gem_wait_idle_ioctl()
|
D | radeon_cs.c | 361 if (p->rdev->asic->ring[p->ring]->cs_parse == NULL) { in radeon_cs_parser_init() 366 if (p->rdev->asic->ring[p->ring]->ib_parse == NULL) { in radeon_cs_parser_init()
|
D | radeon_kms.c | 331 if (rdev->asic->get_xclk) in radeon_info_ioctl() 557 if (rdev->asic->pm.get_temperature) in radeon_info_ioctl()
|
D | r300.c | 141 rdev->asic->gart.tlb_flush = &rv370_pcie_gart_tlb_flush; in rv370_pcie_gart_init() 142 rdev->asic->gart.get_page_entry = &rv370_pcie_gart_get_page_entry; in rv370_pcie_gart_init() 143 rdev->asic->gart.set_page = &rv370_pcie_gart_set_page; in rv370_pcie_gart_init()
|
D | radeon_kfd.c | 317 return rdev->asic->get_gpu_clock_counter(rdev); in get_gpu_clock_counter()
|
/drivers/parisc/ |
D | gsc.c | 161 void gsc_asic_assign_irq(struct gsc_asic *asic, int local_irq, int *irqp) in gsc_asic_assign_irq() argument 163 int irq = asic->global_irq[local_irq]; in gsc_asic_assign_irq() 166 irq = gsc_assign_irq(&gsc_asic_interrupt_type, asic); in gsc_asic_assign_irq() 170 asic->global_irq[local_irq] = irq; in gsc_asic_assign_irq()
|
D | gsc.h | 45 void gsc_asic_assign_irq(struct gsc_asic *asic, int local_irq, int *irqp);
|
/drivers/atm/ |
D | eni.h | 114 int asic; /* PCI interface type, 0 for FPGA */ member
|
D | eni.c | 1719 (eni_dev->asic ? PCI_COMMAND_PARITY | PCI_COMMAND_SERR : 0)))) { in eni_do_init() 1735 if (!eni_dev->asic) { in eni_do_init() 1767 if (!(eni_in(MID_RES_ID_MCON) & 0x200) != !eni_dev->asic) { in eni_do_init() 1774 error = eni_dev->asic ? get_esi_asic(dev) : get_esi_fpga(dev,base); in eni_do_init() 1822 (eni_dev->asic ? PCI_COMMAND_PARITY | PCI_COMMAND_SERR : 0)))) { in eni_start() 2266 eni_dev->asic = ent->driver_data; in eni_init_one()
|