Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 1476) sorted by relevance

12345678910>>...60

/drivers/infiniband/core/
Duverbs_marshall.c66 struct rdma_ah_attr *src = ah_attr; in ib_copy_ah_attr_to_user() local
74 src = &conv_ah; in ib_copy_ah_attr_to_user()
76 dst->dlid = rdma_ah_get_dlid(src); in ib_copy_ah_attr_to_user()
77 dst->sl = rdma_ah_get_sl(src); in ib_copy_ah_attr_to_user()
78 dst->src_path_bits = rdma_ah_get_path_bits(src); in ib_copy_ah_attr_to_user()
79 dst->static_rate = rdma_ah_get_static_rate(src); in ib_copy_ah_attr_to_user()
80 dst->is_global = rdma_ah_get_ah_flags(src) & in ib_copy_ah_attr_to_user()
83 const struct ib_global_route *grh = rdma_ah_read_grh(src); in ib_copy_ah_attr_to_user()
91 dst->port_num = rdma_ah_get_port_num(src); in ib_copy_ah_attr_to_user()
98 struct ib_qp_attr *src) in ib_copy_qp_attr_to_user() argument
[all …]
/drivers/phy/
Dphy-xgene.c86 #define SATA_MEM_RESET_RD(src) (((src) & 0x00000020) >> 5) argument
95 #define REGSPEC_CFG_I_TX_WORDMODE0_SET(dst, src) \ argument
96 (((dst) & ~0x00070000) | (((u32) (src) << 16) & 0x00070000))
97 #define REGSPEC_CFG_I_RX_WORDMODE0_SET(dst, src) \ argument
98 (((dst) & ~0x00e00000) | (((u32) (src) << 21) & 0x00e00000))
100 #define REGSPEC_CFG_I_CUSTOMER_PIN_MODE0_SET(dst, src) \ argument
101 (((dst) & ~0x00007fff) | (((u32) (src)) & 0x00007fff))
103 #define CFG_I_SPD_SEL_CDR_OVR1_SET(dst, src) \ argument
104 (((dst) & ~0x0000000f) | (((u32) (src)) & 0x0000000f))
110 #define CFG_IND_ADDR_SET(dst, src) \ argument
[all …]
/drivers/gpu/drm/tests/
Ddrm_rect_test.c27 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_div_by_zero() local
34 drm_rect_init(&src, 0, 0, 0, 0); in drm_test_rect_clip_scaled_div_by_zero()
37 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero()
40 KUNIT_EXPECT_FALSE_MSG(test, drm_rect_visible(&src), "Source should not be visible\n"); in drm_test_rect_clip_scaled_div_by_zero()
42 drm_rect_init(&src, 0, 0, 0, 0); in drm_test_rect_clip_scaled_div_by_zero()
45 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero()
48 KUNIT_EXPECT_FALSE_MSG(test, drm_rect_visible(&src), "Source should not be visible\n"); in drm_test_rect_clip_scaled_div_by_zero()
53 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_not_clipped() local
57 drm_rect_init(&src, 0, 0, 1 << 16, 1 << 16); in drm_test_rect_clip_scaled_not_clipped()
61 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_not_clipped()
[all …]
/drivers/video/fbdev/core/
Dsyscopyarea.c29 const unsigned long *src, unsigned src_idx, int bits, unsigned n) in bitcpy() argument
44 *dst = comp(*src, *dst, first); in bitcpy()
49 *dst = comp(*src, *dst, first); in bitcpy()
51 src++; in bitcpy()
58 *dst++ = *src++; in bitcpy()
59 *dst++ = *src++; in bitcpy()
60 *dst++ = *src++; in bitcpy()
61 *dst++ = *src++; in bitcpy()
62 *dst++ = *src++; in bitcpy()
63 *dst++ = *src++; in bitcpy()
[all …]
Dcfbcopyarea.c47 const unsigned long __iomem *src, unsigned src_idx, int bits, in bitcpy() argument
59 (char *)src + ((src_idx & (bits - 1))) / 8, n / 8); in bitcpy()
73 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), first), dst); in bitcpy()
79 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), first), dst); in bitcpy()
81 src++; in bitcpy()
88 FB_WRITEL(FB_READL(src++), dst++); in bitcpy()
89 FB_WRITEL(FB_READL(src++), dst++); in bitcpy()
90 FB_WRITEL(FB_READL(src++), dst++); in bitcpy()
91 FB_WRITEL(FB_READL(src++), dst++); in bitcpy()
92 FB_WRITEL(FB_READL(src++), dst++); in bitcpy()
[all …]
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_misc.c224 void pvrdma_qp_cap_to_ib(struct ib_qp_cap *dst, const struct pvrdma_qp_cap *src) in pvrdma_qp_cap_to_ib() argument
226 dst->max_send_wr = src->max_send_wr; in pvrdma_qp_cap_to_ib()
227 dst->max_recv_wr = src->max_recv_wr; in pvrdma_qp_cap_to_ib()
228 dst->max_send_sge = src->max_send_sge; in pvrdma_qp_cap_to_ib()
229 dst->max_recv_sge = src->max_recv_sge; in pvrdma_qp_cap_to_ib()
230 dst->max_inline_data = src->max_inline_data; in pvrdma_qp_cap_to_ib()
233 void ib_qp_cap_to_pvrdma(struct pvrdma_qp_cap *dst, const struct ib_qp_cap *src) in ib_qp_cap_to_pvrdma() argument
235 dst->max_send_wr = src->max_send_wr; in ib_qp_cap_to_pvrdma()
236 dst->max_recv_wr = src->max_recv_wr; in ib_qp_cap_to_pvrdma()
237 dst->max_send_sge = src->max_send_sge; in ib_qp_cap_to_pvrdma()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/
DKbuild2 include $(src)/nvkm/subdev/acr/Kbuild
3 include $(src)/nvkm/subdev/bar/Kbuild
4 include $(src)/nvkm/subdev/bios/Kbuild
5 include $(src)/nvkm/subdev/bus/Kbuild
6 include $(src)/nvkm/subdev/clk/Kbuild
7 include $(src)/nvkm/subdev/devinit/Kbuild
8 include $(src)/nvkm/subdev/fault/Kbuild
9 include $(src)/nvkm/subdev/fb/Kbuild
10 include $(src)/nvkm/subdev/fuse/Kbuild
11 include $(src)/nvkm/subdev/gpio/Kbuild
[all …]
/drivers/misc/lkdtm/
Dfortify.c44 char *src; in lkdtm_FORTIFY_STR_MEMBER() local
46 src = kmalloc(size, GFP_KERNEL); in lkdtm_FORTIFY_STR_MEMBER()
47 strscpy(src, "over ten bytes", size); in lkdtm_FORTIFY_STR_MEMBER()
48 size = strlen(src) + 1; in lkdtm_FORTIFY_STR_MEMBER()
57 strncpy(target.a, src, size); in lkdtm_FORTIFY_STR_MEMBER()
65 kfree(src); in lkdtm_FORTIFY_STR_MEMBER()
109 char *src; in lkdtm_FORTIFY_MEM_MEMBER() local
111 src = kmalloc(size, GFP_KERNEL); in lkdtm_FORTIFY_MEM_MEMBER()
112 strscpy(src, "over ten bytes", size); in lkdtm_FORTIFY_MEM_MEMBER()
113 size = strlen(src) + 1; in lkdtm_FORTIFY_MEM_MEMBER()
[all …]
/drivers/comedi/drivers/
Dni_routes.c48 #define RVi(table, src, dest) ((table)[(dest) * NI_NUM_NAMES + (src)]) argument
159 const int src = R->src[j]; in ni_count_valid_routes() local
163 if (RVi(rv, B(src), B(dest))) in ni_count_valid_routes()
167 (RVi(rv, B(src), B(NI_RGOUT0)) || in ni_count_valid_routes()
168 RVi(rv, B(src), B(NI_RTSI_BRD(0))) || in ni_count_valid_routes()
169 RVi(rv, B(src), B(NI_RTSI_BRD(1))) || in ni_count_valid_routes()
170 RVi(rv, B(src), B(NI_RTSI_BRD(2))) || in ni_count_valid_routes()
171 RVi(rv, B(src), B(NI_RTSI_BRD(3))))) { in ni_count_valid_routes()
213 const int src = R->src[j]; in ni_get_valid_routes() local
218 if (RVi(rv, B(src), B(dest))) in ni_get_valid_routes()
[all …]
Dni_routes.h41 int *src; member
100 bool ni_route_set_has_source(const struct ni_route_set *routes, const int src);
132 s8 ni_route_to_register(const int src, const int dest,
150 s8 ni_lookup_route_register(int src, int dest,
162 static inline bool route_is_valid(const int src, const int dest, in route_is_valid() argument
165 return ni_route_to_register(src, dest, tables) >= 0; in route_is_valid()
265 static inline s8 ni_get_reg_value_roffs(int src, const int dest, in ni_get_reg_value_roffs() argument
269 if (src < NI_NAMES_BASE) { in ni_get_reg_value_roffs()
270 src += direct_reg_offset; in ni_get_reg_value_roffs()
275 if (route_register_is_valid(src, dest, tables)) in ni_get_reg_value_roffs()
[all …]
/drivers/media/platform/allegro-dvt/
Dallegro-mail.c255 u32 *src) in allegro_decode_config_blob() argument
260 param->num_ref_idx_l0 = FIELD_GET(GENMASK(7, 4), src[9]); in allegro_decode_config_blob()
261 param->num_ref_idx_l1 = FIELD_GET(GENMASK(11, 8), src[9]); in allegro_decode_config_blob()
357 allegro_dec_init(struct mcu_msg_init_response *msg, u32 *src) in allegro_dec_init() argument
361 msg->reserved0 = src[i++]; in allegro_dec_init()
363 return i * sizeof(*src); in allegro_dec_init()
368 u32 *src) in allegro_dec_create_channel() argument
373 msg->channel_id = src[i++]; in allegro_dec_create_channel()
374 msg->user_id = src[i++]; in allegro_dec_create_channel()
380 msg->options = src[i++]; in allegro_dec_create_channel()
[all …]
/drivers/comedi/drivers/ni_routing/ni_device_routes/
Dpxi-6030e.c35 .src = (int[]){
42 .src = (int[]){
49 .src = (int[]){
56 .src = (int[]){
63 .src = (int[]){
70 .src = (int[]){
77 .src = (int[]){
84 .src = (int[]){
91 .src = (int[]){
98 .src = (int[]){
[all …]
Dpci-6070e.c35 .src = (int[]){
42 .src = (int[]){
49 .src = (int[]){
56 .src = (int[]){
63 .src = (int[]){
70 .src = (int[]){
77 .src = (int[]){
84 .src = (int[]){
91 .src = (int[]){
98 .src = (int[]){
[all …]
Dpci-6733.c35 .src = (int[]){
42 .src = (int[]){
49 .src = (int[]){
56 .src = (int[]){
63 .src = (int[]){
70 .src = (int[]){
77 .src = (int[]){
89 .src = (int[]){
101 .src = (int[]){
113 .src = (int[]){
[all …]
Dpxi-6733.c35 .src = (int[]){
42 .src = (int[]){
49 .src = (int[]){
56 .src = (int[]){
63 .src = (int[]){
70 .src = (int[]){
77 .src = (int[]){
89 .src = (int[]){
101 .src = (int[]){
113 .src = (int[]){
[all …]
Dpci-6713.c35 .src = (int[]){
42 .src = (int[]){
49 .src = (int[]){
56 .src = (int[]){
63 .src = (int[]){
70 .src = (int[]){
77 .src = (int[]){
89 .src = (int[]){
101 .src = (int[]){
113 .src = (int[]){
[all …]
Dpci-6723.c35 .src = (int[]){
42 .src = (int[]){
49 .src = (int[]){
56 .src = (int[]){
63 .src = (int[]){
70 .src = (int[]){
77 .src = (int[]){
89 .src = (int[]){
101 .src = (int[]){
113 .src = (int[]){
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/
DKbuild5 include $(src)/nvkm/engine/bsp/Kbuild
6 include $(src)/nvkm/engine/ce/Kbuild
7 include $(src)/nvkm/engine/cipher/Kbuild
8 include $(src)/nvkm/engine/device/Kbuild
9 include $(src)/nvkm/engine/disp/Kbuild
10 include $(src)/nvkm/engine/dma/Kbuild
11 include $(src)/nvkm/engine/fifo/Kbuild
12 include $(src)/nvkm/engine/gr/Kbuild
13 include $(src)/nvkm/engine/mpeg/Kbuild
14 include $(src)/nvkm/engine/msenc/Kbuild
[all …]
/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_vema_iface.c89 u64 *src; in opa_vnic_get_summary_counters() local
111 for (dst = &cntrs->tx_unicast, src = &vstats.tx_grp.unicast; in opa_vnic_get_summary_counters()
112 dst < &cntrs->reserved[0]; dst++, src++) { in opa_vnic_get_summary_counters()
113 *dst = cpu_to_be64(*src); in opa_vnic_get_summary_counters()
164 struct __opa_vesw_info *src = &adapter->info.vesw; in opa_vnic_get_vesw_info() local
167 info->fabric_id = cpu_to_be16(src->fabric_id); in opa_vnic_get_vesw_info()
168 info->vesw_id = cpu_to_be16(src->vesw_id); in opa_vnic_get_vesw_info()
169 memcpy(info->rsvd0, src->rsvd0, ARRAY_SIZE(src->rsvd0)); in opa_vnic_get_vesw_info()
170 info->def_port_mask = cpu_to_be16(src->def_port_mask); in opa_vnic_get_vesw_info()
171 memcpy(info->rsvd1, src->rsvd1, ARRAY_SIZE(src->rsvd1)); in opa_vnic_get_vesw_info()
[all …]
/drivers/gpu/drm/i915/
Di915_memcpy.c38 static void __memcpy_ntdqa(void *dst, const void *src, unsigned long len) in __memcpy_ntdqa() argument
51 :: "r" (src), "r" (dst) : "memory"); in __memcpy_ntdqa()
52 src += 64; in __memcpy_ntdqa()
59 :: "r" (src), "r" (dst) : "memory"); in __memcpy_ntdqa()
60 src += 16; in __memcpy_ntdqa()
67 static void __memcpy_ntdqu(void *dst, const void *src, unsigned long len) in __memcpy_ntdqu() argument
80 :: "r" (src), "r" (dst) : "memory"); in __memcpy_ntdqu()
81 src += 64; in __memcpy_ntdqu()
88 :: "r" (src), "r" (dst) : "memory"); in __memcpy_ntdqu()
89 src += 16; in __memcpy_ntdqu()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_blit.c38 (const _type * dst, const _type * src, size_t size)\
43 if (*dst++ != *src++) \
59 const _type * dst, const _type * src, size_t size) \
62 if (*--dst != *--src) \
108 if (spill && spill == SPILL(src, _type) && \
111 diff_offs = vmw_find_first_diff_u8(dst, src, spill); \
116 src += spill; \
121 if (!spill && !SPILL(src, _type)) { \
125 ((_type *) dst, (_type *) src, to_copy); \
130 src += diff_offs; \
[all …]
/drivers/gpu/drm/gud/
Dgud_internal.h128 const struct drm_display_mode *src) in gud_from_display_mode() argument
130 u32 flags = src->flags & GUD_DISPLAY_MODE_FLAG_USER_MASK; in gud_from_display_mode()
132 if (src->type & DRM_MODE_TYPE_PREFERRED) in gud_from_display_mode()
135 dst->clock = cpu_to_le32(src->clock); in gud_from_display_mode()
136 dst->hdisplay = cpu_to_le16(src->hdisplay); in gud_from_display_mode()
137 dst->hsync_start = cpu_to_le16(src->hsync_start); in gud_from_display_mode()
138 dst->hsync_end = cpu_to_le16(src->hsync_end); in gud_from_display_mode()
139 dst->htotal = cpu_to_le16(src->htotal); in gud_from_display_mode()
140 dst->vdisplay = cpu_to_le16(src->vdisplay); in gud_from_display_mode()
141 dst->vsync_start = cpu_to_le16(src->vsync_start); in gud_from_display_mode()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_irq.c136 struct amdgpu_irq_src *src = adev->irq.client[i].sources[j]; in amdgpu_irq_disable_all() local
138 if (!src || !src->funcs->set || !src->num_types) in amdgpu_irq_disable_all()
141 for (k = 0; k < src->num_types; ++k) { in amdgpu_irq_disable_all()
142 r = src->funcs->set(adev, src, k, in amdgpu_irq_disable_all()
355 struct amdgpu_irq_src *src = adev->irq.client[i].sources[j]; in amdgpu_irq_fini_sw() local
357 if (!src) in amdgpu_irq_fini_sw()
360 kfree(src->enabled_types); in amdgpu_irq_fini_sw()
361 src->enabled_types = NULL; in amdgpu_irq_fini_sw()
435 struct amdgpu_irq_src *src; in amdgpu_irq_dispatch() local
470 } else if ((src = adev->irq.client[client_id].sources[src_id])) { in amdgpu_irq_dispatch()
[all …]
/drivers/gpu/drm/
Ddrm_cache.c215 const struct iosys_map *src, in memcpy_fallback() argument
218 if (!dst->is_iomem && !src->is_iomem) { in memcpy_fallback()
219 memcpy(dst->vaddr, src->vaddr, len); in memcpy_fallback()
220 } else if (!src->is_iomem) { in memcpy_fallback()
221 iosys_map_memcpy_to(dst, 0, src->vaddr, len); in memcpy_fallback()
223 memcpy_fromio(dst->vaddr, src->vaddr_iomem, len); in memcpy_fallback()
231 void __iomem *_src = src->vaddr_iomem; in memcpy_fallback()
252 static void __memcpy_ntdqa(void *dst, const void *src, unsigned long len) in __memcpy_ntdqa() argument
265 :: "r" (src), "r" (dst) : "memory"); in __memcpy_ntdqa()
266 src += 64; in __memcpy_ntdqa()
[all …]
/drivers/misc/vmw_vmci/
Dvmci_route.c20 int vmci_route(struct vmci_handle *src, in vmci_route() argument
64 if (VMCI_HOST_CONTEXT_ID == src->context) in vmci_route()
75 if (VMCI_INVALID_ID == src->context && in vmci_route()
76 VMCI_INVALID_ID != src->resource) in vmci_route()
77 src->context = vmci_get_context_id(); in vmci_route()
94 if (src->context == VMCI_HYPERVISOR_CONTEXT_ID) { in vmci_route()
113 if (VMCI_INVALID_ID == src->context) in vmci_route()
114 src->context = vmci_get_context_id(); in vmci_route()
130 if (VMCI_INVALID_ID == src->context) { in vmci_route()
139 src->context = VMCI_HOST_CONTEXT_ID; in vmci_route()
[all …]

12345678910>>...60