/openbmc/linux/drivers/platform/x86/hp/hp-bioscfg/ |
H A D | surestart-attributes.c | 34 u32 count = 0; in audit_log_entry_count_show() local 38 &count, 1, sizeof(count)); in audit_log_entry_count_show() 43 return sysfs_emit(buf, "%d,%d,%d\n", count, LOG_ENTRY_SIZE, in audit_log_entry_count_show() 55 u32 count = 0; in audit_log_entries_show() local 61 &count, 1, sizeof(count)); in audit_log_entries_show() 70 if (count * LOG_ENTRY_SIZE > PAGE_SIZE) in audit_log_entries_show() 77 for (i = 0; i < count; i++) { in audit_log_entries_show()
|
/openbmc/linux/arch/arm/kernel/ |
H A D | io.c | 45 void _memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) in _memcpy_fromio() argument 48 while (count) { in _memcpy_fromio() 49 count--; in _memcpy_fromio() 61 void _memcpy_toio(volatile void __iomem *to, const void *from, size_t count) in _memcpy_toio() argument 64 while (count) { in _memcpy_toio() 65 count--; in _memcpy_toio() 77 void _memset_io(volatile void __iomem *dst, int c, size_t count) in _memset_io() argument 79 while (count) { in _memset_io() 80 count--; in _memset_io()
|
/openbmc/u-boot/drivers/tpm/ |
H A D | tpm_tis_infineon.c | 75 int count; in tpm_tis_i2c_read() local 80 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read() 93 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read() 107 for (count = 0; count < MAX_COUNT; count++) { in tpm_tis_i2c_read() 130 int count; in tpm_tis_i2c_write_generic() local 141 for (count = 0; count < max_count; count++) { in tpm_tis_i2c_write_generic() 343 static int tpm_tis_i2c_recv_data(struct udevice *dev, u8 *buf, size_t count) in tpm_tis_i2c_recv_data() argument 350 while (size < count) { in tpm_tis_i2c_recv_data() 358 if (burstcnt > (count - size)) in tpm_tis_i2c_recv_data() 359 burstcnt = count - size; in tpm_tis_i2c_recv_data() [all …]
|
/openbmc/linux/drivers/parisc/ |
H A D | pdc_stable.c | 99 ssize_t (*store)(struct pdcspath_entry *entry, const char *buf, size_t count); 264 pdcspath_hwpath_write(struct pdcspath_entry *entry, const char *buf, size_t count) in pdcspath_hwpath_write() argument 272 if (!entry || !buf || !count) in pdcspath_hwpath_write() 276 count = min_t(size_t, count, sizeof(in)-1); in pdcspath_hwpath_write() 277 strscpy(in, buf, count + 1); in pdcspath_hwpath_write() 330 return count; in pdcspath_hwpath_write() 379 pdcspath_layer_write(struct pdcspath_entry *entry, const char *buf, size_t count) in pdcspath_layer_write() argument 385 if (!entry || !buf || !count) in pdcspath_layer_write() 389 count = min_t(size_t, count, sizeof(in)-1); in pdcspath_layer_write() 390 strscpy(in, buf, count + 1); in pdcspath_layer_write() [all …]
|
/openbmc/u-boot/arch/powerpc/lib/ |
H A D | _ashrdi3.S | 34 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count 36 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count) 37 rlwinm r8,r7,0,32 # t3 = (count < 32) ? 32 : 0 38 sraw r7,r3,r7 # t2 = MSW >> (count-32) 40 slw r7,r7,r8 # t2 = (count < 32) ? 0 : t2 41 sraw r3,r3,r5 # MSW = MSW >> count
|
/openbmc/linux/arch/m68k/lib/ |
H A D | memset.c | 10 void *memset(void *s, int c, size_t count) in memset() argument 15 if (!count) in memset() 24 count--; in memset() 26 if (count > 2 && (long)s & 2) { in memset() 30 count -= 2; in memset() 32 temp = count >> 2; in memset() 63 if (count & 2) { in memset() 68 if (count & 1) { in memset()
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-sysparam.c | 123 struct kobj_attribute *kobj_attr, const char *buf, size_t count) in sys_param_store() argument 130 if (count > MAX_PARAM_DATA_LEN) in sys_param_store() 131 count = MAX_PARAM_DATA_LEN; in sys_param_store() 134 memcpy(param_data_buf, buf, count); in sys_param_store() 139 ret = count; in sys_param_store() 148 int count, i; in opal_sys_param_init() local 181 count = of_property_count_strings(sysparam, "param-name"); in opal_sys_param_init() 182 if (count < 0) { in opal_sys_param_init() 188 id = kcalloc(count, sizeof(*id), GFP_KERNEL); in opal_sys_param_init() 195 size = kcalloc(count, sizeof(*size), GFP_KERNEL); in opal_sys_param_init() [all …]
|
/openbmc/u-boot/lib/ |
H A D | tpm_api.c | 114 u32 tpm_nv_read_value(struct udevice *dev, u32 index, void *data, u32 count) in tpm_nv_read_value() argument 117 return tpm1_nv_read_value(dev, index, data, count); in tpm_nv_read_value() 119 return tpm2_nv_read_value(dev, index, data, count); in tpm_nv_read_value() 125 u32 count) in tpm_nv_write_value() argument 128 return tpm1_nv_write_value(dev, index, data, count); in tpm_nv_write_value() 130 return tpm2_nv_write_value(dev, index, data, count); in tpm_nv_write_value() 164 u32 tpm_pcr_read(struct udevice *dev, u32 index, void *data, size_t count) in tpm_pcr_read() argument 167 return tpm1_pcr_read(dev, index, data, count); in tpm_pcr_read() 201 u32 tpm_read_pubek(struct udevice *dev, void *data, size_t count) in tpm_read_pubek() argument 204 return tpm1_read_pubek(dev, data, count); in tpm_read_pubek() [all …]
|
/openbmc/qemu/tests/tcg/plugins/ |
H A D | bb.c | 32 static void gen_one_cpu_report(CPUCount *count, GString *report, in gen_one_cpu_report() argument 35 if (count->bb_count) { in gen_one_cpu_report() 39 count->bb_count, count->insn_count); in gen_one_cpu_report() 48 CPUCount *count = qemu_plugin_scoreboard_find(counts, i); in plugin_exit() local 49 gen_one_cpu_report(count, report, i); in plugin_exit() 61 CPUCount *count = qemu_plugin_scoreboard_find(counts, cpu_index); in vcpu_idle() local 63 gen_one_cpu_report(count, report, cpu_index); in vcpu_idle() 73 CPUCount *count = qemu_plugin_scoreboard_find(counts, cpu_index); in vcpu_tb_exec() local 76 count->insn_count += n_insns; in vcpu_tb_exec() 77 count->bb_count++; in vcpu_tb_exec()
|
/openbmc/linux/drivers/net/hamradio/ |
H A D | 6pack.c | 168 int actual, count; in sp_encaps() local 190 count = encode_sixpack(p, sp->xbuff, len, sp->tx_delay); in sp_encaps() 219 actual = sp->tty->ops->write(sp->tty, sp->xbuff, count); in sp_encaps() 220 sp->xleft = count - actual; in sp_encaps() 225 sp->xleft = count; in sp_encaps() 227 sp->status2 = count; in sp_encaps() 335 int count; in sp_bump() local 338 count = sp->rcount + 1; in sp_bump() 340 sp->dev->stats.rx_bytes += count; in sp_bump() 342 if ((skb = dev_alloc_skb(count + 1)) == NULL) in sp_bump() [all …]
|
/openbmc/linux/drivers/tty/hvc/ |
H A D | hvc_dcc.c | 57 static int hvc_dcc_put_chars(uint32_t vt, const char *buf, int count) in hvc_dcc_put_chars() argument 61 for (i = 0; i < count; i++) { in hvc_dcc_put_chars() 68 return count; in hvc_dcc_put_chars() 71 static int hvc_dcc_get_chars(uint32_t vt, char *buf, int count) in hvc_dcc_get_chars() argument 75 for (i = 0; i < count; ++i) in hvc_dcc_get_chars() 175 static int hvc_dcc0_put_chars(u32 vt, const char *buf, int count) in hvc_dcc0_put_chars() argument 181 return hvc_dcc_put_chars(vt, buf, count); in hvc_dcc0_put_chars() 185 len = kfifo_in(&outbuf, buf, count); in hvc_dcc0_put_chars() 204 len = hvc_dcc_put_chars(vt, buf, count); in hvc_dcc0_put_chars() 214 static int hvc_dcc0_get_chars(u32 vt, char *buf, int count) in hvc_dcc0_get_chars() argument [all …]
|
/openbmc/u-boot/drivers/mtd/ubi/ |
H A D | upd.c | 272 const void __user *buf, int count) in ubi_more_update_data() argument 275 int lnum, offs, err = 0, len, to_write = count; in ubi_more_update_data() 277 int lnum, err = 0, len, to_write = count; in ubi_more_update_data() 282 count, vol->upd_bytes, vol->upd_received); in ubi_more_update_data() 288 if (vol->upd_received + count > vol->upd_bytes) in ubi_more_update_data() 289 to_write = count = vol->upd_bytes - vol->upd_received; in ubi_more_update_data() 304 if (len > count) in ubi_more_update_data() 305 len = count; in ubi_more_update_data() 327 count -= len; in ubi_more_update_data() 336 while (count) { in ubi_more_update_data() [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | fdt.c | 21 int i, j, count; in ppc_create_page_sizes_prop() local 30 for (count = 0; count < PPC_PAGE_SIZES_MAX_SZ; count++) { in ppc_create_page_sizes_prop() 31 if (sps->enc[count].page_shift == 0) { in ppc_create_page_sizes_prop() 35 if ((p - prop) >= (maxcells - 3 - count * 2)) { in ppc_create_page_sizes_prop() 40 *(p++) = cpu_to_be32(count); in ppc_create_page_sizes_prop() 41 for (j = 0; j < count; j++) { in ppc_create_page_sizes_prop()
|
/openbmc/qemu/hw/hyperv/ |
H A D | hv-balloon-our_range_memslots.c | 16 static void our_range_init(OurRange *our_range, uint64_t start, uint64_t count) in our_range_init() argument 18 assert(count <= UINT64_MAX - start); in our_range_init() 20 our_range->range.count = count; in our_range_init() 52 our_range->range.count); in hvb_our_range_mark_added() 64 assert(memslots->count > 0); in our_range_memslots_init_slots() 65 memslots->slots = g_new0(MemoryRegion, memslots->count); in our_range_memslots_init_slots() 69 for (idx = 0, memslot_offset = 0; idx < memslots->count; in our_range_memslots_init_slots() 75 if (idx == memslots->count - 1) { in our_range_memslots_init_slots() 113 our_range->slots.count = memslot_count; in hvb_our_range_memslots_new() 129 trace_hv_balloon_unmap_slot(idx, memslots->count, offset); in our_range_memslots_free_memslots() [all …]
|
/openbmc/linux/drivers/pcmcia/ |
H A D | socket_sysfs.c | 82 const char *buf, size_t count) in pccard_store_insert() argument 86 if (!count) in pccard_store_insert() 91 return count; in pccard_store_insert() 106 const char *buf, size_t count) in pccard_store_card_pm_state() argument 109 ssize_t ret = count; in pccard_store_card_pm_state() 111 if (!count) in pccard_store_card_pm_state() 129 const char *buf, size_t count) in pccard_store_eject() argument 133 if (!count) in pccard_store_eject() 138 return count; in pccard_store_eject() 153 const char *buf, size_t count) in pccard_store_irq_mask() argument [all …]
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_fba.c | 85 ccw->count = 16; in define_extent() 105 ccw->count = 8; in locate_record() 254 ccw->count = 0; in ccw_write_no_data() 260 static void ccw_write_zero(struct ccw1 *ccw, int count) in ccw_write_zero() argument 264 ccw->count = count; in ccw_write_zero() 277 int count = 0; in count_ccws() local 285 count++; in count_ccws() 296 count++; in count_ccws() 300 count++; in count_ccws() 302 return count; in count_ccws() [all …]
|
/openbmc/linux/drivers/misc/altera-stapl/ |
H A D | altera.c | 120 static int altera_check_stack(int stack_ptr, int count, int *status) in altera_check_stack() argument 122 if (stack_ptr < count) { in altera_check_stack() 138 static void altera_export_bool_array(char *key, u8 *data, s32 count) in altera_export_bool_array() argument 144 if (count > HEX_LINE_BITS) { in altera_export_bool_array() 146 key, count); in altera_export_bool_array() 147 lines = (count + (HEX_LINE_BITS - 1)) / HEX_LINE_BITS; in altera_export_bool_array() 153 offset = count - ((line + 1) * HEX_LINE_BITS); in altera_export_bool_array() 156 count - ((lines - 1) * HEX_LINE_BITS); in altera_export_bool_array() 182 size = (count + 3) / 4; in altera_export_bool_array() 187 for (i = 0; i < count; ++i) { in altera_export_bool_array() [all …]
|
/openbmc/linux/drivers/base/regmap/ |
H A D | regmap-debugfs.c | 35 char __user *user_buf, size_t count, in regmap_name_read_file() argument 56 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret); in regmap_name_read_file() 182 void *buf, size_t count) in regmap_calc_tot_len() argument 217 size_t count, loff_t *ppos) in regmap_read_debugfs() argument 226 if (*ppos < 0 || !count) in regmap_read_debugfs() 229 if (count > (PAGE_SIZE << MAX_ORDER)) in regmap_read_debugfs() 230 count = PAGE_SIZE << MAX_ORDER; in regmap_read_debugfs() 232 buf = kmalloc(count, GFP_KERNEL); in regmap_read_debugfs() 236 regmap_calc_tot_len(map, buf, count); in regmap_read_debugfs() 247 if (buf_pos + map->debugfs_tot_len > count) in regmap_read_debugfs() [all …]
|
/openbmc/linux/drivers/media/pci/cx18/ |
H A D | cx18-io.c | 13 void cx18_memset_io(struct cx18 *cx, void __iomem *addr, int val, size_t count) in cx18_memset_io() argument 20 if ((count > 0) && ((unsigned long)dst & 1)) { in cx18_memset_io() 22 count--; in cx18_memset_io() 25 if ((count > 1) && ((unsigned long)dst & 2)) { in cx18_memset_io() 27 count -= 2; in cx18_memset_io() 30 while (count > 3) { in cx18_memset_io() 32 count -= 4; in cx18_memset_io() 35 if (count > 1) { in cx18_memset_io() 37 count -= 2; in cx18_memset_io() 40 if (count > 0) in cx18_memset_io()
|
/openbmc/linux/drivers/crypto/ |
H A D | padlock-aes.c | 195 struct cword *control_word, int count) in rep_xcrypt_ecb() argument 199 : "d"(control_word), "b"(key), "c"(count)); in rep_xcrypt_ecb() 203 u8 *iv, struct cword *control_word, int count) in rep_xcrypt_cbc() argument 207 : "d" (control_word), "b" (key), "c" (count)); in rep_xcrypt_cbc() 212 struct cword *cword, int count) in ecb_crypt_copy() argument 221 memcpy(tmp, in, count * AES_BLOCK_SIZE); in ecb_crypt_copy() 222 rep_xcrypt_ecb(tmp, out, key, cword, count); in ecb_crypt_copy() 226 u8 *iv, struct cword *cword, int count) in cbc_crypt_copy() argument 235 memcpy(tmp, in, count * AES_BLOCK_SIZE); in cbc_crypt_copy() 236 return rep_xcrypt_cbc(tmp, out, key, iv, cword, count); in cbc_crypt_copy() [all …]
|
/openbmc/linux/drivers/char/tpm/ |
H A D | tpm_i2c_infineon.c | 109 int count; in iic_tpm_read() local 124 for (count = 0; count < MAX_COUNT; count++) { in iic_tpm_read() 136 for (count = 0; count < MAX_COUNT; count++) { in iic_tpm_read() 153 for (count = 0; count < MAX_COUNT; count++) { in iic_tpm_read() 209 int count; in iic_tpm_write_generic() local 234 for (count = 0; count < max_count; count++) { in iic_tpm_write_generic() 436 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data() argument 443 while (size < count) { in recv_data() 451 if (burstcnt > (count - size)) in recv_data() 452 burstcnt = count - size; in recv_data() [all …]
|
/openbmc/linux/include/crypto/ |
H A D | sha512_base.h | 34 sctx->count[0] = sctx->count[1] = 0; in sha384_base_init() 51 sctx->count[0] = sctx->count[1] = 0; in sha512_base_init() 62 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_update() 64 sctx->count[0] += len; in sha512_base_do_update() 65 if (sctx->count[0] < len) in sha512_base_do_update() 66 sctx->count[1]++; in sha512_base_do_update() 102 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_finalize() 113 bits[0] = cpu_to_be64(sctx->count[1] << 3 | sctx->count[0] >> 61); in sha512_base_do_finalize() 114 bits[1] = cpu_to_be64(sctx->count[0] << 3); in sha512_base_do_finalize()
|
/openbmc/qemu/hw/timer/ |
H A D | slavio_timer.c | 56 uint32_t count, counthigh, reached; member 109 uint64_t count, limit; in slavio_timer_get_out() local 116 count = limit - PERIODS_TO_LIMIT(ptimer_get_count(t->timer)); in slavio_timer_get_out() 118 trace_slavio_timer_get_out(t->limit, t->counthigh, t->count); in slavio_timer_get_out() 119 t->count = count & TIMER_COUNT_MASK32; in slavio_timer_get_out() 120 t->counthigh = count >> 32; in slavio_timer_get_out() 131 trace_slavio_timer_irq(t->counthigh, t->count); in slavio_timer_irq() 173 ret = t->count & TIMER_MAX_COUNT64; in slavio_timer_mem_readl() 175 ret = (t->count & TIMER_MAX_COUNT32) | in slavio_timer_mem_readl() 217 uint64_t count; in slavio_timer_mem_writel() local [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | intel_runtime_pm.c | 89 if (!rpm->debug.count) in track_intel_runtime_pm_wakeref() 93 (rpm->debug.count + 1) * sizeof(*stacks), in track_intel_runtime_pm_wakeref() 96 stacks[rpm->debug.count++] = stack; in track_intel_runtime_pm_wakeref() 120 for (n = rpm->debug.count; n--; ) { in untrack_intel_runtime_pm_wakeref() 124 (--rpm->debug.count - n) * sizeof(stack)); in untrack_intel_runtime_pm_wakeref() 133 rpm->debug.count, atomic_read(&rpm->wakeref_count))) { in untrack_intel_runtime_pm_wakeref() 186 drm_printf(p, "Wakeref count: %lu\n", dbg->count); in __print_intel_runtime_pm_wakeref() 188 sort(dbg->owners, dbg->count, sizeof(*dbg->owners), cmphandle, NULL); in __print_intel_runtime_pm_wakeref() 190 for (i = 0; i < dbg->count; i++) { in __print_intel_runtime_pm_wakeref() 195 while (i + 1 < dbg->count && dbg->owners[i + 1] == stack) in __print_intel_runtime_pm_wakeref() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | debugfs.c | 32 int (*write)(struct b43_wldev *dev, const char *buf, size_t count); 53 if (bufsize - count) \ 54 count += scnprintf(buf + count, \ 55 bufsize - count, \ 69 ssize_t count = 0; in shm16read__read_file() local 82 return count; in shm16read__read_file() 86 const char *buf, size_t count) in shm16read__write_file() argument 110 const char *buf, size_t count) in shm16write__write_file() argument 145 ssize_t count = 0; in shm32read__read_file() local 158 return count; in shm32read__read_file() [all …]
|