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()
802 SLMP_INFO * info = tty->driver_data; in close()
836 SLMP_INFO *info = tty->driver_data; in hangup()
864 SLMP_INFO *info = tty->driver_data; in set_termios()
917 SLMP_INFO *info = tty->driver_data; in write()
995 SLMP_INFO *info = tty->driver_data; in put_char()
1032 SLMP_INFO *info = tty->driver_data; in send_xchar()
1056 SLMP_INFO * info = tty->driver_data; in wait_until_sent()
1122 SLMP_INFO *info = tty->driver_data; in write_room()
1147 SLMP_INFO *info = tty->driver_data; in flush_chars()
1186 SLMP_INFO *info = tty->driver_data; in flush_buffer()
1208 SLMP_INFO *info = tty->driver_data; in tx_hold()
1228 SLMP_INFO *info = tty->driver_data; in tx_release()
1257 SLMP_INFO *info = tty->driver_data; in ioctl()
1315 SLMP_INFO *info = tty->driver_data; in get_icount()
1342 static inline void line_info(struct seq_file *m, SLMP_INFO *info) in line_info()
1417 SLMP_INFO *info; in synclinkmp_proc_show()
1446 SLMP_INFO *info = tty->driver_data; in chars_in_buffer()
1462 SLMP_INFO *info = tty->driver_data; in throttle()
1487 SLMP_INFO *info = tty->driver_data; in unthrottle()
1518 SLMP_INFO * info = tty->driver_data; in set_break()
1554 SLMP_INFO *info = dev_to_port(dev); in hdlcdev_attach()
1599 SLMP_INFO *info = dev_to_port(dev); in hdlcdev_xmit()
1641 SLMP_INFO *info = dev_to_port(dev); in hdlcdev_open()
1700 SLMP_INFO *info = dev_to_port(dev); in hdlcdev_close()
1734 SLMP_INFO *info = dev_to_port(dev); in hdlcdev_ioctl()
1831 SLMP_INFO *info = dev_to_port(dev); in hdlcdev_tx_timeout()
1853 static void hdlcdev_tx_done(SLMP_INFO *info) in hdlcdev_tx_done()
1867 static void hdlcdev_rx(SLMP_INFO *info, char *buf, int size) in hdlcdev_rx()
1909 static int hdlcdev_init(SLMP_INFO *info) in hdlcdev_init()
1956 static void hdlcdev_exit(SLMP_INFO *info) in hdlcdev_exit()
1969 static int bh_action(SLMP_INFO *info) in bh_action()
2002 SLMP_INFO *info = container_of(work, SLMP_INFO, task); in bh_handler()
2042 static void bh_receive(SLMP_INFO *info) in bh_receive()
2051 static void bh_transmit(SLMP_INFO *info) in bh_transmit()
2063 static void bh_status(SLMP_INFO *info) in bh_status()
2075 static void isr_timer(SLMP_INFO * info) in isr_timer()
2101 static void isr_rxint(SLMP_INFO * info) in isr_rxint()
2158 static void isr_rxrdy(SLMP_INFO * info) in isr_rxrdy()
2222 static void isr_txeom(SLMP_INFO * info, unsigned char status) in isr_txeom()
2282 static void isr_txint(SLMP_INFO * info) in isr_txint()
2310 static void isr_txrdy(SLMP_INFO * info) in isr_txrdy()
2341 static void isr_rxdmaok(SLMP_INFO * info) in isr_rxdmaok()
2358 static void isr_rxdmaerror(SLMP_INFO * info) in isr_rxdmaerror()
2376 static void isr_txdmaok(SLMP_INFO * info) in isr_txdmaok()
2394 static void isr_txdmaerror(SLMP_INFO * info) in isr_txdmaerror()
2411 static void isr_io_pin( SLMP_INFO *info, u16 status ) in isr_io_pin()
2522 SLMP_INFO *info = dev_id; in synclinkmp_interrupt()
2609 SLMP_INFO * port = info->port_array[i]; in synclinkmp_interrupt()
2639 static int startup(SLMP_INFO * info) in startup()
2677 static void shutdown(SLMP_INFO * info) in shutdown()
2716 static void program_hw(SLMP_INFO *info) in program_hw()
2752 static void change_params(SLMP_INFO *info) in change_params()
2852 static int get_stats(SLMP_INFO * info, struct mgsl_icount __user *user_icount) in get_stats()
2873 static int get_params(SLMP_INFO * info, MGSL_PARAMS __user *user_params) in get_params()
2893 static int set_params(SLMP_INFO * info, MGSL_PARAMS __user *new_params) in set_params()
2921 static int get_txidle(SLMP_INFO * info, int __user *idle_mode) in get_txidle()
2940 static int set_txidle(SLMP_INFO * info, int idle_mode) in set_txidle()
2955 static int tx_enable(SLMP_INFO * info, int enable) in tx_enable()
2978 static int tx_abort(SLMP_INFO * info) in tx_abort()
3002 static int rx_enable(SLMP_INFO * info, int enable) in rx_enable()
3024 static int wait_mgsl_event(SLMP_INFO * info, int __user *mask_ptr) in wait_mgsl_event()
3148 static int modem_input_wait(SLMP_INFO *info,int arg) in modem_input_wait()
3202 SLMP_INFO *info = tty->driver_data; in tiocmget()
3228 SLMP_INFO *info = tty->driver_data; in tiocmset()
3253 SLMP_INFO *info = container_of(port, SLMP_INFO, port); in carrier_raised()
3265 SLMP_INFO *info = container_of(port, SLMP_INFO, port); in dtr_rts()
3280 SLMP_INFO *info) in block_til_ready()
3368 static int alloc_dma_bufs(SLMP_INFO *info) in alloc_dma_bufs()
3442 static int alloc_buf_list(SLMP_INFO *info) in alloc_buf_list()
3501 static int alloc_frame_bufs(SLMP_INFO *info, SCADESC *buf_list,SCADESC_EX *buf_list_ex,int count) in alloc_frame_bufs()
3518 static void free_dma_bufs(SLMP_INFO *info) in free_dma_bufs()
3528 static int alloc_tmp_rx_buf(SLMP_INFO *info) in alloc_tmp_rx_buf()
3543 static void free_tmp_rx_buf(SLMP_INFO *info) in free_tmp_rx_buf()
3551 static int claim_resources(SLMP_INFO *info) in claim_resources()
3640 static void release_resources(SLMP_INFO *info) in release_resources()
3696 static void add_device(SLMP_INFO *info) in add_device()
3712 SLMP_INFO *current_dev = synclinkmp_device_list; in add_device()
3747 static SLMP_INFO *alloc_dev(int adapter_num, int port_num, struct pci_dev *pdev) in alloc_dev()
3749 SLMP_INFO *info; in alloc_dev()
3751 info = kzalloc(sizeof(SLMP_INFO), in alloc_dev()
3825 SLMP_INFO *port_array[SCA_MAX_PORTS]; in device_init()
3910 SLMP_INFO *info; in synclinkmp_cleanup()
3911 SLMP_INFO *tmp; in synclinkmp_cleanup()
4023 static void enable_loopback(SLMP_INFO *info, int enable) in enable_loopback()
4070 static void set_rate( SLMP_INFO *info, u32 data_rate ) in set_rate()
4116 static void rx_stop(SLMP_INFO *info) in rx_stop()
4137 static void rx_start(SLMP_INFO *info) in rx_start()
4194 static void tx_start(SLMP_INFO *info) in tx_start()
4264 static void tx_stop( SLMP_INFO *info ) in tx_stop()
4291 static void tx_load_fifo(SLMP_INFO *info) in tx_load_fifo()
4340 static void reset_port(SLMP_INFO *info) in reset_port()
4364 static void reset_adapter(SLMP_INFO *info) in reset_adapter()
4376 static void async_mode(SLMP_INFO *info) in async_mode()
4515 static void hdlc_mode(SLMP_INFO *info) in hdlc_mode()
4717 static void tx_set_idle(SLMP_INFO *info) in tx_set_idle()
4737 static void get_signals(SLMP_INFO *info) in get_signals()
4766 static void set_signals(SLMP_INFO *info) in set_signals()
4795 static void rx_reset_buffers(SLMP_INFO *info) in rx_reset_buffers()
4806 static void rx_free_frame_buffers(SLMP_INFO *info, unsigned int first, unsigned int last) in rx_free_frame_buffers()
4834 static bool rx_get_frame(SLMP_INFO *info) in rx_get_frame()
5008 static void tx_load_dma_buffer(SLMP_INFO *info, const char *buf, unsigned int count) in tx_load_dma_buffer()
5048 static bool register_test(SLMP_INFO *info) in register_test()
5087 static bool irq_test(SLMP_INFO *info) in irq_test()
5138 static bool sca_init(SLMP_INFO *info) in sca_init()
5179 static bool init_adapter(SLMP_INFO *info) in init_adapter()
5238 static bool loopback_test(SLMP_INFO *info) in loopback_test()
5303 static int adapter_test( SLMP_INFO *info ) in adapter_test()
5365 static bool memory_test(SLMP_INFO *info) in memory_test()
5417 static void load_pci_memory(SLMP_INFO *info, char* dest, const char* src, unsigned short count) in load_pci_memory()
5436 static void trace_block(SLMP_INFO *info,const char* data, int count, int xmit) in trace_block()
5473 SLMP_INFO *info = (SLMP_INFO*)context; in tx_timeout()
5501 SLMP_INFO *info = (SLMP_INFO*)context; in status_timeout()
5549 static unsigned char read_reg(SLMP_INFO * info, unsigned char Addr) in read_reg()
5554 static void write_reg(SLMP_INFO * info, unsigned char Addr, unsigned char Value) in write_reg()
5560 static u16 read_reg16(SLMP_INFO * info, unsigned char Addr) in read_reg16()
5566 static void write_reg16(SLMP_INFO * info, unsigned char Addr, u16 Value) in write_reg16()
5572 static unsigned char read_status_reg(SLMP_INFO * info) in read_status_reg()
5578 static void write_control_reg(SLMP_INFO * info) in write_control_reg()