| /linux/arch/mips/net/ |
| H A D | bpf_jit_comp64.c | 98 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() 123 /* dst = imm (64-bit) */ [all …]
|
| H A D | bpf_jit_comp32.c | 173 /* dst = imm (sign-extended) */ 174 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 [all …]
|
| /linux/net/core/ |
| H A D | dst.c | 3 * net/core/dst.c Protocol independent destination cache. 27 #include <net/dst.h> 47 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() [all …]
|
| H A D | dst_cache.c | 3 * net/core/dst_cache.c - dst entry cache 19 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() [all …]
|
| /linux/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_vcap_debugfs.c | 84 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/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_vcap_debugfs.c | 15 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/allegro-dvt/ |
| H A D | allegro-mail.c | 44 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/drivers/media/platform/verisilicon/ |
| H A D | hantro_vp8.c | 54 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/net/dsa/ |
| H A D | dsa.c | 55 * @dst: Tree in which to record the mapping. 64 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() 86 * @dst: Tree in which the mapping is recorded. 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() [all …]
|
| /linux/arch/mips/cavium-octeon/ |
| H A D | octeon-memcpy.S | 21 #define dst a0 macro 28 * memcpy copies len bytes from src to dst and sets v0 to dst. 30 * - src and dst don't overlap 32 * - dst is writable 35 * __copy_user copies up to len bytes from src to dst and sets a2 (len) to 37 * __copy_user assumes that src and dst don't overlap, and that the call is 42 * - dst is writable (no exceptions when writing dst) 60 * 3- (dst - src) == (dst_entry - src_entry), 65 * (3) is met by not doing loads between a pair of increments of dst and src 146 * memcpy sets v0 to dst. [all …]
|
| /linux/samples/bpf/ |
| H A D | bpf_insn.h | 10 #define BPF_ALU64_REG(OP, DST, SRC) \ argument 13 .dst_reg = DST, \ 18 #define BPF_ALU32_REG(OP, DST, SRC) \ argument 21 .dst_reg = DST, \ 28 #define BPF_ALU64_IMM(OP, DST, IMM) \ argument 31 .dst_reg = DST, \ 36 #define BPF_ALU32_IMM(OP, DST, IMM) \ argument 39 .dst_reg = DST, \ 46 #define BPF_MOV64_REG(DST, SRC) \ argument 49 .dst_reg = DST, \ [all …]
|
| /linux/tools/include/linux/ |
| H A D | filter.h | 34 #define BPF_ALU64_REG(OP, DST, SRC) \ argument 37 .dst_reg = DST, \ 42 #define BPF_ALU32_REG(OP, DST, SRC) \ argument 45 .dst_reg = DST, \ 52 #define BPF_ALU64_IMM(OP, DST, IMM) \ argument 55 .dst_reg = DST, \ 60 #define BPF_ALU32_IMM(OP, DST, IMM) \ argument 63 .dst_reg = DST, \ 70 #define BPF_ENDIAN(TYPE, DST, LEN) \ argument 73 .dst_reg = DST, \ [all …]
|
| /linux/arch/loongarch/net/ |
| H A D | bpf_jit.c | 360 const u8 dst = regmap[insn->dst_reg]; in emit_atomic_rmw() local 366 emit_insn(ctx, addd, t1, dst, t1); in emit_atomic_rmw() 370 /* lock *(size *)(dst + off) <op>= src */ in emit_atomic_rmw() 413 /* src = atomic_fetch_<op>(dst + off, src) */ in emit_atomic_rmw() 465 /* src = atomic_xchg(dst + off, src); */ in emit_atomic_rmw() 493 /* r0 = atomic_cmpxchg(dst + off, r0, src); */ in emit_atomic_rmw() 525 const u8 dst = regmap[insn->dst_reg]; in emit_atomic_ld_st() local 535 emit_insn(ctx, ldbu, dst, src, off); in emit_atomic_ld_st() 538 emit_insn(ctx, ldxbu, dst, src, t1); in emit_atomic_ld_st() 543 emit_insn(ctx, ldhu, dst, src, off); in emit_atomic_ld_st() [all …]
|
| /linux/drivers/phy/ |
| H A D | phy-xgene.c | 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 111 (((dst) & ~0x003ffff0) | (((u32) (src) << 4) & 0x003ffff0)) [all …]
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_rect_test.c | 27 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_div_by_zero() local 31 * Make sure we don't divide by zero when dst in drm_test_rect_clip_scaled_div_by_zero() 32 * width/height is zero and dst and clip do not intersect. in drm_test_rect_clip_scaled_div_by_zero() 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() [all …]
|
| /linux/arch/nios2/lib/ |
| H A D | memmove.c | 15 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/arch/arm/lib/ |
| H A D | csumpartialcopygeneric.S | 11 * csum_partial_copy_xxx(const char *src, char *dst, int len, int sum, ) 12 * r0 = src, r1 = dst, r2 = len, r3 = sum 19 dst .req r1 label 33 tst dst, #1 39 strb ip, [dst], #1 40 tst dst, #2 41 reteq lr @ dst is now 32bit aligned 46 strb r8, [dst], #1 48 strb ip, [dst], #1 49 ret lr @ dst is now 32bit aligned [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_sock_fields.c | 64 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/testing/selftests/net/ |
| H A D | udpgro_fwd.sh | 9 readonly DST=1 12 readonly NS_DST=$BASE$DST 48 ip link add name veth$SRC type veth peer name veth$DST 50 for ns in $SRC $DST; do 56 ip -n $NS_DST link set veth$DST xdp object ${BPF_FILE} section xdp 2>/dev/null 78 for ns in $SRC $DST; do 79 # note that 3 - $SRC == $DST and 3 - $DST == $SRC 83 for ns in $SRC $DST; do 89 local addr_dst=$(ip -j -n $BASE$DST link show dev vxlan6$DST |jq -r '.[]["address"]') 91 ip -n $BASE$DST neigh add dev vxlan6$DST lladdr $addr_src $OL_NET_V6$SRC [all …]
|
| /linux/crypto/ |
| H A D | authencesn.c | 37 struct scatterlist dst[2]; member 93 struct scatterlist *dst = req->dst; in crypto_authenc_esn_genicv_tail() local 97 scatterwalk_map_and_copy(tmp, dst, 4, 4, 0); in crypto_authenc_esn_genicv_tail() 98 scatterwalk_map_and_copy(tmp + 1, dst, assoclen + cryptlen, 4, 0); in crypto_authenc_esn_genicv_tail() 99 scatterwalk_map_and_copy(tmp, dst, 0, 8, 1); in crypto_authenc_esn_genicv_tail() 101 scatterwalk_map_and_copy(hash, dst, assoclen + cryptlen, authsize, 1); in crypto_authenc_esn_genicv_tail() 125 struct scatterlist *dst = req->dst; in crypto_authenc_esn_genicv() local 132 scatterwalk_map_and_copy(tmp, dst, 0, 8, 0); in crypto_authenc_esn_genicv() 133 scatterwalk_map_and_copy(tmp, dst, 4, 4, 1); in crypto_authenc_esn_genicv() 134 scatterwalk_map_and_copy(tmp + 1, dst, assoclen + cryptlen, 4, 1); in crypto_authenc_esn_genicv() [all …]
|
| /linux/arch/xtensa/lib/ |
| H A D | umulsidi3.S | 75 #define do_mul(dst, xreg, xhalf, yreg, yhalf) \ argument 76 mul16u dst, xreg ## xhalf, yreg ## yhalf 80 #define do_mul(dst, xreg, xhalf, yreg, yhalf) \ argument 81 mull dst, xreg ## xhalf, yreg ## yhalf 93 #define do_mul(dst, xreg, xhalf, yreg, yhalf) \ argument 95 rsr dst, ACCLO 99 #define set_arg_l(dst, src) \ argument 100 extui dst, src, 0, 16 101 #define set_arg_h(dst, src) \ argument 102 srli dst, src, 16 [all …]
|
| /linux/drivers/video/fbdev/core/ |
| H A D | fb_fillrect.h | 29 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/arch/mips/lib/ |
| H A D | memcpy.S | 40 #define dst a0 macro 47 * memcpy copies len bytes from src to dst and sets v0 to dst. 49 * - src and dst don't overlap 51 * - dst is writable 54 * __copy_user copies up to len bytes from src to dst and sets a2 (len) to 56 * __copy_user assumes that src and dst don't overlap, and that the call is 61 * - dst is writable (no exceptions when writing dst) 79 * 3- (dst - src) == (dst_entry - src_entry), 84 * (3) is met by not doing loads between a pair of increments of dst and src 281 * Note: dst & src may be unaligned, len may be 0 [all …]
|
| /linux/drivers/gpu/drm/gud/ |
| H A D | gud_internal.h | 129 static inline void gud_from_display_mode(struct gud_display_mode_req *dst, in gud_from_display_mode() argument 137 dst->clock = cpu_to_le32(src->clock); in gud_from_display_mode() 138 dst->hdisplay = cpu_to_le16(src->hdisplay); in gud_from_display_mode() 139 dst->hsync_start = cpu_to_le16(src->hsync_start); in gud_from_display_mode() 140 dst->hsync_end = cpu_to_le16(src->hsync_end); in gud_from_display_mode() 141 dst->htotal = cpu_to_le16(src->htotal); in gud_from_display_mode() 142 dst->vdisplay = cpu_to_le16(src->vdisplay); in gud_from_display_mode() 143 dst->vsync_start = cpu_to_le16(src->vsync_start); in gud_from_display_mode() 144 dst->vsync_end = cpu_to_le16(src->vsync_end); in gud_from_display_mode() 145 dst->vtotal = cpu_to_le16(src->vtotal); in gud_from_display_mode() [all …]
|
| /linux/arch/x86/crypto/ |
| H A D | aria-avx.h | 16 asmlinkage void aria_aesni_avx_encrypt_16way(const void *ctx, u8 *dst, 18 asmlinkage void aria_aesni_avx_decrypt_16way(const void *ctx, u8 *dst, 20 asmlinkage void aria_aesni_avx_ctr_crypt_16way(const void *ctx, u8 *dst, 23 asmlinkage void aria_aesni_avx_gfni_encrypt_16way(const void *ctx, u8 *dst, 25 asmlinkage void aria_aesni_avx_gfni_decrypt_16way(const void *ctx, u8 *dst, 27 asmlinkage void aria_aesni_avx_gfni_ctr_crypt_16way(const void *ctx, u8 *dst, 31 asmlinkage void aria_aesni_avx2_encrypt_32way(const void *ctx, u8 *dst, 33 asmlinkage void aria_aesni_avx2_decrypt_32way(const void *ctx, u8 *dst, 35 asmlinkage void aria_aesni_avx2_ctr_crypt_32way(const void *ctx, u8 *dst, 38 asmlinkage void aria_aesni_avx2_gfni_encrypt_32way(const void *ctx, u8 *dst, [all …]
|