def in.put.give

bend-osdev-acpi@0.1.1.0 · aml_interp.bend:1204

import bend-osdev-acpi@0.1.1.0/aml_interp.bend as AmlInterp
import Base
import bend-osdev-acpi@0.1.1.0/error.bend as E
import bend-osdev-acpi@0.1.1.0/aml_value.bend as V
import bend-osdev-acpi@0.1.1.0/aml_host.bend as Hs

1204def in.put.give(~H: Data, ~io: H -> Hs.AmlHostOp -> Result<&2, &2, E.AcpiError, Hs.AmlHostAns<H>>, r: Result<&2, &2, E.AcpiError, V.AmlLoc>, +v: V.AmlValue, c: AmlCur, fs: List<&2, AmlFrame>, +w: AmlWorld<H>) -> AmlMachine<H>:
1205  match r:
1206    case Fail{e}:
1207      AmlMachine{AmlMFail{e}, c, fs, w}
1208    case Done{l}:
1209      in.then.give(H, in.put(~H, ~io, l, w, v), v, c, fs, w)

Uses (14)

Used by (2)