Lines Matching full:private

107 	struct dasd_diag_private *private = device->private;  in mdsk_init_io()  local
108 struct dasd_diag_init_io *iib = &private->iib; in mdsk_init_io()
113 iib->dev_nr = private->dev_id.devno; in mdsk_init_io()
131 struct dasd_diag_private *private = device->private; in mdsk_term_io() local
132 struct dasd_diag_init_io *iib = &private->iib; in mdsk_term_io()
136 iib->dev_nr = private->dev_id.devno; in mdsk_term_io()
167 struct dasd_diag_private *private; in dasd_start_diag() local
178 private = device->private; in dasd_start_diag()
181 private->iob.dev_nr = private->dev_id.devno; in dasd_start_diag()
182 private->iob.key = 0; in dasd_start_diag()
183 private->iob.flags = DASD_DIAG_RWFLAG_ASYNC; in dasd_start_diag()
184 private->iob.block_count = dreq->block_count; in dasd_start_diag()
185 private->iob.interrupt_params = (addr_t) cqr; in dasd_start_diag()
186 private->iob.bio_list = dreq->bio; in dasd_start_diag()
187 private->iob.flaga = DASD_DIAG_FLAGA_DEFAULT; in dasd_start_diag()
193 rc = dia250(&private->iob, RW_BIO); in dasd_start_diag()
318 struct dasd_diag_private *private = device->private; in dasd_diag_check_device() local
327 if (private == NULL) { in dasd_diag_check_device()
328 private = kzalloc(sizeof(*private), GFP_KERNEL); in dasd_diag_check_device()
329 if (private == NULL) { in dasd_diag_check_device()
331 "Allocating memory for private DASD data " in dasd_diag_check_device()
335 ccw_device_get_id(device->cdev, &private->dev_id); in dasd_diag_check_device()
336 device->private = private; in dasd_diag_check_device()
342 device->private = NULL; in dasd_diag_check_device()
343 kfree(private); in dasd_diag_check_device()
350 rdc_data = &private->rdc_data; in dasd_diag_check_device()
351 rdc_data->dev_nr = private->dev_id.devno; in dasd_diag_check_device()
366 switch (private->rdc_data.vdev_class) { in dasd_diag_check_device()
368 private->pt_block = 1; in dasd_diag_check_device()
371 private->pt_block = 2; in dasd_diag_check_device()
376 private->rdc_data.vdev_class); in dasd_diag_check_device()
412 bio->block_number = private->pt_block + 1; in dasd_diag_check_device()
414 memset(&private->iob, 0, sizeof (struct dasd_diag_rw_io)); in dasd_diag_check_device()
415 private->iob.dev_nr = rdc_data->dev_nr; in dasd_diag_check_device()
416 private->iob.key = 0; in dasd_diag_check_device()
417 private->iob.flags = 0; /* do synchronous io */ in dasd_diag_check_device()
418 private->iob.block_count = 1; in dasd_diag_check_device()
419 private->iob.interrupt_params = 0; in dasd_diag_check_device()
420 private->iob.bio_list = bio; in dasd_diag_check_device()
421 private->iob.flaga = DASD_DIAG_FLAGA_DEFAULT; in dasd_diag_check_device()
422 rc = dia250(&private->iob, RW_BIO); in dasd_diag_check_device()
475 device->private = NULL; in dasd_diag_check_device()
476 kfree(private); in dasd_diag_check_device()
605 struct dasd_diag_private *private = device->private; in dasd_diag_fill_info() local
607 info->label_block = (unsigned int) private->pt_block; in dasd_diag_fill_info()
610 info->characteristics_size = sizeof(private->rdc_data); in dasd_diag_fill_info()
611 memcpy(info->characteristics, &private->rdc_data, in dasd_diag_fill_info()
612 sizeof(private->rdc_data)); in dasd_diag_fill_info()