Lines Matching refs:midi_devs

117 	uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc;  in uart401_open()
137 uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; in uart401_close()
147 uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; in uart401_out()
354 midi_devs[devc->my_dev] = kmalloc(sizeof(struct midi_operations), GFP_KERNEL); in probe_uart401()
355 if (!midi_devs[devc->my_dev]) { in probe_uart401()
359 memcpy(midi_devs[devc->my_dev], &uart401_operations, sizeof(struct midi_operations)); in probe_uart401()
362 midi_devs[devc->my_dev]->owner = owner; in probe_uart401()
364 midi_devs[devc->my_dev]->devc = devc; in probe_uart401()
365 midi_devs[devc->my_dev]->converter = kmalloc(sizeof(struct synth_operations), GFP_KERNEL); in probe_uart401()
366 if (!midi_devs[devc->my_dev]->converter) { in probe_uart401()
370 memcpy(midi_devs[devc->my_dev]->converter, &std_midi_synth, sizeof(struct synth_operations)); in probe_uart401()
371 strcpy(midi_devs[devc->my_dev]->info.name, name); in probe_uart401()
372 midi_devs[devc->my_dev]->converter->id = "UART401"; in probe_uart401()
373 midi_devs[devc->my_dev]->converter->midi_dev = devc->my_dev; in probe_uart401()
376 midi_devs[devc->my_dev]->converter->owner = owner; in probe_uart401()
383 kfree(midi_devs[devc->my_dev]); in probe_uart401()
402 if(n==-1 || midi_devs[n]==NULL) in unload_uart401()
407 devc = midi_devs[hw_config->slots[4]]->devc; in unload_uart401()
418 kfree(midi_devs[devc->my_dev]->converter); in unload_uart401()
419 kfree(midi_devs[devc->my_dev]); in unload_uart401()