Home
last modified time | relevance | path

Searched refs:qps (Results 1 – 25 of 34) sorted by relevance

12

/OK3568_Linux_fs/kernel/drivers/infiniband/hw/cxgb4/
H A Ddevice.c344 xa_for_each(&qpd->devp->qps, index, qp) in qp_open()
354 xa_lock_irq(&qpd->devp->qps); in qp_open()
355 xa_for_each(&qpd->devp->qps, index, qp) in qp_open()
357 xa_unlock_irq(&qpd->devp->qps); in qp_open()
940 WARN_ON(!xa_empty(&ctx->dev->qps)); in c4iw_dealloc()
1050 xa_init_flags(&devp->qps, XA_FLAGS_LOCK_IRQ); in c4iw_alloc()
1273 xa_lock_irqsave(&ctx->dev->qps, flags); in stop_queues()
1277 xa_for_each(&ctx->dev->qps, index, qp) in stop_queues()
1282 xa_unlock_irqrestore(&ctx->dev->qps, flags); in stop_queues()
1312 xa_lock_irq(&ctx->dev->qps); in resume_queues()
[all …]
H A Dev.c126 xa_lock_irq(&dev->qps); in c4iw_ev_dispatch()
127 qhp = xa_load(&dev->qps, CQE_QPID(err_cqe)); in c4iw_ev_dispatch()
134 xa_unlock_irq(&dev->qps); in c4iw_ev_dispatch()
149 xa_unlock_irq(&dev->qps); in c4iw_ev_dispatch()
155 xa_unlock_irq(&dev->qps); in c4iw_ev_dispatch()
H A Dqp.c66 xa_lock_irq(&dev->qps); in alloc_ird()
71 xa_unlock_irq(&dev->qps); in alloc_ird()
82 xa_lock_irq(&dev->qps); in free_ird()
84 xa_unlock_irq(&dev->qps); in free_ird()
916 xa_lock_irqsave(&qhp->rhp->qps, flags); in ring_kernel_sq_db()
925 xa_unlock_irqrestore(&qhp->rhp->qps, flags); in ring_kernel_sq_db()
933 xa_lock_irqsave(&qhp->rhp->qps, flags); in ring_kernel_rq_db()
942 xa_unlock_irqrestore(&qhp->rhp->qps, flags); in ring_kernel_rq_db()
2089 xa_lock_irq(&rhp->qps); in c4iw_destroy_qp()
2090 __xa_erase(&rhp->qps, qhp->wq.sq.qid); in c4iw_destroy_qp()
[all …]
H A Diw_cxgb4.h319 struct xarray qps; member
356 return xa_load(&rhp->qps, qpid); in get_qhp()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_io.c129 qp = &func_to_io->qps[i]; in write_sq_ctxts()
173 qp = &func_to_io->qps[i]; in write_rq_ctxts()
382 qps_size = num_qps * sizeof(*func_to_io->qps); in hinic_io_create_qps()
383 func_to_io->qps = devm_kzalloc(&pdev->dev, qps_size, GFP_KERNEL); in hinic_io_create_qps()
384 if (!func_to_io->qps) in hinic_io_create_qps()
420 err = init_qp(func_to_io, &func_to_io->qps[i], i, in hinic_io_create_qps()
445 destroy_qp(func_to_io, &func_to_io->qps[j]); in hinic_io_create_qps()
460 devm_kfree(&pdev->dev, func_to_io->qps); in hinic_io_create_qps()
479 destroy_qp(func_to_io, &func_to_io->qps[i]); in hinic_io_destroy_qps()
489 devm_kfree(&pdev->dev, func_to_io->qps); in hinic_io_destroy_qps()
[all …]
H A Dhinic_hw_io.h70 struct hinic_qp *qps; member
H A Dhinic_hw_dev.c1083 struct hinic_qp *qp = &func_to_io->qps[i]; in hinic_hwdev_get_sq()
1101 struct hinic_qp *qp = &func_to_io->qps[i]; in hinic_hwdev_get_rq()
/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/sec2/
H A Dsec_main.c211 void sec_destroy_qps(struct hisi_qp **qps, int qp_num) in sec_destroy_qps() argument
213 hisi_qm_free_qps(qps, qp_num); in sec_destroy_qps()
214 kfree(qps); in sec_destroy_qps()
221 struct hisi_qp **qps; in sec_create_qps() local
224 qps = kcalloc(ctx_num, sizeof(struct hisi_qp *), GFP_KERNEL); in sec_create_qps()
225 if (!qps) in sec_create_qps()
228 ret = hisi_qm_alloc_qps_node(&sec_devices, ctx_num, 0, node, qps); in sec_create_qps()
230 return qps; in sec_create_qps()
232 kfree(qps); in sec_create_qps()
H A Dsec.h123 struct hisi_qp **qps; member
185 void sec_destroy_qps(struct hisi_qp **qps, int qp_num);
H A Dsec_crypto.c378 qp = ctx->qps[qp_ctx_id]; in sec_create_qp_ctx()
444 ctx->qps = sec_create_qps(); in sec_ctx_base_init()
445 if (!ctx->qps) { in sec_ctx_base_init()
450 sec = container_of(ctx->qps[0]->qm, struct sec_dev, qm); in sec_ctx_base_init()
479 sec_destroy_qps(ctx->qps, sec->ctx_q_num); in sec_ctx_base_init()
490 sec_destroy_qps(ctx->qps, ctx->sec->ctx_q_num); in sec_ctx_base_uninit()
/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/zip/
H A Dzip_crypto.c182 struct hisi_qp *qps[HZIP_CTX_Q_NUM] = { NULL }; in hisi_zip_ctx_init() local
186 ret = zip_create_qps(qps, HZIP_CTX_Q_NUM, node); in hisi_zip_ctx_init()
192 hisi_zip = container_of(qps[0]->qm, struct hisi_zip, qm); in hisi_zip_ctx_init()
196 ret = hisi_zip_start_qp(qps[i], &hisi_zip_ctx->qp_ctx[i], i, in hisi_zip_ctx_init()
202 hisi_qm_free_qps(qps, HZIP_CTX_Q_NUM); in hisi_zip_ctx_init()
H A Dzip.h64 int zip_create_qps(struct hisi_qp **qps, int ctx_num, int node);
H A Dzip_main.c244 int zip_create_qps(struct hisi_qp **qps, int qp_num, int node) in zip_create_qps() argument
249 return hisi_qm_alloc_qps_node(&zip_devices, qp_num, 0, node, qps); in zip_create_qps()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx4/
H A Den_rx.c1170 &rss_map->qps[i]); in mlx4_en_config_rss_steer()
1178 rss_map->indir_qp = &rss_map->qps[0]; in mlx4_en_config_rss_steer()
1254 MLX4_QP_STATE_RST, NULL, 0, 0, &rss_map->qps[i]); in mlx4_en_config_rss_steer()
1255 mlx4_qp_remove(mdev->dev, &rss_map->qps[i]); in mlx4_en_config_rss_steer()
1256 mlx4_qp_free(mdev->dev, &rss_map->qps[i]); in mlx4_en_config_rss_steer()
1280 MLX4_QP_STATE_RST, NULL, 0, 0, &rss_map->qps[i]); in mlx4_en_release_rss_steer()
1281 mlx4_qp_remove(mdev->dev, &rss_map->qps[i]); in mlx4_en_release_rss_steer()
1282 mlx4_qp_free(mdev->dev, &rss_map->qps[i]); in mlx4_en_release_rss_steer()
H A Den_main.c139 &priv->rss_map.qps[i], in mlx4_en_update_loopback_state()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dsc/
H A Drc_calc.c44 static void get_qp_set(qp_set qps, enum colour_mode cm, enum bits_per_comp bpc, in get_qp_set() argument
87 memcpy(qps, table[index].qps, sizeof(qp_set)); in get_qp_set()
H A Drc_calc.h75 const qp_set qps; member
/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/
H A Dqm.h378 u8 alg_type, int node, struct hisi_qp **qps);
379 void hisi_qm_free_qps(struct hisi_qp **qps, int qp_num);
H A Dqm.c2958 void hisi_qm_free_qps(struct hisi_qp **qps, int qp_num) in hisi_qm_free_qps() argument
2962 if (!qps || qp_num <= 0) in hisi_qm_free_qps()
2966 hisi_qm_release_qp(qps[i]); in hisi_qm_free_qps()
3030 u8 alg_type, int node, struct hisi_qp **qps) in hisi_qm_alloc_qps_node() argument
3037 if (!qps || !qm_list || qp_num <= 0) in hisi_qm_alloc_qps_node()
3048 qps[i] = hisi_qm_create_qp(tmp->qm, alg_type); in hisi_qm_alloc_qps_node()
3049 if (IS_ERR(qps[i])) { in hisi_qm_alloc_qps_node()
3050 hisi_qm_free_qps(qps, i); in hisi_qm_alloc_qps_node()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/qedr/
H A Dqedr_iw_cm.c522 xa_lock(&dev->qps); in qedr_iw_load_qp()
523 qp = xa_load(&dev->qps, qpn); in qedr_iw_load_qp()
526 xa_unlock(&dev->qps); in qedr_iw_load_qp()
817 return xa_load(&dev->qps, qpn); in qedr_iw_get_qp()
H A Dqedr.h171 struct xarray qps; member
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/qib/
H A Dqib_verbs.c671 struct rvt_qp *qps[20]; in qib_verbs_sdma_desc_avail() local
684 if (n == ARRAY_SIZE(qps)) in qib_verbs_sdma_desc_avail()
691 qps[n++] = qp; in qib_verbs_sdma_desc_avail()
697 qp = qps[i]; in qib_verbs_sdma_desc_avail()
1147 struct rvt_qp *qps[5]; in qib_ib_piobufavail() local
1164 if (n == ARRAY_SIZE(qps)) in qib_ib_piobufavail()
1170 qps[n++] = qp; in qib_ib_piobufavail()
1177 qp = qps[i]; in qib_ib_piobufavail()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/
H A Dpio.c1615 struct rvt_qp *qps[PIO_WAIT_BATCH_SIZE]; in sc_piobufavail() local
1635 if (n == ARRAY_SIZE(qps)) in sc_piobufavail()
1644 priv = qps[top_idx]->priv; in sc_piobufavail()
1651 qps[n++] = qp; in sc_piobufavail()
1666 hfi1_qp_wakeup(qps[top_idx], in sc_piobufavail()
1670 hfi1_qp_wakeup(qps[i], in sc_piobufavail()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/ocrdma/
H A Docrdma_hw.h104 enum ib_qp_state get_ibqp_state(enum ocrdma_qp_state qps);
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/i40e/
H A Di40e_virtchnl_pf.c813 u16 vsi_id, qps; in i40e_map_pf_queues_to_vsi() local
821 qps = vf->ch[i].num_qps; in i40e_map_pf_queues_to_vsi()
824 qps = pf->vsi[vf->lan_vsi_idx]->alloc_queue_pairs; in i40e_map_pf_queues_to_vsi()
829 if (j * 2 >= qps) { in i40e_map_pf_queues_to_vsi()
860 u32 qps, num_tc = 1; /* VF has at least one traffic class */ in i40e_map_pf_to_vf_queues() local
869 qps = vf->ch[i].num_qps; in i40e_map_pf_to_vf_queues()
872 qps = pf->vsi[vf->lan_vsi_idx]->alloc_queue_pairs; in i40e_map_pf_to_vf_queues()
876 for (j = 0; j < qps; j++) { in i40e_map_pf_to_vf_queues()

12