Lines Matching refs:log_num

379 				   unsigned int log_num)  in vhost_scsi_copy_cmd_log()  argument
391 memcpy(cmd->tvc_log, log, sizeof(*cmd->tvc_log) * log_num); in vhost_scsi_copy_cmd_log()
392 cmd->tvc_log_num = log_num; in vhost_scsi_copy_cmd_log()
399 unsigned int log_num) in vhost_scsi_log_write() argument
404 if (likely(!log_num || !log)) in vhost_scsi_log_write()
412 vhost_log_write(vq, log, log_num, U64_MAX, NULL, 0); in vhost_scsi_log_write()
575 unsigned int log_num; in vhost_scsi_do_evt_work() local
594 log_num = 0; in vhost_scsi_do_evt_work()
598 vq_log, &log_num); in vhost_scsi_do_evt_work()
629 vhost_scsi_log_write(vq, vq_log, log_num); in vhost_scsi_do_evt_work()
1141 struct vhost_log *log, unsigned int *log_num) in vhost_scsi_get_desc() argument
1145 if (likely(log_num)) in vhost_scsi_get_desc()
1146 *log_num = 0; in vhost_scsi_get_desc()
1150 log, log_num); in vhost_scsi_get_desc()
1301 unsigned int log_num; in vhost_scsi_handle_vq() local
1321 ret = vhost_scsi_get_desc(vs, vq, &vc, vq_log, &log_num); in vhost_scsi_handle_vq()
1470 if (unlikely(vq_log && log_num)) { in vhost_scsi_handle_vq()
1471 ret = vhost_scsi_copy_cmd_log(vq, cmd, vq_log, log_num); in vhost_scsi_handle_vq()
1515 vhost_scsi_log_write(vq, vq_log, log_num); in vhost_scsi_handle_vq()
1519 vhost_scsi_log_write(vq, vq_log, log_num); in vhost_scsi_handle_vq()
1588 struct vhost_log *log, unsigned int log_num) in vhost_scsi_handle_tmf() argument
1616 if (unlikely(log && log_num)) { in vhost_scsi_handle_tmf()
1617 tmf->tmf_log = kmalloc_array(log_num, sizeof(*tmf->tmf_log), in vhost_scsi_handle_tmf()
1620 memcpy(tmf->tmf_log, log, sizeof(*tmf->tmf_log) * log_num); in vhost_scsi_handle_tmf()
1621 tmf->tmf_log_num = log_num; in vhost_scsi_handle_tmf()
1642 vhost_scsi_log_write(vq, log, log_num); in vhost_scsi_handle_tmf()
1680 unsigned int log_num; in vhost_scsi_ctl_handle_vq() local
1698 ret = vhost_scsi_get_desc(vs, vq, &vc, vq_log, &log_num); in vhost_scsi_ctl_handle_vq()
1763 vq_log, log_num); in vhost_scsi_ctl_handle_vq()
1766 vhost_scsi_log_write(vq, vq_log, log_num); in vhost_scsi_ctl_handle_vq()
1782 vhost_scsi_log_write(vq, vq_log, log_num); in vhost_scsi_ctl_handle_vq()