/third_party/libbpf/src/ |
H A D | relo_core.h | 97 int bpf_core_format_spec(char *buf, size_t buf_sz, const struct bpf_core_spec *spec);
|
H A D | relo_core.c | 1156 int bpf_core_format_spec(char *buf, size_t buf_sz, const struct bpf_core_spec *spec) in bpf_core_format_spec() argument 1166 r = snprintf(buf, buf_sz, fmt, ##args); \ in bpf_core_format_spec() 1168 if (r >= buf_sz) \ in bpf_core_format_spec() 1169 r = buf_sz; \ in bpf_core_format_spec() 1171 buf_sz -= r; \ in bpf_core_format_spec()
|
H A D | libbpf.c | 2261 static int pathname_concat(char *buf, size_t buf_sz, const char *path, const char *name) argument 2265 len = snprintf(buf, buf_sz, "%s/%s", path, name); 2268 if (len >= buf_sz) 7326 static void fixup_verifier_log(struct bpf_program *prog, char *buf, size_t buf_sz); 7510 static void patch_log(char *buf, size_t buf_sz, size_t log_sz, argument 7527 * buf_sz capacity. If that's the case, we'll truncate the end 7531 if (orig + patch_sz >= buf + buf_sz) { 7533 patch_sz -= (orig + patch_sz) - (buf + buf_sz) + 1; 7535 } else if (patch_sz - orig_sz > buf_sz - log_sz) { 7537 rem_sz -= (patch_sz - orig_sz) - (buf_sz 7547 fixup_log_failed_core_relo(struct bpf_program *prog, char *buf, size_t buf_sz, size_t log_sz, char *line1, char *line2, char *line3) global() argument 7586 fixup_log_missing_map_load(struct bpf_program *prog, char *buf, size_t buf_sz, size_t log_sz, char *line1, char *line2, char *line3) global() argument 7619 fixup_log_missing_kfunc_call(struct bpf_program *prog, char *buf, size_t buf_sz, size_t log_sz, char *line1, char *line2, char *line3) global() argument 7652 fixup_verifier_log(struct bpf_program *prog, char *buf, size_t buf_sz) global() argument 10818 gen_kprobe_legacy_event_name(char *buf, size_t buf_sz, const char *kfunc_name, size_t offset) global() argument 11484 gen_uprobe_legacy_event_name(char *buf, size_t buf_sz, const char *binary_path, uint64_t offset) global() argument [all...] |
H A D | btf.c | 1425 __u32 buf_sz = 0, raw_size; local 1457 buf_sz = max((__u32)BPF_LOG_BUF_SIZE, buf_sz * 2); 1458 tmp = realloc(buf, buf_sz); 1468 opts.log_size = log_buf ? log_sz : buf_sz; 1480 * make sure we can never overflow buf_sz 1482 if (!log_buf && errno == ENOSPC && buf_sz <= UINT_MAX / 2)
|
/third_party/backends/backend/ |
H A D | snapscan.h | 374 size_t buf_sz; /* effective buffer size */ member
|
H A D | snapscan-scsi.c | 542 pss->buf_sz = (pss->phys_buf_sz/pss->bytes_per_line)*pss->bytes_per_line; in inquiry() 544 pss->buf_sz = 0; in inquiry() 597 (u_long) pss->buf_sz, in inquiry() 598 (u_long) (pss->lines ? pss->buf_sz / pss->lines : 0)); in inquiry()
|
H A D | snapscan.c | 1612 (pss->buf_sz%128) ? (pss->buf_sz/128 + 1)*128 : pss->buf_sz; in measure_transfer_rate()
|
/third_party/node/deps/openssl/openssl/crypto/evp/ |
H A D | p_lib.c | 2153 size_t buf_sz = 0; in EVP_PKEY_get_bn_param() local 2165 buf_sz = params[0].return_size; in EVP_PKEY_get_bn_param() 2170 buf = OPENSSL_zalloc(buf_sz); in EVP_PKEY_get_bn_param() 2174 params[0].data_size = buf_sz; in EVP_PKEY_get_bn_param() 2186 OPENSSL_clear_free(buf, buf_sz); in EVP_PKEY_get_bn_param()
|
/third_party/openssl/crypto/evp/ |
H A D | p_lib.c | 2150 size_t buf_sz = 0; in EVP_PKEY_get_bn_param() local 2162 buf_sz = params[0].return_size; in EVP_PKEY_get_bn_param() 2167 buf = OPENSSL_zalloc(buf_sz); in EVP_PKEY_get_bn_param() 2171 params[0].data_size = buf_sz; in EVP_PKEY_get_bn_param() 2183 OPENSSL_clear_free(buf, buf_sz); in EVP_PKEY_get_bn_param()
|
/third_party/libuv/src/win/ |
H A D | fs.c | 291 size_t buf_sz = 0; in fs__capture_path() local 303 buf_sz += pathw_len * sizeof(WCHAR); in fs__capture_path() 308 buf_sz += path_len; in fs__capture_path() 315 buf_sz += new_pathw_len * sizeof(WCHAR); in fs__capture_path() 319 if (buf_sz == 0) { in fs__capture_path() 326 buf = uv__malloc(buf_sz); in fs__capture_path() 352 assert(path_len == buf_sz - (pos - buf) * sizeof(WCHAR)); in fs__capture_path()
|
/third_party/node/deps/uv/src/win/ |
H A D | fs.c | 149 ssize_t buf_sz = 0, path_len = 0, pathw_len = 0, new_pathw_len = 0; in fs__capture_path() local 165 buf_sz += pathw_len * sizeof(WCHAR); in fs__capture_path() 170 buf_sz += path_len; in fs__capture_path() 184 buf_sz += new_pathw_len * sizeof(WCHAR); in fs__capture_path() 188 if (buf_sz == 0) { in fs__capture_path() 195 buf = (char*) uv__malloc(buf_sz); in fs__capture_path() 233 assert(path_len == buf_sz - (pos - buf)); in fs__capture_path()
|
/third_party/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
H A D | scsimain.c | 2208 int res, t, buf_sz, dio_tmp; in do_scsi_device_read_write() local 2491 if (ioctl(infd, SG_GET_RESERVED_SIZE, &buf_sz) < in do_scsi_device_read_write() 2496 blocks_per = (buf_sz + bs - 1) / bs; in do_scsi_device_read_write() 2547 if (ioctl(outfd, SG_GET_RESERVED_SIZE, &buf_sz) in do_scsi_device_read_write() 2552 blocks_per = (buf_sz + bs - 1) / bs; in do_scsi_device_read_write()
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
H A D | crocus_state.c | 968 const unsigned buf_sz = sz * 16 * sizeof(float); in gen4_upload_curbe() local 974 u_upload_alloc(ice->ctx.const_uploader, 0, buf_sz, 64, in gen4_upload_curbe()
|