Lines Matching refs:if_id

44 static void ipc_mux_session_free(struct iosm_mux *ipc_mux, int if_id)  in ipc_mux_session_free()  argument
48 if_entry = &ipc_mux->session[if_id]; in ipc_mux_session_free()
55 ipc_mux_session_open_send(struct iosm_mux *ipc_mux, int if_id) in ipc_mux_session_open_send() argument
71 if (ipc_mux_dl_acb_send_cmds(ipc_mux, MUX_CMD_OPEN_SESSION, if_id, 0, in ipc_mux_session_open_send()
76 if_id); in ipc_mux_session_open_send()
83 "if_id %d,session open failed,response=%d", if_id, in ipc_mux_session_open_send()
96 int if_id; in ipc_mux_session_open() local
99 if_id = le32_to_cpu(session_open->if_id); in ipc_mux_session_open()
100 if (if_id < 0 || if_id >= ipc_mux->nr_sessions) { in ipc_mux_session_open()
101 dev_err(ipc_mux->dev, "invalid interface id=%d", if_id); in ipc_mux_session_open()
108 open_session_resp = ipc_mux_session_open_send(ipc_mux, if_id); in ipc_mux_session_open()
110 ipc_mux_session_free(ipc_mux, if_id); in ipc_mux_session_open()
111 session_open->if_id = cpu_to_le32(-1); in ipc_mux_session_open()
116 skb_queue_head_init(&ipc_mux->session[if_id].ul_list); in ipc_mux_session_open()
118 ipc_mux->session[if_id].dl_head_pad_len = IPC_MEM_DL_ETH_OFFSET; in ipc_mux_session_open()
119 ipc_mux->session[if_id].ul_head_pad_len = in ipc_mux_session_open()
121 ipc_mux->session[if_id].wwan = ipc_mux->wwan; in ipc_mux_session_open()
124 ipc_mux->session[if_id].flow_ctl_en_cnt = 0; in ipc_mux_session_open()
125 ipc_mux->session[if_id].flow_ctl_dis_cnt = 0; in ipc_mux_session_open()
126 ipc_mux->session[if_id].ul_flow_credits = 0; in ipc_mux_session_open()
127 ipc_mux->session[if_id].net_tx_stop = false; in ipc_mux_session_open()
128 ipc_mux->session[if_id].flow_ctl_mask = 0; in ipc_mux_session_open()
131 session_open->if_id = cpu_to_le32(if_id); in ipc_mux_session_open()
137 static void ipc_mux_session_reset(struct iosm_mux *ipc_mux, int if_id) in ipc_mux_session_reset() argument
140 ipc_mux_session_free(ipc_mux, if_id); in ipc_mux_session_reset()
143 skb_queue_purge(&ipc_mux->session[if_id].ul_list); in ipc_mux_session_reset()
149 int if_id; in ipc_mux_session_close() local
152 if_id = le32_to_cpu(msg->if_id); in ipc_mux_session_close()
154 if (if_id < 0 || if_id >= ipc_mux->nr_sessions) { in ipc_mux_session_close()
155 dev_err(ipc_mux->dev, "invalid session id %d", if_id); in ipc_mux_session_close()
162 if (ipc_mux_dl_acb_send_cmds(ipc_mux, MUX_CMD_CLOSE_SESSION, if_id, 0, in ipc_mux_session_close()
165 if_id); in ipc_mux_session_close()
168 ipc_mux->session[if_id].flow_ctl_en_cnt = 0; in ipc_mux_session_close()
169 ipc_mux->session[if_id].flow_ctl_dis_cnt = 0; in ipc_mux_session_close()
170 ipc_mux->session[if_id].flow_ctl_mask = 0; in ipc_mux_session_close()
172 ipc_mux_session_reset(ipc_mux, if_id); in ipc_mux_session_close()
374 ipc_mux_netif_tx_flowctrl(session, session->if_id, true); in ipc_mux_stop_netif_for_all_sessions()
406 session_open->if_id = cpu_to_le32(session_nr); in ipc_mux_open_session()
420 session_close->if_id = cpu_to_le32(session_nr); in ipc_mux_close_session()