Home
last modified time | relevance | path

Searched refs:gfp_flags (Results 1 – 21 of 21) 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()
Dxprtmultipath.c100 static int xprt_switch_alloc_id(struct rpc_xprt_switch *xps, gfp_t gfp_flags) in xprt_switch_alloc_id() argument
104 id = ida_simple_get(&rpc_xprtswitch_ids, 0, 0, gfp_flags); in xprt_switch_alloc_id()
126 gfp_t gfp_flags) in xprt_switch_alloc() argument
130 xps = kmalloc(sizeof(*xps), gfp_flags); in xprt_switch_alloc()
134 xprt_switch_alloc_id(xps, gfp_flags); in xprt_switch_alloc()
140 rpc_sysfs_xprt_switch_setup(xps, xprt, gfp_flags); in xprt_switch_alloc()
143 rpc_sysfs_xprt_setup(xps, xprt, gfp_flags); in xprt_switch_alloc()
Dsysfs.c486 gfp_t gfp_flags) in rpc_sysfs_xprt_switch_alloc() argument
490 p = kzalloc(sizeof(*p), gfp_flags); in rpc_sysfs_xprt_switch_alloc()
506 gfp_t gfp_flags) in rpc_sysfs_xprt_alloc() argument
510 p = kzalloc(sizeof(*p), gfp_flags); in rpc_sysfs_xprt_alloc()
554 gfp_t gfp_flags) in rpc_sysfs_xprt_switch_setup() argument
565 xprt_switch, net, gfp_flags); in rpc_sysfs_xprt_switch_setup()
578 gfp_t gfp_flags) in rpc_sysfs_xprt_setup() argument
587 rpc_xprt = rpc_sysfs_xprt_alloc(&switch_obj->kobject, xprt, gfp_flags); in rpc_sysfs_xprt_setup()
Dsysfs.h36 struct rpc_xprt *xprt, gfp_t gfp_flags);
39 struct rpc_xprt *xprt, gfp_t gfp_flags);
Daddr.c265 char *rpc_sockaddr2uaddr(const struct sockaddr *sap, gfp_t gfp_flags) in rpc_sockaddr2uaddr() argument
293 return kstrdup(addrbuf, gfp_flags); in rpc_sockaddr2uaddr()
Dxdr.c2122 size_t maxlen, gfp_t gfp_flags) in xdr_stream_decode_opaque_dup() argument
2129 *ptr = kmemdup(p, ret, gfp_flags); in xdr_stream_decode_opaque_dup()
2180 size_t maxlen, gfp_t gfp_flags) in xdr_stream_decode_string_dup() argument
2187 char *s = kmemdup_nul(p, ret, gfp_flags); in xdr_stream_decode_string_dup()
/net/xdp/
Dxsk_queue.c26 gfp_t gfp_flags; in xskq_create() local
36 gfp_flags = GFP_KERNEL | __GFP_ZERO | __GFP_NOWARN | in xskq_create()
40 q->ring = (struct xdp_ring *)__get_free_pages(gfp_flags, in xskq_create()
/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.c544 gfp_t gfp_flags) in ceph_osdc_alloc_request() argument
550 req = mempool_alloc(osdc->req_mempool, gfp_flags); in ceph_osdc_alloc_request()
552 req = kmem_cache_alloc(ceph_osd_request_cache, gfp_flags); in ceph_osdc_alloc_request()
555 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.c4254 gfp_t gfp_flags) in nf_tables_set_notify() argument
4266 skb = nlmsg_new(NLMSG_GOODSIZE, 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.c3522 struct fib6_config *cfg, gfp_t gfp_flags, in fib6_nh_init() argument
3620 cfg->fc_encap_type, cfg, gfp_flags, extack); in fib6_nh_init()
3625 fib6_nh->rt6i_pcpu = alloc_percpu_gfp(struct rt6_info *, gfp_flags); in fib6_nh_init()
3704 gfp_t gfp_flags, in ip6_route_info_create() argument
3774 rt = fib6_info_alloc(gfp_flags, !nh); in ip6_route_info_create()
3824 err = fib6_nh_init(net, rt->fib6_nh, cfg, gfp_flags, extack); in ip6_route_info_create()
3862 int ip6_route_add(struct fib6_config *cfg, gfp_t gfp_flags, in ip6_route_add() argument
3868 rt = ip6_route_info_create(cfg, gfp_flags, extack); in ip6_route_add()
4547 bool anycast, gfp_t gfp_flags) in addrconf_f6i_alloc() argument
4569 f6i = ip6_route_info_create(&cfg, gfp_flags, NULL); in addrconf_f6i_alloc()
Dip6_fib.c147 struct fib6_info *fib6_info_alloc(gfp_t gfp_flags, bool with_fib6_nh) in fib6_info_alloc() argument
155 f6i = kzalloc(sz, gfp_flags); in fib6_info_alloc()
Daddrconf.c1061 gfp_t gfp_flags = can_block ? GFP_KERNEL : GFP_ATOMIC; in ipv6_add_addr() local
1102 ifa = kzalloc(sizeof(*ifa), gfp_flags | __GFP_ACCOUNT); in ipv6_add_addr()
1108 f6i = addrconf_f6i_alloc(net, idev, cfg->pfx, false, gfp_flags); in ipv6_add_addr()
2425 u32 flags, gfp_t gfp_flags) in addrconf_prefix_route() argument
2450 ip6_route_add(&cfg, gfp_flags, NULL); in addrconf_prefix_route()
/net/mac80211/
Dmesh_pathtbl.c363 const u8 *dst, gfp_t gfp_flags) in mesh_path_new() argument
367 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/packet/
Daf_packet.c4286 gfp_t gfp_flags = GFP_KERNEL | __GFP_COMP | in alloc_one_pg_vec_page() local
4289 buffer = (char *) __get_free_pages(gfp_flags, order); in alloc_one_pg_vec_page()
4299 gfp_flags &= ~__GFP_NORETRY; in alloc_one_pg_vec_page()
4300 buffer = (char *) __get_free_pages(gfp_flags, order); in alloc_one_pg_vec_page()
/net/ipv4/
Dfib_semantics.c584 void *cfg, gfp_t gfp_flags, in fib_nh_common_init() argument
590 gfp_flags); in fib_nh_common_init()