Home
last modified time | relevance | path

Searched refs:gfp (Results 1 – 25 of 98) sorted by relevance

1234

/drivers/base/
Ddevres.c85 size_t size, gfp_t gfp) in alloc_dr() argument
90 dr = kmalloc_track_caller(tot_size, gfp); in alloc_dr()
109 void * __devres_alloc(dr_release_t release, size_t size, gfp_t gfp, in __devres_alloc() argument
114 dr = alloc_dr(release, size, gfp | __GFP_ZERO); in __devres_alloc()
135 void * devres_alloc(dr_release_t release, size_t size, gfp_t gfp) in devres_alloc() argument
139 dr = alloc_dr(release, size, gfp | __GFP_ZERO); in devres_alloc()
532 void * devres_open_group(struct device *dev, void *id, gfp_t gfp) in devres_open_group() argument
537 grp = kmalloc(sizeof(*grp), gfp); in devres_open_group()
774 void * devm_kmalloc(struct device *dev, size_t size, gfp_t gfp) in devm_kmalloc() argument
779 dr = alloc_dr(devm_kmalloc_release, size, gfp); in devm_kmalloc()
[all …]
Ddma-mapping.c66 dma_addr_t *dma_handle, gfp_t gfp) in dmam_alloc_coherent() argument
71 dr = devres_alloc(dmam_coherent_release, sizeof(*dr), gfp); in dmam_alloc_coherent()
75 vaddr = dma_alloc_coherent(dev, size, dma_handle, gfp); in dmam_alloc_coherent()
125 dma_addr_t *dma_handle, gfp_t gfp) in dmam_alloc_noncoherent() argument
130 dr = devres_alloc(dmam_noncoherent_release, sizeof(*dr), gfp); in dmam_alloc_noncoherent()
134 vaddr = dma_alloc_noncoherent(dev, size, dma_handle, gfp); in dmam_alloc_noncoherent()
Ddevcoredump.c157 gfp_t gfp) in dev_coredumpv() argument
159 dev_coredumpm(dev, NULL, data, datalen, gfp, devcd_readv, vfree); in dev_coredumpv()
186 const void *data, size_t datalen, gfp_t gfp, in dev_coredumpm() argument
205 devcd = kzalloc(sizeof(*devcd), gfp); in dev_coredumpm()
/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c174 struct mlx4_buf *buf, gfp_t gfp) in mlx4_buf_alloc() argument
183 size, &t, gfp); in mlx4_buf_alloc()
203 gfp); in mlx4_buf_alloc()
210 &t, gfp); in mlx4_buf_alloc()
221 pages = kmalloc(sizeof *pages * buf->nbufs, gfp); in mlx4_buf_alloc()
264 gfp_t gfp) in mlx4_alloc_db_pgdir() argument
268 pgdir = kzalloc(sizeof *pgdir, gfp); in mlx4_alloc_db_pgdir()
276 &pgdir->db_dma, gfp); in mlx4_alloc_db_pgdir()
316 int mlx4_db_alloc(struct mlx4_dev *dev, struct mlx4_db *db, int order, gfp_t gfp) in mlx4_db_alloc() argument
328 pgdir = mlx4_alloc_db_pgdir(&(dev->pdev->dev), gfp); in mlx4_db_alloc()
Dqp.c275 int __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp) in __mlx4_qp_alloc_icm() argument
281 err = mlx4_table_get(dev, &qp_table->qp_table, qpn, gfp); in __mlx4_qp_alloc_icm()
285 err = mlx4_table_get(dev, &qp_table->auxc_table, qpn, gfp); in __mlx4_qp_alloc_icm()
289 err = mlx4_table_get(dev, &qp_table->altc_table, qpn, gfp); in __mlx4_qp_alloc_icm()
293 err = mlx4_table_get(dev, &qp_table->rdmarc_table, qpn, gfp); in __mlx4_qp_alloc_icm()
297 err = mlx4_table_get(dev, &qp_table->cmpt_table, qpn, gfp); in __mlx4_qp_alloc_icm()
319 static int mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp) in mlx4_qp_alloc_icm() argument
329 return __mlx4_qp_alloc_icm(dev, qpn, gfp); in mlx4_qp_alloc_icm()
358 int mlx4_qp_alloc(struct mlx4_dev *dev, int qpn, struct mlx4_qp *qp, gfp_t gfp) in mlx4_qp_alloc() argument
369 err = mlx4_qp_alloc_icm(dev, qpn, gfp); in mlx4_qp_alloc()
Den_rx.c57 gfp_t gfp = _gfp; in mlx4_alloc_pages() local
60 gfp |= __GFP_COMP | __GFP_NOWARN; in mlx4_alloc_pages()
61 page = alloc_pages(gfp, order); in mlx4_alloc_pages()
90 gfp_t gfp) in mlx4_en_alloc_frags() argument
107 if (mlx4_alloc_pages(priv, &page_alloc[i], frag_info, gfp)) in mlx4_en_alloc_frags()
231 gfp_t gfp) in mlx4_en_prepare_rx_desc() argument
237 return mlx4_en_alloc_frags(priv, rx_desc, frags, ring->page_alloc, gfp); in mlx4_en_prepare_rx_desc()
Dmr.c491 int __mlx4_mpt_alloc_icm(struct mlx4_dev *dev, u32 index, gfp_t gfp) in __mlx4_mpt_alloc_icm() argument
495 return mlx4_table_get(dev, &mr_table->dmpt_table, index, gfp); in __mlx4_mpt_alloc_icm()
498 static int mlx4_mpt_alloc_icm(struct mlx4_dev *dev, u32 index, gfp_t gfp) in mlx4_mpt_alloc_icm() argument
509 return __mlx4_mpt_alloc_icm(dev, index, gfp); in mlx4_mpt_alloc_icm()
802 struct mlx4_buf *buf, gfp_t gfp) in mlx4_buf_write_mtt() argument
809 gfp); in mlx4_buf_write_mtt()
/drivers/usb/storage/
Duas.c77 struct uas_dev_info *devinfo, gfp_t gfp);
414 static struct urb *uas_alloc_data_urb(struct uas_dev_info *devinfo, gfp_t gfp, in uas_alloc_data_urb() argument
420 struct urb *urb = usb_alloc_urb(0, gfp); in uas_alloc_data_urb()
437 static struct urb *uas_alloc_sense_urb(struct uas_dev_info *devinfo, gfp_t gfp, in uas_alloc_sense_urb() argument
442 struct urb *urb = usb_alloc_urb(0, gfp); in uas_alloc_sense_urb()
448 iu = kzalloc(sizeof(*iu), gfp); in uas_alloc_sense_urb()
463 static struct urb *uas_alloc_cmd_urb(struct uas_dev_info *devinfo, gfp_t gfp, in uas_alloc_cmd_urb() argument
468 struct urb *urb = usb_alloc_urb(0, gfp); in uas_alloc_cmd_urb()
479 iu = kzalloc(sizeof(*iu) + len, gfp); in uas_alloc_cmd_urb()
506 static struct urb *uas_submit_sense_urb(struct scsi_cmnd *cmnd, gfp_t gfp) in uas_submit_sense_urb() argument
[all …]
/drivers/virtio/
Dvirtio_ring.c102 static struct vring_desc *alloc_indirect(unsigned int total_sg, gfp_t gfp) in alloc_indirect() argument
112 gfp &= ~(__GFP_HIGHMEM | __GFP_HIGH); in alloc_indirect()
114 desc = kmalloc(total_sg * sizeof(struct vring_desc), gfp); in alloc_indirect()
129 gfp_t gfp) in virtqueue_add() argument
168 desc = alloc_indirect(total_sg, gfp); in virtqueue_add()
277 gfp_t gfp) in virtqueue_add_sgs() argument
287 return virtqueue_add(_vq, sgs, total_sg, out_sgs, in_sgs, data, gfp); in virtqueue_add_sgs()
307 gfp_t gfp) in virtqueue_add_outbuf() argument
309 return virtqueue_add(vq, &sg, num, 1, 0, data, gfp); in virtqueue_add_outbuf()
329 gfp_t gfp) in virtqueue_add_inbuf() argument
[all …]
/drivers/md/bcache/
Dutil.h39 #define init_heap(heap, _size, gfp) \ argument
47 (heap)->data = kmalloc(_bytes, (gfp)); \
48 if ((!(heap)->data) && ((gfp) & GFP_KERNEL)) \
131 #define __init_fifo(fifo, gfp) \ argument
144 (fifo)->data = kmalloc(_bytes, (gfp)); \
145 if ((!(fifo)->data) && ((gfp) & GFP_KERNEL)) \
150 #define init_fifo_exact(fifo, _size, gfp) \ argument
153 __init_fifo(fifo, gfp); \
156 #define init_fifo(fifo, _size, gfp) \ argument
161 __init_fifo(fifo, gfp); \
/drivers/usb/wusbcore/
Dwa-rpipe.c194 gfp_t gfp) in rpipe_get_idle() argument
201 rpipe = kzalloc(sizeof(*rpipe), gfp); in rpipe_get_idle()
314 struct usb_host_endpoint *ep, struct urb *urb, gfp_t gfp) in rpipe_aim() argument
398 const struct urb *urb, gfp_t gfp) in rpipe_check_aim() argument
438 struct urb *urb, gfp_t gfp) in rpipe_get_by_ep() argument
449 result = rpipe_check_aim(rpipe, wa, ep, urb, gfp); in rpipe_get_by_ep()
461 result = rpipe_get_idle(&rpipe, wa, 1 << eptype, gfp); in rpipe_get_by_ep()
464 result = rpipe_aim(rpipe, wa, ep, urb, gfp); in rpipe_get_by_ep()
/drivers/infiniband/hw/qib/
Dqib_qp.c104 gfp_t gfp) in get_map_page() argument
106 unsigned long page = get_zeroed_page(gfp); in get_map_page()
125 enum ib_qp_type type, u8 port, gfp_t gfp) in alloc_qpn() argument
155 get_map_page(qpt, map, gfp); in alloc_qpn()
987 gfp_t gfp; in qib_create_qp() local
1000 gfp = init_attr->create_flags & IB_QP_CREATE_USE_GFP_NOIO ? in qib_create_qp()
1034 gfp, PAGE_KERNEL); in qib_create_qp()
1050 qp = kzalloc(sz + sg_list_sz, gfp); in qib_create_qp()
1056 qp->s_hdr = kzalloc(sizeof(*qp->s_hdr), gfp); in qib_create_qp()
1071 if (gfp != GFP_NOIO) in qib_create_qp()
[all …]
/drivers/net/
Dvirtio_net.c538 static int add_recvbuf_small(struct receive_queue *rq, gfp_t gfp) in add_recvbuf_small() argument
545 skb = __netdev_alloc_skb_ip_align(vi->dev, GOOD_PACKET_LEN, gfp); in add_recvbuf_small()
556 err = virtqueue_add_inbuf(rq->vq, rq->sg, 2, skb, gfp); in add_recvbuf_small()
563 static int add_recvbuf_big(struct receive_queue *rq, gfp_t gfp) in add_recvbuf_big() argument
573 first = get_a_page(rq, gfp); in add_recvbuf_big()
586 first = get_a_page(rq, gfp); in add_recvbuf_big()
604 first, gfp); in add_recvbuf_big()
621 static int add_recvbuf_mergeable(struct receive_queue *rq, gfp_t gfp) in add_recvbuf_mergeable() argument
630 if (unlikely(!skb_page_frag_refill(len, alloc_frag, gfp))) in add_recvbuf_mergeable()
649 err = virtqueue_add_inbuf(rq->vq, rq->sg, 1, (void *)ctx, gfp); in add_recvbuf_mergeable()
[all …]
/drivers/vhost/
Dvringh.c175 static int resize_iovec(struct vringh_kiov *iov, gfp_t gfp) in resize_iovec() argument
185 new = krealloc(iov->iov, new_num * sizeof(struct iovec), gfp); in resize_iovec()
187 new = kmalloc(new_num * sizeof(struct iovec), gfp); in resize_iovec()
256 gfp_t gfp, in __vringh_iov() argument
347 err = resize_iovec(iov, gfp); in __vringh_iov()
885 gfp_t gfp) in vringh_getdesc_kern() argument
899 gfp, copydesc_kern); in vringh_getdesc_kern()
/drivers/crypto/ccp/
Dccp-crypto-main.c273 gfp_t gfp; in ccp_crypto_enqueue_request() local
275 gfp = req->flags & CRYPTO_TFM_REQ_MAY_SLEEP ? GFP_KERNEL : GFP_ATOMIC; in ccp_crypto_enqueue_request()
277 crypto_cmd = kzalloc(sizeof(*crypto_cmd), gfp); in ccp_crypto_enqueue_request()
Dccp-crypto-aes-cmac.c67 gfp_t gfp; in ccp_do_cmac_update() local
110 gfp = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP ? in ccp_do_cmac_update()
112 ret = sg_alloc_table(&rctx->data_sg, sg_count, gfp); in ccp_do_cmac_update()
Dccp-crypto-sha.c66 gfp_t gfp; in ccp_do_sha_update() local
100 gfp = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP ? in ccp_do_sha_update()
103 ret = sg_alloc_table(&rctx->data_sg, sg_count, gfp); in ccp_do_sha_update()
/drivers/staging/lustre/lustre/libcfs/
Dtracefile.c69 static struct cfs_trace_page *cfs_tage_alloc(gfp_t gfp) in cfs_tage_alloc() argument
82 gfp |= __GFP_NOWARN; in cfs_tage_alloc()
83 page = alloc_page(gfp); in cfs_tage_alloc()
87 tage = kmalloc(sizeof(*tage), gfp); in cfs_tage_alloc()
117 int cfs_trace_refill_stock(struct cfs_trace_cpu_data *tcd, gfp_t gfp, in cfs_trace_refill_stock() argument
130 tage = cfs_tage_alloc(gfp); in cfs_trace_refill_stock()
/drivers/infiniband/hw/cxgb3/
Diwch_cm.c109 static struct sk_buff *get_skb(struct sk_buff *skb, int len, gfp_t gfp);
266 static void *alloc_ep(int size, gfp_t gfp) in alloc_ep() argument
270 epc = kzalloc(size, gfp); in alloc_ep()
324 static struct sk_buff *get_skb(struct sk_buff *skb, int len, gfp_t gfp) in get_skb() argument
330 skb = alloc_skb(len, gfp); in get_skb()
387 static int send_halfclose(struct iwch_ep *ep, gfp_t gfp) in send_halfclose() argument
393 skb = get_skb(NULL, sizeof(*req), gfp); in send_halfclose()
407 static int send_abort(struct iwch_ep *ep, struct sk_buff *skb, gfp_t gfp) in send_abort() argument
412 skb = get_skb(skb, sizeof(*req), gfp); in send_abort()
661 static void abort_connection(struct iwch_ep *ep, struct sk_buff *skb, gfp_t gfp) in abort_connection() argument
[all …]
/drivers/scsi/cxgbi/
Dlibcxgbi.h418 static inline struct sk_buff *alloc_wr(int wrlen, int dlen, gfp_t gfp) in alloc_wr() argument
420 struct sk_buff *skb = alloc_skb(wrlen + dlen, gfp); in alloc_wr()
676 gfp_t gfp) in cxgbi_alloc_big_mem() argument
678 void *p = kzalloc(size, gfp | __GFP_NOWARN); in cxgbi_alloc_big_mem()
/drivers/crypto/qce/
Dablkcipher.c72 gfp_t gfp; in qce_ablkcipher_async_req_handle() local
95 gfp = (req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP) ? in qce_ablkcipher_async_req_handle()
98 ret = sg_alloc_table(&rctx->dst_tbl, rctx->dst_nents, gfp); in qce_ablkcipher_async_req_handle()
/drivers/net/wireless/ath/carl9170/
Dusb.c314 static int carl9170_usb_submit_rx_urb(struct ar9170 *ar, gfp_t gfp) in carl9170_usb_submit_rx_urb() argument
325 err = usb_submit_urb(urb, gfp); in carl9170_usb_submit_rx_urb()
457 static struct urb *carl9170_usb_alloc_rx_urb(struct ar9170 *ar, gfp_t gfp) in carl9170_usb_alloc_rx_urb() argument
462 buf = kmalloc(ar->fw.rx_size, gfp); in carl9170_usb_alloc_rx_urb()
466 urb = usb_alloc_urb(0, gfp); in carl9170_usb_alloc_rx_urb()
/drivers/net/wireless/rtlwifi/
Drc.c257 struct ieee80211_sta *sta, gfp_t gfp) in rtl_rate_alloc_sta() argument
262 rate_priv = kzalloc(sizeof(struct rtl_rate_priv), gfp); in rtl_rate_alloc_sta()
/drivers/power/
Dpower_supply_sysfs.c265 static char *kstruprdup(const char *str, gfp_t gfp) in kstruprdup() argument
269 ustr = ret = kmalloc(strlen(str) + 1, gfp); in kstruprdup()
/drivers/md/
Ddm-bio-prison.h55 gfp_t gfp);

1234