Lines Matching defs:table
71 * sg_free_table_chained - Free a previously mapped sg table
72 * @table: The sg table header to use
77 * Free an sg table previously allocated and setup with
84 void sg_free_table_chained(struct sg_table *table,
87 if (table->orig_nents <= nents_first_chunk)
93 __sg_free_table(table, SG_CHUNK_SIZE, nents_first_chunk, sg_pool_free);
98 * sg_alloc_table_chained - Allocate and chain SGLs in an sg table
99 * @table: The sg table header to use
105 * Allocate and chain SGLs in an sg table. If @nents@ is larger than
106 * @nents_first_chunk a chained sg table will be setup. @first_chunk is
111 int sg_alloc_table_chained(struct sg_table *table, int nents,
120 table->nents = table->orig_nents = nents;
121 sg_init_table(table->sgl, nents);
132 ret = __sg_alloc_table(table, nents, SG_CHUNK_SIZE,
136 sg_free_table_chained(table, nents_first_chunk);