Home
last modified time | relevance | path

Searched refs:total (Results 1 – 200 of 568) sorted by relevance

123

/linux-4.1.27/tools/perf/
Dbuiltin-stat.c788 static void print_noise_pct(double total, double avg) in print_noise_pct() argument
790 double pct = rel_stddev_stats(total, avg); in print_noise_pct()
909 double total, ratio = 0.0; in print_stalled_cycles_frontend() local
912 total = avg_stats(&runtime_cycles_stats[cpu]); in print_stalled_cycles_frontend()
914 if (total) in print_stalled_cycles_frontend()
915 ratio = avg / total * 100.0; in print_stalled_cycles_frontend()
928 double total, ratio = 0.0; in print_stalled_cycles_backend() local
931 total = avg_stats(&runtime_cycles_stats[cpu]); in print_stalled_cycles_backend()
933 if (total) in print_stalled_cycles_backend()
934 ratio = avg / total * 100.0; in print_stalled_cycles_backend()
[all …]
Dbuiltin-lock.c687 static void print_bad_events(int bad, int total) in print_bad_events() argument
695 pr_info("bad: %d, total: %d\n", bad, total); in print_bad_events()
696 pr_info("bad rate: %.2f %%\n", (double)bad / (double)total * 100); in print_bad_events()
707 int bad, total; in print_result() local
720 bad = total = 0; in print_result()
722 total++; in print_result()
753 print_bad_events(bad, total); in print_result()
Dbuiltin-kvm.c139 event->total.time = 0; in clear_events_cache_stats()
140 init_stats(&event->total.stats); in clear_events_cache_stats()
192 init_stats(&event->total.stats); in kvm_alloc_init_event()
241 struct kvm_event_stats *kvm_stats = &event->total; in kvm_event_rel_stddev()
254 kvm_update_event_stats(&event->total, time_diff); in update_kvm_event()
430 return event->total.field; \
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/
Dcoredump.c55 int i, sz, total = 0; in spufs_ctx_note_size() local
65 total += sizeof(struct elf_note); in spufs_ctx_note_size()
66 total += roundup(strlen(fullname) + 1, 4); in spufs_ctx_note_size()
67 total += roundup(sz, 4); in spufs_ctx_note_size()
70 return total; in spufs_ctx_note_size()
135 int sz, rc, total = 0; in spufs_arch_write_note() local
167 total += rc; in spufs_arch_write_note()
169 } while (rc == bufsz && total < sz); in spufs_arch_write_note()
175 roundup(cprm->written - total + sz, 4) - cprm->written)) in spufs_arch_write_note()
/linux-4.1.27/Documentation/ABI/testing/
Ddebugfs-pfo-nx-crypto14 - 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.
Dsysfs-fs-xfs24 represents the total log reservation of all currently
35 represents the total log reservation of all currently
Dsysfs-devices-edac34 Description: This attribute file displays the total count of uncorrectable
49 Description: This attribute file displays the total count of correctable
94 is also the total size of the dimm. On dual rank (2R) memories,
95 this is half the size of the total DIMM memories.
Dsysfs-class-bdi36 total write-back cache that relates to its current average
/linux-4.1.27/scripts/basic/
Dbin2c.c14 int ch, total = 0; in main() local
23 total++; in main()
25 if (total % 16 == 0) in main()
32 printf("\t;\n\nconst int %s_size = %d;\n", argv[1], total); in main()
/linux-4.1.27/Documentation/accounting/
Ddelay-accounting.txt94 CPU count real total virtual total delay total
96 IO count delay total
98 SWAP count delay total
100 RECLAIM count delay total
110 CPU count real total virtual total delay total
112 IO count delay total
114 SWAP count delay total
116 RECLAIM count delay total
/linux-4.1.27/fs/qnx4/
Dbitmap.c23 int total = 0; in qnx4_count_free_blocks() local
29 while (total < size) { in qnx4_count_free_blocks()
30 int bytes = min(size - total, QNX4_BLOCK_SIZE); in qnx4_count_free_blocks()
39 total += bytes; in qnx4_count_free_blocks()
/linux-4.1.27/tools/perf/ui/
Dprogress.c25 void ui_progress__init(struct ui_progress *p, u64 total, const char *title) in ui_progress__init() argument
28 p->next = p->step = total / 16; in ui_progress__init()
29 p->total = total; in ui_progress__init()
Dprogress.h10 u64 curr, next, step, total; member
13 void ui_progress__init(struct ui_progress *p, u64 total, const char *title);
Dhist.c30 u64 total = hists__total_period(hists); in __hpp__fmt() local
32 if (total) in __hpp__fmt()
33 percent = 100.0 * get_field(he) / total; in __hpp__fmt()
48 u64 total = hists__total_period(pair->hists); in __hpp__fmt() local
50 if (!total) in __hpp__fmt()
72 100.0 * period / total); in __hpp__fmt()
/linux-4.1.27/drivers/video/fbdev/i810/
Di810_dvt.c247 u32 total, xres, yres; in i810fb_fill_var_timings() local
256 total = (std_modes[mode].cr00 | (std_modes[mode].cr35 & 1) << 8) + 3; in i810fb_fill_var_timings()
257 total <<= 3; in i810fb_fill_var_timings()
263 var->left_margin = (total - (xres + var->right_margin + in i810fb_fill_var_timings()
271 total = (std_modes[mode].cr06 | (std_modes[mode].cr30 & 0xF) << 8) + 2; in i810fb_fill_var_timings()
276 var->upper_margin = total - (yres + var->lower_margin + var->vsync_len); in i810fb_fill_var_timings()
/linux-4.1.27/net/atm/
Daddr.c138 int total = 0, error; in atm_get_addr() local
147 total += sizeof(struct sockaddr_atmsvc); in atm_get_addr()
148 tmp_buf = tmp_bufp = kmalloc(total, GFP_ATOMIC); in atm_get_addr()
156 error = total > size ? -E2BIG : total; in atm_get_addr()
157 if (copy_to_user(buf, tmp_buf, total < size ? total : size)) in atm_get_addr()
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
Domapdss-boot-init.c46 int l = 0, total = 0; in omapdss_count_strings() local
49 for (i = 0; total < prop->length; total += l, p += l, i++) in omapdss_count_strings()
74 size_t total = 0; in omapdss_prefix_strcpy() local
76 while (total < src_len) { in omapdss_prefix_strcpy()
86 total += l; in omapdss_prefix_strcpy()
/linux-4.1.27/fs/adfs/
Dmap.c140 unsigned long total = 0; in scan_free_map() local
179 total += mapptr - start; in scan_free_map()
185 return total; in scan_free_map()
234 unsigned int total = 0; in adfs_map_free() local
241 total += scan_free_map(asb, dm++); in adfs_map_free()
244 return signed_asl(total, asb->s_map2blk); in adfs_map_free()
/linux-4.1.27/arch/mips/txx9/generic/
Dmem_tx4927.c69 unsigned int total = 0; in tx4927_get_mem_size() local
73 total += tx4927_process_sdccr(&tx4927_sdramcptr->cr[i]); in tx4927_get_mem_size()
74 return total; in tx4927_get_mem_size()
/linux-4.1.27/lib/
Dshow_mem.c15 unsigned long total = 0, reserved = 0, highmem = 0; in show_mem() local
30 total += zone->present_pages; in show_mem()
39 printk("%lu pages RAM\n", total); in show_mem()
Dtest_rhashtable.c82 unsigned int cnt, rcu_cnt, i, total = 0; in test_bucket_stats() local
96 total++; in test_bucket_stats()
114 total, atomic_read(&ht->nelems), TEST_ENTRIES); in test_bucket_stats()
116 if (total != atomic_read(&ht->nelems) || total != TEST_ENTRIES) in test_bucket_stats()
Dflex_array.c88 struct flex_array *flex_array_alloc(int element_size, unsigned int total, in flex_array_alloc() argument
103 if (total > max_size) in flex_array_alloc()
109 ret->total_nr_elements = total; in flex_array_alloc()
/linux-4.1.27/ipc/
Dutil.c156 int total; in ipc_findkey() local
158 for (total = 0, next_id = 0; total < ids->in_use; next_id++) { in ipc_findkey()
165 total++; in ipc_findkey()
187 int total, id; in ipc_get_maxid() local
196 total = 0; in ipc_get_maxid()
197 for (id = 0; id < IPCMNI && total < ids->in_use; id++) { in ipc_get_maxid()
201 total++; in ipc_get_maxid()
750 int total, id; in sysvipc_find_ipc() local
752 total = 0; in sysvipc_find_ipc()
753 for (id = 0; id < pos && total < ids->in_use; id++) { in sysvipc_find_ipc()
[all …]
Dnamespace.c75 int total, in_use; in free_ipcs() local
81 for (total = 0, next_id = 0; total < in_use; next_id++) { in free_ipcs()
88 total++; in free_ipcs()
/linux-4.1.27/drivers/devfreq/exynos/
Dexynos_ppmu.c47 unsigned int total; in exynos_ppmu_read() local
50 total = ((__raw_readl(ppmu_base + PMCNT_OFFSET(ch)) << 8) | in exynos_ppmu_read()
53 total = __raw_readl(ppmu_base + PMCNT_OFFSET(ch)); in exynos_ppmu_read()
55 return total; in exynos_ppmu_read()
/linux-4.1.27/drivers/edac/
Dppc4xx_edac.c320 int n, total = 0; in ppc4xx_edac_generate_bank_message() local
330 total += n; in ppc4xx_edac_generate_bank_message()
342 total += n; in ppc4xx_edac_generate_bank_message()
353 total += n; in ppc4xx_edac_generate_bank_message()
356 return total; in ppc4xx_edac_generate_bank_message()
440 int n, total = 0; in ppc4xx_edac_generate_lane_message() local
452 total += n; in ppc4xx_edac_generate_lane_message()
465 total += n; in ppc4xx_edac_generate_lane_message()
476 total += n; in ppc4xx_edac_generate_lane_message()
479 return total; in ppc4xx_edac_generate_lane_message()
[all …]
/linux-4.1.27/net/rds/
Dinfo.c170 int total; in rds_info_getsockopt() local
222 total = lens.nr * lens.each; in rds_info_getsockopt()
226 if (total > len) { in rds_info_getsockopt()
227 len = total; in rds_info_getsockopt()
230 len = total; in rds_info_getsockopt()
Dtransport.c115 unsigned int total = 0; in rds_trans_stats_info_copy() local
130 total += part; in rds_trans_stats_info_copy()
135 return total; in rds_trans_stats_info_copy()
Daf_rds.c472 unsigned int total = 0; in rds_sock_inc_info() local
483 total++; in rds_sock_inc_info()
484 if (total <= len) in rds_sock_inc_info()
494 lens->nr = total; in rds_sock_inc_info()
Dconnection.c401 unsigned int total = 0; in rds_conn_message_info() local
421 total++; in rds_conn_message_info()
422 if (total <= len) in rds_conn_message_info()
433 lens->nr = total; in rds_conn_message_info()
/linux-4.1.27/kernel/
Dstacktrace.c34 int total = 0; in snprint_stack_trace() local
44 total += generated; in snprint_stack_trace()
56 return total; in snprint_stack_trace()
Ddelayacct.c52 static void delayacct_end(u64 *start, u64 *total, u32 *count) in delayacct_end() argument
59 *total += ns; in delayacct_end()
/linux-4.1.27/tools/perf/ui/gtk/
Dprogress.c12 double fraction = p->total ? 1.0 * p->curr / p->total : 0.0; in gtk_ui_progress__update()
35 snprintf(buf, sizeof(buf), "%"PRIu64" / %"PRIu64, p->curr, p->total); in gtk_ui_progress__update()
Dhists.c93 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain() argument
109 percent = 100.0 * hits / total; in perf_gtk__add_callchain()
138 child_total = total; in perf_gtk__add_callchain()
226 u64 total = hists__total_period(h->hists); in perf_gtk__show_hists() local
254 total = symbol_conf.cumulate_callchain ? in perf_gtk__show_hists()
258 sym_col, total); in perf_gtk__show_hists()
/linux-4.1.27/arch/powerpc/platforms/pseries/
Dmsi.c174 static struct device_node *find_pe_total_msi(struct pci_dev *dev, int *total) in find_pe_total_msi() argument
185 *total = be32_to_cpup(p); in find_pe_total_msi()
195 static struct device_node *find_pe_dn(struct pci_dev *dev, int *total) in find_pe_dn() argument
222 *total = 8; in find_pe_dn()
287 int total; in msi_quota_for_device() local
292 pe_dn = find_pe_total_msi(dev, &total); in msi_quota_for_device()
294 pe_dn = find_pe_dn(dev, &total); in msi_quota_for_device()
314 counts.quota = total / counts.num_devices; in msi_quota_for_device()
325 counts.spare += total % counts.num_devices; in msi_quota_for_device()
/linux-4.1.27/drivers/staging/unisys/uislib/
Duisutils.c49 uisutil_add_proc_line_ex(int *total, char **buffer, int *buffer_remaining, in uisutil_add_proc_line_ex() argument
60 *total += *buffer_remaining; in uisutil_add_proc_line_ex()
66 *total += len; in uisutil_add_proc_line_ex()
/linux-4.1.27/drivers/md/bcache/
Dstats.c98 int ret = kobject_add(&acc->total.kobj, parent, in bch_cache_accounting_add_kobjs()
111 memset(&acc->total.cache_hits, in bch_cache_accounting_clear()
118 kobject_put(&acc->total.kobj); in bch_cache_accounting_destroy()
159 acc->total.name += t; \ in scale_accounting()
170 scale_stats(&acc->total, 0); in scale_accounting()
230 kobject_init(&acc->total.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
Dstats.h35 struct cache_stats total; member
/linux-4.1.27/arch/um/drivers/
Dmconsole_user.c126 int mconsole_reply_len(struct mc_request *req, const char *str, int total, in mconsole_reply_len() argument
143 len = MIN(total, MCONSOLE_MAX_DATA - 1); in mconsole_reply_len()
145 if (len == total) reply.more = more; in mconsole_reply_len()
150 total -= len; in mconsole_reply_len()
161 } while (total > 0); in mconsole_reply_len()
/linux-4.1.27/crypto/
Dahash.c77 if (walk->entrylen > walk->total) in hash_walk_new_entry()
78 walk->entrylen = walk->total; in hash_walk_new_entry()
79 walk->total -= walk->entrylen; in hash_walk_new_entry()
122 if (!walk->total) in crypto_hash_walk_done()
134 walk->total = req->nbytes; in crypto_hash_walk_first()
136 if (!walk->total) { in crypto_hash_walk_first()
152 walk->total = req->nbytes; in crypto_ahash_walk_first()
154 if (!walk->total) { in crypto_ahash_walk_first()
174 walk->total = len; in crypto_hash_walk_first_compat()
176 if (!walk->total) { in crypto_hash_walk_first_compat()
Dablkcipher.c125 nbytes = walk->total - n; in ablkcipher_walk_done()
133 walk->total = nbytes; in ablkcipher_walk_done()
234 n = walk->total; in ablkcipher_walk_next()
280 walk->nbytes = walk->total; in ablkcipher_walk_first()
281 if (unlikely(!walk->total)) in ablkcipher_walk_first()
Dblkcipher.c119 nbytes = walk->total - n; in blkcipher_walk_done()
127 walk->total = nbytes; in blkcipher_walk_done()
230 n = walk->total; in blkcipher_walk_next()
328 walk->nbytes = walk->total; in blkcipher_walk_first()
329 if (unlikely(!walk->total)) in blkcipher_walk_first()
Dapi.c464 unsigned int total; in crypto_create_tfm() local
468 total = tfmsize + sizeof(*tfm) + frontend->extsize(alg); in crypto_create_tfm()
470 mem = kzalloc(total, GFP_KERNEL); in crypto_create_tfm()
/linux-4.1.27/drivers/staging/speakup/
Dspeakup_dtlk.c287 int total, i; in synth_interrogate() local
291 for (total = 0, i = 0; i < 50; i++) { in synth_interrogate()
292 buf[total] = synth_read_tts(); in synth_interrogate()
293 if (total > 2 && buf[total] == 0x7f) in synth_interrogate()
295 if (total < sizeof(struct synth_settings)) in synth_interrogate()
296 total++; in synth_interrogate()
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
Dpci.c122 u32 total, offset; in ath5k_pci_eeprom_read_mac() local
128 for (offset = 0x1f, octet = 0, total = 0; offset >= 0x1d; offset--) { in ath5k_pci_eeprom_read_mac()
131 total += data; in ath5k_pci_eeprom_read_mac()
137 if (!total || total == 3 * 0xffff) in ath5k_pci_eeprom_read_mac()
/linux-4.1.27/drivers/tty/
Dmetag_da.c471 int total) in dashtty_write() argument
493 total = min(total, (int)(SERIAL_XMIT_SIZE - dport->xmit_cnt)); in dashtty_write()
494 atomic_add(total, &dashtty_xmit_cnt); in dashtty_write()
495 dport->xmit_cnt += total; in dashtty_write()
497 for (count = total; count; count -= block) { in dashtty_write()
511 if (total) { in dashtty_write()
524 return total; in dashtty_write()
Dmips_ejtag_fdc.c802 const unsigned char *buf, int total) in mips_ejtag_fdc_tty_write() argument
821 total = min(total, (int)(priv->xmit_size - dport->xmit_cnt)); in mips_ejtag_fdc_tty_write()
822 atomic_add(total, &priv->xmit_total); in mips_ejtag_fdc_tty_write()
823 dport->xmit_cnt += total; in mips_ejtag_fdc_tty_write()
825 for (count = total; count; count -= block) { in mips_ejtag_fdc_tty_write()
840 if (total) in mips_ejtag_fdc_tty_write()
842 return total; in mips_ejtag_fdc_tty_write()
Dmoxa.c1879 unsigned int c, total; in MoxaPortWriteData() local
1894 total = c; in MoxaPortWriteData()
1926 tail = (tail + total) & tx_mask; in MoxaPortWriteData()
1930 return total; in MoxaPortWriteData()
1938 unsigned int count, len, total; in MoxaPortReadData() local
1953 total = count; in MoxaPortReadData()
1954 moxaLog.rxcnt[tty->index] += total; in MoxaPortReadData()
1983 head = (head + total) & rx_mask; in MoxaPortReadData()
1990 return total; in MoxaPortReadData()
/linux-4.1.27/drivers/crypto/nx/
Dnx-sha256.c75 u64 to_process = 0, leftover, total; in nx_sha256_update() local
88 total = (sctx->count % SHA256_BLOCK_SIZE) + len; in nx_sha256_update()
89 if (total < SHA256_BLOCK_SIZE) { in nx_sha256_update()
139 to_process = min_t(u64, total, in nx_sha256_update()
150 leftover = total - to_process; in nx_sha256_update()
172 total -= to_process; in nx_sha256_update()
Dnx-sha512.c75 u64 to_process, leftover = 0, total; in nx_sha512_update() local
88 total = (sctx->count[0] % SHA512_BLOCK_SIZE) + len; in nx_sha512_update()
89 if (total < SHA512_BLOCK_SIZE) { in nx_sha512_update()
138 to_process = min_t(u64, total, in nx_sha512_update()
154 leftover = total - to_process; in nx_sha512_update()
176 total -= to_process; in nx_sha512_update()
Dnx-aes-xcbc.c188 u32 to_process = 0, leftover, total; in nx_xcbc_update() local
197 total = sctx->count + len; in nx_xcbc_update()
203 if (total <= AES_BLOCK_SIZE) { in nx_xcbc_update()
227 to_process = total - to_process; in nx_xcbc_update()
230 leftover = total - to_process; in nx_xcbc_update()
292 total -= to_process; in nx_xcbc_update()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
Dgk20a.c45 unsigned long total; member
102 status->total= nv_rd32(priv, 0x10a508 + (CLK_SLOT * 0x10)); in gk20a_pmu_dvfs_get_dev_status()
138 if (status.total) in gk20a_pmu_dvfs_work()
139 utilization = div_u64((u64)status.busy * 100, status.total); in gk20a_pmu_dvfs_work()
/linux-4.1.27/drivers/crypto/
Datmel-aes.c120 size_t total; member
161 unsigned int total = req->nbytes; in atmel_aes_sg_length() local
168 total = req->nbytes; in atmel_aes_sg_length()
170 while (total) { in atmel_aes_sg_length()
171 len = min(sg_list->length, total); in atmel_aes_sg_length()
174 total -= len; in atmel_aes_sg_length()
178 total = 0; in atmel_aes_sg_length()
185 void *buf, size_t buflen, size_t total, int out) in atmel_aes_sg_copy() argument
189 while (buflen && total) { in atmel_aes_sg_copy()
190 count = min((*sg)->length - *offset, total); in atmel_aes_sg_copy()
[all …]
Domap-aes.c166 size_t total; member
492 dd->pdata->trigger(dd, dd->total); in omap_aes_crypt_dma()
503 pr_debug("total: %d\n", dd->total); in omap_aes_crypt_dma_start()
547 pr_debug("total: %d\n", dd->total); in omap_aes_crypt_dma_stop()
557 static int omap_aes_check_aligned(struct scatterlist *sg, int total) in omap_aes_check_aligned() argument
571 if (len != total) in omap_aes_check_aligned()
582 pages = get_order(dd->total); in omap_aes_copy_sgs()
594 sg_copy_buf(buf_in, dd->in_sg, 0, dd->total, 0); in omap_aes_copy_sgs()
597 sg_set_buf(&dd->in_sgl, buf_in, dd->total); in omap_aes_copy_sgs()
601 sg_set_buf(&dd->out_sgl, buf_out, dd->total); in omap_aes_copy_sgs()
[all …]
Domap-des.c147 size_t total; member
476 dd->pdata->trigger(dd, dd->total); in omap_des_crypt_dma()
487 pr_debug("total: %d\n", dd->total); in omap_des_crypt_dma_start()
532 pr_debug("total: %d\n", dd->total); in omap_des_crypt_dma_stop()
559 pages = dd->total >> PAGE_SHIFT; in omap_des_copy_sgs()
561 if (dd->total & (PAGE_SIZE-1)) in omap_des_copy_sgs()
576 sg_copy_buf(buf_in, dd->in_sg, 0, dd->total, 0); in omap_des_copy_sgs()
579 sg_set_buf(&dd->in_sgl, buf_in, dd->total); in omap_des_copy_sgs()
583 sg_set_buf(&dd->out_sgl, buf_out, dd->total); in omap_des_copy_sgs()
621 dd->total = req->nbytes; in omap_des_handle_queue()
[all …]
Datmel-sha.c94 unsigned int total; /* total request */ member
162 while ((ctx->bufcnt < ctx->buflen) && ctx->total) { in atmel_sha_append_sg()
163 count = min(ctx->sg->length - ctx->offset, ctx->total); in atmel_sha_append_sg()
186 ctx->total -= count; in atmel_sha_append_sg()
193 ctx->total = 0; in atmel_sha_append_sg()
530 final = (ctx->flags & SHA_FLAGS_FINUP) && !ctx->total; in atmel_sha_update_dma_slow()
554 if (!ctx->total) in atmel_sha_update_dma_start()
561 ctx->digcnt[1], ctx->digcnt[0], ctx->bufcnt, ctx->total); in atmel_sha_update_dma_start()
572 length = min(ctx->total, sg->length); in atmel_sha_update_dma_start()
582 ctx->total -= length; in atmel_sha_update_dma_start()
[all …]
Dsahara.c195 size_t total; member
231 size_t total; member
278 unsigned int total) in sahara_sg_length() argument
287 while (total) { in sahara_sg_length()
288 len = min(sg_list->length, total); in sahara_sg_length()
291 total -= len; in sahara_sg_length()
295 total = 0; in sahara_sg_length()
505 dev->nb_in_sg = sahara_sg_length(dev->in_sg, dev->total); in sahara_hw_descriptor_create()
506 dev->nb_out_sg = sahara_sg_length(dev->out_sg, dev->total); in sahara_hw_descriptor_create()
556 dev->hw_desc[idx]->len1 = dev->total; in sahara_hw_descriptor_create()
[all …]
Domap-sham.c155 unsigned int total; /* total request */ member
627 count = min(count, ctx->total); in omap_sham_append_buffer()
654 ctx->total -= count; in omap_sham_append_sg()
660 ctx->total = 0; in omap_sham_append_sg()
698 final = (ctx->flags & BIT(FLAGS_FINUP)) && !ctx->total; in omap_sham_update_dma_slow()
703 if (final || (ctx->bufcnt == ctx->buflen && ctx->total)) { in omap_sham_update_dma_slow()
724 if (!ctx->total) in omap_sham_update_dma_start()
736 if (ctx->total < get_block_size(ctx)) in omap_sham_update_dma_start()
740 ctx->digcnt, ctx->bufcnt, ctx->total); in omap_sham_update_dma_start()
752 length = min(ctx->total, sg->length); in omap_sham_update_dma_start()
[all …]
Datmel-tdes.c113 size_t total; member
151 void *buf, size_t buflen, size_t total, int out) in atmel_tdes_sg_copy() argument
155 while (buflen && total) { in atmel_tdes_sg_copy()
156 count = min((*sg)->length - *offset, total); in atmel_tdes_sg_copy()
167 total -= count; in atmel_tdes_sg_copy()
174 total = 0; in atmel_tdes_sg_copy()
528 count = min(dd->total, sg_dma_len(dd->in_sg)); in atmel_tdes_crypt_start()
554 dd->buf_in, dd->buflen, dd->total, 0); in atmel_tdes_crypt_start()
562 dd->total -= count; in atmel_tdes_crypt_start()
620 dd->total = req->nbytes; in atmel_tdes_handle_queue()
[all …]
Dimg-hash.c99 unsigned int total; member
259 ctx->total = hdev->req->nbytes; in img_hash_write_via_cpu()
266 return img_hash_xmit_cpu(hdev, ctx->buffer, ctx->total, 1); in img_hash_write_via_cpu()
318 dev_dbg(hdev->dev, "xmit dma size: %d\n", ctx->total); in img_hash_write_via_dma()
320 if (!ctx->total) in img_hash_write_via_dma()
636 ctx->total = req->nbytes; in img_hash_digest()
Dbfin_crc.c80 unsigned int total; /* total request bytes */ member
173 ctx->total = 0; in bfin_crypto_crc_init()
429 ctx->total += req->nbytes; in bfin_crypto_crc_update()
455 ctx->total += req->nbytes; in bfin_crypto_crc_finup()
/linux-4.1.27/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/
DUtil.pm25 my ($total, $n) = @_;
27 return $total / $n;
/linux-4.1.27/tools/perf/ui/tui/
Dprogress.c18 if (p->total == 0) in tui_progress__update()
30 bar = ((SLtt_Screen_Cols - 2) * p->curr) / p->total; in tui_progress__update()
/linux-4.1.27/drivers/char/
Ddtlk.c515 int total, i; in dtlk_interrogate() local
519 for (total = 0, i = 0; i < 50; i++) { in dtlk_interrogate()
520 buf[total] = dtlk_read_tts(); in dtlk_interrogate()
521 if (total > 2 && buf[total] == 0x7f) in dtlk_interrogate()
523 if (total < sizeof(struct dtlk_settings)) in dtlk_interrogate()
524 total++; in dtlk_interrogate()
/linux-4.1.27/net/wimax/
Dstack.c451 unsigned int cnt, total; in wimax_addr_scnprint() local
453 for (total = cnt = 0; cnt < addr_len; cnt++) in wimax_addr_scnprint()
454 total += scnprintf(addr_str + total, addr_str_size - total, in wimax_addr_scnprint()
457 return total; in wimax_addr_scnprint()
/linux-4.1.27/Documentation/cpuidle/
Dsysfs.txt30 total 0
37 total 0
47 total 0
57 total 0
67 total 0
/linux-4.1.27/Documentation/
Diostats.txt61 This is the total number of reads completed successfully.
68 This is the total number of sectors read successfully.
70 This is the total number of milliseconds spent by all reads (as
73 This is the total number of writes completed successfully.
77 This is the total number of sectors written successfully.
79 This is the total number of milliseconds spent by all writes (as
119 This is the total number of reads issued to this partition.
121 This is the total number of sectors requested to be read from this
124 This is the total number of writes issued to this partition.
126 This is the total number of sectors requested to be written to
Dflexible-arrays.txt34 unsigned int total,
37 The individual object size is provided by element_size, while total is the
45 DEFINE_FLEX_ARRAY(name, element_size, total);
48 element size and total will be checked for validity at compile time.
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_dir2.c263 xfs_extlen_t total) /* bmap's total block count */ in xfs_dir_createname() argument
290 args->total = total; in xfs_dir_createname()
437 xfs_extlen_t total) /* bmap's total block count */ in xfs_dir_removename() argument
459 args->total = total; in xfs_dir_removename()
499 xfs_extlen_t total) /* bmap's total block count */ in xfs_dir_replace() argument
524 args->total = total; in xfs_dir_replace()
Dxfs_bmap.h50 xfs_extlen_t total; /* total blocks needed for xaction */ member
208 xfs_fsblock_t *firstblock, xfs_extlen_t total,
Dxfs_alloc.h112 xfs_extlen_t total; /* total blocks needed in xaction */ member
/linux-4.1.27/net/core/
Ddev_ioctl.c73 int total; in dev_ifconf() local
90 total = 0; in dev_ifconf()
98 done = gifconf_list[i](dev, pos + total, in dev_ifconf()
99 len - total); in dev_ifconf()
102 total += done; in dev_ifconf()
110 ifc.ifc_len = total; in dev_ifconf()
/linux-4.1.27/Documentation/locking/
Dlockstat.txt49 total - total time we spend waiting on this lock
55 total - total time this lock was held
87 …-min waittime-max waittime-total waittime-avg acq-bounces acquisitions holdtime-min h…
/linux-4.1.27/fs/squashfs/
Dxz_wrapper.c137 int avail, total = 0, k = 0; in squashfs_xz_uncompress() local
161 total += PAGE_CACHE_SIZE; in squashfs_xz_uncompress()
176 return total + stream->buf.out_pos; in squashfs_xz_uncompress()
/linux-4.1.27/fs/dlm/
Dmember.c390 int i, w, x = 0, total = 0, all_zero = 0, *array; in make_member_array() local
397 total += memb->weight; in make_member_array()
402 if (!total) { in make_member_array()
403 total = ls->ls_num_nodes; in make_member_array()
407 ls->ls_total_weight = total; in make_member_array()
409 array = kmalloc(sizeof(int) * total, GFP_NOFS); in make_member_array()
422 DLM_ASSERT(x < total, printk("total %d x %d\n", total, x);); in make_member_array()
Drecover.c524 unsigned int total = 0; in dlm_recover_masters() local
546 total++; in dlm_recover_masters()
555 log_rinfo(ls, "dlm_recover_masters %u of %u", count, total); in dlm_recover_masters()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_bufs.c611 int total; in drm_legacy_addbufs_agp() local
626 total = PAGE_SIZE << page_order; in drm_legacy_addbufs_agp()
637 DRM_DEBUG("total: %d\n", total); in drm_legacy_addbufs_agp()
646 (agp_offset + total * count <= agp_entry->bound + agp_entry->pages * PAGE_SIZE)) { in drm_legacy_addbufs_agp()
692 buf->total = alignment; in drm_legacy_addbufs_agp()
768 int total; in drm_legacy_addbufs_pci() local
803 total = PAGE_SIZE << page_order; in drm_legacy_addbufs_pci()
887 offset + size <= total && entry->buf_count < count; in drm_legacy_addbufs_pci()
891 buf->total = alignment; in drm_legacy_addbufs_pci()
979 int total; in drm_legacy_addbufs_sg() local
[all …]
Ddrm_mm.c802 u64 total_used = 0, total_free = 0, total = 0; in drm_mm_debug_table() local
812 total = total_free + total_used; in drm_mm_debug_table()
814 pr_debug("%s total: %llu, used %llu free %llu\n", prefix, total, in drm_mm_debug_table()
844 u64 total_used = 0, total_free = 0, total = 0; in drm_mm_dump_table() local
854 total = total_free + total_used; in drm_mm_dump_table()
856 seq_printf(m, "total: %llu, used %llu free %llu\n", total, in drm_mm_dump_table()
/linux-4.1.27/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DUtil.py19 def avg(total, n): argument
20 return total / n
/linux-4.1.27/Documentation/block/
Dstat.txt26 read ticks milliseconds total wait time for read requests
30 write ticks milliseconds total wait time for write requests
32 io_ticks milliseconds total time this block device has been active
33 time_in_queue milliseconds total wait time for all requests
/linux-4.1.27/Documentation/devicetree/bindings/misc/
Dat25.txt8 - size : total eeprom size in bytes
18 - at25,byte-len : total eeprom size in bytes
/linux-4.1.27/arch/mips/cavium-octeon/
Dsetup.c894 uint64_t total; in plat_mem_setup() local
902 total = 0; in plat_mem_setup()
919 total += MAX_MEMORY; in plat_mem_setup()
934 && (total < MAX_MEMORY)) { in plat_mem_setup()
969 total += crashk_base - memory; in plat_mem_setup()
973 total += end - crashk_end; in plat_mem_setup()
1001 total += mem_alloc_size; in plat_mem_setup()
1028 if (total == 0) in plat_mem_setup()
/linux-4.1.27/sound/isa/gus/
Dgus_mem.c294 unsigned int total, used; in snd_gf1_mem_info_read() local
305 for (i = total = 0; i < 4; i++) { in snd_gf1_mem_info_read()
307 total += alloc->banks_16[i].size; in snd_gf1_mem_info_read()
342 total, used, total - used); in snd_gf1_mem_info_read()
/linux-4.1.27/tools/usb/usbip/src/
Dusbip_network.c111 ssize_t total = 0; in usbip_net_xmit() local
127 total += nbytes; in usbip_net_xmit()
131 return total; in usbip_net_xmit()
/linux-4.1.27/fs/
Dsignalfd.c210 ssize_t ret, total = 0; in signalfd_read() local
226 total += ret; in signalfd_read()
230 return total ? total: ret; in signalfd_read()
/linux-4.1.27/net/ipv4/
Dinetpeer.c75 bp->total = 0; in inet_peer_base_init()
378 base->total--; in unlink_from_pool()
391 if (base->total >= inet_peer_threshold) in inet_peer_gc()
396 base->total / inet_peer_threshold * HZ; in inet_peer_gc()
475 base->total++; in inet_getpeer()
552 base->total = 0; in inetpeer_invalidate_tree()
/linux-4.1.27/drivers/pci/
Diov.c387 u16 ctrl, total, offset, stride; in sriov_init() local
402 pci_read_config_word(dev, pos + PCI_SRIOV_TOTAL_VF, &total); in sriov_init()
403 if (!total) in sriov_init()
420 if (!offset || (total > 1 && !stride)) in sriov_init()
448 res->end = res->start + resource_size(res) * total - 1; in sriov_init()
450 i, res, i, total); in sriov_init()
458 iov->total_VFs = total; in sriov_init()
/linux-4.1.27/sound/firewire/
Disight.c138 static void isight_dropped_samples(struct isight *isight, unsigned int total) in isight_dropped_samples() argument
148 dropped = total - isight->total_samples; in isight_dropped_samples()
170 unsigned int index, length, count, total; in isight_packet() local
183 total = be32_to_cpu(payload->sample_total); in isight_packet()
184 if (unlikely(total != isight->total_samples)) { in isight_packet()
186 isight_dropped_samples(isight, total); in isight_packet()
188 isight->total_samples = total; in isight_packet()
/linux-4.1.27/drivers/char/tpm/
Dtpm2-cmd.c342 int total = 0; in tpm2_get_random() local
366 total += recd; in tpm2_get_random()
368 } while (retries-- && total < max); in tpm2_get_random()
370 return total ? total : -EIO; in tpm2_get_random()
Dtpm-interface.c985 int err, total = 0, retries = 5; in tpm_get_random() local
1015 total += recd; in tpm_get_random()
1017 } while (retries-- && total < max); in tpm_get_random()
1020 return total ? total : -EIO; in tpm_get_random()
/linux-4.1.27/drivers/misc/sgi-gru/
Dgruprocfs.c130 unsigned long total, count, max; in mcs_statistics_show() local
138 total = atomic_long_read(&mcs_op_statistics[op].total); in mcs_statistics_show()
141 count ? total / count : 0, max); in mcs_statistics_show()
/linux-4.1.27/include/crypto/
Dalgapi.h98 unsigned int total; member
120 unsigned int total; member
316 walk->total = nbytes; in blkcipher_walk_init()
326 walk->total = nbytes; in ablkcipher_walk_init()
/linux-4.1.27/mm/
Dzbud.c157 unsigned int total = 0; in zbud_zpool_shrink() local
160 while (total < pages) { in zbud_zpool_shrink()
164 total++; in zbud_zpool_shrink()
168 *reclaimed = total; in zbud_zpool_shrink()
Dfrontswap.c341 static int __frontswap_unuse_pages(unsigned long total, unsigned long *unused, in __frontswap_unuse_pages() argument
347 unsigned long total_pages_to_unuse = total; in __frontswap_unuse_pages()
Dnommu.c1178 unsigned long total, point; in do_mmap_private() local
1210 total = 1 << order; in do_mmap_private()
1214 if (sysctl_nr_trim_pages && total - point >= sysctl_nr_trim_pages) { in do_mmap_private()
1215 total = point; in do_mmap_private()
1216 kdebug("try to alloc exact %lu pages", total); in do_mmap_private()
1219 base = alloc_pages_exact(total << PAGE_SHIFT, GFP_KERNEL); in do_mmap_private()
1223 atomic_long_add(total, &mmap_pages_allocated); in do_mmap_private()
1228 region->vm_top = region->vm_start + (total << PAGE_SHIFT); in do_mmap_private()
/linux-4.1.27/drivers/video/fbdev/mb862xx/
Dmb862xxfb_accel.c34 u32 total = 0; in mb862xxfb_write_fifo() local
35 while (total < count) { in mb862xxfb_write_fifo()
37 outreg(geo, GDC_GEO_REG_INPUT_FIFO, data[total]); in mb862xxfb_write_fifo()
38 total++; in mb862xxfb_write_fifo()
/linux-4.1.27/drivers/staging/android/ion/
Dion_heap.c273 int total = 0; in ion_heap_shrink_count() local
275 total = ion_heap_freelist_size(heap) / PAGE_SIZE; in ion_heap_shrink_count()
277 total += heap->ops->shrink(heap, sc->gfp_mask, 0); in ion_heap_shrink_count()
278 return total; in ion_heap_shrink_count()
/linux-4.1.27/Documentation/networking/
Daltera_tse.txt211 This statistic counts the total number of bytes received by the controller,
215 This statistic counts the total number of packets received by the controller,
227 This statistic counts the total number of packets received that were 64 octets
231 2819. This statistic counts the total number of packets received that were
235 RFC 2819. This statistic is the total number of packets received that were
239 RFC 2819. This statistic is the total number of packets received that were
243 RFC 2819. This statistic is the total number of packets received that were
247 in RFC 2819. This statistic is the total number of packets received that were
256 statistic is the total number of packets received that were longer than 1518
261 statistic is the total number of packets received that were less than 64 octets
Dixgbevf.txt25 VLANs: There is a limit of a total of 32 shared VLANs to 1 or more VFs.
Dradiotap-headers.txt34 Note also that the it_len member __le16 is set to the total number of bytes
72 consisting of two u16s of total length 4. When this happens, the padding
/linux-4.1.27/Documentation/devicetree/bindings/dma/
Darm-pl330.txt16 - dma-channels: contains the total number of DMA channels supported by the DMAC
17 - dma-requests: contains the total number of DMA requests supported by the DMAC
Dti-edma.txt22 - dma-channels: Specify total DMA channels per CC
Dbrcm,bcm2835-dma.txt3 The BCM2835 DMA controller has 16 channels in total.
/linux-4.1.27/kernel/sched/
Dcputime.c517 static cputime_t scale_stime(u64 stime, u64 rtime, u64 total) in scale_stime() argument
527 if (total >> 32) in scale_stime()
546 total >>= 1; in scale_stime()
553 scaled = div_u64((u64) (u32) stime * (u64) (u32) rtime, (u32)total); in scale_stime()
612 cputime_t total = stime + utime; in cputime_adjust() local
615 (__force u64)rtime, (__force u64)total); in cputime_adjust()
/linux-4.1.27/include/trace/events/
Dsunrpc.h375 TP_PROTO(struct rpc_xprt *xprt, int err, unsigned int total),
377 TP_ARGS(xprt, err, total),
381 __field(unsigned int, total)
390 __entry->total = total;
398 __get_str(port), __entry->err, __entry->total)
/linux-4.1.27/fs/ocfs2/
Dstackglue.c506 ssize_t ret = 0, total = 0, remain = PAGE_SIZE; in ocfs2_loaded_cluster_plugins_show() local
514 total = ret; in ocfs2_loaded_cluster_plugins_show()
519 total = -E2BIG; in ocfs2_loaded_cluster_plugins_show()
522 total += ret; in ocfs2_loaded_cluster_plugins_show()
527 return total; in ocfs2_loaded_cluster_plugins_show()
/linux-4.1.27/drivers/staging/sm750fb/
Dsm750_hw.c621 uint32_t total; in hw_sm750_pan_display() local
628 total = var->yoffset * info->fix.line_length + in hw_sm750_pan_display()
630 total += crtc->oScreen; in hw_sm750_pan_display()
634 PANEL_FB_ADDRESS, ADDRESS, total)); in hw_sm750_pan_display()
638 CRT_FB_ADDRESS, ADDRESS, total)); in hw_sm750_pan_display()
/linux-4.1.27/arch/powerpc/platforms/ps3/
Dmm.c110 u64 total; member
121 DBG("%s:%d: map.total = %llxh\n", func, line, m->total); in _debug_dump_map()
140 return (phys_addr < map.rm.size || phys_addr >= map.total) in ps3_mm_phys_to_lpar()
330 map.total = map.rm.size; in ps3_mm_region_destroy()
1142 r->len = len ? len : _ALIGN_UP(map.total, 1 << r->page_size); in ps3_dma_region_init()
1207 &map.total); in ps3_mm_init()
1223 result = ps3_mm_region_create(&map.r1, map.total - map.rm.size); in ps3_mm_init()
1230 map.total = map.rm.size + map.r1.size; in ps3_mm_init()
1237 map.total - map.rm.size); in ps3_mm_init()
1238 memblock_add(map.rm.size, map.total - map.rm.size); in ps3_mm_init()
/linux-4.1.27/drivers/platform/x86/
Dhdaps.c221 int total, ret = -ENXIO; in hdaps_device_init() local
275 for (total = INIT_TIMEOUT_MSECS; total > 0; total -= INIT_WAIT_MSECS) { in hdaps_device_init()
Dintel_ips.c830 u64 total = 0; in calc_avg_temp() local
835 total += (u64)(array[i] * 100); in calc_avg_temp()
837 do_div(total, IPS_SAMPLE_COUNT); in calc_avg_temp()
839 avg = (u16)total; in calc_avg_temp()
931 u64 total = 0; in calc_avg_power() local
936 total += array[i]; in calc_avg_power()
938 do_div(total, IPS_SAMPLE_COUNT); in calc_avg_power()
939 avg = (u32)total; in calc_avg_power()
Dwmi.c772 u32 i, total; in parse_wdg() local
788 total = obj->buffer.length / sizeof(struct guid_block); in parse_wdg()
790 for (i = 0; i < total; i++) { in parse_wdg()
/linux-4.1.27/arch/mips/pci/
Dops-pmcmsp.c72 unsigned int intcount, total = 0; in show_msp_pci_counts() local
78 total += intcount; in show_msp_pci_counts()
82 seq_printf(m, "total = %u\n", total); in show_msp_pci_counts()
/linux-4.1.27/drivers/input/touchscreen/
Dpenmount.c94 int total = 0; in pm_checkpacket() local
98 total += packet[i]; in pm_checkpacket()
100 return packet[5] == (unsigned char)~(total & 0xff); in pm_checkpacket()
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dlproc_ptlrpc.c264 int total = 0; in ptlrpc_lprocfs_req_history_len_seq_show() local
268 total += svcpt->scp_hist_nrqbds; in ptlrpc_lprocfs_req_history_len_seq_show()
270 seq_printf(m, "%d\n", total); in ptlrpc_lprocfs_req_history_len_seq_show()
280 int total = 0; in ptlrpc_lprocfs_req_history_max_seq_show() local
284 total += svc->srv_hist_nrqbds_cpt_max; in ptlrpc_lprocfs_req_history_max_seq_show()
286 seq_printf(m, "%d\n", total); in ptlrpc_lprocfs_req_history_max_seq_show()
370 int total = 0; in ptlrpc_lprocfs_threads_started_seq_show() local
374 total += svcpt->scp_nthrs_running; in ptlrpc_lprocfs_threads_started_seq_show()
376 seq_printf(m, "%d\n", total); in ptlrpc_lprocfs_threads_started_seq_show()
/linux-4.1.27/drivers/tty/serial/jsm/
Djsm_neo.c290 int total = 0; in neo_copy_data_from_uart_to_queue() local
317 total = 0; in neo_copy_data_from_uart_to_queue()
319 total = readb(&ch->ch_neo_uart->rfifo); in neo_copy_data_from_uart_to_queue()
329 total -= 3; in neo_copy_data_from_uart_to_queue()
338 total = min(total, qleft); in neo_copy_data_from_uart_to_queue()
340 while (total > 0) { in neo_copy_data_from_uart_to_queue()
356 n = min(((u32) total), (RQUEUESIZE - (u32) head)); in neo_copy_data_from_uart_to_queue()
387 total -= n; in neo_copy_data_from_uart_to_queue()
/linux-4.1.27/tools/vm/
Dslabinfo.c423 unsigned long total; in slab_stats() local
474 total = s->deactivate_full + s->deactivate_empty + in slab_stats()
477 if (total) { in slab_stats()
481 s->deactivate_full, (s->deactivate_full * 100) / total); in slab_stats()
483 s->deactivate_empty, (s->deactivate_empty * 100) / total); in slab_stats()
485 s->deactivate_to_head, (s->deactivate_to_head * 100) / total); in slab_stats()
487 s->deactivate_to_tail, (s->deactivate_to_tail * 100) / total); in slab_stats()
489 s->deactivate_bypass, (s->deactivate_bypass * 100) / total); in slab_stats()
491 s->alloc_refill, (s->alloc_refill * 100) / total); in slab_stats()
493 s->alloc_node_mismatch, (s->alloc_node_mismatch * 100) / total); in slab_stats()
/linux-4.1.27/drivers/net/wireless/p54/
Dmain.c660 unsigned int total = 0, i; in p54_flush_count() local
670 total += priv->tx_stats[i].len; in p54_flush_count()
671 return total; in p54_flush_count()
678 unsigned int total, i; in p54_flush() local
693 while ((total = p54_flush_count(priv) && i--)) { in p54_flush()
698 WARN(total, "tx flush timeout, unresponsive firmware"); in p54_flush()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
Dmain.c776 unsigned int *total, u64 multicast) in wl1251_op_configure_filter() argument
784 *total &= WL1251_SUPPORTED_FILTERS; in wl1251_op_configure_filter()
798 if (*total & FIF_PROMISC_IN_BSS) { in wl1251_op_configure_filter()
802 if (*total & FIF_ALLMULTI) in wl1251_op_configure_filter()
808 if (*total & FIF_FCSFAIL) in wl1251_op_configure_filter()
810 if (*total & FIF_BCN_PRBRESP_PROMISC) { in wl1251_op_configure_filter()
814 if (*total & FIF_CONTROL) in wl1251_op_configure_filter()
816 if (*total & FIF_OTHER_BSS || is_zero_ether_addr(wl->bssid)) in wl1251_op_configure_filter()
818 if (*total & FIF_PROBE_REQ) in wl1251_op_configure_filter()
828 if (*total & FIF_ALLMULTI || *total & FIF_PROMISC_IN_BSS) in wl1251_op_configure_filter()
/linux-4.1.27/arch/unicore32/mm/
Dinit.c62 int free = 0, total = 0, reserved = 0; in show_mem() local
81 total++; in show_mem()
96 printk(KERN_DEFAULT "%d pages of RAM\n", total); in show_mem()
/linux-4.1.27/fs/ceph/
Ddebugfs.c130 int total, avail, used, reserved, min; in caps_show() local
132 ceph_reservation_status(fsc, &total, &avail, &used, &reserved, &min); in caps_show()
138 total, avail, used, reserved, min); in caps_show()
/linux-4.1.27/Documentation/cpu-freq/
Dcpufreq-stats.txt44 total 0
70 This gives the total number of frequency transitions on this CPU. The cat
71 output will have a single count which is the total number of frequency
/linux-4.1.27/scripts/
Dkallsyms.c303 int c, rlen, total=0; in expand_symbol() local
311 total++; in expand_symbol()
315 total += rlen; in expand_symbol()
323 return total; in expand_symbol()
/linux-4.1.27/drivers/crypto/qce/
Dsha.c240 unsigned int total, len; in qce_ahash_update() local
249 total = req->nbytes + rctx->buflen; in qce_ahash_update()
251 if (total <= blocksize) { in qce_ahash_update()
270 hash_later = total % blocksize; in qce_ahash_update()
278 nbytes = total - hash_later; in qce_ahash_update()
/linux-4.1.27/fs/gfs2/
Dlops.c421 unsigned int total, struct list_head *blist, in gfs2_before_commit() argument
434 while(total) { in gfs2_before_commit()
435 num = total; in gfs2_before_commit()
436 if (total > limit) in gfs2_before_commit()
488 BUG_ON(total < num); in gfs2_before_commit()
489 total -= num; in gfs2_before_commit()
Dsuper.h41 extern void gfs2_statfs_change(struct gfs2_sbd *sdp, s64 total, s64 free,
/linux-4.1.27/drivers/misc/mic/host/
Dmic_virtio.c195 u32 total = iov->consumed; in mic_vringh_iov_consumed() local
198 total += iov->iov[i].iov_len; in mic_vringh_iov_consumed()
199 return total; in mic_vringh_iov_consumed()
330 u32 total = 0; in _mic_virtio_copy() local
333 total += mic_vringh_iov_consumed(riov); in _mic_virtio_copy()
334 total += mic_vringh_iov_consumed(wiov); in _mic_virtio_copy()
335 vringh_complete_kern(vrh, *head, total); in _mic_virtio_copy()
/linux-4.1.27/drivers/staging/dgnc/
Ddgnc_neo.c1107 int total = 0; in neo_copy_data_from_uart_to_queue() local
1138 total = 0; in neo_copy_data_from_uart_to_queue()
1140 total = readb(&ch->ch_neo_uart->rfifo); in neo_copy_data_from_uart_to_queue()
1151 total -= 1; in neo_copy_data_from_uart_to_queue()
1153 total -= 3; in neo_copy_data_from_uart_to_queue()
1163 total = min(total, qleft); in neo_copy_data_from_uart_to_queue()
1165 while (total > 0) { in neo_copy_data_from_uart_to_queue()
1182 n = min(((uint) total), (RQUEUESIZE - (uint) head)); in neo_copy_data_from_uart_to_queue()
1214 total -= n; in neo_copy_data_from_uart_to_queue()
/linux-4.1.27/drivers/tty/serial/
Dioc3_serial.c681 int prod_ptr, cons_ptr, total = 0; in do_write() local
713 total++; in do_write()
735 if (total > 0 && !(port->ip_sscr & SSCR_DMA_EN)) { in do_write()
749 if (total > 0) in do_write()
754 return total; in do_write()
1119 int prod_ptr, cons_ptr, total; in do_read() local
1210 total = 0; in do_read()
1257 if (total > 0) { in do_read()
1327 if (total > 0) { in do_read()
1356 total++; in do_read()
[all …]
Dioc4_serial.c1404 int prod_ptr, cons_ptr, total = 0; in do_write() local
1436 total++; in do_write()
1459 if (total > 0 && !(port->ip_sscr & IOC4_SSCR_DMA_EN)) { in do_write()
1473 if (total > 0) in do_write()
1477 return total; in do_write()
2068 int prod_ptr, cons_ptr, total; in do_read() local
2159 total = 0; in do_read()
2207 if (total > 0) { in do_read()
2277 if (total > 0) { in do_read()
2305 total++; in do_read()
[all …]
/linux-4.1.27/include/crypto/internal/
Dhash.h31 unsigned int total; member
72 return !(walk->entrylen | walk->total); in crypto_hash_walk_last()
/linux-4.1.27/lib/zlib_inflate/
Dinflate.h80 unsigned long total; /* protected copy of output count */ member
Dinflate.c29 strm->total_in = strm->total_out = state->total = 0; in zlib_inflateReset()
683 state->total += out; in zlib_inflate()
724 state->total += out; in zlib_inflate()
782 state->total += z->avail_in; in zlib_inflateIncomp()
/linux-4.1.27/fs/pstore/
Dplatform.c274 unsigned long total = 0; in pstore_dump() local
293 while (total < kmsg_bytes) { in pstore_dump()
342 total += total_len; in pstore_dump()
/linux-4.1.27/drivers/ata/
Dpata_hpt3x2n.c420 u32 total = 0; in hpt3x2n_pci_clock() local
427 total += sr & 0x1FF; in hpt3x2n_pci_clock()
430 fcnt = total / 128; in hpt3x2n_pci_clock()
Dpata_hpt37x.c954 u32 total = 0; in hpt37x_init_one() local
961 total += sr & 0x1FF; in hpt37x_init_one()
964 freq = total / 128; in hpt37x_init_one()
/linux-4.1.27/drivers/gpu/drm/i915/
Di915_gem_gtt.c839 ppgtt->base.total = max_pdp * I915_PDES * GEN8_PTES * PAGE_SIZE; in gen8_ppgtt_init()
1323 0, dev_priv->gtt.base.total, in gen6_ppgtt_allocate_page_directories()
1329 0, dev_priv->gtt.base.total, in gen6_ppgtt_allocate_page_directories()
1407 ppgtt->base.total = ppgtt->num_pd_entries * GEN6_PTES * PAGE_SIZE; in gen6_ppgtt_init()
1417 ppgtt->base.clear_range(&ppgtt->base, 0, ppgtt->base.total, true); in gen6_ppgtt_init()
1419 gen6_scratch_va_range(ppgtt, 0, ppgtt->base.total); in gen6_ppgtt_init()
1421 gen6_write_page_range(dev_priv, &ppgtt->pd, 0, ppgtt->base.total); in gen6_ppgtt_init()
1444 return gen8_ppgtt_init(ppgtt, dev_priv->gtt.base.total); in __hw_ppgtt_init()
1455 ppgtt->base.total); in i915_ppgtt_init()
1650 dev_priv->gtt.base.total, in i915_gem_suspend_gtt_mappings()
[all …]
Di915_gem_gtt.h43 #define gtt_total_entries(gtt) ((gtt).base.total >> PAGE_SHIFT)
236 size_t total; /* size addr space maps (ex. 2GB for ggtt) */ member
Di915_gem_execbuffer.c791 int i, total, ret; in i915_gem_execbuffer_relocate_slow() local
806 total = 0; in i915_gem_execbuffer_relocate_slow()
808 total += exec[i].relocation_count; in i915_gem_execbuffer_relocate_slow()
811 reloc = drm_malloc_ab(total, sizeof(*reloc)); in i915_gem_execbuffer_relocate_slow()
819 total = 0; in i915_gem_execbuffer_relocate_slow()
827 if (copy_from_user(reloc+total, user_relocs, in i915_gem_execbuffer_relocate_slow()
853 reloc_offset[i] = total; in i915_gem_execbuffer_relocate_slow()
854 total += exec[i].relocation_count; in i915_gem_execbuffer_relocate_slow()
Di915_vgpu.c185 unsigned long ggtt_vm_end = ggtt_vm->start + ggtt_vm->total; in intel_vgt_balloon()
Di915_gem_evict.c110 if (start != 0 || end != vm->total) { in i915_gem_evict_something()
/linux-4.1.27/arch/arm/mm/
Dcache-v4wb.S112 sub r3, r1, r0 @ calculate total size
116 cmp r3, #CACHE_DLIMIT @ total size >= limit?
Dcache-fa.S89 sub r3, r1, r0 @ calculate total size
90 cmp r3, #CACHE_DLIMIT @ total size >= limit?
Dcache-v4wt.S88 sub r3, r1, r0 @ calculate total size
/linux-4.1.27/drivers/usb/usbip/
Dusbip_common.c330 int total = 0; in usbip_recv() local
357 sock, buf, size, result, total); in usbip_recv()
363 total += result; in usbip_recv()
375 osize, result, size, total); in usbip_recv()
378 return total; in usbip_recv()
/linux-4.1.27/drivers/spi/
Dspidev.c226 unsigned n, total, tx_total, rx_total; in spidev_message() local
241 total = 0; in spidev_message()
249 total += k_tmp->len; in spidev_message()
255 if (total > INT_MAX || k_tmp->len > INT_MAX) { in spidev_message()
328 status = total; in spidev_message()
/linux-4.1.27/drivers/gpu/host1x/
Djob.c40 u64 total; in host1x_job_alloc() local
44 total = sizeof(struct host1x_job) + in host1x_job_alloc()
51 if (total > ULONG_MAX) in host1x_job_alloc()
54 mem = job = kzalloc(total, GFP_KERNEL); in host1x_job_alloc()
/linux-4.1.27/Documentation/input/
Damijoy.txt71 controller ports (8 total) plus 8 miscellaneous control bits
82 (4 counters total). The bit usage for both left and right
131 (4 counters total). The bit assignment for both
/linux-4.1.27/fs/ocfs2/dlm/
Ddlmdebug.c389 unsigned long total = 0; in debug_purgelist_print() local
396 ++total; in debug_purgelist_print()
409 out += snprintf(buf + out, len - out, "Total on list: %lu\n", total); in debug_purgelist_print()
446 unsigned long total = 0, longest = 0, bucket_count = 0; in debug_mle_print() local
455 ++total; in debug_mle_print()
467 "Total: %lu, Longest: %lu\n", total, longest); in debug_mle_print()
/linux-4.1.27/Documentation/devicetree/bindings/gpio/
Dgpio-xgene.txt4 This gpio controller controls a total of 48 gpios.
/linux-4.1.27/include/linux/
Dflex_array.h64 struct flex_array *flex_array_alloc(int element_size, unsigned int total,
/linux-4.1.27/drivers/scsi/
Dmac53c94.c363 int i, dma_cmd, total, nseg; in set_dma_cmds() local
377 total = 0; in set_dma_cmds()
384 total += dma_len; in set_dma_cmds()
395 cmd->SCp.this_residual = total; in set_dma_cmds()
Dst.c1568 ssize_t total; in st_write() local
1660 total = count; in st_write()
1818 if (count < total) in st_write()
1819 retval = total - count; in st_write()
1828 retval = total - count; in st_write()
2040 ssize_t total; in st_read() local
2112 for (total = 0, special = 0; total < count && !special;) { in st_read()
2116 special = read_tape(STp, count - total, &SRpnt); in st_read()
2130 (int)(count - total)); in st_read()
2132 transfer = STbp->buffer_bytes < count - total ? in st_read()
[all …]
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Ddevice.c464 dev->rdev.stats.pd.total, dev->rdev.stats.pd.cur, in stats_show()
467 dev->rdev.stats.qid.total, dev->rdev.stats.qid.cur, in stats_show()
470 dev->rdev.stats.stag.total, dev->rdev.stats.stag.cur, in stats_show()
473 dev->rdev.stats.pbl.total, dev->rdev.stats.pbl.cur, in stats_show()
476 dev->rdev.stats.rqt.total, dev->rdev.stats.rqt.cur, in stats_show()
479 dev->rdev.stats.ocqp.total, dev->rdev.stats.ocqp.cur, in stats_show()
832 rdev->stats.pd.total = T4_MAX_NUM_PD; in c4iw_rdev_open()
833 rdev->stats.stag.total = rdev->lldi.vr->stag.size; in c4iw_rdev_open()
834 rdev->stats.pbl.total = rdev->lldi.vr->pbl.size; in c4iw_rdev_open()
835 rdev->stats.rqt.total = rdev->lldi.vr->rq.size; in c4iw_rdev_open()
[all …]
/linux-4.1.27/drivers/media/rc/keymaps/
DMakefile93 rc-total-media-in-hand.o \
94 rc-total-media-in-hand-02.o \
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_ttm.c112 u32 total = 0, free = 0; in nouveau_vram_manager_debug() local
120 total += r->length; in nouveau_vram_manager_debug()
127 prefix, (u64)total << 12, (u64)free << 12); in nouveau_vram_manager_debug()
/linux-4.1.27/arch/tile/mm/
Dpgtable.c65 unsigned long flags, order, total = 0, largest_order = -1; in show_mem() local
73 total += nr << order; in show_mem()
80 K(total), largest_order ? K(1UL) << largest_order : 0); in show_mem()
/linux-4.1.27/drivers/i2c/busses/
Di2c-qup.c250 int total = msg->len + 1; in qup_i2c_set_write_mode() local
252 if (total < qup->out_fifo_sz) { in qup_i2c_set_write_mode()
255 writel(total, qup->base + QUP_MX_WRITE_CNT); in qup_i2c_set_write_mode()
260 writel(total, qup->base + QUP_MX_OUTPUT_CNT); in qup_i2c_set_write_mode()
/linux-4.1.27/Documentation/device-mapper/
Dera.txt49 <metadata block size> <#used metadata blocks>/<#total metadata blocks>
55 #total metadata blocks : Total number of metadata blocks
Dstatistics.txt16 provided: total time spent reading and writing in milliseconds. All
129 12. the total time spent reading in milliseconds
130 13. the total time spent writing in milliseconds
/linux-4.1.27/tools/perf/ui/browsers/
Dhists.c563 unsigned short row, u64 total, in hist_browser__show_callchain() argument
606 double percent = cumul * 100.0 / total; in hist_browser__show_callchain()
631 new_total = total; in hist_browser__show_callchain()
816 u64 total = hists__total_period(entry->hists); in hist_browser__show_entry() local
824 total = entry->stat_acc->period; in hist_browser__show_entry()
826 total = entry->stat.period; in hist_browser__show_entry()
830 &entry->sorted_chain, 1, row, total, in hist_browser__show_entry()
1093 u64 total = hists__total_period(he->hists); in hist_browser__fprintf_callchain() local
1099 total = he->stat_acc->period; in hist_browser__fprintf_callchain()
1101 hist_browser__show_callchain(browser, &he->sorted_chain, 1, 0, total, in hist_browser__fprintf_callchain()
/linux-4.1.27/drivers/gpu/drm/gma500/
Dgtt.c566 unsigned int restored = 0, total = 0, size = 0; in psb_gtt_restore() local
580 total++; in psb_gtt_restore()
584 total, (size / 1024)); in psb_gtt_restore()
Dintel_bios.c36 u16 total, current_size; in find_section() local
41 total = bdb->bdb_size; in find_section()
44 while (index < total) { in find_section()
/linux-4.1.27/Documentation/scheduler/
Dsched-deadline.txt144 If the total utilisation sum_i(WCET_i/P_i) is larger than M (with M equal
147 Note that total utilisation is defined as the sum of the utilisations
151 Moreover, if the total utilisation is larger than M, then we risk starving
153 If, instead, the total utilisation is smaller than M, then non real-time
169 of all the tasks executing on a CPU if and only if the total utilisation
181 However, as previously stated, enforcing that the total utilisation is smaller
221 correctly schedule a set of real-time tasks is that the total utilisation
245 interface we can put a cap on total utilization of -deadline tasks (i.e.,
374 priority 10, executes for 20ms every 150ms. The test will run for a total
Dsched-bwc.txt26 cpu.cfs_quota_us: the total available run-time within a period (in microseconds)
71 - throttled_time: The total time duration (in nanoseconds) for which entities
/linux-4.1.27/arch/ia64/kernel/
Dsetup.c279 static void __init setup_crashkernel(unsigned long total, int *n) in setup_crashkernel() argument
284 ret = parse_crashkernel(boot_command_line, total, in setup_crashkernel()
308 (unsigned long)(total >> 20)); in setup_crashkernel()
326 static inline void __init setup_crashkernel(unsigned long total, int *n) in setup_crashkernel() argument
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dport.c66 table->total = 0; in mlx4_init_mac_table()
79 table->total = 0; in mlx4_init_vlan_table()
191 if (table->total == table->max) { in __mlx4_register_mac()
209 ++table->total; in __mlx4_register_mac()
278 --table->total; in __mlx4_unregister_mac()
386 if (table->total == table->max) { in __mlx4_register_vlan()
426 ++table->total; in __mlx4_register_vlan()
477 --table->total; in __mlx4_unregister_vlan()
/linux-4.1.27/tools/perf/util/
Dkvm-stat.h29 struct kvm_event_stats total; member
/linux-4.1.27/drivers/block/drbd/
Ddrbd_proc.c100 unsigned long total = 1UL + (*rs_total >> shift); in drbd_get_syncer_progress() local
101 unsigned long tmp = 1000UL - left * 1000UL/total; in drbd_get_syncer_progress()
/linux-4.1.27/Documentation/filesystems/
Domfs.txt94 __be32 e_extent_count; /* total # extents in this table */
101 being ~0 and e_blocks being ones'-complement of the total number of blocks
/linux-4.1.27/Documentation/arm/
DSetup23 This is the total number of pages of memory in the system. If
24 the memory is banked, then this should contain the total number
/linux-4.1.27/drivers/cpufreq/
Dintel_pstate.c350 int total, no_turbo, turbo_pct; in show_turbo_pct() local
355 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct()
357 turbo_fp = div_fp(int_tofp(no_turbo), int_tofp(total)); in show_turbo_pct()
366 int total; in show_num_pstates() local
369 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_num_pstates()
370 return sprintf(buf, "%u\n", total); in show_num_pstates()
/linux-4.1.27/Documentation/trace/
Dfunction-graph-fold.vim6 " functions. While closed, a fold will show the total time taken for a call,
/linux-4.1.27/drivers/usb/gadget/legacy/
Dinode.c1762 unsigned total; in dev_config() local
1797 total = le16_to_cpu(dev->config->wTotalLength); in dev_config()
1798 if (!is_valid_config (dev->config) || total >= length) in dev_config()
1800 kbuf += total; in dev_config()
1801 length -= total; in dev_config()
1806 total = le16_to_cpu(dev->hs_config->wTotalLength); in dev_config()
1807 if (!is_valid_config (dev->hs_config) || total >= length) in dev_config()
1809 kbuf += total; in dev_config()
1810 length -= total; in dev_config()
/linux-4.1.27/Documentation/devicetree/bindings/usb/
Dsamsung-usbphy.txt38 The size of this register is the total sum of size of all PHY_CONTROL
94 The size of this register is the total sum of size of all PHY_CONTROL
/linux-4.1.27/Documentation/devicetree/bindings/soc/ti/
Dkeystone-navigator-qmss.txt22 - queue-range : <start number> total range of queue numbers for the device.
23 - linkram0 : <address size> for internal link ram, where size is the total
25 - linkram1 : <address size> for external link ram, where size is the total
/linux-4.1.27/arch/mips/kernel/
Dsetup.c571 unsigned long long total; in get_total_mem() local
573 total = max_pfn - min_low_pfn; in get_total_mem()
574 return total << PAGE_SHIFT; in get_total_mem()
/linux-4.1.27/net/tipc/
Dserver.c616 int total = 0; in tipc_server_stop() local
620 for (id = 0; total < s->idr_in_use; id++) { in tipc_server_stop()
623 total++; in tipc_server_stop()
/linux-4.1.27/drivers/tty/hvc/
Dhvsi.c924 int total = 0; in hvsi_write() local
949 total += chunksize; in hvsi_write()
966 if (total != origcount) in hvsi_write()
968 total); in hvsi_write()
970 return total; in hvsi_write()
/linux-4.1.27/include/net/
Dinetpeer.h65 int total; member
/linux-4.1.27/Documentation/sysctl/
Dvm.txt134 Contains, as a percentage of total available memory that contains free pages
138 The total avaiable memory is not equal to total system memory.
169 Contains, as a percentage of total available memory that contains free pages
173 The total avaiable memory is not equal to total system memory.
352 = (total sums of present_pages from zone[i+1] to zone[j] on the node)
363 256 means 1/256. # of protection pages becomes about "0.39%" of total present
444 A percentage of the total pages in each zone. On Zone reclaim
462 This is a percentage of the total pages in each zone. Zone reclaim will
688 Because other nodes' memory may be free. This means system total status
/linux-4.1.27/scripts/kconfig/
Dnconf.gui.c178 int total = 1; in get_line_no() local
185 total++; in get_line_no()
186 return total; in get_line_no()
/linux-4.1.27/Documentation/devicetree/bindings/thermal/
Ddb8500-thermal.txt9 - num-trips : number of total trip points, this is required, set it 0 if none,
/linux-4.1.27/include/drm/
Ddrm_legacy.h50 int total; /**< Buffer size */ member
/linux-4.1.27/drivers/isdn/hisax/
Dhfc_pci.c276 int total, maxlen, new_z2; in hfcpci_empty_fifo() local
299 total = count; in hfcpci_empty_fifo()
333 int rcnt, total; in receive_dmsg() local
364 total = rcnt; in receive_dmsg()
383 df->za[df->f2 & D_FREG_MASK].z2 = (zp->z2 + total) & (D_FIFO_SIZE - 1); in receive_dmsg()
837 int total, maxlen, new_z2; in receive_emsg() local
872 total = rcnt; in receive_emsg()
894 if ((total - 3) < MAX_DLOG_SPACE / 3 - 10) { in receive_emsg()
900 ptr += QuickHex(ptr, e_buffer, total - 3); in receive_emsg()
906 HiSax_putstatus(cs, "LogEcho: ", "warning Frame too big (%d)", total - 3); in receive_emsg()
/linux-4.1.27/arch/mn10300/mm/
Dcache-inv-by-reg.S146 sub d0,d1,d2 # calculate the total size
/linux-4.1.27/tools/perf/Documentation/
Dperf-script-perl.txt208 nsecs($secs, $nsecs) - returns total nsecs given secs/nsecs pair
212 avg($total, $n) - returns average given a sum and a total number of values
/linux-4.1.27/drivers/md/persistent-data/
Ddm-btree-remove.c304 unsigned total = nr_left + nr_center + nr_right; in redistribute3() local
305 unsigned target_right = total / 3; in redistribute3()
306 unsigned remainder = (target_right * 3) != total; in redistribute3()
/linux-4.1.27/drivers/video/
Dvgastate.c371 int total; in save_vga() local
381 total = state->num_attr + state->num_crtc + in save_vga()
384 saved->attr = vmalloc(total); in save_vga()
/linux-4.1.27/arch/arm/kernel/
Dsetup.c851 unsigned long total; in get_total_mem() local
853 total = max_low_pfn - min_low_pfn; in get_total_mem()
854 return total << PAGE_SHIFT; in get_total_mem()
/linux-4.1.27/drivers/net/
Dmacvtap.c805 int total; in macvtap_put_user() local
821 total = vnet_hdr_len; in macvtap_put_user()
822 total += skb->len; in macvtap_put_user()
833 total += VLAN_HLEN; in macvtap_put_user()
848 return ret ? ret : total; in macvtap_put_user()
/linux-4.1.27/drivers/media/i2c/m5mols/
Dm5mols_capture.c101 info->cap.total = info->cap.main + info->cap.thumb; in m5mols_capture_info()
/linux-4.1.27/arch/s390/kernel/
Dhead.S130 br %r4 # r2 contains the total size
133 ahi %r2,0x640 # add 0x640 to total size
/linux-4.1.27/drivers/usb/misc/
Dusbtest.c848 unsigned total, num, length; in ch9_postconfig() local
859 total = le16_to_cpu(bos->wTotalLength); in ch9_postconfig()
862 if (total > TBUF_SIZE) in ch9_postconfig()
863 total = TBUF_SIZE; in ch9_postconfig()
870 total); in ch9_postconfig()
871 if (retval != total) { in ch9_postconfig()
882 dev->buf + total) in ch9_postconfig()
897 dev->buf + total || in ch9_postconfig()
905 dev->buf + total || in ch9_postconfig()
913 dev->buf + total || in ch9_postconfig()
/linux-4.1.27/fs/nilfs2/
Dioctl.c68 size_t maxmembs, total, n; in nilfs_ioctl_wrap_copy() local
93 total = 0; in nilfs_ioctl_wrap_copy()
117 total += nr; in nilfs_ioctl_wrap_copy()
123 argv->v_nmembs = total; in nilfs_ioctl_wrap_copy()
/linux-4.1.27/drivers/atm/
Dambassador.c1514 size_t total = 0; in create_queues() local
1520 total += cmds * sizeof(command); in create_queues()
1522 total += txs * (sizeof(tx_in) + sizeof(tx_out)); in create_queues()
1525 total += rxs[pool] * (sizeof(rx_in) + sizeof(rx_out)); in create_queues()
1527 memory = kmalloc (total, GFP_KERNEL); in create_queues()
1532 if (check_area (memory, total)) { in create_queues()
1538 limit = memory + total; in create_queues()
1618 kfree (limit - total); in create_queues()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dtx.c1037 int total[NUM_TX_QUEUES]; in wl1271_tx_reset_link_queues() local
1041 total[i] = 0; in wl1271_tx_reset_link_queues()
1052 total[i]++; in wl1271_tx_reset_link_queues()
1058 wl->tx_queue_count[i] -= total[i]; in wl1271_tx_reset_link_queues()
1060 lnk->wlvif->tx_queue_count[i] -= total[i]; in wl1271_tx_reset_link_queues()
/linux-4.1.27/drivers/block/xen-blkback/
Dblkback.c355 unsigned int num_clean, total; in purge_persistent_gnt() local
386 total = num_clean; in purge_persistent_gnt()
431 blkif->persistent_gnt_c -= (total - num_clean); in purge_persistent_gnt()
436 pr_debug("Purged %u/%u\n", (total - num_clean), total); in purge_persistent_gnt()
/linux-4.1.27/drivers/gpu/drm/i810/
Di810_dma.c137 buf_priv->virtual = (void *)vm_mmap(file_priv->filp, 0, buf->total, in i810_map_buffer()
161 (size_t) buf->total); in i810_unmap_buffer()
193 d->request_size = buf->total; in i810_dma_get_buffer()
229 if (buf_priv->kernel_virtual && buf->total) in i810_dma_cleanup()
304 buf_priv->map.size = buf->total; in i810_freelist_init()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dr600_blit.c631 if ((dev_priv->blit_vb->used + 48) > dev_priv->blit_vb->total) { in r600_blit_copy()
720 if ((dev_priv->blit_vb->used + 48) > dev_priv->blit_vb->total) { in r600_blit_copy()
797 if ((dev_priv->blit_vb->used + 48) > dev_priv->blit_vb->total) { in r600_blit_swap()
/linux-4.1.27/arch/parisc/mm/
Dinit.c648 int total = 0,reserved = 0; in show_mem() local
664 total += zone->present_pages; in show_mem()
670 printk(KERN_INFO "%d pages of RAM\n", total); in show_mem()

123