Lines Matching refs:pdev

287  * @pdev: Device context.
300 xge_os_malloc(pci_dev_h pdev, unsigned long size) {
312 * @pdev: Device context.
322 xge_os_free(pci_dev_h pdev, const void *vaddr, unsigned long size) {
337 * @pdev: Device context. Used to allocate/pin/map/unmap DMA-able memory.
354 xge_os_dma_malloc(pci_dev_h pdev, unsigned long size, int dma_flags,
357 bus_get_dma_tag(pdev->device), /* Parent */
393 * @pdev: Device context. Used to allocate/pin/map/unmap DMA-able memory.
403 xge_os_dma_free(pci_dev_h pdev, const void *vaddr, int size,
424 * @pdev: Device context. Some OSs require device context to perform PIO and/or
434 #define xge_os_pci_read8(pdev, cfgh, where, val) \
435 (*(val) = pci_read_config(pdev->device, where, 1))
440 * @pdev: Device context. Some OSs require device context to perform PIO and/or
449 #define xge_os_pci_write8(pdev, cfgh, where, val) \
450 pci_write_config(pdev->device, where, val, 1)
455 * @pdev: Device context.
464 #define xge_os_pci_read16(pdev, cfgh, where, val) \
465 (*(val) = pci_read_config(pdev->device, where, 2))
470 * @pdev: Device context.
478 #define xge_os_pci_write16(pdev, cfgh, where, val) \
479 pci_write_config(pdev->device, where, val, 2)
484 * @pdev: Device context.
493 #define xge_os_pci_read32(pdev, cfgh, where, val) \
494 (*(val) = pci_read_config(pdev->device, where, 4))
499 * @pdev: Device context.
507 #define xge_os_pci_write32(pdev, cfgh, where, val) \
508 pci_write_config(pdev->device, where, val, 4)
513 * @pdev: Device context.
520 xge_os_pio_mem_read8(pci_dev_h pdev, pci_reg_h regh, void *addr)
535 * @pdev: Device context.
543 xge_os_pio_mem_write8(pci_dev_h pdev, pci_reg_h regh, u8 val, void *addr)
558 * @pdev: Device context.
565 xge_os_pio_mem_read16(pci_dev_h pdev, pci_reg_h regh, void *addr)
580 * @pdev: Device context.
588 xge_os_pio_mem_write16(pci_dev_h pdev, pci_reg_h regh, u16 val, void *addr)
602 * @pdev: Device context.
609 xge_os_pio_mem_read32(pci_dev_h pdev, pci_reg_h regh, void *addr)
624 * @pdev: Device context.
632 xge_os_pio_mem_write32(pci_dev_h pdev, pci_reg_h regh, u32 val, void *addr)
645 * @pdev: Device context.
652 xge_os_pio_mem_read64(pci_dev_h pdev, pci_reg_h regh, void *addr)
673 * @pdev: Device context.
681 xge_os_pio_mem_write64(pci_dev_h pdev, pci_reg_h regh, u64 val, void *addr)
684 xge_os_pio_mem_write32(pdev, regh, vall, addr);
685 xge_os_pio_mem_write32(pdev, regh, val >> 32, ((caddr_t)(addr) + 4));
696 * @pdev: Device context. Used to allocate/pin/map/unmap DMA-able memory.
712 xge_os_dma_map(pci_dev_h pdev, pci_dma_h dmah, void *vaddr, size_t size,
728 * @pdev: Device context. Used to allocate/pin/map/unmap DMA-able memory.
740 xge_os_dma_unmap(pci_dev_h pdev, pci_dma_h dmah, dma_addr_t dma_addr,
749 * @pdev: Device context. Used to allocate/pin/map/unmap DMA-able memory.
766 xge_os_dma_sync(pci_dev_h pdev, pci_dma_h dmah, dma_addr_t dma_addr,