Lines Matching refs:slot

44 void Script::setSlot(uint32_t slot, Allocation *a) {  in setSlot()  argument
46 if (slot >= mHal.info.exportedVariableCount) { in setSlot()
51 mSlots[slot].set(a); in setSlot()
53 mRSC->mHal.funcs.script.setGlobalBind(mRSC, this, slot, a); in setSlot()
56 void Script::setVar(uint32_t slot, const void *val, size_t len) { in setVar() argument
58 if (slot >= mHal.info.exportedVariableCount) { in setVar()
62 mRSC->mHal.funcs.script.setGlobalVar(mRSC, this, slot, (void *)val, len); in setVar()
65 void Script::getVar(uint32_t slot, const void *val, size_t len) { in getVar() argument
67 if (slot >= mHal.info.exportedVariableCount) { in getVar()
69 "%u >= %zu", slot, mHal.info.exportedVariableCount); in getVar()
72 mRSC->mHal.funcs.script.getGlobalVar(mRSC, this, slot, (void *)val, len); in getVar()
75 void Script::setVar(uint32_t slot, const void *val, size_t len, Element *e, in setVar() argument
77 if (slot >= mHal.info.exportedVariableCount) { in setVar()
79 "%u >= %zu", slot, mHal.info.exportedVariableCount); in setVar()
82 mRSC->mHal.funcs.script.setGlobalVarWithElemDims(mRSC, this, slot, in setVar()
86 void Script::setVarObj(uint32_t slot, ObjectBase *val) { in setVarObj() argument
88 if (slot >= mHal.info.exportedVariableCount) { in setVarObj()
90 "%u >= %zu", slot, mHal.info.exportedVariableCount); in setVarObj()
94 mRSC->mHal.funcs.script.setGlobalObj(mRSC, this, slot, val); in setVarObj()
111 ScriptKernelID::ScriptKernelID(Context *rsc, Script *s, int slot, int sig) in ScriptKernelID() argument
115 mSlot = slot; in ScriptKernelID()
132 ScriptFieldID::ScriptFieldID(Context *rsc, Script *s, int slot) : ObjectBase(rsc) { in ScriptFieldID() argument
134 mSlot = slot; in ScriptFieldID()
153 RsScriptKernelID rsi_ScriptKernelIDCreate(Context *rsc, RsScript vs, int slot, int sig) { in rsi_ScriptKernelIDCreate() argument
154 ScriptKernelID *kid = new ScriptKernelID(rsc, (Script *)vs, slot, sig); in rsi_ScriptKernelIDCreate()
159 RsScriptFieldID rsi_ScriptFieldIDCreate(Context *rsc, RsScript vs, int slot) { in rsi_ScriptFieldIDCreate() argument
160 ScriptFieldID *fid = new ScriptFieldID(rsc, (Script *)vs, slot); in rsi_ScriptFieldIDCreate()
165 void rsi_ScriptBindAllocation(Context * rsc, RsScript vs, RsAllocation va, uint32_t slot) { in rsi_ScriptBindAllocation() argument
168 s->setSlot(slot, a); in rsi_ScriptBindAllocation()
190 void rsi_ScriptForEach(Context *rsc, RsScript vs, uint32_t slot, in rsi_ScriptForEach() argument
202 s->runForEach(rsc, slot, in rsi_ScriptForEach()
208 void rsi_ScriptForEachMulti(Context *rsc, RsScript vs, uint32_t slot, in rsi_ScriptForEachMulti() argument
224 s->runForEach(rsc, slot, in rsi_ScriptForEachMulti()
230 void rsi_ScriptInvoke(Context *rsc, RsScript vs, uint32_t slot) { in rsi_ScriptInvoke() argument
232 s->Invoke(rsc, slot, NULL, 0); in rsi_ScriptInvoke()
236 void rsi_ScriptInvokeData(Context *rsc, RsScript vs, uint32_t slot, void *data) { in rsi_ScriptInvokeData() argument
238 s->Invoke(rsc, slot, NULL, 0); in rsi_ScriptInvokeData()
241 void rsi_ScriptInvokeV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) { in rsi_ScriptInvokeV() argument
243 s->Invoke(rsc, slot, data, len); in rsi_ScriptInvokeV()
246 void rsi_ScriptSetVarI(Context *rsc, RsScript vs, uint32_t slot, int value) { in rsi_ScriptSetVarI() argument
248 s->setVar(slot, &value, sizeof(value)); in rsi_ScriptSetVarI()
251 void rsi_ScriptSetVarObj(Context *rsc, RsScript vs, uint32_t slot, RsObjectBase value) { in rsi_ScriptSetVarObj() argument
254 s->setVarObj(slot, o); in rsi_ScriptSetVarObj()
257 void rsi_ScriptSetVarJ(Context *rsc, RsScript vs, uint32_t slot, int64_t value) { in rsi_ScriptSetVarJ() argument
259 s->setVar(slot, &value, sizeof(value)); in rsi_ScriptSetVarJ()
262 void rsi_ScriptSetVarF(Context *rsc, RsScript vs, uint32_t slot, float value) { in rsi_ScriptSetVarF() argument
264 s->setVar(slot, &value, sizeof(value)); in rsi_ScriptSetVarF()
267 void rsi_ScriptSetVarD(Context *rsc, RsScript vs, uint32_t slot, double value) { in rsi_ScriptSetVarD() argument
269 s->setVar(slot, &value, sizeof(value)); in rsi_ScriptSetVarD()
272 void rsi_ScriptSetVarV(Context *rsc, RsScript vs, uint32_t slot, const void *data, size_t len) { in rsi_ScriptSetVarV() argument
274 s->setVar(slot, data, len); in rsi_ScriptSetVarV()
277 void rsi_ScriptGetVarV(Context *rsc, RsScript vs, uint32_t slot, void *data, size_t len) { in rsi_ScriptGetVarV() argument
279 s->getVar(slot, data, len); in rsi_ScriptGetVarV()
282 void rsi_ScriptSetVarVE(Context *rsc, RsScript vs, uint32_t slot, in rsi_ScriptSetVarVE() argument
287 s->setVar(slot, data, len, e, dims, dimLen); in rsi_ScriptSetVarVE()