Lines Matching refs:retval

96 	int retval;  in pm_allocate_runlist_ib()  local
105 retval = kfd_gtt_sa_allocate(node, *rl_buffer_size, &pm->ib_buffer_obj); in pm_allocate_runlist_ib()
107 if (retval) { in pm_allocate_runlist_ib()
120 return retval; in pm_allocate_runlist_ib()
132 int retval, processes_mapped; in pm_create_runlist_ib() local
139 rl_wptr = retval = processes_mapped = 0; in pm_create_runlist_ib()
141 retval = pm_allocate_runlist_ib(pm, &rl_buffer, rl_gpu_addr, in pm_create_runlist_ib()
143 if (retval) in pm_create_runlist_ib()
144 return retval; in pm_create_runlist_ib()
162 retval = pm->pmf->map_process(pm, &rl_buffer[rl_wptr], qpd); in pm_create_runlist_ib()
163 if (retval) in pm_create_runlist_ib()
164 return retval; in pm_create_runlist_ib()
178 retval = pm->pmf->map_queues(pm, in pm_create_runlist_ib()
182 if (retval) in pm_create_runlist_ib()
183 return retval; in pm_create_runlist_ib()
198 retval = pm->pmf->map_queues(pm, in pm_create_runlist_ib()
203 if (retval) in pm_create_runlist_ib()
204 return retval; in pm_create_runlist_ib()
219 retval = pm->pmf->runlist(pm, &rl_buffer[rl_wptr], in pm_create_runlist_ib()
230 return retval; in pm_create_runlist_ib()
287 int retval = 0; in pm_send_set_resources() local
296 retval = -ENOMEM; in pm_send_set_resources()
300 retval = pm->pmf->set_resources(pm, buffer, res); in pm_send_set_resources()
301 if (!retval) in pm_send_set_resources()
302 retval = kq_submit_packet(pm->priv_queue); in pm_send_set_resources()
309 return retval; in pm_send_set_resources()
317 int retval; in pm_send_runlist() local
319 retval = pm_create_runlist_ib(pm, dqm_queues, &rl_gpu_ib_addr, in pm_send_runlist()
321 if (retval) in pm_send_runlist()
329 retval = kq_acquire_packet_buffer(pm->priv_queue, in pm_send_runlist()
331 if (retval) in pm_send_runlist()
334 retval = pm->pmf->runlist(pm, rl_buffer, rl_gpu_ib_addr, in pm_send_runlist()
336 if (retval) in pm_send_runlist()
339 retval = kq_submit_packet(pm->priv_queue); in pm_send_runlist()
343 return retval; in pm_send_runlist()
351 return retval; in pm_send_runlist()
360 int retval = 0; in pm_send_query_status() local
371 retval = -ENOMEM; in pm_send_query_status()
375 retval = pm->pmf->query_status(pm, buffer, fence_address, fence_value); in pm_send_query_status()
376 if (!retval) in pm_send_query_status()
377 retval = kq_submit_packet(pm->priv_queue); in pm_send_query_status()
383 return retval; in pm_send_query_status()
390 int retval = 0; in pm_update_grace_period() local
405 retval = -ENOMEM; in pm_update_grace_period()
409 retval = pm->pmf->set_grace_period(pm, buffer, grace_period); in pm_update_grace_period()
410 if (!retval) in pm_update_grace_period()
411 retval = kq_submit_packet(pm->priv_queue); in pm_update_grace_period()
418 return retval; in pm_update_grace_period()
428 int retval = 0; in pm_send_unmap_queue() local
436 retval = -ENOMEM; in pm_send_unmap_queue()
440 retval = pm->pmf->unmap_queues(pm, buffer, filter, filter_param, reset); in pm_send_unmap_queue()
441 if (!retval) in pm_send_unmap_queue()
442 retval = kq_submit_packet(pm->priv_queue); in pm_send_unmap_queue()
448 return retval; in pm_send_unmap_queue()