Lines Matching defs:tcw
20 * struct itcw - incremental tcw helper data type
23 * tcw and associated tccb, tsb, data tidaw-list plus an optional interrogate
24 * tcw and associated data. The data structures are contained inside a single
33 * - optionally provide ready-made interrogate tcw and associated structures
60 struct tcw *tcw;
61 struct tcw *intrg_tcw;
69 * itcw_get_tcw - return pointer to tcw associated with the itcw
72 * Return pointer to the tcw associated with the itcw.
74 struct tcw *itcw_get_tcw(struct itcw *itcw)
76 return itcw->tcw;
82 * @intrg: if non-zero, add an interrogate tcw
86 * by the interrogate tcw, if specified
102 len += /* TCW */ sizeof(struct tcw) + /* TCCB */ TCCB_MAX_SIZE +
107 len += /* TCW */ sizeof(struct tcw) + /* TCCB */ TCCB_MAX_SIZE +
155 * itcw_init - initialize incremental tcw data structure
158 * @op: %ITCW_OP_READ for a read operation tcw, %ITCW_OP_WRITE for a write
159 * operation tcw
160 * @intrg: if non-zero, add and initialize an interrogate tcw
164 * by the interrogate tcw, if specified
166 * Prepare the specified buffer to be used as an incremental tcw, i.e. a
167 * helper data structure that can be used to construct a valid tcw by
169 * located below the 2G address limit. The resulting tcw has the following
174 * - tcw specifies either read or write operation
176 * On success, return pointer to the resulting incremental tcw data structure,
211 chunk = fit_chunk(&start, end, sizeof(struct tcw), 64, 0);
214 itcw->tcw = chunk;
215 tcw_init(itcw->tcw, (op == ITCW_OP_READ) ? 1 : 0,
219 chunk = fit_chunk(&start, end, sizeof(struct tcw), 64, 0);
224 tcw_set_intrg(itcw->tcw, itcw->intrg_tcw);
232 tcw_set_data(itcw->tcw, chunk, 1);
247 tcw_set_tsb(itcw->tcw, chunk);
261 tcw_set_tccb(itcw->tcw, chunk);
297 return tccb_add_dcw(tcw_get_tccb(itcw->tcw), TCCB_MAX_SIZE, cmd,
329 following = ((struct tidaw *) tcw_get_data(itcw->tcw))
332 tcw_add_tidaw(itcw->tcw, itcw->num_tidaws++,
337 return tcw_add_tidaw(itcw->tcw, itcw->num_tidaws++, flags, addr, count);
354 tcw_set_data(itcw->tcw, addr, use_tidal);
362 * Calculate tcw input-/output-count and tccbl fields and add a tcat the tccb.
369 tcw_finalize(itcw->tcw, itcw->num_tidaws);