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()
578 MGSLPC_INFO *info = link->priv; in mgslpc_config()
628 ((MGSLPC_INFO *)link->priv)->stop = 1; in mgslpc_detach()
631 mgslpc_remove_device((MGSLPC_INFO *)link->priv); in mgslpc_detach()
636 MGSLPC_INFO *info = link->priv; in mgslpc_suspend()
645 MGSLPC_INFO *info = link->priv; in mgslpc_resume()
653 static inline bool mgslpc_paranoia_check(MGSLPC_INFO *info, in mgslpc_paranoia_check()
686 static bool wait_command_complete(MGSLPC_INFO *info, unsigned char channel) in wait_command_complete()
698 static void issue_command(MGSLPC_INFO *info, unsigned char channel, unsigned char cmd) in issue_command()
706 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in tx_pause()
722 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in tx_release()
739 static int bh_action(MGSLPC_INFO *info) in bh_action()
770 MGSLPC_INFO *info = container_of(work, MGSLPC_INFO, task); in bh_handler()
812 static void bh_transmit(MGSLPC_INFO *info, struct tty_struct *tty) in bh_transmit()
821 static void bh_status(MGSLPC_INFO *info) in bh_status()
830 static void rx_ready_hdlc(MGSLPC_INFO *info, int eom) in rx_ready_hdlc()
893 static void rx_ready_async(MGSLPC_INFO *info, int tcd) in rx_ready_async()
961 static void tx_done(MGSLPC_INFO *info, struct tty_struct *tty) in tx_done()
998 static void tx_ready(MGSLPC_INFO *info, struct tty_struct *tty) in tx_ready()
1047 static void cts_change(MGSLPC_INFO *info, struct tty_struct *tty) in cts_change()
1082 static void dcd_change(MGSLPC_INFO *info, struct tty_struct *tty) in dcd_change()
1120 static void dsr_change(MGSLPC_INFO *info) in dsr_change()
1135 static void ri_change(MGSLPC_INFO *info) in ri_change()
1159 MGSLPC_INFO *info = dev_id; in mgslpc_isr()
1268 static int startup(MGSLPC_INFO * info, struct tty_struct *tty) in startup()
1321 static void shutdown(MGSLPC_INFO * info, struct tty_struct *tty) in shutdown()
1367 static void mgslpc_program_hw(MGSLPC_INFO *info, struct tty_struct *tty) in mgslpc_program_hw()
1401 static void mgslpc_change_params(MGSLPC_INFO *info, struct tty_struct *tty) in mgslpc_change_params()
1494 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_put_char()
1527 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_flush_chars()
1565 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_write()
1623 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_write_room()
1651 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_chars_in_buffer()
1677 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_flush_buffer()
1700 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_send_xchar()
1723 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_throttle()
1748 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_unthrottle()
1775 static int get_stats(MGSLPC_INFO * info, struct mgsl_icount __user *user_icount) in get_stats()
1792 static int get_params(MGSLPC_INFO * info, MGSL_PARAMS __user *user_params) in get_params()
1812 static int set_params(MGSLPC_INFO * info, MGSL_PARAMS __user *new_params, struct tty_struct *tty) in set_params()
1838 static int get_txidle(MGSLPC_INFO * info, int __user *idle_mode) in get_txidle()
1849 static int set_txidle(MGSLPC_INFO * info, int idle_mode) in set_txidle()
1861 static int get_interface(MGSLPC_INFO * info, int __user *if_mode) in get_interface()
1872 static int set_interface(MGSLPC_INFO * info, int if_mode) in set_interface()
1894 static int set_txenable(MGSLPC_INFO * info, int enable, struct tty_struct *tty) in set_txenable()
1913 static int tx_abort(MGSLPC_INFO * info) in tx_abort()
1933 static int set_rxenable(MGSLPC_INFO * info, int enable) in set_rxenable()
1960 static int wait_events(MGSLPC_INFO * info, int __user *mask_ptr) in wait_events()
2069 static int modem_input_wait(MGSLPC_INFO *info,int arg) in modem_input_wait()
2123 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in tiocmget()
2149 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in tiocmset()
2179 MGSLPC_INFO * info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_break()
2201 MGSLPC_INFO * info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_get_icount()
2237 MGSLPC_INFO * info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_ioctl()
2293 MGSLPC_INFO *info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_set_termios()
2340 MGSLPC_INFO * info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_close()
2373 MGSLPC_INFO * info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_wait_until_sent()
2437 MGSLPC_INFO * info = (MGSLPC_INFO *)tty->driver_data; in mgslpc_hangup()
2453 MGSLPC_INFO *info = container_of(port, MGSLPC_INFO, port); in carrier_raised()
2467 MGSLPC_INFO *info = container_of(port, MGSLPC_INFO, port); in dtr_rts()
2482 MGSLPC_INFO *info; in mgslpc_open()
2551 static inline void line_info(struct seq_file *m, MGSLPC_INFO *info) in line_info()
2619 MGSLPC_INFO *info; in mgslpc_proc_show()
2644 static int rx_alloc_buffers(MGSLPC_INFO *info) in rx_alloc_buffers()
2675 static void rx_free_buffers(MGSLPC_INFO *info) in rx_free_buffers()
2683 static int claim_resources(MGSLPC_INFO *info) in claim_resources()
2693 static void release_resources(MGSLPC_INFO *info) in release_resources()
2705 static int mgslpc_add_device(MGSLPC_INFO *info) in mgslpc_add_device()
2707 MGSLPC_INFO *current_dev = NULL; in mgslpc_add_device()
2766 static void mgslpc_remove_device(MGSLPC_INFO *remove_info) in mgslpc_remove_device()
2768 MGSLPC_INFO *info = mgslpc_device_list; in mgslpc_remove_device()
2769 MGSLPC_INFO *last = NULL; in mgslpc_remove_device()
2895 static void mgslpc_set_rate(MGSLPC_INFO *info, unsigned char channel, unsigned int rate) in mgslpc_set_rate()
2931 static void enable_auxclk(MGSLPC_INFO *info) in enable_auxclk()
3018 static void loopback_enable(MGSLPC_INFO *info) in loopback_enable()
3041 static void hdlc_mode(MGSLPC_INFO *info) in hdlc_mode()
3281 static void rx_stop(MGSLPC_INFO *info) in rx_stop()
3294 static void rx_start(MGSLPC_INFO *info) in rx_start()
3310 static void tx_start(MGSLPC_INFO *info, struct tty_struct *tty) in tx_start()
3348 static void tx_stop(MGSLPC_INFO *info) in tx_stop()
3362 static void reset_device(MGSLPC_INFO *info) in reset_device()
3412 static void async_mode(MGSLPC_INFO *info) in async_mode()
3583 static void tx_set_idle(MGSLPC_INFO *info) in tx_set_idle()
3594 static void get_signals(MGSLPC_INFO *info) in get_signals()
3616 static void set_signals(MGSLPC_INFO *info) in set_signals()
3640 static void rx_reset_buffers(MGSLPC_INFO *info) in rx_reset_buffers()
3659 static bool rx_get_frame(MGSLPC_INFO *info, struct tty_struct *tty) in rx_get_frame()
3743 static bool register_test(MGSLPC_INFO *info) in register_test()
3769 static bool irq_test(MGSLPC_INFO *info) in irq_test()
3804 static int adapter_test(MGSLPC_INFO *info) in adapter_test()
3826 static void trace_block(MGSLPC_INFO *info,const char* data, int count, int xmit) in trace_block()
3863 MGSLPC_INFO *info = (MGSLPC_INFO*)context; in tx_timeout()
3906 MGSLPC_INFO *info = dev_to_port(dev); in hdlcdev_attach()
3955 MGSLPC_INFO *info = dev_to_port(dev); in hdlcdev_xmit()
4001 MGSLPC_INFO *info = dev_to_port(dev); in hdlcdev_open()
4064 MGSLPC_INFO *info = dev_to_port(dev); in hdlcdev_close()
4099 MGSLPC_INFO *info = dev_to_port(dev); in hdlcdev_ioctl()
4200 MGSLPC_INFO *info = dev_to_port(dev); in hdlcdev_tx_timeout()
4222 static void hdlcdev_tx_done(MGSLPC_INFO *info) in hdlcdev_tx_done()
4236 static void hdlcdev_rx(MGSLPC_INFO *info, char *buf, int size) in hdlcdev_rx()
4277 static int hdlcdev_init(MGSLPC_INFO *info) in hdlcdev_init()
4323 static void hdlcdev_exit(MGSLPC_INFO *info) in hdlcdev_exit()