Home
last modified time | relevance | path

Searched refs:inst (Results 551 - 575 of 3196) sorted by relevance

1...<<21222324252627282930>>...128

/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Ddataflow.cpp23 bool DataFlowAnalysis::Enqueue(Instruction* inst) { in Enqueue() argument
24 bool& is_enqueued = on_worklist_[inst]; in Enqueue()
27 worklist_.push(inst); in Enqueue()
66 for (Instruction& inst : *bb) { in InitializeWorklist()
67 Enqueue(&inst); in InitializeWorklist()
75 void ForwardDataFlowAnalysis::EnqueueUsers(Instruction* inst) { in EnqueueUsers() argument
77 inst, [this](Instruction* user) { Enqueue(user); }); in EnqueueUsers()
80 void ForwardDataFlowAnalysis::EnqueueBlockSuccessors(Instruction* inst) { in EnqueueBlockSuccessors() argument
81 if (inst->opcode() != SpvOpLabel) return; in EnqueueBlockSuccessors()
84 ->block(inst in EnqueueBlockSuccessors()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Ddataflow.cpp23 bool DataFlowAnalysis::Enqueue(Instruction* inst) { in Enqueue() argument
24 bool& is_enqueued = on_worklist_[inst]; in Enqueue()
27 worklist_.push(inst); in Enqueue()
66 for (Instruction& inst : *bb) { in InitializeWorklist()
67 Enqueue(&inst); in InitializeWorklist()
75 void ForwardDataFlowAnalysis::EnqueueUsers(Instruction* inst) { in EnqueueUsers() argument
77 inst, [this](Instruction* user) { Enqueue(user); }); in EnqueueUsers()
80 void ForwardDataFlowAnalysis::EnqueueBlockSuccessors(Instruction* inst) { in EnqueueBlockSuccessors() argument
81 if (inst->opcode() != SpvOpLabel) return; in EnqueueBlockSuccessors()
84 ->block(inst in EnqueueBlockSuccessors()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
H A Dtest_sync_atomic.cpp22 #define X(inst, type) \
23 type test_##inst(bool fetch_first, volatile type *ptr, type a) { \
25 return __sync_fetch_and_##inst(ptr, a); \
27 return __sync_##inst##_and_fetch(ptr, a); \
30 type test_alloca_##inst(bool fetch, volatile type *ptr, type a) { \
35 buf[i] = __sync_fetch_and_##inst(ptr, a); \
37 buf[i] = __sync_##inst##_and_fetch(ptr, a); \
46 type test_const_##inst(bool fetch, volatile type *ptr, type ign) { \
48 return __sync_fetch_and_##inst(ptr, 42); \
51 return __sync_##inst##_and_fetc
[all...]
/third_party/spirv-tools/source/opt/
H A Ddataflow.cpp22 bool DataFlowAnalysis::Enqueue(Instruction* inst) { in Enqueue() argument
23 bool& is_enqueued = on_worklist_[inst]; in Enqueue()
26 worklist_.push(inst); in Enqueue()
65 for (Instruction& inst : *bb) { in InitializeWorklist()
66 Enqueue(&inst); in InitializeWorklist()
74 void ForwardDataFlowAnalysis::EnqueueUsers(Instruction* inst) { in EnqueueUsers() argument
76 inst, [this](Instruction* user) { Enqueue(user); }); in EnqueueUsers()
79 void ForwardDataFlowAnalysis::EnqueueBlockSuccessors(Instruction* inst) { in EnqueueBlockSuccessors() argument
80 if (inst->opcode() != spv::Op::OpLabel) return; in EnqueueBlockSuccessors()
83 ->block(inst in EnqueueBlockSuccessors()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_optc.h31 #define TG_COMMON_REG_LIST_DCN2_0(inst) \
32 TG_COMMON_REG_LIST_DCN(inst),\
33 SRI(OTG_GLOBAL_CONTROL1, OTG, inst),\
34 SRI(OTG_GLOBAL_CONTROL2, OTG, inst),\
35 SRI(OTG_GSL_WINDOW_X, OTG, inst),\
36 SRI(OTG_GSL_WINDOW_Y, OTG, inst),\
37 SRI(OTG_VUPDATE_KEEPOUT, OTG, inst),\
38 SRI(OTG_DSC_START_POSITION, OTG, inst),\
39 SRI(OTG_CRC_CNTL2, OTG, inst),\
40 SRI(OPTC_DATA_FORMAT_CONTROL, ODM, inst),\
[all...]
/third_party/vulkan-loader/loader/
H A Dallocation.c105 void *loader_instance_heap_alloc(const struct loader_instance *inst, size_t size, VkSystemAllocationScope allocation_scope) { argument
106 return loader_alloc(inst ? &inst->alloc_callbacks : NULL, size, allocation_scope);
109 void *loader_instance_heap_calloc(const struct loader_instance *inst, size_t size, VkSystemAllocationScope allocation_scope) { argument
110 return loader_calloc(inst ? &inst->alloc_callbacks : NULL, size, allocation_scope);
113 void loader_instance_heap_free(const struct loader_instance *inst, void *pMemory) { argument
114 loader_free(inst ? &inst->alloc_callbacks : NULL, pMemory);
116 void *loader_instance_heap_realloc(const struct loader_instance *inst, voi argument
137 loader_alloc_with_instance_fallback(const VkAllocationCallbacks *pAllocator, const struct loader_instance *inst, size_t size, VkSystemAllocationScope allocation_scope) global() argument
[all...]
/kernel/linux/linux-5.10/crypto/
H A Dauthencesn.c324 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_authenc_esn_init_tfm() local
325 struct authenc_esn_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_esn_init_tfm()
381 static void crypto_authenc_esn_free(struct aead_instance *inst) in crypto_authenc_esn_free() argument
383 struct authenc_esn_instance_ctx *ctx = aead_instance_ctx(inst); in crypto_authenc_esn_free()
387 kfree(inst); in crypto_authenc_esn_free()
394 struct aead_instance *inst; in crypto_authenc_esn_create() local
405 inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL); in crypto_authenc_esn_create()
406 if (!inst) in crypto_authenc_esn_create()
408 ctx = aead_instance_ctx(inst); in crypto_authenc_esn_create()
[all...]
H A Dofb.c54 struct skcipher_instance *inst; in crypto_ofb_create() local
58 inst = skcipher_alloc_instance_simple(tmpl, tb); in crypto_ofb_create()
59 if (IS_ERR(inst)) in crypto_ofb_create()
60 return PTR_ERR(inst); in crypto_ofb_create()
62 alg = skcipher_ialg_simple(inst); in crypto_ofb_create()
65 inst->alg.base.cra_blocksize = 1; in crypto_ofb_create()
71 inst->alg.chunksize = alg->cra_blocksize; in crypto_ofb_create()
73 inst->alg.encrypt = crypto_ofb_crypt; in crypto_ofb_create()
74 inst->alg.decrypt = crypto_ofb_crypt; in crypto_ofb_create()
76 err = skcipher_register_instance(tmpl, inst); in crypto_ofb_create()
[all...]
/kernel/linux/linux-5.10/arch/loongarch/kvm/
H A Dexit.c15 #include <asm/inst.h>
36 unsigned int exccode, inst; in _kvm_fault_ni() local
44 inst = vcpu->arch.badi; in _kvm_fault_ni()
45 kvm_err("Exccode: %d PC=%#lx inst=0x%08x BadVaddr=%#lx estat=%#llx\n", in _kvm_fault_ni()
46 exccode, vcpu->arch.pc, inst, badv, kvm_read_gcsr_estat()); in _kvm_fault_ni()
52 static int _kvm_handle_csr(struct kvm_vcpu *vcpu, larch_inst inst) in _kvm_handle_csr() argument
65 rd = inst.reg2csr_format.rd; in _kvm_handle_csr()
66 rj = inst.reg2csr_format.rj; in _kvm_handle_csr()
67 csrid = inst.reg2csr_format.csr; in _kvm_handle_csr()
89 static int _kvm_emu_cache(struct kvm_vcpu *vcpu, larch_inst inst) in _kvm_emu_cache() argument
98 larch_inst inst; _kvm_trap_handle_gspr() local
184 larch_inst inst; _kvm_check_hypcall() local
409 larch_inst inst; _kvm_handle_read_fault() local
447 larch_inst inst; _kvm_handle_write_fault() local
[all...]
/kernel/linux/linux-6.6/crypto/
H A Dauthencesn.c321 struct aead_instance *inst = aead_alg_instance(tfm); in crypto_authenc_esn_init_tfm() local
322 struct authenc_esn_instance_ctx *ictx = aead_instance_ctx(inst); in crypto_authenc_esn_init_tfm()
378 static void crypto_authenc_esn_free(struct aead_instance *inst) in crypto_authenc_esn_free() argument
380 struct authenc_esn_instance_ctx *ctx = aead_instance_ctx(inst); in crypto_authenc_esn_free()
384 kfree(inst); in crypto_authenc_esn_free()
391 struct aead_instance *inst; in crypto_authenc_esn_create() local
402 inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL); in crypto_authenc_esn_create()
403 if (!inst) in crypto_authenc_esn_create()
405 ctx = aead_instance_ctx(inst); in crypto_authenc_esn_create()
[all...]
H A Dhctr2.c336 struct skcipher_instance *inst = skcipher_alg_instance(tfm); in hctr2_init_tfm() local
337 struct hctr2_instance_ctx *ictx = skcipher_instance_ctx(inst); in hctr2_init_tfm()
394 static void hctr2_free_instance(struct skcipher_instance *inst) in hctr2_free_instance() argument
396 struct hctr2_instance_ctx *ictx = skcipher_instance_ctx(inst); in hctr2_free_instance()
401 kfree(inst); in hctr2_free_instance()
410 struct skcipher_instance *inst; in hctr2_create_common() local
423 inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); in hctr2_create_common()
424 if (!inst) in hctr2_create_common()
426 ictx = skcipher_instance_ctx(inst); in hctr2_create_common()
[all...]
H A Dxts.c297 struct skcipher_instance *inst = skcipher_alg_instance(tfm); in xts_init_tfm() local
298 struct xts_instance_ctx *ictx = skcipher_instance_ctx(inst); in xts_init_tfm()
331 static void xts_free_instance(struct skcipher_instance *inst) in xts_free_instance() argument
333 struct xts_instance_ctx *ictx = skcipher_instance_ctx(inst); in xts_free_instance()
337 kfree(inst); in xts_free_instance()
343 struct skcipher_instance *inst; in xts_create() local
358 inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL); in xts_create()
359 if (!inst) in xts_create()
362 ctx = skcipher_instance_ctx(inst); in xts_create()
[all...]
H A Dofb.c55 struct skcipher_instance *inst; in crypto_ofb_create() local
59 inst = skcipher_alloc_instance_simple(tmpl, tb); in crypto_ofb_create()
60 if (IS_ERR(inst)) in crypto_ofb_create()
61 return PTR_ERR(inst); in crypto_ofb_create()
63 alg = skcipher_ialg_simple(inst); in crypto_ofb_create()
66 inst->alg.base.cra_blocksize = 1; in crypto_ofb_create()
72 inst->alg.chunksize = alg->cra_blocksize; in crypto_ofb_create()
74 inst->alg.encrypt = crypto_ofb_crypt; in crypto_ofb_create()
75 inst->alg.decrypt = crypto_ofb_crypt; in crypto_ofb_create()
77 err = skcipher_register_instance(tmpl, inst); in crypto_ofb_create()
[all...]
/kernel/linux/linux-6.6/tools/verification/rv/src/
H A Din_kernel.c341 /* if needed: struct trace_instance *inst = context; */ in ikm_event_handler()
434 struct trace_instance *inst; in ikm_setup_trace_instance() local
447 inst = calloc(1, sizeof(*inst)); in ikm_setup_trace_instance()
448 if (!inst) { in ikm_setup_trace_instance()
453 retval = trace_instance_init(inst, monitor_name); in ikm_setup_trace_instance()
459 retval = tracefs_event_enable(inst->inst, "rv", event); in ikm_setup_trace_instance()
463 tep_register_event_handler(inst->tep, -1, "rv", event, in ikm_setup_trace_instance()
467 retval = tracefs_event_enable(inst in ikm_setup_trace_instance()
490 ikm_destroy_trace_instance(struct trace_instance *inst) ikm_destroy_trace_instance() argument
635 struct trace_instance *inst = NULL; ikm_run_monitor() local
[all...]
/kernel/linux/linux-5.10/drivers/phy/samsung/
H A Dphy-s5pv210-usb2.c89 static void s5pv210_isol(struct samsung_usb2_phy_instance *inst, bool on) in s5pv210_isol() argument
91 struct samsung_usb2_phy_driver *drv = inst->drv; in s5pv210_isol()
94 switch (inst->cfg->id) { in s5pv210_isol()
109 static void s5pv210_phy_pwr(struct samsung_usb2_phy_instance *inst, bool on) in s5pv210_phy_pwr() argument
111 struct samsung_usb2_phy_driver *drv = inst->drv; in s5pv210_phy_pwr()
117 switch (inst->cfg->id) { in s5pv210_phy_pwr()
153 static int s5pv210_power_on(struct samsung_usb2_phy_instance *inst) in s5pv210_power_on() argument
155 s5pv210_isol(inst, 0); in s5pv210_power_on()
156 s5pv210_phy_pwr(inst, 1); in s5pv210_power_on()
161 static int s5pv210_power_off(struct samsung_usb2_phy_instance *inst) in s5pv210_power_off() argument
[all...]
/kernel/linux/linux-6.6/drivers/phy/samsung/
H A Dphy-s5pv210-usb2.c89 static void s5pv210_isol(struct samsung_usb2_phy_instance *inst, bool on) in s5pv210_isol() argument
91 struct samsung_usb2_phy_driver *drv = inst->drv; in s5pv210_isol()
94 switch (inst->cfg->id) { in s5pv210_isol()
109 static void s5pv210_phy_pwr(struct samsung_usb2_phy_instance *inst, bool on) in s5pv210_phy_pwr() argument
111 struct samsung_usb2_phy_driver *drv = inst->drv; in s5pv210_phy_pwr()
117 switch (inst->cfg->id) { in s5pv210_phy_pwr()
153 static int s5pv210_power_on(struct samsung_usb2_phy_instance *inst) in s5pv210_power_on() argument
155 s5pv210_isol(inst, 0); in s5pv210_power_on()
156 s5pv210_phy_pwr(inst, 1); in s5pv210_power_on()
161 static int s5pv210_power_off(struct samsung_usb2_phy_instance *inst) in s5pv210_power_off() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/top/
H A Dgk104.c32 u32 data, type, inst; in gk104_top_parse() local
40 inst = 0; in gk104_top_parse()
49 inst = (data & 0x3c000000) >> 26; in gk104_top_parse()
73 #define I_(T,I) do { info->type = (T); info->inst = (I); } while(0) in gk104_top_parse()
74 #define O_(T,I) do { WARN_ON(inst); I_(T, I); } while (0) in gk104_top_parse()
86 case 0x0000000e: I_(NVKM_ENGINE_NVENC , inst); break; in gk104_top_parse()
88 case 0x00000010: I_(NVKM_ENGINE_NVDEC , inst); break; in gk104_top_parse()
89 case 0x00000012: I_(NVKM_SUBDEV_IOCTRL, inst); break; in gk104_top_parse()
90 case 0x00000013: I_(NVKM_ENGINE_CE , inst); break; in gk104_top_parse()
99 "reset %2d\n", type, inst, in gk104_top_parse()
115 gk104_top_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_top **ptop) gk104_top_new() argument
[all...]
H A Dga100.c30 u32 data, type, inst; in ga100_top_parse() local
38 inst = 0; in ga100_top_parse()
49 inst = (data & 0x000f0000) >> 16; in ga100_top_parse()
69 #define I_(T,I) do { info->type = (T); info->inst = (I); } while(0) in ga100_top_parse()
70 #define O_(T,I) do { WARN_ON(inst); I_(T, I); } while (0) in ga100_top_parse()
74 case 0x0000000e: I_(NVKM_ENGINE_NVENC , inst); break; in ga100_top_parse()
75 case 0x00000010: I_(NVKM_ENGINE_NVDEC , inst); break; in ga100_top_parse()
76 case 0x00000012: I_(NVKM_SUBDEV_IOCTRL, inst); break; in ga100_top_parse()
77 case 0x00000013: I_(NVKM_ENGINE_CE , inst); break; in ga100_top_parse()
88 "runlist %6x engine %2d reset %2d\n", type, inst, in ga100_top_parse()
104 ga100_top_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_top **ptop) ga100_top_new() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
H A Dradeon_dataflow.h50 typedef void (*rc_read_write_chan_fn)(void * userdata, struct rc_instruction * inst,
52 void rc_for_all_reads_chan(struct rc_instruction * inst, rc_read_write_chan_fn cb, void * userdata);
53 void rc_for_all_writes_chan(struct rc_instruction * inst, rc_read_write_chan_fn cb, void * userdata);
55 typedef void (*rc_read_write_mask_fn)(void * userdata, struct rc_instruction * inst,
57 void rc_for_all_reads_mask(struct rc_instruction * inst, rc_read_write_mask_fn cb, void * userdata);
58 void rc_for_all_writes_mask(struct rc_instruction * inst, rc_read_write_mask_fn cb, void * userdata);
60 typedef void (*rc_read_src_fn)(void * userdata, struct rc_instruction * inst,
62 void rc_for_all_reads_src(struct rc_instruction * inst, rc_read_src_fn cb,
66 struct rc_instruction * inst, struct rc_pair_instruction_arg * arg,
68 void rc_pair_for_all_reads_arg(struct rc_instruction * inst,
[all...]
H A Dradeon_remove_constants.c37 static void remap_regs(void * userdata, struct rc_instruction * inst, in remap_regs() argument
47 static void mark_used(void * userdata, struct rc_instruction * inst, in mark_used() argument
86 for (struct rc_instruction *inst = c->Program.Instructions.Next; in rc_remove_unused_constants()
87 inst != &c->Program.Instructions; inst = inst->Next) { in rc_remove_unused_constants()
88 rc_for_all_reads_src(inst, mark_used, &d); in rc_remove_unused_constants()
128 for (struct rc_instruction *inst = c->Program.Instructions.Next; in rc_remove_unused_constants()
129 inst != &c->Program.Instructions; inst in rc_remove_unused_constants()
[all...]
H A Dradeon_dataflow_swizzles.c41 struct rc_instruction * inst, unsigned src) in rewrite_source()
49 if (GET_SWZ(inst->U.I.SrcReg[src].Swizzle, chan) != RC_SWIZZLE_UNUSED) in rewrite_source()
53 c->SwizzleCaps->Split(inst->U.I.SrcReg[src], usemask, &split); in rewrite_source()
56 struct rc_instruction * mov = rc_insert_new_instruction(c, inst->Prev); in rewrite_source()
63 mov->U.I.SrcReg[0] = inst->U.I.SrcReg[src]; in rewrite_source()
64 mov->U.I.PreSub = inst->U.I.PreSub; in rewrite_source()
79 inst->U.I.SrcReg[src].File = RC_FILE_TEMPORARY; in rewrite_source()
80 inst->U.I.SrcReg[src].Index = tempreg; in rewrite_source()
81 inst->U.I.SrcReg[src].Swizzle = 0; in rewrite_source()
82 inst in rewrite_source()
40 rewrite_source(struct radeon_compiler * c, struct rc_instruction * inst, unsigned src) rewrite_source() argument
424 struct rc_instruction * inst; rc_dataflow_swizzles() local
[all...]
/third_party/spirv-tools/source/val/
H A Dvalidate_decorations.cpp117 const auto inst = vstate.FindDef(struct_id);
118 return std::vector<uint32_t>(inst->words().begin() + 2, inst->words().end());
136 const auto* inst = vstate.FindDef(struct_id);
139 if (inst->opcode() == spv::Op::OpTypeStruct) {
152 } else if (inst->opcode() == spv::Op::OpTypeArray ||
153 inst->opcode() == spv::Op::OpTypeRuntimeArray) {
155 struct_members.push_back(inst->GetOperandAs<uint32_t>(1u));
183 const auto inst = vstate.FindDef(member_id);
184 const auto& words = inst
[all...]
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_qir_live_variables.c67 struct qinst *inst) in get_partial_update_state()
71 &inst->dst.index); in get_partial_update_state()
78 _mesa_hash_table_insert(partial_update_ht, &inst->dst.index, state); in get_partial_update_state()
85 struct hash_table *partial_update_ht, struct qinst *inst) in qir_setup_def()
91 int var = qir_reg_to_var(inst->dst); in qir_setup_def()
113 if ((inst->cond == QPU_COND_ALWAYS || in qir_setup_def()
114 inst->cond_is_exec_mask) && !inst->dst.pack) { in qir_setup_def()
138 get_partial_update_state(partial_update_ht, inst); in qir_setup_def()
139 uint8_t mask = qir_channels_written(inst); in qir_setup_def()
66 get_partial_update_state(struct hash_table *partial_update_ht, struct qinst *inst) get_partial_update_state() argument
84 qir_setup_def(struct vc4_compile *c, struct qblock *block, int ip, struct hash_table *partial_update_ht, struct qinst *inst) qir_setup_def() argument
[all...]
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_vec4_live_variables.cpp75 foreach_inst_in_block(vec4_instruction, inst, block) { in setup_def_use()
80 if (inst->src[i].file == VGRF) { in setup_def_use()
81 for (unsigned j = 0; j < DIV_ROUND_UP(inst->size_read(i), 16); j++) { in setup_def_use()
83 const unsigned v = var_from_reg(alloc, inst->src[i], c, j); in setup_def_use()
95 if (inst->reads_flag(c) && in setup_def_use()
102 if (inst->dst.file == VGRF) { in setup_def_use()
103 for (unsigned i = 0; i < DIV_ROUND_UP(inst->size_written, 16); i++) { in setup_def_use()
105 if (inst->dst.writemask & (1 << c)) { in setup_def_use()
106 const unsigned v = var_from_reg(alloc, inst->dst, c, i); in setup_def_use()
115 if ((!inst in setup_def_use()
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
H A Dfuzzer_pass_add_equation_instructions.cpp99 for (const auto* inst : in Apply()
102 GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in Apply()
103 assert(type && "|inst| has invalid type"); in Apply()
111 candidate_instructions.push_back(inst); in Apply()
301 for (auto& inst : instructions) { in GetIntegerInstructions()
302 auto type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in GetIntegerInstructions()
305 result.push_back(inst); in GetIntegerInstructions()
315 for (auto& inst : instructions) { in GetFloatInstructions()
316 auto type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in GetFloatInstructions()
319 result.push_back(inst); in GetFloatInstructions()
[all...]

Completed in 11 milliseconds

1...<<21222324252627282930>>...128