Lines Matching refs:pchild

1174 		    struct svm_range *pchild, enum svm_work_list_ops op)  in svm_range_add_child()  argument
1177 pchild, pchild->start, pchild->last, prange, op); in svm_range_add_child()
1179 pchild->work_item.mm = mm; in svm_range_add_child()
1180 pchild->work_item.op = op; in svm_range_add_child()
1181 list_add_tail(&pchild->child_list, &prange->child_list); in svm_range_add_child()
1919 struct svm_range *pchild; in svm_range_evict() local
1933 list_for_each_entry(pchild, &prange->child_list, child_list) { in svm_range_evict()
1934 if (!pchild->mapped_to_gpu) in svm_range_evict()
1937 mutex_lock_nested(&pchild->lock, 1); in svm_range_evict()
1938 if (pchild->start <= last && pchild->last >= start) { in svm_range_evict()
1940 pchild->start, pchild->last); in svm_range_evict()
1941 atomic_inc(&pchild->invalid); in svm_range_evict()
1943 mutex_unlock(&pchild->lock); in svm_range_evict()
1978 list_for_each_entry(pchild, &prange->child_list, child_list) { in svm_range_evict()
1979 mutex_lock_nested(&pchild->lock, 1); in svm_range_evict()
1980 s = max(start, pchild->start); in svm_range_evict()
1981 l = min(last, pchild->last); in svm_range_evict()
1983 svm_range_unmap_from_gpus(pchild, s, l, trigger); in svm_range_evict()
1984 mutex_unlock(&pchild->lock); in svm_range_evict()
2354 struct svm_range *pchild; in svm_range_deferred_list_work() local
2356 pchild = list_first_entry(&prange->child_list, in svm_range_deferred_list_work()
2358 pr_debug("child prange 0x%p op %d\n", pchild, in svm_range_deferred_list_work()
2359 pchild->work_item.op); in svm_range_deferred_list_work()
2360 list_del_init(&pchild->child_list); in svm_range_deferred_list_work()
2361 svm_range_handle_list_op(svms, pchild, mm); in svm_range_deferred_list_work()
2454 struct svm_range *pchild; in svm_range_unmap_from_cpu() local
2513 list_for_each_entry(pchild, &prange->child_list, child_list) { in svm_range_unmap_from_cpu()
2514 mutex_lock_nested(&pchild->lock, 1); in svm_range_unmap_from_cpu()
2515 s = max(start, pchild->start); in svm_range_unmap_from_cpu()
2516 l = min(last, pchild->last); in svm_range_unmap_from_cpu()
2518 svm_range_unmap_from_gpus(pchild, s, l, trigger); in svm_range_unmap_from_cpu()
2519 svm_range_unmap_split(mm, prange, pchild, start, last); in svm_range_unmap_from_cpu()
2520 mutex_unlock(&pchild->lock); in svm_range_unmap_from_cpu()
2618 struct svm_range *pchild; in svm_range_from_addr() local
2633 list_for_each_entry(pchild, &prange->child_list, child_list) in svm_range_from_addr()
2634 if (addr >= pchild->start && addr <= pchild->last) { in svm_range_from_addr()
2636 addr, pchild->start, pchild->last); in svm_range_from_addr()
2639 return pchild; in svm_range_from_addr()
3174 struct svm_range *prange, *pchild; in svm_range_switch_xnack_reserve_mem() local
3185 list_for_each_entry(pchild, &prange->child_list, child_list) { in svm_range_switch_xnack_reserve_mem()
3186 size = (pchild->last - pchild->start + 1) << PAGE_SHIFT; in svm_range_switch_xnack_reserve_mem()