Home
last modified time | relevance | path

Searched refs:pctx (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/media/platform/st/sti/delta/
H A Ddelta-mjpeg-dec.c171 static bool delta_mjpeg_check_status(struct delta_ctx *pctx, in delta_mjpeg_check_status() argument
174 struct delta_dev *delta = pctx->dev; in delta_mjpeg_check_status()
183 pctx->name, pctx->decoded_frames, in delta_mjpeg_check_status()
185 pctx->stream_errors++; in delta_mjpeg_check_status()
189 pctx->name, pctx->decoded_frames, in delta_mjpeg_check_status()
191 pctx->decode_errors++; in delta_mjpeg_check_status()
197 "%s firmware: decoding time(us)=%d\n", pctx->name, in delta_mjpeg_check_status()
203 static int delta_mjpeg_ipc_open(struct delta_ctx *pctx) in delta_mjpeg_ipc_open() argument
205 struct delta_dev *delta = pctx->dev; in delta_mjpeg_ipc_open()
206 struct delta_mjpeg_ctx *ctx = to_ctx(pctx); in delta_mjpeg_ipc_open()
[all …]
H A Ddelta-ipc.c110 int delta_ipc_open(struct delta_ctx *pctx, const char *name, in delta_ipc_open() argument
114 struct delta_dev *delta = pctx->dev; in delta_ipc_open()
116 struct delta_ipc_ctx *ctx = &pctx->ipc_ctx; in delta_ipc_open()
124 pctx->name); in delta_ipc_open()
125 pctx->sys_errors++; in delta_ipc_open()
132 pctx->name); in delta_ipc_open()
139 pctx->name); in delta_ipc_open()
146 pctx->name); in delta_ipc_open()
153 pctx->name, in delta_ipc_open()
166 ret = hw_alloc(pctx, ipc_buf_size, in delta_ipc_open()
[all …]
H A Ddelta-mjpeg-hdr.c40 static int delta_mjpeg_read_sof(struct delta_ctx *pctx, in delta_mjpeg_read_sof() argument
44 struct delta_dev *delta = pctx->dev; in delta_mjpeg_read_sof()
65 pctx->name, header->nb_of_components, in delta_mjpeg_read_sof()
79 pctx->name, size); in delta_mjpeg_read_sof()
83 int delta_mjpeg_read_header(struct delta_ctx *pctx, in delta_mjpeg_read_header() argument
88 struct delta_dev *delta = pctx->dev; in delta_mjpeg_read_header()
112 pctx->name); in delta_mjpeg_read_header()
116 ret = delta_mjpeg_read_sof(pctx, in delta_mjpeg_read_header()
136 "%s found header @ offset %d:\n%s", pctx->name, in delta_mjpeg_read_header()
144 pctx->name, size); in delta_mjpeg_read_header()
H A Ddelta-mjpeg.h30 int delta_mjpeg_read_header(struct delta_ctx *pctx,
H A Ddelta.h557 int delta_recycle_default(struct delta_ctx *pctx,
H A Ddelta-v4l2.c1214 int delta_recycle_default(struct delta_ctx *pctx, in delta_recycle_default() argument
/linux/drivers/net/
H A Dgtp.c122 static void pdp_context_delete(struct pdp_ctx *pctx);
232 static bool gtp_check_ms_ipv4(struct sk_buff *skb, struct pdp_ctx *pctx, in gtp_check_ms_ipv4() argument
243 return iph->daddr == pctx->ms.addr.s_addr; in gtp_check_ms_ipv4()
245 return iph->saddr == pctx->ms.addr.s_addr; in gtp_check_ms_ipv4()
248 static bool gtp_check_ms_ipv6(struct sk_buff *skb, struct pdp_ctx *pctx, in gtp_check_ms_ipv6() argument
264 ret = ipv6_pdp_addr_equal(&ip6h->daddr, &pctx->ms.addr6); in gtp_check_ms_ipv6()
266 ret = ipv6_pdp_addr_equal(&ip6h->saddr, &pctx->ms.addr6); in gtp_check_ms_ipv6()
275 static bool gtp_check_ms(struct sk_buff *skb, struct pdp_ctx *pctx, in gtp_check_ms() argument
281 return gtp_check_ms_ipv4(skb, pctx, hdrlen, role); in gtp_check_ms()
283 return gtp_check_ms_ipv6(skb, pctx, hdrlen, role); in gtp_check_ms()
[all …]
/linux/drivers/media/platform/st/sti/hva/
H A Dhva-h264.c415 static int hva_h264_fill_slice_header(struct hva_ctx *pctx, in hva_h264_fill_slice_header() argument
429 struct device *dev = ctx_to_dev(pctx); in hva_h264_fill_slice_header()
484 pctx->name, __func__, frame_order, idr_pic_id, *header_size); in hva_h264_fill_slice_header()
488 static int hva_h264_fill_data_nal(struct hva_ctx *pctx, in hva_h264_fill_data_nal() argument
492 struct device *dev = ctx_to_dev(pctx); in hva_h264_fill_data_nal()
495 dev_dbg(dev, "%s %s stuffing bytes %d\n", pctx->name, __func__, in hva_h264_fill_data_nal()
500 pctx->name, __func__, stuffing_bytes); in hva_h264_fill_data_nal()
521 static int hva_h264_fill_sei_nal(struct hva_ctx *pctx, in hva_h264_fill_sei_nal() argument
525 struct device *dev = ctx_to_dev(pctx); in hva_h264_fill_sei_nal()
582 pctx->name, type); in hva_h264_fill_sei_nal()
[all …]
/linux/crypto/
H A Dalgif_rng.c202 struct rng_parent_ctx *pctx; in rng_bind() local
205 pctx = kzalloc_obj(*pctx); in rng_bind()
206 if (!pctx) in rng_bind()
211 kfree(pctx); in rng_bind()
215 pctx->drng = rng; in rng_bind()
216 return pctx; in rng_bind()
221 struct rng_parent_ctx *pctx = private; in rng_release() local
223 if (unlikely(!pctx)) in rng_release()
225 crypto_free_rng(pctx->drng); in rng_release()
226 kfree_sensitive(pctx->entropy); in rng_release()
[all …]
H A Dgcm.c150 struct crypto_gcm_req_priv_ctx *pctx = crypto_gcm_reqctx(req); in crypto_gcm_init_common() local
154 memset(pctx->auth_tag, 0, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
155 memcpy(pctx->iv, req->iv, GCM_AES_IV_SIZE); in crypto_gcm_init_common()
156 memcpy(pctx->iv + GCM_AES_IV_SIZE, &counter, 4); in crypto_gcm_init_common()
158 sg_init_table(pctx->src, 3); in crypto_gcm_init_common()
159 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); in crypto_gcm_init_common()
160 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); in crypto_gcm_init_common()
161 if (sg != pctx->src + 1) in crypto_gcm_init_common()
162 sg_chain(pctx->src, 2, sg); in crypto_gcm_init_common()
165 sg_init_table(pctx->dst, 3); in crypto_gcm_init_common()
[all …]
/linux/tools/perf/util/
H A Dstat-shadow.c48 struct expr_parse_ctx *pctx, in prepare_metric() argument
114 expr__add_id_val_source_count(pctx, n, val, source_count); in prepare_metric()
118 int ret = expr__add_ref(pctx, &metric_refs[j]); in prepare_metric()
140 struct expr_parse_ctx *pctx; in generic_metric() local
146 pctx = expr__ctx_new(); in generic_metric()
147 if (!pctx) in generic_metric()
151 pctx->sctx.user_requested_cpu_list = strdup(config->user_requested_cpu_list); in generic_metric()
152 pctx->sctx.runtime = runtime; in generic_metric()
153 pctx->sctx.system_wide = config->system_wide; in generic_metric()
154 i = prepare_metric(config, mexp, evsel, pctx, aggr_idx); in generic_metric()
[all …]
H A Dmetricgroup.c129 struct expr_parse_ctx *pctx; member
215 expr__ctx_free(m->pctx); in metric__free()
235 m->pctx = expr__ctx_new(); in metric__new()
236 if (!m->pctx) in metric__new()
251 m->pctx->sctx.user_requested_cpu_list = NULL; in metric__new()
253 m->pctx->sctx.user_requested_cpu_list = strdup(user_requested_cpu_list); in metric__new()
254 if (!m->pctx->sctx.user_requested_cpu_list) in metric__new()
257 m->pctx->sctx.runtime = runtime; in metric__new()
258 m->pctx->sctx.system_wide = system_wide; in metric__new()
762 hashmap__for_each_entry(root_metric->pctx->ids, cur, bkt) { in resolve_metric()
[all …]
H A Dpython.c1336 struct expr_parse_ctx *pctx, in prepare_metric() argument
1392 ret = expr__add_id_val_source_count(pctx, n, val, source_count); in prepare_metric()
1398 int ret = expr__add_ref(pctx, &metric_refs[i]); in prepare_metric()
1414 struct expr_parse_ctx *pctx; in pyrf_evlist__compute_metric() local
1461 pctx = expr__ctx_new(); in pyrf_evlist__compute_metric()
1462 if (!pctx) in pyrf_evlist__compute_metric()
1465 ret = prepare_metric(mexp, metric_evsel, pctx, cpu_idx, thread_idx); in pyrf_evlist__compute_metric()
1467 expr__ctx_free(pctx); in pyrf_evlist__compute_metric()
1472 if (expr__parse(&result, pctx, mexp->metric_expr)) in pyrf_evlist__compute_metric()
1475 expr__ctx_free(pctx); in pyrf_evlist__compute_metric()
/linux/fs/ceph/
H A Dsuper.c256 struct ceph_parse_opts_ctx *pctx = fc->fs_private; in ceph_parse_old_source() local
257 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_old_source()
263 pctx->copts, fc->log.log, ','); in ceph_parse_old_source()
276 struct ceph_parse_opts_ctx *pctx = fc->fs_private; in ceph_parse_new_source() local
277 struct ceph_options *opts = pctx->copts; in ceph_parse_new_source()
278 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_new_source()
340 struct ceph_parse_opts_ctx *pctx = fc->fs_private; in ceph_parse_source() local
341 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_source()
392 struct ceph_parse_opts_ctx *pctx = fc->fs_private; in ceph_parse_mon_addr() local
393 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_mon_addr()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dftm-responder.c332 struct ieee80211_chanctx_conf ctx, *pctx; in iwl_mvm_ftm_start_responder() local
351 pctx = rcu_dereference(bss_conf->chanctx_conf); in iwl_mvm_ftm_start_responder()
355 ctx = *pctx; in iwl_mvm_ftm_start_responder()
356 phy_ctxt_id = (u16 *)pctx->drv_priv; in iwl_mvm_ftm_start_responder()
/linux/net/netfilter/
H A Dnft_immediate.c250 struct nft_ctx *pctx = (struct nft_ctx *)ctx; in nft_immediate_validate() local
262 pctx->level++; in nft_immediate_validate()
266 pctx->level--; in nft_immediate_validate()
H A Dnf_tables_api.c4169 struct nft_ctx *pctx = (struct nft_ctx *)ctx; in nft_setelem_validate() local
4184 pctx->level++; in nft_setelem_validate()
4188 pctx->level--; in nft_setelem_validate()
/linux/drivers/block/
H A Drbd.c6260 struct rbd_parse_opts_ctx *pctx) in rbd_parse_param() argument
6262 struct rbd_options *opt = pctx->opts; in rbd_parse_param()
6267 ret = ceph_parse_param(param, pctx->copts, NULL); in rbd_parse_param()
6300 kfree(pctx->spec->pool_ns); in rbd_parse_param()
6301 pctx->spec->pool_ns = param->string; in rbd_parse_param()
6356 static int rbd_parse_options(char *options, struct rbd_parse_opts_ctx *pctx) in rbd_parse_options() argument
6384 ret = rbd_parse_param(&param, pctx); in rbd_parse_options()
6445 struct rbd_parse_opts_ctx pctx = { 0 }; in rbd_add_parse_args() local
6468 pctx.spec = rbd_spec_alloc(); in rbd_add_parse_args()
6469 if (!pctx.spec) in rbd_add_parse_args()
[all …]
/linux/drivers/crypto/nx/
H A Dnx-842.c256 u8 *dst, unsigned int *dlen, void *pctx) in nx842_crypto_compress() argument
258 struct nx842_crypto_ctx *ctx = pctx; in nx842_crypto_compress()
441 u8 *dst, unsigned int *dlen, void *pctx) in nx842_crypto_decompress() argument
443 struct nx842_crypto_ctx *ctx = pctx; in nx842_crypto_decompress()
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_rc6_types.h34 struct drm_i915_gem_object *pctx; member
/linux/security/apparmor/
H A Daf_unix.c762 struct aa_sk_ctx *pctx = aa_sock(peer_sk); in aa_unix_file_perm() local
765 plabel = aa_get_label_rcu(&pctx->label); in aa_unix_file_perm()
786 update_peer_ctx(peer_sk, pctx, label); in aa_unix_file_perm()
/linux/fs/smb/client/
H A Dsmb2pdu.c948 struct smb2_neg_context *pctx; in smb311_decode_neg_context() local
968 pctx = (struct smb2_neg_context *)(offset + (char *)rsp); in smb311_decode_neg_context()
970 + le16_to_cpu(pctx->DataLength); in smb311_decode_neg_context()
981 if (pctx->ContextType == SMB2_PREAUTH_INTEGRITY_CAPABILITIES) in smb311_decode_neg_context()
983 (struct smb2_preauth_neg_context *)pctx); in smb311_decode_neg_context()
984 else if (pctx->ContextType == SMB2_ENCRYPTION_CAPABILITIES) in smb311_decode_neg_context()
986 (struct smb2_encryption_neg_context *)pctx); in smb311_decode_neg_context()
987 else if (pctx->ContextType == SMB2_COMPRESSION_CAPABILITIES) in smb311_decode_neg_context()
989 (struct smb2_compression_capabilities_context *)pctx); in smb311_decode_neg_context()
990 else if (pctx->ContextType == SMB2_POSIX_EXTENSIONS_AVAILABLE) in smb311_decode_neg_context()
[all …]
/linux/fs/smb/server/
H A Dsmb2pdu.c1017 struct smb2_neg_context *pctx = (struct smb2_neg_context *)req; in deassemble_neg_contexts() local
1037 pctx = (struct smb2_neg_context *)((char *)pctx + offset); in deassemble_neg_contexts()
1038 clen = le16_to_cpu(pctx->DataLength); in deassemble_neg_contexts()
1044 if (pctx->ContextType == SMB2_PREAUTH_INTEGRITY_CAPABILITIES) { in deassemble_neg_contexts()
1051 (struct smb2_preauth_neg_context *)pctx, in deassemble_neg_contexts()
1055 } else if (pctx->ContextType == SMB2_ENCRYPTION_CAPABILITIES) { in deassemble_neg_contexts()
1062 (struct smb2_encryption_neg_context *)pctx, in deassemble_neg_contexts()
1064 } else if (pctx->ContextType == SMB2_COMPRESSION_CAPABILITIES) { in deassemble_neg_contexts()
1071 (struct smb2_compression_capabilities_context *)pctx); in deassemble_neg_contexts()
1072 } else if (pctx->ContextType == SMB2_NETNAME_NEGOTIATE_CONTEXT_ID) { in deassemble_neg_contexts()
[all …]