Lines Matching refs:args_buff
534 unsigned char *args_buff; in kfd_ioctl_dbg_address_watch() local
562 args_buff = kmalloc(args->buf_size_in_bytes - in kfd_ioctl_dbg_address_watch()
564 if (args_buff == NULL) in kfd_ioctl_dbg_address_watch()
567 status = copy_from_user(args_buff, cmd_from_user, in kfd_ioctl_dbg_address_watch()
572 kfree(args_buff); in kfd_ioctl_dbg_address_watch()
578 aw_info.num_watch_points = *((uint32_t *)(&args_buff[args_idx])); in kfd_ioctl_dbg_address_watch()
581 aw_info.watch_mode = (enum HSA_DBG_WATCH_MODE *) &args_buff[args_idx]; in kfd_ioctl_dbg_address_watch()
588 aw_info.watch_address = (uint64_t *) &args_buff[args_idx]; in kfd_ioctl_dbg_address_watch()
594 kfree(args_buff); in kfd_ioctl_dbg_address_watch()
598 watch_mask_value = (uint64_t) args_buff[args_idx]; in kfd_ioctl_dbg_address_watch()
606 aw_info.watch_mask = (uint64_t *) &args_buff[args_idx]; in kfd_ioctl_dbg_address_watch()
618 kfree(args_buff); in kfd_ioctl_dbg_address_watch()
631 kfree(args_buff); in kfd_ioctl_dbg_address_watch()
643 unsigned char *args_buff; in kfd_ioctl_dbg_wave_control() local
682 args_buff = kmalloc(args->buf_size_in_bytes - sizeof(*args), in kfd_ioctl_dbg_wave_control()
685 if (args_buff == NULL) in kfd_ioctl_dbg_wave_control()
689 status = copy_from_user(args_buff, cmd_from_user, in kfd_ioctl_dbg_wave_control()
693 kfree(args_buff); in kfd_ioctl_dbg_wave_control()
700 wac_info.operand = *((enum HSA_DBG_WAVEOP *)(&args_buff[args_idx])); in kfd_ioctl_dbg_wave_control()
703 wac_info.mode = *((enum HSA_DBG_WAVEMODE *)(&args_buff[args_idx])); in kfd_ioctl_dbg_wave_control()
706 wac_info.trapId = *((uint32_t *)(&args_buff[args_idx])); in kfd_ioctl_dbg_wave_control()
710 *((uint32_t *)(&args_buff[args_idx])); in kfd_ioctl_dbg_wave_control()
726 kfree(args_buff); in kfd_ioctl_dbg_wave_control()