Lines Matching refs:gsm_mux
155 struct gsm_mux *gsm;
271 struct gsm_mux { struct
299 void (*receive)(struct gsm_mux *gsm, u8 ch); argument
356 static struct gsm_mux *gsm_mux[MAX_MUX]; /* GSM muxes */ argument
455 static int gsmld_output(struct gsm_mux *gsm, u8 *data, int len);
457 static struct gsm_msg *gsm_data_alloc(struct gsm_mux *gsm, u8 addr, int len,
459 static int gsm_send_packet(struct gsm_mux *gsm, struct gsm_msg *msg);
460 static struct gsm_dlci *gsm_dlci_alloc(struct gsm_mux *gsm, int addr);
461 static void gsmld_write_trigger(struct gsm_mux *gsm);
594 const struct gsm_mux *gsm = dlci->gsm; in gsm_encode_params()
810 static int gsm_send(struct gsm_mux *gsm, int addr, int cr, int control) in gsm_send()
853 static void gsm_dlci_clear_queues(struct gsm_mux *gsm, struct gsm_dlci *dlci) in gsm_dlci_clear_queues()
885 static inline void gsm_response(struct gsm_mux *gsm, int addr, int control) in gsm_response()
899 static inline void gsm_command(struct gsm_mux *gsm, int addr, int control) in gsm_command()
920 static struct gsm_msg *gsm_data_alloc(struct gsm_mux *gsm, u8 addr, int len, in gsm_data_alloc()
943 static int gsm_send_packet(struct gsm_mux *gsm, struct gsm_msg *msg) in gsm_send_packet()
1015 static int gsm_data_kick(struct gsm_mux *gsm) in gsm_data_kick()
1095 struct gsm_mux *gsm = dlci->gsm; in __gsm_data_queue()
1177 static int gsm_dlci_data_output(struct gsm_mux *gsm, struct gsm_dlci *dlci) in gsm_dlci_data_output()
1237 static int gsm_dlci_data_output_framed(struct gsm_mux *gsm, in gsm_dlci_data_output_framed()
1307 static int gsm_dlci_modem_output(struct gsm_mux *gsm, struct gsm_dlci *dlci, in gsm_dlci_modem_output()
1368 static int gsm_dlci_data_sweep(struct gsm_mux *gsm) in gsm_dlci_data_sweep()
1452 static int gsm_control_command(struct gsm_mux *gsm, int cmd, const u8 *data, in gsm_control_command()
1480 static void gsm_control_reply(struct gsm_mux *gsm, int cmd, const u8 *data, in gsm_control_reply()
1567 static int gsm_process_negotiation(struct gsm_mux *gsm, unsigned int addr, in gsm_process_negotiation()
1680 static void gsm_control_modem(struct gsm_mux *gsm, const u8 *data, int clen) in gsm_control_modem()
1731 static void gsm_control_negotiation(struct gsm_mux *gsm, unsigned int cr, in gsm_control_negotiation()
1799 static void gsm_control_rls(struct gsm_mux *gsm, const u8 *data, int clen) in gsm_control_rls()
1853 static void gsm_control_message(struct gsm_mux *gsm, unsigned int command, in gsm_control_message()
1928 static void gsm_control_response(struct gsm_mux *gsm, unsigned int command, in gsm_control_response()
1973 struct gsm_mux *gsm = from_timer(gsm, t, ka_timer); in gsm_control_keep_alive()
2012 static void gsm_control_transmit(struct gsm_mux *gsm, struct gsm_control *ctrl) in gsm_control_transmit()
2030 struct gsm_mux *gsm = from_timer(gsm, t, t2_timer); in gsm_control_retransmit()
2063 static struct gsm_control *gsm_control_send(struct gsm_mux *gsm, in gsm_control_send()
2105 static int gsm_control_wait(struct gsm_mux *gsm, struct gsm_control *control) in gsm_control_wait()
2164 struct gsm_mux *gsm = dlci->gsm; in gsm_dlci_open()
2197 struct gsm_mux *gsm = dlci->gsm; in gsm_dlci_negotiate()
2232 struct gsm_mux *gsm = dlci->gsm; in gsm_dlci_t1()
2288 struct gsm_mux *gsm = dlci ? dlci->gsm : NULL; in gsm_dlci_begin_open()
2377 struct gsm_mux *gsm = dlci->gsm; in gsm_dlci_begin_close()
2486 struct gsm_mux *gsm = from_timer(gsm, t, kick_timer); in gsm_kick_timer()
2527 struct gsm_mux *gsm; in gsm_dlci_config()
2640 static struct gsm_dlci *gsm_dlci_alloc(struct gsm_mux *gsm, int addr) in gsm_dlci_alloc()
2755 static void gsm_queue(struct gsm_mux *gsm) in gsm_queue()
2858 static void gsm0_receive_state_check_and_fix(struct gsm_mux *gsm) in gsm0_receive_state_check_and_fix()
2884 static void gsm0_receive(struct gsm_mux *gsm, unsigned char c) in gsm0_receive()
2978 static void gsm1_receive_state_check_and_fix(struct gsm_mux *gsm) in gsm1_receive_state_check_and_fix()
3002 static void gsm1_receive(struct gsm_mux *gsm, unsigned char c) in gsm1_receive()
3106 static void gsm_error(struct gsm_mux *gsm) in gsm_error()
3122 static void gsm_cleanup_mux(struct gsm_mux *gsm, bool disc) in gsm_cleanup_mux()
3178 static int gsm_activate_mux(struct gsm_mux *gsm) in gsm_activate_mux()
3207 static void gsm_free_mux(struct gsm_mux *gsm) in gsm_free_mux()
3212 if (gsm == gsm_mux[i]) { in gsm_free_mux()
3213 gsm_mux[i] = NULL; in gsm_free_mux()
3231 struct gsm_mux *gsm = container_of(ref, struct gsm_mux, ref); in gsm_free_muxr()
3235 static inline void mux_get(struct gsm_mux *gsm) in mux_get()
3244 static inline void mux_put(struct gsm_mux *gsm) in mux_put()
3253 static inline unsigned int mux_num_to_base(struct gsm_mux *gsm) in mux_num_to_base()
3269 static struct gsm_mux *gsm_alloc_mux(void) in gsm_alloc_mux()
3272 struct gsm_mux *gsm = kzalloc(sizeof(struct gsm_mux), GFP_KERNEL); in gsm_alloc_mux()
3318 if (!gsm_mux[i]) { in gsm_alloc_mux()
3319 gsm_mux[i] = gsm; in gsm_alloc_mux()
3336 static void gsm_copy_config_values(struct gsm_mux *gsm, in gsm_copy_config_values()
3357 static int gsm_config(struct gsm_mux *gsm, struct gsm_config *c) in gsm_config()
3446 static void gsm_copy_config_ext_values(struct gsm_mux *gsm, in gsm_copy_config_ext_values()
3454 static int gsm_config_ext(struct gsm_mux *gsm, struct gsm_config_ext *ce) in gsm_config_ext()
3508 static int gsmld_output(struct gsm_mux *gsm, u8 *data, int len) in gsmld_output()
3524 static void gsmld_write_trigger(struct gsm_mux *gsm) in gsmld_write_trigger()
3541 struct gsm_mux *gsm = container_of(work, struct gsm_mux, tx_work); in gsmld_write_task()
3570 static void gsmld_attach_gsm(struct tty_struct *tty, struct gsm_mux *gsm) in gsmld_attach_gsm()
3586 static void gsmld_detach_gsm(struct tty_struct *tty, struct gsm_mux *gsm) in gsmld_detach_gsm()
3598 struct gsm_mux *gsm = tty->disc_data; in gsmld_receive_buf()
3653 struct gsm_mux *gsm = tty->disc_data; in gsmld_close()
3680 struct gsm_mux *gsm; in gsmld_open()
3721 struct gsm_mux *gsm = tty->disc_data; in gsmld_write_wakeup()
3767 struct gsm_mux *gsm = tty->disc_data; in gsmld_write()
3805 struct gsm_mux *gsm = tty->disc_data; in gsmld_poll()
3827 struct gsm_mux *gsm = tty->disc_data; in gsmld_ioctl()
4119 struct gsm_mux *gsm = dlci->gsm; in gsm_modem_upd_via_data()
4195 struct gsm_mux *gsm = dlci->gsm; in gsm_wait_modem_change()
4212 struct gsm_mux *gsm = dlci->gsm; in gsm_carrier_raised()
4253 struct gsm_mux *gsm; in gsmtty_install()
4265 if (gsm_mux[mux] == NULL) in gsmtty_install()
4269 gsm = gsm_mux[mux]; in gsmtty_install()
4555 struct gsm_mux *gsm = dlci->gsm; in gsmtty_cleanup()