Lines Matching refs:gsm_mux

156 	struct gsm_mux *gsm;
272 struct gsm_mux { struct
300 void (*receive)(struct gsm_mux *gsm, u8 ch); argument
357 static struct gsm_mux *gsm_mux[MAX_MUX]; /* GSM muxes */ argument
456 static int gsmld_output(struct gsm_mux *gsm, u8 *data, int len);
458 static struct gsm_msg *gsm_data_alloc(struct gsm_mux *gsm, u8 addr, int len,
460 static int gsm_send_packet(struct gsm_mux *gsm, struct gsm_msg *msg);
461 static struct gsm_dlci *gsm_dlci_alloc(struct gsm_mux *gsm, int addr);
462 static void gsmld_write_trigger(struct gsm_mux *gsm);
595 const struct gsm_mux *gsm = dlci->gsm; in gsm_encode_params()
811 static int gsm_send(struct gsm_mux *gsm, int addr, int cr, int control) in gsm_send()
854 static void gsm_dlci_clear_queues(struct gsm_mux *gsm, struct gsm_dlci *dlci) in gsm_dlci_clear_queues()
886 static inline void gsm_response(struct gsm_mux *gsm, int addr, int control) in gsm_response()
900 static inline void gsm_command(struct gsm_mux *gsm, int addr, int control) in gsm_command()
921 static struct gsm_msg *gsm_data_alloc(struct gsm_mux *gsm, u8 addr, int len, in gsm_data_alloc()
944 static int gsm_send_packet(struct gsm_mux *gsm, struct gsm_msg *msg) in gsm_send_packet()
1016 static int gsm_data_kick(struct gsm_mux *gsm) in gsm_data_kick()
1096 struct gsm_mux *gsm = dlci->gsm; in __gsm_data_queue()
1178 static int gsm_dlci_data_output(struct gsm_mux *gsm, struct gsm_dlci *dlci) in gsm_dlci_data_output()
1238 static int gsm_dlci_data_output_framed(struct gsm_mux *gsm, in gsm_dlci_data_output_framed()
1308 static int gsm_dlci_modem_output(struct gsm_mux *gsm, struct gsm_dlci *dlci, in gsm_dlci_modem_output()
1369 static int gsm_dlci_data_sweep(struct gsm_mux *gsm) in gsm_dlci_data_sweep()
1453 static int gsm_control_command(struct gsm_mux *gsm, int cmd, const u8 *data, in gsm_control_command()
1481 static void gsm_control_reply(struct gsm_mux *gsm, int cmd, const u8 *data, in gsm_control_reply()
1568 static int gsm_process_negotiation(struct gsm_mux *gsm, unsigned int addr, in gsm_process_negotiation()
1681 static void gsm_control_modem(struct gsm_mux *gsm, const u8 *data, int clen) in gsm_control_modem()
1732 static void gsm_control_negotiation(struct gsm_mux *gsm, unsigned int cr, in gsm_control_negotiation()
1800 static void gsm_control_rls(struct gsm_mux *gsm, const u8 *data, int clen) in gsm_control_rls()
1854 static void gsm_control_message(struct gsm_mux *gsm, unsigned int command, in gsm_control_message()
1929 static void gsm_control_response(struct gsm_mux *gsm, unsigned int command, in gsm_control_response()
1974 struct gsm_mux *gsm = from_timer(gsm, t, ka_timer); in gsm_control_keep_alive()
2013 static void gsm_control_transmit(struct gsm_mux *gsm, struct gsm_control *ctrl) in gsm_control_transmit()
2031 struct gsm_mux *gsm = from_timer(gsm, t, t2_timer); in gsm_control_retransmit()
2064 static struct gsm_control *gsm_control_send(struct gsm_mux *gsm, in gsm_control_send()
2106 static int gsm_control_wait(struct gsm_mux *gsm, struct gsm_control *control) in gsm_control_wait()
2165 struct gsm_mux *gsm = dlci->gsm; in gsm_dlci_open()
2198 struct gsm_mux *gsm = dlci->gsm; in gsm_dlci_negotiate()
2233 struct gsm_mux *gsm = dlci->gsm; in gsm_dlci_t1()
2289 struct gsm_mux *gsm = dlci ? dlci->gsm : NULL; in gsm_dlci_begin_open()
2378 struct gsm_mux *gsm = dlci->gsm; in gsm_dlci_begin_close()
2487 struct gsm_mux *gsm = from_timer(gsm, t, kick_timer); in gsm_kick_timer()
2528 struct gsm_mux *gsm; in gsm_dlci_config()
2641 static struct gsm_dlci *gsm_dlci_alloc(struct gsm_mux *gsm, int addr) in gsm_dlci_alloc()
2756 static void gsm_queue(struct gsm_mux *gsm) in gsm_queue()
2859 static void gsm0_receive_state_check_and_fix(struct gsm_mux *gsm) in gsm0_receive_state_check_and_fix()
2885 static void gsm0_receive(struct gsm_mux *gsm, u8 c) in gsm0_receive()
2979 static void gsm1_receive_state_check_and_fix(struct gsm_mux *gsm) in gsm1_receive_state_check_and_fix()
3003 static void gsm1_receive(struct gsm_mux *gsm, u8 c) in gsm1_receive()
3107 static void gsm_error(struct gsm_mux *gsm) in gsm_error()
3123 static void gsm_cleanup_mux(struct gsm_mux *gsm, bool disc) in gsm_cleanup_mux()
3179 static int gsm_activate_mux(struct gsm_mux *gsm) in gsm_activate_mux()
3208 static void gsm_free_mux(struct gsm_mux *gsm) in gsm_free_mux()
3213 if (gsm == gsm_mux[i]) { in gsm_free_mux()
3214 gsm_mux[i] = NULL; in gsm_free_mux()
3232 struct gsm_mux *gsm = container_of(ref, struct gsm_mux, ref); in gsm_free_muxr()
3236 static inline void mux_get(struct gsm_mux *gsm) in mux_get()
3245 static inline void mux_put(struct gsm_mux *gsm) in mux_put()
3254 static inline unsigned int mux_num_to_base(struct gsm_mux *gsm) in mux_num_to_base()
3270 static struct gsm_mux *gsm_alloc_mux(void) in gsm_alloc_mux()
3273 struct gsm_mux *gsm = kzalloc(sizeof(struct gsm_mux), GFP_KERNEL); in gsm_alloc_mux()
3319 if (!gsm_mux[i]) { in gsm_alloc_mux()
3320 gsm_mux[i] = gsm; in gsm_alloc_mux()
3337 static void gsm_copy_config_values(struct gsm_mux *gsm, in gsm_copy_config_values()
3358 static int gsm_config(struct gsm_mux *gsm, struct gsm_config *c) in gsm_config()
3447 static void gsm_copy_config_ext_values(struct gsm_mux *gsm, in gsm_copy_config_ext_values()
3455 static int gsm_config_ext(struct gsm_mux *gsm, struct gsm_config_ext *ce) in gsm_config_ext()
3509 static int gsmld_output(struct gsm_mux *gsm, u8 *data, int len) in gsmld_output()
3525 static void gsmld_write_trigger(struct gsm_mux *gsm) in gsmld_write_trigger()
3542 struct gsm_mux *gsm = container_of(work, struct gsm_mux, tx_work); in gsmld_write_task()
3571 static void gsmld_attach_gsm(struct tty_struct *tty, struct gsm_mux *gsm) in gsmld_attach_gsm()
3587 static void gsmld_detach_gsm(struct tty_struct *tty, struct gsm_mux *gsm) in gsmld_detach_gsm()
3599 struct gsm_mux *gsm = tty->disc_data; in gsmld_receive_buf()
3654 struct gsm_mux *gsm = tty->disc_data; in gsmld_close()
3681 struct gsm_mux *gsm; in gsmld_open()
3722 struct gsm_mux *gsm = tty->disc_data; in gsmld_write_wakeup()
3768 struct gsm_mux *gsm = tty->disc_data; in gsmld_write()
3806 struct gsm_mux *gsm = tty->disc_data; in gsmld_poll()
3828 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()