/linux-6.6.21/drivers/net/wwan/iosm/ |
D | iosm_ipc_wwan.c | 31 int if_id; member 53 int if_id = priv->if_id; in ipc_wwan_link_open() local 55 if (if_id < IP_MUX_SESSION_START || in ipc_wwan_link_open() 56 if_id >= ARRAY_SIZE(ipc_wwan->sub_netlist)) in ipc_wwan_link_open() 60 priv->ch_id = ipc_imem_sys_wwan_open(ipc_wwan->ipc_imem, if_id); in ipc_wwan_link_open() 65 if_id); in ipc_wwan_link_open() 73 priv->ch_id, priv->if_id); in ipc_wwan_link_open() 85 ipc_imem_sys_wwan_close(priv->ipc_wwan->ipc_imem, priv->if_id, in ipc_wwan_link_stop() 99 int if_id = priv->if_id; in ipc_wwan_link_transmit() local 105 if (if_id < IP_MUX_SESSION_START || in ipc_wwan_link_transmit() [all …]
|
D | iosm_ipc_mux.c | 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_MEM_MUX_IP_SESSION_ENTRIES) { in ipc_mux_session_open() 101 dev_err(ipc_mux->dev, "invalid interface id=%d", if_id); in ipc_mux_session_open() [all …]
|
D | iosm_ipc_mux_codec.c | 85 cmdh->if_id = acb->if_id; in ipc_mux_acb_add_cmd() 109 cmdh->if_id = acb->if_id; in ipc_mux_lite_add_cmd() 145 int ipc_mux_dl_acb_send_cmds(struct iosm_mux *ipc_mux, u32 cmd_type, u8 if_id, in ipc_mux_dl_acb_send_cmds() argument 153 acb->if_id = if_id; in ipc_mux_dl_acb_send_cmds() 188 __le32 command_type, u8 if_id, in ipc_mux_dl_cmdresps_decode_process() argument 208 if_id, le32_to_cpu(transaction_id)); in ipc_mux_dl_cmdresps_decode_process() 232 __le32 command_type, u8 if_id, in ipc_mux_dl_cmds_decode_process() argument 239 if_id, le32_to_cpu(command_type)); in ipc_mux_dl_cmds_decode_process() 245 if (if_id >= IPC_MEM_MUX_IP_SESSION_ENTRIES) { in ipc_mux_dl_cmds_decode_process() 247 if_id); in ipc_mux_dl_cmds_decode_process() [all …]
|
D | iosm_ipc_mux_codec.h | 103 u8 if_id; member 160 u8 if_id; member 185 u8 if_id; member 209 u8 if_id; member 237 u8 if_id; member 278 int ipc_mux_dl_acb_send_cmds(struct iosm_mux *ipc_mux, u32 cmd_type, u8 if_id, 301 int ipc_mux_ul_trigger_encode(struct iosm_mux *ipc_mux, int if_id,
|
D | iosm_ipc_imem_ops.h | 66 int ipc_imem_sys_wwan_open(struct iosm_imem *ipc_imem, int if_id); 75 void ipc_imem_sys_wwan_close(struct iosm_imem *ipc_imem, int if_id, 87 int ipc_imem_sys_wwan_transmit(struct iosm_imem *ipc_imem, int if_id,
|
D | iosm_ipc_mux.h | 74 __le32 if_id; member 80 __le32 if_id; member 187 int if_id; /* i/f id for session open message.*/ member 247 u8 if_id; member 303 int if_id; /* Session id. */ member
|
D | iosm_ipc_imem_ops.c | 16 int ipc_imem_sys_wwan_open(struct iosm_imem *ipc_imem, int if_id) in ipc_imem_sys_wwan_open() argument 19 ipc_imem_phase_get_string(ipc_imem->phase), if_id); in ipc_imem_sys_wwan_open() 23 dev_err(ipc_imem->dev, "net:%d : refused phase %s", if_id, in ipc_imem_sys_wwan_open() 28 return ipc_mux_open_session(ipc_imem->mux, if_id); in ipc_imem_sys_wwan_open() 32 void ipc_imem_sys_wwan_close(struct iosm_imem *ipc_imem, int if_id, in ipc_imem_sys_wwan_close() argument 35 if (ipc_imem->mux && if_id >= IP_MUX_SESSION_START && in ipc_imem_sys_wwan_close() 36 if_id <= IP_MUX_SESSION_END) in ipc_imem_sys_wwan_close() 37 ipc_mux_close_session(ipc_imem->mux, if_id); in ipc_imem_sys_wwan_close() 58 int if_id, int channel_id, struct sk_buff *skb) in ipc_imem_sys_wwan_transmit() argument 74 ret = ipc_mux_ul_trigger_encode(ipc_imem->mux, if_id, skb); in ipc_imem_sys_wwan_transmit()
|
D | iosm_ipc_wwan.h | 35 bool dss, int if_id);
|
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/ |
D | dpsw.c | 343 int dpsw_if_set_link_cfg(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, in dpsw_if_set_link_cfg() argument 354 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_set_link_cfg() 373 u16 if_id, struct dpsw_link_state *state) in dpsw_if_get_link_state() argument 385 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_get_link_state() 411 int dpsw_if_set_tci(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, in dpsw_if_set_tci() argument 423 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_set_tci() 443 int dpsw_if_get_tci(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, in dpsw_if_get_tci() argument 456 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_get_tci() 485 int dpsw_if_set_stp(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, in dpsw_if_set_stp() argument 496 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_set_stp() [all …]
|
D | dpsw.h | 269 int dpsw_if_set_link_cfg(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, 285 u16 if_id, struct dpsw_link_state *state); 306 int dpsw_if_set_tci(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, 309 int dpsw_if_get_tci(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, 339 int dpsw_if_set_stp(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, 388 u16 if_id, enum dpsw_counter type, u64 *counter); 390 int dpsw_if_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id); 392 int dpsw_if_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id); 420 u16 if_id, struct dpsw_if_attr *attr); 423 u16 if_id, u16 frame_length); [all …]
|
D | dpsw-cmd.h | 234 __le16 if_id; member 240 __le16 if_id; member 254 __le16 if_id; member 264 __le16 if_id; member 275 __le16 if_id; member 301 __le16 if_id; member 307 __le16 if_id; member 317 __le16 if_id; member 347 __le64 if_id; member 356 __le64 if_id; member [all …]
|
D | dpaa2-switch-flower.c | 380 dpsw_act->if_id = dpaa2_switch_get_index(ethsw, cls_act->dev); in dpaa2_switch_tc_parse_action_acl() 587 u16 if_id, vlan; in dpaa2_switch_cls_flower_replace_mirror() local 599 if_id = dpaa2_switch_get_index(ethsw, cls_act->dev); in dpaa2_switch_cls_flower_replace_mirror() 605 if (mirror_port_enabled && ethsw->mirror_port != if_id) { in dpaa2_switch_cls_flower_replace_mirror() 638 return dpaa2_switch_block_add_mirror(block, mirror_entry, if_id, in dpaa2_switch_cls_flower_replace_mirror() 741 u16 if_id; in dpaa2_switch_cls_matchall_replace_mirror() local 752 if_id = dpaa2_switch_get_index(ethsw, cls_act->dev); in dpaa2_switch_cls_matchall_replace_mirror() 758 if (mirror_port_enabled && ethsw->mirror_port != if_id) { in dpaa2_switch_cls_matchall_replace_mirror() 784 return dpaa2_switch_block_add_mirror(block, mirror_entry, if_id, in dpaa2_switch_cls_matchall_replace_mirror()
|
/linux-6.6.21/net/xfrm/ |
D | xfrm_interface_bpf.c | 26 u32 if_id; member 51 to->if_id = info->if_id; in bpf_skb_get_xfrm_info() 86 info->if_id = from->if_id; in bpf_skb_set_xfrm_info()
|
D | xfrm_interface_core.c | 102 info->if_id = nla_get_u32(tb[LWT_XFRM_IF_ID]); in xfrmi_build_state() 116 if (nla_put_u32(skb, LWT_XFRM_IF_ID, info->if_id) || in xfrmi_fill_encap_info() 149 static u32 xfrmi_hash(u32 if_id) in xfrmi_hash() argument 151 return hash_32(if_id, XFRMI_HASH_BITS); in xfrmi_hash() 159 for_each_xfrmi_rcu(xfrmn->xfrmi[xfrmi_hash(x->if_id)], xi) { in xfrmi_lookup() 160 if (x->if_id == xi->p.if_id && in xfrmi_lookup() 209 res->if_id = xfrm_input_state(skb)->if_id; in xfrmi_decode_session() 211 res->if_id = xi->p.if_id; in xfrmi_decode_session() 217 struct xfrm_if __rcu **xip = &xfrmn->xfrmi[xfrmi_hash(xi->p.if_id)]; in xfrmi_link() 228 for (xip = &xfrmn->xfrmi[xfrmi_hash(xi->p.if_id)]; in xfrmi_unlink() [all …]
|
D | xfrm_policy.c | 116 u32 if_id; member 175 u32 if_id); 179 u8 type, u16 family, u8 dir, u32 if_id); 704 .if_id = pol->if_id, in xfrm_policy_inexact_alloc_bin() 1460 return jhash_3words(a, k->if_id, net_hash_mix(read_pnet(&k->net)), in xfrm_pol_bin_key() 1493 return b->k.if_id ^ key->if_id; in xfrm_pol_bin_cmp() 1513 pol->if_id == policy->if_id && in xfrm_policy_insert_inexact_list() 1548 pol->if_id == policy->if_id && in xfrm_policy_insert_list() 1626 u32 if_id, u8 type, int dir, struct xfrm_selector *sel, in __xfrm_policy_bysel_ctx() argument 1636 pol->if_id == if_id && in __xfrm_policy_bysel_ctx() [all …]
|
D | xfrm_state.c | 1140 unsigned short family, u32 if_id) in xfrm_state_find() argument 1181 x->if_id == if_id && in xfrm_state_find() 1215 x->if_id == if_id && in xfrm_state_find() 1257 x->if_id = if_id; in xfrm_state_find() 1362 xfrm_stateonly_find(struct net *net, u32 mark, u32 if_id, in xfrm_stateonly_find() argument 1375 x->if_id == if_id && in xfrm_stateonly_find() 1466 u32 if_id = xnew->if_id; in __xfrm_state_bump_genids() local 1472 x->if_id == if_id && in __xfrm_state_bump_genids() 1495 u32 reqid, u32 if_id, u8 proto, in __find_acq_core() argument 1550 x->if_id = if_id; in __find_acq_core() [all …]
|
D | xfrm_user.c | 735 x->if_id = nla_get_u32(attrs[XFRMA_IF_ID]); in xfrm_state_construct() 1175 if (x->if_id) { in copy_to_user_state_extra() 1176 ret = nla_put_u32(skb, XFRMA_IF_ID, x->if_id); in copy_to_user_state_extra() 1581 u32 if_id = 0; in xfrm_alloc_userspi() local 1596 if_id = nla_get_u32(attrs[XFRMA_IF_ID]); in xfrm_alloc_userspi() 1608 if_id, p->info.id.proto, daddr, in xfrm_alloc_userspi() 1945 xp->if_id = nla_get_u32(attrs[XFRMA_IF_ID]); in xfrm_policy_construct() 2108 err = xfrm_if_id_put(skb, xp->if_id); in dump_one_policy() 2293 u32 if_id = 0; in xfrm_get_policy() local 2307 if_id = nla_get_u32(attrs[XFRMA_IF_ID]); in xfrm_get_policy() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | xfrm_info.c | 138 const char *ipv4_remote, int if_id) in setup_xfrm_tunnel_ns() argument 142 ESP_DUMMY_PARAMS "if_id %d", ns, ipv4_local, ipv4_remote, if_id); in setup_xfrm_tunnel_ns() 146 ESP_DUMMY_PARAMS "if_id %d", ns, ipv4_remote, ipv4_local, if_id); in setup_xfrm_tunnel_ns() 151 if_id, ipv4_local, ipv4_remote, if_id); in setup_xfrm_tunnel_ns() 156 if_id, ipv4_remote, ipv4_local, if_id); in setup_xfrm_tunnel_ns() 278 static int test_xfrm_ping(struct xfrm_info *skel, u32 if_id) in test_xfrm_ping() argument 280 skel->bss->req_if_id = if_id; in test_xfrm_ping() 284 if (!ASSERT_EQ(skel->bss->resp_if_id, if_id, "if_id")) in test_xfrm_ping()
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | xfrm_info.c | 7 u32 if_id; member 22 struct bpf_xfrm_info___local info = { .if_id = req_if_id }; in set_xfrm_info() 35 resp_if_id = info.if_id; in get_xfrm_info()
|
/linux-6.6.21/drivers/net/wwan/t7xx/ |
D | t7xx_netdev.c | 284 static int t7xx_ccmni_wwan_newlink(void *ctxt, struct net_device *dev, u32 if_id, in t7xx_ccmni_wwan_newlink() argument 291 if (if_id >= ARRAY_SIZE(ctlb->ccmni_inst)) in t7xx_ccmni_wwan_newlink() 295 ccmni->index = if_id; in t7xx_ccmni_wwan_newlink() 299 ctlb->ccmni_inst[if_id] = ccmni; in t7xx_ccmni_wwan_newlink() 313 u8 if_id = ccmni->index; in t7xx_ccmni_wwan_dellink() local 315 if (if_id >= ARRAY_SIZE(ctlb->ccmni_inst)) in t7xx_ccmni_wwan_dellink() 318 if (WARN_ON(ctlb->ccmni_inst[if_id] != ccmni)) in t7xx_ccmni_wwan_dellink()
|
/linux-6.6.21/drivers/net/wireless/silabs/wfx/ |
D | hif_tx.c | 25 static void wfx_fill_header(struct wfx_hif_msg *hif, int if_id, unsigned int cmd, size_t size) in wfx_fill_header() argument 27 if (if_id == -1) in wfx_fill_header() 28 if_id = 2; in wfx_fill_header() 32 WARN(if_id > 0x3, "invalid interface ID %d", if_id); in wfx_fill_header() 36 hif->interface = if_id; in wfx_fill_header()
|
/linux-6.6.21/include/net/ |
D | xfrm.h | 189 u32 if_id; member 330 u32 if_id; member 533 u32 if_id; member 1009 u32 if_id; /* interface identifyer */ member 1571 unsigned short family, u32 if_id); 1572 struct xfrm_state *xfrm_stateonly_find(struct net *net, u32 mark, u32 if_id, 1740 u32 if_id, u8 type, int dir, 1745 const struct xfrm_mark *mark, u32 if_id, 1755 u8 mode, u32 reqid, u32 if_id, u8 proto, 1767 u32 if_id); [all …]
|
/linux-6.6.21/net/ipv4/ |
D | ipcomp.c | 76 t->if_id = x->if_id; in ipcomp_tunnel_create()
|
/linux-6.6.21/net/ipv6/ |
D | ipcomp6.c | 94 t->if_id = x->if_id; in ipcomp6_tunnel_create()
|
/linux-6.6.21/drivers/net/wwan/ |
D | mhi_wwan_mbim.c | 536 static int mhi_mbim_newlink(void *ctxt, struct net_device *ndev, u32 if_id, in mhi_mbim_newlink() argument 542 link->session = if_id; in mhi_mbim_newlink() 549 if (mhi_mbim_get_link_rcu(mbim, if_id)) { in mhi_mbim_newlink() 556 hlist_add_head_rcu(&link->hlnode, &mbim->link_list[LINK_HASH(if_id)]); in mhi_mbim_newlink()
|