Lines Matching refs:loc

434 		      struct vmw_surface_loc *loc,  in vmw_surface_get_loc()  argument
442 loc->sheet = offset / cache->sheet_bytes; in vmw_surface_get_loc()
443 offset -= loc->sheet * cache->sheet_bytes; in vmw_surface_get_loc()
453 loc->sub_resource = vmw_surface_subres(cache, i, layer); in vmw_surface_get_loc()
454 loc->z = offset / mip->img_stride; in vmw_surface_get_loc()
455 offset -= loc->z * mip->img_stride; in vmw_surface_get_loc()
456 loc->z *= desc->blockSize.depth; in vmw_surface_get_loc()
457 loc->y = offset / mip->row_stride; in vmw_surface_get_loc()
458 offset -= loc->y * mip->row_stride; in vmw_surface_get_loc()
459 loc->y *= desc->blockSize.height; in vmw_surface_get_loc()
460 loc->x = offset / desc->bytesPerBlock; in vmw_surface_get_loc()
461 loc->x *= desc->blockSize.width; in vmw_surface_get_loc()
478 struct vmw_surface_loc *loc) in vmw_surface_inc_loc() argument
481 u32 mip = loc->sub_resource % cache->num_mip_levels; in vmw_surface_inc_loc()
484 loc->sub_resource++; in vmw_surface_inc_loc()
485 loc->x += desc->blockSize.width; in vmw_surface_inc_loc()
486 if (loc->x > size->width) in vmw_surface_inc_loc()
487 loc->x = size->width; in vmw_surface_inc_loc()
488 loc->y += desc->blockSize.height; in vmw_surface_inc_loc()
489 if (loc->y > size->height) in vmw_surface_inc_loc()
490 loc->y = size->height; in vmw_surface_inc_loc()
491 loc->z += desc->blockSize.depth; in vmw_surface_inc_loc()
492 if (loc->z > size->depth) in vmw_surface_inc_loc()
493 loc->z = size->depth; in vmw_surface_inc_loc()
505 struct vmw_surface_loc *loc) in vmw_surface_min_loc() argument
507 loc->sheet = 0; in vmw_surface_min_loc()
508 loc->sub_resource = sub_resource; in vmw_surface_min_loc()
509 loc->x = loc->y = loc->z = 0; in vmw_surface_min_loc()
524 struct vmw_surface_loc *loc) in vmw_surface_max_loc() argument
529 loc->sheet = 0; in vmw_surface_max_loc()
530 loc->sub_resource = sub_resource + 1; in vmw_surface_max_loc()
533 loc->x = size->width; in vmw_surface_max_loc()
534 loc->y = size->height; in vmw_surface_max_loc()
535 loc->z = size->depth; in vmw_surface_max_loc()