Lines Matching refs:SLMP_INFO
278 } SLMP_INFO; typedef
448 static SLMP_INFO *synclinkmp_device_list = NULL;
529 static void hdlcdev_tx_done(SLMP_INFO *info);
530 static void hdlcdev_rx(SLMP_INFO *info, char *buf, int size);
531 static int hdlcdev_init(SLMP_INFO *info);
532 static void hdlcdev_exit(SLMP_INFO *info);
537 static int get_stats(SLMP_INFO *info, struct mgsl_icount __user *user_icount);
538 static int get_params(SLMP_INFO *info, MGSL_PARAMS __user *params);
539 static int set_params(SLMP_INFO *info, MGSL_PARAMS __user *params);
540 static int get_txidle(SLMP_INFO *info, int __user *idle_mode);
541 static int set_txidle(SLMP_INFO *info, int idle_mode);
542 static int tx_enable(SLMP_INFO *info, int enable);
543 static int tx_abort(SLMP_INFO *info);
544 static int rx_enable(SLMP_INFO *info, int enable);
545 static int modem_input_wait(SLMP_INFO *info,int arg);
546 static int wait_mgsl_event(SLMP_INFO *info, int __user *mask_ptr);
552 static void add_device(SLMP_INFO *info);
554 static int claim_resources(SLMP_INFO *info);
555 static void release_resources(SLMP_INFO *info);
557 static int startup(SLMP_INFO *info);
558 static int block_til_ready(struct tty_struct *tty, struct file * filp,SLMP_INFO *info);
560 static void shutdown(SLMP_INFO *info);
561 static void program_hw(SLMP_INFO *info);
562 static void change_params(SLMP_INFO *info);
564 static bool init_adapter(SLMP_INFO *info);
565 static bool register_test(SLMP_INFO *info);
566 static bool irq_test(SLMP_INFO *info);
567 static bool loopback_test(SLMP_INFO *info);
568 static int adapter_test(SLMP_INFO *info);
569 static bool memory_test(SLMP_INFO *info);
571 static void reset_adapter(SLMP_INFO *info);
572 static void reset_port(SLMP_INFO *info);
573 static void async_mode(SLMP_INFO *info);
574 static void hdlc_mode(SLMP_INFO *info);
576 static void rx_stop(SLMP_INFO *info);
577 static void rx_start(SLMP_INFO *info);
578 static void rx_reset_buffers(SLMP_INFO *info);
579 static void rx_free_frame_buffers(SLMP_INFO *info, unsigned int first, unsigned int last);
580 static bool rx_get_frame(SLMP_INFO *info);
582 static void tx_start(SLMP_INFO *info);
583 static void tx_stop(SLMP_INFO *info);
584 static void tx_load_fifo(SLMP_INFO *info);
585 static void tx_set_idle(SLMP_INFO *info);
586 static void tx_load_dma_buffer(SLMP_INFO *info, const char *buf, unsigned int count);
588 static void get_signals(SLMP_INFO *info);
589 static void set_signals(SLMP_INFO *info);
590 static void enable_loopback(SLMP_INFO *info, int enable);
591 static void set_rate(SLMP_INFO *info, u32 data_rate);
593 static int bh_action(SLMP_INFO *info);
595 static void bh_receive(SLMP_INFO *info);
596 static void bh_transmit(SLMP_INFO *info);
597 static void bh_status(SLMP_INFO *info);
598 static void isr_timer(SLMP_INFO *info);
599 static void isr_rxint(SLMP_INFO *info);
600 static void isr_rxrdy(SLMP_INFO *info);
601 static void isr_txint(SLMP_INFO *info);
602 static void isr_txrdy(SLMP_INFO *info);
603 static void isr_rxdmaok(SLMP_INFO *info);
604 static void isr_rxdmaerror(SLMP_INFO *info);
605 static void isr_txdmaok(SLMP_INFO *info);
606 static void isr_txdmaerror(SLMP_INFO *info);
607 static void isr_io_pin(SLMP_INFO *info, u16 status);
609 static int alloc_dma_bufs(SLMP_INFO *info);
610 static void free_dma_bufs(SLMP_INFO *info);
611 static int alloc_buf_list(SLMP_INFO *info);
612 static int alloc_frame_bufs(SLMP_INFO *info, SCADESC *list, SCADESC_EX *list_ex,int count);
613 static int alloc_tmp_rx_buf(SLMP_INFO *info);
614 static void free_tmp_rx_buf(SLMP_INFO *info);
616 static void load_pci_memory(SLMP_INFO *info, char* dest, const char* src, unsigned short count);
617 static void trace_block(SLMP_INFO *info, const char* data, int count, int xmit);
621 static unsigned char read_reg(SLMP_INFO *info, unsigned char addr);
622 static void write_reg(SLMP_INFO *info, unsigned char addr, unsigned char val);
623 static u16 read_reg16(SLMP_INFO *info, unsigned char addr);
624 static void write_reg16(SLMP_INFO *info, unsigned char addr, u16 val);
625 static unsigned char read_status_reg(SLMP_INFO * info);
626 static void write_control_reg(SLMP_INFO * info);
664 static inline int sanity_check(SLMP_INFO *info, in sanity_check()
715 SLMP_INFO *info; in install()
745 SLMP_INFO *info = tty->driver_data; in open()
811 SLMP_INFO * info = tty->driver_data; in close()
845 SLMP_INFO *info = tty->driver_data; in hangup()
873 SLMP_INFO *info = tty->driver_data; in set_termios()
926 SLMP_INFO *info = tty->driver_data; in write()
1004 SLMP_INFO *info = tty->driver_data; in put_char()
1041 SLMP_INFO *info = tty->driver_data; in send_xchar()
1065 SLMP_INFO * info = tty->driver_data; in wait_until_sent()
1131 SLMP_INFO *info = tty->driver_data; in write_room()
1156 SLMP_INFO *info = tty->driver_data; in flush_chars()
1195 SLMP_INFO *info = tty->driver_data; in flush_buffer()
1217 SLMP_INFO *info = tty->driver_data; in tx_hold()
1237 SLMP_INFO *info = tty->driver_data; in tx_release()
1266 SLMP_INFO *info = tty->driver_data; in ioctl()
1324 SLMP_INFO *info = tty->driver_data; in get_icount()
1351 static inline void line_info(struct seq_file *m, SLMP_INFO *info) in line_info()
1426 SLMP_INFO *info; in synclinkmp_proc_show()
1455 SLMP_INFO *info = tty->driver_data; in chars_in_buffer()
1471 SLMP_INFO *info = tty->driver_data; in throttle()
1496 SLMP_INFO *info = tty->driver_data; in unthrottle()
1527 SLMP_INFO * info = tty->driver_data; in set_break()
1563 SLMP_INFO *info = dev_to_port(dev); in hdlcdev_attach()
1608 SLMP_INFO *info = dev_to_port(dev); in hdlcdev_xmit()
1650 SLMP_INFO *info = dev_to_port(dev); in hdlcdev_open()
1708 SLMP_INFO *info = dev_to_port(dev); in hdlcdev_close()
1742 SLMP_INFO *info = dev_to_port(dev); in hdlcdev_ioctl()
1839 SLMP_INFO *info = dev_to_port(dev); in hdlcdev_tx_timeout()
1861 static void hdlcdev_tx_done(SLMP_INFO *info) in hdlcdev_tx_done()
1875 static void hdlcdev_rx(SLMP_INFO *info, char *buf, int size) in hdlcdev_rx()
1917 static int hdlcdev_init(SLMP_INFO *info) in hdlcdev_init()
1962 static void hdlcdev_exit(SLMP_INFO *info) in hdlcdev_exit()
1975 static int bh_action(SLMP_INFO *info) in bh_action()
2008 SLMP_INFO *info = container_of(work, SLMP_INFO, task); in bh_handler()
2048 static void bh_receive(SLMP_INFO *info) in bh_receive()
2057 static void bh_transmit(SLMP_INFO *info) in bh_transmit()
2069 static void bh_status(SLMP_INFO *info) in bh_status()
2081 static void isr_timer(SLMP_INFO * info) in isr_timer()
2107 static void isr_rxint(SLMP_INFO * info) in isr_rxint()
2164 static void isr_rxrdy(SLMP_INFO * info) in isr_rxrdy()
2228 static void isr_txeom(SLMP_INFO * info, unsigned char status) in isr_txeom()
2288 static void isr_txint(SLMP_INFO * info) in isr_txint()
2316 static void isr_txrdy(SLMP_INFO * info) in isr_txrdy()
2347 static void isr_rxdmaok(SLMP_INFO * info) in isr_rxdmaok()
2364 static void isr_rxdmaerror(SLMP_INFO * info) in isr_rxdmaerror()
2382 static void isr_txdmaok(SLMP_INFO * info) in isr_txdmaok()
2400 static void isr_txdmaerror(SLMP_INFO * info) in isr_txdmaerror()
2417 static void isr_io_pin( SLMP_INFO *info, u16 status ) in isr_io_pin()
2528 SLMP_INFO *info = dev_id; in synclinkmp_interrupt()
2615 SLMP_INFO * port = info->port_array[i]; in synclinkmp_interrupt()
2645 static int startup(SLMP_INFO * info) in startup()
2683 static void shutdown(SLMP_INFO * info) in shutdown()
2722 static void program_hw(SLMP_INFO *info) in program_hw()
2758 static void change_params(SLMP_INFO *info) in change_params()
2858 static int get_stats(SLMP_INFO * info, struct mgsl_icount __user *user_icount) in get_stats()
2879 static int get_params(SLMP_INFO * info, MGSL_PARAMS __user *user_params) in get_params()
2899 static int set_params(SLMP_INFO * info, MGSL_PARAMS __user *new_params) in set_params()
2927 static int get_txidle(SLMP_INFO * info, int __user *idle_mode) in get_txidle()
2946 static int set_txidle(SLMP_INFO * info, int idle_mode) in set_txidle()
2961 static int tx_enable(SLMP_INFO * info, int enable) in tx_enable()
2984 static int tx_abort(SLMP_INFO * info) in tx_abort()
3008 static int rx_enable(SLMP_INFO * info, int enable) in rx_enable()
3030 static int wait_mgsl_event(SLMP_INFO * info, int __user *mask_ptr) in wait_mgsl_event()
3154 static int modem_input_wait(SLMP_INFO *info,int arg) in modem_input_wait()
3208 SLMP_INFO *info = tty->driver_data; in tiocmget()
3234 SLMP_INFO *info = tty->driver_data; in tiocmset()
3259 SLMP_INFO *info = container_of(port, SLMP_INFO, port); in carrier_raised()
3271 SLMP_INFO *info = container_of(port, SLMP_INFO, port); in dtr_rts()
3286 SLMP_INFO *info) in block_til_ready()
3375 static int alloc_dma_bufs(SLMP_INFO *info) in alloc_dma_bufs()
3449 static int alloc_buf_list(SLMP_INFO *info) in alloc_buf_list()
3508 static int alloc_frame_bufs(SLMP_INFO *info, SCADESC *buf_list,SCADESC_EX *buf_list_ex,int count) in alloc_frame_bufs()
3525 static void free_dma_bufs(SLMP_INFO *info) in free_dma_bufs()
3535 static int alloc_tmp_rx_buf(SLMP_INFO *info) in alloc_tmp_rx_buf()
3550 static void free_tmp_rx_buf(SLMP_INFO *info) in free_tmp_rx_buf()
3558 static int claim_resources(SLMP_INFO *info) in claim_resources()
3647 static void release_resources(SLMP_INFO *info) in release_resources()
3703 static void add_device(SLMP_INFO *info) in add_device()
3719 SLMP_INFO *current_dev = synclinkmp_device_list; in add_device()
3754 static SLMP_INFO *alloc_dev(int adapter_num, int port_num, struct pci_dev *pdev) in alloc_dev()
3756 SLMP_INFO *info; in alloc_dev()
3758 info = kzalloc(sizeof(SLMP_INFO), in alloc_dev()
3832 SLMP_INFO *port_array[SCA_MAX_PORTS]; in device_init()
3917 SLMP_INFO *info; in synclinkmp_cleanup()
3918 SLMP_INFO *tmp; in synclinkmp_cleanup()
4029 static void enable_loopback(SLMP_INFO *info, int enable) in enable_loopback()
4076 static void set_rate( SLMP_INFO *info, u32 data_rate ) in set_rate()
4122 static void rx_stop(SLMP_INFO *info) in rx_stop()
4143 static void rx_start(SLMP_INFO *info) in rx_start()
4200 static void tx_start(SLMP_INFO *info) in tx_start()
4270 static void tx_stop( SLMP_INFO *info ) in tx_stop()
4297 static void tx_load_fifo(SLMP_INFO *info) in tx_load_fifo()
4346 static void reset_port(SLMP_INFO *info) in reset_port()
4370 static void reset_adapter(SLMP_INFO *info) in reset_adapter()
4382 static void async_mode(SLMP_INFO *info) in async_mode()
4521 static void hdlc_mode(SLMP_INFO *info) in hdlc_mode()
4723 static void tx_set_idle(SLMP_INFO *info) in tx_set_idle()
4743 static void get_signals(SLMP_INFO *info) in get_signals()
4772 static void set_signals(SLMP_INFO *info) in set_signals()
4801 static void rx_reset_buffers(SLMP_INFO *info) in rx_reset_buffers()
4812 static void rx_free_frame_buffers(SLMP_INFO *info, unsigned int first, unsigned int last) in rx_free_frame_buffers()
4840 static bool rx_get_frame(SLMP_INFO *info) in rx_get_frame()
5014 static void tx_load_dma_buffer(SLMP_INFO *info, const char *buf, unsigned int count) in tx_load_dma_buffer()
5054 static bool register_test(SLMP_INFO *info) in register_test()
5093 static bool irq_test(SLMP_INFO *info) in irq_test()
5144 static bool sca_init(SLMP_INFO *info) in sca_init()
5185 static bool init_adapter(SLMP_INFO *info) in init_adapter()
5244 static bool loopback_test(SLMP_INFO *info) in loopback_test()
5309 static int adapter_test( SLMP_INFO *info ) in adapter_test()
5371 static bool memory_test(SLMP_INFO *info) in memory_test()
5423 static void load_pci_memory(SLMP_INFO *info, char* dest, const char* src, unsigned short count) in load_pci_memory()
5442 static void trace_block(SLMP_INFO *info,const char* data, int count, int xmit) in trace_block()
5479 SLMP_INFO *info = (SLMP_INFO*)context; in tx_timeout()
5507 SLMP_INFO *info = (SLMP_INFO*)context; in status_timeout()
5555 static unsigned char read_reg(SLMP_INFO * info, unsigned char Addr) in read_reg()
5560 static void write_reg(SLMP_INFO * info, unsigned char Addr, unsigned char Value) in write_reg()
5566 static u16 read_reg16(SLMP_INFO * info, unsigned char Addr) in read_reg16()
5572 static void write_reg16(SLMP_INFO * info, unsigned char Addr, u16 Value) in write_reg16()
5578 static unsigned char read_status_reg(SLMP_INFO * info) in read_status_reg()
5584 static void write_control_reg(SLMP_INFO * info) in write_control_reg()