Lines Matching refs:copy_to_user
42 return copy_to_user(out, &dev_stat, in device_status_info()
112 return copy_to_user(out, &hw_ip, in hw_ip_info()
132 return copy_to_user(out, arr, min(max_size, size)) ? -EFAULT : 0; in hw_events_info()
149 return copy_to_user(out, &events_mask, sizeof(u64)) ? -EFAULT : 0; in events_info()
172 return copy_to_user(out, &dram_usage, in dram_usage_info()
191 return copy_to_user(out, &hw_idle, in hw_idle()
244 if (output && copy_to_user((void __user *) (uintptr_t) args->output_ptr, in debug_coresight()
274 return copy_to_user(out, &device_util, in device_utilization()
292 return copy_to_user(out, &clk_rate, min_t(size_t, max_size, sizeof(clk_rate))) in get_clk_rate()
308 return copy_to_user(out, &reset_count, in get_reset_count()
324 return copy_to_user(out, &time_sync, in time_sync_info()
343 return copy_to_user(out, &pci_counters, in pci_counters_info()
382 return copy_to_user(out, &clk_throttle, in clk_throttle_info()
433 return copy_to_user(out, &cs_counters, in cs_counters_info()
458 return copy_to_user(out, &sm_info, min_t(size_t, (size_t) max_size, in sync_manager_info()
479 return copy_to_user(out, &total_energy, in total_energy_consumption_info()
498 return copy_to_user(out, &freq_info, in pll_frequency_info()
517 return copy_to_user(out, &power_info, in power_info()
537 return copy_to_user(out, &open_stats_info, in open_stats_info()
556 return copy_to_user(out, &pend_rows_num, in dram_pending_rows_info()
575 return copy_to_user(out, &info, min_t(size_t, max_size, sizeof(info))) ? -EFAULT : 0; in dram_replaced_rows_info()
590 return copy_to_user(out, &info, min_t(size_t, max_size, sizeof(info))) ? -EFAULT : 0; in last_err_open_dev_info()
606 return copy_to_user(out, &info, min_t(size_t, max_size, sizeof(info))) ? -EFAULT : 0; in cs_timeout_info()
623 return copy_to_user(out, &razwi_info->razwi, in razwi_info()
646 return copy_to_user(out, &info, min_t(size_t, max_size, sizeof(info))) ? -EFAULT : 0; in undefined_opcode_info()
667 return copy_to_user(out, &info, min_t(size_t, max_size, sizeof(info))) ? -EFAULT : 0; in dev_mem_alloc_page_sizes_info()
708 rc = copy_to_user(out, info, in sec_attest_info()
784 rc = copy_to_user(out, eng_data.buf, min_t(size_t, status_buf_size, eng_data.actual_size)) ? in engine_status_info()
806 return copy_to_user(out, &pgf_info->page_fault, in page_fault_info()
831 return copy_to_user(out, pgf_info->user_mappings, actual_size) ? -EFAULT : 0; in user_mappings_info()
852 rc = copy_to_user(user_buf, &info->event, sizeof(struct hl_info_hw_err_event)); in hw_err_info()
874 rc = copy_to_user(user_buf, &info->event, sizeof(struct hl_info_fw_err_event)); in fw_err_info()
915 if (copy_to_user(buff, fw_buff, min(size, info_args->return_size))) { in send_fw_generic_request()
1193 if ((cmd & IOC_OUT) && copy_to_user((void __user *)arg, kdata, usize)) in _hl_ioctl()