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,
94 table->orig_nents);
99 * sg_alloc_table_chained - Allocate and chain SGLs in an sg table
100 * @table: The sg table header to use
106 * Allocate and chain SGLs in an sg table. If @nents@ is larger than
107 * @nents_first_chunk a chained sg table will be setup. @first_chunk is
112 int sg_alloc_table_chained(struct sg_table *table, int nents,
121 table->nents = table->orig_nents = nents;
122 sg_init_table(table->sgl, nents);
133 ret = __sg_alloc_table(table, nents, SG_CHUNK_SIZE,
137 sg_free_table_chained(table, nents_first_chunk);