• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/s390/cio/

Lines Matching refs:tccb

49  * tcw_get_tccb - return pointer to tccb associated with tcw
52 * Return pointer to the tccb associated with this tcw.
54 struct tccb *tcw_get_tccb(struct tcw *tcw)
56 return (struct tccb *) ((addr_t) tcw->tccb);
93 static inline size_t tca_size(struct tccb *tccb)
95 return tccb->tcah.tcal - 12;
98 static u32 calc_dcw_count(struct tccb *tccb)
105 size = tca_size(tccb);
107 dcw = (struct dcw *) &tccb->tca[offset];
146 * tcat the tccb and terminate the data tidaw list if used.
149 * in contiguous storage (no ttic). The tcal field in the tccb must be
155 struct tccb *tccb;
163 /* Add tcat to tccb. */
164 tccb = tcw_get_tccb(tcw);
165 tcat = (struct tccb_tcat *) &tccb->tca[tca_size(tccb)];
168 count = calc_dcw_count(tccb);
177 tcw->tccbl = (sizeof(struct tccb) + tca_size(tccb) +
221 * tcw_set_tccb - set tccb address of a tcw
223 * @tccb: the tccb address
225 * Set the address of the tccb in the specified tcw.
227 void tcw_set_tccb(struct tcw *tcw, struct tccb *tccb)
229 tcw->tccb = (u64) ((addr_t) tccb);
247 * tccb_init - initialize tccb
248 * @tccb: the tccb address
249 * @size: the maximum size of the tccb
252 * Initialize the header of the specified tccb by resetting all values to zero
255 void tccb_init(struct tccb *tccb, size_t size, u32 sac)
257 memset(tccb, 0, size);
258 tccb->tcah.format = TCCB_FORMAT_DEFAULT;
259 tccb->tcah.sac = sac;
260 tccb->tcah.tcal = 12;
277 * tccb_add_dcw - add a dcw to the tccb
278 * @tccb: the tccb address
279 * @tccb_size: the maximum tccb size
286 * Add a new dcw to the specified tccb by writing the dcw information specified
287 * by @cmd, @flags, @cd, @cd_count and @count to the tca of the tccb. Return
291 * Note: the tcal field of the tccb header will be updates to reflect added
294 struct dcw *tccb_add_dcw(struct tccb *tccb, size_t tccb_size, u8 cmd, u8 flags,
302 tca_offset = tca_size(tccb);
308 dcw = (struct dcw *) &tccb->tca[tca_offset];
316 tccb->tcah.tcal += size;