/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/ |
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 in test_lpm_trie_map_batch_ops() [all...] |
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 in __test_map_lookup_and_delete_batch() [all...] |
/kernel/linux/linux-5.10/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, in omap_crypto_copy_sgs() 88 omap_crypto_check_sg(struct scatterlist *sg, int total, int bs, u16 flags) omap_crypto_check_sg() argument 125 omap_crypto_align_sg(struct scatterlist **sg, int total, int bs, struct scatterlist *new_sg, u16 flags, u8 flags_shift, unsigned long *dd_flags) omap_crypto_align_sg() argument [all...] |
/kernel/linux/linux-6.6/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, in omap_crypto_copy_sgs() 88 omap_crypto_check_sg(struct scatterlist *sg, int total, int bs, u16 flags) omap_crypto_check_sg() argument 125 omap_crypto_align_sg(struct scatterlist **sg, int total, int bs, struct scatterlist *new_sg, u16 flags, u8 flags_shift, unsigned long *dd_flags) omap_crypto_align_sg() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/map_tests/ |
H A D | htab_map_batch_ops.c | 78 __u32 batch, count, total, total_success; in __test_map_lookup_and_delete_batch() local 151 total = 0; in __test_map_lookup_and_delete_batch() 159 total ? &batch : NULL, in __test_map_lookup_and_delete_batch() 160 &batch, keys + total, in __test_map_lookup_and_delete_batch() 162 total * value_size, in __test_map_lookup_and_delete_batch() 177 total += count; in __test_map_lookup_and_delete_batch() 185 CHECK(total != max_entries, "lookup with steps", in __test_map_lookup_and_delete_batch() 186 "total = %u, max_entries = %u\n", total, max_entries); in __test_map_lookup_and_delete_batch() 189 total in __test_map_lookup_and_delete_batch() [all...] |
H A D | array_map_batch_ops.c | 56 __u32 count, total, total_success; in test_array_map_batch_ops() local 88 total = 0; in test_array_map_batch_ops() 96 total ? &batch : NULL, &batch, in test_array_map_batch_ops() 97 keys + total, in test_array_map_batch_ops() 98 values + total, in test_array_map_batch_ops() 104 total += count; in test_array_map_batch_ops() 113 CHECK(total != max_entries, "lookup with steps", in test_array_map_batch_ops() 114 "total = %u, max_entries = %u\n", total, max_entries); in test_array_map_batch_ops()
|
/kernel/linux/linux-6.6/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 in branch_type_str() local [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | stat-shadow.c | 454 double total, ratio = 0.0; in print_stalled_cycles_frontend() local 458 total = runtime_stat_avg(st, STAT_CYCLES, ctx, cpu); in print_stalled_cycles_frontend() 460 if (total) in print_stalled_cycles_frontend() 461 ratio = avg / total * 100.0; in print_stalled_cycles_frontend() 478 double total, ratio = 0.0; in print_stalled_cycles_backend() local 482 total = runtime_stat_avg(st, STAT_CYCLES, ctx, cpu); in print_stalled_cycles_backend() 484 if (total) in print_stalled_cycles_backend() 485 ratio = avg / total * 100.0; in print_stalled_cycles_backend() 499 double total, ratio = 0.0; in print_branch_misses() local 503 total in print_branch_misses() 521 double total, ratio = 0.0; print_l1_dcache_misses() local 543 double total, ratio = 0.0; print_l1_icache_misses() local 563 double total, ratio = 0.0; print_dtlb_cache_misses() local 583 double total, ratio = 0.0; print_itlb_cache_misses() local 603 double total, ratio = 0.0; print_ll_cache_misses() local 674 double total; td_bad_spec() local 931 double total, ratio = 0.0, total2; perf_stat__print_shadow_stats() local [all...] |
H A D | branch.c | 63 u64 total = 0; in branch_type_stat_display() local 67 total += st->counts[i]; in branch_type_stat_display() 69 if (total == 0) in branch_type_stat_display() 79 100.0 * (double)st->cond_fwd / (double)total); in branch_type_stat_display() 85 100.0 * (double)st->cond_bwd / (double)total); in branch_type_stat_display() 91 100.0 * (double)st->cross_4k / (double)total); in branch_type_stat_display() 97 100.0 * (double)st->cross_2m / (double)total); in branch_type_stat_display() 105 (double)st->counts[i] / (double)total); in branch_type_stat_display() 117 u64 total = 0; in branch_type_str() local 120 total in branch_type_str() [all...] |
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | xdp_monitor_user.c | 162 struct datarec total; member 171 struct u64rec total; member 213 rec->total.processed = sum_processed; in map_collect_record() 214 rec->total.dropped = sum_dropped; in map_collect_record() 215 rec->total.info = sum_info; in map_collect_record() 216 rec->total.err = sum_err; in map_collect_record() 241 rec->total.processed = sum_total; in map_collect_record_u64() 364 pps = calc_pps_u64(&rec->total, &prev->total, t); in stats_print() 365 printf(fmt2, "XDP_REDIRECT", "total", in stats_print() [all...] |
H A D | xdp_redirect_cpu_user.c | 187 struct datarec total; member 234 rec->total.processed = sum_processed; in map_collect_percpu() 235 rec->total.dropped = sum_dropped; in map_collect_percpu() 236 rec->total.issue = sum_issue; in map_collect_percpu() 237 rec->total.xdp_pass = sum_xdp_pass; in map_collect_percpu() 238 rec->total.xdp_drop = sum_xdp_drop; in map_collect_percpu() 239 rec->total.xdp_redirect = sum_xdp_redirect; in map_collect_percpu() 394 pps = calc_pps(&rec->total, &prev->total, t); in stats_print() 395 drop = calc_drop_pps(&rec->total, in stats_print() [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nft_counter.c | 105 struct nft_counter *total) in nft_counter_reset() 111 this_cpu->packets -= total->packets; in nft_counter_reset() 112 this_cpu->bytes -= total->bytes; in nft_counter_reset() 117 struct nft_counter *total) in nft_counter_fetch() 125 memset(total, 0, sizeof(*total)); in nft_counter_fetch() 135 total->bytes += bytes; in nft_counter_fetch() 136 total->packets += packets; in nft_counter_fetch() 144 struct nft_counter total; in nft_counter_do_dump() local 146 nft_counter_fetch(priv, &total); in nft_counter_do_dump() 104 nft_counter_reset(struct nft_counter_percpu_priv *priv, struct nft_counter *total) nft_counter_reset() argument 116 nft_counter_fetch(struct nft_counter_percpu_priv *priv, struct nft_counter *total) nft_counter_fetch() argument 233 struct nft_counter total; nft_counter_clone() local [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nft_counter.c | 107 struct nft_counter *total) in nft_counter_reset() 113 this_cpu->packets -= total->packets; in nft_counter_reset() 114 this_cpu->bytes -= total->bytes; in nft_counter_reset() 119 struct nft_counter *total) in nft_counter_fetch() 127 memset(total, 0, sizeof(*total)); in nft_counter_fetch() 137 total->bytes += bytes; in nft_counter_fetch() 138 total->packets += packets; in nft_counter_fetch() 146 struct nft_counter total; in nft_counter_do_dump() local 148 nft_counter_fetch(priv, &total); in nft_counter_do_dump() 106 nft_counter_reset(struct nft_counter_percpu_priv *priv, struct nft_counter *total) nft_counter_reset() argument 118 nft_counter_fetch(struct nft_counter_percpu_priv *priv, struct nft_counter *total) nft_counter_fetch() argument 235 struct nft_counter total; nft_counter_clone() local [all...] |
/kernel/linux/linux-5.10/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) \ 19 __ui_progress__init(p, total, title, false) 21 #define ui_progress__init_size(p, total, title) \ 22 __ui_progress__init(p, total, title, true)
|
/kernel/linux/linux-6.6/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) \ 19 __ui_progress__init(p, total, title, false) 21 #define ui_progress__init_size(p, total, title) \ 22 __ui_progress__init(p, total, title, true)
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | intel_iommu.h | 97 TP_PROTO(struct device *dev, int index, int total, 100 TP_ARGS(dev, index, total, sg), 108 __field(int, total) 117 __entry->total = total; 121 __get_str(dev_name), __entry->index, __entry->total, 128 TP_PROTO(struct device *dev, int index, int total, 130 TP_ARGS(dev, index, total, sg) 134 TP_PROTO(struct device *dev, int index, int total, 136 TP_ARGS(dev, index, total, s [all...] |
/kernel/linux/linux-5.10/drivers/md/bcache/ |
H A D | stats.c | 99 int ret = kobject_add(&acc->total.kobj, parent, in bch_cache_accounting_add_kobjs() 112 acc->total.cache_hits = 0; in bch_cache_accounting_clear() 113 acc->total.cache_misses = 0; in bch_cache_accounting_clear() 114 acc->total.cache_bypass_hits = 0; in bch_cache_accounting_clear() 115 acc->total.cache_bypass_misses = 0; in bch_cache_accounting_clear() 116 acc->total.cache_readaheads = 0; in bch_cache_accounting_clear() 117 acc->total.cache_miss_collisions = 0; in bch_cache_accounting_clear() 118 acc->total.sectors_bypassed = 0; in bch_cache_accounting_clear() 123 kobject_put(&acc->total.kobj); in bch_cache_accounting_destroy() 164 acc->total in scale_accounting() [all...] |
/kernel/linux/linux-6.6/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() 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 in mtk_vdec_dbgfs_get_help() 14 mtk_vdec_dbgfs_get_format_type(struct mtk_vcodec_dec_ctx *ctx, char *buf, int *used, int total) mtk_vdec_dbgfs_get_format_type() argument [all...] |
/kernel/linux/linux-6.6/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, in scale_accounting() [all...] |
/kernel/linux/linux-5.10/fs/ceph/ |
H A D | debugfs.c | 130 #define CEPH_METRIC_SHOW(name, total, avg, min, max, sq) { \ 135 _total = total - 1; \ 140 name, total, _avg, _min, _max, _st); \ 149 s64 total, sum, avg, min, max, sq; in metric_show() local 152 seq_printf(s, "item total\n"); in metric_show() 154 seq_printf(s, "%-35s%lld / %lld\n", "opened files / total inodes", in metric_show() 156 seq_printf(s, "%-35s%lld / %lld\n", "pinned i_caps / total inodes", in metric_show() 158 seq_printf(s, "%-35s%lld / %lld\n", "opened inodes / total inodes", in metric_show() 162 seq_printf(s, "item total avg_lat(us) min_lat(us) max_lat(us) stdev(us)\n"); in metric_show() 166 total in metric_show() 227 int total, avail, used, reserved, min, i; caps_show() local [all...] |
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | devninet.c | 44 int total; in nip_dev_ifconf() local 49 total = 0; in nip_dev_ifconf() 56 done = ninet_gifconf(dev, pos + total, in nip_dev_ifconf() 57 len - total, size); in nip_dev_ifconf() 60 total += done; in nip_dev_ifconf() 63 ifc->ifc_len = total; in nip_dev_ifconf()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/ |
H A D | i915_drm_client.c | 56 u64 total = 0; in busy_add() local 62 total += intel_context_get_total_runtime_ns(ce); in busy_add() 65 return total; in busy_add() 75 u64 total = atomic64_read(&client->past_runtime[class]); in show_client_class() local 80 total += busy_add(ctx, class); in show_client_class() 85 uabi_class_names[class], total); in show_client_class()
|
/kernel/linux/linux-6.6/fs/ceph/ |
H A D | metric.c | 69 cap->total = cpu_to_le64(nr_caps); in ceph_mdsc_send_metrics() 82 read->count = cpu_to_le64(m->metric[METRIC_READ].total); in ceph_mdsc_send_metrics() 95 write->count = cpu_to_le64(m->metric[METRIC_WRITE].total); in ceph_mdsc_send_metrics() 108 meta->count = cpu_to_le64(m->metric[METRIC_METADATA].total); in ceph_mdsc_send_metrics() 119 dlease->total = cpu_to_le64(atomic64_read(&m->total_dentries)); in ceph_mdsc_send_metrics() 131 files->total = cpu_to_le64(sum); in ceph_mdsc_send_metrics() 141 icaps->total = cpu_to_le64(sum); in ceph_mdsc_send_metrics() 151 inodes->total = cpu_to_le64(sum); in ceph_mdsc_send_metrics() 160 rsize->total_ops = cpu_to_le64(m->metric[METRIC_READ].total); in ceph_mdsc_send_metrics() 170 wsize->total_ops = cpu_to_le64(m->metric[METRIC_WRITE].total); in ceph_mdsc_send_metrics() 327 __update_mean_and_stdev(ktime_t total, ktime_t *lavg, ktime_t *sq_sump, ktime_t lat) __update_mean_and_stdev() argument 347 ktime_t total; ceph_update_metrics() local [all...] |