Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 2683) sorted by relevance

12345678910>>...108

/linux/drivers/infiniband/core/
H A Duverbs_marshall.c63 struct ib_uverbs_ah_attr *dst, in ib_copy_ah_attr_to_user() argument
69 memset(&dst->grh, 0, sizeof(dst->grh)); 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()
82 if (dst->is_global) { in ib_copy_ah_attr_to_user()
85 memcpy(dst->grh.dgid, grh->dgid.raw, sizeof(grh->dgid)); in ib_copy_ah_attr_to_user()
86 dst->grh.flow_label = grh->flow_label; in ib_copy_ah_attr_to_user()
[all …]
/linux/net/core/
H A Ddst.c47 void dst_init(struct dst_entry *dst, struct dst_ops *ops, in dst_init() argument
51 dst->dev = dev; in dst_init()
52 netdev_hold(dev, &dst->dev_tracker, GFP_ATOMIC); in dst_init()
53 dst->ops = ops; in dst_init()
54 dst_init_metrics(dst, dst_default_metrics.metrics, true); in dst_init()
55 dst->expires = 0UL; in dst_init()
57 dst->xfrm = NULL; in dst_init()
59 dst->input = dst_discard; in dst_init()
60 dst->output = dst_discard_out; in dst_init()
61 dst->error = 0; in dst_init()
[all …]
H A Ddst_cache.c19 struct dst_entry *dst; member
29 struct dst_entry *dst, u32 cookie) in dst_cache_per_cpu_dst_set() argument
32 dst_release(dst_cache->dst); in dst_cache_per_cpu_dst_set()
33 if (dst) in dst_cache_per_cpu_dst_set()
34 dst_hold(dst); in dst_cache_per_cpu_dst_set()
37 dst_cache->dst = dst; in dst_cache_per_cpu_dst_set()
43 struct dst_entry *dst; in dst_cache_per_cpu_get() local
46 dst = idst->dst; in dst_cache_per_cpu_get()
47 if (!dst) in dst_cache_per_cpu_get()
51 dst_hold(dst); in dst_cache_per_cpu_get()
[all …]
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_vcap_debugfs.c84 out->prf(out->dst, " port[%02d] (%s): ", port->portno, in sparx5_vcap_is0_port_keys()
87 out->prf(out->dst, "\n Lookup %d: ", lookup); in sparx5_vcap_is0_port_keys()
92 out->prf(out->dst, "\n state: "); in sparx5_vcap_is0_port_keys()
94 out->prf(out->dst, "on"); in sparx5_vcap_is0_port_keys()
96 out->prf(out->dst, "off"); in sparx5_vcap_is0_port_keys()
98 out->prf(out->dst, "\n etype: %s", in sparx5_vcap_is0_port_keys()
101 out->prf(out->dst, "\n ipv4: %s", in sparx5_vcap_is0_port_keys()
104 out->prf(out->dst, "\n ipv6: %s", in sparx5_vcap_is0_port_keys()
107 out->prf(out->dst, "\n mpls_uc: %s", in sparx5_vcap_is0_port_keys()
110 out->prf(out->dst, "\n mpls_mc: %s", in sparx5_vcap_is0_port_keys()
[all …]
/linux/include/net/
H A Ddst.h106 u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old);
115 static inline bool dst_metrics_read_only(const struct dst_entry *dst) in dst_metrics_read_only() argument
117 return dst->_metrics & DST_METRICS_READ_ONLY; in dst_metrics_read_only()
120 void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old);
122 static inline void dst_destroy_metrics_generic(struct dst_entry *dst) in dst_destroy_metrics_generic() argument
124 unsigned long val = dst->_metrics; in dst_destroy_metrics_generic()
126 __dst_destroy_metrics_generic(dst, val); in dst_destroy_metrics_generic()
129 static inline u32 *dst_metrics_write_ptr(struct dst_entry *dst) in dst_metrics_write_ptr() argument
131 unsigned long p = dst->_metrics; in dst_metrics_write_ptr()
136 return dst->ops->cow_metrics(dst, p); in dst_metrics_write_ptr()
[all …]
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_vcap_debugfs.c15 out->prf(out->dst, " port[%d] (%s): ", port->chip_port, in lan966x_vcap_is1_port_keys()
19 out->prf(out->dst, "\n state: "); in lan966x_vcap_is1_port_keys()
21 out->prf(out->dst, "on"); in lan966x_vcap_is1_port_keys()
23 out->prf(out->dst, "off"); in lan966x_vcap_is1_port_keys()
26 out->prf(out->dst, "\n Lookup %d: ", l); in lan966x_vcap_is1_port_keys()
30 out->prf(out->dst, "\n other: "); in lan966x_vcap_is1_port_keys()
33 out->prf(out->dst, "normal"); in lan966x_vcap_is1_port_keys()
36 out->prf(out->dst, "7tuple"); in lan966x_vcap_is1_port_keys()
39 out->prf(out->dst, "dbl_vid"); in lan966x_vcap_is1_port_keys()
42 out->prf(out->dst, "dmac_vid"); in lan966x_vcap_is1_port_keys()
[all …]
/linux/drivers/media/platform/verisilicon/
H A Dhantro_vp8.c54 u8 *dst; in hantro_vp8_prob_update() local
57 dst = ctx->vp8_dec.prob_tbl.cpu; in hantro_vp8_prob_update()
59 dst[0] = hdr->prob_skip_false; in hantro_vp8_prob_update()
60 dst[1] = hdr->prob_intra; in hantro_vp8_prob_update()
61 dst[2] = hdr->prob_last; in hantro_vp8_prob_update()
62 dst[3] = hdr->prob_gf; in hantro_vp8_prob_update()
63 dst[4] = hdr->segment.segment_probs[0]; in hantro_vp8_prob_update()
64 dst[5] = hdr->segment.segment_probs[1]; in hantro_vp8_prob_update()
65 dst[6] = hdr->segment.segment_probs[2]; in hantro_vp8_prob_update()
66 dst[7] = 0; in hantro_vp8_prob_update()
[all …]
/linux/drivers/media/platform/allegro-dvt/
H A Dallegro-mail.c44 allegro_enc_init(u32 *dst, struct mcu_msg_init_request *msg) in allegro_enc_init() argument
49 dst[i++] = msg->reserved0; in allegro_enc_init()
50 dst[i++] = msg->suballoc_dma; in allegro_enc_init()
51 dst[i++] = msg->suballoc_size; in allegro_enc_init()
52 dst[i++] = msg->encoder_buffer_size; in allegro_enc_init()
53 dst[i++] = msg->encoder_buffer_color_depth; in allegro_enc_init()
54 dst[i++] = msg->num_cores; in allegro_enc_init()
56 dst[i++] = msg->clk_rate; in allegro_enc_init()
57 dst[i++] = 0; in allegro_enc_init()
60 return i * sizeof(*dst); in allegro_enc_init()
[all …]
/linux/arch/mips/net/
H A Dbpf_jit_comp32.c174 static void emit_mov_se_i64(struct jit_context *ctx, const u8 dst[], s32 imm) in emit_mov_se_i64() argument
176 emit_mov_i(ctx, lo(dst), imm); in emit_mov_se_i64()
178 emit(ctx, addiu, hi(dst), MIPS_R_ZERO, -1); in emit_mov_se_i64()
180 emit(ctx, move, hi(dst), MIPS_R_ZERO); in emit_mov_se_i64()
181 clobber_reg64(ctx, dst); in emit_mov_se_i64()
185 static void emit_zext_ver(struct jit_context *ctx, const u8 dst[]) in emit_zext_ver() argument
188 emit(ctx, move, hi(dst), MIPS_R_ZERO); in emit_zext_ver()
189 clobber_reg(ctx, hi(dst)); in emit_zext_ver()
202 const u8 dst[], s32 imm, u8 op) in emit_alu_i64() argument
228 emit(ctx, addu, lo(dst), lo(dst), src); in emit_alu_i64()
[all …]
H A Dbpf_jit_comp64.c98 static void emit_sext(struct jit_context *ctx, u8 dst, u8 src) in emit_sext() argument
100 emit(ctx, sll, dst, src, 0); in emit_sext()
101 clobber_reg(ctx, dst); in emit_sext()
105 static void emit_zext(struct jit_context *ctx, u8 dst) in emit_zext() argument
108 emit(ctx, dinsu, dst, MIPS_R_ZERO, 32, 32); in emit_zext()
110 emit(ctx, and, dst, dst, bpf2mips64[JIT_REG_ZX]); in emit_zext()
113 clobber_reg(ctx, dst); in emit_zext()
117 static void emit_zext_ver(struct jit_context *ctx, u8 dst) in emit_zext_ver() argument
120 emit_zext(ctx, dst); in emit_zext_ver()
124 static void emit_mov_i64(struct jit_context *ctx, u8 dst, u64 imm64) in emit_mov_i64() argument
[all …]
H A Dbpf_jit_comp.c192 void emit_mov_i(struct jit_context *ctx, u8 dst, s32 imm) in emit_mov_i() argument
195 emit(ctx, addiu, dst, MIPS_R_ZERO, imm); in emit_mov_i()
197 emit(ctx, lui, dst, (s16)((u32)imm >> 16)); in emit_mov_i()
198 emit(ctx, ori, dst, dst, (u16)(imm & 0xffff)); in emit_mov_i()
200 clobber_reg(ctx, dst); in emit_mov_i()
204 void emit_mov_r(struct jit_context *ctx, u8 dst, u8 src) in emit_mov_r() argument
206 emit(ctx, ori, dst, src, 0); in emit_mov_r()
207 clobber_reg(ctx, dst); in emit_mov_r()
298 void emit_alu_i(struct jit_context *ctx, u8 dst, s32 imm, u8 op) in emit_alu_i() argument
303 emit(ctx, subu, dst, MIPS_R_ZERO, dst); in emit_alu_i()
[all …]
/linux/net/dsa/
H A Ddsa.c63 void dsa_lag_map(struct dsa_switch_tree *dst, struct dsa_lag *lag) in dsa_lag_map() argument
67 for (id = 1; id <= dst->lags_len; id++) { in dsa_lag_map()
68 if (!dsa_lag_by_id(dst, id)) { in dsa_lag_map()
69 dst->lags[id - 1] = lag; in dsa_lag_map()
91 void dsa_lag_unmap(struct dsa_switch_tree *dst, struct dsa_lag *lag) in dsa_lag_unmap() argument
95 dsa_lags_foreach_id(id, dst) { in dsa_lag_unmap()
96 if (dsa_lag_by_id(dst, id) == lag) { in dsa_lag_unmap()
97 dst->lags[id - 1] = NULL; in dsa_lag_unmap()
104 struct dsa_lag *dsa_tree_lag_find(struct dsa_switch_tree *dst, in dsa_tree_lag_find() argument
109 list_for_each_entry(dp, &dst->ports, list) in dsa_tree_lag_find()
[all …]
/linux/arch/nios2/lib/
H A Dmemmove.c15 unsigned long dst, src; in memmove() local
21 dst = (unsigned long) d; in memmove()
24 if ((count < 8) || ((dst ^ src) & 3)) in memmove()
27 if (dst & 1) { in memmove()
28 *(char *)dst++ = *(char *)src++; in memmove()
31 if (dst & 2) { in memmove()
32 *(short *)dst = *(short *)src; in memmove()
34 dst += 2; in memmove()
38 *(long *)dst = *(long *)src; in memmove()
40 dst += 4; in memmove()
[all …]
/linux/drivers/video/fbdev/core/
H A Dfb_copyarea.h36 const struct fb_address *dst, in fb_copy_offset_masked() argument
39 fb_modify_offset(fb_read_offset(offset, src), mask, offset, dst); in fb_copy_offset_masked()
43 static inline void fb_copy_offset(int offset, const struct fb_address *dst, in fb_copy_offset() argument
46 fb_write_offset(fb_read_offset(offset, src), offset, dst); in fb_copy_offset()
50 static inline void fb_copy_aligned_fwd(const struct fb_address *dst, in fb_copy_aligned_fwd() argument
56 first = fb_pixel_mask(dst->bits, reverse); in fb_copy_aligned_fwd()
66 fb_copy_offset(0, dst, src); in fb_copy_aligned_fwd()
68 fb_copy_offset_masked(last, 0, dst, src); in fb_copy_aligned_fwd()
75 fb_copy_offset_masked(first, 0, dst, src); in fb_copy_aligned_fwd()
80 fb_copy_offset(offset + 0, dst, src); in fb_copy_aligned_fwd()
[all …]
H A Dfb_fillrect.h29 static inline void fb_invert_offset(unsigned long pat, int offset, const struct fb_address *dst) in fb_invert_offset() argument
31 fb_write_offset(fb_read_offset(offset, dst) ^ pat, offset, dst); in fb_invert_offset()
105 static __always_inline void bitfill(const struct fb_address *dst, in bitfill() argument
113 end += dst->bits; in bitfill()
114 first = fb_pixel_mask(dst->bits, pattern->reverse); in bitfill()
121 fb_write_offset(first, 0, dst); in bitfill()
123 fb_modify_offset(first, last, 0, dst); in bitfill()
128 fb_modify_offset(get(pattern), first, 0, dst); in bitfill()
133 fb_write_offset(get(pattern), offset + 0, dst); in bitfill()
135 fb_write_offset(get(pattern), offset + 1, dst); in bitfill()
[all …]
/linux/drivers/phy/
H A Dphy-xgene.c95 #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
111 (((dst) & ~0x003ffff0) | (((u32) (src) << 4) & 0x003ffff0))
[all …]
/linux/mm/
H A Dmaccess.c20 #define copy_from_kernel_nofault_loop(dst, src, len, type, err_label) \ argument
22 __get_kernel_nofault(dst, src, type, err_label); \
24 dst += sizeof(type); \
29 long copy_from_kernel_nofault(void *dst, const void *src, size_t size) in copy_from_kernel_nofault() argument
34 align = (unsigned long)dst | (unsigned long)src; in copy_from_kernel_nofault()
41 copy_from_kernel_nofault_loop(dst, src, size, u64, Efault); in copy_from_kernel_nofault()
43 copy_from_kernel_nofault_loop(dst, src, size, u32, Efault); in copy_from_kernel_nofault()
45 copy_from_kernel_nofault_loop(dst, src, size, u16, Efault); in copy_from_kernel_nofault()
46 copy_from_kernel_nofault_loop(dst, src, size, u8, Efault); in copy_from_kernel_nofault()
55 #define copy_to_kernel_nofault_loop(dst, src, len, type, err_label) \ argument
[all …]
/linux/arch/arm64/lib/
H A Dmemset.S42 dst .req x8 label
47 mov dst, dstin /* Preserve return value. */
57 str A_l, [dst], #8
60 str A_lw, [dst], #4
63 strh A_lw, [dst], #2
66 strb A_lw, [dst]
72 neg tmp2, dst
80 stp A_l, A_l, [dst] /*non-aligned store..*/
83 add dst, dst, tmp2
97 stp A_l, A_l, [dst], #16
[all …]
/linux/drivers/infiniband/hw/vmw_pvrdma/
H A 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 …]
/linux/drivers/gpu/drm/tests/
H A Ddrm_rect_test.c27 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_div_by_zero() local
35 drm_rect_init(&dst, 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()
43 drm_rect_init(&dst, 3, 3, 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()
53 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_not_clipped() local
58 drm_rect_init(&dst, 0, 0, 1, 1); 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()
65 KUNIT_EXPECT_FALSE_MSG(test, dst.x1 != 0 || dst.x2 != 1 || in drm_test_rect_clip_scaled_not_clipped()
66 dst.y1 != 0 || dst.y2 != 1, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sock_fields.c64 static void skcpy(struct bpf_sock *dst, in skcpy() argument
67 dst->bound_dev_if = src->bound_dev_if; in skcpy()
68 dst->family = src->family; in skcpy()
69 dst->type = src->type; in skcpy()
70 dst->protocol = src->protocol; in skcpy()
71 dst->mark = src->mark; in skcpy()
72 dst->priority = src->priority; in skcpy()
73 dst->src_ip4 = src->src_ip4; in skcpy()
74 dst->src_ip6[0] = src->src_ip6[0]; in skcpy()
75 dst->src_ip6[1] = src->src_ip6[1]; in skcpy()
[all …]
/linux/tools/include/nolibc/
H A Dstring.h38 void *memmove(void *dst, const void *src, size_t len);
40 void *memmove(void *dst, const void *src, size_t len) in memmove() argument
47 if (dst < src) { in memmove()
54 ((char *)dst)[pos] = ((const char *)src)[pos]; in memmove()
57 return dst; in memmove()
63 void *memcpy(void *dst, const void *src, size_t len);
65 void *memcpy(void *dst, const void *src, size_t len) in memcpy() argument
70 ((char *)dst)[pos] = ((const char *)src)[pos]; in memcpy()
73 return dst; in memcpy()
81 void *memset(void *dst, int b, size_t len);
[all …]
/linux/drivers/video/fbdev/
H A Datafb_utils.h220 static inline void fast_memmove(char *dst, const char *src, size_t size) in fast_memmove() argument
224 if (dst < src) in fast_memmove()
232 : "=a" (src), "=a" (dst), "=d" (size) in fast_memmove()
233 : "0" (src), "1" (dst), "2" (size / 16 - 1) in fast_memmove()
243 : "=a" (src), "=a" (dst), "=d" (size) in fast_memmove()
244 : "0" (src + size), "1" (dst + size), "2" (size / 16 - 1) in fast_memmove()
280 static inline void fill8_col(u8 *dst, u32 m[]) in fill8_col() argument
283 dst[0] = tmp; in fill8_col()
284 dst[2] = (tmp >>= 8); in fill8_col()
286 dst[4] = (tmp >>= 8); in fill8_col()
[all …]
/linux/net/sched/
H A Dem_meta.c101 struct meta_obj *dst, int *err)
109 get_random_bytes(&dst->value, sizeof(dst->value)); in META_COLLECTOR()
122 dst->value = fixed_loadavg(avenrun[0]); in META_COLLECTOR()
127 dst->value = fixed_loadavg(avenrun[1]); in META_COLLECTOR()
132 dst->value = fixed_loadavg(avenrun[2]); in META_COLLECTOR()
139 static inline int int_dev(struct net_device *dev, struct meta_obj *dst) in int_dev() argument
144 dst->value = dev->ifindex; in int_dev()
148 static inline int var_dev(struct net_device *dev, struct meta_obj *dst) in var_dev() argument
153 dst->value = (unsigned long) dev->name; in var_dev()
154 dst->len = strlen(dev->name); in var_dev()
[all …]
/linux/drivers/gpu/drm/gud/
H A Dgud_internal.h125 static inline void gud_from_display_mode(struct gud_display_mode_req *dst, in gud_from_display_mode() argument
133 dst->clock = cpu_to_le32(src->clock); in gud_from_display_mode()
134 dst->hdisplay = cpu_to_le16(src->hdisplay); in gud_from_display_mode()
135 dst->hsync_start = cpu_to_le16(src->hsync_start); in gud_from_display_mode()
136 dst->hsync_end = cpu_to_le16(src->hsync_end); in gud_from_display_mode()
137 dst->htotal = cpu_to_le16(src->htotal); in gud_from_display_mode()
138 dst->vdisplay = cpu_to_le16(src->vdisplay); in gud_from_display_mode()
139 dst->vsync_start = cpu_to_le16(src->vsync_start); in gud_from_display_mode()
140 dst->vsync_end = cpu_to_le16(src->vsync_end); in gud_from_display_mode()
141 dst->vtotal = cpu_to_le16(src->vtotal); in gud_from_display_mode()
[all …]

12345678910>>...108