Home
last modified time | relevance | path

Searched full:stride (Results 1 – 25 of 1065) sorted by relevance

12345678910>>...43

/OK3568_Linux_fs/external/rknn-toolkit2/examples/darknet/yolov3_416x416/
H A Dyolov3.cfg29 stride=1
39 stride=2
47 stride=1
55 stride=1
69 stride=2
77 stride=1
85 stride=1
97 stride=1
105 stride=1
119 stride=2
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/
H A Di915_gem_tiling.c48 * @stride: tiling stride
54 u32 size, unsigned int tiling, unsigned int stride) in i915_gem_fence_size() argument
63 GEM_BUG_ON(!stride); in i915_gem_fence_size()
66 stride *= i915_gem_tile_height(tiling); in i915_gem_fence_size()
67 GEM_BUG_ON(!IS_ALIGNED(stride, I965_FENCE_PAGE)); in i915_gem_fence_size()
68 return roundup(size, stride); in i915_gem_fence_size()
88 * @stride: tiling stride
94 unsigned int tiling, unsigned int stride) in i915_gem_fence_alignment() argument
112 return i915_gem_fence_size(i915, size, tiling, stride); in i915_gem_fence_alignment()
118 unsigned int tiling, unsigned int stride) in i915_tiling_ok() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/video/rockchip/rga3/
H A Drga_dma_buf.c37 uint32_t stride = 0; in rga_buf_size_cal() local
50 stride = (w * 4 + 3) & (~3); in rga_buf_size_cal()
51 size_yrgb = stride * h; in rga_buf_size_cal()
59 stride = (w * 3 + 3) & (~3); in rga_buf_size_cal()
60 size_yrgb = stride * h; in rga_buf_size_cal()
76 stride = (w * 2 + 3) & (~3); in rga_buf_size_cal()
77 size_yrgb = stride * h; in rga_buf_size_cal()
87 stride = (w + 3) & (~3); in rga_buf_size_cal()
88 size_yrgb = stride * h; in rga_buf_size_cal()
89 size_uv = stride * h; in rga_buf_size_cal()
[all …]
/OK3568_Linux_fs/external/rknn-toolkit2/examples/pytorch/resnet18_export_onnx/
H A Dtest.py7 def __init__(self, in_channels, out_channels, stride): argument
9 self.conv1 = nn.Conv2d(in_channels, out_channels, kernel_size=3, stride=stride, padding=1)
11 self.conv2 = nn.Conv2d(out_channels, out_channels, kernel_size=3, stride=stride, padding=1)
23 def __init__(self, in_channels, out_channels, stride): argument
25 … self.conv1 = nn.Conv2d(in_channels, out_channels, kernel_size=3, stride=stride[0], padding=1)
27 … self.conv2 = nn.Conv2d(out_channels, out_channels, kernel_size=3, stride=stride[1], padding=1)
30 nn.Conv2d(in_channels, out_channels, kernel_size=1, stride=stride[0], padding=0),
47 self.conv1 = nn.Conv2d(3, 64, kernel_size=7, stride=2, padding=3)
49 self.maxpool = nn.MaxPool2d(kernel_size=3, stride=2, padding=1)
/OK3568_Linux_fs/external/rockit/mpi/example/common/
H A Dtest_comm_bmp.cpp119 RK_U32 stride; in load_bmp_ex() local
162 stride = w * Bpp; in load_bmp_ex()
164 if (stride % 4) { in load_bmp_ex()
165 stride = (stride & 0xfffc) + 4; in load_bmp_ex()
169 pOrigBMPBuf = reinterpret_cast<RK_U8 *>(malloc(h * stride)); in load_bmp_ex()
179 if (fread(pOrigBMPBuf, 1, h*stride, pFile) != (h * stride)) { in load_bmp_ex()
180 printf("fread (%d*%d)error!line:%d\n", h, stride, __LINE__); in load_bmp_ex()
185 pVideoLogo->stride = pVideoLogo->width * 4; in load_bmp_ex()
187 pVideoLogo->stride = pVideoLogo->width * 2; in load_bmp_ex()
200 pStart = pOrigBMPBuf + ((h-1)-i)*stride+j*Bpp; in load_bmp_ex()
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-armhf/include/opencv2/core/cuda/
H A Dblock.hpp61 static __device__ __forceinline__ unsigned int stride() in stride() function
79 int STRIDE = stride(); in fill() local
82 for(; t < end; t += STRIDE) in fill()
89 int STRIDE = stride(); in yota() local
93 for(OutIt t = beg + tid; t < end; t += STRIDE, value += STRIDE) in yota()
100 int STRIDE = stride(); in copy() local
104 for(; t < end; t += STRIDE, o += STRIDE) in copy()
111 int STRIDE = stride(); in transform() local
115 for(; t < end; t += STRIDE, o += STRIDE) in transform()
122 int STRIDE = stride(); in transform() local
[all …]
H A Dwarp.hpp60 STRIDE = WARP_SIZE enumerator
74 for(It t = beg + laneId(); t < end; t += STRIDE) in fill()
81 for(InIt t = beg + laneId(); t < end; t += STRIDE, out += STRIDE) in copy()
89 for(InIt t = beg + laneId(); t < end; t += STRIDE, out += STRIDE) in transform()
101 for(; t1 < end1; t1 += STRIDE, t2 += STRIDE, out += STRIDE) in transform()
131 for(OutIt t = beg + lane; t < end; t += STRIDE, value += STRIDE) in yota()
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/core/cuda/
H A Dblock.hpp61 static __device__ __forceinline__ unsigned int stride() in stride() function
79 int STRIDE = stride(); in fill() local
82 for(; t < end; t += STRIDE) in fill()
89 int STRIDE = stride(); in yota() local
93 for(OutIt t = beg + tid; t < end; t += STRIDE, value += STRIDE) in yota()
100 int STRIDE = stride(); in copy() local
104 for(; t < end; t += STRIDE, o += STRIDE) in copy()
111 int STRIDE = stride(); in transform() local
115 for(; t < end; t += STRIDE, o += STRIDE) in transform()
122 int STRIDE = stride(); in transform() local
[all …]
H A Dwarp.hpp60 STRIDE = WARP_SIZE enumerator
74 for(It t = beg + laneId(); t < end; t += STRIDE) in fill()
81 for(InIt t = beg + laneId(); t < end; t += STRIDE, out += STRIDE) in copy()
89 for(InIt t = beg + laneId(); t < end; t += STRIDE, out += STRIDE) in transform()
101 for(; t1 < end1; t1 += STRIDE, t2 += STRIDE, out += STRIDE) in transform()
131 for(OutIt t = beg + lane; t < end; t += STRIDE, value += STRIDE) in yota()
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/OpenCV-android-sdk/sdk/native/jni/include/opencv2/core/cuda/
H A Dblock.hpp61 static __device__ __forceinline__ unsigned int stride() in stride() function
79 int STRIDE = stride(); in fill() local
82 for(; t < end; t += STRIDE) in fill()
89 int STRIDE = stride(); in yota() local
93 for(OutIt t = beg + tid; t < end; t += STRIDE, value += STRIDE) in yota()
100 int STRIDE = stride(); in copy() local
104 for(; t < end; t += STRIDE, o += STRIDE) in copy()
111 int STRIDE = stride(); in transform() local
115 for(; t < end; t += STRIDE, o += STRIDE) in transform()
122 int STRIDE = stride(); in transform() local
[all …]
H A Dwarp.hpp60 STRIDE = WARP_SIZE enumerator
74 for(It t = beg + laneId(); t < end; t += STRIDE) in fill()
81 for(InIt t = beg + laneId(); t < end; t += STRIDE, out += STRIDE) in copy()
89 for(InIt t = beg + laneId(); t < end; t += STRIDE, out += STRIDE) in transform()
101 for(; t1 < end1; t1 += STRIDE, t2 += STRIDE, out += STRIDE) in transform()
131 for(OutIt t = beg + lane; t < end; t += STRIDE, value += STRIDE) in yota()
/OK3568_Linux_fs/kernel/arch/ia64/lib/
H A Dflush.S8 * 05/28/05 Zoltan Menyhart Dynamic stride size
33 ld8 r20=[r3] // r20: stride shift
36 shr.u r23=in0,r20 // start / (stride size)
37 shr.u r22=r22,r20 // (last byte address) / (stride size)
38 shl r21=r21,r20 // r21: stride size of the i-cache(s)
42 // "start" rounded down to stride boundary
54 add r24=r21,r24 // we flush "stride size" bytes per iteration
87 ld8 r20=[r3] // r20: stride shift
90 shr.u r23=in0,r20 // start / (stride size)
91 shr.u r22=r22,r20 // (last byte address) / (stride size)
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/sysdev/
H A Ddcr.c148 unsigned int stride; in of_translate_dcr_address() local
155 /* Stride is not properly defined yet, default to 0x10 for Axon */ in of_translate_dcr_address()
156 p = of_get_property(dp, "dcr-mmio-stride", NULL); in of_translate_dcr_address()
157 stride = (p == NULL) ? 0x10 : *p; in of_translate_dcr_address()
169 ret += (u64)(stride) * (u64)dcr_n; in of_translate_dcr_address()
171 *out_stride = stride; in of_translate_dcr_address()
182 dcr_host_mmio_t ret = { .token = NULL, .stride = 0, .base = dcr_n }; in dcr_map_mmio()
188 addr = of_translate_dcr_address(dev, dcr_n, &ret.stride); in dcr_map_mmio()
189 pr_debug("translates to addr: 0x%llx, stride: 0x%x\n", in dcr_map_mmio()
190 (unsigned long long) addr, ret.stride); in dcr_map_mmio()
[all …]
/OK3568_Linux_fs/external/xserver/glamor/
H A Dglamor.h195 * @stride, @size: Pointers to fill the stride and size of the
204 CARD16 *stride, CARD32 *size);
211 * @stride, @size: Pointers to fill the stride and size of the
218 * The pixmap's stride may be modified by this function.
223 CARD16 *stride,
239 CARD16 *stride, CARD32 *size);
245 * @stride, @size: Pointers to fill the stride and size of the
263 * @stride: The stride of the buffers.
287 * @stride: The stride of the buffer.
297 CARD16 stride,
[all …]
H A Dglamor_utils.h343 stride) \ argument
348 texcoords + 1 * stride, tx2, ty1); \
350 texcoords + 2 * stride, tx2, ty2); \
352 texcoords + 3 * stride, tx1, ty2); \
363 stride) \ argument
369 texcoords, stride); \
397 texcoords + 1 * stride); \
399 texcoords + 2 * stride); \
401 texcoords + 3 * stride); \
429 vertices, stride) \ argument
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/
H A Drockchip_drm_display_pattern.c84 unsigned int height, unsigned int stride) in fill_smpte_yuv_planar() argument
124 y_mem += stride; in fill_smpte_yuv_planar()
130 y_mem += stride; in fill_smpte_yuv_planar()
140 y_mem += stride; in fill_smpte_yuv_planar()
149 u_mem += stride * cs / xsub; in fill_smpte_yuv_planar()
150 v_mem += stride * cs / xsub; in fill_smpte_yuv_planar()
158 u_mem += stride * cs / xsub; in fill_smpte_yuv_planar()
159 v_mem += stride * cs / xsub; in fill_smpte_yuv_planar()
177 u_mem += stride * cs / xsub; in fill_smpte_yuv_planar()
178 v_mem += stride * cs / xsub; in fill_smpte_yuv_planar()
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_demo/utils/
H A Ddrawing.cpp7 void draw_rectangle_c1(unsigned char* pixels, int w, int h, int stride, int rx, int ry, int rw, int… in draw_rectangle_c1() argument
22 unsigned char* p = pixels + stride * y; in draw_rectangle_c1()
52 unsigned char* p = pixels + stride * y; in draw_rectangle_c1()
77 unsigned char* p = pixels + stride * y; in draw_rectangle_c1()
109 unsigned char* p = pixels + stride * y; in draw_rectangle_c1()
132 unsigned char* p = pixels + stride * y; in draw_rectangle_c1()
139 void draw_rectangle_c2(unsigned char* pixels, int w, int h, int stride, int rx, int ry, int rw, int… in draw_rectangle_c2() argument
154 unsigned char* p = pixels + stride * y; in draw_rectangle_c2()
185 unsigned char* p = pixels + stride * y; in draw_rectangle_c2()
211 unsigned char* p = pixels + stride * y; in draw_rectangle_c2()
[all …]
/OK3568_Linux_fs/external/rknn-toolkit2/examples/caffe/vgg-ssd/
H A Ddeploy_rm_detection_output.prototxt87 stride: 2
162 stride: 2
269 stride: 2
376 stride: 2
486 stride: 1
571 stride: 1
604 stride: 2
637 stride: 1
670 stride: 2
703 stride: 1
[all …]
/OK3568_Linux_fs/external/xserver/glx/
H A Drender2swap.c225 GLint stride, GLint numVertexes, GLbyte * pc) in swapArray() argument
244 pc += stride; in swapArray()
255 pc += stride; in swapArray()
265 pc += stride; in swapArray()
275 pc += stride; in swapArray()
291 GLint stride = 0; in __glXDispSwap_DrawArrays() local
303 /* compute stride (same for all component arrays) */ in __glXDispSwap_DrawArrays()
313 stride += __GLX_PAD(numVals * __glXTypeSize(datatype)); in __glXDispSwap_DrawArrays()
328 swapArray(numVals, datatype, stride, numVertexes, pc); in __glXDispSwap_DrawArrays()
333 glVertexPointer(numVals, datatype, stride, pc); in __glXDispSwap_DrawArrays()
[all …]
/OK3568_Linux_fs/kernel/drivers/video/rockchip/rga/
H A Drga_mmu_info.c134 uint32_t stride = 0; in rga_buf_size_cal() local
141 stride = (w * 4 + 3) & (~3); in rga_buf_size_cal()
142 size_yrgb = stride*h; in rga_buf_size_cal()
147 stride = (w * 4 + 3) & (~3); in rga_buf_size_cal()
148 size_yrgb = stride*h; in rga_buf_size_cal()
153 stride = (w * 3 + 3) & (~3); in rga_buf_size_cal()
154 size_yrgb = stride*h; in rga_buf_size_cal()
164 stride = (w*2 + 3) & (~3); in rga_buf_size_cal()
165 size_yrgb = stride * h; in rga_buf_size_cal()
170 stride = (w*2 + 3) & (~3); in rga_buf_size_cal()
[all …]
/OK3568_Linux_fs/kernel/drivers/hwspinlock/
H A Dqcom_hwspinlock.c74 u32 *base, u32 *stride) in qcom_hwspinlock_probe_syscon() argument
95 ret = of_property_read_u32_index(pdev->dev.of_node, "syscon", 2, stride); in qcom_hwspinlock_probe_syscon()
97 dev_err(&pdev->dev, "no stride syscon\n"); in qcom_hwspinlock_probe_syscon()
113 u32 *offset, u32 *stride) in qcom_hwspinlock_probe_mmio() argument
118 /* All modern platform has offset 0 and stride of 4k */ in qcom_hwspinlock_probe_mmio()
120 *stride = 0x1000; in qcom_hwspinlock_probe_mmio()
135 u32 stride; in qcom_hwspinlock_probe() local
139 regmap = qcom_hwspinlock_probe_syscon(pdev, &base, &stride); in qcom_hwspinlock_probe()
141 regmap = qcom_hwspinlock_probe_mmio(pdev, &base, &stride); in qcom_hwspinlock_probe()
154 field.reg = base + i * stride; in qcom_hwspinlock_probe()
/OK3568_Linux_fs/kernel/drivers/media/pci/cx18/
H A Dcx18-alsa-pcm.c64 unsigned int stride; in cx18_alsa_announce_pcm_data() local
83 stride = runtime->frame_bits >> 3; in cx18_alsa_announce_pcm_data()
84 if (stride == 0) { in cx18_alsa_announce_pcm_data()
85 dprintk("stride is zero\n"); in cx18_alsa_announce_pcm_data()
89 length = num_bytes / stride; in cx18_alsa_announce_pcm_data()
104 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
105 cnt * stride); in cx18_alsa_announce_pcm_data()
106 memcpy(runtime->dma_area, pcm_data + cnt * stride, in cx18_alsa_announce_pcm_data()
107 length * stride - cnt * stride); in cx18_alsa_announce_pcm_data()
109 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/pci/ivtv/
H A Divtv-alsa-pcm.c61 unsigned int stride; in ivtv_alsa_announce_pcm_data() local
80 stride = runtime->frame_bits >> 3; in ivtv_alsa_announce_pcm_data()
81 if (stride == 0) { in ivtv_alsa_announce_pcm_data()
82 dprintk("stride is zero\n"); in ivtv_alsa_announce_pcm_data()
86 length = num_bytes / stride; in ivtv_alsa_announce_pcm_data()
101 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data()
102 cnt * stride); in ivtv_alsa_announce_pcm_data()
103 memcpy(runtime->dma_area, pcm_data + cnt * stride, in ivtv_alsa_announce_pcm_data()
104 length * stride - cnt * stride); in ivtv_alsa_announce_pcm_data()
106 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data()
[all …]
/OK3568_Linux_fs/external/xserver/fb/
H A Dfbpixmap.c300 fbValidateBits(FbStip * bits, int stride, FbStip data) in fbValidateBits() argument
302 while (stride--) { in fbValidateBits()
321 int stride, bpp; in fbValidateDrawable() local
328 fbGetStipDrawable(pDrawable, bits, stride, bpp, xoff, yoff); in fbValidateDrawable()
329 first = bits - stride; in fbValidateDrawable()
330 last = bits + stride * pDrawable->height; in fbValidateDrawable()
331 if (!fbValidateBits(first, stride, FB_HEAD_BITS) || in fbValidateDrawable()
332 !fbValidateBits(last, stride, FB_TAIL_BITS)) in fbValidateDrawable()
338 fbSetBits(FbStip * bits, int stride, FbStip data) in fbSetBits() argument
340 while (stride--) in fbSetBits()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/qxl/
H A Dqxl_image.c59 int height, int stride) in qxl_image_alloc_objects() argument
76 ret = qxl_allocate_chunk(qdev, release, image, sizeof(struct qxl_data_chunk) + stride * height); in qxl_image_alloc_objects()
106 int stride) in qxl_image_init_helper() argument
123 chunk_stride = stride; /* TODO: should use linesize, but it renders in qxl_image_init_helper()
140 if (stride == linesize && chunk_stride == stride) { in qxl_image_init_helper()
169 i_data = (void *)data + i * stride; in qxl_image_init_helper()
221 image->u.bitmap.stride = chunk_stride; in qxl_image_init_helper()
235 int depth, int stride) in qxl_image_init() argument
237 data += y * stride + x * (depth / 8); in qxl_image_init()
239 width, height, depth, 0, stride); in qxl_image_init()

12345678910>>...43