Lines Matching full:risc
4 btcx-risc.c
6 bt848/bt878/cx2388x risc code generator.
23 #include "btcx-risc.h"
37 /* allocate/free risc memory */
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 pci_free_consistent(pci, 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()
76 memset(risc->cpu,0,risc->size); in btcx_riscmem_alloc()