| /drivers/misc/ |
| A D | fastrpc.c | 488 cctx = ctx->cctx; in fastrpc_context_free() 578 struct fastrpc_channel_ctx *cctx = user->cctx; in fastrpc_context_alloc() local 618 ctx->cctx = cctx; in fastrpc_context_alloc() 1117 cctx = fl->cctx; in fastrpc_invoke_send() 1286 fl->cctx->vmperms, fl->cctx->vmcount); in fastrpc_init_create_static_process() 1474 struct fastrpc_channel_ctx *cctx = fl->cctx; in fastrpc_session_alloc() local 1523 struct fastrpc_channel_ctx *cctx = fl->cctx; in fastrpc_device_release() local 1569 cctx = fdevice->cctx; in fastrpc_device_open() 1585 fl->cctx = cctx; in fastrpc_device_open() 2167 sess = &cctx->session[cctx->sesscount++]; in fastrpc_cb_probe() [all …]
|
| /drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
| A D | chan.c | 76 if (cctx) { in nvkm_chan_cctx_put() 82 list_del(&cctx->head); in nvkm_chan_cctx_put() 83 kfree(cctx); in nvkm_chan_cctx_put() 97 struct nvkm_cctx *cctx; in nvkm_chan_cctx_get() local 102 cctx = nvkm_list_find(cctx, &chan->cctxs, head, in nvkm_chan_cctx_get() 103 cctx->vctx->ectx->engn == engn && cctx->vctx->vmm == chan->vmm); in nvkm_chan_cctx_get() 104 if (cctx) { in nvkm_chan_cctx_get() 105 refcount_inc(&cctx->refs); in nvkm_chan_cctx_get() 106 *pcctx = cctx; in nvkm_chan_cctx_get() 120 if (!(cctx = *pcctx = kzalloc(sizeof(*cctx), GFP_KERNEL))) { in nvkm_chan_cctx_get() [all …]
|
| A D | uchan.c | 70 struct nvkm_cctx *cctx; member 79 struct nvkm_cctx *cctx = uobj->cctx; in nvkm_uchan_object_fini_1() local 80 struct nvkm_ectx *ectx = cctx->vctx->ectx; in nvkm_uchan_object_fini_1() 102 struct nvkm_cctx *cctx = uobj->cctx; in nvkm_uchan_object_init_0() local 103 struct nvkm_ectx *ectx = cctx->vctx->ectx; in nvkm_uchan_object_init_0() 110 if (!refcount_inc_not_zero(&cctx->uses)) { in nvkm_uchan_object_init_0() 112 if (!refcount_inc_not_zero(&cctx->uses)) { in nvkm_uchan_object_init_0() 121 refcount_set(&cctx->uses, 1); in nvkm_uchan_object_init_0() 136 if (!uobj->cctx) in nvkm_uchan_object_dtor() 139 engn = uobj->cctx->vctx->ectx->engn; in nvkm_uchan_object_dtor() [all …]
|
| A D | gv100.c | 91 gv100_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) in gv100_ectx_bind() argument 95 if (cctx) { in gv100_ectx_bind() 96 addr = cctx->vctx->vma->addr; in gv100_ectx_bind() 103 nvkm_mo32(chan->inst, 0x0ac, 0x00010000, cctx ? 0x00010000 : 0x00000000); in gv100_ectx_bind() 116 gv100_ectx_ce_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) in gv100_ectx_ce_bind() argument 118 const u64 bar2 = cctx ? nvkm_memory_bar2(cctx->vctx->inst->memory) : 0ULL; in gv100_ectx_ce_bind() 123 nvkm_mo32(chan->inst, 0x0ac, 0x00020000, cctx ? 0x00020000 : 0x00000000); in gv100_ectx_ce_bind()
|
| A D | g84.c | 106 g84_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) in g84_ectx_bind() argument 129 if (!cctx) { in g84_ectx_bind() 139 start = cctx->vctx->inst->addr; in g84_ectx_bind() 140 limit = start + cctx->vctx->inst->size - 1; in g84_ectx_bind()
|
| A D | nv40.c | 125 nv40_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) in nv40_ectx_bind() argument 149 if (cctx) in nv40_ectx_bind() 150 inst = cctx->vctx->inst->addr >> 4; in nv40_ectx_bind()
|
| A D | nv50.c | 150 nv50_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) in nv50_ectx_bind() argument 165 if (!cctx) { in nv50_ectx_bind() 189 start = cctx->vctx->inst->addr; in nv50_ectx_bind() 190 limit = start + cctx->vctx->inst->size - 1; in nv50_ectx_bind()
|
| A D | gk104.c | 134 gk104_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) in gk104_ectx_bind() argument 162 if (cctx) { in gk104_ectx_bind() 163 addr = cctx->vctx->vma->addr; in gk104_ectx_bind()
|
| A D | gf100.c | 161 gf100_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) in gf100_ectx_bind() argument 178 if (cctx) { in gf100_ectx_bind() 179 addr = cctx->vctx->vma->addr; in gf100_ectx_bind()
|
| /drivers/infiniband/hw/bnxt_re/ |
| A D | qplib_res.h | 311 struct bnxt_qplib_chip_ctx *cctx; member 330 return (cctx->chip_num == CHIP_NUM_58818 || in bnxt_qplib_is_chip_gen_p7() 331 cctx->chip_num == CHIP_NUM_57608); in bnxt_qplib_is_chip_gen_p7() 336 return (cctx->chip_num == CHIP_NUM_57508 || in bnxt_qplib_is_chip_gen_p5() 337 cctx->chip_num == CHIP_NUM_57504 || in bnxt_qplib_is_chip_gen_p5() 338 cctx->chip_num == CHIP_NUM_57502); in bnxt_qplib_is_chip_gen_p5() 343 return bnxt_qplib_is_chip_gen_p5(cctx) || bnxt_qplib_is_chip_gen_p7(cctx); in bnxt_qplib_is_chip_gen_p5_p7() 354 return bnxt_qplib_is_chip_gen_p5_p7(cctx) ? in bnxt_qplib_get_ring_type() 539 struct bnxt_qplib_chip_ctx *cctx, in bnxt_qplib_ring_nq_db() argument 545 if (bnxt_qplib_is_chip_gen_p5_p7(cctx)) in bnxt_qplib_ring_nq_db() [all …]
|
| A D | main.c | 90 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_set_db_offset() local 100 cctx = rdev->chip_ctx; in bnxt_re_set_db_offset() 131 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_set_drv_mode() local 133 cctx = rdev->chip_ctx; in bnxt_re_set_drv_mode() 158 rdev->qplib_res.cctx = NULL; in bnxt_re_destroy_chip_ctx() 571 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_hwrm_qcaps() local 576 cctx = rdev->chip_ctx; in bnxt_re_hwrm_qcaps() 603 cctx = rdev->chip_ctx; in bnxt_re_hwrm_dbr_pacing_qcfg() 614 cctx->dbr_stat_db_fifo = in bnxt_re_hwrm_dbr_pacing_qcfg() 1970 cctx = rdev->chip_ctx; in bnxt_re_query_hwrm_intf_version() [all …]
|
| A D | qplib_sp.c | 62 if (!bnxt_qplib_is_chip_gen_p5_p7(rcfw->res->cctx)) in bnxt_qplib_is_atomic_cap() 98 struct bnxt_qplib_chip_ctx *cctx; in bnxt_qplib_get_dev_attr() local 104 cctx = rcfw->res->cctx; in bnxt_qplib_get_dev_attr() 133 if (!bnxt_qplib_is_chip_gen_p5_p7(rcfw->res->cctx)) { in bnxt_qplib_get_dev_attr() 142 if (cctx->modes.wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE) in bnxt_qplib_get_dev_attr() 149 if (!bnxt_qplib_is_chip_gen_p7(rcfw->res->cctx)) in bnxt_qplib_get_dev_attr() 165 if (!bnxt_qplib_is_chip_gen_p7(rcfw->res->cctx)) in bnxt_qplib_get_dev_attr() 193 if (rcfw->res->cctx->hwrm_intf_ver >= HWRM_VERSION_DEV_ATTR_MAX_DPI) in bnxt_qplib_get_dev_attr() 973 if (bnxt_qplib_is_chip_gen_p5_p7(res->cctx)) { in bnxt_qplib_modify_cc() 1096 if (bnxt_qplib_is_chip_gen_p5_p7(res->cctx)) in bnxt_qplib_query_cc_param() [all …]
|
| A D | qplib_rcfw.c | 784 rcfw->res->cctx, true); in bnxt_qplib_service_creq() 854 if (is_virtfn || bnxt_qplib_is_chip_gen_p5_p7(rcfw->res->cctx)) in bnxt_qplib_init_rcfw() 972 rcfw->max_timeout = res->cctx->hwrm_cmd_max_timeout; in bnxt_qplib_alloc_rcfw_channel() 992 bnxt_qplib_ring_nq_db(&creq->creq_db.dbinfo, rcfw->res->cctx, false); in bnxt_qplib_rcfw_stop_irq() 1056 bnxt_qplib_ring_nq_db(&creq->creq_db.dbinfo, res->cctx, true); in bnxt_qplib_rcfw_start_irq()
|
| A D | qplib_res.c | 59 struct bnxt_qplib_chip_ctx *cctx, 545 rc = bnxt_qplib_alloc_stats_ctx(res->pdev, res->cctx, &ctx->stats); in bnxt_qplib_alloc_ctx() 797 if (!bnxt_qplib_is_chip_gen_p5_p7(res->cctx)) { in bnxt_qplib_alloc_dpi_tbl() 845 struct bnxt_qplib_chip_ctx *cctx, in bnxt_qplib_alloc_stats_ctx() argument 850 stats->size = cctx->hw_stats_size; in bnxt_qplib_alloc_stats_ctx()
|
| A D | bnxt_re.h | 264 rdev->rcfw.res->cctx->hwrm_intf_ver < HWRM_VERSION_READ_CTX) in bnxt_re_read_context_allowed()
|
| A D | qplib_fp.c | 395 bnxt_qplib_ring_nq_db(&nq->nq_db.dbinfo, nq->res->cctx, true); in bnxt_qplib_service_nq() 440 bnxt_qplib_ring_nq_db(&nq->nq_db.dbinfo, nq->res->cctx, false); in bnxt_qplib_nq_stop_irq() 509 bnxt_qplib_ring_nq_db(&nq->nq_db.dbinfo, res->cctx, true); in bnxt_qplib_nq_start_irq() 938 qp->cctx = res->cctx; in bnxt_qplib_create_qp1() 1017 psn_sz = bnxt_qplib_is_chip_gen_p5_p7(res->cctx) ? in bnxt_qplib_create_qp() 1116 if (bnxt_ext_stats_supported(res->cctx, res->dattr->dev_cap_flags, res->is_vf)) in bnxt_qplib_create_qp() 1173 qp->cctx = res->cctx; in bnxt_qplib_create_qp() 1743 if (bnxt_qplib_is_chip_gen_p5_p7(qp->cctx)) { in bnxt_qplib_fill_psn_search() 2687 if (!bnxt_qplib_is_chip_gen_p5_p7(qp->cctx)) { in bnxt_qplib_cq_process_req()
|
| A D | ib_verbs.c | 122 if (!bnxt_qplib_is_chip_gen_p5_p7(cctx)) in __qp_access_flags_from_ib() 143 if (!bnxt_qplib_is_chip_gen_p5_p7(cctx)) in __qp_access_flags_to_ib() 2093 __qp_access_flags_from_ib(qp->qplib_qp.cctx, in bnxt_re_modify_qp() 3053 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_destroy_cq() local 3061 cctx = rdev->chip_ctx; in bnxt_re_destroy_cq() 3063 if (cctx->modes.toggle_bits & BNXT_QPLIB_CQ_TOGGLE_BIT) { in bnxt_re_destroy_cq() 3086 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_create_cq() local 3101 cctx = rdev->chip_ctx; in bnxt_re_create_cq() 4543 struct bnxt_qplib_chip_ctx *cctx; in UVERBS_HANDLER() local 4561 cctx = rdev->chip_ctx; in UVERBS_HANDLER() [all …]
|
| A D | qplib_fp.h | 273 struct bnxt_qplib_chip_ctx *cctx; member
|
| /drivers/block/zram/ |
| A D | backend_deflate.c | 15 struct z_stream_s cctx; member 40 if (zctx->cctx.workspace) { in deflate_destroy() 41 zlib_deflateEnd(&zctx->cctx); in deflate_destroy() 42 vfree(zctx->cctx.workspace); in deflate_destroy() 63 zctx->cctx.workspace = vzalloc(sz); in deflate_create() 64 if (!zctx->cctx.workspace) in deflate_create() 67 ret = zlib_deflateInit2(&zctx->cctx, params->level, Z_DEFLATED, in deflate_create() 96 deflate = &zctx->cctx; in deflate_compress()
|
| A D | backend_zstd.c | 11 zstd_cctx *cctx; member 109 zstd_free_cctx(zctx->cctx); in zstd_destroy() 137 zctx->cctx = zstd_init_cctx(zctx->cctx_mem, sz); in zstd_create() 138 if (!zctx->cctx) in zstd_create() 152 zctx->cctx = zstd_create_cctx_advanced(zp->custom_mem); in zstd_create() 153 if (!zctx->cctx) in zstd_create() 177 ret = zstd_compress_cctx(zctx->cctx, req->dst, req->dst_len, in zstd_compress() 180 ret = zstd_compress_using_cdict(zctx->cctx, req->dst, in zstd_compress()
|
| /drivers/pinctrl/intel/ |
| A D | pinctrl-cherryview.c | 761 if (cctx->intr_lines[i] == offset) { in chv_gpio_request_enable() 762 cctx->intr_lines[i] = CHV_INVALID_HWIRQ; in chv_gpio_request_enable() 1269 cctx->intr_lines[intsel] = hwirq; in chv_gpio_irq_startup() 1288 if (cctx->intr_lines[intsel] == pin) in chv_gpio_set_intr_line() 1293 cctx->intr_lines[intsel] = pin; in chv_gpio_set_intr_line() 1305 cctx->intr_lines[intsel], pin); in chv_gpio_set_intr_line() 1325 cctx->intr_lines[i] = pin; in chv_gpio_set_intr_line() 1416 offset = cctx->intr_lines[intr_line]; in chv_gpio_irq_handler() 1616 struct intel_community_context *cctx; in chv_pinctrl_probe() local 1662 cctx = &pctrl->context.communities[0]; in chv_pinctrl_probe() [all …]
|