Lines Matching refs:kptr
95 u8 *kptr; member
908 if (copy_from_user(bl->kptr, ufwbuf+fw_bytes_copied, bl->len)) { in mptctl_do_fw_download()
1067 buflist[buflist_ent].kptr = pci_alloc_consistent(ioc->pcidev, in kbuf_alloc_2_sgl()
1070 if (buflist[buflist_ent].kptr == NULL) { in kbuf_alloc_2_sgl()
1086 buflist[buflist_ent].kptr, this_alloc, dir); in kbuf_alloc_2_sgl()
1135 u8 *kptr; in kbuf_alloc_2_sgl() local
1142 kptr = buflist[i].kptr; in kbuf_alloc_2_sgl()
1145 pci_free_consistent(ioc->pcidev, len, kptr, dma_addr); in kbuf_alloc_2_sgl()
1178 void *kptr; in kfree_sgl() local
1182 kptr = bl->kptr; in kfree_sgl()
1185 pci_free_consistent(ioc->pcidev, len, kptr, dma_addr); in kfree_sgl()
1196 void *kptr; in kfree_sgl() local
1200 kptr = bl->kptr; in kfree_sgl()
1203 pci_free_consistent(ioc->pcidev, len, kptr, dma_addr); in kfree_sgl()
1757 bufIn.kptr = bufOut.kptr = NULL; in mptctl_do_mpt_command()
2111 bufOut.kptr = pci_alloc_consistent( in mptctl_do_mpt_command()
2114 if (bufOut.kptr == NULL) { in mptctl_do_mpt_command()
2126 if (copy_from_user(bufOut.kptr, in mptctl_do_mpt_command()
2145 bufIn.kptr = pci_alloc_consistent(ioc->pcidev, in mptctl_do_mpt_command()
2148 if (bufIn.kptr == NULL) { in mptctl_do_mpt_command()
2274 (karg.dataInSize > 0) && (bufIn.kptr)) { in mptctl_do_mpt_command()
2277 bufIn.kptr, karg.dataInSize)) { in mptctl_do_mpt_command()
2293 if (bufOut.kptr != NULL) { in mptctl_do_mpt_command()
2295 bufOut.len, (void *) bufOut.kptr, dma_addr_out); in mptctl_do_mpt_command()
2298 if (bufIn.kptr != NULL) { in mptctl_do_mpt_command()
2300 bufIn.len, (void *) bufIn.kptr, dma_addr_in); in mptctl_do_mpt_command()