resize_buf 199 drivers/infiniband/hw/mlx4/cq.c cq->resize_buf = NULL; resize_buf 296 drivers/infiniband/hw/mlx4/cq.c if (cq->resize_buf) resize_buf 299 drivers/infiniband/hw/mlx4/cq.c cq->resize_buf = kmalloc(sizeof *cq->resize_buf, GFP_KERNEL); resize_buf 300 drivers/infiniband/hw/mlx4/cq.c if (!cq->resize_buf) resize_buf 303 drivers/infiniband/hw/mlx4/cq.c err = mlx4_ib_alloc_cq_buf(dev, &cq->resize_buf->buf, entries); resize_buf 305 drivers/infiniband/hw/mlx4/cq.c kfree(cq->resize_buf); resize_buf 306 drivers/infiniband/hw/mlx4/cq.c cq->resize_buf = NULL; resize_buf 310 drivers/infiniband/hw/mlx4/cq.c cq->resize_buf->cqe = entries - 1; resize_buf 327 drivers/infiniband/hw/mlx4/cq.c cq->resize_buf = kmalloc(sizeof *cq->resize_buf, GFP_KERNEL); resize_buf 328 drivers/infiniband/hw/mlx4/cq.c if (!cq->resize_buf) resize_buf 331 drivers/infiniband/hw/mlx4/cq.c err = mlx4_ib_get_cq_umem(dev, udata, &cq->resize_buf->buf, resize_buf 334 drivers/infiniband/hw/mlx4/cq.c kfree(cq->resize_buf); resize_buf 335 drivers/infiniband/hw/mlx4/cq.c cq->resize_buf = NULL; resize_buf 339 drivers/infiniband/hw/mlx4/cq.c cq->resize_buf->cqe = entries - 1; resize_buf 367 drivers/infiniband/hw/mlx4/cq.c new_cqe = get_cqe_from_buf(&cq->resize_buf->buf, resize_buf 368 drivers/infiniband/hw/mlx4/cq.c (i + 1) & cq->resize_buf->cqe); resize_buf 373 drivers/infiniband/hw/mlx4/cq.c (((i + 1) & (cq->resize_buf->cqe + 1)) ? MLX4_CQE_OWNER_MASK : 0); resize_buf 424 drivers/infiniband/hw/mlx4/cq.c err = mlx4_cq_resize(dev->dev, &cq->mcq, entries, &cq->resize_buf->buf.mtt); resize_buf 430 drivers/infiniband/hw/mlx4/cq.c cq->buf = cq->resize_buf->buf; resize_buf 431 drivers/infiniband/hw/mlx4/cq.c cq->ibcq.cqe = cq->resize_buf->cqe; resize_buf 435 drivers/infiniband/hw/mlx4/cq.c kfree(cq->resize_buf); resize_buf 436 drivers/infiniband/hw/mlx4/cq.c cq->resize_buf = NULL; resize_buf 443 drivers/infiniband/hw/mlx4/cq.c if (cq->resize_buf) { resize_buf 447 drivers/infiniband/hw/mlx4/cq.c cq->buf = cq->resize_buf->buf; resize_buf 448 drivers/infiniband/hw/mlx4/cq.c cq->ibcq.cqe = cq->resize_buf->cqe; resize_buf 450 drivers/infiniband/hw/mlx4/cq.c kfree(cq->resize_buf); resize_buf 451 drivers/infiniband/hw/mlx4/cq.c cq->resize_buf = NULL; resize_buf 462 drivers/infiniband/hw/mlx4/cq.c mlx4_mtt_cleanup(dev->dev, &cq->resize_buf->buf.mtt); resize_buf 464 drivers/infiniband/hw/mlx4/cq.c mlx4_ib_free_cq_buf(dev, &cq->resize_buf->buf, resize_buf 465 drivers/infiniband/hw/mlx4/cq.c cq->resize_buf->cqe); resize_buf 467 drivers/infiniband/hw/mlx4/cq.c kfree(cq->resize_buf); resize_buf 468 drivers/infiniband/hw/mlx4/cq.c cq->resize_buf = NULL; resize_buf 699 drivers/infiniband/hw/mlx4/cq.c if (cq->resize_buf) { resize_buf 703 drivers/infiniband/hw/mlx4/cq.c cq->buf = cq->resize_buf->buf; resize_buf 704 drivers/infiniband/hw/mlx4/cq.c cq->ibcq.cqe = cq->resize_buf->cqe; resize_buf 706 drivers/infiniband/hw/mlx4/cq.c kfree(cq->resize_buf); resize_buf 707 drivers/infiniband/hw/mlx4/cq.c cq->resize_buf = NULL; resize_buf 119 drivers/infiniband/hw/mlx4/mlx4_ib.h struct mlx4_ib_cq_resize *resize_buf; resize_buf 473 drivers/infiniband/hw/mlx5/cq.c if (likely(cq->resize_buf)) { resize_buf 475 drivers/infiniband/hw/mlx5/cq.c cq->buf = *cq->resize_buf; resize_buf 476 drivers/infiniband/hw/mlx5/cq.c kfree(cq->resize_buf); resize_buf 477 drivers/infiniband/hw/mlx5/cq.c cq->resize_buf = NULL; resize_buf 942 drivers/infiniband/hw/mlx5/cq.c cq->resize_buf = NULL; resize_buf 1157 drivers/infiniband/hw/mlx5/cq.c cq->resize_buf = kzalloc(sizeof(*cq->resize_buf), GFP_KERNEL); resize_buf 1158 drivers/infiniband/hw/mlx5/cq.c if (!cq->resize_buf) resize_buf 1161 drivers/infiniband/hw/mlx5/cq.c err = alloc_cq_frag_buf(dev, cq->resize_buf, entries, cqe_size); resize_buf 1165 drivers/infiniband/hw/mlx5/cq.c init_cq_frag_buf(cq, cq->resize_buf); resize_buf 1170 drivers/infiniband/hw/mlx5/cq.c kfree(cq->resize_buf); resize_buf 1188 drivers/infiniband/hw/mlx5/cq.c dsize = cq->resize_buf->cqe_size; resize_buf 1204 drivers/infiniband/hw/mlx5/cq.c dcqe = mlx5_frag_buf_get_wqe(&cq->resize_buf->fbc, resize_buf 1205 drivers/infiniband/hw/mlx5/cq.c (i + 1) & cq->resize_buf->nent); resize_buf 1207 drivers/infiniband/hw/mlx5/cq.c sw_own = sw_ownership_bit(i + 1, cq->resize_buf->nent); resize_buf 1271 drivers/infiniband/hw/mlx5/cq.c struct mlx5_frag_buf *frag_buf = &cq->resize_buf->frag_buf; resize_buf 1295 drivers/infiniband/hw/mlx5/cq.c mlx5_fill_page_frag_array(&cq->resize_buf->frag_buf, pas); resize_buf 1330 drivers/infiniband/hw/mlx5/cq.c if (cq->resize_buf) { resize_buf 1334 drivers/infiniband/hw/mlx5/cq.c cq->buf = *cq->resize_buf; resize_buf 1335 drivers/infiniband/hw/mlx5/cq.c kfree(cq->resize_buf); resize_buf 1336 drivers/infiniband/hw/mlx5/cq.c cq->resize_buf = NULL; resize_buf 1356 drivers/infiniband/hw/mlx5/cq.c free_cq_buf(dev, cq->resize_buf); resize_buf 1357 drivers/infiniband/hw/mlx5/cq.c cq->resize_buf = NULL; resize_buf 516 drivers/infiniband/hw/mlx5/mlx5_ib.h struct mlx5_ib_cq_buf *resize_buf; resize_buf 336 drivers/infiniband/hw/mthca/mthca_cq.c cq->ibcq.cqe < cq->resize_buf->cqe) { resize_buf 343 drivers/infiniband/hw/mthca/mthca_cq.c memcpy(get_cqe_from_buf(&cq->resize_buf->buf, resize_buf 344 drivers/infiniband/hw/mthca/mthca_cq.c i & cq->resize_buf->cqe), resize_buf 688 drivers/infiniband/hw/mthca/mthca_cq.c if (unlikely(err == -EAGAIN && cq->resize_buf && resize_buf 689 drivers/infiniband/hw/mthca/mthca_cq.c cq->resize_buf->state == CQ_RESIZE_READY)) { resize_buf 700 drivers/infiniband/hw/mthca/mthca_cq.c if (cqe_sw(get_cqe_from_buf(&cq->resize_buf->buf, resize_buf 701 drivers/infiniband/hw/mthca/mthca_cq.c cq->cons_index & cq->resize_buf->cqe))) { resize_buf 707 drivers/infiniband/hw/mthca/mthca_cq.c cq->buf = cq->resize_buf->buf; resize_buf 708 drivers/infiniband/hw/mthca/mthca_cq.c cq->ibcq.cqe = cq->resize_buf->cqe; resize_buf 710 drivers/infiniband/hw/mthca/mthca_cq.c cq->resize_buf->buf = tbuf; resize_buf 711 drivers/infiniband/hw/mthca/mthca_cq.c cq->resize_buf->cqe = tcqe; resize_buf 712 drivers/infiniband/hw/mthca/mthca_cq.c cq->resize_buf->state = CQ_RESIZE_SWAPPED; resize_buf 663 drivers/infiniband/hw/mthca/mthca_provider.c cq->resize_buf = NULL; resize_buf 686 drivers/infiniband/hw/mthca/mthca_provider.c if (cq->resize_buf) { resize_buf 691 drivers/infiniband/hw/mthca/mthca_provider.c cq->resize_buf = kmalloc(sizeof *cq->resize_buf, GFP_ATOMIC); resize_buf 692 drivers/infiniband/hw/mthca/mthca_provider.c if (!cq->resize_buf) { resize_buf 697 drivers/infiniband/hw/mthca/mthca_provider.c cq->resize_buf->state = CQ_RESIZE_ALLOC; resize_buf 707 drivers/infiniband/hw/mthca/mthca_provider.c ret = mthca_alloc_cq_buf(dev, &cq->resize_buf->buf, entries); resize_buf 710 drivers/infiniband/hw/mthca/mthca_provider.c kfree(cq->resize_buf); resize_buf 711 drivers/infiniband/hw/mthca/mthca_provider.c cq->resize_buf = NULL; resize_buf 716 drivers/infiniband/hw/mthca/mthca_provider.c cq->resize_buf->cqe = entries - 1; resize_buf 719 drivers/infiniband/hw/mthca/mthca_provider.c cq->resize_buf->state = CQ_RESIZE_READY; resize_buf 748 drivers/infiniband/hw/mthca/mthca_provider.c lkey = cq->resize_buf->buf.mr.ibmr.lkey; resize_buf 760 drivers/infiniband/hw/mthca/mthca_provider.c if (cq->resize_buf) { resize_buf 761 drivers/infiniband/hw/mthca/mthca_provider.c mthca_free_cq_buf(dev, &cq->resize_buf->buf, resize_buf 762 drivers/infiniband/hw/mthca/mthca_provider.c cq->resize_buf->cqe); resize_buf 763 drivers/infiniband/hw/mthca/mthca_provider.c kfree(cq->resize_buf); resize_buf 765 drivers/infiniband/hw/mthca/mthca_provider.c cq->resize_buf = NULL; resize_buf 776 drivers/infiniband/hw/mthca/mthca_provider.c if (cq->resize_buf->state == CQ_RESIZE_READY) { resize_buf 780 drivers/infiniband/hw/mthca/mthca_provider.c cq->buf = cq->resize_buf->buf; resize_buf 781 drivers/infiniband/hw/mthca/mthca_provider.c cq->ibcq.cqe = cq->resize_buf->cqe; resize_buf 783 drivers/infiniband/hw/mthca/mthca_provider.c tbuf = cq->resize_buf->buf; resize_buf 784 drivers/infiniband/hw/mthca/mthca_provider.c tcqe = cq->resize_buf->cqe; resize_buf 787 drivers/infiniband/hw/mthca/mthca_provider.c kfree(cq->resize_buf); resize_buf 788 drivers/infiniband/hw/mthca/mthca_provider.c cq->resize_buf = NULL; resize_buf 208 drivers/infiniband/hw/mthca/mthca_provider.h struct mthca_cq_resize *resize_buf; resize_buf 2064 drivers/net/wireless/rndis_wlan.c resize_buf: resize_buf 2083 drivers/net/wireless/rndis_wlan.c goto resize_buf;