its_cmd_ptr_to_offset
u64 wr = its_cmd_ptr_to_offset(its, its->cmd_write);
to_idx = its_cmd_ptr_to_offset(its, to);