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()
152 RsScriptKernelID rsi_ScriptKernelIDCreate(Context *rsc, RsScript vs, int slot, int sig) { in rsi_ScriptKernelIDCreate() argument
153 ScriptKernelID *kid = new ScriptKernelID(rsc, (Script *)vs, slot, sig); in rsi_ScriptKernelIDCreate()
158 RsScriptInvokeID rsi_ScriptInvokeIDCreate(Context *rsc, RsScript vs, uint32_t slot) { in rsi_ScriptInvokeIDCreate() argument
159 ScriptInvokeID *iid = new ScriptInvokeID(rsc, (Script *)vs, slot); in rsi_ScriptInvokeIDCreate()
164 RsScriptFieldID rsi_ScriptFieldIDCreate(Context *rsc, RsScript vs, int slot) { in rsi_ScriptFieldIDCreate() argument
165 ScriptFieldID *fid = new ScriptFieldID(rsc, (Script *)vs, slot); in rsi_ScriptFieldIDCreate()
170 void rsi_ScriptBindAllocation(Context * rsc, RsScript vs, RsAllocation va, uint32_t slot) { in rsi_ScriptBindAllocation() argument
173 s->setSlot(slot, a); in rsi_ScriptBindAllocation()
195 void rsi_ScriptForEachMulti(Context *rsc, RsScript vs, uint32_t slot, in rsi_ScriptForEachMulti() argument
204 s->runForEach(rsc, slot, in rsi_ScriptForEachMulti()
210 void rsi_ScriptForEach(Context *rsc, RsScript vs, uint32_t slot, in rsi_ScriptForEach() argument
216 rsi_ScriptForEachMulti(rsc, vs, slot, nullptr, 0, vaout, params, paramLen, in rsi_ScriptForEach()
221 rsi_ScriptForEachMulti(rsc, vs, slot, ains, in rsi_ScriptForEach()
227 void rsi_ScriptInvoke(Context *rsc, RsScript vs, uint32_t slot) { in rsi_ScriptInvoke() argument
229 s->Invoke(rsc, slot, nullptr, 0); in rsi_ScriptInvoke()
233 void rsi_ScriptInvokeData(Context *rsc, RsScript vs, uint32_t slot, void *data) { in rsi_ScriptInvokeData() argument
235 s->Invoke(rsc, slot, nullptr, 0); in rsi_ScriptInvokeData()
238 void rsi_ScriptInvokeV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) { in rsi_ScriptInvokeV() argument
240 s->Invoke(rsc, slot, data, len); in rsi_ScriptInvokeV()
243 void rsi_ScriptSetVarI(Context *rsc, RsScript vs, uint32_t slot, int value) { in rsi_ScriptSetVarI() argument
245 s->setVar(slot, &value, sizeof(value)); in rsi_ScriptSetVarI()
248 void rsi_ScriptSetVarObj(Context *rsc, RsScript vs, uint32_t slot, RsObjectBase value) { in rsi_ScriptSetVarObj() argument
251 s->setVarObj(slot, o); in rsi_ScriptSetVarObj()
254 void rsi_ScriptSetVarJ(Context *rsc, RsScript vs, uint32_t slot, int64_t value) { in rsi_ScriptSetVarJ() argument
256 s->setVar(slot, &value, sizeof(value)); in rsi_ScriptSetVarJ()
259 void rsi_ScriptSetVarF(Context *rsc, RsScript vs, uint32_t slot, float value) { in rsi_ScriptSetVarF() argument
261 s->setVar(slot, &value, sizeof(value)); in rsi_ScriptSetVarF()
264 void rsi_ScriptSetVarD(Context *rsc, RsScript vs, uint32_t slot, double value) { in rsi_ScriptSetVarD() argument
266 s->setVar(slot, &value, sizeof(value)); in rsi_ScriptSetVarD()
269 void rsi_ScriptSetVarV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) { in rsi_ScriptSetVarV() argument
271 s->setVar(slot, data, len); in rsi_ScriptSetVarV()
274 void rsi_ScriptGetVarV(Context *rsc, RsScript vs, uint32_t slot, void *data, size_t len) { in rsi_ScriptGetVarV() argument
276 s->getVar(slot, data, len); in rsi_ScriptGetVarV()
279 void rsi_ScriptSetVarVE(Context *rsc, RsScript vs, uint32_t slot, in rsi_ScriptSetVarVE() argument
284 s->setVar(slot, data, len, e, dims, dimLen); in rsi_ScriptSetVarVE()