Lines Matching refs:sw_read
144 bool sw_read = (0 != (usage & GRALLOC_USAGE_SW_READ_MASK)); in gralloc_alloc() local
218 if (! ((sw_read || hw_cam_read) && (sw_write || hw_cam_write) ) ) { in gralloc_alloc()
228 if (! (sw_read && hw_cam_write) ) { in gralloc_alloc()
258 if (sw_read || sw_write || hw_cam_write || hw_vid_enc_read) { in gralloc_alloc()
627 bool sw_read = (0 != (usage & GRALLOC_USAGE_SW_READ_MASK)); in gralloc_lock() local
638 (!sw_read && !sw_write && in gralloc_lock()
641 (sw_read && !sw_read_allowed) || in gralloc_lock()
654 if (cb->canBePosted() || sw_read || sw_write || in gralloc_lock()
679 sw_read); in gralloc_lock()
684 postCount, sw_read); in gralloc_lock()
688 if (sw_read) { in gralloc_lock()
698 if (sw_read || sw_write || hw_cam_write || hw_cam_read || hw_vid_enc_read) { in gralloc_lock()
813 bool sw_read = (0 != (usage & GRALLOC_USAGE_SW_READ_MASK)); in gralloc_lock_ycbcr() local
817 if ( (!hw_cam_write && !sw_read) || in gralloc_lock_ycbcr()
818 (sw_read && !sw_read_allowed) ) { in gralloc_lock_ycbcr()