Lines Matching refs:risc
45 struct btcx_riscmem *risc) in btcx_riscmem_free() argument
47 if (NULL == risc->cpu) in btcx_riscmem_free()
52 memcnt, (unsigned long)risc->dma); in btcx_riscmem_free()
54 pci_free_consistent(pci, risc->size, risc->cpu, risc->dma); in btcx_riscmem_free()
55 memset(risc,0,sizeof(*risc)); in btcx_riscmem_free()
59 struct btcx_riscmem *risc, in btcx_riscmem_alloc() argument
65 if (NULL != risc->cpu && risc->size < size) in btcx_riscmem_alloc()
66 btcx_riscmem_free(pci,risc); in btcx_riscmem_alloc()
67 if (NULL == risc->cpu) { in btcx_riscmem_alloc()
71 risc->cpu = cpu; in btcx_riscmem_alloc()
72 risc->dma = dma; in btcx_riscmem_alloc()
73 risc->size = size; in btcx_riscmem_alloc()
80 memset(risc->cpu,0,risc->size); in btcx_riscmem_alloc()