Home
last modified time | relevance | path

Searched refs:src_cnt (Results 1 – 14 of 14) sorted by relevance

/drivers/dma/ioat/
Dprep.c153 dma_addr_t dest, dma_addr_t *src, unsigned int src_cnt, in __ioat_prep_xor_lock() argument
168 BUG_ON(src_cnt < 2); in __ioat_prep_xor_lock()
174 if (src_cnt > 5) { in __ioat_prep_xor_lock()
209 for (s = 0; s < src_cnt; s++) in __ioat_prep_xor_lock()
215 xor->ctl_f.src_cnt = src_cnt_to_hw(src_cnt); in __ioat_prep_xor_lock()
246 unsigned int src_cnt, size_t len, unsigned long flags) in ioat_prep_xor() argument
253 return __ioat_prep_xor_lock(chan, NULL, dest, src, src_cnt, len, flags); in ioat_prep_xor()
258 unsigned int src_cnt, size_t len, in ioat_prep_xor_val() argument
272 src_cnt - 1, len, flags); in ioat_prep_xor_val()
283 int src_cnt = src_cnt_to_sw(pq->ctl_f.src_cnt); in dump_pq_desc_dbg() local
[all …]
Ddma.h364 unsigned int src_cnt, size_t len, unsigned long flags);
367 unsigned int src_cnt, size_t len,
371 unsigned int src_cnt, const unsigned char *scf, size_t len,
375 unsigned int src_cnt, const unsigned char *scf, size_t len,
379 unsigned int src_cnt, size_t len, unsigned long flags);
382 unsigned int src_cnt, size_t len,
Dhw.h115 unsigned int src_cnt:3; member
162 unsigned int src_cnt:3; member
211 unsigned int src_cnt:3; member
Ddma.c492 if (src_cnt_to_sw(xor->ctl_f.src_cnt) > 5) in desc_has_ext()
498 if (src_cnt_to_sw(pq->ctl_f.src_cnt) > 3) in desc_has_ext()
/drivers/dma/ppc4xx/
Dadma.c115 int src_cnt, u32 addr);
181 unsigned int src_cnt) in prep_dma_xor_dbg() argument
186 for (i = 0; i < src_cnt; i++) in prep_dma_xor_dbg()
192 unsigned int src_cnt) in prep_dma_pq_dbg() argument
197 for (i = 0; i < src_cnt; i++) in prep_dma_pq_dbg()
205 unsigned int src_cnt, in prep_dma_pqzero_sum_dbg() argument
212 for (i = 0; i < src_cnt; i++) in prep_dma_pqzero_sum_dbg()
215 for (i = 0; i < src_cnt; i++) in prep_dma_pqzero_sum_dbg()
221 pr_debug("\t0x%016llx ", src[src_cnt + i]); in prep_dma_pqzero_sum_dbg()
264 desc->src_cnt = 0; in ppc440spe_desc_init_null_xor()
[all …]
Dadma.h159 u8 src_cnt; member
/drivers/dma/
Diop-adma.h174 iop_chan_pq_slot_count(size_t len, int src_cnt, int *slots_per_op) in iop_chan_pq_slot_count() argument
181 iop_desc_init_pq(struct iop_adma_desc_slot *desc, int src_cnt, in iop_desc_init_pq() argument
201 iop_chan_pq_zero_sum_slot_count(size_t len, int src_cnt, int *slots_per_op) in iop_chan_pq_zero_sum_slot_count() argument
208 iop_desc_init_pq_zero_sum(struct iop_adma_desc_slot *desc, int src_cnt, in iop_desc_init_pq_zero_sum() argument
305 static inline int iop3xx_aau_xor_slot_count(size_t len, int src_cnt, in iop3xx_aau_xor_slot_count() argument
318 *slots_per_op = slot_count_table[src_cnt - 1]; in iop3xx_aau_xor_slot_count()
337 static inline int iop_chan_xor_slot_count(size_t len, int src_cnt, in iop_chan_xor_slot_count() argument
340 int slot_cnt = iop3xx_aau_xor_slot_count(len, src_cnt, slots_per_op); in iop_chan_xor_slot_count()
359 static inline int iop_chan_zero_sum_slot_count(size_t len, int src_cnt, in iop_chan_zero_sum_slot_count() argument
362 int slot_cnt = iop3xx_aau_xor_slot_count(len, src_cnt, slots_per_op); in iop_chan_zero_sum_slot_count()
[all …]
Diop-adma.c538 dma_addr_t *dma_src, unsigned int src_cnt, size_t len, in iop_adma_prep_dma_xor() argument
551 __func__, src_cnt, len, flags); in iop_adma_prep_dma_xor()
554 slot_cnt = iop_chan_xor_slot_count(len, src_cnt, &slots_per_op); in iop_adma_prep_dma_xor()
558 iop_desc_init_xor(grp_start, src_cnt, flags); in iop_adma_prep_dma_xor()
562 while (src_cnt--) in iop_adma_prep_dma_xor()
563 iop_desc_set_xor_src_addr(grp_start, src_cnt, in iop_adma_prep_dma_xor()
564 dma_src[src_cnt]); in iop_adma_prep_dma_xor()
573 unsigned int src_cnt, size_t len, u32 *result, in iop_adma_prep_dma_xor_val() argument
584 __func__, src_cnt, len); in iop_adma_prep_dma_xor_val()
587 slot_cnt = iop_chan_zero_sum_slot_count(len, src_cnt, &slots_per_op); in iop_adma_prep_dma_xor_val()
[all …]
Dfsl_raid.c318 unsigned int src_cnt, const unsigned char *scf, size_t len, in fsl_re_prep_dma_genq() argument
327 unsigned int save_src_cnt = src_cnt; in fsl_re_prep_dma_genq()
343 src_cnt += 1; in fsl_re_prep_dma_genq()
348 cdb |= (src_cnt - 1) << FSL_RE_CDB_NRCS_SHIFT; in fsl_re_prep_dma_genq()
363 for (i = 0; i < src_cnt; i++) in fsl_re_prep_dma_genq()
393 unsigned int src_cnt, size_t len, unsigned long flags) in fsl_re_prep_dma_xor() argument
396 return fsl_re_prep_dma_genq(chan, dest, src, src_cnt, NULL, len, flags); in fsl_re_prep_dma_xor()
405 unsigned int src_cnt, const unsigned char *scf, size_t len, in fsl_re_prep_dma_pq() argument
415 unsigned int save_src_cnt = src_cnt; in fsl_re_prep_dma_pq()
429 if (src_cnt == 1) { in fsl_re_prep_dma_pq()
[all …]
Dbcm-sba-raid.c772 dma_addr_t dst, dma_addr_t *src, u32 src_cnt) in sba_fillup_xor_msg() argument
798 for (i = 1; i < src_cnt; i++) { in sba_fillup_xor_msg()
852 u32 src_cnt, size_t len, unsigned long flags) in sba_prep_dma_xor_req() argument
865 off, len, dst, src, src_cnt); in sba_prep_dma_xor_req()
876 u32 src_cnt, size_t len, unsigned long flags) in sba_prep_dma_xor() argument
884 if (unlikely(src_cnt > sba->max_xor_srcs)) in sba_prep_dma_xor()
891 req = sba_prep_dma_xor_req(sba, off, dst, src, src_cnt, in sba_prep_dma_xor()
917 const u8 *scf, dma_addr_t *src, u32 src_cnt) in sba_fillup_pq_msg() argument
978 for (i = 0; i < src_cnt; i++) { in sba_fillup_pq_msg()
1063 u32 src_cnt, const u8 *scf, size_t len, unsigned long flags) in sba_prep_dma_pq_req() argument
[all …]
Dmv_xor_v2.c428 unsigned int src_cnt, size_t len, unsigned long flags) in mv_xor_v2_prep_dma_xor() argument
436 if (src_cnt > MV_XOR_V2_CMD_LINE_NUM_MAX_D_BUF || src_cnt < 1) in mv_xor_v2_prep_dma_xor()
441 __func__, src_cnt, len, &dest, flags); in mv_xor_v2_prep_dma_xor()
464 for (i = 0; i < src_cnt; i++) in mv_xor_v2_prep_dma_xor()
468 src_cnt << DESC_NUM_ACTIVE_D_BUF_SHIFT; in mv_xor_v2_prep_dma_xor()
Dxgene-dma.c356 static u8 xgene_dma_encode_xor_flyby(u32 src_cnt) in xgene_dma_encode_xor_flyby() argument
367 return flyby_type[src_cnt]; in xgene_dma_encode_xor_flyby()
414 u32 src_cnt, size_t *nbytes, in xgene_dma_prep_xor_desc() argument
435 desc1->m2 |= cpu_to_le64(xgene_dma_encode_xor_flyby(src_cnt)); in xgene_dma_prep_xor_desc()
438 for (i = 0; i < src_cnt; i++) { in xgene_dma_prep_xor_desc()
837 u32 src_cnt, size_t len, unsigned long flags) in xgene_dma_prep_xor() argument
857 src_cnt, &len, multi); in xgene_dma_prep_xor()
885 u32 src_cnt, const u8 *scf, size_t len, unsigned long flags) in xgene_dma_prep_pq() argument
903 memcpy(_src, src, sizeof(*src) * src_cnt); in xgene_dma_prep_pq()
932 src_cnt, &len, multi); in xgene_dma_prep_pq()
[all …]
Dmv_xor.c556 unsigned int src_cnt, size_t len, unsigned long flags) in mv_xor_prep_dma_xor() argument
569 __func__, src_cnt, len, &dest, flags); in mv_xor_prep_dma_xor()
583 while (src_cnt--) { in mv_xor_prep_dma_xor()
585 ret = mv_xor_add_io_win(mv_chan, src[src_cnt]); in mv_xor_prep_dma_xor()
588 mv_desc_set_src_addr(sw_desc, src_cnt, src[src_cnt]); in mv_xor_prep_dma_xor()
/drivers/crypto/
Dhifn_795x.c549 volatile __le16 src_cnt; /* 15:0 of source count */ member