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,
425 * @pdev: Device context. Some OSs require device context to perform PIO and/or
435 #define xge_os_pci_read8(pdev, cfgh, where, val) \
436 (*(val) = pci_read_config(pdev->device, where, 1))
441 * @pdev: Device context. Some OSs require device context to perform PIO and/or
450 #define xge_os_pci_write8(pdev, cfgh, where, val) \
451 pci_write_config(pdev->device, where, val, 1)
456 * @pdev: Device context.
465 #define xge_os_pci_read16(pdev, cfgh, where, val) \
466 (*(val) = pci_read_config(pdev->device, where, 2))
471 * @pdev: Device context.
479 #define xge_os_pci_write16(pdev, cfgh, where, val) \
480 pci_write_config(pdev->device, where, val, 2)
485 * @pdev: Device context.
494 #define xge_os_pci_read32(pdev, cfgh, where, val) \
495 (*(val) = pci_read_config(pdev->device, where, 4))
500 * @pdev: Device context.
508 #define xge_os_pci_write32(pdev, cfgh, where, val) \
509 pci_write_config(pdev->device, where, val, 4)
514 * @pdev: Device context.
521 xge_os_pio_mem_read8(pci_dev_h pdev, pci_reg_h regh, void *addr)
536 * @pdev: Device context.
544 xge_os_pio_mem_write8(pci_dev_h pdev, pci_reg_h regh, u8 val, void *addr)
559 * @pdev: Device context.
566 xge_os_pio_mem_read16(pci_dev_h pdev, pci_reg_h regh, void *addr)
581 * @pdev: Device context.
589 xge_os_pio_mem_write16(pci_dev_h pdev, pci_reg_h regh, u16 val, void *addr)
603 * @pdev: Device context.
610 xge_os_pio_mem_read32(pci_dev_h pdev, pci_reg_h regh, void *addr)
625 * @pdev: Device context.
633 xge_os_pio_mem_write32(pci_dev_h pdev, pci_reg_h regh, u32 val, void *addr)
646 * @pdev: Device context.
653 xge_os_pio_mem_read64(pci_dev_h pdev, pci_reg_h regh, void *addr)
674 * @pdev: Device context.
682 xge_os_pio_mem_write64(pci_dev_h pdev, pci_reg_h regh, u64 val, void *addr)
685 xge_os_pio_mem_write32(pdev, regh, vall, addr);
686 xge_os_pio_mem_write32(pdev, regh, val >> 32, ((caddr_t)(addr) + 4));
697 * @pdev: Device context. Used to allocate/pin/map/unmap DMA-able memory.
713 xge_os_dma_map(pci_dev_h pdev, pci_dma_h dmah, void *vaddr, size_t size,
729 * @pdev: Device context. Used to allocate/pin/map/unmap DMA-able memory.
741 xge_os_dma_unmap(pci_dev_h pdev, pci_dma_h dmah, dma_addr_t dma_addr,
750 * @pdev: Device context. Used to allocate/pin/map/unmap DMA-able memory.
767 xge_os_dma_sync(pci_dev_h pdev, pci_dma_h dmah, dma_addr_t dma_addr,