Lines Matching refs:port_array
225 struct slgt_info *port_array[SLGT_MAX_PORTS]; member
2281 if (info->port_array[i] == NULL) in slgt_interrupt()
2283 spin_lock(&info->port_array[i]->lock); in slgt_interrupt()
2285 isr_serial(info->port_array[i]); in slgt_interrupt()
2287 isr_rdma(info->port_array[i]); in slgt_interrupt()
2289 isr_tdma(info->port_array[i]); in slgt_interrupt()
2290 spin_unlock(&info->port_array[i]->lock); in slgt_interrupt()
2305 if (info->port_array[i] != NULL) in slgt_interrupt()
2306 isr_gpio(info->port_array[i], changed, state); in slgt_interrupt()
2313 struct slgt_info *port = info->port_array[i]; in slgt_interrupt()
2878 spin_lock_irqsave(&info->port_array[0]->lock, flags); in set_gpio()
2891 spin_unlock_irqrestore(&info->port_array[0]->lock, flags); in set_gpio()
2992 spin_lock_irqsave(&info->port_array[0]->lock, flags); in wait_gpio()
3004 spin_unlock_irqrestore(&info->port_array[0]->lock, flags); in wait_gpio()
3010 spin_lock_irqsave(&info->port_array[0]->lock, flags); in wait_gpio()
3017 spin_unlock_irqrestore(&info->port_array[0]->lock, flags); in wait_gpio()
3526 struct slgt_info *port_array[SLGT_MAX_PORTS]; in device_init() local
3537 port_array[i] = alloc_dev(adapter_num, i, pdev); in device_init()
3538 if (port_array[i] == NULL) { in device_init()
3540 tty_port_destroy(&port_array[i]->port); in device_init()
3541 kfree(port_array[i]); in device_init()
3549 memcpy(port_array[i]->port_array, port_array, sizeof(port_array)); in device_init()
3550 add_device(port_array[i]); in device_init()
3551 port_array[i]->port_count = port_count; in device_init()
3552 spin_lock_init(&port_array[i]->lock); in device_init()
3556 if (!claim_resources(port_array[0])) { in device_init()
3558 alloc_dma_bufs(port_array[0]); in device_init()
3562 port_array[i]->irq_level = port_array[0]->irq_level; in device_init()
3563 port_array[i]->reg_addr = port_array[0]->reg_addr; in device_init()
3564 alloc_dma_bufs(port_array[i]); in device_init()
3567 if (request_irq(port_array[0]->irq_level, in device_init()
3569 port_array[0]->irq_flags, in device_init()
3570 port_array[0]->device_name, in device_init()
3571 port_array[0]) < 0) { in device_init()
3573 port_array[0]->device_name, in device_init()
3574 port_array[0]->irq_level)); in device_init()
3576 port_array[0]->irq_requested = true; in device_init()
3577 adapter_test(port_array[0]); in device_init()
3579 port_array[i]->init_error = port_array[0]->init_error; in device_init()
3580 port_array[i]->gpio_present = port_array[0]->gpio_present; in device_init()
3586 struct slgt_info *info = port_array[i]; in device_init()
4012 if (info->port_array[i]) in reset_adapter()
4013 reset_port(info->port_array[i]); in reset_adapter()