Lines Matching defs:memory
56 MALLOC_DEFINE(M_ISCI, "isci", "isci driver memory allocations");
243 * free the SCI library memory.
395 struct ISCI_MEMORY *memory = (struct ISCI_MEMORY *)arg;
397 memory->error = error;
401 "Failed to allocate physically contiguous memory!\n");
403 memory->physical_address = seg->ds_addr;
408 struct ISCI_MEMORY *memory)
415 BUS_SPACE_MAXADDR, NULL, NULL, memory->size,
417 memory->size, 0, busdma_lock_mutex, &controller->lock,
418 &memory->dma_tag);
425 status = bus_dmamem_alloc(memory->dma_tag,
426 (void **)&memory->virtual_address, BUS_DMA_ZERO, &memory->dma_map);
434 status = bus_dmamap_load(memory->dma_tag, memory->dma_map,
435 (void *)memory->virtual_address, memory->size,
436 isci_allocate_dma_buffer_callback, memory, 0);
565 * @brief In this method the user must write to PCI memory via access.
566 * This method is used for access to memory space and IO space.
572 * into the PCI memory location.
574 * @todo These PCI memory access calls likely needs to be optimized into macros?
593 * @brief In this method the user must read from PCI memory via access.
594 * This method is used for access to memory space and IO space.
600 * @return The value being returned from the PCI memory location.
602 * @todo This PCI memory access calls likely need to be optimized into macro?