Lines Matching refs:mdbo
213 static int process_mdb(SCLPEvent *event, MDBO *mdbo) in process_mdb() argument
219 len = be16_to_cpu(mdbo->length); in process_mdb()
220 len -= sizeof(mdbo->length) + sizeof(mdbo->type) in process_mdb()
221 + sizeof(mdbo->mto.line_type_flags) in process_mdb()
222 + sizeof(mdbo->mto.alarm_control) in process_mdb()
223 + sizeof(mdbo->mto._reserved); in process_mdb()
228 ascii_put(buffer, mdbo->mto.message, len); in process_mdb()
241 MDBO *mdbo; in write_event_data() local
252 mdbo = data->mdb.mdbo; in write_event_data()
254 if (be16_to_cpu(mdbo->length) > len in write_event_data()
255 || be16_to_cpu(mdbo->length) == 0) { in write_event_data()
258 len -= be16_to_cpu(mdbo->length); in write_event_data()
259 mdbo = (void *) mdbo + be16_to_cpu(mdbo->length); in write_event_data()
264 mdbo = data->mdb.mdbo; in write_event_data()
266 switch (be16_to_cpu(mdbo->type)) { in write_event_data()
269 written = process_mdb(event, mdbo); in write_event_data()
278 len -= be16_to_cpu(mdbo->length); in write_event_data()
279 mdbo = (void *) mdbo + be16_to_cpu(mdbo->length); in write_event_data()