Lines Matching refs:if_id
32 int if_id; member
56 int if_id = priv->if_id; in ipc_wwan_link_open() local
59 if (if_id < IP_MUX_SESSION_START || in ipc_wwan_link_open()
60 if_id >= ARRAY_SIZE(ipc_wwan->sub_netlist)) in ipc_wwan_link_open()
66 priv->ch_id = ipc_imem_sys_wwan_open(ipc_wwan->ipc_imem, if_id); in ipc_wwan_link_open()
71 if_id); in ipc_wwan_link_open()
80 priv->ch_id, priv->if_id); in ipc_wwan_link_open()
96 ipc_imem_sys_wwan_close(priv->ipc_wwan->ipc_imem, priv->if_id, in ipc_wwan_link_stop()
111 int if_id = priv->if_id; in ipc_wwan_link_transmit() local
117 if (if_id < IP_MUX_SESSION_START || in ipc_wwan_link_transmit()
118 if_id >= ARRAY_SIZE(ipc_wwan->sub_netlist)) in ipc_wwan_link_transmit()
123 if_id, priv->ch_id, skb); in ipc_wwan_link_transmit()
141 if (if_id) in ipc_wwan_link_transmit()
142 dev_dbg(ipc_wwan->dev, "skb dropped. IF_ID: %d, ret: %d", if_id, in ipc_wwan_link_transmit()
176 u32 if_id, struct netlink_ext_ack *extack) in ipc_wwan_newlink() argument
182 if (if_id < IP_MUX_SESSION_START || in ipc_wwan_newlink()
183 if_id >= ARRAY_SIZE(ipc_wwan->sub_netlist)) in ipc_wwan_newlink()
187 priv->if_id = if_id; in ipc_wwan_newlink()
192 if (rcu_access_pointer(ipc_wwan->sub_netlist[if_id])) { in ipc_wwan_newlink()
201 rcu_assign_pointer(ipc_wwan->sub_netlist[if_id], priv); in ipc_wwan_newlink()
218 int if_id = priv->if_id; in ipc_wwan_dellink() local
220 if (WARN_ON(if_id < IP_MUX_SESSION_START || in ipc_wwan_dellink()
221 if_id >= ARRAY_SIZE(ipc_wwan->sub_netlist))) in ipc_wwan_dellink()
226 if (WARN_ON(rcu_access_pointer(ipc_wwan->sub_netlist[if_id]) != priv)) in ipc_wwan_dellink()
229 RCU_INIT_POINTER(ipc_wwan->sub_netlist[if_id], NULL); in ipc_wwan_dellink()
245 bool dss, int if_id) in ipc_wwan_receive() argument
260 if (if_id < IP_MUX_SESSION_START || in ipc_wwan_receive()
261 if_id > IP_MUX_SESSION_END) { in ipc_wwan_receive()
267 priv = rcu_dereference(ipc_wwan->sub_netlist[if_id]); in ipc_wwan_receive()
286 void ipc_wwan_tx_flowctrl(struct iosm_wwan *ipc_wwan, int if_id, bool on) in ipc_wwan_tx_flowctrl() argument
293 priv = rcu_dereference(ipc_wwan->sub_netlist[if_id]); in ipc_wwan_tx_flowctrl()
305 if_id); in ipc_wwan_tx_flowctrl()