Lines Matching refs:loc

440 		      struct vmw_surface_loc *loc,  in vmw_surface_get_loc()  argument
448 loc->sheet = offset / cache->sheet_bytes; in vmw_surface_get_loc()
449 offset -= loc->sheet * cache->sheet_bytes; in vmw_surface_get_loc()
459 loc->sub_resource = vmw_surface_subres(cache, i, layer); in vmw_surface_get_loc()
460 loc->z = offset / mip->img_stride; in vmw_surface_get_loc()
461 offset -= loc->z * mip->img_stride; in vmw_surface_get_loc()
462 loc->z *= desc->blockSize.depth; in vmw_surface_get_loc()
463 loc->y = offset / mip->row_stride; in vmw_surface_get_loc()
464 offset -= loc->y * mip->row_stride; in vmw_surface_get_loc()
465 loc->y *= desc->blockSize.height; in vmw_surface_get_loc()
466 loc->x = offset / desc->bytesPerBlock; in vmw_surface_get_loc()
467 loc->x *= desc->blockSize.width; in vmw_surface_get_loc()
484 struct vmw_surface_loc *loc) in vmw_surface_inc_loc() argument
487 u32 mip = loc->sub_resource % cache->num_mip_levels; in vmw_surface_inc_loc()
490 loc->sub_resource++; in vmw_surface_inc_loc()
491 loc->x += desc->blockSize.width; in vmw_surface_inc_loc()
492 if (loc->x > size->width) in vmw_surface_inc_loc()
493 loc->x = size->width; in vmw_surface_inc_loc()
494 loc->y += desc->blockSize.height; in vmw_surface_inc_loc()
495 if (loc->y > size->height) in vmw_surface_inc_loc()
496 loc->y = size->height; in vmw_surface_inc_loc()
497 loc->z += desc->blockSize.depth; in vmw_surface_inc_loc()
498 if (loc->z > size->depth) in vmw_surface_inc_loc()
499 loc->z = size->depth; in vmw_surface_inc_loc()
511 struct vmw_surface_loc *loc) in vmw_surface_min_loc() argument
513 loc->sheet = 0; in vmw_surface_min_loc()
514 loc->sub_resource = sub_resource; in vmw_surface_min_loc()
515 loc->x = loc->y = loc->z = 0; in vmw_surface_min_loc()
530 struct vmw_surface_loc *loc) in vmw_surface_max_loc() argument
535 loc->sheet = 0; in vmw_surface_max_loc()
536 loc->sub_resource = sub_resource + 1; in vmw_surface_max_loc()
539 loc->x = size->width; in vmw_surface_max_loc()
540 loc->y = size->height; in vmw_surface_max_loc()
541 loc->z = size->depth; in vmw_surface_max_loc()