Lines Matching refs:SLMP_INFO

301 } SLMP_INFO;  typedef
474 static SLMP_INFO *synclinkmp_device_list = NULL;
572 static void sppp_init(SLMP_INFO *info);
573 static void sppp_delete(SLMP_INFO *info);
574 static void sppp_rx_done(SLMP_INFO *info, char *buf, int size);
575 static void sppp_tx_done(SLMP_INFO *info);
587 static int get_stats(SLMP_INFO *info, struct mgsl_icount *user_icount);
588 static int get_params(SLMP_INFO *info, MGSL_PARAMS *params);
589 static int set_params(SLMP_INFO *info, MGSL_PARAMS *params);
590 static int get_txidle(SLMP_INFO *info, int*idle_mode);
591 static int set_txidle(SLMP_INFO *info, int idle_mode);
592 static int tx_enable(SLMP_INFO *info, int enable);
593 static int tx_abort(SLMP_INFO *info);
594 static int rx_enable(SLMP_INFO *info, int enable);
596 static int modem_input_wait(SLMP_INFO *info,int arg);
597 static int wait_mgsl_event(SLMP_INFO *info, int *mask_ptr);
598 static int get_modem_info(SLMP_INFO *info, unsigned int *value);
599 static int set_modem_info(SLMP_INFO *info, unsigned int cmd,unsigned int *value);
602 static void add_device(SLMP_INFO *info);
604 static int claim_resources(SLMP_INFO *info);
605 static void release_resources(SLMP_INFO *info);
607 static int startup(SLMP_INFO *info);
608 static int block_til_ready(struct tty_struct *tty, struct file * filp,SLMP_INFO *info);
609 static void shutdown(SLMP_INFO *info);
610 static void program_hw(SLMP_INFO *info);
611 static void change_params(SLMP_INFO *info);
613 static int init_adapter(SLMP_INFO *info);
614 static int register_test(SLMP_INFO *info);
615 static int irq_test(SLMP_INFO *info);
616 static int loopback_test(SLMP_INFO *info);
617 static int adapter_test(SLMP_INFO *info);
618 static int memory_test(SLMP_INFO *info);
620 static void reset_adapter(SLMP_INFO *info);
621 static void reset_port(SLMP_INFO *info);
622 static void async_mode(SLMP_INFO *info);
623 static void hdlc_mode(SLMP_INFO *info);
625 static void rx_stop(SLMP_INFO *info);
626 static void rx_start(SLMP_INFO *info);
627 static void rx_reset_buffers(SLMP_INFO *info);
628 static void rx_free_frame_buffers(SLMP_INFO *info, unsigned int first, unsigned int last);
629 static int rx_get_frame(SLMP_INFO *info);
631 static void tx_start(SLMP_INFO *info);
632 static void tx_stop(SLMP_INFO *info);
633 static void tx_load_fifo(SLMP_INFO *info);
634 static void tx_set_idle(SLMP_INFO *info);
635 static void tx_load_dma_buffer(SLMP_INFO *info, const char *buf, unsigned int count);
637 static void get_signals(SLMP_INFO *info);
638 static void set_signals(SLMP_INFO *info);
639 static void enable_loopback(SLMP_INFO *info, int enable);
640 static void set_rate(SLMP_INFO *info, u32 data_rate);
642 static int bh_action(SLMP_INFO *info);
644 static void bh_receive(SLMP_INFO *info);
645 static void bh_transmit(SLMP_INFO *info);
646 static void bh_status(SLMP_INFO *info);
647 static void isr_timer(SLMP_INFO *info);
648 static void isr_rxint(SLMP_INFO *info);
649 static void isr_rxrdy(SLMP_INFO *info);
650 static void isr_txint(SLMP_INFO *info);
651 static void isr_txrdy(SLMP_INFO *info);
652 static void isr_rxdmaok(SLMP_INFO *info);
653 static void isr_rxdmaerror(SLMP_INFO *info);
654 static void isr_txdmaok(SLMP_INFO *info);
655 static void isr_txdmaerror(SLMP_INFO *info);
656 static void isr_io_pin(SLMP_INFO *info, u16 status);
659 static int alloc_dma_bufs(SLMP_INFO *info);
660 static void free_dma_bufs(SLMP_INFO *info);
661 static int alloc_buf_list(SLMP_INFO *info);
662 static int alloc_frame_bufs(SLMP_INFO *info, SCADESC *list, SCADESC_EX *list_ex,int count);
663 static int alloc_tmp_rx_buf(SLMP_INFO *info);
664 static void free_tmp_rx_buf(SLMP_INFO *info);
666 static void load_pci_memory(SLMP_INFO *info, char* dest, const char* src, unsigned short count);
667 static void trace_block(SLMP_INFO *info, const char* data, int count, int xmit);
671 static unsigned char read_reg(SLMP_INFO *info, unsigned char addr);
672 static void write_reg(SLMP_INFO *info, unsigned char addr, unsigned char val);
673 static u16 read_reg16(SLMP_INFO *info, unsigned char addr);
674 static void write_reg16(SLMP_INFO *info, unsigned char addr, u16 val);
675 static unsigned char read_status_reg(SLMP_INFO * info);
676 static void write_control_reg(SLMP_INFO * info);
714 static inline int sanity_check(SLMP_INFO *info, in sanity_check()
767 SLMP_INFO *info; in open()
868 SLMP_INFO * info = (SLMP_INFO *)tty->driver_data; in close()
965 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in hangup()
988 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in set_termios()
1048 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in write()
1136 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in put_char()
1170 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in send_xchar()
1194 SLMP_INFO * info = (SLMP_INFO *)tty->driver_data; in wait_until_sent()
1260 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in write_room()
1285 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in flush_chars()
1324 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in flush_buffer()
1347 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in tx_hold()
1367 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in tx_release()
1397 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in ioctl()
1497 static inline int line_info(char *buf, SLMP_INFO *info) in line_info()
1578 SLMP_INFO *info; in read_proc()
1607 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in chars_in_buffer()
1623 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in throttle()
1648 SLMP_INFO *info = (SLMP_INFO *)tty->driver_data; in unthrottle()
1679 SLMP_INFO * info = (SLMP_INFO *)tty->driver_data; in set_break()
1703 static void sppp_init(SLMP_INFO *info) in sppp_init()
1743 static void sppp_delete(SLMP_INFO *info) in sppp_delete()
1753 SLMP_INFO *info = d->priv; in sppp_cb_open()
1796 SLMP_INFO *info = dev->priv; in sppp_cb_tx_timeout()
1814 SLMP_INFO *info = dev->priv; in sppp_cb_tx()
1840 SLMP_INFO *info = d->priv; in sppp_cb_close()
1860 static void sppp_rx_done(SLMP_INFO *info, char *buf, int size) in sppp_rx_done()
1883 static void sppp_tx_done(SLMP_INFO *info) in sppp_tx_done()
1891 SLMP_INFO *info = dev->priv; in sppp_cb_net_stats()
1899 SLMP_INFO *info = (SLMP_INFO *)dev->priv; in sppp_cb_ioctl()
1912 int bh_action(SLMP_INFO *info) in bh_action()
1945 SLMP_INFO *info = (SLMP_INFO*)Context; in bh_handler()
1988 void bh_receive(SLMP_INFO *info) in bh_receive()
1997 void bh_transmit(SLMP_INFO *info) in bh_transmit()
2011 void bh_status(SLMP_INFO *info) in bh_status()
2023 void isr_timer(SLMP_INFO * info) in isr_timer()
2049 void isr_rxint(SLMP_INFO * info) in isr_rxint()
2108 void isr_rxrdy(SLMP_INFO * info) in isr_rxrdy()
2192 void isr_txeom(SLMP_INFO * info, unsigned char status) in isr_txeom()
2252 void isr_txint(SLMP_INFO * info) in isr_txint()
2280 void isr_txrdy(SLMP_INFO * info) in isr_txrdy()
2311 void isr_rxdmaok(SLMP_INFO * info) in isr_rxdmaok()
2328 void isr_rxdmaerror(SLMP_INFO * info) in isr_rxdmaerror()
2346 void isr_txdmaok(SLMP_INFO * info) in isr_txdmaok()
2364 void isr_txdmaerror(SLMP_INFO * info) in isr_txdmaerror()
2381 void isr_io_pin( SLMP_INFO *info, u16 status ) in isr_io_pin()
2489 SLMP_INFO * info; in synclinkmp_interrupt()
2501 info = (SLMP_INFO *)dev_id; in synclinkmp_interrupt()
2580 SLMP_INFO * port = info->port_array[i]; in synclinkmp_interrupt()
2610 static int startup(SLMP_INFO * info) in startup()
2654 static void shutdown(SLMP_INFO * info) in shutdown()
2695 static void program_hw(SLMP_INFO *info) in program_hw()
2731 static void change_params(SLMP_INFO *info) in change_params()
2831 static int get_stats(SLMP_INFO * info, struct mgsl_icount *user_icount) in get_stats()
2850 static int get_params(SLMP_INFO * info, MGSL_PARAMS *user_params) in get_params()
2868 static int set_params(SLMP_INFO * info, MGSL_PARAMS *new_params) in set_params()
2894 static int get_txidle(SLMP_INFO * info, int*idle_mode) in get_txidle()
2913 static int set_txidle(SLMP_INFO * info, int idle_mode) in set_txidle()
2928 static int tx_enable(SLMP_INFO * info, int enable) in tx_enable()
2951 static int tx_abort(SLMP_INFO * info) in tx_abort()
2975 static int rx_enable(SLMP_INFO * info, int enable) in rx_enable()
3007 static int wait_mgsl_event(SLMP_INFO * info, int * mask_ptr) in wait_mgsl_event()
3131 static int modem_input_wait(SLMP_INFO *info,int arg) in modem_input_wait()
3183 static int get_modem_info(SLMP_INFO * info, unsigned int *value) in get_modem_info()
3214 static int set_modem_info(SLMP_INFO * info, unsigned int cmd, in set_modem_info()
3269 SLMP_INFO *info) in block_til_ready()
3392 int alloc_dma_bufs(SLMP_INFO *info) in alloc_dma_bufs()
3466 int alloc_buf_list(SLMP_INFO *info) in alloc_buf_list()
3525 int alloc_frame_bufs(SLMP_INFO *info, SCADESC *buf_list,SCADESC_EX *buf_list_ex,int count) in alloc_frame_bufs()
3542 void free_dma_bufs(SLMP_INFO *info) in free_dma_bufs()
3552 int alloc_tmp_rx_buf(SLMP_INFO *info) in alloc_tmp_rx_buf()
3560 void free_tmp_rx_buf(SLMP_INFO *info) in free_tmp_rx_buf()
3567 int claim_resources(SLMP_INFO *info) in claim_resources()
3654 void release_resources(SLMP_INFO *info) in release_resources()
3710 void add_device(SLMP_INFO *info) in add_device()
3727 SLMP_INFO *current_dev = synclinkmp_device_list; in add_device()
3758 SLMP_INFO *alloc_dev(int adapter_num, int port_num, struct pci_dev *pdev) in alloc_dev()
3760 SLMP_INFO *info; in alloc_dev()
3762 info = (SLMP_INFO *)kmalloc(sizeof(SLMP_INFO), in alloc_dev()
3769 memset(info, 0, sizeof(SLMP_INFO)); in alloc_dev()
3835 SLMP_INFO *port_array[SCA_MAX_PORTS]; in device_init()
3893 SLMP_INFO *info; in synclinkmp_init()
3995 SLMP_INFO *info; in synclinkmp_exit()
3996 SLMP_INFO *tmp; in synclinkmp_exit()
4045 void enable_loopback(SLMP_INFO *info, int enable) in enable_loopback()
4092 void set_rate( SLMP_INFO *info, u32 data_rate ) in set_rate()
4138 void rx_stop(SLMP_INFO *info) in rx_stop()
4159 void rx_start(SLMP_INFO *info) in rx_start()
4216 void tx_start(SLMP_INFO *info) in tx_start()
4286 void tx_stop( SLMP_INFO *info ) in tx_stop()
4313 void tx_load_fifo(SLMP_INFO *info) in tx_load_fifo()
4362 void reset_port(SLMP_INFO *info) in reset_port()
4386 void reset_adapter(SLMP_INFO *info) in reset_adapter()
4398 void async_mode(SLMP_INFO *info) in async_mode()
4538 void hdlc_mode(SLMP_INFO *info) in hdlc_mode()
4740 void tx_set_idle(SLMP_INFO *info) in tx_set_idle()
4760 void get_signals(SLMP_INFO *info) in get_signals()
4789 void set_signals(SLMP_INFO *info) in set_signals()
4818 void rx_reset_buffers(SLMP_INFO *info) in rx_reset_buffers()
4829 void rx_free_frame_buffers(SLMP_INFO *info, unsigned int first, unsigned int last) in rx_free_frame_buffers()
4857 int rx_get_frame(SLMP_INFO *info) in rx_get_frame()
5032 void tx_load_dma_buffer(SLMP_INFO *info, const char *buf, unsigned int count) in tx_load_dma_buffer()
5072 int register_test(SLMP_INFO *info) in register_test()
5111 int irq_test(SLMP_INFO *info) in irq_test()
5163 int sca_init(SLMP_INFO *info) in sca_init()
5204 int init_adapter(SLMP_INFO *info) in init_adapter()
5263 int loopback_test(SLMP_INFO *info) in loopback_test()
5329 int adapter_test( SLMP_INFO *info ) in adapter_test()
5391 int memory_test(SLMP_INFO *info) in memory_test()
5443 void load_pci_memory(SLMP_INFO *info, char* dest, const char* src, unsigned short count) in load_pci_memory()
5462 void trace_block(SLMP_INFO *info,const char* data, int count, int xmit) in trace_block()
5499 SLMP_INFO *info = (SLMP_INFO*)context; in tx_timeout()
5527 SLMP_INFO *info = (SLMP_INFO*)context; in status_timeout()
5578 unsigned char read_reg(SLMP_INFO * info, unsigned char Addr) in read_reg()
5583 void write_reg(SLMP_INFO * info, unsigned char Addr, unsigned char Value) in write_reg()
5589 u16 read_reg16(SLMP_INFO * info, unsigned char Addr) in read_reg16()
5595 void write_reg16(SLMP_INFO * info, unsigned char Addr, u16 Value) in write_reg16()
5601 unsigned char read_status_reg(SLMP_INFO * info) in read_status_reg()
5607 void write_control_reg(SLMP_INFO * info) in write_control_reg()