Home
last modified time | relevance | path

Searched refs:hwdev (Results 1 – 19 of 19) sorted by relevance

/drivers/gpu/drm/arm/
Dmalidp_hw.c91 static int malidp500_query_hw(struct malidp_hw_device *hwdev) in malidp500_query_hw() argument
93 u32 conf = malidp_hw_read(hwdev, MALIDP500_CONFIG_ID); in malidp500_query_hw()
97 hwdev->min_line_size = 2; in malidp500_query_hw()
98 hwdev->max_line_size = SZ_2K * ln_size_mult; in malidp500_query_hw()
99 hwdev->rotation_memory[0] = SZ_1K * 64 * ln_size_mult; in malidp500_query_hw()
100 hwdev->rotation_memory[1] = 0; /* no second rotation memory bank */ in malidp500_query_hw()
105 static void malidp500_enter_config_mode(struct malidp_hw_device *hwdev) in malidp500_enter_config_mode() argument
109 malidp_hw_setbits(hwdev, MALIDP500_DC_CONFIG_REQ, MALIDP500_DC_CONTROL); in malidp500_enter_config_mode()
111 status = malidp_hw_read(hwdev, hwdev->map.dc_base + MALIDP_REG_STATUS); in malidp500_enter_config_mode()
124 static void malidp500_leave_config_mode(struct malidp_hw_device *hwdev) in malidp500_leave_config_mode() argument
[all …]
Dmalidp_drv.c42 struct malidp_hw_device *hwdev = malidp->dev; in malidp_set_and_wait_config_valid() local
45 hwdev->set_config_valid(hwdev); in malidp_set_and_wait_config_valid()
47 if (hwdev->in_config_mode(hwdev)) in malidp_set_and_wait_config_valid()
118 struct malidp_hw_device *hwdev = malidp->dev; in malidp_enable_vblank() local
120 malidp_hw_enable_irq(hwdev, MALIDP_DE_BLOCK, in malidp_enable_vblank()
121 hwdev->map.de_irq_map.vsync_irq); in malidp_enable_vblank()
128 struct malidp_hw_device *hwdev = malidp->dev; in malidp_disable_vblank() local
130 malidp_hw_disable_irq(hwdev, MALIDP_DE_BLOCK, in malidp_disable_vblank()
131 hwdev->map.de_irq_map.vsync_irq); in malidp_disable_vblank()
138 struct malidp_hw_device *hwdev = malidp->dev; in malidp_init() local
[all …]
Dmalidp_hw.h109 int (*query_hw)(struct malidp_hw_device *hwdev);
114 void (*enter_config_mode)(struct malidp_hw_device *hwdev);
119 void (*leave_config_mode)(struct malidp_hw_device *hwdev);
124 bool (*in_config_mode)(struct malidp_hw_device *hwdev);
132 void (*set_config_valid)(struct malidp_hw_device *hwdev);
138 void (*modeset)(struct malidp_hw_device *hwdev, struct videomode *m);
144 int (*rotmem_required)(struct malidp_hw_device *hwdev, u16 w, u16 h, u32 fmt);
166 static inline u32 malidp_hw_read(struct malidp_hw_device *hwdev, u32 reg) in malidp_hw_read() argument
168 return readl(hwdev->regs + reg); in malidp_hw_read()
171 static inline void malidp_hw_write(struct malidp_hw_device *hwdev, in malidp_hw_write() argument
[all …]
Dmalidp_crtc.c29 struct malidp_hw_device *hwdev = malidp->dev; in malidp_crtc_mode_fixup() local
38 rate = clk_round_rate(hwdev->mclk, req_rate); in malidp_crtc_mode_fixup()
45 rate = clk_round_rate(hwdev->pxlclk, req_rate); in malidp_crtc_mode_fixup()
59 struct malidp_hw_device *hwdev = malidp->dev; in malidp_crtc_enable() local
64 clk_prepare_enable(hwdev->pxlclk); in malidp_crtc_enable()
67 clk_set_rate(hwdev->mclk, crtc->state->adjusted_mode.crtc_clock * 1000); in malidp_crtc_enable()
68 clk_set_rate(hwdev->pxlclk, crtc->state->adjusted_mode.crtc_clock * 1000); in malidp_crtc_enable()
70 hwdev->modeset(hwdev, &vm); in malidp_crtc_enable()
71 hwdev->leave_config_mode(hwdev); in malidp_crtc_enable()
78 struct malidp_hw_device *hwdev = malidp->dev; in malidp_crtc_disable() local
[all …]
Dmalidp_planes.c95 format_id = malidp_hw_get_format_id(&mp->hwdev->map, mp->layer->id, in malidp_de_plane_check()
103 if ((state->crtc_w > mp->hwdev->max_line_size) || in malidp_de_plane_check()
104 (state->crtc_h > mp->hwdev->max_line_size) || in malidp_de_plane_check()
105 (state->crtc_w < mp->hwdev->min_line_size) || in malidp_de_plane_check()
106 (state->crtc_h < mp->hwdev->min_line_size) || in malidp_de_plane_check()
120 val = mp->hwdev->rotmem_required(mp->hwdev, state->crtc_h, in malidp_de_plane_check()
145 map = &mp->hwdev->map; in malidp_de_plane_update()
156 malidp_hw_write(mp->hwdev, format_id, mp->layer->base); in malidp_de_plane_update()
163 malidp_hw_write(mp->hwdev, lower_32_bits(obj->paddr), ptr); in malidp_de_plane_update()
164 malidp_hw_write(mp->hwdev, upper_32_bits(obj->paddr), ptr + 4); in malidp_de_plane_update()
[all …]
Dmalidp_drv.h33 struct malidp_hw_device *hwdev; member
/drivers/xen/
Dswiotlb-xen.c295 xen_swiotlb_alloc_coherent(struct device *hwdev, size_t size, in xen_swiotlb_alloc_coherent() argument
318 ret = xen_alloc_coherent_pages(hwdev, size, dma_handle, flags, attrs); in xen_swiotlb_alloc_coherent()
323 if (hwdev && hwdev->coherent_dma_mask) in xen_swiotlb_alloc_coherent()
324 dma_mask = dma_alloc_coherent_mask(hwdev, flags); in xen_swiotlb_alloc_coherent()
338 xen_free_coherent_pages(hwdev, size, ret, (dma_addr_t)phys, attrs); in xen_swiotlb_alloc_coherent()
348 xen_swiotlb_free_coherent(struct device *hwdev, size_t size, void *vaddr, in xen_swiotlb_free_coherent() argument
355 if (hwdev && hwdev->coherent_dma_mask) in xen_swiotlb_free_coherent()
356 dma_mask = hwdev->coherent_dma_mask; in xen_swiotlb_free_coherent()
366 xen_free_coherent_pages(hwdev, size, vaddr, (dma_addr_t)phys, attrs); in xen_swiotlb_free_coherent()
435 static void xen_unmap_single(struct device *hwdev, dma_addr_t dev_addr, in xen_unmap_single() argument
[all …]
/drivers/hwmon/
Dhwmon.c58 struct hwmon_device *hwdev; /* Reference to hwmon device */ member
121 struct hwmon_device *hwdev = tdata->hwdev; in hwmon_thermal_get_temp() local
125 ret = hwdev->chip->ops->read(&hwdev->dev, hwmon_temp, hwmon_temp_input, in hwmon_thermal_get_temp()
140 struct hwmon_device *hwdev, int index) in hwmon_thermal_add_sensor() argument
148 tdata->hwdev = hwdev; in hwmon_thermal_add_sensor()
151 devm_thermal_zone_of_sensor_register(&hwdev->dev, index, tdata, in hwmon_thermal_add_sensor()
158 struct hwmon_device *hwdev, int index) in hwmon_thermal_add_sensor() argument
509 struct hwmon_device *hwdev; in __hwmon_device_register() local
521 hwdev = kzalloc(sizeof(*hwdev), GFP_KERNEL); in __hwmon_device_register()
522 if (hwdev == NULL) { in __hwmon_device_register()
[all …]
Dscpi-hwmon.c103 struct device *hwdev, *dev = &pdev->dev; in scpi_hwmon_probe() local
202 hwdev = devm_hwmon_device_register_with_groups(dev, in scpi_hwmon_probe()
205 if (IS_ERR(hwdev)) in scpi_hwmon_probe()
206 return PTR_ERR(hwdev); in scpi_hwmon_probe()
/drivers/fmc/
Dfmc-core.c164 if (!fmc->hwdev) { in fmc_device_register_n()
171 dev_info(fmc->hwdev, "absent mezzanine in slot %d\n", in fmc_device_register_n()
176 dev_err(fmc->hwdev, "no eeprom provided for slot %i\n", in fmc_device_register_n()
181 dev_err(fmc->hwdev, "no eeprom_addr for slot %i\n", in fmc_device_register_n()
187 dev_err(fmc->hwdev, in fmc_device_register_n()
210 fmc->dev.parent = fmc->hwdev; in fmc_device_register_n()
226 dev_err(fmc->hwdev, "Slot %i: Failed in registering " in fmc_device_register_n()
Dfmc-dump.c52 pr_info("FMC: %s (%s), slot %i, device %s\n", dev_name(fmc->hwdev), in fmc_dump_eeprom()
90 pr_info("FMC: %s (%s), slot %i, device %s\n", dev_name(fmc->hwdev), in fmc_dump_sdb()
Dfmc-fakedev.c259 .hwdev = NULL, /* filled at creation time */
285 fmc->hwdev = &ff->dev; in ff_dev_create()
Dfmc-match.c75 dev_info(fmc->hwdev, "mezzanine %i\n", fmc->slot_id); /* header */ in fmc_fill_id_info()
/drivers/infiniband/hw/qib/
Dqib_user_pages.c101 dma_addr_t qib_map_page(struct pci_dev *hwdev, struct page *page, in qib_map_page() argument
106 phys = pci_map_page(hwdev, page, offset, size, direction); in qib_map_page()
109 pci_unmap_page(hwdev, phys, size, direction); in qib_map_page()
110 phys = pci_map_page(hwdev, page, offset, size, direction); in qib_map_page()
/drivers/net/ethernet/via/
Dvia-rhine.c678 static inline int verify_mmio(struct device *hwdev, in verify_mmio() argument
693 dev_err(hwdev, in verify_mmio()
905 static int rhine_init_one_common(struct device *hwdev, u32 quirks, in rhine_init_one_common() argument
914 rc = dma_set_mask(hwdev, DMA_BIT_MASK(32)); in rhine_init_one_common()
916 dev_err(hwdev, "32-bit DMA addresses not supported by the card!?\n"); in rhine_init_one_common()
925 SET_NETDEV_DEV(dev, hwdev); in rhine_init_one_common()
1002 dev_set_drvdata(hwdev, dev); in rhine_init_one_common()
1040 struct device *hwdev = &pdev->dev; in rhine_init_one_pci() local
1085 dev_err(hwdev, "Insufficient PCI resources, aborting\n"); in rhine_init_one_pci()
1101 dev_err(hwdev, in rhine_init_one_pci()
[all …]
/drivers/parisc/
Dsba_iommu.c886 static void *sba_alloc(struct device *hwdev, size_t size, dma_addr_t *dma_handle, in sba_alloc() argument
891 if (!hwdev) { in sba_alloc()
901 *dma_handle = sba_map_single(hwdev, ret, size, 0); in sba_alloc()
918 sba_free(struct device *hwdev, size_t size, void *vaddr, in sba_free() argument
921 sba_unmap_page(hwdev, dma_handle, size, 0, 0); in sba_free()
Dccio-dma.c860 if(!hwdev) { in ccio_alloc()
/drivers/isdn/hardware/eicon/
Ddivasmain.c336 static void *diva_pci_alloc_consistent(struct pci_dev *hwdev, in diva_pci_alloc_consistent() argument
341 void *addr = pci_alloc_consistent(hwdev, size, dma_handle); in diva_pci_alloc_consistent()
/drivers/net/ethernet/toshiba/
Dtc35815.c450 struct pci_dev *hwdev, in alloc_rxbuf_skb() argument
457 *dma_handle = pci_map_single(hwdev, skb->data, RX_BUF_SIZE, in alloc_rxbuf_skb()
459 if (pci_dma_mapping_error(hwdev, *dma_handle)) { in alloc_rxbuf_skb()
467 static void free_rxbuf_skb(struct pci_dev *hwdev, struct sk_buff *skb, dma_addr_t dma_handle) in free_rxbuf_skb() argument
469 pci_unmap_single(hwdev, dma_handle, RX_BUF_SIZE, in free_rxbuf_skb()