Lines Matching defs:tcw

21  * struct itcw - incremental tcw helper data type
24 * tcw and associated tccb, tsb, data tidaw-list plus an optional interrogate
25 * tcw and associated data. The data structures are contained inside a single
34 * - optionally provide ready-made interrogate tcw and associated structures
61 struct tcw *tcw;
62 struct tcw *intrg_tcw;
70 * itcw_get_tcw - return pointer to tcw associated with the itcw
73 * Return pointer to the tcw associated with the itcw.
75 struct tcw *itcw_get_tcw(struct itcw *itcw)
77 return itcw->tcw;
83 * @intrg: if non-zero, add an interrogate tcw
87 * by the interrogate tcw, if specified
103 len += /* TCW */ sizeof(struct tcw) + /* TCCB */ TCCB_MAX_SIZE +
108 len += /* TCW */ sizeof(struct tcw) + /* TCCB */ TCCB_MAX_SIZE +
156 * itcw_init - initialize incremental tcw data structure
159 * @op: %ITCW_OP_READ for a read operation tcw, %ITCW_OP_WRITE for a write
160 * operation tcw
161 * @intrg: if non-zero, add and initialize an interrogate tcw
165 * by the interrogate tcw, if specified
167 * Prepare the specified buffer to be used as an incremental tcw, i.e. a
168 * helper data structure that can be used to construct a valid tcw by
170 * located below the 2G address limit. The resulting tcw has the following
175 * - tcw specifies either read or write operation
177 * On success, return pointer to the resulting incremental tcw data structure,
212 chunk = fit_chunk(&start, end, sizeof(struct tcw), 64, 0);
215 itcw->tcw = chunk;
216 tcw_init(itcw->tcw, (op == ITCW_OP_READ) ? 1 : 0,
220 chunk = fit_chunk(&start, end, sizeof(struct tcw), 64, 0);
225 tcw_set_intrg(itcw->tcw, itcw->intrg_tcw);
233 tcw_set_data(itcw->tcw, chunk, 1);
248 tcw_set_tsb(itcw->tcw, chunk);
262 tcw_set_tccb(itcw->tcw, chunk);
298 return tccb_add_dcw(tcw_get_tccb(itcw->tcw), TCCB_MAX_SIZE, cmd,
330 following = ((struct tidaw *) tcw_get_data(itcw->tcw))
333 tcw_add_tidaw(itcw->tcw, itcw->num_tidaws++,
338 return tcw_add_tidaw(itcw->tcw, itcw->num_tidaws++, flags, addr, count);
355 tcw_set_data(itcw->tcw, addr, use_tidal);
363 * Calculate tcw input-/output-count and tccbl fields and add a tcat the tccb.
370 tcw_finalize(itcw->tcw, itcw->num_tidaws);