Lines Matching refs:fmt_buffer

2059 			  int enable_pav, struct eckd_count *fmt_buffer,  in dasd_eckd_build_check_tcw()  argument
2110 last_tidaw = itcw_add_tidaw(itcw, 0, fmt_buffer++, in dasd_eckd_build_check_tcw()
2146 int enable_pav, struct eckd_count *fmt_buffer, int rpt) in dasd_eckd_build_check() argument
2211 ccw->cda = (__u32)(addr_t) fmt_buffer; in dasd_eckd_build_check()
2213 fmt_buffer++; in dasd_eckd_build_check()
2497 int tpm, struct eckd_count *fmt_buffer, int rpt) in dasd_eckd_format_build_ccw_req() argument
2501 if (!fmt_buffer) { in dasd_eckd_format_build_ccw_req()
2507 fmt_buffer, rpt); in dasd_eckd_format_build_ccw_req()
2510 fmt_buffer, rpt); in dasd_eckd_format_build_ccw_req()
2559 struct eckd_count *fmt_buffer, int rpt, in dasd_eckd_format_process_data() argument
2580 if (!tpm && fmt_buffer != NULL) { in dasd_eckd_format_process_data()
2583 } else if (tpm && fmt_buffer != NULL) { in dasd_eckd_format_process_data()
2603 fmt_buffer, rpt); in dasd_eckd_format_process_data()
2621 if (fmt_buffer) { in dasd_eckd_format_process_data()
2623 fmt_buffer += rpt * step; in dasd_eckd_format_process_data()
2641 if (fmt_buffer && irb) { in dasd_eckd_format_process_data()
2690 static int dasd_eckd_count_records(struct eckd_count *fmt_buffer, int start, in dasd_eckd_count_records() argument
2696 head = fmt_buffer[start].head; in dasd_eckd_count_records()
2709 if ((fmt_buffer[i].head == head && in dasd_eckd_count_records()
2710 fmt_buffer[i].record == 1) || in dasd_eckd_count_records()
2711 fmt_buffer[i].head != head || in dasd_eckd_count_records()
2712 fmt_buffer[i].record == 0) in dasd_eckd_count_records()
2727 static void dasd_eckd_format_evaluate_tracks(struct eckd_count *fmt_buffer, in dasd_eckd_format_evaluate_tracks() argument
2747 while (fmt_buffer[pos].record == 0 && in dasd_eckd_format_evaluate_tracks()
2748 fmt_buffer[pos].dl == 0) { in dasd_eckd_format_evaluate_tracks()
2761 count = dasd_eckd_count_records(fmt_buffer, pos, pos + rpt_max); in dasd_eckd_format_evaluate_tracks()
2794 if (fmt_buffer[pos].dl != blksize) { in dasd_eckd_format_evaluate_tracks()
2799 if (fmt_buffer[pos].kl != kl) { in dasd_eckd_format_evaluate_tracks()
2804 if (fmt_buffer[pos].cyl != geo.cyl || in dasd_eckd_format_evaluate_tracks()
2805 fmt_buffer[pos].head != geo.head || in dasd_eckd_format_evaluate_tracks()
2806 fmt_buffer[pos].record != (j + 1)) { in dasd_eckd_format_evaluate_tracks()
2825 cdata->rec = fmt_buffer[pos].record; in dasd_eckd_format_evaluate_tracks()
2826 cdata->blksize = fmt_buffer[pos].dl; in dasd_eckd_format_evaluate_tracks()
2827 cdata->key_length = fmt_buffer[pos].kl; in dasd_eckd_format_evaluate_tracks()
2838 struct eckd_count *fmt_buffer; in dasd_eckd_check_device_format() local
2856 fmt_buffer = kzalloc(fmt_buffer_size, GFP_KERNEL | GFP_DMA); in dasd_eckd_check_device_format()
2857 if (!fmt_buffer) in dasd_eckd_check_device_format()
2873 tpm, fmt_buffer, rpt_max, &irb); in dasd_eckd_check_device_format()
2886 fmt_buffer, rpt_max, in dasd_eckd_check_device_format()
2895 dasd_eckd_format_evaluate_tracks(fmt_buffer, cdata, rpt_max, rpt_exp, in dasd_eckd_check_device_format()
2899 kfree(fmt_buffer); in dasd_eckd_check_device_format()