Lines Matching refs:MGSLPC_INFO

229 } MGSLPC_INFO;  typedef
336 static void irq_disable(MGSLPC_INFO *info, unsigned char channel, unsigned short mask) in irq_disable()
346 static void irq_enable(MGSLPC_INFO *info, unsigned char channel, unsigned short mask) in irq_enable()
363 static void rx_start(MGSLPC_INFO *info);
364 static void rx_stop(MGSLPC_INFO *info);
366 static void tx_start(MGSLPC_INFO *info, struct tty_struct *tty);
367 static void tx_stop(MGSLPC_INFO *info);
368 static void tx_set_idle(MGSLPC_INFO *info);
370 static void get_signals(MGSLPC_INFO *info);
371 static void set_signals(MGSLPC_INFO *info);
373 static void reset_device(MGSLPC_INFO *info);
375 static void hdlc_mode(MGSLPC_INFO *info);
376 static void async_mode(MGSLPC_INFO *info);
385 static void hdlcdev_tx_done(MGSLPC_INFO *info);
386 static void hdlcdev_rx(MGSLPC_INFO *info, char *buf, int size);
387 static int hdlcdev_init(MGSLPC_INFO *info);
388 static void hdlcdev_exit(MGSLPC_INFO *info);
391 static void trace_block(MGSLPC_INFO *info,const char* data, int count, int xmit);
393 static bool register_test(MGSLPC_INFO *info);
394 static bool irq_test(MGSLPC_INFO *info);
395 static int adapter_test(MGSLPC_INFO *info);
397 static int claim_resources(MGSLPC_INFO *info);
398 static void release_resources(MGSLPC_INFO *info);
399 static int mgslpc_add_device(MGSLPC_INFO *info);
400 static void mgslpc_remove_device(MGSLPC_INFO *info);
402 static bool rx_get_frame(MGSLPC_INFO *info, struct tty_struct *tty);
403 static void rx_reset_buffers(MGSLPC_INFO *info);
404 static int rx_alloc_buffers(MGSLPC_INFO *info);
405 static void rx_free_buffers(MGSLPC_INFO *info);
413 static void bh_transmit(MGSLPC_INFO *info, struct tty_struct *tty);
414 static void bh_status(MGSLPC_INFO *info);
422 static int get_stats(MGSLPC_INFO *info, struct mgsl_icount __user *user_icount);
423 static int get_params(MGSLPC_INFO *info, MGSL_PARAMS __user *user_params);
424 static int set_params(MGSLPC_INFO *info, MGSL_PARAMS __user *new_params, struct tty_struct *tty);
425 static int get_txidle(MGSLPC_INFO *info, int __user *idle_mode);
426 static int set_txidle(MGSLPC_INFO *info, int idle_mode);
427 static int set_txenable(MGSLPC_INFO *info, int enable, struct tty_struct *tty);
428 static int tx_abort(MGSLPC_INFO *info);
429 static int set_rxenable(MGSLPC_INFO *info, int enable);
430 static int wait_events(MGSLPC_INFO *info, int __user *mask);
432 static MGSLPC_INFO *mgslpc_device_list = NULL;
466 static void mgslpc_change_params(MGSLPC_INFO *info, struct tty_struct *tty);
516 MGSLPC_INFO *info; in mgslpc_probe()
522 info = kzalloc(sizeof(MGSLPC_INFO), GFP_KERNEL); in mgslpc_probe()
576 MGSLPC_INFO *info = link->priv; in mgslpc_config()
626 ((MGSLPC_INFO *)link->priv)->stop = 1; in mgslpc_detach()
629 mgslpc_remove_device((MGSLPC_INFO *)link->priv); in mgslpc_detach()
634 MGSLPC_INFO *info = link->priv; in mgslpc_suspend()
643 MGSLPC_INFO *info = link->priv; in mgslpc_resume()
651 static inline bool mgslpc_paranoia_check(MGSLPC_INFO *info, in mgslpc_paranoia_check()
684 static bool wait_command_complete(MGSLPC_INFO *info, unsigned char channel) in wait_command_complete()
696 static void issue_command(MGSLPC_INFO *info, unsigned char channel, unsigned char cmd) in issue_command()
704 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in tx_pause()
720 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in tx_release()
737 static int bh_action(MGSLPC_INFO *info) in bh_action()
768 MGSLPC_INFO *info = container_of(work, MGSLPC_INFO, task); in bh_handler()
810 static void bh_transmit(MGSLPC_INFO *info, struct tty_struct *tty) in bh_transmit()
819 static void bh_status(MGSLPC_INFO *info) in bh_status()
828 static void rx_ready_hdlc(MGSLPC_INFO *info, int eom) in rx_ready_hdlc()
891 static void rx_ready_async(MGSLPC_INFO *info, int tcd) in rx_ready_async()
959 static void tx_done(MGSLPC_INFO *info, struct tty_struct *tty) in tx_done()
996 static void tx_ready(MGSLPC_INFO *info, struct tty_struct *tty) in tx_ready()
1045 static void cts_change(MGSLPC_INFO *info, struct tty_struct *tty) in cts_change()
1080 static void dcd_change(MGSLPC_INFO *info, struct tty_struct *tty) in dcd_change()
1118 static void dsr_change(MGSLPC_INFO *info) in dsr_change()
1133 static void ri_change(MGSLPC_INFO *info) in ri_change()
1157 MGSLPC_INFO *info = dev_id; in mgslpc_isr()
1266 static int startup(MGSLPC_INFO * info, struct tty_struct *tty) in startup()
1319 static void shutdown(MGSLPC_INFO * info, struct tty_struct *tty) in shutdown()
1365 static void mgslpc_program_hw(MGSLPC_INFO *info, struct tty_struct *tty) in mgslpc_program_hw()
1399 static void mgslpc_change_params(MGSLPC_INFO *info, struct tty_struct *tty) in mgslpc_change_params()
1481 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_put_char()
1514 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_flush_chars()
1552 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_write()
1610 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_write_room()
1638 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_chars_in_buffer()
1664 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_flush_buffer()
1687 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_send_xchar()
1710 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_throttle()
1735 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_unthrottle()
1762 static int get_stats(MGSLPC_INFO * info, struct mgsl_icount __user *user_icount) in get_stats()
1779 static int get_params(MGSLPC_INFO * info, MGSL_PARAMS __user *user_params) in get_params()
1799 static int set_params(MGSLPC_INFO * info, MGSL_PARAMS __user *new_params, struct tty_struct *tty) in set_params()
1825 static int get_txidle(MGSLPC_INFO * info, int __user *idle_mode) in get_txidle()
1836 static int set_txidle(MGSLPC_INFO * info, int idle_mode) in set_txidle()
1848 static int get_interface(MGSLPC_INFO * info, int __user *if_mode) in get_interface()
1859 static int set_interface(MGSLPC_INFO * info, int if_mode) in set_interface()
1881 static int set_txenable(MGSLPC_INFO * info, int enable, struct tty_struct *tty) in set_txenable()
1900 static int tx_abort(MGSLPC_INFO * info) in tx_abort()
1920 static int set_rxenable(MGSLPC_INFO * info, int enable) in set_rxenable()
1947 static int wait_events(MGSLPC_INFO * info, int __user *mask_ptr) in wait_events()
2056 static int modem_input_wait(MGSLPC_INFO *info,int arg) in modem_input_wait()
2110 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in tiocmget()
2136 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in tiocmset()
2166 MGSLPC_INFO * info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_break()
2188 MGSLPC_INFO * info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_get_icount()
2224 MGSLPC_INFO * info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_ioctl()
2280 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_set_termios()
2322 MGSLPC_INFO * info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_close()
2355 MGSLPC_INFO * info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_wait_until_sent()
2419 MGSLPC_INFO * info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_hangup()
2435 MGSLPC_INFO *info = container_of(port, MGSLPC_INFO, port); in carrier_raised()
2449 MGSLPC_INFO *info = container_of(port, MGSLPC_INFO, port); in dtr_rts()
2464 MGSLPC_INFO *info; in mgslpc_open()
2531 static inline void line_info(struct seq_file *m, MGSLPC_INFO *info) in line_info()
2599 MGSLPC_INFO *info; in mgslpc_proc_show()
2611 static int rx_alloc_buffers(MGSLPC_INFO *info) in rx_alloc_buffers()
2642 static void rx_free_buffers(MGSLPC_INFO *info) in rx_free_buffers()
2650 static int claim_resources(MGSLPC_INFO *info) in claim_resources()
2660 static void release_resources(MGSLPC_INFO *info) in release_resources()
2672 static int mgslpc_add_device(MGSLPC_INFO *info) in mgslpc_add_device()
2674 MGSLPC_INFO *current_dev = NULL; in mgslpc_add_device()
2733 static void mgslpc_remove_device(MGSLPC_INFO *remove_info) in mgslpc_remove_device()
2735 MGSLPC_INFO *info = mgslpc_device_list; in mgslpc_remove_device()
2736 MGSLPC_INFO *last = NULL; in mgslpc_remove_device()
2862 static void mgslpc_set_rate(MGSLPC_INFO *info, unsigned char channel, unsigned int rate) in mgslpc_set_rate()
2898 static void enable_auxclk(MGSLPC_INFO *info) in enable_auxclk()
2985 static void loopback_enable(MGSLPC_INFO *info) in loopback_enable()
3008 static void hdlc_mode(MGSLPC_INFO *info) in hdlc_mode()
3248 static void rx_stop(MGSLPC_INFO *info) in rx_stop()
3261 static void rx_start(MGSLPC_INFO *info) in rx_start()
3277 static void tx_start(MGSLPC_INFO *info, struct tty_struct *tty) in tx_start()
3315 static void tx_stop(MGSLPC_INFO *info) in tx_stop()
3329 static void reset_device(MGSLPC_INFO *info) in reset_device()
3379 static void async_mode(MGSLPC_INFO *info) in async_mode()
3550 static void tx_set_idle(MGSLPC_INFO *info) in tx_set_idle()
3561 static void get_signals(MGSLPC_INFO *info) in get_signals()
3583 static void set_signals(MGSLPC_INFO *info) in set_signals()
3607 static void rx_reset_buffers(MGSLPC_INFO *info) in rx_reset_buffers()
3626 static bool rx_get_frame(MGSLPC_INFO *info, struct tty_struct *tty) in rx_get_frame()
3710 static bool register_test(MGSLPC_INFO *info) in register_test()
3736 static bool irq_test(MGSLPC_INFO *info) in irq_test()
3771 static int adapter_test(MGSLPC_INFO *info) in adapter_test()
3793 static void trace_block(MGSLPC_INFO *info,const char* data, int count, int xmit) in trace_block()
3830 MGSLPC_INFO *info = from_timer(info, t, tx_timer); in tx_timeout()
3873 MGSLPC_INFO *info = dev_to_port(dev); in hdlcdev_attach()
3922 MGSLPC_INFO *info = dev_to_port(dev); in hdlcdev_xmit()
3968 MGSLPC_INFO *info = dev_to_port(dev); in hdlcdev_open()
4031 MGSLPC_INFO *info = dev_to_port(dev); in hdlcdev_close()
4065 MGSLPC_INFO *info = dev_to_port(dev); in hdlcdev_wan_ioctl()
4162 MGSLPC_INFO *info = dev_to_port(dev); in hdlcdev_tx_timeout()
4184 static void hdlcdev_tx_done(MGSLPC_INFO *info) in hdlcdev_tx_done()
4198 static void hdlcdev_rx(MGSLPC_INFO *info, char *buf, int size) in hdlcdev_rx()
4238 static int hdlcdev_init(MGSLPC_INFO *info) in hdlcdev_init()
4284 static void hdlcdev_exit(MGSLPC_INFO *info) in hdlcdev_exit()