Home
last modified time | relevance | path

Searched refs:kp (Results 1 – 13 of 13) sorted by relevance

/net/batman-adv/
Dbat_algo.c118 static int batadv_param_set_ra(const char *val, const struct kernel_param *kp) in batadv_param_set_ra() argument
133 return param_set_copystring(algo_name, kp); in batadv_param_set_ra()
/net/ipv6/
Dsit.c305 struct ip_tunnel_prl kprl, *kp; in ipip6_tunnel_get_prl() local
322 kp = (cmax <= 1 || capable(CAP_NET_ADMIN)) ? in ipip6_tunnel_get_prl()
323 kcalloc(cmax, sizeof(*kp), GFP_KERNEL_ACCOUNT | __GFP_NOWARN) : in ipip6_tunnel_get_prl()
328 if (!kp) { in ipip6_tunnel_get_prl()
334 kp = kcalloc(ca, sizeof(*kp), GFP_ATOMIC | __GFP_ACCOUNT | in ipip6_tunnel_get_prl()
336 if (!kp) { in ipip6_tunnel_get_prl()
348 kp[c].addr = prl->addr; in ipip6_tunnel_get_prl()
349 kp[c].flags = prl->flags; in ipip6_tunnel_get_prl()
357 len = sizeof(*kp) * c; in ipip6_tunnel_get_prl()
359 if ((len && copy_to_user(a + 1, kp, len)) || put_user(len, &a->datalen)) in ipip6_tunnel_get_prl()
[all …]
/net/sunrpc/
Dauth.c56 static int param_set_hashtbl_sz(const char *val, const struct kernel_param *kp) in param_set_hashtbl_sz() argument
70 *(unsigned int *)kp->arg = nbits; in param_set_hashtbl_sz()
76 static int param_get_hashtbl_sz(char *buffer, const struct kernel_param *kp) in param_get_hashtbl_sz() argument
80 nbits = *(unsigned int *)kp->arg; in param_get_hashtbl_sz()
Dsvc.c75 param_set_pool_mode(const char *val, const struct kernel_param *kp) in param_set_pool_mode() argument
77 int *ip = (int *)kp->arg; in param_set_pool_mode()
105 param_get_pool_mode(char *buf, const struct kernel_param *kp) in param_get_pool_mode() argument
107 int *ip = (int *)kp->arg; in param_get_pool_mode()
Dxprtsock.c3671 static int param_set_portnr(const char *val, const struct kernel_param *kp) in param_set_portnr() argument
3673 return param_set_uint_minmax(val, kp, in param_set_portnr()
3690 const struct kernel_param *kp) in param_set_slot_table_size() argument
3692 return param_set_uint_minmax(val, kp, in param_set_slot_table_size()
3706 const struct kernel_param *kp) in param_set_max_slot_table_size() argument
3708 return param_set_uint_minmax(val, kp, in param_set_max_slot_table_size()
/net/ipv4/
Dtcp_dctcp.c62 static int dctcp_shift_g_set(const char *val, const struct kernel_param *kp) in dctcp_shift_g_set() argument
64 return param_set_uint_minmax(val, kp, 0, 10); in dctcp_shift_g_set()
/net/netfilter/
Dnf_nat_irc.c102 static int warn_set(const char *val, const struct kernel_param *kp) in warn_set() argument
Dnf_nat_ftp.c130 static int warn_set(const char *val, const struct kernel_param *kp) in warn_set() argument
Dnf_conntrack_core.c2651 int nf_conntrack_set_hashsize(const char *val, const struct kernel_param *kp) in nf_conntrack_set_hashsize() argument
2661 return param_set_uint(val, kp); in nf_conntrack_set_hashsize()
/net/sched/
Dcls_u32.c453 struct tc_u_knode __rcu **kp; in u32_delete_key() local
458 kp = &ht->ht[TC_U32_HASH(key->handle)]; in u32_delete_key()
459 for (pkp = rtnl_dereference(*kp); pkp; in u32_delete_key()
460 kp = &pkp->next, pkp = rtnl_dereference(*kp)) { in u32_delete_key()
462 RCU_INIT_POINTER(*kp, key->next); in u32_delete_key()
/net/xfrm/
Dxfrm_user.c2025 struct xfrm_tmpl *kp = &xp->xfrm_vec[i]; in copy_to_user_tmpl() local
2028 memcpy(&up->id, &kp->id, sizeof(up->id)); in copy_to_user_tmpl()
2029 up->family = kp->encap_family; in copy_to_user_tmpl()
2030 memcpy(&up->saddr, &kp->saddr, sizeof(up->saddr)); in copy_to_user_tmpl()
2031 up->reqid = kp->reqid; in copy_to_user_tmpl()
2032 up->mode = kp->mode; in copy_to_user_tmpl()
2033 up->share = kp->share; in copy_to_user_tmpl()
2034 up->optional = kp->optional; in copy_to_user_tmpl()
2035 up->aalgos = kp->aalgos; in copy_to_user_tmpl()
2036 up->ealgos = kp->ealgos; in copy_to_user_tmpl()
[all …]
/net/ceph/
Dceph_common.c51 const struct kernel_param *kp) in param_get_supported_features() argument
/net/bluetooth/
Dsmp.c2957 struct smp_cmd_keypress_notify *kp = (void *) skb->data; in smp_cmd_keypress_notify() local
2959 bt_dev_dbg(conn->hcon->hdev, "value 0x%02x", kp->value); in smp_cmd_keypress_notify()