Lines Matching refs:discipline

272 	if (device->discipline->basic_to_known) {  in dasd_state_basic_to_known()
273 rc = device->discipline->basic_to_known(device); in dasd_state_basic_to_known()
324 if (block->base->discipline->do_analysis != NULL) in dasd_state_basic_to_ready()
325 rc = block->base->discipline->do_analysis(block); in dasd_state_basic_to_ready()
336 if (device->discipline->setup_blk_queue) in dasd_state_basic_to_ready()
337 device->discipline->setup_blk_queue(block); in dasd_state_basic_to_ready()
350 if (device->discipline->basic_to_ready) in dasd_state_basic_to_ready()
351 rc = device->discipline->basic_to_ready(device); in dasd_state_basic_to_ready()
427 if (device->discipline->online_to_ready) { in dasd_state_online_to_ready()
428 rc = device->discipline->online_to_ready(device); in dasd_state_online_to_ready()
568 device->discipline->reload(device); in do_reload_device()
620 if (device->discipline->kick_validate) in dasd_enable_device()
621 device->discipline->kick_validate(device); in dasd_enable_device()
1139 if (device->discipline->hosts_print) in dasd_hosts_show()
1140 rc = device->discipline->hosts_print(device, m); in dasd_hosts_show()
1287 if (strncmp((char *) &cqr->magic, device->discipline->ebcname, 4)) { in dasd_check_cqr()
1292 *(unsigned int *) device->discipline->name); in dasd_check_cqr()
1550 strncmp(cqr->startdev->discipline->ebcname, in dasd_handle_killed_request()
1596 if (!device || !device->discipline->is_ese) in dasd_ese_needs_format()
1598 if (!device->discipline->is_ese(device)) in dasd_ese_needs_format()
1670 if (device->discipline == dasd_diag_discipline_pointer) { in dasd_int_handler()
1694 device->discipline->ext_pool_exhaust(device, cqr); in dasd_int_handler()
1700 device->discipline->dump_sense_dbf(device, irb, "int"); in dasd_int_handler()
1703 device->discipline->dump_sense(device, cqr, irb); in dasd_int_handler()
1704 device->discipline->check_for_device_change(device, cqr, irb); in dasd_int_handler()
1712 device->discipline->check_attention(device, in dasd_int_handler()
1723 strncmp(device->discipline->ebcname, (char *) &cqr->magic, 4)) { in dasd_int_handler()
1736 device->discipline->ese_read(cqr, irb); in dasd_int_handler()
1743 fcqr = device->discipline->ese_format(device, cqr, irb); in dasd_int_handler()
1800 device->discipline->handle_hpf_error) in dasd_int_handler()
1801 device->discipline->handle_hpf_error(device, irb); in dasd_int_handler()
1822 if (device->discipline->start_IO(next) == 0) in dasd_int_handler()
1843 !device->discipline->check_for_device_change){ in dasd_generic_uc_handler()
1847 if (device->discipline->dump_sense_dbf) in dasd_generic_uc_handler()
1848 device->discipline->dump_sense_dbf(device, irb, "uc"); in dasd_generic_uc_handler()
1849 device->discipline->check_for_device_change(device, NULL, irb); in dasd_generic_uc_handler()
1990 if (device->discipline->term_IO(cqr) != 0) { in __dasd_device_check_expire()
2061 rc = device->discipline->start_IO(cqr); in __dasd_device_start_head()
2088 rc = device->discipline->pe_handler(device, tbvpm, fcsecpm); in __dasd_device_check_path_events()
2119 rc = device->discipline->term_IO(cqr); in dasd_flush_device_queue()
2287 device->discipline->handle_terminated_request(cqr); in __dasd_sleep_on_erp()
2291 erp_fn = device->discipline->erp_action(cqr); in __dasd_sleep_on_erp()
2555 rc = device->discipline->term_IO(cqr); in _dasd_term_running_cqr()
2637 rc = device->discipline->term_IO(cqr); in __dasd_cancel_req()
2721 erp_fn = device->discipline->erp_postaction(cqr); in __dasd_process_erp()
2736 status = cqr->block->base->discipline->free_cp(cqr, req); in __dasd_cleanup_cqr()
2808 base->discipline->handle_terminated_request(cqr); in __dasd_process_block_ccw_queue()
2814 erp_fn = base->discipline->erp_action(cqr); in __dasd_process_block_ccw_queue()
3109 cqr = basedev->discipline->build_cp(basedev, block, req); in do_dasd_request()
3269 if (!try_module_get(base->discipline->owner)) { in dasd_open()
3298 module_put(base->discipline->owner); in dasd_open()
3310 module_put(base->discipline->owner); in dasd_release()
3326 if (!base->discipline || in dasd_getgeo()
3327 !base->discipline->fill_geometry) { in dasd_getgeo()
3331 base->discipline->fill_geometry(base->block, geo); in dasd_getgeo()
3436 if (device->discipline) { in dasd_generic_free_discipline()
3437 if (device->discipline->uncheck_device) in dasd_generic_free_discipline()
3438 device->discipline->uncheck_device(device); in dasd_generic_free_discipline()
3439 module_put(device->discipline->owner); in dasd_generic_free_discipline()
3440 device->discipline = NULL; in dasd_generic_free_discipline()
3495 struct dasd_discipline *discipline; in dasd_generic_set_online() local
3505 discipline = base_discipline; in dasd_generic_set_online()
3528 discipline = dasd_diag_discipline_pointer; in dasd_generic_set_online()
3534 if (!try_module_get(discipline->owner)) { in dasd_generic_set_online()
3540 device->discipline = discipline; in dasd_generic_set_online()
3543 rc = discipline->check_device(device); in dasd_generic_set_online()
3546 dev_name(&cdev->dev), discipline->name, rc); in dasd_generic_set_online()
3547 module_put(discipline->owner); in dasd_generic_set_online()
3794 if (device->discipline->kick_validate) in dasd_generic_path_event()
3795 device->discipline->kick_validate(device); in dasd_generic_path_event()
3810 if (device->discipline->disable_hpf) in dasd_generic_path_event()
3811 device->discipline->disable_hpf(device); in dasd_generic_path_event()
3920 cqr->block->base->discipline->free_cp( in dasd_generic_requeue_all_requests()