Lines Matching refs:slgt_info
118 static struct slgt_info *slgt_device_list;
210 struct slgt_info { struct
214 struct slgt_info *next_device; /* device list link */ argument
224 struct slgt_info *port_array[SLGT_MAX_PORTS]; argument
400 static __u8 rd_reg8(struct slgt_info *info, unsigned int addr);
401 static void wr_reg8(struct slgt_info *info, unsigned int addr, __u8 value);
402 static __u16 rd_reg16(struct slgt_info *info, unsigned int addr);
403 static void wr_reg16(struct slgt_info *info, unsigned int addr, __u16 value);
404 static __u32 rd_reg32(struct slgt_info *info, unsigned int addr);
405 static void wr_reg32(struct slgt_info *info, unsigned int addr, __u32 value);
407 static void msc_set_vcr(struct slgt_info *info);
409 static int startup(struct slgt_info *info);
410 static int block_til_ready(struct tty_struct *tty, struct file * filp,struct slgt_info *info);
411 static void shutdown(struct slgt_info *info);
412 static void program_hw(struct slgt_info *info);
413 static void change_params(struct slgt_info *info);
415 static int adapter_test(struct slgt_info *info);
417 static void reset_port(struct slgt_info *info);
418 static void async_mode(struct slgt_info *info);
419 static void sync_mode(struct slgt_info *info);
421 static void rx_stop(struct slgt_info *info);
422 static void rx_start(struct slgt_info *info);
423 static void reset_rbufs(struct slgt_info *info);
424 static void free_rbufs(struct slgt_info *info, unsigned int first, unsigned int last);
425 static bool rx_get_frame(struct slgt_info *info);
426 static bool rx_get_buf(struct slgt_info *info);
428 static void tx_start(struct slgt_info *info);
429 static void tx_stop(struct slgt_info *info);
430 static void tx_set_idle(struct slgt_info *info);
431 static unsigned int tbuf_bytes(struct slgt_info *info);
432 static void reset_tbufs(struct slgt_info *info);
433 static void tdma_reset(struct slgt_info *info);
434 static bool tx_load(struct slgt_info *info, const u8 *buf, unsigned int count);
436 static void get_gtsignals(struct slgt_info *info);
437 static void set_gtsignals(struct slgt_info *info);
438 static void set_rate(struct slgt_info *info, u32 data_rate);
440 static void bh_transmit(struct slgt_info *info);
441 static void isr_txeom(struct slgt_info *info, unsigned short status);
449 static int get_stats(struct slgt_info *info, struct mgsl_icount __user *user_icount);
450 static int get_params(struct slgt_info *info, MGSL_PARAMS __user *params);
451 static int set_params(struct slgt_info *info, MGSL_PARAMS __user *params);
452 static int get_txidle(struct slgt_info *info, int __user *idle_mode);
453 static int set_txidle(struct slgt_info *info, int idle_mode);
454 static int tx_enable(struct slgt_info *info, int enable);
455 static int tx_abort(struct slgt_info *info);
456 static int rx_enable(struct slgt_info *info, int enable);
457 static int modem_input_wait(struct slgt_info *info,int arg);
458 static int wait_mgsl_event(struct slgt_info *info, int __user *mask_ptr);
459 static int get_interface(struct slgt_info *info, int __user *if_mode);
460 static int set_interface(struct slgt_info *info, int if_mode);
461 static int set_gpio(struct slgt_info *info, struct gpio_desc __user *gpio);
462 static int get_gpio(struct slgt_info *info, struct gpio_desc __user *gpio);
463 static int wait_gpio(struct slgt_info *info, struct gpio_desc __user *gpio);
464 static int get_xsync(struct slgt_info *info, int __user *if_mode);
465 static int set_xsync(struct slgt_info *info, int if_mode);
466 static int get_xctrl(struct slgt_info *info, int __user *if_mode);
467 static int set_xctrl(struct slgt_info *info, int if_mode);
472 static void release_resources(struct slgt_info *info);
491 static void trace_block(struct slgt_info *info, const char *data, int count, const char *label) in trace_block()
518 static void dump_tbufs(struct slgt_info *info) in dump_tbufs()
532 static void dump_rbufs(struct slgt_info *info) in dump_rbufs()
545 static inline int sanity_check(struct slgt_info *info, char *devname, const char *name) in sanity_check()
585 struct slgt_info *info; in open()
653 struct slgt_info *info = tty->driver_data; in close()
679 struct slgt_info *info = tty->driver_data; in hangup()
704 struct slgt_info *info = tty->driver_data; in set_termios()
736 static void update_tx_timer(struct slgt_info *info) in update_tx_timer()
751 struct slgt_info *info = tty->driver_data; in write()
785 struct slgt_info *info = tty->driver_data; in put_char()
805 struct slgt_info *info = tty->driver_data; in send_xchar()
822 struct slgt_info *info = tty->driver_data; in wait_until_sent()
864 struct slgt_info *info = tty->driver_data; in write_room()
876 struct slgt_info *info = tty->driver_data; in flush_chars()
897 struct slgt_info *info = tty->driver_data; in flush_buffer()
916 struct slgt_info *info = tty->driver_data; in tx_hold()
933 struct slgt_info *info = tty->driver_data; in tx_release()
959 struct slgt_info *info = tty->driver_data; in ioctl()
1035 struct slgt_info *info = tty->driver_data; in get_icount()
1062 static long get_params32(struct slgt_info *info, struct MGSL_PARAMS32 __user *user_params) in get_params32()
1086 static long set_params32(struct slgt_info *info, struct MGSL_PARAMS32 __user *new_params) in set_params32()
1123 struct slgt_info *info = tty->driver_data; in slgt_compat_ioctl()
1165 static inline void line_info(struct seq_file *m, struct slgt_info *info) in line_info()
1234 struct slgt_info *info; in synclink_gt_proc_show()
1251 struct slgt_info *info = tty->driver_data; in chars_in_buffer()
1265 struct slgt_info *info = tty->driver_data; in throttle()
1286 struct slgt_info *info = tty->driver_data; in unthrottle()
1312 struct slgt_info *info = tty->driver_data; in set_break()
1346 struct slgt_info *info = dev_to_port(dev); in hdlcdev_attach()
1392 struct slgt_info *info = dev_to_port(dev); in hdlcdev_xmit()
1430 struct slgt_info *info = dev_to_port(dev); in hdlcdev_open()
1493 struct slgt_info *info = dev_to_port(dev); in hdlcdev_close()
1525 struct slgt_info *info = dev_to_port(dev); in hdlcdev_ioctl()
1619 struct slgt_info *info = dev_to_port(dev); in hdlcdev_tx_timeout()
1640 static void hdlcdev_tx_done(struct slgt_info *info) in hdlcdev_tx_done()
1654 static void hdlcdev_rx(struct slgt_info *info, char *buf, int size) in hdlcdev_rx()
1693 static int hdlcdev_init(struct slgt_info *info) in hdlcdev_init()
1740 static void hdlcdev_exit(struct slgt_info *info) in hdlcdev_exit()
1754 static void rx_async(struct slgt_info *info) in rx_async()
1824 static int bh_action(struct slgt_info *info) in bh_action()
1857 struct slgt_info *info = container_of(work, struct slgt_info, task); in bh_handler()
1902 static void bh_transmit(struct slgt_info *info) in bh_transmit()
1911 static void dsr_change(struct slgt_info *info, unsigned short status) in dsr_change()
1931 static void cts_change(struct slgt_info *info, unsigned short status) in cts_change()
1966 static void dcd_change(struct slgt_info *info, unsigned short status) in dcd_change()
2003 static void ri_change(struct slgt_info *info, unsigned short status) in ri_change()
2023 static void isr_rxdata(struct slgt_info *info) in isr_rxdata()
2057 static void isr_serial(struct slgt_info *info) in isr_serial()
2114 static void isr_rdma(struct slgt_info *info) in isr_rdma()
2140 static void isr_tdma(struct slgt_info *info) in isr_tdma()
2171 static bool unsent_tbufs(struct slgt_info *info) in unsent_tbufs()
2195 static void isr_txeom(struct slgt_info *info, unsigned short status) in isr_txeom()
2245 static void isr_gpio(struct slgt_info *info, unsigned int changed, unsigned int state) in isr_gpio()
2270 struct slgt_info *info = dev_id; in slgt_interrupt()
2312 struct slgt_info *port = info->port_array[i]; in slgt_interrupt()
2330 static int startup(struct slgt_info *info) in startup()
2363 static void shutdown(struct slgt_info *info) in shutdown()
2405 static void program_hw(struct slgt_info *info) in program_hw()
2440 static void change_params(struct slgt_info *info) in change_params()
2506 static int get_stats(struct slgt_info *info, struct mgsl_icount __user *user_icount) in get_stats()
2518 static int get_params(struct slgt_info *info, MGSL_PARAMS __user *user_params) in get_params()
2526 static int set_params(struct slgt_info *info, MGSL_PARAMS __user *new_params) in set_params()
2547 static int get_txidle(struct slgt_info *info, int __user *idle_mode) in get_txidle()
2555 static int set_txidle(struct slgt_info *info, int idle_mode) in set_txidle()
2567 static int tx_enable(struct slgt_info *info, int enable) in tx_enable()
2586 static int tx_abort(struct slgt_info *info) in tx_abort()
2596 static int rx_enable(struct slgt_info *info, int enable) in rx_enable()
2646 static int wait_mgsl_event(struct slgt_info *info, int __user *mask_ptr) in wait_mgsl_event()
2760 static int get_interface(struct slgt_info *info, int __user *if_mode) in get_interface()
2768 static int set_interface(struct slgt_info *info, int if_mode) in set_interface()
2791 static int get_xsync(struct slgt_info *info, int __user *xsync) in get_xsync()
2805 static int set_xsync(struct slgt_info *info, int xsync) in set_xsync()
2817 static int get_xctrl(struct slgt_info *info, int __user *xctrl) in get_xctrl()
2842 static int set_xctrl(struct slgt_info *info, int xctrl) in set_xctrl()
2863 static int set_gpio(struct slgt_info *info, struct gpio_desc __user *user_gpio) in set_gpio()
2898 static int get_gpio(struct slgt_info *info, struct gpio_desc __user *user_gpio) in get_gpio()
2972 static int wait_gpio(struct slgt_info *info, struct gpio_desc __user *user_gpio) in wait_gpio()
3023 static int modem_input_wait(struct slgt_info *info,int arg) in modem_input_wait()
3078 struct slgt_info *info = tty->driver_data; in tiocmget()
3107 struct slgt_info *info = tty->driver_data; in tiocmset()
3130 struct slgt_info *info = container_of(port, struct slgt_info, port); in carrier_raised()
3142 struct slgt_info *info = container_of(port, struct slgt_info, port); in dtr_rts()
3158 struct slgt_info *info) in block_til_ready()
3240 static int alloc_tmp_rbuf(struct slgt_info *info) in alloc_tmp_rbuf()
3249 static void free_tmp_rbuf(struct slgt_info *info) in free_tmp_rbuf()
3258 static int alloc_desc(struct slgt_info *info) in alloc_desc()
3304 static void free_desc(struct slgt_info *info) in free_desc()
3315 static int alloc_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count) in alloc_bufs()
3328 static void free_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count) in free_bufs()
3340 static int alloc_dma_bufs(struct slgt_info *info) in alloc_dma_bufs()
3356 static void free_dma_bufs(struct slgt_info *info) in free_dma_bufs()
3366 static int claim_resources(struct slgt_info *info) in claim_resources()
3391 static void release_resources(struct slgt_info *info) in release_resources()
3412 static void add_device(struct slgt_info *info) in add_device()
3430 struct slgt_info *current_dev = slgt_device_list; in add_device()
3475 static struct slgt_info *alloc_dev(int adapter_num, int port_num, struct pci_dev *pdev) in alloc_dev()
3477 struct slgt_info *info; in alloc_dev()
3479 info = kzalloc(sizeof(struct slgt_info), GFP_KERNEL); in alloc_dev()
3518 struct slgt_info *port_array[SLGT_MAX_PORTS]; in device_init()
3578 struct slgt_info *info = port_array[i]; in device_init()
3628 struct slgt_info *info; in slgt_cleanup()
3629 struct slgt_info *tmp; in slgt_cleanup()
3726 static inline void __iomem *calc_regaddr(struct slgt_info *info, in calc_regaddr()
3739 static __u8 rd_reg8(struct slgt_info *info, unsigned int addr) in rd_reg8()
3744 static void wr_reg8(struct slgt_info *info, unsigned int addr, __u8 value) in wr_reg8()
3749 static __u16 rd_reg16(struct slgt_info *info, unsigned int addr) in rd_reg16()
3754 static void wr_reg16(struct slgt_info *info, unsigned int addr, __u16 value) in wr_reg16()
3759 static __u32 rd_reg32(struct slgt_info *info, unsigned int addr) in rd_reg32()
3764 static void wr_reg32(struct slgt_info *info, unsigned int addr, __u32 value) in wr_reg32()
3769 static void rdma_reset(struct slgt_info *info) in rdma_reset()
3782 static void tdma_reset(struct slgt_info *info) in tdma_reset()
3800 static void enable_loopback(struct slgt_info *info) in enable_loopback()
3827 static void set_rate(struct slgt_info *info, u32 rate) in set_rate()
3846 static void rx_stop(struct slgt_info *info) in rx_stop()
3866 static void rx_start(struct slgt_info *info) in rx_start()
3915 static void tx_start(struct slgt_info *info) in tx_start()
3953 static void tx_stop(struct slgt_info *info) in tx_stop()
3976 static void reset_port(struct slgt_info *info) in reset_port()
3990 static void reset_adapter(struct slgt_info *info) in reset_adapter()
3999 static void async_mode(struct slgt_info *info) in async_mode()
4140 static void sync_mode(struct slgt_info *info) in sync_mode()
4365 static void tx_set_idle(struct slgt_info *info) in tx_set_idle()
4407 static void get_gtsignals(struct slgt_info *info) in get_gtsignals()
4427 static void msc_set_vcr(struct slgt_info *info) in msc_set_vcr()
4469 static void set_gtsignals(struct slgt_info *info) in set_gtsignals()
4486 static void free_rbufs(struct slgt_info *info, unsigned int i, unsigned int last) in free_rbufs()
4505 static void reset_rbufs(struct slgt_info *info) in reset_rbufs()
4517 static bool rx_get_frame(struct slgt_info *info) in rx_get_frame()
4655 static bool rx_get_buf(struct slgt_info *info) in rx_get_buf()
4681 static void reset_tbufs(struct slgt_info *info) in reset_tbufs()
4694 static unsigned int free_tbuf_count(struct slgt_info *info) in free_tbuf_count()
4719 static unsigned int tbuf_bytes(struct slgt_info *info) in tbuf_bytes()
4769 static bool tx_load(struct slgt_info *info, const u8 *buf, unsigned int size) in tx_load()
4836 static int register_test(struct slgt_info *info) in register_test()
4858 static int irq_test(struct slgt_info *info) in irq_test()
4900 static int loopback_test_rx(struct slgt_info *info) in loopback_test_rx()
4924 static int loopback_test(struct slgt_info *info) in loopback_test()
4984 static int adapter_test(struct slgt_info *info) in adapter_test()
5004 struct slgt_info *info = from_timer(info, t, tx_timer); in tx_timeout()
5028 struct slgt_info *info = from_timer(info, t, rx_timer); in rx_timeout()