Home
last modified time | relevance | path

Searched refs:resize_buf (Results 1 – 8 of 8) sorted by relevance

/drivers/infiniband/hw/mlx4/
Dcq.c199 cq->resize_buf = NULL; in mlx4_ib_create_cq()
296 if (cq->resize_buf) in mlx4_alloc_resize_buf()
299 cq->resize_buf = kmalloc(sizeof *cq->resize_buf, GFP_KERNEL); in mlx4_alloc_resize_buf()
300 if (!cq->resize_buf) in mlx4_alloc_resize_buf()
303 err = mlx4_ib_alloc_cq_buf(dev, &cq->resize_buf->buf, entries); in mlx4_alloc_resize_buf()
305 kfree(cq->resize_buf); in mlx4_alloc_resize_buf()
306 cq->resize_buf = NULL; in mlx4_alloc_resize_buf()
310 cq->resize_buf->cqe = entries - 1; in mlx4_alloc_resize_buf()
327 cq->resize_buf = kmalloc(sizeof *cq->resize_buf, GFP_KERNEL); in mlx4_alloc_resize_umem()
328 if (!cq->resize_buf) in mlx4_alloc_resize_umem()
[all …]
Dmlx4_ib.h119 struct mlx4_ib_cq_resize *resize_buf; member
/drivers/infiniband/hw/mthca/
Dmthca_provider.c663 cq->resize_buf = NULL; in mthca_create_cq()
686 if (cq->resize_buf) { in mthca_alloc_resize_buf()
691 cq->resize_buf = kmalloc(sizeof *cq->resize_buf, GFP_ATOMIC); in mthca_alloc_resize_buf()
692 if (!cq->resize_buf) { in mthca_alloc_resize_buf()
697 cq->resize_buf->state = CQ_RESIZE_ALLOC; in mthca_alloc_resize_buf()
707 ret = mthca_alloc_cq_buf(dev, &cq->resize_buf->buf, entries); in mthca_alloc_resize_buf()
710 kfree(cq->resize_buf); in mthca_alloc_resize_buf()
711 cq->resize_buf = NULL; in mthca_alloc_resize_buf()
716 cq->resize_buf->cqe = entries - 1; in mthca_alloc_resize_buf()
719 cq->resize_buf->state = CQ_RESIZE_READY; in mthca_alloc_resize_buf()
[all …]
Dmthca_cq.c336 cq->ibcq.cqe < cq->resize_buf->cqe) { in mthca_cq_resize_copy_cqes()
343 memcpy(get_cqe_from_buf(&cq->resize_buf->buf, in mthca_cq_resize_copy_cqes()
344 i & cq->resize_buf->cqe), in mthca_cq_resize_copy_cqes()
688 if (unlikely(err == -EAGAIN && cq->resize_buf && in mthca_poll_cq()
689 cq->resize_buf->state == CQ_RESIZE_READY)) { in mthca_poll_cq()
700 if (cqe_sw(get_cqe_from_buf(&cq->resize_buf->buf, in mthca_poll_cq()
701 cq->cons_index & cq->resize_buf->cqe))) { in mthca_poll_cq()
707 cq->buf = cq->resize_buf->buf; in mthca_poll_cq()
708 cq->ibcq.cqe = cq->resize_buf->cqe; in mthca_poll_cq()
710 cq->resize_buf->buf = tbuf; in mthca_poll_cq()
[all …]
Dmthca_provider.h208 struct mthca_cq_resize *resize_buf; member
/drivers/infiniband/hw/mlx5/
Dcq.c451 if (likely(cq->resize_buf)) { in mlx5_poll_one()
453 cq->buf = *cq->resize_buf; in mlx5_poll_one()
454 kfree(cq->resize_buf); in mlx5_poll_one()
455 cq->resize_buf = NULL; in mlx5_poll_one()
919 cq->resize_buf = NULL; in mlx5_ib_create_cq()
1134 cq->resize_buf = kzalloc(sizeof(*cq->resize_buf), GFP_KERNEL); in resize_kernel()
1135 if (!cq->resize_buf) in resize_kernel()
1138 err = alloc_cq_frag_buf(dev, cq->resize_buf, entries, cqe_size); in resize_kernel()
1142 init_cq_frag_buf(cq, cq->resize_buf); in resize_kernel()
1147 kfree(cq->resize_buf); in resize_kernel()
[all …]
Dmlx5_ib.h515 struct mlx5_ib_cq_buf *resize_buf; member
/drivers/net/wireless/
Drndis_wlan.c2064 resize_buf: in rndis_check_bssid_list()
2083 goto resize_buf; in rndis_check_bssid_list()