Lines Matching refs:port_array

248 	struct _synclinkmp_info *port_array[SCA_MAX_PORTS];  member
2522 tmp = read_reg16(info->port_array[2], ISR0); in synclinkmp_interrupt()
2525 timerstatus1 = read_reg(info->port_array[2], ISR2); in synclinkmp_interrupt()
2538 if (info->port_array[i] == NULL) in synclinkmp_interrupt()
2551 isr_rxrdy(info->port_array[i]); in synclinkmp_interrupt()
2553 isr_txrdy(info->port_array[i]); in synclinkmp_interrupt()
2555 isr_rxint(info->port_array[i]); in synclinkmp_interrupt()
2557 isr_txint(info->port_array[i]); in synclinkmp_interrupt()
2560 isr_rxdmaerror(info->port_array[i]); in synclinkmp_interrupt()
2562 isr_rxdmaok(info->port_array[i]); in synclinkmp_interrupt()
2564 isr_txdmaerror(info->port_array[i]); in synclinkmp_interrupt()
2566 isr_txdmaok(info->port_array[i]); in synclinkmp_interrupt()
2570 isr_timer(info->port_array[0]); in synclinkmp_interrupt()
2572 isr_timer(info->port_array[1]); in synclinkmp_interrupt()
2574 isr_timer(info->port_array[2]); in synclinkmp_interrupt()
2576 isr_timer(info->port_array[3]); in synclinkmp_interrupt()
2580 SLMP_INFO * port = info->port_array[i]; in synclinkmp_interrupt()
3402 info->port_array[0]->last_mem_alloc = (SCA_MEM_SIZE/4) * info->port_num; in alloc_dma_bufs()
3471 info->buffer_list = info->memory_base + info->port_array[0]->last_mem_alloc; in alloc_buf_list()
3472 info->buffer_list_phys = info->port_array[0]->last_mem_alloc; in alloc_buf_list()
3473 info->port_array[0]->last_mem_alloc += BUFFERLISTSIZE; in alloc_buf_list()
3531 buf_list_ex[i].virt_addr = info->memory_base + info->port_array[0]->last_mem_alloc; in alloc_frame_bufs()
3532 phys_addr = info->port_array[0]->last_mem_alloc; in alloc_frame_bufs()
3533 info->port_array[0]->last_mem_alloc += SCABUFSIZE; in alloc_frame_bufs()
3835 SLMP_INFO *port_array[SCA_MAX_PORTS]; in device_init() local
3840 port_array[port] = alloc_dev(adapter_num,port,pdev); in device_init()
3841 if( port_array[port] == NULL ) { in device_init()
3843 kfree(port_array[port]); in device_init()
3850 memcpy(port_array[port]->port_array,port_array,sizeof(port_array)); in device_init()
3851 add_device( port_array[port] ); in device_init()
3852 spin_lock_init(&port_array[port]->lock); in device_init()
3856 if ( !claim_resources(port_array[0]) ) { in device_init()
3858 alloc_dma_bufs(port_array[0]); in device_init()
3862 port_array[port]->lock = port_array[0]->lock; in device_init()
3863 port_array[port]->irq_level = port_array[0]->irq_level; in device_init()
3864 port_array[port]->memory_base = port_array[0]->memory_base; in device_init()
3865 port_array[port]->sca_base = port_array[0]->sca_base; in device_init()
3866 port_array[port]->statctrl_base = port_array[0]->statctrl_base; in device_init()
3867 port_array[port]->lcr_base = port_array[0]->lcr_base; in device_init()
3868 alloc_dma_bufs(port_array[port]); in device_init()
3871 if ( request_irq(port_array[0]->irq_level, in device_init()
3873 port_array[0]->irq_flags, in device_init()
3874 port_array[0]->device_name, in device_init()
3875 port_array[0]) < 0 ) { in device_init()
3878 port_array[0]->device_name, in device_init()
3879 port_array[0]->irq_level ); in device_init()
3882 port_array[0]->irq_requested = 1; in device_init()
3883 adapter_test(port_array[0]); in device_init()
4054 info->port_array[0]->ctrlreg_value |= (BIT0 << (info->port_num * 2)); in enable_loopback()
4391 if (info->port_array[i]) in reset_adapter()
4392 reset_port(info->port_array[i]); in reset_adapter()
4475 info->port_array[0]->ctrlreg_value |= (BIT0 << (info->port_num * 2)); in async_mode()
4655 info->port_array[0]->ctrlreg_value |= (BIT0 << (info->port_num * 2)); in hdlc_mode()
4657 info->port_array[0]->ctrlreg_value &= ~(BIT0 << (info->port_num * 2)); in hdlc_mode()
4804 info->port_array[0]->ctrlreg_value &= ~EnableBit; in set_signals()
4806 info->port_array[0]->ctrlreg_value |= EnableBit; in set_signals()
5254 sca_init(info->port_array[0]); in init_adapter()
5255 sca_init(info->port_array[2]); in init_adapter()
5340 info->port_array[0]->port_count = 0; in adapter_test()
5342 if ( register_test(info->port_array[0]) && in adapter_test()
5343 register_test(info->port_array[1])) { in adapter_test()
5345 info->port_array[0]->port_count = 2; in adapter_test()
5347 if ( register_test(info->port_array[2]) && in adapter_test()
5348 register_test(info->port_array[3]) ) in adapter_test()
5349 info->port_array[0]->port_count += 2; in adapter_test()
5357 if ( !irq_test(info->port_array[0]) || in adapter_test()
5358 !irq_test(info->port_array[1]) || in adapter_test()
5359 (info->port_count == 4 && !irq_test(info->port_array[2])) || in adapter_test()
5360 (info->port_count == 4 && !irq_test(info->port_array[3]))) { in adapter_test()
5366 if (!loopback_test(info->port_array[0]) || in adapter_test()
5367 !loopback_test(info->port_array[1]) || in adapter_test()
5368 (info->port_count == 4 && !loopback_test(info->port_array[2])) || in adapter_test()
5369 (info->port_count == 4 && !loopback_test(info->port_array[3]))) { in adapter_test()
5379 info->port_array[0]->init_error = 0; in adapter_test()
5380 info->port_array[1]->init_error = 0; in adapter_test()
5382 info->port_array[2]->init_error = 0; in adapter_test()
5383 info->port_array[3]->init_error = 0; in adapter_test()
5610 *RegAddr = info->port_array[0]->ctrlreg_value; in write_control_reg()