Home
last modified time | relevance | path

Searched refs:gfp_flags (Results 1 – 20 of 20) sorted by relevance

/net/sunrpc/
Dbackchannel_rqst.c78 static int xprt_alloc_xdr_buf(struct xdr_buf *buf, gfp_t gfp_flags) in xprt_alloc_xdr_buf() argument
82 page = alloc_page(gfp_flags); in xprt_alloc_xdr_buf()
90 struct rpc_rqst *xprt_alloc_bc_req(struct rpc_xprt *xprt, gfp_t gfp_flags) in xprt_alloc_bc_req() argument
95 req = kzalloc(sizeof(*req), gfp_flags); in xprt_alloc_bc_req()
103 if (xprt_alloc_xdr_buf(&req->rq_rcv_buf, gfp_flags) < 0) { in xprt_alloc_bc_req()
110 if (xprt_alloc_xdr_buf(&req->rq_snd_buf, gfp_flags) < 0) { in xprt_alloc_bc_req()
Daddr.c269 char *rpc_sockaddr2uaddr(const struct sockaddr *sap, gfp_t gfp_flags) in rpc_sockaddr2uaddr() argument
297 return kstrdup(addrbuf, gfp_flags); in rpc_sockaddr2uaddr()
Dxprtmultipath.c98 gfp_t gfp_flags) in xprt_switch_alloc() argument
102 xps = kmalloc(sizeof(*xps), gfp_flags); in xprt_switch_alloc()
Dxdr.c1665 size_t maxlen, gfp_t gfp_flags) in xdr_stream_decode_opaque_dup() argument
1672 *ptr = kmemdup(p, ret, gfp_flags); in xdr_stream_decode_opaque_dup()
1723 size_t maxlen, gfp_t gfp_flags) in xdr_stream_decode_string_dup() argument
1730 char *s = kmalloc(ret + 1, gfp_flags); in xdr_stream_decode_string_dup()
/net/xdp/
Dxsk_queue.c34 gfp_t gfp_flags; in xskq_create() local
44 gfp_flags = GFP_KERNEL | __GFP_ZERO | __GFP_NOWARN | in xskq_create()
49 q->ring = (struct xdp_ring *)__get_free_pages(gfp_flags, in xskq_create()
/net/wimax/
Dop-msg.c108 gfp_t gfp_flags) in wimax_msg_alloc() argument
120 skb = genlmsg_new(msg_size, gfp_flags); in wimax_msg_alloc()
295 const void *buf, size_t size, gfp_t gfp_flags) in wimax_msg() argument
300 skb = wimax_msg_alloc(wimax_dev, pipe_name, buf, size, gfp_flags); in wimax_msg()
/net/ceph/
Dsnapshot.c28 gfp_t gfp_flags) in ceph_create_snap_context() argument
35 snapc = kzalloc(size, gfp_flags); in ceph_create_snap_context()
Dpagelist.c9 struct ceph_pagelist *ceph_pagelist_alloc(gfp_t gfp_flags) in ceph_pagelist_alloc() argument
13 pl = kmalloc(sizeof(*pl), gfp_flags); in ceph_pagelist_alloc()
Dosd_client.c580 gfp_t gfp_flags) in ceph_osdc_alloc_request() argument
586 req = mempool_alloc(osdc->req_mempool, gfp_flags); in ceph_osdc_alloc_request()
588 req = kmem_cache_alloc(ceph_osd_request_cache, gfp_flags); in ceph_osdc_alloc_request()
591 req = kmalloc(struct_size(req, r_ops, num_ops), gfp_flags); in ceph_osdc_alloc_request()
/net/atm/
Datm_misc.c27 gfp_t gfp_flags) in atm_alloc_charge() argument
34 struct sk_buff *skb = alloc_skb(pdu_size, gfp_flags); in atm_alloc_charge()
/net/netfilter/
Dnf_nat_masquerade.c100 gfp_t gfp_flags) in nf_nat_masq_schedule() argument
114 w = kzalloc(sizeof(*w), gfp_flags); in nf_nat_masq_schedule()
Dnf_tables_api.c3559 gfp_t gfp_flags) in nf_tables_set_notify() argument
3569 skb = nlmsg_new(NLMSG_GOODSIZE, gfp_flags); in nf_tables_set_notify()
3580 gfp_flags); in nf_tables_set_notify()
/net/ipv6/
Daddrconf_core.c181 struct fib6_config *cfg, gfp_t gfp_flags, in eafnosupport_fib6_nh_init() argument
Droute.c3433 struct fib6_config *cfg, gfp_t gfp_flags, in fib6_nh_init() argument
3526 cfg->fc_encap_type, cfg, gfp_flags, extack); in fib6_nh_init()
3531 fib6_nh->rt6i_pcpu = alloc_percpu_gfp(struct rt6_info *, gfp_flags); in fib6_nh_init()
3592 gfp_t gfp_flags, in ip6_route_info_create() argument
3662 rt = fib6_info_alloc(gfp_flags, !nh); in ip6_route_info_create()
3714 err = fib6_nh_init(net, rt->fib6_nh, cfg, gfp_flags, extack); in ip6_route_info_create()
3752 int ip6_route_add(struct fib6_config *cfg, gfp_t gfp_flags, in ip6_route_add() argument
3758 rt = ip6_route_info_create(cfg, gfp_flags, extack); in ip6_route_add()
4424 bool anycast, gfp_t gfp_flags) in addrconf_f6i_alloc() argument
4446 f6i = ip6_route_info_create(&cfg, gfp_flags, NULL); in addrconf_f6i_alloc()
Dip6_fib.c146 struct fib6_info *fib6_info_alloc(gfp_t gfp_flags, bool with_fib6_nh) in fib6_info_alloc() argument
154 f6i = kzalloc(sz, gfp_flags); in fib6_info_alloc()
Daddrconf.c1067 gfp_t gfp_flags = can_block ? GFP_KERNEL : GFP_ATOMIC; in ipv6_add_addr() local
1108 ifa = kzalloc(sizeof(*ifa), gfp_flags); in ipv6_add_addr()
1114 f6i = addrconf_f6i_alloc(net, idev, cfg->pfx, false, gfp_flags); in ipv6_add_addr()
2416 u32 flags, gfp_t gfp_flags) in addrconf_prefix_route() argument
2441 ip6_route_add(&cfg, gfp_flags, NULL); in addrconf_prefix_route()
/net/mac80211/
Dmesh_pathtbl.c365 const u8 *dst, gfp_t gfp_flags) in mesh_path_new() argument
369 new_mpath = kzalloc(sizeof(struct mesh_path), gfp_flags); in mesh_path_new()
/net/netlabel/
Dnetlabel_kapi.c557 gfp_t gfp_flags) in _netlbl_catmap_getnode() argument
582 iter = netlbl_catmap_alloc(gfp_flags); in _netlbl_catmap_getnode()
/net/ipv4/
Dfib_semantics.c574 u16 encap_type, void *cfg, gfp_t gfp_flags, in fib_nh_common_init() argument
580 gfp_flags); in fib_nh_common_init()
/net/packet/
Daf_packet.c4280 gfp_t gfp_flags = GFP_KERNEL | __GFP_COMP | in alloc_one_pg_vec_page() local
4283 buffer = (char *) __get_free_pages(gfp_flags, order); in alloc_one_pg_vec_page()
4293 gfp_flags &= ~__GFP_NORETRY; in alloc_one_pg_vec_page()
4294 buffer = (char *) __get_free_pages(gfp_flags, order); in alloc_one_pg_vec_page()