Lines Matching refs:risc
42 struct btcx_riscmem *risc) in btcx_riscmem_free() argument
44 if (NULL == risc->cpu) in btcx_riscmem_free()
49 memcnt, (unsigned long)risc->dma); in btcx_riscmem_free()
51 dma_free_coherent(&pci->dev, risc->size, risc->cpu, risc->dma); in btcx_riscmem_free()
52 memset(risc,0,sizeof(*risc)); in btcx_riscmem_free()
56 struct btcx_riscmem *risc, in btcx_riscmem_alloc() argument
62 if (NULL != risc->cpu && risc->size < size) in btcx_riscmem_alloc()
63 btcx_riscmem_free(pci,risc); in btcx_riscmem_alloc()
64 if (NULL == risc->cpu) { in btcx_riscmem_alloc()
68 risc->cpu = cpu; in btcx_riscmem_alloc()
69 risc->dma = dma; in btcx_riscmem_alloc()
70 risc->size = size; in btcx_riscmem_alloc()