Lines Matching refs:hdrs
443 struct rds_header **hdrs, dma_addr_t *dma_addrs, u32 num_hdrs, in rds_dma_hdrs_free() argument
449 rds_dma_hdr_free(dev->dev, hdrs[i], dma_addrs[i], dir); in rds_dma_hdrs_free()
450 kvfree(hdrs); in rds_dma_hdrs_free()
470 struct rds_header **hdrs; in rds_dma_hdrs_alloc() local
474 hdrs = kvmalloc_node(sizeof(*hdrs) * num_hdrs, GFP_KERNEL, in rds_dma_hdrs_alloc()
476 if (!hdrs) in rds_dma_hdrs_alloc()
482 kvfree(hdrs); in rds_dma_hdrs_alloc()
487 hdrs[i] = rds_dma_hdr_alloc(dev->dev, &hdr_daddrs[i], dir); in rds_dma_hdrs_alloc()
488 if (!hdrs[i]) { in rds_dma_hdrs_alloc()
489 rds_dma_hdrs_free(dev, hdrs, hdr_daddrs, i, dir); in rds_dma_hdrs_alloc()
495 return hdrs; in rds_dma_hdrs_alloc()