Lines Matching refs:risc
54 struct btcx_riscmem *risc) in btcx_riscmem_free() argument
56 if (NULL == risc->cpu) in btcx_riscmem_free()
61 memcnt, (unsigned long)risc->dma); in btcx_riscmem_free()
63 pci_free_consistent(pci, risc->size, risc->cpu, risc->dma); in btcx_riscmem_free()
64 memset(risc,0,sizeof(*risc)); in btcx_riscmem_free()
68 struct btcx_riscmem *risc, in btcx_riscmem_alloc() argument
74 if (NULL != risc->cpu && risc->size < size) in btcx_riscmem_alloc()
75 btcx_riscmem_free(pci,risc); in btcx_riscmem_alloc()
76 if (NULL == risc->cpu) { in btcx_riscmem_alloc()
80 risc->cpu = cpu; in btcx_riscmem_alloc()
81 risc->dma = dma; in btcx_riscmem_alloc()
82 risc->size = size; in btcx_riscmem_alloc()
88 memset(risc->cpu,0,risc->size); in btcx_riscmem_alloc()