Home
last modified time | relevance | path

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

12345678910>>...114

/openbmc/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 …]
/openbmc/qemu/target/i386/tcg/
H A Dcc_helper.c45 static target_ulong compute_all_adcx(target_ulong dst, target_ulong src1, in compute_all_adcx() argument
48 return (src1 & ~CC_C) | (dst * CC_C); in compute_all_adcx()
51 static target_ulong compute_all_adox(target_ulong dst, target_ulong src1, in compute_all_adox() argument
57 static target_ulong compute_all_adcox(target_ulong dst, target_ulong src1, in compute_all_adcox() argument
60 return (src1 & ~(CC_C | CC_O)) | (dst * CC_C) | (src2 * CC_O); in compute_all_adcox()
63 target_ulong helper_cc_compute_nz(target_ulong dst, target_ulong src1, in helper_cc_compute_nz() argument
72 return dst & mask; in helper_cc_compute_nz()
76 target_ulong helper_cc_compute_all(target_ulong dst, target_ulong src1, in helper_cc_compute_all() argument
86 return dst ? 0 : CC_Z; in helper_cc_compute_all()
89 return compute_all_mulb(dst, src1); in helper_cc_compute_all()
[all …]
H A Dcc_helper_template.h.inc47 static uint32_t glue(compute_all_add, SUFFIX)(DATA_TYPE dst, DATA_TYPE src1)
50 DATA_TYPE src2 = dst - src1;
52 cf = dst < src1;
53 pf = compute_pf(dst);
54 af = (dst ^ src1 ^ src2) & CC_A;
55 zf = (dst == 0) * CC_Z;
56 sf = lshift(dst, 8 - DATA_BITS) & CC_S;
57 of = lshift((src1 ^ src2 ^ -1) & (src1 ^ dst), 12 - DATA_BITS) & CC_O;
61 static int glue(compute_c_add, SUFFIX)(DATA_TYPE dst, DATA_TYPE src1)
63 return dst < src1;
[all …]
/openbmc/u-boot/test/lib/
H A Dhexdump.c39 u8 dst[4]; in lib_test_hex2bin() local
41 hex2bin(dst, "649421de", 4); in lib_test_hex2bin()
42 ut_asserteq_mem("\x64\x94\x21\xde", dst, 4); in lib_test_hex2bin()
43 hex2bin(dst, "aa2e7545", 4); in lib_test_hex2bin()
44 ut_asserteq_mem("\xaa\x2e\x75\x45", dst, 4); in lib_test_hex2bin()
45 hex2bin(dst, "75453bc5", 4); in lib_test_hex2bin()
46 ut_asserteq_mem("\x75\x45\x3b\xc5", dst, 4); in lib_test_hex2bin()
47 hex2bin(dst, "a16884c3", 4); in lib_test_hex2bin()
48 ut_asserteq_mem("\xa1\x68\x84\xc3", dst, 4); in lib_test_hex2bin()
49 hex2bin(dst, "156b2e5e", 4); in lib_test_hex2bin()
[all …]
/openbmc/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
28 struct dst_entry *dst, u32 cookie) in dst_cache_per_cpu_dst_set() argument
30 dst_release(dst_cache->dst); in dst_cache_per_cpu_dst_set()
31 if (dst) in dst_cache_per_cpu_dst_set()
32 dst_hold(dst); in dst_cache_per_cpu_dst_set()
35 dst_cache->dst = dst; in dst_cache_per_cpu_dst_set()
41 struct dst_entry *dst; in dst_cache_per_cpu_get() local
43 dst = idst->dst; in dst_cache_per_cpu_get()
44 if (!dst) in dst_cache_per_cpu_get()
48 dst_hold(dst); in dst_cache_per_cpu_get()
[all …]
/openbmc/linux/drivers/video/fbdev/core/
H A Dcfbfillrect.c35 bitfill_aligned(struct fb_info *p, unsigned long __iomem *dst, int dst_idx, in bitfill_aligned() argument
50 FB_WRITEL(comp(pat, FB_READL(dst), first), dst); in bitfill_aligned()
56 FB_WRITEL(comp(pat, FB_READL(dst), first), dst); in bitfill_aligned()
57 dst++; in bitfill_aligned()
64 FB_WRITEL(pat, dst++); in bitfill_aligned()
65 FB_WRITEL(pat, dst++); in bitfill_aligned()
66 FB_WRITEL(pat, dst++); in bitfill_aligned()
67 FB_WRITEL(pat, dst++); in bitfill_aligned()
68 FB_WRITEL(pat, dst++); in bitfill_aligned()
69 FB_WRITEL(pat, dst++); in bitfill_aligned()
[all …]
H A Dsyscopyarea.c28 bitcpy(struct fb_info *p, unsigned long *dst, unsigned dst_idx, in bitcpy() argument
44 *dst = comp(*src, *dst, first); in bitcpy()
49 *dst = comp(*src, *dst, first); in bitcpy()
50 dst++; 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 …]
H A Dsysfillrect.c25 bitfill_aligned(struct fb_info *p, unsigned long *dst, int dst_idx, in bitfill_aligned() argument
40 *dst = comp(pat, *dst, first); in bitfill_aligned()
46 *dst = comp(pat, *dst, first); in bitfill_aligned()
47 dst++; in bitfill_aligned()
53 memset_l(dst, pat, n); in bitfill_aligned()
54 dst += n; in bitfill_aligned()
58 *dst = comp(pat, *dst, last); in bitfill_aligned()
71 bitfill_unaligned(struct fb_info *p, unsigned long *dst, int dst_idx, in bitfill_unaligned() argument
86 *dst = comp(pat, *dst, first); in bitfill_unaligned()
91 *dst = comp(pat, *dst, first); in bitfill_unaligned()
[all …]
/openbmc/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 …]
/openbmc/linux/include/net/
H A Ddst.h103 u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old);
112 static inline bool dst_metrics_read_only(const struct dst_entry *dst) in dst_metrics_read_only() argument
114 return dst->_metrics & DST_METRICS_READ_ONLY; in dst_metrics_read_only()
117 void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old);
119 static inline void dst_destroy_metrics_generic(struct dst_entry *dst) in dst_destroy_metrics_generic() argument
121 unsigned long val = dst->_metrics; in dst_destroy_metrics_generic()
123 __dst_destroy_metrics_generic(dst, val); in dst_destroy_metrics_generic()
126 static inline u32 *dst_metrics_write_ptr(struct dst_entry *dst) in dst_metrics_write_ptr() argument
128 unsigned long p = dst->_metrics; in dst_metrics_write_ptr()
133 return dst->ops->cow_metrics(dst, p); in dst_metrics_write_ptr()
[all …]
/openbmc/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()
28 out->prf(out->dst, "\n other: "); in lan966x_vcap_is1_port_keys()
31 out->prf(out->dst, "normal"); in lan966x_vcap_is1_port_keys()
34 out->prf(out->dst, "7tuple"); in lan966x_vcap_is1_port_keys()
37 out->prf(out->dst, "dbl_vid"); in lan966x_vcap_is1_port_keys()
40 out->prf(out->dst, "dmac_vid"); in lan966x_vcap_is1_port_keys()
[all …]
/openbmc/qemu/target/s390x/tcg/
H A Dcc_helper.c36 static uint32_t cc_calc_ltgt_32(int32_t src, int32_t dst) in cc_calc_ltgt_32() argument
38 if (src == dst) { in cc_calc_ltgt_32()
40 } else if (src < dst) { in cc_calc_ltgt_32()
47 static uint32_t cc_calc_ltgt0_32(int32_t dst) in cc_calc_ltgt0_32() argument
49 return cc_calc_ltgt_32(dst, 0); in cc_calc_ltgt0_32()
52 static uint32_t cc_calc_ltgt_64(int64_t src, int64_t dst) in cc_calc_ltgt_64() argument
54 if (src == dst) { in cc_calc_ltgt_64()
56 } else if (src < dst) { in cc_calc_ltgt_64()
63 static uint32_t cc_calc_ltgt0_64(int64_t dst) in cc_calc_ltgt0_64() argument
65 return cc_calc_ltgt_64(dst, 0); in cc_calc_ltgt0_64()
[all …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/linux/net/dsa/
H A Ddsa.c64 void dsa_lag_map(struct dsa_switch_tree *dst, struct dsa_lag *lag) in dsa_lag_map() argument
68 for (id = 1; id <= dst->lags_len; id++) { in dsa_lag_map()
69 if (!dsa_lag_by_id(dst, id)) { in dsa_lag_map()
70 dst->lags[id - 1] = lag; in dsa_lag_map()
92 void dsa_lag_unmap(struct dsa_switch_tree *dst, struct dsa_lag *lag) in dsa_lag_unmap() argument
96 dsa_lags_foreach_id(id, dst) { in dsa_lag_unmap()
97 if (dsa_lag_by_id(dst, id) == lag) { in dsa_lag_unmap()
98 dst->lags[id - 1] = NULL; in dsa_lag_unmap()
105 struct dsa_lag *dsa_tree_lag_find(struct dsa_switch_tree *dst, in dsa_tree_lag_find() argument
110 list_for_each_entry(dp, &dst->ports, list) in dsa_tree_lag_find()
[all …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/qemu/tests/tcg/xtensa/
H A Dtest_shift.S5 .macro test_shift prefix, dst, src, v, imm
6 \prefix\()_set \dst, \src, \v, \imm
7 \prefix\()_ver \dst, \v, \imm
32 .macro slli_set dst, src, v, imm
34 slli \dst, \src, \imm
37 .macro slli_ver dst, v, imm
38 mov a2, \dst
48 .macro srai_set dst, src, v, imm
50 srai \dst, \src, \imm
53 .macro srai_ver dst, v, imm
[all …]
/openbmc/linux/mm/
H A Dmaccess.c16 #define copy_from_kernel_nofault_loop(dst, src, len, type, err_label) \ argument
18 __get_kernel_nofault(dst, src, type, err_label); \
19 dst += sizeof(type); \
24 long copy_from_kernel_nofault(void *dst, const void *src, size_t size) in copy_from_kernel_nofault() argument
29 align = (unsigned long)dst | (unsigned long)src; in copy_from_kernel_nofault()
36 copy_from_kernel_nofault_loop(dst, src, size, u64, Efault); in copy_from_kernel_nofault()
38 copy_from_kernel_nofault_loop(dst, src, size, u32, Efault); in copy_from_kernel_nofault()
40 copy_from_kernel_nofault_loop(dst, src, size, u16, Efault); in copy_from_kernel_nofault()
41 copy_from_kernel_nofault_loop(dst, src, size, u8, Efault); in copy_from_kernel_nofault()
50 #define copy_to_kernel_nofault_loop(dst, src, len, type, err_label) \ argument
[all …]
/openbmc/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 …]
/openbmc/qemu/tests/unit/
H A Dtest-clone-visitor.c17 UserDefOne *src, *dst; in test_clone_struct() local
25 dst = QAPI_CLONE(UserDefOne, src); in test_clone_struct()
26 g_assert(dst); in test_clone_struct()
27 g_assert_cmpint(dst->integer, ==, 42); in test_clone_struct()
28 g_assert(dst->string != src->string); in test_clone_struct()
29 g_assert_cmpstr(dst->string, ==, "Hello"); in test_clone_struct()
30 g_assert_cmpint(dst->has_enum1, ==, false); in test_clone_struct()
36 qapi_free_UserDefOne(dst); in test_clone_struct()
67 uint8List *src = NULL, *dst; in test_clone_list() local
76 dst = QAPI_CLONE(uint8List, src); in test_clone_list()
[all …]

12345678910>>...114