Home
last modified time | relevance | path

Searched refs:if_id (Results 1 - 25 of 92) sorted by relevance

1234

/kernel/linux/linux-6.6/drivers/net/wwan/iosm/
H A Diosm_ipc_wwan.c25 * @if_id: Interface id for device.
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()
72 dev_dbg(ipc_wwan->dev, "Channel id %d allocated to if_id %d", in ipc_wwan_link_open()
73 priv->ch_id, priv->if_id); in ipc_wwan_link_open()
99 int if_id = priv->if_id; ipc_wwan_link_transmit() local
164 ipc_wwan_newlink(void *ctxt, struct net_device *dev, u32 if_id, struct netlink_ext_ack *extack) ipc_wwan_newlink() argument
198 int if_id = priv->if_id; ipc_wwan_dellink() local
219 ipc_wwan_receive(struct iosm_wwan *ipc_wwan, struct sk_buff *skb_arg, bool dss, int if_id) ipc_wwan_receive() argument
261 ipc_wwan_tx_flowctrl(struct iosm_wwan *ipc_wwan, int if_id, bool on) ipc_wwan_tx_flowctrl() argument
[all...]
H A Diosm_ipc_mux.c44 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()
75 dev_err(ipc_mux->dev, "if_id %d: OPEN_SESSION send failed", 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 in ipc_mux_session_open()
138 ipc_mux_session_reset(struct iosm_mux *ipc_mux, int if_id) ipc_mux_session_reset() argument
150 int if_id; ipc_mux_session_close() local
[all...]
H A Diosm_ipc_mux_codec.c85 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()
207 dev_dbg(ipc_mux->dev, "if_id %u FLOW_CTL_ACK %u received", in ipc_mux_dl_cmdresps_decode_process()
208 if_id, le32_to_cp in ipc_mux_dl_cmdresps_decode_process()
186 ipc_mux_dl_cmdresps_decode_process(struct iosm_mux *ipc_mux, union mux_cmd_param param, __le32 command_type, u8 if_id, __le32 transaction_id) ipc_mux_dl_cmdresps_decode_process() argument
230 ipc_mux_dl_cmds_decode_process(struct iosm_mux *ipc_mux, union mux_cmd_param *param, __le32 command_type, u8 if_id, __le16 cmd_len, int size) ipc_mux_dl_cmds_decode_process() argument
366 ipc_mux_net_receive(struct iosm_mux *ipc_mux, int if_id, struct iosm_wwan *wwan, u32 offset, u8 service_class, struct sk_buff *skb, u32 pkt_len) ipc_mux_net_receive() argument
391 int if_id; ipc_mux_dl_fcth_decode() local
438 u8 if_id; ipc_mux_dl_adgh_decode() local
548 mux_dl_process_dg(struct iosm_mux *ipc_mux, struct mux_adbh *adbh, struct mux_adth_dg *dg, struct sk_buff *skb, int if_id, int nr_of_dg) mux_dl_process_dg() argument
591 int nr_of_dg, if_id; mux_dl_adb_decode() local
714 u32 if_id; ipc_mux_ul_skb_alloc() local
1502 ipc_mux_ul_trigger_encode(struct iosm_mux *ipc_mux, int if_id, struct sk_buff *skb) ipc_mux_ul_trigger_encode() argument
[all...]
H A Diosm_ipc_mux_codec.h92 * @if_id: ID of the interface the commands in the table belong to.
103 u8 if_id; member
148 * @if_id: ID of the interface the datagrams in the table
160 u8 if_id; member
172 * @if_id: ID of the interface the datagrams belong to
185 u8 if_id; member
197 * @if_id: ID of the interface the commands in the table belong to.
209 u8 if_id; member
229 * @if_id: ID of the interface the table belongs to
237 u8 if_id; member
[all...]
H A Diosm_ipc_imem_ops.h62 * @if_id: ip link tag of the net device.
66 int ipc_imem_sys_wwan_open(struct iosm_imem *ipc_imem, int if_id);
72 * @if_id: IP link id net device.
75 void ipc_imem_sys_wwan_close(struct iosm_imem *ipc_imem, int if_id,
81 * @if_id: link ID of the device.
87 int ipc_imem_sys_wwan_transmit(struct iosm_imem *ipc_imem, int if_id,
H A Diosm_ipc_mux.h74 __le32 if_id; member
80 __le32 if_id; member
187 int if_id; /* i/f id for session open message.*/ member
235 * @if_id: ID of the interface the queue levels in the table
247 u8 if_id; member
294 * @if_id: Session id.
303 int if_id; /* Session id. */ member
H A Diosm_ipc_imem_ops.c16 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()
74 ret = ipc_mux_ul_trigger_encode(ipc_imem->mux, if_id, sk in ipc_imem_sys_wwan_transmit()
57 ipc_imem_sys_wwan_transmit(struct iosm_imem *ipc_imem, int if_id, int channel_id, struct sk_buff *skb) ipc_imem_sys_wwan_transmit() argument
[all...]
/kernel/linux/linux-5.10/drivers/staging/fsl-dpaa2/ethsw/
H A Ddpsw.c365 * @if_id: Interface id
373 u16 if_id, in dpsw_if_set_link_cfg()
384 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_set_link_cfg()
397 * @if_id: Interface id
405 u16 if_id, in dpsw_if_get_link_state()
418 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_get_link_state()
439 * @if_id: Interface Identifier
447 u16 if_id, in dpsw_if_set_flooding()
370 dpsw_if_set_link_cfg(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, struct dpsw_link_cfg *cfg) dpsw_if_set_link_cfg() argument
402 dpsw_if_get_link_state(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, struct dpsw_link_state *state) dpsw_if_get_link_state() argument
444 dpsw_if_set_flooding(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, u8 en) dpsw_if_set_flooding() argument
475 dpsw_if_set_broadcast(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, u8 en) dpsw_if_set_broadcast() argument
506 dpsw_if_set_tci(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, const struct dpsw_tci_cfg *cfg) dpsw_if_set_tci() argument
541 dpsw_if_get_tci(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, struct dpsw_tci_cfg *cfg) dpsw_if_get_tci() argument
586 dpsw_if_set_stp(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, const struct dpsw_stp_cfg *cfg) dpsw_if_set_stp() argument
619 dpsw_if_get_counter(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, enum dpsw_counter type, u64 *counter) dpsw_if_get_counter() argument
660 dpsw_if_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id) dpsw_if_enable() argument
688 dpsw_if_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id) dpsw_if_disable() argument
717 dpsw_if_set_max_frame_length(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, u16 frame_length) dpsw_if_set_max_frame_length() argument
1228 dpsw_if_get_port_mac_addr(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, u8 mac_addr[6]) dpsw_if_get_port_mac_addr() argument
1266 dpsw_if_get_primary_mac_addr(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, u8 mac_addr[6]) dpsw_if_get_primary_mac_addr() argument
1304 dpsw_if_set_primary_mac_addr(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, u8 mac_addr[6]) dpsw_if_set_primary_mac_addr() argument
[all...]
H A Ddpsw-cmd.h192 __le16 if_id; member
198 __le16 if_id; member
211 __le16 if_id; member
217 __le16 if_id; member
231 __le16 if_id; member
241 __le16 if_id; member
252 __le16 if_id; member
256 __le16 if_id; member
262 __le16 if_id; member
272 __le16 if_id; member
301 __le64 if_id[4]; global() member
347 __le64 if_id[4]; global() member
382 __le16 if_id; global() member
[all...]
H A Ddpsw.h218 u16 if_id,
235 u16 if_id,
241 u16 if_id,
247 u16 if_id,
272 u16 if_id,
278 u16 if_id,
310 u16 if_id,
359 u16 if_id,
366 u16 if_id);
371 u16 if_id);
402 u16 if_id[DPSW_MAX_IF]; global() member
504 u16 if_id[DPSW_MAX_IF]; global() member
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/
H A Ddpsw.c338 * @if_id: Interface id
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()
367 * @if_id: Interface id
373 u16 if_id, struct dpsw_link_state *state) in dpsw_if_get_link_state()
385 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_get_link_state()
406 * @if_id: Interface Identifier
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
372 dpsw_if_get_link_state(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, struct dpsw_link_state *state) dpsw_if_get_link_state() argument
443 dpsw_if_get_tci(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, struct dpsw_tci_cfg *cfg) dpsw_if_get_tci() argument
485 dpsw_if_set_stp(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, const struct dpsw_stp_cfg *cfg) dpsw_if_set_stp() argument
515 dpsw_if_get_counter(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, enum dpsw_counter type, u64 *counter) dpsw_if_get_counter() argument
552 dpsw_if_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id) dpsw_if_enable() argument
577 dpsw_if_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id) dpsw_if_disable() argument
603 dpsw_if_get_attributes(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, struct dpsw_if_attr *attr) dpsw_if_get_attributes() argument
644 dpsw_if_set_max_frame_length(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, u16 frame_length) dpsw_if_set_max_frame_length() argument
1242 dpsw_if_get_port_mac_addr(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, u8 mac_addr[6]) dpsw_if_get_port_mac_addr() argument
1342 dpsw_if_set_learning_mode(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, enum dpsw_learning_mode mode) dpsw_if_set_learning_mode() argument
1594 dpsw_set_reflection_if(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id) dpsw_set_reflection_if() argument
1619 dpsw_if_add_reflection(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, const struct dpsw_reflection_cfg *cfg) dpsw_if_add_reflection() argument
1646 dpsw_if_remove_reflection(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, const struct dpsw_reflection_cfg *cfg) dpsw_if_remove_reflection() argument
[all...]
H A Ddpsw.h269 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, u1
452 u16 if_id[DPSW_MAX_IF]; global() member
530 u16 if_id[DPSW_MAX_IF]; global() member
627 u16 if_id[DPSW_MAX_IF]; global() member
657 u16 if_id[DPSW_MAX_IF]; global() member
734 u16 if_id; global() member
[all...]
H A Ddpsw-cmd.h234 __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
402 __le64 if_id; global() member
461 __le64 if_id; global() member
468 __le16 if_id; global() member
490 __le64 if_id; global() member
543 __le16 if_id; global() member
550 __le16 if_id; global() member
[all...]
H A Ddpaa2-switch-flower.c380 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()
/kernel/linux/linux-6.6/net/xfrm/
H A Dxfrm_interface_bpf.c18 * @if_id - XFRM if_id:
19 * Transmit: if_id to be used in policy and state lookups
20 * Receive: if_id of the state matched for the incoming packet
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()
H A Dxfrm_interface_core.c88 NL_SET_ERR_MSG(extack, "if_id must be set"); in xfrmi_build_state()
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()
434 u32 if_id; xfrmi_xmit2() local
[all...]
H A Dxfrm_policy.c78 * xfrm_pol_inexact_bin = hash(dir,type,family,if_id);
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 in xfrm_policy_insert_inexact_list()
1625 __xfrm_policy_bysel_ctx(struct hlist_head *chain, const struct xfrm_mark *mark, u32 if_id, u8 type, int dir, struct xfrm_selector *sel, struct xfrm_sec_ctx *ctx) __xfrm_policy_bysel_ctx() argument
1647 xfrm_policy_bysel_ctx(struct net *net, const struct xfrm_mark *mark, u32 if_id, u8 type, int dir, struct xfrm_selector *sel, struct xfrm_sec_ctx *ctx, int delete, int *err) xfrm_policy_bysel_ctx() argument
1717 xfrm_policy_byid(struct net *net, const struct xfrm_mark *mark, u32 if_id, u8 type, int dir, u32 id, int delete, int *err) xfrm_policy_byid() argument
1968 xfrm_policy_match(const struct xfrm_policy *pol, const struct flowi *fl, u8 type, u16 family, u32 if_id) xfrm_policy_match() argument
2060 xfrm_policy_inexact_lookup_rcu(struct net *net, u8 type, u16 family, u8 dir, u32 if_id) xfrm_policy_inexact_lookup_rcu() argument
2077 xfrm_policy_inexact_lookup(struct net *net, u8 type, u16 family, u8 dir, u32 if_id) xfrm_policy_inexact_lookup() argument
2092 __xfrm_policy_eval_candidates(struct hlist_head *chain, struct xfrm_policy *prefer, const struct flowi *fl, u8 type, u16 family, u32 if_id) __xfrm_policy_eval_candidates() argument
2131 xfrm_policy_eval_candidates(struct xfrm_pol_inexact_candidates *cand, struct xfrm_policy *prefer, const struct flowi *fl, u8 type, u16 family, u32 if_id) xfrm_policy_eval_candidates() argument
2154 xfrm_policy_lookup_bytype(struct net *net, u8 type, const struct flowi *fl, u16 family, u8 dir, u32 if_id) xfrm_policy_lookup_bytype() argument
2222 xfrm_policy_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir, u32 if_id) xfrm_policy_lookup() argument
2238 xfrm_sk_policy_lookup(const struct sock *sk, int dir, const struct flowi *fl, u16 family, u32 if_id) xfrm_sk_policy_lookup() argument
3027 xfrm_bundle_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir, struct xfrm_flo *xflo, u32 if_id) xfrm_bundle_lookup() argument
3115 xfrm_lookup_with_ifid(struct net *net, struct dst_entry *dst_orig, const struct flowi *fl, const struct sock *sk, int flags, u32 if_id) xfrm_lookup_with_ifid() argument
3323 xfrm_state_ok(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x, unsigned short family, u32 if_id) xfrm_state_ok() argument
3347 xfrm_policy_ok(const struct xfrm_tmpl *tmpl, const struct sec_path *sp, int start, unsigned short family, u32 if_id) xfrm_policy_ok() argument
3610 u32 if_id = 0; __xfrm_policy_check() local
4361 xfrm_migrate_policy_find(const struct xfrm_selector *sel, u8 dir, u8 type, struct net *net, u32 if_id) xfrm_migrate_policy_find() argument
4507 xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, struct xfrm_migrate *m, int num_migrate, struct xfrm_kmaddress *k, struct net *net, struct xfrm_encap_tmpl *encap, u32 if_id, struct netlink_ext_ack *extack) xfrm_migrate() argument
[all...]
H A Dxfrm_state.c1140 unsigned short family, u32 if_id) in xfrm_state_find()
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()
1137 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, const struct flowi *fl, struct xfrm_tmpl *tmpl, struct xfrm_policy *pol, int *err, unsigned short family, u32 if_id) xfrm_state_find() argument
1466 u32 if_id = xnew->if_id; __xfrm_state_bump_genids() local
1492 __find_acq_core(struct net *net, const struct xfrm_mark *m, unsigned short family, u8 mode, u32 reqid, u32 if_id, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create) __find_acq_core() argument
1756 xfrm_migrate_state_find(struct xfrm_migrate *m, struct net *net, u32 if_id) xfrm_migrate_state_find() argument
1988 xfrm_find_acq(struct net *net, const struct xfrm_mark *mark, u8 mode, u32 reqid, u32 if_id, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create, unsigned short family) xfrm_find_acq() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dxfrm_info.c11 * | if_id: bpf | | +---------------+ |
36 * 2) NS0 ipsec0 tc egress BPF program is triggered and sets the if_id based
39 * 3) ping reaches the other namespace (NS1 or NS2 based on which if_id was
42 * records the response if_id
43 * 5) requested if_id is compared with received if_id
138 const char *ipv4_remote, int if_id) in setup_xfrm_tunnel_ns()
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 in setup_xfrm_tunnel_ns()
137 setup_xfrm_tunnel_ns(const char *ns, const char *ipv4_local, const char *ipv4_remote, int if_id) setup_xfrm_tunnel_ns() argument
278 test_xfrm_ping(struct xfrm_info *skel, u32 if_id) test_xfrm_ping() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dxfrm_info.c7 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()
/kernel/linux/linux-5.10/net/xfrm/
H A Dxfrm_policy.c78 * xfrm_pol_inexact_bin = hash(dir,type,family,if_id);
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()
1456 return jhash_3words(a, k->if_id, net_hash_mix(read_pnet(&k->net)), in xfrm_pol_bin_key()
1489 return b->k.if_id ^ key->if_id; in xfrm_pol_bin_cmp()
1509 pol->if_id in xfrm_policy_insert_inexact_list()
1618 __xfrm_policy_bysel_ctx(struct hlist_head *chain, const struct xfrm_mark *mark, u32 if_id, u8 type, int dir, struct xfrm_selector *sel, struct xfrm_sec_ctx *ctx) __xfrm_policy_bysel_ctx() argument
1640 xfrm_policy_bysel_ctx(struct net *net, const struct xfrm_mark *mark, u32 if_id, u8 type, int dir, struct xfrm_selector *sel, struct xfrm_sec_ctx *ctx, int delete, int *err) xfrm_policy_bysel_ctx() argument
1710 xfrm_policy_byid(struct net *net, const struct xfrm_mark *mark, u32 if_id, u8 type, int dir, u32 id, int delete, int *err) xfrm_policy_byid() argument
1888 xfrm_policy_match(const struct xfrm_policy *pol, const struct flowi *fl, u8 type, u16 family, int dir, u32 if_id) xfrm_policy_match() argument
1981 xfrm_policy_inexact_lookup_rcu(struct net *net, u8 type, u16 family, u8 dir, u32 if_id) xfrm_policy_inexact_lookup_rcu() argument
1998 xfrm_policy_inexact_lookup(struct net *net, u8 type, u16 family, u8 dir, u32 if_id) xfrm_policy_inexact_lookup() argument
2013 __xfrm_policy_eval_candidates(struct hlist_head *chain, struct xfrm_policy *prefer, const struct flowi *fl, u8 type, u16 family, int dir, u32 if_id) __xfrm_policy_eval_candidates() argument
2052 xfrm_policy_eval_candidates(struct xfrm_pol_inexact_candidates *cand, struct xfrm_policy *prefer, const struct flowi *fl, u8 type, u16 family, int dir, u32 if_id) xfrm_policy_eval_candidates() argument
2076 xfrm_policy_lookup_bytype(struct net *net, u8 type, const struct flowi *fl, u16 family, u8 dir, u32 if_id) xfrm_policy_lookup_bytype() argument
2141 xfrm_policy_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir, u32 if_id) xfrm_policy_lookup() argument
2157 xfrm_sk_policy_lookup(const struct sock *sk, int dir, const struct flowi *fl, u16 family, u32 if_id) xfrm_sk_policy_lookup() argument
2944 xfrm_bundle_lookup(struct net *net, const struct flowi *fl, u16 family, u8 dir, struct xfrm_flo *xflo, u32 if_id) xfrm_bundle_lookup() argument
3032 xfrm_lookup_with_ifid(struct net *net, struct dst_entry *dst_orig, const struct flowi *fl, const struct sock *sk, int flags, u32 if_id) xfrm_lookup_with_ifid() argument
3240 xfrm_state_ok(const struct xfrm_tmpl *tmpl, const struct xfrm_state *x, unsigned short family, u32 if_id) xfrm_state_ok() argument
3264 xfrm_policy_ok(const struct xfrm_tmpl *tmpl, const struct sec_path *sp, int start, unsigned short family, u32 if_id) xfrm_policy_ok() argument
3568 u32 if_id = 0; __xfrm_policy_check() local
4313 xfrm_migrate_policy_find(const struct xfrm_selector *sel, u8 dir, u8 type, struct net *net, u32 if_id) xfrm_migrate_policy_find() argument
4450 xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, struct xfrm_migrate *m, int num_migrate, struct xfrm_kmaddress *k, struct net *net, struct xfrm_encap_tmpl *encap, u32 if_id) xfrm_migrate() argument
[all...]
H A Dxfrm_interface_core.c64 static u32 xfrmi_hash(u32 if_id) in xfrmi_hash() argument
66 return hash_32(if_id, XFRMI_HASH_BITS); in xfrmi_hash()
74 for_each_xfrmi_rcu(xfrmn->xfrmi[xfrmi_hash(x->if_id)], xi) { in xfrmi_lookup()
75 if (x->if_id == xi->p.if_id && in xfrmi_lookup()
119 struct xfrm_if __rcu **xip = &xfrmn->xfrmi[xfrmi_hash(xi->p.if_id)]; in xfrmi_link()
130 for (xip = &xfrmn->xfrmi[xfrmi_hash(xi->p.if_id)]; in xfrmi_unlink()
174 for (xip = &xfrmn->xfrmi[xfrmi_hash(p->if_id)]; in xfrmi_locate()
177 if (xi->p.if_id == p->if_id) in xfrmi_locate()
[all...]
H A Dxfrm_state.c1049 unsigned short family, u32 if_id) in xfrm_state_find()
1073 x->if_id == if_id && in xfrm_state_find()
1090 x->if_id == if_id && in xfrm_state_find()
1130 x->if_id = if_id; in xfrm_state_find()
1190 xfrm_stateonly_find(struct net *net, u32 mark, u32 if_id, in xfrm_stateonly_find() argument
1203 x->if_id == if_id in xfrm_stateonly_find()
1046 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, const struct flowi *fl, struct xfrm_tmpl *tmpl, struct xfrm_policy *pol, int *err, unsigned short family, u32 if_id) xfrm_state_find() argument
1284 u32 if_id = xnew->if_id; __xfrm_state_bump_genids() local
1310 __find_acq_core(struct net *net, const struct xfrm_mark *m, unsigned short family, u8 mode, u32 reqid, u32 if_id, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create) __find_acq_core() argument
1572 xfrm_migrate_state_find(struct xfrm_migrate *m, struct net *net, u32 if_id) xfrm_migrate_state_find() argument
1802 xfrm_find_acq(struct net *net, const struct xfrm_mark *mark, u8 mode, u32 reqid, u32 if_id, u8 proto, const xfrm_address_t *daddr, const xfrm_address_t *saddr, int create, unsigned short family) xfrm_find_acq() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/wwan/t7xx/
H A Dt7xx_netdev.c284 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()
/kernel/linux/linux-5.10/drivers/staging/wfx/
H A Dhif_tx.c25 static void wfx_fill_header(struct hif_msg *hif, int if_id, in wfx_fill_header() argument
28 if (if_id == -1) in wfx_fill_header()
29 if_id = 2; in wfx_fill_header()
33 WARN(if_id > 0x3, "invalid interface ID %d", if_id); in wfx_fill_header()
37 hif->interface = if_id; in wfx_fill_header()

Completed in 30 milliseconds

1234