Lines Matching refs:discipline
374 struct tape_discipline *discipline) in tape_generic_online() argument
378 DBF_LH(6, "tape_enable_device(%p, %p)\n", device, discipline); in tape_generic_online()
388 device->discipline = discipline; in tape_generic_online()
389 if (!try_module_get(discipline->owner)) { in tape_generic_online()
393 rc = discipline->setup_device(device); in tape_generic_online()
413 device->discipline->cleanup_device(device); in tape_generic_online()
414 device->discipline = NULL; in tape_generic_online()
416 module_put(discipline->owner); in tape_generic_online()
424 device->discipline->cleanup_device(device); in tape_cleanup_device()
425 module_put(device->discipline->owner); in tape_cleanup_device()
1149 rc = device->discipline->irq(device, request, irb); in __tape_do_irq()
1211 } else if (device->discipline != NULL && in tape_open()
1212 !try_module_get(device->discipline->owner)) { in tape_open()
1232 module_put(device->discipline->owner); in tape_release()
1252 fn = device->discipline->mtop_array[mt_op]; in tape_mtop()