Lines Matching refs:cs_chunk_array
1388 struct hl_cs_chunk **cs_chunk_array, in hl_cs_copy_chunk_array() argument
1403 *cs_chunk_array = kmalloc_array(num_chunks, sizeof(**cs_chunk_array), in hl_cs_copy_chunk_array()
1405 if (!*cs_chunk_array) in hl_cs_copy_chunk_array()
1406 *cs_chunk_array = kmalloc_array(num_chunks, in hl_cs_copy_chunk_array()
1407 sizeof(**cs_chunk_array), GFP_KERNEL); in hl_cs_copy_chunk_array()
1408 if (!*cs_chunk_array) { in hl_cs_copy_chunk_array()
1415 if (copy_from_user(*cs_chunk_array, chunks, size_to_copy)) { in hl_cs_copy_chunk_array()
1419 kfree(*cs_chunk_array); in hl_cs_copy_chunk_array()
1476 struct hl_cs_chunk *cs_chunk_array; in cs_ioctl_default() local
1490 rc = hl_cs_copy_chunk_array(hdev, &cs_chunk_array, chunks, num_chunks, in cs_ioctl_default()
1524 struct hl_cs_chunk *chunk = &cs_chunk_array[i]; in cs_ioctl_default()
1662 kfree(cs_chunk_array); in cs_ioctl_default()
2192 struct hl_cs_chunk *cs_chunk_array, *chunk; in cs_ioctl_signal_wait() local
2209 rc = hl_cs_copy_chunk_array(hdev, &cs_chunk_array, chunks, num_chunks, in cs_ioctl_signal_wait()
2215 chunk = &cs_chunk_array[0]; in cs_ioctl_signal_wait()
2442 kfree(cs_chunk_array); in cs_ioctl_signal_wait()