Lines Matching refs:slgt_info

122 static struct slgt_info *slgt_device_list;
168 static void hdlcdev_tx_done(struct slgt_info *info);
169 static void hdlcdev_rx(struct slgt_info *info, char *buf, int size);
170 static int hdlcdev_init(struct slgt_info *info);
171 static void hdlcdev_exit(struct slgt_info *info);
240 struct slgt_info { struct
244 struct slgt_info *next_device; /* device list link */ argument
256 struct slgt_info *port_array[SLGT_MAX_PORTS]; argument
434 static __u8 rd_reg8(struct slgt_info *info, unsigned int addr);
435 static void wr_reg8(struct slgt_info *info, unsigned int addr, __u8 value);
436 static __u16 rd_reg16(struct slgt_info *info, unsigned int addr);
437 static void wr_reg16(struct slgt_info *info, unsigned int addr, __u16 value);
438 static __u32 rd_reg32(struct slgt_info *info, unsigned int addr);
439 static void wr_reg32(struct slgt_info *info, unsigned int addr, __u32 value);
441 static void msc_set_vcr(struct slgt_info *info);
443 static int startup(struct slgt_info *info);
444 static int block_til_ready(struct tty_struct *tty, struct file * filp,struct slgt_info *info);
445 static void shutdown(struct slgt_info *info);
446 static void program_hw(struct slgt_info *info);
447 static void change_params(struct slgt_info *info);
449 static int register_test(struct slgt_info *info);
450 static int irq_test(struct slgt_info *info);
451 static int loopback_test(struct slgt_info *info);
452 static int adapter_test(struct slgt_info *info);
454 static void reset_adapter(struct slgt_info *info);
455 static void reset_port(struct slgt_info *info);
456 static void async_mode(struct slgt_info *info);
457 static void sync_mode(struct slgt_info *info);
459 static void rx_stop(struct slgt_info *info);
460 static void rx_start(struct slgt_info *info);
461 static void reset_rbufs(struct slgt_info *info);
462 static void free_rbufs(struct slgt_info *info, unsigned int first, unsigned int last);
463 static void rdma_reset(struct slgt_info *info);
464 static bool rx_get_frame(struct slgt_info *info);
465 static bool rx_get_buf(struct slgt_info *info);
467 static void tx_start(struct slgt_info *info);
468 static void tx_stop(struct slgt_info *info);
469 static void tx_set_idle(struct slgt_info *info);
470 static unsigned int free_tbuf_count(struct slgt_info *info);
471 static unsigned int tbuf_bytes(struct slgt_info *info);
472 static void reset_tbufs(struct slgt_info *info);
473 static void tdma_reset(struct slgt_info *info);
474 static bool tx_load(struct slgt_info *info, const char *buf, unsigned int count);
476 static void get_signals(struct slgt_info *info);
477 static void set_signals(struct slgt_info *info);
478 static void enable_loopback(struct slgt_info *info);
479 static void set_rate(struct slgt_info *info, u32 data_rate);
481 static int bh_action(struct slgt_info *info);
483 static void bh_transmit(struct slgt_info *info);
484 static void isr_serial(struct slgt_info *info);
485 static void isr_rdma(struct slgt_info *info);
486 static void isr_txeom(struct slgt_info *info, unsigned short status);
487 static void isr_tdma(struct slgt_info *info);
489 static int alloc_dma_bufs(struct slgt_info *info);
490 static void free_dma_bufs(struct slgt_info *info);
491 static int alloc_desc(struct slgt_info *info);
492 static void free_desc(struct slgt_info *info);
493 static int alloc_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count);
494 static void free_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count);
496 static int alloc_tmp_rbuf(struct slgt_info *info);
497 static void free_tmp_rbuf(struct slgt_info *info);
505 static int get_stats(struct slgt_info *info, struct mgsl_icount __user *user_icount);
506 static int get_params(struct slgt_info *info, MGSL_PARAMS __user *params);
507 static int set_params(struct slgt_info *info, MGSL_PARAMS __user *params);
508 static int get_txidle(struct slgt_info *info, int __user *idle_mode);
509 static int set_txidle(struct slgt_info *info, int idle_mode);
510 static int tx_enable(struct slgt_info *info, int enable);
511 static int tx_abort(struct slgt_info *info);
512 static int rx_enable(struct slgt_info *info, int enable);
513 static int modem_input_wait(struct slgt_info *info,int arg);
514 static int wait_mgsl_event(struct slgt_info *info, int __user *mask_ptr);
519 static int get_interface(struct slgt_info *info, int __user *if_mode);
520 static int set_interface(struct slgt_info *info, int if_mode);
521 static int set_gpio(struct slgt_info *info, struct gpio_desc __user *gpio);
522 static int get_gpio(struct slgt_info *info, struct gpio_desc __user *gpio);
523 static int wait_gpio(struct slgt_info *info, struct gpio_desc __user *gpio);
524 static int get_xsync(struct slgt_info *info, int __user *if_mode);
525 static int set_xsync(struct slgt_info *info, int if_mode);
526 static int get_xctrl(struct slgt_info *info, int __user *if_mode);
527 static int set_xctrl(struct slgt_info *info, int if_mode);
532 static void add_device(struct slgt_info *info);
534 static int claim_resources(struct slgt_info *info);
535 static void release_resources(struct slgt_info *info);
554 static void trace_block(struct slgt_info *info, const char *data, int count, const char *label) in trace_block()
581 static void dump_tbufs(struct slgt_info *info) in dump_tbufs()
595 static void dump_rbufs(struct slgt_info *info) in dump_rbufs()
608 static inline int sanity_check(struct slgt_info *info, char *devname, const char *name) in sanity_check()
652 struct slgt_info *info; in open()
730 struct slgt_info *info = tty->driver_data; in close()
756 struct slgt_info *info = tty->driver_data; in hangup()
780 struct slgt_info *info = tty->driver_data; in set_termios()
817 static void update_tx_timer(struct slgt_info *info) in update_tx_timer()
833 struct slgt_info *info = tty->driver_data; in write()
867 struct slgt_info *info = tty->driver_data; in put_char()
887 struct slgt_info *info = tty->driver_data; in send_xchar()
904 struct slgt_info *info = tty->driver_data; in wait_until_sent()
946 struct slgt_info *info = tty->driver_data; in write_room()
958 struct slgt_info *info = tty->driver_data; in flush_chars()
979 struct slgt_info *info = tty->driver_data; in flush_buffer()
998 struct slgt_info *info = tty->driver_data; in tx_hold()
1015 struct slgt_info *info = tty->driver_data; in tx_release()
1041 struct slgt_info *info = tty->driver_data; in ioctl()
1118 struct slgt_info *info = tty->driver_data; in get_icount()
1145 static long get_params32(struct slgt_info *info, struct MGSL_PARAMS32 __user *user_params) in get_params32()
1169 static long set_params32(struct slgt_info *info, struct MGSL_PARAMS32 __user *new_params) in set_params32()
1205 struct slgt_info *info = tty->driver_data; in slgt_compat_ioctl()
1255 static inline void line_info(struct seq_file *m, struct slgt_info *info) in line_info()
1324 struct slgt_info *info; in synclink_gt_proc_show()
1354 struct slgt_info *info = tty->driver_data; in chars_in_buffer()
1368 struct slgt_info *info = tty->driver_data; in throttle()
1389 struct slgt_info *info = tty->driver_data; in unthrottle()
1415 struct slgt_info *info = tty->driver_data; in set_break()
1449 struct slgt_info *info = dev_to_port(dev); in hdlcdev_attach()
1496 struct slgt_info *info = dev_to_port(dev); in hdlcdev_xmit()
1534 struct slgt_info *info = dev_to_port(dev); in hdlcdev_open()
1594 struct slgt_info *info = dev_to_port(dev); in hdlcdev_close()
1628 struct slgt_info *info = dev_to_port(dev); in hdlcdev_ioctl()
1725 struct slgt_info *info = dev_to_port(dev); in hdlcdev_tx_timeout()
1746 static void hdlcdev_tx_done(struct slgt_info *info) in hdlcdev_tx_done()
1760 static void hdlcdev_rx(struct slgt_info *info, char *buf, int size) in hdlcdev_rx()
1800 static int hdlcdev_init(struct slgt_info *info) in hdlcdev_init()
1845 static void hdlcdev_exit(struct slgt_info *info) in hdlcdev_exit()
1857 static void rx_async(struct slgt_info *info) in rx_async()
1929 static int bh_action(struct slgt_info *info) in bh_action()
1962 struct slgt_info *info = container_of(work, struct slgt_info, task); in bh_handler()
2009 static void bh_transmit(struct slgt_info *info) in bh_transmit()
2018 static void dsr_change(struct slgt_info *info, unsigned short status) in dsr_change()
2038 static void cts_change(struct slgt_info *info, unsigned short status) in cts_change()
2073 static void dcd_change(struct slgt_info *info, unsigned short status) in dcd_change()
2110 static void ri_change(struct slgt_info *info, unsigned short status) in ri_change()
2130 static void isr_rxdata(struct slgt_info *info) in isr_rxdata()
2164 static void isr_serial(struct slgt_info *info) in isr_serial()
2221 static void isr_rdma(struct slgt_info *info) in isr_rdma()
2247 static void isr_tdma(struct slgt_info *info) in isr_tdma()
2278 static bool unsent_tbufs(struct slgt_info *info) in unsent_tbufs()
2302 static void isr_txeom(struct slgt_info *info, unsigned short status) in isr_txeom()
2352 static void isr_gpio(struct slgt_info *info, unsigned int changed, unsigned int state) in isr_gpio()
2377 struct slgt_info *info = dev_id; in slgt_interrupt()
2419 struct slgt_info *port = info->port_array[i]; in slgt_interrupt()
2437 static int startup(struct slgt_info *info) in startup()
2470 static void shutdown(struct slgt_info *info) in shutdown()
2512 static void program_hw(struct slgt_info *info) in program_hw()
2547 static void change_params(struct slgt_info *info) in change_params()
2627 static int get_stats(struct slgt_info *info, struct mgsl_icount __user *user_icount) in get_stats()
2639 static int get_params(struct slgt_info *info, MGSL_PARAMS __user *user_params) in get_params()
2647 static int set_params(struct slgt_info *info, MGSL_PARAMS __user *new_params) in set_params()
2668 static int get_txidle(struct slgt_info *info, int __user *idle_mode) in get_txidle()
2676 static int set_txidle(struct slgt_info *info, int idle_mode) in set_txidle()
2688 static int tx_enable(struct slgt_info *info, int enable) in tx_enable()
2707 static int tx_abort(struct slgt_info *info) in tx_abort()
2717 static int rx_enable(struct slgt_info *info, int enable) in rx_enable()
2767 static int wait_mgsl_event(struct slgt_info *info, int __user *mask_ptr) in wait_mgsl_event()
2881 static int get_interface(struct slgt_info *info, int __user *if_mode) in get_interface()
2889 static int set_interface(struct slgt_info *info, int if_mode) in set_interface()
2912 static int get_xsync(struct slgt_info *info, int __user *xsync) in get_xsync()
2926 static int set_xsync(struct slgt_info *info, int xsync) in set_xsync()
2938 static int get_xctrl(struct slgt_info *info, int __user *xctrl) in get_xctrl()
2963 static int set_xctrl(struct slgt_info *info, int xctrl) in set_xctrl()
2984 static int set_gpio(struct slgt_info *info, struct gpio_desc __user *user_gpio) in set_gpio()
3019 static int get_gpio(struct slgt_info *info, struct gpio_desc __user *user_gpio) in get_gpio()
3093 static int wait_gpio(struct slgt_info *info, struct gpio_desc __user *user_gpio) in wait_gpio()
3144 static int modem_input_wait(struct slgt_info *info,int arg) in modem_input_wait()
3199 struct slgt_info *info = tty->driver_data; in tiocmget()
3228 struct slgt_info *info = tty->driver_data; in tiocmset()
3251 struct slgt_info *info = container_of(port, struct slgt_info, port); in carrier_raised()
3262 struct slgt_info *info = container_of(port, struct slgt_info, port); in dtr_rts()
3278 struct slgt_info *info) in block_til_ready()
3359 static int alloc_tmp_rbuf(struct slgt_info *info) in alloc_tmp_rbuf()
3367 static void free_tmp_rbuf(struct slgt_info *info) in free_tmp_rbuf()
3376 static int alloc_desc(struct slgt_info *info) in alloc_desc()
3423 static void free_desc(struct slgt_info *info) in free_desc()
3433 static int alloc_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count) in alloc_bufs()
3444 static void free_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count) in free_bufs()
3455 static int alloc_dma_bufs(struct slgt_info *info) in alloc_dma_bufs()
3471 static void free_dma_bufs(struct slgt_info *info) in free_dma_bufs()
3481 static int claim_resources(struct slgt_info *info) in claim_resources()
3506 static void release_resources(struct slgt_info *info) in release_resources()
3527 static void add_device(struct slgt_info *info) in add_device()
3545 struct slgt_info *current_dev = slgt_device_list; in add_device()
3590 static struct slgt_info *alloc_dev(int adapter_num, int port_num, struct pci_dev *pdev) in alloc_dev()
3592 struct slgt_info *info; in alloc_dev()
3594 info = kzalloc(sizeof(struct slgt_info), GFP_KERNEL); in alloc_dev()
3636 struct slgt_info *port_array[SLGT_MAX_PORTS]; in device_init()
3742 struct slgt_info *info; in slgt_cleanup()
3743 struct slgt_info *tmp; in slgt_cleanup()
3858 static __u8 rd_reg8(struct slgt_info *info, unsigned int addr) in rd_reg8()
3864 static void wr_reg8(struct slgt_info *info, unsigned int addr, __u8 value) in wr_reg8()
3870 static __u16 rd_reg16(struct slgt_info *info, unsigned int addr) in rd_reg16()
3876 static void wr_reg16(struct slgt_info *info, unsigned int addr, __u16 value) in wr_reg16()
3882 static __u32 rd_reg32(struct slgt_info *info, unsigned int addr) in rd_reg32()
3888 static void wr_reg32(struct slgt_info *info, unsigned int addr, __u32 value) in wr_reg32()
3894 static void rdma_reset(struct slgt_info *info) in rdma_reset()
3907 static void tdma_reset(struct slgt_info *info) in tdma_reset()
3925 static void enable_loopback(struct slgt_info *info) in enable_loopback()
3952 static void set_rate(struct slgt_info *info, u32 rate) in set_rate()
3971 static void rx_stop(struct slgt_info *info) in rx_stop()
3991 static void rx_start(struct slgt_info *info) in rx_start()
4040 static void tx_start(struct slgt_info *info) in tx_start()
4078 static void tx_stop(struct slgt_info *info) in tx_stop()
4101 static void reset_port(struct slgt_info *info) in reset_port()
4115 static void reset_adapter(struct slgt_info *info) in reset_adapter()
4124 static void async_mode(struct slgt_info *info) in async_mode()
4265 static void sync_mode(struct slgt_info *info) in sync_mode()
4490 static void tx_set_idle(struct slgt_info *info) in tx_set_idle()
4532 static void get_signals(struct slgt_info *info) in get_signals()
4552 static void msc_set_vcr(struct slgt_info *info) in msc_set_vcr()
4594 static void set_signals(struct slgt_info *info) in set_signals()
4611 static void free_rbufs(struct slgt_info *info, unsigned int i, unsigned int last) in free_rbufs()
4630 static void reset_rbufs(struct slgt_info *info) in reset_rbufs()
4642 static bool rx_get_frame(struct slgt_info *info) in rx_get_frame()
4779 static bool rx_get_buf(struct slgt_info *info) in rx_get_buf()
4805 static void reset_tbufs(struct slgt_info *info) in reset_tbufs()
4818 static unsigned int free_tbuf_count(struct slgt_info *info) in free_tbuf_count()
4843 static unsigned int tbuf_bytes(struct slgt_info *info) in tbuf_bytes()
4893 static bool tx_load(struct slgt_info *info, const char *buf, unsigned int size) in tx_load()
4960 static int register_test(struct slgt_info *info) in register_test()
4982 static int irq_test(struct slgt_info *info) in irq_test()
5024 static int loopback_test_rx(struct slgt_info *info) in loopback_test_rx()
5048 static int loopback_test(struct slgt_info *info) in loopback_test()
5108 static int adapter_test(struct slgt_info *info) in adapter_test()
5128 struct slgt_info *info = (struct slgt_info*)context; in tx_timeout()
5152 struct slgt_info *info = (struct slgt_info*)context; in rx_timeout()