Lines Matching defs:memory
58 MALLOC_DEFINE(M_ISCI, "isci", "isci driver memory allocations");
247 * free the SCI library memory.
399 struct ISCI_MEMORY *memory = (struct ISCI_MEMORY *)arg;
401 memory->error = error;
405 "Failed to allocate physically contiguous memory!\n");
407 memory->physical_address = seg->ds_addr;
412 struct ISCI_MEMORY *memory)
419 BUS_SPACE_MAXADDR, NULL, NULL, memory->size,
421 memory->size, 0, busdma_lock_mutex, &controller->lock,
422 &memory->dma_tag);
429 status = bus_dmamem_alloc(memory->dma_tag,
430 (void **)&memory->virtual_address, BUS_DMA_ZERO, &memory->dma_map);
438 status = bus_dmamap_load(memory->dma_tag, memory->dma_map,
439 (void *)memory->virtual_address, memory->size,
440 isci_allocate_dma_buffer_callback, memory, 0);
569 * @brief In this method the user must write to PCI memory via access.
570 * This method is used for access to memory space and IO space.
576 * into the PCI memory location.
578 * @todo These PCI memory access calls likely needs to be optimized into macros?
597 * @brief In this method the user must read from PCI memory via access.
598 * This method is used for access to memory space and IO space.
604 * @return The value being returned from the PCI memory location.
606 * @todo This PCI memory access calls likely need to be optimized into macro?