Lines Matching refs:expected
21 smpt->__reassembly.expected = 0; in smp_reassembly_init()
30 return smpt->__reassembly.expected; in smp_reassembly_expected()
41 uint16_t expected = sys_be16_to_cpu(((struct smp_hdr *)buf)->nh_len); in smp_reassembly_collect() local
48 expected += sizeof(struct smp_hdr); in smp_reassembly_collect()
52 expected > MCUMGR_TRANSPORT_NETBUF_SIZE) { in smp_reassembly_collect()
56 if (len > expected) { in smp_reassembly_collect()
62 smpt->__reassembly.expected = expected; in smp_reassembly_collect()
73 if (smpt->__reassembly.expected >= len) { in smp_reassembly_collect()
75 smpt->__reassembly.expected -= len; in smp_reassembly_collect()
83 return smpt->__reassembly.expected; in smp_reassembly_collect()
92 if (smpt->__reassembly.expected == 0 || force) { in smp_reassembly_complete()
93 int expected = smpt->__reassembly.expected; in smp_reassembly_complete() local
96 smpt->__reassembly.expected = 0; in smp_reassembly_complete()
98 return expected; in smp_reassembly_complete()
110 smpt->__reassembly.expected = 0; in smp_reassembly_drop()