| /linux/sound/pci/ctxfi/ |
| H A D | ctsrc.c | 24 static int src_default_config_memrd(struct src *src); 25 static int src_default_config_memwr(struct src *src); 26 static int src_default_config_arcrw(struct src *src); 28 static int (*src_default_config[3])(struct src *) = { 34 static int src_set_state(struct src *src, unsigned int state) in src_set_state() argument 38 hw = src in src_set_state() 44 src_set_bm(struct src * src,unsigned int bm) src_set_bm() argument 54 src_set_sf(struct src * src,unsigned int sf) src_set_sf() argument 64 src_set_pm(struct src * src,unsigned int pm) src_set_pm() argument 74 src_set_rom(struct src * src,unsigned int rom) src_set_rom() argument 84 src_set_vo(struct src * src,unsigned int vo) src_set_vo() argument 94 src_set_st(struct src * src,unsigned int st) src_set_st() argument 104 src_set_bp(struct src * src,unsigned int bp) src_set_bp() argument 114 src_set_cisz(struct src * src,unsigned int cisz) src_set_cisz() argument 124 src_set_ca(struct src * src,unsigned int ca) src_set_ca() argument 134 src_set_sa(struct src * src,unsigned int sa) src_set_sa() argument 144 src_set_la(struct src * src,unsigned int la) src_set_la() argument 154 src_set_pitch(struct src * src,unsigned int pitch) src_set_pitch() argument 164 src_set_clear_zbufs(struct src * src) src_set_clear_zbufs() argument 174 src_commit_write(struct src * src) src_commit_write() argument 204 src_get_ca(struct src * src) src_get_ca() argument 213 src_init(struct src * src) src_init() argument 220 src_next_interleave(struct src * src) src_next_interleave() argument 225 src_default_config_memrd(struct src * src) src_default_config_memrd() argument 265 src_default_config_memwr(struct src * src) src_default_config_memwr() argument 293 src_default_config_arcrw(struct src * src) src_default_config_arcrw() argument 356 src_rsc_init(struct src * src,u32 idx,const struct src_desc * desc,struct src_mgr * mgr) src_rsc_init() argument 392 src_rsc_uninit(struct src * src,struct src_mgr * mgr) src_rsc_uninit() argument 416 struct src *src; get_src_rsc() local 464 put_src_rsc(struct src_mgr * mgr,struct src * src) put_src_rsc() argument 480 src_enable_s(struct src_mgr * mgr,struct src * src) src_enable_s() argument 496 src_enable(struct src_mgr * mgr,struct src * src) src_enable() argument 512 src_disable(struct src_mgr * mgr,struct src * src) src_disable() argument 611 srcimp_map(struct srcimp * srcimp,struct src * src,struct rsc * input) srcimp_map() argument [all...] |
| H A D | ctsrc.h | 34 /* Define the descriptor of a src resource */ 44 struct src { struct 46 struct src *intlv; /* Pointer to next interleaved SRC in a series */ argument 47 const struct src_rsc_ops *ops; /* SRC specific operations */ argument 50 unsigned char mode; /* Working mode of this SRC resource */ 54 int (*set_state)(struct src *src, unsigned int state); argument 55 int (*set_bm)(struct src *src, unsigne [all...] |
| H A D | ctatc.c | 118 [SRC] = { .create = src_mgr_create, 247 struct src_mgr *src_mgr = atc->rsc_mgrs[SRC]; in atc_pcm_playback_prepare() 251 struct src *src; in atc_pcm_playback_prepare() local 261 /* Get SRC resource */ in atc_pcm_playback_prepare() 265 err = src_mgr->get_src(src_mgr, &desc, (struct src **)&apcm->src); in atc_pcm_playback_prepare() 271 src = apcm->src; in atc_pcm_playback_prepare() 272 src->ops->set_pitch(src, pitch); in atc_pcm_playback_prepare() 273 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_playback_prepare() 274 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_playback_prepare() 276 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in atc_pcm_playback_prepare() [all …]
|
| /linux/arch/mips/cavium-octeon/ |
| H A D | octeon-memcpy.S | 22 #define src a1 macro 28 * memcpy copies len bytes from src to dst and sets v0 to dst. 30 * - src and dst don't overlap 31 * - src is readable 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 40 * - src is readable (no exceptions when reading src) 59 * 2- src_entry <= src < AT, and 60 * 3- (dst - src) == (dst_entry - src_entry), 64 * (2) is met by incrementing src by the number of bytes copied [all …]
|
| /linux/arch/mips/lib/ |
| H A D | csum_partial.S | 75 #define CSUM_BIGCHUNK1(src, offset, sum, _t0, _t1, _t2, _t3) \ argument 76 LOAD _t0, (offset + UNIT(0))(src); \ 77 LOAD _t1, (offset + UNIT(1))(src); \ 78 LOAD _t2, (offset + UNIT(2))(src); \ 79 LOAD _t3, (offset + UNIT(3))(src); \ 86 #define CSUM_BIGCHUNK(src, offset, sum, _t0, _t1, _t2, _t3) \ argument 87 CSUM_BIGCHUNK1(src, offset, sum, _t0, _t1, _t2, _t3) 89 #define CSUM_BIGCHUNK(src, offset, sum, _t0, _t1, _t2, _t3) \ argument 90 CSUM_BIGCHUNK1(src, offset, sum, _t0, _t1, _t2, _t3); \ 91 CSUM_BIGCHUNK1(src, offset + 0x10, sum, _t0, _t1, _t2, _t3) [all …]
|
| /linux/arch/m68k/math-emu/ |
| H A D | fp_arith.c | 31 struct fp_ext *fp_fabs(struct fp_ext *dest, struct fp_ext *src) in fp_fabs() argument 35 fp_monadic_check(dest, src); in fp_fabs() 42 struct fp_ext *fp_fneg(struct fp_ext *dest, struct fp_ext *src) in fp_fneg() argument 46 fp_monadic_check(dest, src); in fp_fneg() 58 struct fp_ext *fp_fadd(struct fp_ext *dest, struct fp_ext *src) in fp_fadd() argument 64 fp_dyadic_check(dest, src); in fp_fadd() 68 if (IS_INF(src) && (src->sign != dest->sign)) in fp_fadd() 72 if (IS_INF(src)) { in fp_fadd() 73 fp_copy_ext(dest, src); in fp_fadd() 78 if (IS_ZERO(src)) { in fp_fadd() [all …]
|
| H A D | fp_trig.c | 21 struct fp_ext *fp_fsin(struct fp_ext *dest, struct fp_ext *src) in fp_fsin() argument 25 fp_monadic_check(dest, src); in fp_fsin() 30 struct fp_ext *fp_fcos(struct fp_ext *dest, struct fp_ext *src) in fp_fcos() argument 34 fp_monadic_check(dest, src); in fp_fcos() 39 struct fp_ext *fp_ftan(struct fp_ext *dest, struct fp_ext *src) in fp_ftan() argument 43 fp_monadic_check(dest, src); in fp_ftan() 48 struct fp_ext *fp_fasin(struct fp_ext *dest, struct fp_ext *src) in fp_fasin() argument 52 fp_monadic_check(dest, src); in fp_fasin() 57 struct fp_ext *fp_facos(struct fp_ext *dest, struct fp_ext *src) in fp_facos() argument 61 fp_monadic_check(dest, src); in fp_facos() [all …]
|
| H A D | fp_trig.h | 32 struct fp_ext *fp_fsin(struct fp_ext *dest, struct fp_ext *src); 33 struct fp_ext *fp_fcos(struct fp_ext *dest, struct fp_ext *src); 34 struct fp_ext *fp_ftan(struct fp_ext *dest, struct fp_ext *src); 35 struct fp_ext *fp_fasin(struct fp_ext *dest, struct fp_ext *src); 36 struct fp_ext *fp_facos(struct fp_ext *dest, struct fp_ext *src); 37 struct fp_ext *fp_fatan(struct fp_ext *dest, struct fp_ext *src); 38 struct fp_ext *fp_fsinh(struct fp_ext *dest, struct fp_ext *src); 39 struct fp_ext *fp_fcosh(struct fp_ext *dest, struct fp_ext *src); 40 struct fp_ext *fp_ftanh(struct fp_ext *dest, struct fp_ext *src); 41 struct fp_ext *fp_fatanh(struct fp_ext *dest, struct fp_ext *src); [all …]
|
| /linux/rust/zerocopy/src/pointer/ |
| H A D | transmute.rs | 40 /// Given `Dst: TryTransmuteFromPtr<Src, A, SV, DV, C, _>`, callers may assume 43 /// Given `src: Ptr<'a, Src, (A, _, SV)>`, if the referent of `src` is 44 /// `DV`-valid for `Dst`, then it is sound to transmute `src` into `dst: Ptr<'a, 49 /// Given `src: Ptr<Src, (A, _, SV)>` and `dst: Ptr<Dst, (A, Unaligned, DV)>`, 50 /// `Dst: TryTransmuteFromPtr<Src, A, SV, DV, C, _>` is sound if all of the 56 /// `SV`-valid referents of `src` (NOTE: this condition effectively bans 62 /// `SV`-valid referents of `src` (NOTE: this condition effectively bans 65 /// - No safe code, given access to `src` and `dst`, can cause undefined 68 /// - `Src: Immutable` and `Dst: Immutable` 69 /// - It is sound for shared code to operate on a `&Src` and `&Dst` which [all …]
|
| H A D | mod.rs | 60 pub unsafe trait Project<Src: ?Sized, Dst: ?Sized> { 61 /// Projects a pointer from `Src` to `Dst`. 72 /// `src`'s referent, and has the same provenance as `src`. 73 fn project(src: PtrInner<'_, Src>) -> *mut Dst; in project() 83 pub unsafe trait Cast<Src: ?Sized, Dst: ?Sized>: Project<Src, Dst> {} 90 pub unsafe trait CastExact<Src: ?Sized, Dst: ?Sized>: Cast<Src, Dst> {} 102 fn project(src: PtrInner<'_, T>) -> *mut T { in project() 103 src.as_ptr() in project() 119 /// guarantee that `Dst` is no larger than `Src`. Thus, `CastSized` has a 120 /// sound implementation of [`Project`] for all `Src` and `Dst` – the caller [all …]
|
| /linux/drivers/phy/ |
| H A D | phy-xgene.c | 86 #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 …]
|
| /linux/arch/x86/lib/ |
| H A D | memmove_32.S | 15 * n can remain in %ecx, but for `rep movsl`, we'll need dest in %edi and src 21 .set src, %esi define 42 movl src_in, src 50 cmpl dest, src 60 movl src, tmp0 70 movl 0*4(src), tmp0 71 movl 1*4(src), tmp1 74 movl 2*4(src), tmp0 75 movl 3*4(src), tmp1 78 leal 0x10(src), src [all …]
|
| /linux/rust/zerocopy/src/ |
| H A D | error.rs | 77 //! Our error types are `Send`, `Sync`, and `'static` when their `Src` parameter 164 impl<Src, Dst: ?Sized + Unaligned, S, V> From<ConvertError<AlignmentError<Src, Dst>, S, V>> 200 fn from(err: ConvertError<AlignmentError<Src, Dst>, S, V>) -> ConvertError<Infallible, S, V> { in from() argument 250 pub struct AlignmentError<Src, Dst: ?Sized> { 252 src: Src, field 260 impl<Src, Dst: ?Sized> AlignmentError<Src, Dst> { 265 pub(crate) unsafe fn new_unchecked(src: Src) -> Self { in new_unchecked() 268 Self { src, _dst: SendSyncPhantomData::default() } in new_unchecked() 273 pub fn into_src(self) -> Src { in into_src() argument 274 self.src in into_src() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_sock_fields.c | 65 const struct bpf_sock *src) 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/drivers/media/platform/allegro-dvt/ |
| H A D | allegro-mail.c | 255 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 …]
|
| /linux/arch/x86/crypto/ |
| H A D | aria-avx.h | 17 const u8 *src); 19 const u8 *src); 21 const u8 *src, 24 const u8 *src); 26 const u8 *src); 28 const u8 *src, 32 const u8 *src); 34 const u8 *src); 36 const u8 *src, 39 const u8 *src); [all …]
|
| H A D | serpent-sse2.h | 13 const u8 *src, bool xor); 15 const u8 *src); 17 static inline void serpent_enc_blk_xway(const void *ctx, u8 *dst, const u8 *src) in serpent_enc_blk_xway() argument 19 __serpent_enc_blk_4way(ctx, dst, src, false); in serpent_enc_blk_xway() 23 u8 *dst, const u8 *src) in serpent_enc_blk_xway_xor() argument 25 __serpent_enc_blk_4way(ctx, dst, src, true); in serpent_enc_blk_xway_xor() 28 static inline void serpent_dec_blk_xway(const void *ctx, u8 *dst, const u8 *src) in serpent_dec_blk_xway() argument 30 serpent_dec_blk_4way(ctx, dst, src); in serpent_dec_blk_xway() 38 const u8 *src, bool xor); 40 const u8 *src); [all …]
|
| H A D | glue_helper-asm-avx2.S | 8 #define load_16way(src, x0, x1, x2, x3, x4, x5, x6, x7) \ argument 9 vmovdqu (0*32)(src), x0; \ 10 vmovdqu (1*32)(src), x1; \ 11 vmovdqu (2*32)(src), x2; \ 12 vmovdqu (3*32)(src), x3; \ 13 vmovdqu (4*32)(src), x4; \ 14 vmovdqu (5*32)(src), x5; \ 15 vmovdqu (6*32)(src), x6; \ 16 vmovdqu (7*32)(src), x7; 28 #define store_cbc_16way(src, dst, x0, x1, x2, x3, x4, x5, x6, x7, t0) \ argument [all …]
|
| /linux/arch/parisc/lib/ |
| H A D | lusercopy.S | 90 src = arg1 define 118 xor src,dst,t0 131 20: ldb,ma 1(srcspc,src),t1 144 10: ldd 0(srcspc,src),t1 145 11: ldd 8(srcspc,src),t2 146 ldo 16(src),src 149 14: ldd 0(srcspc,src),t1 150 15: ldd 8(srcspc,src),t2 151 ldo 16(src),src 169 20: ldw,ma 4(srcspc,src),t1 [all …]
|
| /linux/arch/parisc/math-emu/ |
| H A D | sfsqrt.c | 44 register unsigned int src, result; in sgl_fsqrt() local 49 src = *srcptr; in sgl_fsqrt() 53 if ((src_exponent = Sgl_exponent(src)) == SGL_INFINITY_EXPONENT) { in sgl_fsqrt() 57 if (Sgl_isone_signaling(src)) { in sgl_fsqrt() 62 Sgl_set_quiet(src); in sgl_fsqrt() 68 if (Sgl_iszero_sign(src) || Sgl_isnotzero_mantissa(src)) { in sgl_fsqrt() 69 *dstptr = src; in sgl_fsqrt() 77 if (Sgl_iszero_exponentmantissa(src)) { in sgl_fsqrt() 78 *dstptr = src; in sgl_fsqrt() 85 if (Sgl_isone_sign(src)) { in sgl_fsqrt() [all …]
|
| /linux/tools/perf/tests/ |
| H A D | mem.c | 32 union perf_mem_data_src src; in test__mem() 34 memset(&src, 0, sizeof(src)); in test__mem() 36 src.mem_lvl = PERF_MEM_LVL_HIT; in test__mem() 37 src.mem_lvl_num = 4; in test__mem() 39 ret |= check(src, "N/AL4 hit"); in test__mem() 41 src.mem_remote = 1; in test__mem() 43 ret |= check(src, "N/ARemote L4 hit"); in test__mem() 45 src.mem_lvl = PERF_MEM_LVL_MISS; in test__mem() 46 src in test__mem() 29 union perf_mem_data_src src; test__mem() local [all...] |
| /linux/lib/crypto/x86/ |
| H A D | chacha.h | 14 u8 *dst, const u8 *src, 17 u8 *dst, const u8 *src, 23 u8 *dst, const u8 *src, 26 u8 *dst, const u8 *src, 29 u8 *dst, const u8 *src, 33 u8 *dst, const u8 *src, 36 u8 *dst, const u8 *src, 39 u8 *dst, const u8 *src, 52 static void chacha_dosimd(struct chacha_state *state, u8 *dst, const u8 *src, in chacha_dosimd() argument 57 chacha_8block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd() [all …]
|
| /linux/arch/nios2/lib/ |
| H A D | memmove.c | 15 unsigned long dst, src; in memmove() local 22 src = (unsigned long) s; in memmove() 24 if ((count < 8) || ((dst ^ src) & 3)) in memmove() 28 *(char *)dst++ = *(char *)src++; in memmove() 32 *(short *)dst = *(short *)src; in memmove() 33 src += 2; in memmove() 38 *(long *)dst = *(long *)src; in memmove() 39 src += 4; in memmove() 45 *(char *)dst++ = *(char *)src++; in memmove() 48 src = (unsigned long) s + count; in memmove() [all …]
|
| /linux/net/ceph/ |
| H A D | armor.c | 5 int ceph_armor(char *dst, const char *src, const char *end); 6 int ceph_unarmor(char *dst, const char *src, const char *end); 37 int ceph_armor(char *dst, const char *src, const char *end) in ceph_armor() argument 42 while (src < end) { in ceph_armor() 45 a = *src++; in ceph_armor() 47 if (src < end) { in ceph_armor() 48 b = *src++; in ceph_armor() 50 if (src < end) { in ceph_armor() 51 c = *src++; in ceph_armor() 75 int ceph_unarmor(char *dst, const char *src, const char *end) in ceph_unarmor() argument [all …]
|
| /linux/arch/mips/net/ |
| H A D | bpf_jit_comp32.c | 204 u8 src = MIPS_R_T6; in emit_alu_i64() local 223 emit_mov_i(ctx, src, imm); in emit_alu_i64() 228 emit(ctx, addu, lo(dst), lo(dst), src); in emit_alu_i64() 229 emit(ctx, sltu, MIPS_R_T9, lo(dst), src); in emit_alu_i64() 236 emit(ctx, sltu, MIPS_R_T9, lo(dst), src); in emit_alu_i64() 237 emit(ctx, subu, lo(dst), lo(dst), src); in emit_alu_i64() 244 emit(ctx, or, lo(dst), lo(dst), src); in emit_alu_i64() 250 emit(ctx, and, lo(dst), lo(dst), src); in emit_alu_i64() 256 emit(ctx, xor, lo(dst), lo(dst), src); in emit_alu_i64() 268 const u8 dst[], const u8 src[], u8 op) in emit_alu_r64() argument [all …]
|