Searched refs:cs_chunk_array (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/drivers/accel/habanalabs/common/ |
D | command_submission.c | 1408 struct hl_cs_chunk **cs_chunk_array, in hl_cs_copy_chunk_array() argument 1423 *cs_chunk_array = kmalloc_array(num_chunks, sizeof(**cs_chunk_array), in hl_cs_copy_chunk_array() 1425 if (!*cs_chunk_array) in hl_cs_copy_chunk_array() 1426 *cs_chunk_array = kmalloc_array(num_chunks, in hl_cs_copy_chunk_array() 1427 sizeof(**cs_chunk_array), GFP_KERNEL); in hl_cs_copy_chunk_array() 1428 if (!*cs_chunk_array) { in hl_cs_copy_chunk_array() 1435 if (copy_from_user(*cs_chunk_array, chunks, size_to_copy)) { in hl_cs_copy_chunk_array() 1439 kfree(*cs_chunk_array); in hl_cs_copy_chunk_array() 1496 struct hl_cs_chunk *cs_chunk_array; in cs_ioctl_default() local 1510 rc = hl_cs_copy_chunk_array(hdev, &cs_chunk_array, chunks, num_chunks, in cs_ioctl_default() [all …]
|