/linux-6.1.9/drivers/net/wwan/iosm/ |
D | iosm_ipc_wwan.c | 33 int if_id; member 55 int if_id = priv->if_id; in ipc_wwan_link_open() local 57 if (if_id < IP_MUX_SESSION_START || in ipc_wwan_link_open() 58 if_id >= ARRAY_SIZE(ipc_wwan->sub_netlist)) in ipc_wwan_link_open() 62 priv->ch_id = ipc_imem_sys_wwan_open(ipc_wwan->ipc_imem, if_id); in ipc_wwan_link_open() 67 if_id); in ipc_wwan_link_open() 75 priv->ch_id, priv->if_id); in ipc_wwan_link_open() 87 ipc_imem_sys_wwan_close(priv->ipc_wwan->ipc_imem, priv->if_id, in ipc_wwan_link_stop() 101 int if_id = priv->if_id; in ipc_wwan_link_transmit() local 107 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.1.9/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 | 379 dpsw_act->if_id = dpaa2_switch_get_index(ethsw, cls_act->dev); in dpaa2_switch_tc_parse_action_acl() 586 u16 if_id, vlan; in dpaa2_switch_cls_flower_replace_mirror() local 598 if_id = dpaa2_switch_get_index(ethsw, cls_act->dev); in dpaa2_switch_cls_flower_replace_mirror() 604 if (mirror_port_enabled && ethsw->mirror_port != if_id) { in dpaa2_switch_cls_flower_replace_mirror() 637 return dpaa2_switch_block_add_mirror(block, mirror_entry, if_id, in dpaa2_switch_cls_flower_replace_mirror() 740 u16 if_id; in dpaa2_switch_cls_matchall_replace_mirror() local 751 if_id = dpaa2_switch_get_index(ethsw, cls_act->dev); in dpaa2_switch_cls_matchall_replace_mirror() 757 if (mirror_port_enabled && ethsw->mirror_port != if_id) { in dpaa2_switch_cls_matchall_replace_mirror() 783 return dpaa2_switch_block_add_mirror(block, mirror_entry, if_id, in dpaa2_switch_cls_matchall_replace_mirror()
|
D | dpaa2-switch.c | 143 cfg->if_id[i++] = ethsw->ports[j]->idx; in dpaa2_switch_fdb_get_flood_cfg() 145 cfg->if_id[i++] = ethsw->ports[j]->idx; in dpaa2_switch_fdb_get_flood_cfg() 149 cfg->if_id[i++] = ethsw->sw_attr.num_ifs; in dpaa2_switch_fdb_get_flood_cfg() 301 vcfg.if_id[0] = port_priv->idx; in dpaa2_switch_port_add_vlan() 457 entry.if_id[0] = port_priv->idx; in dpaa2_switch_port_fdb_add_mc() 480 entry.if_id[0] = port_priv->idx; in dpaa2_switch_port_fdb_del_mc() 1193 acl_if_cfg.if_id[0] = port_priv->idx; in dpaa2_switch_port_acl_tbl_bind() 1220 acl_if_cfg.if_id[0] = port_priv->idx; in dpaa2_switch_port_acl_tbl_unbind() 1497 int err, if_id; in dpaa2_switch_irq0_handler_thread() local 1506 if_id = (status & 0xFFFF0000) >> 16; in dpaa2_switch_irq0_handler_thread() [all …]
|
/linux-6.1.9/net/xfrm/ |
D | xfrm_interface.c | 101 info->if_id = nla_get_u32(tb[LWT_XFRM_IF_ID]); in xfrmi_build_state() 115 if (nla_put_u32(skb, LWT_XFRM_IF_ID, info->if_id) || in xfrmi_fill_encap_info() 148 static u32 xfrmi_hash(u32 if_id) in xfrmi_hash() argument 150 return hash_32(if_id, XFRMI_HASH_BITS); in xfrmi_hash() 158 for_each_xfrmi_rcu(xfrmn->xfrmi[xfrmi_hash(x->if_id)], xi) { in xfrmi_lookup() 159 if (x->if_id == xi->p.if_id && in xfrmi_lookup() 208 res->if_id = xfrm_input_state(skb)->if_id; in xfrmi_decode_session() 210 res->if_id = xi->p.if_id; in xfrmi_decode_session() 216 struct xfrm_if __rcu **xip = &xfrmn->xfrmi[xfrmi_hash(xi->p.if_id)]; in xfrmi_link() 227 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); 703 .if_id = pol->if_id, in xfrm_policy_inexact_alloc_bin() 1458 return jhash_3words(a, k->if_id, net_hash_mix(read_pnet(&k->net)), in xfrm_pol_bin_key() 1491 return b->k.if_id ^ key->if_id; in xfrm_pol_bin_cmp() 1511 pol->if_id == policy->if_id && in xfrm_policy_insert_inexact_list() 1546 pol->if_id == policy->if_id && in xfrm_policy_insert_list() 1621 u32 if_id, u8 type, int dir, struct xfrm_selector *sel, in __xfrm_policy_bysel_ctx() argument 1631 pol->if_id == if_id && in __xfrm_policy_bysel_ctx() [all …]
|
D | xfrm_state.c | 1074 unsigned short family, u32 if_id) in xfrm_state_find() argument 1098 x->if_id == if_id && in xfrm_state_find() 1115 x->if_id == if_id && in xfrm_state_find() 1155 x->if_id = if_id; in xfrm_state_find() 1219 xfrm_stateonly_find(struct net *net, u32 mark, u32 if_id, in xfrm_stateonly_find() argument 1232 x->if_id == if_id && in xfrm_stateonly_find() 1319 u32 if_id = xnew->if_id; in __xfrm_state_bump_genids() local 1325 x->if_id == if_id && in __xfrm_state_bump_genids() 1348 u32 reqid, u32 if_id, u8 proto, in __find_acq_core() argument 1403 x->if_id = if_id; in __find_acq_core() [all …]
|
D | xfrm_user.c | 722 x->if_id = nla_get_u32(attrs[XFRMA_IF_ID]); in xfrm_state_construct() 1121 if (x->if_id) { in copy_to_user_state_extra() 1122 ret = nla_put_u32(skb, XFRMA_IF_ID, x->if_id); in copy_to_user_state_extra() 1510 u32 if_id = 0; in xfrm_alloc_userspi() local 1525 if_id = nla_get_u32(attrs[XFRMA_IF_ID]); in xfrm_alloc_userspi() 1537 if_id, p->info.id.proto, daddr, in xfrm_alloc_userspi() 1868 xp->if_id = nla_get_u32(attrs[XFRMA_IF_ID]); in xfrm_policy_construct() 2020 err = xfrm_if_id_put(skb, xp->if_id); in dump_one_policy() 2203 u32 if_id = 0; in xfrm_get_policy() local 2217 if_id = nla_get_u32(attrs[XFRMA_IF_ID]); in xfrm_get_policy() [all …]
|
/linux-6.1.9/drivers/net/wwan/t7xx/ |
D | t7xx_netdev.c | 193 static int t7xx_ccmni_wwan_newlink(void *ctxt, struct net_device *dev, u32 if_id, in t7xx_ccmni_wwan_newlink() argument 200 if (if_id >= ARRAY_SIZE(ctlb->ccmni_inst)) in t7xx_ccmni_wwan_newlink() 204 ccmni->index = if_id; in t7xx_ccmni_wwan_newlink() 208 ctlb->ccmni_inst[if_id] = ccmni; in t7xx_ccmni_wwan_newlink() 222 u8 if_id = ccmni->index; in t7xx_ccmni_wwan_dellink() local 224 if (if_id >= ARRAY_SIZE(ctlb->ccmni_inst)) in t7xx_ccmni_wwan_dellink() 227 if (WARN_ON(ctlb->ccmni_inst[if_id] != ccmni)) in t7xx_ccmni_wwan_dellink()
|
/linux-6.1.9/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.1.9/include/net/ |
D | xfrm.h | 176 u32 if_id; member 317 u32 if_id; member 520 u32 if_id; member 994 u32 if_id; /* interface identifyer */ member 1523 unsigned short family, u32 if_id); 1524 struct xfrm_state *xfrm_stateonly_find(struct net *net, u32 mark, u32 if_id, 1673 u32 if_id, u8 type, int dir, 1678 const struct xfrm_mark *mark, u32 if_id, 1687 u8 mode, u32 reqid, u32 if_id, u8 proto, 1699 u32 if_id); [all …]
|
/linux-6.1.9/net/ipv4/ |
D | ipcomp.c | 76 t->if_id = x->if_id; in ipcomp_tunnel_create()
|
/linux-6.1.9/net/ipv6/ |
D | ipcomp6.c | 94 t->if_id = x->if_id; in ipcomp6_tunnel_create()
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/net/ethernet/emulex/benet/ |
D | be_cmds.h | 419 u16 if_id; member 431 u32 if_id; member 444 u32 if_id; member 585 u16 if_id; member 1049 u32 if_id; member 1217 u32 if_id; member 2305 u32 if_id; member 2388 int be_cmd_pmac_add(struct be_adapter *adapter, const u8 *mac_addr, u32 if_id, 2390 int be_cmd_pmac_del(struct be_adapter *adapter, u32 if_id, int pmac_id, 2403 u16 cq_id, u16 frag_size, u32 if_id, u32 rss, u8 *rss_id); [all …]
|
/linux-6.1.9/include/linux/ |
D | wwan.h | 165 u32 if_id, struct netlink_ext_ack *extack);
|