Lines Matching defs:buf_info
3256 struct bfad_buf_info *buf_base, *buf_info;
3269 buf_info = buf_base;
3270 buf_info->size = payload_len;
3271 buf_info->virt = dma_zalloc_coherent(&bfad->pcidev->dev,
3272 buf_info->size, &buf_info->phys,
3274 if (!buf_info->virt)
3277 /* copy the linear bsg buffer to buf_info */
3278 memcpy(buf_info->virt, payload_kbuf, buf_info->size);
3283 sg_table->sg_len = buf_info->size;
3284 sg_table->sg_addr = (void *)(size_t) buf_info->phys;
3300 struct bfad_buf_info *buf_info = buf_base;
3303 for (i = 0; i < num_sgles; buf_info++, i++) {
3304 if (buf_info->virt != NULL)
3306 buf_info->size, buf_info->virt,
3307 buf_info->phys);