Lines Matching refs:num_chunks

1257 	u32 cs_type_flags, num_chunks;  in hl_cs_sanity_checks()  local
1282 num_chunks = args->in.num_chunks_execute; in hl_cs_sanity_checks()
1293 if (!num_chunks) { in hl_cs_sanity_checks()
1297 } else if (is_sync_stream && num_chunks != 1) { in hl_cs_sanity_checks()
1309 void __user *chunks, u32 num_chunks, in hl_cs_copy_chunk_array() argument
1314 if (num_chunks > HL_MAX_JOBS_PER_CS) { in hl_cs_copy_chunk_array()
1323 *cs_chunk_array = kmalloc_array(num_chunks, sizeof(**cs_chunk_array), in hl_cs_copy_chunk_array()
1326 *cs_chunk_array = kmalloc_array(num_chunks, in hl_cs_copy_chunk_array()
1334 size_to_copy = num_chunks * sizeof(struct hl_cs_chunk); in hl_cs_copy_chunk_array()
1390 u32 num_chunks, u64 *cs_seq, u32 flags, in cs_ioctl_default() argument
1410 rc = hl_cs_copy_chunk_array(hdev, &cs_chunk_array, chunks, num_chunks, in cs_ioctl_default()
1443 for (i = 0 ; i < num_chunks ; i++) { in cs_ioctl_default()
1595 u32 num_chunks, tmp; in hl_cs_ctx_switch() local
1630 num_chunks = args->in.num_chunks_restore; in hl_cs_ctx_switch()
1632 if (!num_chunks) { in hl_cs_ctx_switch()
1637 rc = cs_ioctl_default(hpriv, chunks, num_chunks, in hl_cs_ctx_switch()
1651 if (num_chunks) { in hl_cs_ctx_switch()
2097 void __user *chunks, u32 num_chunks, in cs_ioctl_signal_wait() argument
2122 rc = hl_cs_copy_chunk_array(hdev, &cs_chunk_array, chunks, num_chunks, in cs_ioctl_signal_wait()
2403 u32 num_chunks, flags, timeout, in hl_cs_ioctl() local
2419 num_chunks = args->in.num_chunks_execute; in hl_cs_ioctl()
2435 rc = cs_ioctl_signal_wait(hpriv, cs_type, chunks, num_chunks, in hl_cs_ioctl()
2454 rc = cs_ioctl_default(hpriv, chunks, num_chunks, &cs_seq, in hl_cs_ioctl()