Lines Matching full:private
103 struct dasd_diag_private *private = device->private; in mdsk_init_io() local
104 struct dasd_diag_init_io *iib = &private->iib; in mdsk_init_io()
109 iib->dev_nr = private->dev_id.devno; in mdsk_init_io()
127 struct dasd_diag_private *private = device->private; in mdsk_term_io() local
128 struct dasd_diag_init_io *iib = &private->iib; in mdsk_term_io()
132 iib->dev_nr = private->dev_id.devno; in mdsk_term_io()
163 struct dasd_diag_private *private; in dasd_start_diag() local
174 private = device->private; in dasd_start_diag()
177 private->iob.dev_nr = private->dev_id.devno; in dasd_start_diag()
178 private->iob.key = 0; in dasd_start_diag()
179 private->iob.flags = DASD_DIAG_RWFLAG_ASYNC; in dasd_start_diag()
180 private->iob.block_count = dreq->block_count; in dasd_start_diag()
181 private->iob.interrupt_params = (addr_t) cqr; in dasd_start_diag()
182 private->iob.bio_list = dreq->bio; in dasd_start_diag()
183 private->iob.flaga = DASD_DIAG_FLAGA_DEFAULT; in dasd_start_diag()
189 rc = dia250(&private->iob, RW_BIO); in dasd_start_diag()
314 struct dasd_diag_private *private = device->private; in dasd_diag_check_device() local
323 if (private == NULL) { in dasd_diag_check_device()
324 private = kzalloc(sizeof(*private), GFP_KERNEL); in dasd_diag_check_device()
325 if (private == NULL) { in dasd_diag_check_device()
327 "Allocating memory for private DASD data " in dasd_diag_check_device()
331 ccw_device_get_id(device->cdev, &private->dev_id); in dasd_diag_check_device()
332 device->private = private; in dasd_diag_check_device()
338 device->private = NULL; in dasd_diag_check_device()
339 kfree(private); in dasd_diag_check_device()
346 rdc_data = &private->rdc_data; in dasd_diag_check_device()
347 rdc_data->dev_nr = private->dev_id.devno; in dasd_diag_check_device()
362 switch (private->rdc_data.vdev_class) { in dasd_diag_check_device()
364 private->pt_block = 1; in dasd_diag_check_device()
367 private->pt_block = 2; in dasd_diag_check_device()
372 private->rdc_data.vdev_class); in dasd_diag_check_device()
408 bio->block_number = private->pt_block + 1; in dasd_diag_check_device()
410 memset(&private->iob, 0, sizeof (struct dasd_diag_rw_io)); in dasd_diag_check_device()
411 private->iob.dev_nr = rdc_data->dev_nr; in dasd_diag_check_device()
412 private->iob.key = 0; in dasd_diag_check_device()
413 private->iob.flags = 0; /* do synchronous io */ in dasd_diag_check_device()
414 private->iob.block_count = 1; in dasd_diag_check_device()
415 private->iob.interrupt_params = 0; in dasd_diag_check_device()
416 private->iob.bio_list = bio; in dasd_diag_check_device()
417 private->iob.flaga = DASD_DIAG_FLAGA_DEFAULT; in dasd_diag_check_device()
418 rc = dia250(&private->iob, RW_BIO); in dasd_diag_check_device()
471 device->private = NULL; in dasd_diag_check_device()
472 kfree(private); in dasd_diag_check_device()
601 struct dasd_diag_private *private = device->private; in dasd_diag_fill_info() local
603 info->label_block = (unsigned int) private->pt_block; in dasd_diag_fill_info()
606 info->characteristics_size = sizeof(private->rdc_data); in dasd_diag_fill_info()
607 memcpy(info->characteristics, &private->rdc_data, in dasd_diag_fill_info()
608 sizeof(private->rdc_data)); in dasd_diag_fill_info()