/linux/drivers/crypto/ |
H A D | omap-crypto.c | 16 static int omap_crypto_copy_sg_lists(int total, int bs, in omap_crypto_copy_sg_lists() argument 33 while (*sg && total) { in omap_crypto_copy_sg_lists() 36 if (total < len) in omap_crypto_copy_sg_lists() 37 len = total; in omap_crypto_copy_sg_lists() 40 total -= len; in omap_crypto_copy_sg_lists() 42 if (total <= 0) in omap_crypto_copy_sg_lists() 55 static int omap_crypto_copy_sgs(int total, int bs, struct scatterlist **sg, in omap_crypto_copy_sgs() argument 62 new_len = ALIGN(total, bs); in omap_crypto_copy_sgs() 73 scatterwalk_map_and_copy(buf, *sg, 0, total, 0); in omap_crypto_copy_sgs() 75 memset(buf + total, 0, new_len - total); in omap_crypto_copy_sgs() [all …]
|
/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | htab_map_batch_ops.c | 79 __u32 batch, count, total, total_success; in __test_map_lookup_and_delete_batch() local 145 total = 0; in __test_map_lookup_and_delete_batch() 153 total ? &batch : NULL, in __test_map_lookup_and_delete_batch() 154 &batch, keys + total, in __test_map_lookup_and_delete_batch() 156 total * value_size, in __test_map_lookup_and_delete_batch() 171 total += count; in __test_map_lookup_and_delete_batch() 179 CHECK(total != max_entries, "lookup with steps", in __test_map_lookup_and_delete_batch() 180 "total = %u, max_entries = %u\n", total, max_entries); in __test_map_lookup_and_delete_batch() 183 total = 0; in __test_map_lookup_and_delete_batch() 185 while (total < max_entries) { in __test_map_lookup_and_delete_batch() [all …]
|
H A D | lpm_trie_map_batch_ops.c | 71 __u32 step, count, total, total_success; in test_lpm_trie_map_batch_ops() local 99 total = 0; in test_lpm_trie_map_batch_ops() 106 total ? &batch : NULL, &batch, in test_lpm_trie_map_batch_ops() 107 keys + total, values + total, &count, &opts); in test_lpm_trie_map_batch_ops() 112 total += count; in test_lpm_trie_map_batch_ops() 117 CHECK(total != max_entries, "lookup with steps", in test_lpm_trie_map_batch_ops() 118 "total = %u, max_entries = %u\n", total, max_entries); in test_lpm_trie_map_batch_ops() 122 total = 0; in test_lpm_trie_map_batch_ops() 124 while (total < max_entries) { in test_lpm_trie_map_batch_ops() 125 if (max_entries - total < step) in test_lpm_trie_map_batch_ops() [all …]
|
H A D | array_map_batch_ops.c | 73 __u32 count, total, total_success; in __test_map_lookup_and_update_batch() local 106 total = 0; in __test_map_lookup_and_update_batch() 113 total ? &batch : NULL, in __test_map_lookup_and_update_batch() 114 &batch, keys + total, in __test_map_lookup_and_update_batch() 115 values + total * value_size, in __test_map_lookup_and_update_batch() 121 total += count; in __test_map_lookup_and_update_batch() 127 CHECK(total != max_entries, "lookup with steps", in __test_map_lookup_and_update_batch() 128 "total = %u, max_entries = %u\n", total, max_entries); in __test_map_lookup_and_update_batch()
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_guc_id_mgr.c | 44 unsigned int weight = bitmap_weight(idm->bitmap, idm->total); in __fini_idm() 50 weight, idm->total); in __fini_idm() 57 idm->total = 0; in __fini_idm() 81 idm_assert(idm, !idm->total); in xe_guc_id_mgr_init() 94 idm->total = limit; in xe_guc_id_mgr_init() 101 idm->total, str_plural(idm->total)); in xe_guc_id_mgr_init() 106 unsigned int total, in find_last_zero_area() argument 109 unsigned int found = total; in find_last_zero_area() 112 for_each_clear_bitrange(rs, re, bitmap, total) { in find_last_zero_area() 129 if (!idm->total) in idm_reserve_chunk_locked() [all …]
|
/linux/drivers/gpu/drm/xe/tests/ |
H A D | xe_guc_id_mgr_test.c | 48 KUNIT_EXPECT_EQ(test, idm->total, GUC_ID_MAX); in init_fini() 51 KUNIT_EXPECT_EQ(test, idm->total, 0); in init_fini() 63 for (n = 0; n < idm->total; n++) { in check_used() 69 KUNIT_EXPECT_EQ(test, idm->used, idm->total); in check_used() 85 for (n = 0; n < idm->total - 1; n++) { in check_quota() 87 KUNIT_EXPECT_EQ(test, idm_reserve_chunk_locked(idm, 1, idm->total), -EDQUOT); in check_quota() 88 KUNIT_EXPECT_EQ(test, idm_reserve_chunk_locked(idm, 1, idm->total - n), -EDQUOT); in check_quota() 89 KUNIT_EXPECT_EQ(test, idm_reserve_chunk_locked(idm, idm->total - n, 1), -EDQUOT); in check_quota() 93 KUNIT_EXPECT_EQ(test, idm->used, idm->total); in check_quota() 94 idm_release_chunk_locked(idm, 0, idm->total); in check_quota() [all …]
|
/linux/tools/perf/util/ |
H A D | branch.c | 114 u64 total = 0; in branch_type_stat_display() local 118 total += st->counts[i]; in branch_type_stat_display() 120 if (total == 0) in branch_type_stat_display() 130 100.0 * (double)st->cond_fwd / (double)total); in branch_type_stat_display() 136 100.0 * (double)st->cond_bwd / (double)total); in branch_type_stat_display() 142 100.0 * (double)st->cross_4k / (double)total); in branch_type_stat_display() 148 100.0 * (double)st->cross_2m / (double)total); in branch_type_stat_display() 156 (double)st->counts[i] / (double)total); in branch_type_stat_display() 164 (double)st->new_counts[i] / (double)total); in branch_type_stat_display() 177 u64 total = 0; in branch_type_str() local [all …]
|
/linux/net/netfilter/ |
H A D | nft_counter.c | 110 struct nft_counter_tot *total) in nft_counter_reset() argument 120 u64_stats_add(&this_cpu->packets, -total->packets); in nft_counter_reset() 121 u64_stats_add(&this_cpu->bytes, -total->bytes); in nft_counter_reset() 128 struct nft_counter_tot *total) in nft_counter_fetch() argument 135 memset(total, 0, sizeof(*total)); in nft_counter_fetch() 146 total->bytes += bytes; in nft_counter_fetch() 147 total->packets += packets; in nft_counter_fetch() 155 struct nft_counter_tot total; in nft_counter_do_dump() local 157 nft_counter_fetch(priv, &total); in nft_counter_do_dump() 159 if (nla_put_be64(skb, NFTA_COUNTER_BYTES, cpu_to_be64(total.bytes), in nft_counter_do_dump() [all …]
|
/linux/Documentation/translations/zh_CN/accounting/ |
H A D | delay-accounting.rst | 92 CPU count real total virtual total delay total delay average 94 IO count delay total delay average 96 SWAP count delay total delay average 98 RECLAIM count delay total delay average 100 THRASHING count delay total delay average 102 COMPACT count delay total delay average 104 WPCOPY count delay total delay average
|
/linux/drivers/input/rmi4/ |
H A D | rmi_f55.c | 63 int i, total; in rmi_f55_detect() local 77 total = 0; in rmi_f55_detect() 80 total++; in rmi_f55_detect() 82 f55->cfg_num_rx_electrodes = total; in rmi_f55_detect() 83 drv_data->num_rx_electrodes = total; in rmi_f55_detect() 90 total = 0; in rmi_f55_detect() 93 total++; in rmi_f55_detect() 95 f55->cfg_num_tx_electrodes = total; in rmi_f55_detect() 96 drv_data->num_tx_electrodes = total; in rmi_f55_detect()
|
/linux/tools/perf/ui/ |
H A D | progress.h | 11 u64 curr, next, step, total; member 15 void __ui_progress__init(struct ui_progress *p, u64 total, 18 #define ui_progress__init(p, total, title) \ argument 19 __ui_progress__init(p, total, title, false) 21 #define ui_progress__init_size(p, total, title) \ argument 22 __ui_progress__init(p, total, title, true)
|
/linux/drivers/media/platform/mediatek/vcodec/common/ |
H A D | mtk_vcodec_dbgfs.c | 15 int *used, int total) in mtk_vdec_dbgfs_get_format_type() argument 21 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 25 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 29 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 33 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 41 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 45 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 49 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 56 static void mtk_vdec_dbgfs_get_help(char *buf, int *used, int total) in mtk_vdec_dbgfs_get_help() argument 60 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_help() [all …]
|
/linux/drivers/md/bcache/ |
H A D | stats.c | 97 int ret = kobject_add(&acc->total.kobj, parent, in bch_cache_accounting_add_kobjs() 110 acc->total.cache_hits = 0; in bch_cache_accounting_clear() 111 acc->total.cache_misses = 0; in bch_cache_accounting_clear() 112 acc->total.cache_bypass_hits = 0; in bch_cache_accounting_clear() 113 acc->total.cache_bypass_misses = 0; in bch_cache_accounting_clear() 114 acc->total.cache_miss_collisions = 0; in bch_cache_accounting_clear() 115 acc->total.sectors_bypassed = 0; in bch_cache_accounting_clear() 120 kobject_put(&acc->total.kobj); in bch_cache_accounting_destroy() 160 acc->total.name += t; \ in scale_accounting() 170 scale_stats(&acc->total, 0); in scale_accounting() [all …]
|
/linux/fs/ceph/ |
H A D | metric.c | 70 cap->total = cpu_to_le64(nr_caps); in ceph_mdsc_send_metrics() 83 read->count = cpu_to_le64(m->metric[METRIC_READ].total); in ceph_mdsc_send_metrics() 96 write->count = cpu_to_le64(m->metric[METRIC_WRITE].total); in ceph_mdsc_send_metrics() 109 meta->count = cpu_to_le64(m->metric[METRIC_METADATA].total); in ceph_mdsc_send_metrics() 120 dlease->total = cpu_to_le64(atomic64_read(&m->total_dentries)); in ceph_mdsc_send_metrics() 132 files->total = cpu_to_le64(sum); in ceph_mdsc_send_metrics() 142 icaps->total = cpu_to_le64(sum); in ceph_mdsc_send_metrics() 152 inodes->total = cpu_to_le64(sum); in ceph_mdsc_send_metrics() 161 rsize->total_ops = cpu_to_le64(m->metric[METRIC_READ].total); in ceph_mdsc_send_metrics() 171 wsize->total_ops = cpu_to_le64(m->metric[METRIC_WRITE].total); in ceph_mdsc_send_metrics() [all …]
|
H A D | debugfs.c | 130 #define CEPH_LAT_METRIC_SHOW(name, total, avg, min, max, sq) { \ argument 135 _total = total - 1; \ 140 name, total, _avg, _min, _max, _st); \ 143 #define CEPH_SZ_METRIC_SHOW(name, total, avg, min, max, sum) { \ argument 146 name, total, avg, _min, max, sum); \ 178 s64 total, avg, min, max, sq; in metrics_latency_show() local 187 total = m->total; in metrics_latency_show() 193 CEPH_LAT_METRIC_SHOW(metric_str[i], total, avg, min, max, sq); in metrics_latency_show() 204 s64 total; in metrics_size_show() local 217 total = m->total; in metrics_size_show() [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | tcp_mmap.c | 172 unsigned long total_mmap = 0, total = 0; in child_thread() local 224 zc.length = min(chunk_size, FILE_SZ - total); in child_thread() 242 total += zc.length; in child_thread() 247 FILE_SZ - total)); in child_thread() 253 total += lu; in child_thread() 263 FILE_SZ - total)); in child_thread() 272 total += lu; in child_thread() 296 throughput = total * 8.0 / (double)delta_usec / 1000.0; in child_thread() 298 if (total > 1024*1024) { in child_thread() 300 unsigned long mb = total >> 20; in child_thread() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | debugfs-pfo-nx-crypto | 14 A u32 providing a total count of errors since the driver was loaded. The 29 The total number of bytes encrypted using AES in any of the driver's 33 The total number of AES operations submitted to the hardware. 36 The total number of bytes hashed by the hardware using SHA-256. 39 The total number of SHA-256 operations submitted to the hardware. 42 The total number of bytes hashed by the hardware using SHA-512. 45 The total number of SHA-512 operations submitted to the hardware.
|
/linux/samples/bpf/ |
H A D | xdp_sample_user.c | 92 struct datarec total; member 372 rec->total.processed = sum_processed; in map_collect_percpu() 373 rec->total.dropped = sum_dropped; in map_collect_percpu() 374 rec->total.issue = sum_issue; in map_collect_percpu() 375 rec->total.xdp_pass = sum_xdp_pass; in map_collect_percpu() 376 rec->total.xdp_drop = sum_xdp_drop; in map_collect_percpu() 377 rec->total.xdp_redirect = sum_xdp_redirect; in map_collect_percpu() 678 pps = calc_pps(&rec->total, &prev->total, t); in stats_get_rx_cnt() 679 drop = calc_drop_pps(&rec->total, &prev->total, t); in stats_get_rx_cnt() 680 err = calc_errs_pps(&rec->total, &prev->total, t); in stats_get_rx_cnt() [all …]
|
/linux/lib/zstd/compress/ |
H A D | fse_compress.c | 175 { unsigned total = 0; in FSE_buildCTable_wksp() local 188 assert(total <= INT_MAX); in FSE_buildCTable_wksp() 189 symbolTT[s].deltaFindState = (int)(total - 1); in FSE_buildCTable_wksp() 190 total ++; in FSE_buildCTable_wksp() 197 symbolTT[s].deltaFindState = (int)(total - (unsigned)normalizedCounter[s]); in FSE_buildCTable_wksp() 198 total += (unsigned)normalizedCounter[s]; in FSE_buildCTable_wksp() 387 static size_t FSE_normalizeM2(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 m… in FSE_normalizeM2() argument 395 U32 const lowThreshold = (U32)(total >> tableLog); in FSE_normalizeM2() 396 U32 lowOne = (U32)((total * 3) >> (tableLog + 1)); in FSE_normalizeM2() 406 total -= count[s]; in FSE_normalizeM2() [all …]
|
/linux/scripts/ |
H A D | verify_builtin_ranges.awk | 37 total = 0; 81 total = 0; 169 FNR == 1 && ARGIND == 5 && total > 0 { 352 total++; 360 if (total) { 362 printf " Correct matches: %6d (%d%% of total)\n", matches, 100 * matches / total; 364 printf " Mismatches: %6d (%d%% of total)\n", mismatches, 100 * mismatches / total; 365 printf " Missing: %6d (%d%% of total)\n", missing, 100 * missing / total;
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | sch_ets_tests.sh | 43 local total=$1; shift 48 if ((! total)); then 54 local ratio=$(echo "scale=2; 100 * $d / $total" | bc -l) 86 local total 106 total=$(echo ${d[@]} | sed 's/ /+/g' | bc) 111 notraf_eval "band $stream" ${d[$i]} $total 113 strict_eval "band $stream" ${d[$i]} $total
|
/linux/drivers/gpu/drm/i915/selftests/ |
H A D | i915_gem_gtt.c | 181 limit = min(ppgtt->vm.total, limit); in igt_ppgtt_alloc() 287 GEM_BUG_ON(count * BIT_ULL(aligned_size) > vm->total); in lowlevel_hole() 314 GEM_BUG_ON(addr + BIT_ULL(aligned_size) > vm->total); in lowlevel_hole() 373 GEM_BUG_ON(addr + BIT_ULL(size) > vm->total); in lowlevel_hole() 1212 GEM_BUG_ON(offset_in_page(ppgtt->vm.total)); in exercise_ppgtt() 1215 err = func(&ppgtt->vm, 0, ppgtt->vm.total, end_time); in exercise_ppgtt() 1469 err = func(vm, 0, min(vm->total, limit), end_time); in exercise_mock() 1537 u64 total; in igt_gtt_reserve() local 1546 for (total = 0; in igt_gtt_reserve() 1547 total + 2 * I915_GTT_PAGE_SIZE <= ggtt->vm.total; in igt_gtt_reserve() [all …]
|
/linux/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_inq.c | 203 static void wait_for_ack(int fd, int timeout, size_t total) in wait_for_ack() argument 219 if ((size_t)queued > total) in wait_for_ack() 220 xerror("TIOCOUTQ %u, but only %zu expected\n", queued, total); in wait_for_ack() 237 size_t len, i, total, sent; in connect_one_server() local 272 total = rand() % (16 * 1024 * 1024); in connect_one_server() 273 total += (1 * 1024 * 1024); in connect_one_server() 274 sent = total; in connect_one_server() 276 ret = write(unixfd, &total, sizeof(total)); in connect_one_server() 277 assert(ret == (ssize_t)sizeof(total)); in connect_one_server() 281 while (total > 0) { in connect_one_server() [all …]
|
/linux/include/linux/ |
H A D | bpf_mprog.h | 196 int total = entry->parent->count; in bpf_mprog_total() local 198 WARN_ON_ONCE(total > bpf_mprog_max()); in bpf_mprog_total() 199 return total; in bpf_mprog_total() 277 int total = bpf_mprog_total(entry); in bpf_mprog_entry_grow() local 281 (total - idx) * sizeof(struct bpf_mprog_fp)); in bpf_mprog_entry_grow() 285 (total - idx) * sizeof(struct bpf_mprog_cp)); in bpf_mprog_entry_grow() 293 int total = ARRAY_SIZE(entry->fp_items); in bpf_mprog_entry_shrink() local 297 (total - idx - 1) * sizeof(struct bpf_mprog_fp)); in bpf_mprog_entry_shrink() 301 (total - idx - 1) * sizeof(struct bpf_mprog_cp)); in bpf_mprog_entry_shrink()
|
/linux/lib/842/ |
H A D | 842_decompress.c | 165 u64 index, offset, total = round_down(p->out - p->ostart, 8); in __do_index() local 175 if (total > fsize) { in __do_index() 177 u64 section = round_down(total, fsize); in __do_index() 179 u64 pos = total - section; in __do_index() 190 if (offset + size > total) { in __do_index() 192 (unsigned long)offset, (unsigned long)total); in __do_index() 202 (unsigned long)total, in __do_index() 282 u64 op, rep, tmp, bytes, total; in sw842_decompress() local 292 total = p.olen; in sw842_decompress() 385 if (crc != (u64)crc32_be(0, out, total - p.olen)) { in sw842_decompress() [all …]
|