Home
last modified time | relevance | path

Searched refs:usr_stride (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/gpu/drm/imagination/
H A Dpvr_drv.c1163 pvr_get_uobj(u64 usr_ptr, u32 usr_stride, u32 min_stride, u32 obj_size, void *out) in pvr_get_uobj() argument
1165 if (usr_stride < min_stride) in pvr_get_uobj()
1168 return copy_struct_from_user(out, obj_size, u64_to_user_ptr(usr_ptr), usr_stride); in pvr_get_uobj()
1172 pvr_set_uobj(u64 usr_ptr, u32 usr_stride, u32 min_stride, u32 obj_size, const void *in) in pvr_set_uobj() argument
1174 if (usr_stride < min_stride) in pvr_set_uobj()
1177 if (copy_to_user(u64_to_user_ptr(usr_ptr), in, min_t(u32, usr_stride, obj_size))) in pvr_set_uobj()
1180 if (usr_stride > obj_size && in pvr_set_uobj()
1181 clear_user(u64_to_user_ptr(usr_ptr + obj_size), usr_stride - obj_size)) { in pvr_set_uobj()