Lines Matching refs:slot
45 void Script::setSlot(uint32_t slot, Allocation *a) { in setSlot() argument
47 if (slot >= mHal.info.exportedVariableCount) { in setSlot()
54 mSlots[slot].set(a); in setSlot()
56 mRSC->mHal.funcs.script.setGlobalBind(mRSC, this, slot, a); in setSlot()
59 void Script::setVar(uint32_t slot, const void *val, size_t len) { in setVar() argument
61 if (slot >= mHal.info.exportedVariableCount) { in setVar()
67 mRSC->mHal.funcs.script.setGlobalVar(mRSC, this, slot, (void *)val, len); in setVar()
70 void Script::getVar(uint32_t slot, const void *val, size_t len) { in getVar() argument
72 if (slot >= mHal.info.exportedVariableCount) { in getVar()
74 "%u >= %zu", slot, mHal.info.exportedVariableCount); in getVar()
79 mRSC->mHal.funcs.script.getGlobalVar(mRSC, this, slot, (void *)val, len); in getVar()
82 void Script::setVar(uint32_t slot, const void *val, size_t len, Element *e, in setVar() argument
84 if (slot >= mHal.info.exportedVariableCount) { in setVar()
86 "%u >= %zu", slot, mHal.info.exportedVariableCount); in setVar()
91 mRSC->mHal.funcs.script.setGlobalVarWithElemDims(mRSC, this, slot, in setVar()
95 void Script::setVarObj(uint32_t slot, ObjectBase *val) { in setVarObj() argument
97 if (slot >= mHal.info.exportedVariableCount) { in setVarObj()
99 "%u >= %zu", slot, mHal.info.exportedVariableCount); in setVarObj()
105 mRSC->mHal.funcs.script.setGlobalObj(mRSC, this, slot, val); in setVarObj()
122 ScriptKernelID::ScriptKernelID(Context *rsc, Script *s, int slot, int sig) in ScriptKernelID() argument
123 : IDBase(rsc, s, slot) { in ScriptKernelID()
132 ScriptInvokeID::ScriptInvokeID(Context *rsc, Script *s, int slot) in ScriptInvokeID() argument
133 : IDBase(rsc, s, slot) { in ScriptInvokeID()
140 ScriptFieldID::ScriptFieldID(Context *rsc, Script *s, int slot) : in ScriptFieldID() argument
141 IDBase(rsc, s, slot) { in ScriptFieldID()
149 RsScriptKernelID rsi_ScriptKernelIDCreate(Context *rsc, RsScript vs, int slot, int sig) { in rsi_ScriptKernelIDCreate() argument
150 ScriptKernelID *kid = new ScriptKernelID(rsc, (Script *)vs, slot, sig); in rsi_ScriptKernelIDCreate()
155 RsScriptInvokeID rsi_ScriptInvokeIDCreate(Context *rsc, RsScript vs, uint32_t slot) { in rsi_ScriptInvokeIDCreate() argument
156 ScriptInvokeID *iid = new ScriptInvokeID(rsc, (Script *)vs, slot); in rsi_ScriptInvokeIDCreate()
161 RsScriptFieldID rsi_ScriptFieldIDCreate(Context *rsc, RsScript vs, int slot) { in rsi_ScriptFieldIDCreate() argument
162 ScriptFieldID *fid = new ScriptFieldID(rsc, (Script *)vs, slot); in rsi_ScriptFieldIDCreate()
167 void rsi_ScriptBindAllocation(Context * rsc, RsScript vs, RsAllocation va, uint32_t slot) { in rsi_ScriptBindAllocation() argument
170 s->setSlot(slot, a); in rsi_ScriptBindAllocation()
192 void rsi_ScriptForEachMulti(Context *rsc, RsScript vs, uint32_t slot, in rsi_ScriptForEachMulti() argument
201 s->runForEach(rsc, slot, in rsi_ScriptForEachMulti()
207 void rsi_ScriptForEach(Context *rsc, RsScript vs, uint32_t slot, in rsi_ScriptForEach() argument
213 rsi_ScriptForEachMulti(rsc, vs, slot, nullptr, 0, vaout, params, paramLen, in rsi_ScriptForEach()
218 rsi_ScriptForEachMulti(rsc, vs, slot, ains, in rsi_ScriptForEach()
224 void rsi_ScriptReduce(Context *rsc, RsScript vs, uint32_t slot, in rsi_ScriptReduce() argument
231 s->runReduce(rsc, slot, in rsi_ScriptReduce()
236 void rsi_ScriptInvoke(Context *rsc, RsScript vs, uint32_t slot) { in rsi_ScriptInvoke() argument
238 s->Invoke(rsc, slot, nullptr, 0); in rsi_ScriptInvoke()
242 void rsi_ScriptInvokeData(Context *rsc, RsScript vs, uint32_t slot, void *data) { in rsi_ScriptInvokeData() argument
244 s->Invoke(rsc, slot, nullptr, 0); in rsi_ScriptInvokeData()
247 void rsi_ScriptInvokeV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) { in rsi_ScriptInvokeV() argument
249 s->Invoke(rsc, slot, data, len); in rsi_ScriptInvokeV()
252 void rsi_ScriptSetVarI(Context *rsc, RsScript vs, uint32_t slot, int value) { in rsi_ScriptSetVarI() argument
254 s->setVar(slot, &value, sizeof(value)); in rsi_ScriptSetVarI()
257 void rsi_ScriptSetVarObj(Context *rsc, RsScript vs, uint32_t slot, RsObjectBase value) { in rsi_ScriptSetVarObj() argument
260 s->setVarObj(slot, o); in rsi_ScriptSetVarObj()
263 void rsi_ScriptSetVarJ(Context *rsc, RsScript vs, uint32_t slot, int64_t value) { in rsi_ScriptSetVarJ() argument
265 s->setVar(slot, &value, sizeof(value)); in rsi_ScriptSetVarJ()
268 void rsi_ScriptSetVarF(Context *rsc, RsScript vs, uint32_t slot, float value) { in rsi_ScriptSetVarF() argument
270 s->setVar(slot, &value, sizeof(value)); in rsi_ScriptSetVarF()
273 void rsi_ScriptSetVarD(Context *rsc, RsScript vs, uint32_t slot, double value) { in rsi_ScriptSetVarD() argument
275 s->setVar(slot, &value, sizeof(value)); in rsi_ScriptSetVarD()
278 void rsi_ScriptSetVarV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) { in rsi_ScriptSetVarV() argument
280 s->setVar(slot, data, len); in rsi_ScriptSetVarV()
283 void rsi_ScriptGetVarV(Context *rsc, RsScript vs, uint32_t slot, void *data, size_t len) { in rsi_ScriptGetVarV() argument
285 s->getVar(slot, data, len); in rsi_ScriptGetVarV()
288 void rsi_ScriptSetVarVE(Context *rsc, RsScript vs, uint32_t slot, in rsi_ScriptSetVarVE() argument
293 s->setVar(slot, data, len, e, dims, dimLen); in rsi_ScriptSetVarVE()