Lines Matching refs:midi_devs

121 	uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc;  in uart401_open()
141 uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; in uart401_close()
151 uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; in uart401_out()
355 midi_devs[devc->my_dev] = kmalloc(sizeof(struct midi_operations), GFP_KERNEL); in probe_uart401()
356 if (!midi_devs[devc->my_dev]) { in probe_uart401()
360 memcpy(midi_devs[devc->my_dev], &uart401_operations, sizeof(struct midi_operations)); in probe_uart401()
363 midi_devs[devc->my_dev]->owner = owner; in probe_uart401()
365 midi_devs[devc->my_dev]->devc = devc; in probe_uart401()
366 midi_devs[devc->my_dev]->converter = kmalloc(sizeof(struct synth_operations), GFP_KERNEL); in probe_uart401()
367 if (!midi_devs[devc->my_dev]->converter) { in probe_uart401()
371 memcpy(midi_devs[devc->my_dev]->converter, &std_midi_synth, sizeof(struct synth_operations)); in probe_uart401()
372 strcpy(midi_devs[devc->my_dev]->info.name, name); in probe_uart401()
373 midi_devs[devc->my_dev]->converter->id = "UART401"; in probe_uart401()
374 midi_devs[devc->my_dev]->converter->midi_dev = devc->my_dev; in probe_uart401()
377 midi_devs[devc->my_dev]->converter->owner = owner; in probe_uart401()
384 kfree(midi_devs[devc->my_dev]); in probe_uart401()
403 if(n==-1 || midi_devs[n]==NULL) in unload_uart401()
408 devc = midi_devs[hw_config->slots[4]]->devc; in unload_uart401()
419 kfree(midi_devs[devc->my_dev]->converter); in unload_uart401()
420 kfree(midi_devs[devc->my_dev]); in unload_uart401()