Lines Matching refs:ddp_desc
2326 struct csio_dma_buf *ddp_desc = NULL; in csio_scsi_alloc_ddp_bufs() local
2343 ddp_desc = kzalloc(sizeof(struct csio_dma_buf), GFP_KERNEL); in csio_scsi_alloc_ddp_bufs()
2344 if (!ddp_desc) { in csio_scsi_alloc_ddp_bufs()
2353 ddp_desc->vaddr = dma_alloc_coherent(&hw->pdev->dev, unit_size, in csio_scsi_alloc_ddp_bufs()
2354 &ddp_desc->paddr, GFP_KERNEL); in csio_scsi_alloc_ddp_bufs()
2355 if (!ddp_desc->vaddr) { in csio_scsi_alloc_ddp_bufs()
2359 kfree(ddp_desc); in csio_scsi_alloc_ddp_bufs()
2363 ddp_desc->len = unit_size; in csio_scsi_alloc_ddp_bufs()
2366 list_add_tail(&ddp_desc->list, &scm->ddp_freelist); in csio_scsi_alloc_ddp_bufs()
2374 ddp_desc = (struct csio_dma_buf *) tmp; in csio_scsi_alloc_ddp_bufs()
2376 dma_free_coherent(&hw->pdev->dev, ddp_desc->len, in csio_scsi_alloc_ddp_bufs()
2377 ddp_desc->vaddr, ddp_desc->paddr); in csio_scsi_alloc_ddp_bufs()
2378 list_del_init(&ddp_desc->list); in csio_scsi_alloc_ddp_bufs()
2379 kfree(ddp_desc); in csio_scsi_alloc_ddp_bufs()
2397 struct csio_dma_buf *ddp_desc; in csio_scsi_free_ddp_bufs() local
2401 ddp_desc = (struct csio_dma_buf *) tmp; in csio_scsi_free_ddp_bufs()
2403 dma_free_coherent(&hw->pdev->dev, ddp_desc->len, in csio_scsi_free_ddp_bufs()
2404 ddp_desc->vaddr, ddp_desc->paddr); in csio_scsi_free_ddp_bufs()
2405 list_del_init(&ddp_desc->list); in csio_scsi_free_ddp_bufs()
2406 kfree(ddp_desc); in csio_scsi_free_ddp_bufs()