Lines Matching defs:tcw

19  * struct itcw - incremental tcw helper data type
22 * tcw and associated tccb, tsb, data tidaw-list plus an optional interrogate
23 * tcw and associated data. The data structures are contained inside a single
32 * - optionally provide ready-made interrogate tcw and associated structures
59 struct tcw *tcw;
60 struct tcw *intrg_tcw;
68 * itcw_get_tcw - return pointer to tcw associated with the itcw
71 * Return pointer to the tcw associated with the itcw.
73 struct tcw *itcw_get_tcw(struct itcw *itcw)
75 return itcw->tcw;
81 * @intrg: if non-zero, add an interrogate tcw
85 * by the interrogate tcw, if specified
101 len += /* TCW */ sizeof(struct tcw) + /* TCCB */ TCCB_MAX_SIZE +
106 len += /* TCW */ sizeof(struct tcw) + /* TCCB */ TCCB_MAX_SIZE +
154 * itcw_init - initialize incremental tcw data structure
157 * @op: %ITCW_OP_READ for a read operation tcw, %ITCW_OP_WRITE for a write
158 * operation tcw
159 * @intrg: if non-zero, add and initialize an interrogate tcw
163 * by the interrogate tcw, if specified
165 * Prepare the specified buffer to be used as an incremental tcw, i.e. a
166 * helper data structure that can be used to construct a valid tcw by
168 * located below the 2G address limit. The resulting tcw has the following
173 * - tcw specifies either read or write operation
175 * On success, return pointer to the resulting incremental tcw data structure,
210 chunk = fit_chunk(&start, end, sizeof(struct tcw), 64, 0);
213 itcw->tcw = chunk;
214 tcw_init(itcw->tcw, (op == ITCW_OP_READ) ? 1 : 0,
218 chunk = fit_chunk(&start, end, sizeof(struct tcw), 64, 0);
223 tcw_set_intrg(itcw->tcw, itcw->intrg_tcw);
231 tcw_set_data(itcw->tcw, chunk, 1);
246 tcw_set_tsb(itcw->tcw, chunk);
260 tcw_set_tccb(itcw->tcw, chunk);
296 return tccb_add_dcw(tcw_get_tccb(itcw->tcw), TCCB_MAX_SIZE, cmd,
328 following = ((struct tidaw *) tcw_get_data(itcw->tcw))
331 tcw_add_tidaw(itcw->tcw, itcw->num_tidaws++,
336 return tcw_add_tidaw(itcw->tcw, itcw->num_tidaws++, flags, addr, count);
353 tcw_set_data(itcw->tcw, addr, use_tidal);
361 * Calculate tcw input-/output-count and tccbl fields and add a tcat the tccb.
368 tcw_finalize(itcw->tcw, itcw->num_tidaws);