Lines Matching refs:ccw
55 MODULE_DEVICE_TABLE(ccw, dasd_fba_ids);
89 define_extent(struct ccw1 * ccw, struct DE_fba_data *data, int rw, in define_extent() argument
92 ccw->cmd_code = DASD_FBA_CCW_DEFINE_EXTENT; in define_extent()
93 ccw->flags = 0; in define_extent()
94 ccw->count = 16; in define_extent()
95 ccw->cda = (__u32) __pa(data); in define_extent()
109 locate_record(struct ccw1 * ccw, struct LO_fba_data *data, int rw, in locate_record() argument
112 ccw->cmd_code = DASD_FBA_CCW_LOCATE; in locate_record()
113 ccw->flags = 0; in locate_record()
114 ccw->count = 8; in locate_record()
115 ccw->cda = (__u32) __pa(data); in locate_record()
259 static void ccw_write_no_data(struct ccw1 *ccw) in ccw_write_no_data() argument
261 ccw->cmd_code = DASD_FBA_CCW_WRITE; in ccw_write_no_data()
262 ccw->flags |= CCW_FLAG_SLI; in ccw_write_no_data()
263 ccw->count = 0; in ccw_write_no_data()
269 static void ccw_write_zero(struct ccw1 *ccw, int count) in ccw_write_zero() argument
271 ccw->cmd_code = DASD_FBA_CCW_WRITE; in ccw_write_zero()
272 ccw->flags |= CCW_FLAG_SLI; in ccw_write_zero()
273 ccw->count = count; in ccw_write_zero()
274 ccw->cda = (__u32) (addr_t) dasd_fba_zero_page; in ccw_write_zero()
332 struct ccw1 *ccw; in dasd_fba_build_cp_discard() local
365 ccw = cqr->cpaddr; in dasd_fba_build_cp_discard()
367 define_extent(ccw++, cqr->data, WRITE, blksize, first_rec, count); in dasd_fba_build_cp_discard()
378 ccw[-1].flags |= CCW_FLAG_CC; in dasd_fba_build_cp_discard()
379 locate_record(ccw++, LO_data++, WRITE, cur_pos, wz_count); in dasd_fba_build_cp_discard()
381 ccw[-1].flags |= CCW_FLAG_CC; in dasd_fba_build_cp_discard()
382 ccw_write_zero(ccw++, wz_count * blksize); in dasd_fba_build_cp_discard()
398 ccw[-1].flags |= CCW_FLAG_CC; in dasd_fba_build_cp_discard()
399 locate_record(ccw++, LO_data++, WRITE, cur_pos, d_count); in dasd_fba_build_cp_discard()
401 ccw[-1].flags |= CCW_FLAG_CC; in dasd_fba_build_cp_discard()
402 ccw_write_no_data(ccw++); in dasd_fba_build_cp_discard()
416 ccw[-1].flags |= CCW_FLAG_CC; in dasd_fba_build_cp_discard()
417 locate_record(ccw++, LO_data++, WRITE, cur_pos, wz_count); in dasd_fba_build_cp_discard()
419 ccw[-1].flags |= CCW_FLAG_CC; in dasd_fba_build_cp_discard()
420 ccw_write_zero(ccw++, wz_count * blksize); in dasd_fba_build_cp_discard()
447 struct ccw1 *ccw; in dasd_fba_build_cp_regular() local
499 ccw = cqr->cpaddr; in dasd_fba_build_cp_regular()
501 define_extent(ccw++, cqr->data, rq_data_dir(req), in dasd_fba_build_cp_regular()
508 ccw[-1].flags |= CCW_FLAG_CC; in dasd_fba_build_cp_regular()
509 locate_record(ccw++, LO_data++, rq_data_dir(req), 0, count); in dasd_fba_build_cp_regular()
525 ccw[-1].flags |= CCW_FLAG_CC; in dasd_fba_build_cp_regular()
526 locate_record(ccw, LO_data++, in dasd_fba_build_cp_regular()
529 ccw->flags = CCW_FLAG_CC; in dasd_fba_build_cp_regular()
530 ccw++; in dasd_fba_build_cp_regular()
533 ccw[-1].flags |= CCW_FLAG_DC; in dasd_fba_build_cp_regular()
535 ccw[-1].flags |= CCW_FLAG_CC; in dasd_fba_build_cp_regular()
537 ccw->cmd_code = cmd; in dasd_fba_build_cp_regular()
538 ccw->count = block->bp_block; in dasd_fba_build_cp_regular()
540 ccw->cda = (__u32)(addr_t) idaws; in dasd_fba_build_cp_regular()
541 ccw->flags = CCW_FLAG_IDA; in dasd_fba_build_cp_regular()
544 ccw->cda = (__u32)(addr_t) dst; in dasd_fba_build_cp_regular()
545 ccw->flags = 0; in dasd_fba_build_cp_regular()
547 ccw++; in dasd_fba_build_cp_regular()
579 struct ccw1 *ccw; in dasd_fba_free_cp() local
589 ccw = cqr->cpaddr; in dasd_fba_free_cp()
591 ccw++; in dasd_fba_free_cp()
593 ccw++; in dasd_fba_free_cp()
599 ccw++; in dasd_fba_free_cp()
601 if (ccw->flags & CCW_FLAG_IDA) in dasd_fba_free_cp()
602 cda = *((char **)((addr_t) ccw->cda)); in dasd_fba_free_cp()
604 cda = (char *)((addr_t) ccw->cda); in dasd_fba_free_cp()
613 ccw++; in dasd_fba_free_cp()