Home
last modified time | relevance | path

Searched refs:parms (Results 1 – 25 of 81) sorted by relevance

1234

/Linux-v5.10/fs/vboxsf/
Dvboxsf_wrappers.c53 static int vboxsf_call(u32 function, void *parms, u32 parm_count, int *status) in vboxsf_call() argument
63 U32_MAX, parms, parm_count, &vbox_status); in vboxsf_call()
77 struct shfl_map_folder parms; in vboxsf_map_folder() local
80 parms.path.type = VMMDEV_HGCM_PARM_TYPE_LINADDR_KERNEL; in vboxsf_map_folder()
81 parms.path.u.pointer.size = shfl_string_buf_size(folder_name); in vboxsf_map_folder()
82 parms.path.u.pointer.u.linear_addr = (uintptr_t)folder_name; in vboxsf_map_folder()
84 parms.root.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_map_folder()
85 parms.root.u.value32 = 0; in vboxsf_map_folder()
87 parms.delimiter.type = VMMDEV_HGCM_PARM_TYPE_32BIT; in vboxsf_map_folder()
88 parms.delimiter.u.value32 = '/'; in vboxsf_map_folder()
[all …]
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ipip.c16 return tun->parms; in mlxsw_sp_ipip_netdev_parms4()
24 return tun->parms; in mlxsw_sp_ipip_netdev_parms6()
27 static bool mlxsw_sp_ipip_parms4_has_ikey(struct ip_tunnel_parm parms) in mlxsw_sp_ipip_parms4_has_ikey() argument
29 return !!(parms.i_flags & TUNNEL_KEY); in mlxsw_sp_ipip_parms4_has_ikey()
32 static bool mlxsw_sp_ipip_parms4_has_okey(struct ip_tunnel_parm parms) in mlxsw_sp_ipip_parms4_has_okey() argument
34 return !!(parms.o_flags & TUNNEL_KEY); in mlxsw_sp_ipip_parms4_has_okey()
37 static u32 mlxsw_sp_ipip_parms4_ikey(struct ip_tunnel_parm parms) in mlxsw_sp_ipip_parms4_ikey() argument
39 return mlxsw_sp_ipip_parms4_has_ikey(parms) ? in mlxsw_sp_ipip_parms4_ikey()
40 be32_to_cpu(parms.i_key) : 0; in mlxsw_sp_ipip_parms4_ikey()
43 static u32 mlxsw_sp_ipip_parms4_okey(struct ip_tunnel_parm parms) in mlxsw_sp_ipip_parms4_okey() argument
[all …]
Dspectrum_span.h57 struct mlxsw_sp_span_parms parms; member
87 const struct mlxsw_sp_span_agent_parms *parms);
96 const struct mlxsw_sp_span_trigger_parms *parms);
101 const struct mlxsw_sp_span_trigger_parms *parms);
Dspectrum_span.c51 struct mlxsw_sp_span_trigger_parms parms; member
198 struct mlxsw_sp_port *dest_port = span_entry->parms.dest_port; in mlxsw_sp_span_entry_deconfigure_common()
414 struct ip_tunnel_parm parms; in mlxsw_sp_span_gretap4_route() local
421 parms = mlxsw_sp_ipip_netdev_parms4(to_dev); in mlxsw_sp_span_gretap4_route()
422 ip_tunnel_init_flow(&fl4, parms.iph.protocol, *daddrp, *saddrp, in mlxsw_sp_span_gretap4_route()
423 0, 0, parms.link, tun->fwmark, 0); in mlxsw_sp_span_gretap4_route()
530 fl6.flowi6_mark = t->parms.fwmark; in mlxsw_sp_span_gretap6_route()
794 span_entry->parms = sparms; in mlxsw_sp_span_entry_configure()
800 if (span_entry->parms.dest_port) in mlxsw_sp_span_entry_deconfigure()
886 if (span_entry->parms.policer_enable) in mlxsw_sp_span_entry_destroy()
[all …]
/Linux-v5.10/net/ipv6/
Dip6_gre.c133 if (!ipv6_addr_equal(local, &t->parms.laddr) || in ip6gre_tunnel_lookup()
134 !ipv6_addr_equal(remote, &t->parms.raddr) || in ip6gre_tunnel_lookup()
135 key != t->parms.i_key || in ip6gre_tunnel_lookup()
144 if (t->parms.link != link) in ip6gre_tunnel_lookup()
158 if (!ipv6_addr_equal(remote, &t->parms.raddr) || in ip6gre_tunnel_lookup()
159 key != t->parms.i_key || in ip6gre_tunnel_lookup()
168 if (t->parms.link != link) in ip6gre_tunnel_lookup()
182 if ((!ipv6_addr_equal(local, &t->parms.laddr) && in ip6gre_tunnel_lookup()
183 (!ipv6_addr_equal(local, &t->parms.raddr) || in ip6gre_tunnel_lookup()
185 key != t->parms.i_key || in ip6gre_tunnel_lookup()
[all …]
Dip6_tunnel.c153 if (!ipv6_addr_equal(local, &t->parms.laddr) || in ip6_tnl_lookup()
154 !ipv6_addr_equal(remote, &t->parms.raddr) || in ip6_tnl_lookup()
158 if (link == t->parms.link) in ip6_tnl_lookup()
167 if (!ipv6_addr_equal(local, &t->parms.laddr) || in ip6_tnl_lookup()
168 !ipv6_addr_any(&t->parms.raddr) || in ip6_tnl_lookup()
172 if (link == t->parms.link) in ip6_tnl_lookup()
180 if (!ipv6_addr_equal(remote, &t->parms.raddr) || in ip6_tnl_lookup()
181 !ipv6_addr_any(&t->parms.laddr) || in ip6_tnl_lookup()
185 if (link == t->parms.link) in ip6_tnl_lookup()
239 struct ip6_tnl __rcu **tp = ip6_tnl_bucket(ip6n, &t->parms); in ip6_tnl_link()
[all …]
Dsit.c108 if (local == t->parms.iph.saddr && in ipip6_tunnel_lookup()
109 remote == t->parms.iph.daddr && in ipip6_tunnel_lookup()
110 (!dev || !t->parms.link || ifindex == t->parms.link || in ipip6_tunnel_lookup()
111 sifindex == t->parms.link) && in ipip6_tunnel_lookup()
116 if (remote == t->parms.iph.daddr && in ipip6_tunnel_lookup()
117 (!dev || !t->parms.link || ifindex == t->parms.link || in ipip6_tunnel_lookup()
118 sifindex == t->parms.link) && in ipip6_tunnel_lookup()
123 if (local == t->parms.iph.saddr && in ipip6_tunnel_lookup()
124 (!dev || !t->parms.link || ifindex == t->parms.link || in ipip6_tunnel_lookup()
125 sifindex == t->parms.link) && in ipip6_tunnel_lookup()
[all …]
Dip6_vti.c98 if (ipv6_addr_equal(local, &t->parms.laddr) && in vti6_tnl_lookup()
99 ipv6_addr_equal(remote, &t->parms.raddr) && in vti6_tnl_lookup()
107 if (ipv6_addr_equal(local, &t->parms.laddr) && in vti6_tnl_lookup()
114 if (ipv6_addr_equal(remote, &t->parms.raddr) && in vti6_tnl_lookup()
154 struct ip6_tnl __rcu **tp = vti6_tnl_bucket(ip6n, &t->parms); in vti6_tnl_link()
166 for (tp = vti6_tnl_bucket(ip6n, &t->parms); in vti6_tnl_unlink()
193 strcpy(t->parms.name, dev->name); in vti6_tnl_create2()
226 t->parms = *p; in vti6_tnl_create()
267 if (ipv6_addr_equal(local, &t->parms.laddr) && in vti6_locate()
268 ipv6_addr_equal(remote, &t->parms.raddr)) { in vti6_locate()
[all …]
/Linux-v5.10/net/lapb/
Dlapb_iface.c196 int lapb_getparms(struct net_device *dev, struct lapb_parms_struct *parms) in lapb_getparms() argument
204 parms->t1 = lapb->t1 / HZ; in lapb_getparms()
205 parms->t2 = lapb->t2 / HZ; in lapb_getparms()
206 parms->n2 = lapb->n2; in lapb_getparms()
207 parms->n2count = lapb->n2count; in lapb_getparms()
208 parms->state = lapb->state; in lapb_getparms()
209 parms->window = lapb->window; in lapb_getparms()
210 parms->mode = lapb->mode; in lapb_getparms()
213 parms->t1timer = 0; in lapb_getparms()
215 parms->t1timer = (lapb->t1timer.expires - jiffies) / HZ; in lapb_getparms()
[all …]
/Linux-v5.10/net/ipv4/
Dip_tunnel.c97 if (local != t->parms.iph.saddr || in ip_tunnel_lookup()
98 remote != t->parms.iph.daddr || in ip_tunnel_lookup()
102 if (!ip_tunnel_key_match(&t->parms, flags, key)) in ip_tunnel_lookup()
105 if (t->parms.link == link) in ip_tunnel_lookup()
112 if (remote != t->parms.iph.daddr || in ip_tunnel_lookup()
113 t->parms.iph.saddr != 0 || in ip_tunnel_lookup()
117 if (!ip_tunnel_key_match(&t->parms, flags, key)) in ip_tunnel_lookup()
120 if (t->parms.link == link) in ip_tunnel_lookup()
130 if ((local != t->parms.iph.saddr || t->parms.iph.daddr != 0) && in ip_tunnel_lookup()
131 (local != t->parms.iph.daddr || !ipv4_is_multicast(local))) in ip_tunnel_lookup()
[all …]
Dipip.c173 ipv4_update_pmtu(skb, net, info, t->parms.link, iph->protocol); in ipip_err()
178 ipv4_redirect(skb, net, t->parms.link, iph->protocol); in ipip_err()
182 if (t->parms.iph.daddr == 0) { in ipip_err()
187 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED) in ipip_err()
226 if (tunnel->parms.iph.protocol != ipproto && in ipip_tunnel_rcv()
227 tunnel->parms.iph.protocol != 0) in ipip_tunnel_rcv()
275 const struct iphdr *tiph = &tunnel->parms.iph; in ipip_tunnel_xmit()
381 memcpy(dev->dev_addr, &tunnel->parms.iph.saddr, 4); in ipip_tunnel_init()
382 memcpy(dev->broadcast, &tunnel->parms.iph.daddr, 4); in ipip_tunnel_init()
405 struct ip_tunnel_parm *parms, bool *collect_md, in ipip_netlink_parms() argument
[all …]
Dip_gre.c196 if (t->parms.iph.daddr == 0 || in ipgre_err()
197 ipv4_is_multicast(t->parms.iph.daddr)) in ipgre_err()
200 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED) in ipgre_err()
372 tnl_params = &tunnel->parms.iph; in __ipgre_rcv()
458 if (tunnel->parms.o_flags & TUNNEL_SEQ) in __gre_xmit()
463 tunnel->parms.o_flags, proto, tunnel->parms.o_key, in __gre_xmit()
642 tnl_params = &tunnel->parms.iph; in ipgre_xmit()
645 if (gre_handle_offloads(skb, !!(tunnel->parms.o_flags & TUNNEL_CSUM))) in ipgre_xmit()
686 tunnel->parms.o_flags &= ~TUNNEL_SEQ; in erspan_xmit()
688 erspan_build_header(skb, ntohl(tunnel->parms.o_key), in erspan_xmit()
[all …]
Dip_vti.c131 skb->mark = be32_to_cpu(tunnel->parms.i_key); in vti_rcv_cb()
170 struct ip_tunnel_parm *parms = &tunnel->parms; in vti_xmit() local
223 if (!vti_state_check(dst->xfrm, parms->iph.daddr, parms->iph.saddr)) { in vti_xmit()
300 fl.flowi_mark = be32_to_cpu(tunnel->parms.o_key); in vti_tunnel_xmit()
329 mark = be32_to_cpu(tunnel->parms.o_key); in vti4_err()
423 struct iphdr *iph = &tunnel->parms.iph; in vti_tunnel_init()
439 struct iphdr *iph = &tunnel->parms.iph; in vti_fb_tunnel_init()
529 struct ip_tunnel_parm *parms, in vti_netlink_parms() argument
532 memset(parms, 0, sizeof(*parms)); in vti_netlink_parms()
534 parms->iph.protocol = IPPROTO_IPIP; in vti_netlink_parms()
[all …]
/Linux-v5.10/net/decnet/
Ddn_dev.c209 static void dn_dev_sysctl_register(struct net_device *dev, struct dn_dev_parms *parms) in dn_dev_sysctl_register() argument
222 t->dn_dev_vars[i].data = ((char *)parms) + offset; in dn_dev_sysctl_register()
226 dev? dev->name : parms->name); in dn_dev_sysctl_register()
234 parms->sysctl = t; in dn_dev_sysctl_register()
237 static void dn_dev_sysctl_unregister(struct dn_dev_parms *parms) in dn_dev_sysctl_unregister() argument
239 if (parms->sysctl) { in dn_dev_sysctl_unregister()
240 struct dn_dev_sysctl_table *t = parms->sysctl; in dn_dev_sysctl_unregister()
241 parms->sysctl = NULL; in dn_dev_sysctl_unregister()
260 old = dn_db->parms.forwarding; in dn_forwarding_proc()
265 if (dn_db->parms.forwarding < 0) in dn_forwarding_proc()
[all …]
/Linux-v5.10/net/openvswitch/
Dvport-gre.c39 static struct vport *gre_tnl_create(const struct vport_parms *parms) in gre_tnl_create() argument
41 struct net *net = ovs_dp_get_net(parms->dp); in gre_tnl_create()
46 vport = ovs_vport_alloc(0, &ovs_gre_vport_ops, parms); in gre_tnl_create()
51 dev = gretap_fb_dev_create(net, parms->name, NET_NAME_USER); in gre_tnl_create()
70 static struct vport *gre_create(const struct vport_parms *parms) in gre_create() argument
74 vport = gre_tnl_create(parms); in gre_create()
78 return ovs_netdev_link(vport, parms->name); in gre_create()
Dvport-geneve.c51 static struct vport *geneve_tnl_create(const struct vport_parms *parms) in geneve_tnl_create() argument
53 struct net *net = ovs_dp_get_net(parms->dp); in geneve_tnl_create()
54 struct nlattr *options = parms->options; in geneve_tnl_create()
77 &ovs_geneve_vport_ops, parms); in geneve_tnl_create()
85 dev = geneve_dev_create_fb(net, parms->name, NET_NAME_USER, dst_port); in geneve_tnl_create()
106 static struct vport *geneve_create(const struct vport_parms *parms) in geneve_create() argument
110 vport = geneve_tnl_create(parms); in geneve_create()
114 return ovs_netdev_link(vport, parms->name); in geneve_create()
Dvport-vxlan.c71 static struct vport *vxlan_tnl_create(const struct vport_parms *parms) in vxlan_tnl_create() argument
73 struct net *net = ovs_dp_get_net(parms->dp); in vxlan_tnl_create()
74 struct nlattr *options = parms->options; in vxlan_tnl_create()
100 vport = ovs_vport_alloc(0, &ovs_vxlan_netdev_vport_ops, parms); in vxlan_tnl_create()
114 dev = vxlan_dev_create(net, parms->name, NET_NAME_USER, &conf); in vxlan_tnl_create()
135 static struct vport *vxlan_create(const struct vport_parms *parms) in vxlan_create() argument
139 vport = vxlan_tnl_create(parms); in vxlan_create()
143 return ovs_netdev_link(vport, parms->name); in vxlan_create()
Dvport.c121 const struct vport_parms *parms) in ovs_vport_alloc() argument
136 vport->dp = parms->dp; in ovs_vport_alloc()
137 vport->port_no = parms->port_no; in ovs_vport_alloc()
141 if (ovs_vport_set_upcall_portids(vport, parms->upcall_portids)) { in ovs_vport_alloc()
170 static struct vport_ops *ovs_vport_lookup(const struct vport_parms *parms) in ovs_vport_lookup() argument
175 if (ops->type == parms->type) in ovs_vport_lookup()
189 struct vport *ovs_vport_add(const struct vport_parms *parms) in ovs_vport_add() argument
194 ops = ovs_vport_lookup(parms); in ovs_vport_add()
201 vport = ops->create(parms); in ovs_vport_add()
218 request_module("vport-type-%d", parms->type); in ovs_vport_add()
[all …]
/Linux-v5.10/drivers/media/usb/cpia2/
Dcpia2_v4l.c660 static int cpia2_g_jpegcomp(struct file *file, void *fh, struct v4l2_jpegcompression *parms) in cpia2_g_jpegcomp() argument
664 memset(parms, 0, sizeof(*parms)); in cpia2_g_jpegcomp()
666 parms->quality = 80; // TODO: Can this be made meaningful? in cpia2_g_jpegcomp()
668 parms->jpeg_markers = V4L2_JPEG_MARKER_DQT | V4L2_JPEG_MARKER_DRI; in cpia2_g_jpegcomp()
670 parms->jpeg_markers |= V4L2_JPEG_MARKER_DHT; in cpia2_g_jpegcomp()
673 parms->APPn = cam->APPn; in cpia2_g_jpegcomp()
674 parms->APP_len = cam->APP_len; in cpia2_g_jpegcomp()
676 memcpy(parms->APP_data, cam->APP_data, cam->APP_len); in cpia2_g_jpegcomp()
677 parms->jpeg_markers |= V4L2_JPEG_MARKER_APP; in cpia2_g_jpegcomp()
680 parms->COM_len = cam->COM_len; in cpia2_g_jpegcomp()
[all …]
/Linux-v5.10/scripts/
Dextract-cert.c119 } parms; in main() local
121 parms.cert_id = cert_src; in main()
122 parms.cert = NULL; in main()
134 ENGINE_ctrl_cmd(e, "LOAD_CERT_CTRL", 0, &parms, NULL, 1); in main()
135 ERR(!parms.cert, "Get X.509 from PKCS#11"); in main()
136 write_cert(parms.cert); in main()
/Linux-v5.10/net/sched/
Dsch_red.c45 struct red_parms parms; member
77 q->vars.qavg = red_calc_qavg(&q->parms, in red_enqueue()
84 switch (red_action(&q->parms, &q->vars, q->vars.qavg)) { in red_enqueue()
198 opt.set.min = q->parms.qth_min >> q->parms.Wlog; in red_offload()
199 opt.set.max = q->parms.qth_max >> q->parms.Wlog; in red_offload()
200 opt.set.probability = q->parms.max_P; in red_offload()
288 red_set_parms(&q->parms, in __red_change()
324 red_adaptative_algo(&q->parms, &q->vars); in red_adaptative_timer()
414 .qth_min = q->parms.qth_min >> q->parms.Wlog, in red_dump()
415 .qth_max = q->parms.qth_max >> q->parms.Wlog, in red_dump()
[all …]
Dsch_gred.c42 struct red_parms parms; member
211 q->vars.qavg = red_calc_qavg(&q->parms, in gred_enqueue()
221 switch (red_action(&q->parms, &q->vars, q->vars.qavg + qavg)) { in gred_enqueue()
339 opt.set.tab[i].min = q->parms.qth_min >> q->parms.Wlog; in gred_offload()
340 opt.set.tab[i].max = q->parms.qth_max >> q->parms.Wlog; in gred_offload()
343 opt.set.tab[i].probability = q->parms.max_P; in gred_offload()
506 red_set_parms(&q->parms, in gred_change_vq()
760 struct nlattr *parms, *vqs, *opts = NULL; in gred_dump() local
782 max_p[i] = q ? q->parms.max_P : 0; in gred_dump()
791 parms = nla_nest_start_noflag(skb, TCA_GRED_PARMS); in gred_dump()
[all …]
Dsch_choke.c53 struct red_parms parms; member
217 const struct red_parms *p = &q->parms; in choke_enqueue()
413 red_set_parms(&q->parms, ctl->qth_min, ctl->qth_max, ctl->Wlog, in choke_change()
440 .qth_min = q->parms.qth_min >> q->parms.Wlog, in choke_dump()
441 .qth_max = q->parms.qth_max >> q->parms.Wlog, in choke_dump()
442 .Wlog = q->parms.Wlog, in choke_dump()
443 .Plog = q->parms.Plog, in choke_dump()
444 .Scell_log = q->parms.Scell_log, in choke_dump()
452 nla_put_u32(skb, TCA_CHOKE_MAX_P, q->parms.max_P)) in choke_dump()
/Linux-v5.10/net/core/
Dneighbour.c412 n->parms = neigh_parms_clone(&tbl->parms); in neigh_alloc()
611 if (n->parms->neigh_setup && in ___neigh_create()
612 (error = n->parms->neigh_setup(n)) < 0) { in ___neigh_create()
617 n->confirmed = jiffies - (NEIGH_VAR(n->parms, BASE_REACHABLE_TIME) << 1); in ___neigh_create()
628 if (n->parms->dead) { in ___neigh_create()
818 static void neigh_parms_destroy(struct neigh_parms *parms);
820 static inline void neigh_parms_put(struct neigh_parms *parms) in neigh_parms_put() argument
822 if (refcount_dec_and_test(&parms->refcnt)) in neigh_parms_put()
823 neigh_parms_destroy(parms); in neigh_parms_put()
854 neigh_parms_put(neigh->parms); in neigh_destroy()
[all …]
/Linux-v5.10/include/net/
Dneighbour.h137 struct neigh_parms *parms; member
211 struct neigh_parms parms; member
344 void neigh_parms_release(struct neigh_table *tbl, struct neigh_parms *parms);
347 struct net *neigh_parms_net(const struct neigh_parms *parms) in neigh_parms_net() argument
349 return read_pnet(&parms->net); in neigh_parms_net()
407 static inline void __neigh_parms_put(struct neigh_parms *parms) in __neigh_parms_put() argument
409 refcount_dec(&parms->refcnt); in __neigh_parms_put()
412 static inline struct neigh_parms *neigh_parms_clone(struct neigh_parms *parms) in neigh_parms_clone() argument
414 refcount_inc(&parms->refcnt); in neigh_parms_clone()
415 return parms; in neigh_parms_clone()

1234