tavor_ioctl_reg_write
status = tavor_ioctl_reg_write(state, arg, mode);
static int tavor_ioctl_reg_write(tavor_state_t *state, intptr_t arg,