/spdk/lib/util/ |
H A D | base64.c | 74 base64_encode(char *dst, const char *enc_table, const void *src, size_t src_len) in base64_encode() argument 78 if (!dst || !src || src_len <= 0) { in base64_encode() 84 base64_encode_sve(&dst, enc_table, &src, &src_len); in base64_encode() 86 base64_encode_neon64(&dst, enc_table, &src, &src_len); in base64_encode() 94 *dst++ = enc_table[(raw_u32 >> 26) & BASE64_ENC_BITMASK]; in base64_encode() 95 *dst++ = enc_table[(raw_u32 >> 20) & BASE64_ENC_BITMASK]; in base64_encode() 96 *dst++ = enc_table[(raw_u32 >> 14) & BASE64_ENC_BITMASK]; in base64_encode() 97 *dst++ = enc_table[(raw_u32 >> 8) & BASE64_ENC_BITMASK]; in base64_encode() 111 *dst++ = enc_table[(raw_u32 >> 26) & BASE64_ENC_BITMASK]; in base64_encode() 112 *dst++ = enc_table[(raw_u32 >> 20) & BASE64_ENC_BITMASK]; in base64_encode() [all …]
|
H A D | iov.c | 26 void **src, void **dst) in spdk_ioviter_first() argument 43 *dst = out[1]; in spdk_ioviter_first() 74 spdk_ioviter_next(struct spdk_ioviter *iter, void **src, void **dst) in spdk_ioviter_next() argument 83 *dst = out[1]; in spdk_ioviter_next() 136 void *src, *dst; in spdk_iovcpy() local 139 for (len = spdk_ioviter_first(&iter, siov, siovcnt, diov, diovcnt, &src, &dst); in spdk_iovcpy() 141 len = spdk_ioviter_next(&iter, &src, &dst)) { in spdk_iovcpy() 142 memcpy(dst, src, len); in spdk_iovcpy() 154 void *src, *dst; in spdk_iovmove() local 157 for (len = spdk_ioviter_first(&iter, siov, siovcnt, diov, diovcnt, &src, &dst); in spdk_iovmove() [all …]
|
H A D | cpuset.c | 30 spdk_cpuset_copy(struct spdk_cpuset *dst, const struct spdk_cpuset *src) in spdk_cpuset_copy() argument 32 assert(dst != NULL); in spdk_cpuset_copy() 34 memcpy(&dst->cpus, &src->cpus, sizeof(src->cpus)); in spdk_cpuset_copy() 48 spdk_cpuset_and(struct spdk_cpuset *dst, const struct spdk_cpuset *src) in spdk_cpuset_and() argument 51 assert(dst != NULL); in spdk_cpuset_and() 54 dst->cpus[i] &= src->cpus[i]; in spdk_cpuset_and() 59 spdk_cpuset_or(struct spdk_cpuset *dst, const struct spdk_cpuset *src) in spdk_cpuset_or() argument 62 assert(dst != NULL); in spdk_cpuset_or() 65 dst->cpus[i] |= src->cpus[i]; in spdk_cpuset_or() 70 spdk_cpuset_xor(struct spdk_cpuset *dst, const struct spdk_cpuset *src) in spdk_cpuset_xor() argument [all …]
|
H A D | base64_sve.c | 161 base64_encode_sve(char **dst, const char *enc_table, const void **src, size_t *src_len) in base64_encode_sve() argument 192 svst4_u8(pred, (uint8_t *)*dst, st_enc_output); in base64_encode_sve() 196 *dst += pred_count * 4; in base64_encode_sve() 218 svst4_u8(pred, (uint8_t *)*dst, st_enc_output); in base64_encode_sve() 222 *dst += pred_count * 4; in base64_encode_sve() 243 svst4_u8(pred, (uint8_t *)*dst, st_enc_output); in base64_encode_sve() 247 *dst += pred_count * 4; in base64_encode_sve() 256 base64_decode_sve(void **dst, const uint8_t *dec_table, const uint8_t **src, size_t *src_len) in base64_decode_sve() argument 308 svst3_u8(pred, (uint8_t *)*dst, st_dec_output); in base64_decode_sve() 312 *dst = (uint8_t *)*dst + pred_count * 3; in base64_decode_sve() [all …]
|
H A D | base64_neon.c | 96 base64_encode_neon64(char **dst, const char *enc_table, const void **src, size_t *src_len) in base64_encode_neon64() argument 126 vst4q_u8((uint8_t *)*dst, res); in base64_encode_neon64() 129 *dst += 64; /* 4 * 16 bytes of output */ in base64_encode_neon64() 135 base64_decode_neon64(void **dst, const uint8_t *dec_table_neon64, const uint8_t **src, in base64_decode_neon64() argument 196 vst3q_u8((uint8_t *)*dst, dec); in base64_decode_neon64() 199 *dst = (uint8_t *)*dst + 48; in base64_decode_neon64()
|
H A D | uuid.c | 50 spdk_uuid_copy(struct spdk_uuid *dst, const struct spdk_uuid *src) in spdk_uuid_copy() argument 52 uuid_copy((void *)dst, (void *)src); in spdk_uuid_copy() 127 spdk_uuid_copy(struct spdk_uuid *dst, const struct spdk_uuid *src) in spdk_uuid_copy() argument 129 memcpy(dst, src, sizeof(*dst)); in spdk_uuid_copy()
|
H A D | crc16.c | 23 spdk_crc16_t10dif_copy(uint16_t init_crc, uint8_t *dst, uint8_t *src, in spdk_crc16_t10dif_copy() argument 26 return (crc16_t10dif_copy(init_crc, dst, src, len)); in spdk_crc16_t10dif_copy() 634 spdk_crc16_t10dif_copy(uint16_t init_crc, uint8_t *dst, uint8_t *src, size_t len) in spdk_crc16_t10dif_copy() argument 636 memcpy(dst, src, len); in spdk_crc16_t10dif_copy()
|
H A D | string.c | 193 spdk_strcpy_pad(void *dst, const char *src, size_t size, int pad) in spdk_strcpy_pad() argument 199 memcpy(dst, src, len); in spdk_strcpy_pad() 200 memset((char *)dst + len, pad, size - len); in spdk_strcpy_pad() 202 memcpy(dst, src, size); in spdk_strcpy_pad() 553 spdk_strcpy_replace(char *dst, size_t size, const char *src, const char *search, in spdk_strcpy_replace() argument 560 if (dst == NULL || src == NULL || search == NULL || replace == NULL) { in spdk_strcpy_replace() 578 r = dst; in spdk_strcpy_replace()
|
H A D | dif.c | 116 _dif_sgl_append_split(struct _dif_sgl *dst, struct _dif_sgl *src, uint32_t data_len) in _dif_sgl_append_split() argument 125 if (!_dif_sgl_append(dst, buf, buf_len)) { in _dif_sgl_append_split() 319 _dif_generate_guard_copy(uint64_t guard_seed, void *dst, void *src, size_t buf_len, in _dif_generate_guard_copy() 325 guard = (uint64_t)spdk_crc16_t10dif_copy((uint16_t)guard_seed, dst, src, buf_len); in _dif_apptag_offset() 327 memcpy(dst, src, buf_len); 330 memcpy(dst, src, buf_len); in _dif_apptag_size() 343 uint8_t *src, *dst; in _dif_set_apptag() 347 _dif_sgl_get_buf(dst_sgl, &dst, &dst_len); in _dif_get_apptag() 351 guard = _dif_generate_guard_copy(guard, dst, src, buf_len, dif_pi_format); in _dif_get_apptag() 365 uint8_t *src, *dst; in _dif_apptag_ignore() 303 _dif_generate_guard_copy(uint64_t guard_seed,void * dst,void * src,size_t buf_len,enum spdk_dif_pi_format dif_pi_format) _dif_generate_guard_copy() argument 1088 uint8_t *src, *dst; dif_generate_copy() local 1120 uint8_t *src, *dst; _dif_generate_copy_split() local 1213 uint8_t *src, *dst; dif_verify_copy() local 1252 uint8_t *src, *dst; _dif_verify_copy_split() local [all...] |
/spdk/module/scheduler/dynamic/ |
H A D | scheduler_dynamic.c | 109 struct core_stats *dst = &g_cores[dst_core]; in _move_thread() 117 if (src == dst) { in _move_thread() 122 dst->busy += spdk_min(UINT64_MAX - dst->busy, busy_tsc); in _move_thread() 123 dst->idle -= spdk_min(dst->idle, busy_tsc); in _move_thread() 124 dst->thread_count++; in _move_thread() 183 struct core_stats *dst = &g_cores[dst_core]; in _can_core_fit_thread() 193 if (dst->busy + dst in _can_core_fit_thread() 104 struct core_stats *dst = &g_cores[dst_core]; _move_thread() local 178 struct core_stats *dst = &g_cores[dst_core]; _can_core_fit_thread() local [all...] |
/spdk/lib/conf/ |
H A D | conf.c | 536 char *dst, *dst2, *p; in fgets_line() local 539 dst = p = malloc(LIB_MAX_TMPBUF); in fgets_line() 540 if (!dst) { in fgets_line() 544 dst[0] = '\0'; in fgets_line() 550 if (len + 1 < LIB_MAX_TMPBUF || dst[total - 1] == '\n') { in fgets_line() 551 dst2 = realloc(dst, total + 1); in fgets_line() 553 free(dst); in fgets_line() 560 dst2 = realloc(dst, total + LIB_MAX_TMPBUF); in fgets_line() 562 free(dst); in fgets_line() 565 dst = dst2; in fgets_line() [all …]
|
/spdk/include/spdk/ |
H A D | base64.h | 64 int spdk_base64_encode(char *dst, const void *src, size_t src_len); 78 int spdk_base64_urlsafe_encode(char *dst, const void *src, size_t src_len); 94 int spdk_base64_decode(void *dst, size_t *dst_len, const char *src); 110 int spdk_base64_urlsafe_decode(void *dst, size_t *dst_len, const char *src);
|
H A D | cpuset.h | 60 void spdk_cpuset_copy(struct spdk_cpuset *dst, const struct spdk_cpuset *src); 68 void spdk_cpuset_and(struct spdk_cpuset *dst, const struct spdk_cpuset *src); 76 void spdk_cpuset_or(struct spdk_cpuset *dst, const struct spdk_cpuset *src); 84 void spdk_cpuset_xor(struct spdk_cpuset *dst, const struct spdk_cpuset *src);
|
H A D | ioat.h | 110 void *dst, const void *src, uint64_t nbytes); 131 void *dst, const void *src, uint64_t nbytes); 152 void *dst, uint64_t fill_pattern, uint64_t nbytes); 173 void *dst, uint64_t fill_pattern, uint64_t nbytes);
|
H A D | histogram_data.h | 183 spdk_histogram_data_merge(const struct spdk_histogram_data *dst, in spdk_histogram_data_merge() argument 192 if (dst->bucket_shift != src->bucket_shift) { in spdk_histogram_data_merge() 196 for (i = 0; i < SPDK_HISTOGRAM_NUM_BUCKETS(dst); i++) { in spdk_histogram_data_merge() 197 dst->bucket[i] += src->bucket[i]; in spdk_histogram_data_merge()
|
H A D | string.h | 159 void spdk_strcpy_pad(void *dst, const char *src, size_t size, int pad); 285 int spdk_strcpy_replace(char *dst, size_t size, const char *src, const char *search,
|
/spdk/lib/ftl/utils/ |
H A D | ftl_conf.c | 55 spdk_ftl_conf_copy(struct spdk_ftl_conf *dst, const struct spdk_ftl_conf *src) in spdk_ftl_conf_copy() argument 91 memcpy(dst, src, src->conf_size); in spdk_ftl_conf_copy() 93 dst->name = name; in spdk_ftl_conf_copy() 94 dst->core_mask = core_mask; in spdk_ftl_conf_copy() 95 dst->base_bdev = base_bdev; in spdk_ftl_conf_copy() 96 dst->cache_bdev = cache_bdev; in spdk_ftl_conf_copy()
|
/spdk/test/external_code/accel/ |
H A D | module.c | 23 void *src, *dst; in ex_accel_copy_iovs() local 27 dst_iovs, dst_iovcnt, &src, &dst); in ex_accel_copy_iovs() 29 len = spdk_ioviter_next(&iter, &src, &dst)) { in ex_accel_copy_iovs() 30 memcpy(dst, src, len); in ex_accel_copy_iovs() 54 void *dst; in ex_accel_fill() local 62 dst = iovs[0].iov_base; in ex_accel_fill() 65 memset(dst, fill, nbytes); in ex_accel_fill()
|
H A D | driver.c | 15 void *dst; in ex_accel_fill() local 23 dst = iovs[0].iov_base; in ex_accel_fill() 26 memset(dst, fill, nbytes); in ex_accel_fill()
|
/spdk/lib/iscsi/ |
H A D | iscsi_subsystem.c | 357 struct spdk_iscsi_opts *dst; in iscsi_opts_copy() local 359 dst = calloc(1, sizeof(*dst)); in iscsi_opts_copy() 360 if (!dst) { in iscsi_opts_copy() 366 dst->authfile = strdup(src->authfile); in iscsi_opts_copy() 367 if (!dst->authfile) { in iscsi_opts_copy() 368 free(dst); in iscsi_opts_copy() 375 dst->nodebase = strdup(src->nodebase); in iscsi_opts_copy() 376 if (!dst->nodebase) { in iscsi_opts_copy() 377 free(dst in iscsi_opts_copy() [all...] |
/spdk/module/bdev/ocf/ |
H A D | ctx.c | 106 vbdev_ocf_ctx_data_rd(void *dst, ctx_data_t *src, uint32_t size) in vbdev_ocf_ctx_data_rd() argument 111 size_local = iovec_flatten(s->iovs, s->iovcnt, dst, size, s->seek); in vbdev_ocf_ctx_data_rd() 147 vbdev_ocf_ctx_data_wr(ctx_data_t *dst, const void *src, uint32_t size) in vbdev_ocf_ctx_data_wr() argument 149 struct bdev_ocf_data *d = dst; in vbdev_ocf_ctx_data_wr() 187 vbdev_ocf_ctx_data_zero(ctx_data_t *dst, uint32_t size) in vbdev_ocf_ctx_data_zero() argument 189 struct bdev_ocf_data *d = dst; in vbdev_ocf_ctx_data_zero() 199 vbdev_ocf_ctx_data_seek(ctx_data_t *dst, ctx_data_seek_t seek, uint32_t offset) in vbdev_ocf_ctx_data_seek() argument 201 struct bdev_ocf_data *d = dst; in vbdev_ocf_ctx_data_seek() 219 vbdev_ocf_ctx_data_cpy(ctx_data_t *dst, ctx_data_t *src, uint64_t to, in vbdev_ocf_ctx_data_cpy() argument 223 struct bdev_ocf_data *d = dst; in vbdev_ocf_ctx_data_cpy() [all...] |
/spdk/lib/ioat/ |
H A D | ioat.c | 173 ioat_prep_copy(struct spdk_ioat_chan *ioat, uint64_t dst, in ioat_prep_copy() argument 192 hw_desc->dma.dest_addr = dst; in ioat_prep_copy() 203 ioat_prep_fill(struct spdk_ioat_chan *ioat, uint64_t dst, in ioat_prep_fill() argument 222 hw_desc->fill.dest_addr = dst; in ioat_prep_fill() 576 void *dst, const void *src, uint64_t nbytes) in spdk_ioat_build_copy() argument 590 vdst = (uint64_t)dst; in spdk_ioat_build_copy() 642 void *dst, const void *src, uint64_t nbytes) in spdk_ioat_submit_copy() argument 646 rc = spdk_ioat_build_copy(ioat, cb_arg, cb_fn, dst, src, nbytes); in spdk_ioat_submit_copy() 657 void *dst, uint64_t fill_pattern, uint64_t nbytes) in spdk_ioat_build_fill() argument 676 vdst = (uint64_t)dst; in spdk_ioat_build_fill() 715 spdk_ioat_submit_fill(struct spdk_ioat_chan * ioat,void * cb_arg,spdk_ioat_req_cb cb_fn,void * dst,uint64_t fill_pattern,uint64_t nbytes) spdk_ioat_submit_fill() argument [all...] |
/spdk/lib/idxd/ |
H A D | idxd_internal.h | 22 static inline void movdir64b(void *dst, const void *src) in movdir64b() argument 25 : "=m"(*(char *)dst) in movdir64b() 26 : "d"(src), "a"(dst)); in movdir64b()
|
H A D | idxd.c | 88 void *dst; member 99 const void *src, void *dst, uint64_t len) in idxd_vtophys_iter_init() argument 102 iter->dst = dst; in idxd_vtophys_iter_init() 114 void *dst; in idxd_vtophys_iter_next() local 117 dst = iter->dst + iter->offset; in idxd_vtophys_iter_next() 125 *dst_phys = (uint64_t)dst; in idxd_vtophys_iter_next() 139 *dst_phys = spdk_vtophys(dst, &dst_off); in idxd_vtophys_iter_next() 653 void *src, *dst; in spdk_idxd_submit_copy() local 906 void *dst; spdk_idxd_submit_fill() local 1077 void *src, *dst; spdk_idxd_submit_copy_crc32c() local 1163 _idxd_submit_compress_single(struct spdk_idxd_io_channel * chan,void * dst,const void * src,uint64_t nbytes_dst,uint64_t nbytes_src,uint32_t * output_size,int flags,spdk_idxd_req_cb cb_fn,void * cb_arg) _idxd_submit_compress_single() argument 1209 spdk_idxd_submit_compress(struct spdk_idxd_io_channel * chan,void * dst,uint64_t nbytes,struct iovec * siov,uint32_t siovcnt,uint32_t * output_size,int flags,spdk_idxd_req_cb cb_fn,void * cb_arg) spdk_idxd_submit_compress() argument 1232 _idxd_submit_decompress_single(struct spdk_idxd_io_channel * chan,void * dst,const void * src,uint64_t nbytes_dst,uint64_t nbytes,int flags,spdk_idxd_req_cb cb_fn,void * cb_arg) _idxd_submit_decompress_single() argument [all...] |
/spdk/lib/scsi/ |
H A D | task.c | 229 spdk_scsi_task_copy_status(struct spdk_scsi_task *dst, in spdk_scsi_task_copy_status() argument 232 memcpy(dst->sense_data, src->sense_data, src->sense_data_len); in spdk_scsi_task_copy_status() 233 dst->sense_data_len = src->sense_data_len; in spdk_scsi_task_copy_status() 234 dst->status = src->status; in spdk_scsi_task_copy_status()
|