Lines Matching refs:ccw
146 struct ccw1 *ccw; in raw3215_mk_read_req() local
158 ccw = req->ccws; in raw3215_mk_read_req()
159 ccw->cmd_code = 0x0A; /* read inquiry */ in raw3215_mk_read_req()
160 ccw->flags = 0x20; /* ignore incorrect length */ in raw3215_mk_read_req()
161 ccw->count = 160; in raw3215_mk_read_req()
162 ccw->cda = virt_to_dma32(raw->inbuf); in raw3215_mk_read_req()
174 struct ccw1 *ccw; in raw3215_mk_write_req() local
191 ccw = req->ccws; in raw3215_mk_write_req()
217 if (ccw > req->ccws) in raw3215_mk_write_req()
218 ccw[-1].flags |= 0x40; /* use command chaining */ in raw3215_mk_write_req()
219 ccw->cmd_code = 0x01; /* write, auto carrier return */ in raw3215_mk_write_req()
220 ccw->flags = 0x20; /* ignore incorrect length ind. */ in raw3215_mk_write_req()
221 ccw->cda = virt_to_dma32(raw->buffer + ix); in raw3215_mk_write_req()
225 ccw->count = count; in raw3215_mk_write_req()
228 ccw++; in raw3215_mk_write_req()
235 if (ccw > req->ccws) in raw3215_mk_write_req()
236 ccw[-1].flags |= 0x40; /* use command chaining */ in raw3215_mk_write_req()
237 ccw->cmd_code = 0x03; /* NOP */ in raw3215_mk_write_req()
238 ccw->flags = 0; in raw3215_mk_write_req()
239 ccw->cda = 0; in raw3215_mk_write_req()
240 ccw->count = 1; in raw3215_mk_write_req()