Lines Matching refs:vuart_bus_priv

873 struct vuart_bus_priv {  struct
879 } static vuart_bus_priv; argument
891 struct vuart_bus_priv *bus_priv = _private; in ps3_vuart_irq_handler()
920 vuart_bus_priv.use_count++; in ps3_vuart_bus_interrupt_get()
922 BUG_ON(vuart_bus_priv.use_count > 2); in ps3_vuart_bus_interrupt_get()
924 if (vuart_bus_priv.use_count != 1) in ps3_vuart_bus_interrupt_get()
927 BUG_ON(vuart_bus_priv.bmp); in ps3_vuart_bus_interrupt_get()
929 vuart_bus_priv.bmp = kzalloc(sizeof(struct ports_bmp), GFP_KERNEL); in ps3_vuart_bus_interrupt_get()
931 if (!vuart_bus_priv.bmp) { in ps3_vuart_bus_interrupt_get()
937 result = ps3_vuart_irq_setup(PS3_BINDING_CPU_ANY, vuart_bus_priv.bmp, in ps3_vuart_bus_interrupt_get()
938 &vuart_bus_priv.virq); in ps3_vuart_bus_interrupt_get()
947 result = request_irq(vuart_bus_priv.virq, ps3_vuart_irq_handler, in ps3_vuart_bus_interrupt_get()
948 0, "vuart", &vuart_bus_priv); in ps3_vuart_bus_interrupt_get()
960 ps3_vuart_irq_destroy(vuart_bus_priv.virq); in ps3_vuart_bus_interrupt_get()
961 vuart_bus_priv.virq = NO_IRQ; in ps3_vuart_bus_interrupt_get()
963 kfree(vuart_bus_priv.bmp); in ps3_vuart_bus_interrupt_get()
964 vuart_bus_priv.bmp = NULL; in ps3_vuart_bus_interrupt_get()
966 vuart_bus_priv.use_count--; in ps3_vuart_bus_interrupt_get()
975 vuart_bus_priv.use_count--; in ps3_vuart_bus_interrupt_put()
977 BUG_ON(vuart_bus_priv.use_count < 0); in ps3_vuart_bus_interrupt_put()
979 if (vuart_bus_priv.use_count != 0) in ps3_vuart_bus_interrupt_put()
982 free_irq(vuart_bus_priv.virq, &vuart_bus_priv); in ps3_vuart_bus_interrupt_put()
984 ps3_vuart_irq_destroy(vuart_bus_priv.virq); in ps3_vuart_bus_interrupt_put()
985 vuart_bus_priv.virq = NO_IRQ; in ps3_vuart_bus_interrupt_put()
987 kfree(vuart_bus_priv.bmp); in ps3_vuart_bus_interrupt_put()
988 vuart_bus_priv.bmp = NULL; in ps3_vuart_bus_interrupt_put()
1013 mutex_lock(&vuart_bus_priv.probe_mutex); in ps3_vuart_probe()
1020 if (vuart_bus_priv.devices[dev->port_number]) { in ps3_vuart_probe()
1027 vuart_bus_priv.devices[dev->port_number] = dev; in ps3_vuart_probe()
1073 mutex_unlock(&vuart_bus_priv.probe_mutex); in ps3_vuart_probe()
1082 vuart_bus_priv.devices[dev->port_number] = NULL; in ps3_vuart_probe()
1086 mutex_unlock(&vuart_bus_priv.probe_mutex); in ps3_vuart_probe()
1125 mutex_lock(&vuart_bus_priv.probe_mutex); in ps3_vuart_remove()
1133 mutex_unlock(&vuart_bus_priv.probe_mutex); in ps3_vuart_remove()
1151 vuart_bus_priv.devices[dev->port_number] = NULL; in ps3_vuart_remove()
1156 mutex_unlock(&vuart_bus_priv.probe_mutex); in ps3_vuart_remove()
1176 mutex_lock(&vuart_bus_priv.probe_mutex); in ps3_vuart_shutdown()
1184 mutex_unlock(&vuart_bus_priv.probe_mutex); in ps3_vuart_shutdown()
1208 mutex_unlock(&vuart_bus_priv.probe_mutex); in ps3_vuart_shutdown()
1219 mutex_init(&vuart_bus_priv.probe_mutex); in ps3_vuart_bus_init()