Home
last modified time | relevance | path

Searched refs:sg_per_table (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/target/
H A Dtarget_core_rd.c68 u32 i, j, page_count = 0, sg_per_table; in rd_release_sgl_table() local
72 sg_per_table = sg_table[i].rd_sg_count; in rd_release_sgl_table()
74 for (j = 0; j < sg_per_table; j++) { in rd_release_sgl_table()
115 u32 i = 0, j, page_offset = 0, sg_per_table; in rd_allocate_sgl_table() local
125 sg_per_table = (total_sg_needed > max_sg_per_table) ? in rd_allocate_sgl_table()
131 if (sg_per_table < total_sg_needed) in rd_allocate_sgl_table()
134 sg = kmalloc_array(sg_per_table + chain_entry, sizeof(*sg), in rd_allocate_sgl_table()
139 sg_init_table(sg, sg_per_table + chain_entry); in rd_allocate_sgl_table()
147 sg_table[i].rd_sg_count = sg_per_table; in rd_allocate_sgl_table()
149 sg_table[i++].page_end_offset = (page_offset + sg_per_table) in rd_allocate_sgl_table()
[all …]