![]() |
|
|||
0001 /* 0002 * Copyright © 2017 Broadcom 0003 * 0004 * Permission is hereby granted, free of charge, to any person obtaining a 0005 * copy of this software and associated documentation files (the "Software"), 0006 * to deal in the Software without restriction, including without limitation 0007 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 0008 * and/or sell copies of the Software, and to permit persons to whom the 0009 * Software is furnished to do so, subject to the following conditions: 0010 * 0011 * The above copyright notice and this permission notice (including the next 0012 * paragraph) shall be included in all copies or substantial portions of the 0013 * Software. 0014 * 0015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 0016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 0017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 0018 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 0019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 0020 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 0021 * IN THE SOFTWARE. 0022 */ 0023 0024 #include "vc4_drv.h" 0025 0026 static const char *vc4_fence_get_driver_name(struct dma_fence *fence) 0027 { 0028 return "vc4"; 0029 } 0030 0031 static const char *vc4_fence_get_timeline_name(struct dma_fence *fence) 0032 { 0033 return "vc4-v3d"; 0034 } 0035 0036 static bool vc4_fence_signaled(struct dma_fence *fence) 0037 { 0038 struct vc4_fence *f = to_vc4_fence(fence); 0039 struct vc4_dev *vc4 = to_vc4_dev(f->dev); 0040 0041 return vc4->finished_seqno >= f->seqno; 0042 } 0043 0044 const struct dma_fence_ops vc4_fence_ops = { 0045 .get_driver_name = vc4_fence_get_driver_name, 0046 .get_timeline_name = vc4_fence_get_timeline_name, 0047 .signaled = vc4_fence_signaled, 0048 };
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |