smb_door_encode
if (smb_door_encode(&da, cmd) != 0) {
static int smb_door_encode(smb_doorarg_t *, uint32_t);