search for: pci_map

Displaying 13 results from an estimated 13 matches for "pci_map".

2014 Jul 10
3
[PATCH v4 2/6] drm/nouveau: map pages using DMA API on platform devices
...ev->dev, ret)) > + ret = 0; > } > > return ret; > @@ -501,6 +504,9 @@ nv_device_unmap_page(struct nouveau_device *device, dma_addr_t addr) > if (nv_device_is_pci(device)) > pci_unmap_page(device->pdev, addr, PAGE_SIZE, > PCI_DMA_BIDIRECTIONAL); pci_map/unmap alias to dma_unmap/map when called on the underlying struct device embedded in pci_device (like for platform drivers). Dunno whether it's worth to track a pointer to the struct device directly and always call dma_unmap/map. Just drive-by comment since I'm interested in how you solve...
2014 Jul 11
2
[PATCH v4 2/6] drm/nouveau: map pages using DMA API on platform devices
...ice_unmap_page(struct nouveau_device *device, >>> dma_addr_t addr) >>> if (nv_device_is_pci(device)) >>> pci_unmap_page(device->pdev, addr, PAGE_SIZE, >>> PCI_DMA_BIDIRECTIONAL); >> >> >> pci_map/unmap alias to dma_unmap/map when called on the underlying struct >> device embedded in pci_device (like for platform drivers). Dunno whether >> it's worth to track a pointer to the struct device directly and always >> call dma_unmap/map. > > > Isn't it (theoretic...
2014 Jul 31
2
[PATCH v5] drm/nouveau: map pages using DMA API
...sting wrappers. Signed-off-by: Alexandre Courbot <acourbot at nvidia.com> Cc: Daniel Vetter <daniel at ffwll.ch> --- Changes since v4: - Patch against the Nouveau tree instead of the kernel - Separated this patch from the rest of the series since it can be merged alone - Replaced all pci_map invokations with dma_map. As Daniel pointed out, using the PCI API is deprecated: Documentation/DMA-API-HOWTO.txt: "Note that the DMA API works with any bus independent of the underlying microprocessor architecture. You should use the DMA API rather than the bus-specific DMA API, i.e., use...
2014 Jul 11
0
[PATCH v4 2/6] drm/nouveau: map pages using DMA API on platform devices
...> } >> >> return ret; >> @@ -501,6 +504,9 @@ nv_device_unmap_page(struct nouveau_device *device, dma_addr_t addr) >> if (nv_device_is_pci(device)) >> pci_unmap_page(device->pdev, addr, PAGE_SIZE, >> PCI_DMA_BIDIRECTIONAL); > > pci_map/unmap alias to dma_unmap/map when called on the underlying struct > device embedded in pci_device (like for platform drivers). Dunno whether > it's worth to track a pointer to the struct device directly and always > call dma_unmap/map. Isn't it (theoretically) possible to have a p...
2014 Jul 11
0
[PATCH v4 2/6] drm/nouveau: map pages using DMA API on platform devices
...evice *device, >>>> dma_addr_t addr) >>>> if (nv_device_is_pci(device)) >>>> pci_unmap_page(device->pdev, addr, PAGE_SIZE, >>>> PCI_DMA_BIDIRECTIONAL); >>> >>> >>> pci_map/unmap alias to dma_unmap/map when called on the underlying struct >>> device embedded in pci_device (like for platform drivers). Dunno whether >>> it's worth to track a pointer to the struct device directly and always >>> call dma_unmap/map. >> >> >>...
2014 Aug 04
0
[PATCH v5] drm/nouveau: map pages using DMA API
...xandre Courbot <acourbot at nvidia.com> > Cc: Daniel Vetter <daniel at ffwll.ch> > --- > Changes since v4: > - Patch against the Nouveau tree instead of the kernel > - Separated this patch from the rest of the series since it can be > merged alone > - Replaced all pci_map invokations with dma_map. As Daniel pointed > out, using the PCI API is deprecated: > Documentation/DMA-API-HOWTO.txt: > > "Note that the DMA API works with any bus independent of the underlying > microprocessor architecture. You should use the DMA API rather than the > bu...
2014 Jul 08
8
[PATCH v4 0/6] drm: nouveau: memory coherency on ARM
Another revision of this patchset critical for GK20A to operate. Previous attempts were exclusively using either TTM's regular page allocator or the DMA API one. Both have their advantages and drawbacks: the page allocator is fast but requires explicit synchronization on non-coherent architectures, whereas the DMA allocator always returns coherent memory, but is also slower, creates a
2009 Sep 30
1
SCSI driver for VMware's virtual HBA - V5.
...for a loop iterator. > - use IS_ALIGNED instead of ~PAGE_MASK, for alignment checks > - use scsi_dma_ map/unmap API's > - reduce the pvscsi_info buffer to 256 bytes > - code cleanup in pvscsi_shutdown_intr > > Changelog (v3-v2) > - use kmalloc for allocating sg_lists. And pci_map it for device access. > - re-use pdev->revision for setting up adapter->rev. > > Changelog (v2-v1) > - use PCI_VDEVICE instead of PCI_DEVICE. > - use list_first_entry > - use parenthesis for every sizeof usage > - get rid of all #ifdef for CONFIG_PCI_MSI > - use PVSCS...
2009 Sep 30
1
SCSI driver for VMware's virtual HBA - V5.
...for a loop iterator. > - use IS_ALIGNED instead of ~PAGE_MASK, for alignment checks > - use scsi_dma_ map/unmap API's > - reduce the pvscsi_info buffer to 256 bytes > - code cleanup in pvscsi_shutdown_intr > > Changelog (v3-v2) > - use kmalloc for allocating sg_lists. And pci_map it for device access. > - re-use pdev->revision for setting up adapter->rev. > > Changelog (v2-v1) > - use PCI_VDEVICE instead of PCI_DEVICE. > - use list_first_entry > - use parenthesis for every sizeof usage > - get rid of all #ifdef for CONFIG_PCI_MSI > - use PVSCS...
2009 Oct 13
1
SCSI driver for VMware's virtual HBA - V6.
...hangelog (v4-v3) - use size_t type for a loop iterator. - use IS_ALIGNED instead of ~PAGE_MASK, for alignment checks - use scsi_dma_ map/unmap API's - reduce the pvscsi_info buffer to 256 bytes - code cleanup in pvscsi_shutdown_intr Changelog (v3-v2) - use kmalloc for allocating sg_lists. And pci_map it for device access. - re-use pdev->revision for setting up adapter->rev. Changelog (v2-v1) - use PCI_VDEVICE instead of PCI_DEVICE. - use list_first_entry - use parenthesis for every sizeof usage - get rid of all #ifdef for CONFIG_PCI_MSI - use PVSCSI_MEM_SPACE_SIZE while checking for MMIO...
2009 Oct 13
1
SCSI driver for VMware's virtual HBA - V6.
...hangelog (v4-v3) - use size_t type for a loop iterator. - use IS_ALIGNED instead of ~PAGE_MASK, for alignment checks - use scsi_dma_ map/unmap API's - reduce the pvscsi_info buffer to 256 bytes - code cleanup in pvscsi_shutdown_intr Changelog (v3-v2) - use kmalloc for allocating sg_lists. And pci_map it for device access. - re-use pdev->revision for setting up adapter->rev. Changelog (v2-v1) - use PCI_VDEVICE instead of PCI_DEVICE. - use list_first_entry - use parenthesis for every sizeof usage - get rid of all #ifdef for CONFIG_PCI_MSI - use PVSCSI_MEM_SPACE_SIZE while checking for MMIO...
2020 Oct 17
10
[RFC] treewide: cleanup unreachable breaks
...-v3-semi.c +++ b/drivers/pci/controller/pci-v3-semi.c @@ -656,11 +656,10 @@ static int v3_get_dma_range_config(struct v3_pci *v3, val |= V3_LB_BASE_ADR_SIZE_2GB; break; default: dev_err(v3->dev, "illegal dma memory chunk size\n"); return -EINVAL; - break; } val |= V3_PCI_MAP_M_REG_EN | V3_PCI_MAP_M_ENABLE; *pci_map = val; dev_dbg(dev, diff --git a/drivers/pinctrl/samsung/pinctrl-s3c24xx.c b/drivers/pinctrl/samsung/pinctrl-s3c24xx.c index 5e24838a582f..2223ead5bd72 100644 --- a/drivers/pinctrl/samsung/pinctrl-s3c24xx.c +++ b/drivers/pinctrl/samsung/pinctrl-s3c24xx...
2020 Oct 17
10
[RFC] treewide: cleanup unreachable breaks
...-v3-semi.c +++ b/drivers/pci/controller/pci-v3-semi.c @@ -656,11 +656,10 @@ static int v3_get_dma_range_config(struct v3_pci *v3, val |= V3_LB_BASE_ADR_SIZE_2GB; break; default: dev_err(v3->dev, "illegal dma memory chunk size\n"); return -EINVAL; - break; } val |= V3_PCI_MAP_M_REG_EN | V3_PCI_MAP_M_ENABLE; *pci_map = val; dev_dbg(dev, diff --git a/drivers/pinctrl/samsung/pinctrl-s3c24xx.c b/drivers/pinctrl/samsung/pinctrl-s3c24xx.c index 5e24838a582f..2223ead5bd72 100644 --- a/drivers/pinctrl/samsung/pinctrl-s3c24xx.c +++ b/drivers/pinctrl/samsung/pinctrl-s3c24xx...