Lines Matching refs:private

210 	dasd_eckd_private_t *private = (dasd_eckd_private_t *) device->private;  in check_XRC()  local
213 if (private->rdc_data.facilities.XRC_supported) { in check_XRC()
236 dasd_eckd_private_t *private = (dasd_eckd_private_t *) device->private; in define_extent() local
238 geo.cyl = private->rdc_data.no_cyl; in define_extent()
239 geo.head = private->rdc_data.trk_per_cyl; in define_extent()
265 data->attributes.operation = private->attrib.operation; in define_extent()
272 data->attributes.operation = private->attrib.operation; in define_extent()
308 if (private->rdc_data.cu_type == 0x2105 in define_extent()
309 && !(private->uses_cdl && trk < 2) ) { in define_extent()
318 if (end.cyl + private->attrib.nr_cyl < geo.cyl) { in define_extent()
320 end.cyl += private->attrib.nr_cyl; in define_extent()
360 dasd_eckd_private_t *private = (dasd_eckd_private_t *) device->private; in locate_record() local
361 ch_t geo = { private->rdc_data.no_cyl, in locate_record()
362 private->rdc_data.trk_per_cyl in locate_record()
383 switch (private->rdc_data.dev_type) { in locate_record()
493 dasd_eckd_private_t *private; in dasd_eckd_check_characteristics() local
503 device->private = kmalloc (sizeof (dasd_eckd_private_t), in dasd_eckd_check_characteristics()
506 if (device->private == NULL) { in dasd_eckd_check_characteristics()
515 private = (dasd_eckd_private_t *) device->private; in dasd_eckd_check_characteristics()
516 rdc_data = (void *) &(private->rdc_data); in dasd_eckd_check_characteristics()
533 private->rdc_data.dev_type, in dasd_eckd_check_characteristics()
534 private->rdc_data.dev_model, in dasd_eckd_check_characteristics()
535 private->rdc_data.cu_type, in dasd_eckd_check_characteristics()
536 private->rdc_data.cu_model.model, in dasd_eckd_check_characteristics()
537 private->rdc_data.no_cyl, in dasd_eckd_check_characteristics()
538 private->rdc_data.trk_per_cyl, in dasd_eckd_check_characteristics()
539 private->rdc_data.sec_per_trk); in dasd_eckd_check_characteristics()
542 private->attrib.operation = DASD_NORMAL_CACHE; in dasd_eckd_check_characteristics()
543 private->attrib.nr_cyl = 0; in dasd_eckd_check_characteristics()
579 memcpy (&private->conf_data, conf_data, in dasd_eckd_check_characteristics()
584 private->rdc_data.dev_type, in dasd_eckd_check_characteristics()
585 private->rdc_data.dev_model, in dasd_eckd_check_characteristics()
586 private->rdc_data.cu_type, in dasd_eckd_check_characteristics()
587 private->rdc_data.cu_model.model); in dasd_eckd_check_characteristics()
591 if (device->private) { in dasd_eckd_check_characteristics()
592 kfree (device->private); in dasd_eckd_check_characteristics()
593 device->private = NULL; in dasd_eckd_check_characteristics()
603 dasd_eckd_private_t *private = (dasd_eckd_private_t *) device->private; in dasd_eckd_cdl_reclen() local
605 int blk_per_trk = recs_per_track (&(private->rdc_data), 0, byt_per_blk); in dasd_eckd_cdl_reclen()
622 dasd_eckd_private_t *private = (dasd_eckd_private_t *)device->private; in dasd_eckd_init_analysis() local
623 eckd_count_t *count_data = private->count_area; in dasd_eckd_init_analysis()
710 dasd_eckd_private_t *private = (dasd_eckd_private_t *) device->private; in dasd_eckd_do_analysis() local
716 private->uses_cdl = 1; in dasd_eckd_do_analysis()
731 ((private->count_area[i].kl != 4) || in dasd_eckd_do_analysis()
732 (private->count_area[i].dl != in dasd_eckd_do_analysis()
734 private->uses_cdl = 0; in dasd_eckd_do_analysis()
739 count_area = &private->count_area[4]; in dasd_eckd_do_analysis()
741 if (private->uses_cdl == 0) { in dasd_eckd_do_analysis()
743 if ((private->count_area[i].kl != 0) || in dasd_eckd_do_analysis()
744 (private->count_area[i].dl != in dasd_eckd_do_analysis()
745 private->count_area[0].dl)) { in dasd_eckd_do_analysis()
750 count_area = &private->count_area[0]; in dasd_eckd_do_analysis()
753 if (private->count_area[3].record == 1) { in dasd_eckd_do_analysis()
783 rpt = recs_per_track (&private->rdc_data, 0, device->sizes.bp_block); in dasd_eckd_do_analysis()
784 device->sizes.blocks = (private->rdc_data.no_cyl * in dasd_eckd_do_analysis()
785 private->rdc_data.trk_per_cyl * in dasd_eckd_do_analysis()
786 recs_per_track (&private->rdc_data, 0, in dasd_eckd_do_analysis()
789 private-> in dasd_eckd_do_analysis()
795 ((private->rdc_data.no_cyl * in dasd_eckd_do_analysis()
796 private->rdc_data.trk_per_cyl * in dasd_eckd_do_analysis()
797 recs_per_track (&private->rdc_data, 0, in dasd_eckd_do_analysis()
800 ((recs_per_track (&private->rdc_data, 0, in dasd_eckd_do_analysis()
812 dasd_eckd_private_t *private = (dasd_eckd_private_t *) device->private; in dasd_eckd_fill_geometry() local
818 geo->sectors = recs_per_track (&(private->rdc_data), in dasd_eckd_fill_geometry()
824 geo->cylinders = private->rdc_data.no_cyl; in dasd_eckd_fill_geometry()
825 geo->heads = private->rdc_data.trk_per_cyl; in dasd_eckd_fill_geometry()
841 dasd_eckd_private_t *private = (dasd_eckd_private_t *) device->private; in dasd_eckd_format_device() local
843 int rpt = recs_per_track (&(private->rdc_data), 0, fdata->blksize); in dasd_eckd_format_device()
844 int cyl = fdata->start_unit / private->rdc_data.trk_per_cyl; in dasd_eckd_format_device()
845 int head = fdata->start_unit % private->rdc_data.trk_per_cyl; in dasd_eckd_format_device()
850 (private->rdc_data.no_cyl * private->rdc_data.trk_per_cyl)){ in dasd_eckd_format_device()
900 if ((private->rdc_data.no_cyl < 20) ? in dasd_eckd_format_device()
901 (fdata->start_unit % private->rdc_data.no_cyl == 0) : in dasd_eckd_format_device()
902 (fdata->start_unit % private->rdc_data.no_cyl == 0 && in dasd_eckd_format_device()
903 (fdata->start_unit / private->rdc_data.no_cyl) % in dasd_eckd_format_device()
904 (private->rdc_data.no_cyl / 20))) { in dasd_eckd_format_device()
908 fdata->start_unit / private->rdc_data.trk_per_cyl, in dasd_eckd_format_device()
1145 dasd_eckd_private_t *private = (dasd_eckd_private_t *) device->private; in dasd_eckd_cdl_cmd() local
1147 int blk_per_trk = recs_per_track (&(private->rdc_data), 0, byt_per_blk); in dasd_eckd_cdl_cmd()
1185 dasd_eckd_private_t *private = (dasd_eckd_private_t *) device->private; in dasd_eckd_build_cp_from_req() local
1188 int blk_per_trk = recs_per_track (&(private->rdc_data), 0, byt_per_blk); in dasd_eckd_build_cp_from_req()
1221 if (btrk < 2 && private->uses_cdl) { in dasd_eckd_build_cp_from_req()
1250 && private->uses_cdl) { in dasd_eckd_build_cp_from_req()
1509 if (((dasd_eckd_private_t *) device->private)->uses_cdl) { in dasd_eckd_fill_info()
1518 &((dasd_eckd_private_t *) device->private)->rdc_data, in dasd_eckd_fill_info()
1522 &((dasd_eckd_private_t *) device->private)->conf_data, in dasd_eckd_fill_info()
1642 dasd_eckd_private_t *private; in dasd_eckd_get_attrib() local
1644 private = (dasd_eckd_private_t *) device->private; in dasd_eckd_get_attrib()
1645 *attrib = private->attrib; in dasd_eckd_get_attrib()
1661 dasd_eckd_private_t *private; in dasd_eckd_set_attrib() local
1663 private = (dasd_eckd_private_t *) device->private; in dasd_eckd_set_attrib()
1664 private->attrib = *attrib; in dasd_eckd_set_attrib()
1669 private->attrib.operation, in dasd_eckd_set_attrib()
1670 private->attrib.nr_cyl); in dasd_eckd_set_attrib()