Home
last modified time | relevance | path

Searched refs:count (Results 226 – 250 of 9455) sorted by relevance

12345678910>>...379

/openbmc/u-boot/drivers/tpm/
H A Dtpm_tis_infineon.c75 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()
350 while (size < count) { in tpm_tis_i2c_recv_data()
397 count); in tpm_tis_i2c_recv()
425 size_t count = 0; in tpm_tis_i2c_send() local
453 while (count < len) { in tpm_tis_i2c_send()
[all …]
/openbmc/linux/arch/arm/nwfpe/
H A Dsoftfloat-macros45 if ( count == 0 ) {
49 z = ( a>>count ) | ( ( a<<( ( - count ) & 31 ) ) != 0 );
76 z = ( a>>count ) | ( ( a<<( ( - count ) & 63 ) ) != 0 );
136 of `count' can be arbitrarily large; in particular, if `count' is greater
157 z1 = ( count < 64 ) ? ( a0>>( count & 63 ) ) : 0;
234 int16 count,
295 ( count == 0 ) ? a0 : ( a0<<count ) | ( a1>>( ( - count ) & 63 ) );
313 int16 count,
322 z2 = a2<<count;
323 z1 = a1<<count;
[all …]
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_attr_leaf.c168 to->count = be16_to_cpu(hdr3->count); in xfs_attr3_leaf_hdr_from_disk()
1779 if (count < ichdr1.count) { in xfs_attr3_leaf_rebalance()
1784 count = ichdr1.count - count; in xfs_attr3_leaf_rebalance()
1800 ichdr1.count - count, leaf2, &ichdr2, 0, count); in xfs_attr3_leaf_rebalance()
1813 count -= ichdr1.count; in xfs_attr3_leaf_rebalance()
1829 ichdr1.count, count); in xfs_attr3_leaf_rebalance()
1934 for (count = index = 0; count < max; entry++, index++, count++) { in xfs_attr3_leaf_figure_balance()
1953 if (count == ichdr1->count) { in xfs_attr3_leaf_figure_balance()
2087 ((ichdr.count + ichdr2.count) * in xfs_attr3_leaf_toosmall()
2596 ASSERT(count <= ichdr_s->count); in xfs_attr3_leaf_moveents()
[all …]
/openbmc/linux/fs/hfs/
H A Dbitmap.c200 if (!count) in hfs_clear_vbm_bits()
203 hfs_dbg(BITMAP, "clear_bits: %u,%u\n", start, count); in hfs_clear_vbm_bits()
205 if ((start + count) > HFS_SB(sb)->fs_ablocks) in hfs_clear_vbm_bits()
211 len = count; in hfs_clear_vbm_bits()
218 if (j > count) { in hfs_clear_vbm_bits()
219 mask |= 0xffffffffU >> (i + count); in hfs_clear_vbm_bits()
224 count -= j; in hfs_clear_vbm_bits()
228 while (count >= 32) { in hfs_clear_vbm_bits()
230 count -= 32; in hfs_clear_vbm_bits()
233 if (count) { in hfs_clear_vbm_bits()
[all …]
/openbmc/linux/arch/s390/mm/
H A Dmaccess.c29 unsigned long aligned, offset, count; in s390_kernel_write_odd() local
35 count = size - 1; in s390_kernel_write_odd()
44 : "+&a" (aligned), "+&a" (count), "=m" (tmp) in s390_kernel_write_odd()
82 size_t memcpy_real_iter(struct iov_iter *iter, unsigned long src, size_t count) in memcpy_real_iter() argument
90 while (count) { in memcpy_real_iter()
94 len = min(count, MEMCPY_REAL_SIZE - offset); in memcpy_real_iter()
105 count -= copied; in memcpy_real_iter()
114 int memcpy_real(void *dest, unsigned long src, size_t count) in memcpy_real() argument
120 kvec.iov_len = count; in memcpy_real()
121 iov_iter_kvec(&iter, ITER_DEST, &kvec, 1, count); in memcpy_real()
[all …]
/openbmc/linux/arch/sparc/kernel/
H A Dptrace_64.c297 if (!ret && count > 0) { in genregs64_set()
573 count /= sizeof(reg); in genregs32_set()
576 for (; count > 0 && pos < 16; count--) in genregs32_set()
582 for (; count > 0 && pos < 32; count--) { in genregs32_set()
587 for (; count > 0 && pos < 32; count--) { in genregs32_set()
601 for (; count > 0 && pos < 16; count--) { in genregs32_set()
610 for (; count > 0 && pos < 32; count--) { in genregs32_set()
616 for (; count > 0 && pos < 32; count--) { in genregs32_set()
631 while (count > 0) { in genregs32_set()
665 count--; in genregs32_set()
[all …]
/openbmc/linux/fs/ntfs/
H A Dbitmap.h19 const s64 count, const u8 value, const bool is_rollback);
34 const s64 start_bit, const s64 count, const u8 value) in ntfs_bitmap_set_bits_in_run() argument
36 return __ntfs_bitmap_set_bits_in_run(vi, start_bit, count, value, in ntfs_bitmap_set_bits_in_run()
52 const s64 count) in ntfs_bitmap_set_run() argument
54 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 1); in ntfs_bitmap_set_run()
69 const s64 count) in ntfs_bitmap_clear_run() argument
71 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 0); in ntfs_bitmap_clear_run()
/openbmc/linux/drivers/gpu/drm/lib/
H A Ddrm_random.c16 void drm_random_reorder(unsigned int *order, unsigned int count, in drm_random_reorder() argument
21 for (i = 0; i < count; ++i) { in drm_random_reorder()
23 j = drm_prandom_u32_max_state(count, state); in drm_random_reorder()
29 unsigned int *drm_random_order(unsigned int count, struct rnd_state *state) in drm_random_order() argument
33 order = kmalloc_array(count, sizeof(*order), GFP_KERNEL); in drm_random_order()
37 for (i = 0; i < count; i++) in drm_random_order()
40 drm_random_reorder(order, count, state); in drm_random_order()
/openbmc/linux/fs/proc/
H A Dpage.c46 size_t count, loff_t *ppos) in kpagecount_read() argument
61 count = min_t(unsigned long, count, (max_dump_pfn * KPMSIZE) - src); in kpagecount_read()
63 while (count > 0) { in kpagecount_read()
82 count -= KPMSIZE; in kpagecount_read()
241 count = min_t(unsigned long, count, (max_dump_pfn * KPMSIZE) - src); in kpageflags_read()
243 while (count > 0) { in kpageflags_read()
257 count -= KPMSIZE; in kpageflags_read()
276 size_t count, loff_t *ppos) in kpagecgroup_read() argument
291 count = min_t(unsigned long, count, (max_dump_pfn * KPMSIZE) - src); in kpagecgroup_read()
293 while (count > 0) { in kpagecgroup_read()
[all …]
/openbmc/linux/drivers/parisc/
H A Dpdc_stable.c276 count = min_t(size_t, count, sizeof(in)-1); in pdcspath_hwpath_write()
330 return count; in pdcspath_hwpath_write()
389 count = min_t(size_t, count, sizeof(in)-1); in pdcspath_layer_write()
423 return count; in pdcspath_layer_write()
778 count = min_t(size_t, count, sizeof(in)-1); in pdcs_auto_write()
817 return count; in pdcs_auto_write()
886 if (count > 16) in pdcs_osdep1_write()
896 return count; in pdcs_osdep1_write()
932 if (count > size) in pdcs_osdep2_write()
939 memcpy(in, buf+i, (count-i < 4) ? count-i : 4); in pdcs_osdep2_write()
[all …]
/openbmc/qemu/hw/timer/
H A Dslavio_timer.c56 uint32_t count, counthigh, reached; member
109 uint64_t count, limit; in slavio_timer_get_out() local
119 t->count = count & TIMER_COUNT_MASK32; in slavio_timer_get_out()
120 t->counthigh = count >> 32; in slavio_timer_get_out()
173 ret = t->count & TIMER_MAX_COUNT64; in slavio_timer_mem_readl()
217 uint64_t count; in slavio_timer_mem_writel() local
223 count = ((uint64_t)t->counthigh << 32) | t->count; in slavio_timer_mem_writel()
241 uint64_t count; in slavio_timer_mem_writel() local
247 count = ((uint64_t)t->counthigh) << 32 | t->count; in slavio_timer_mem_writel()
349 VMSTATE_UINT32(count, CPUTimerState),
[all …]
/openbmc/linux/drivers/gpu/drm/i915/
H A Dintel_runtime_pm.c89 if (!rpm->debug.count) in track_intel_runtime_pm_wakeref()
190 for (i = 0; i < dbg->count; i++) { in __print_intel_runtime_pm_wakeref()
211 debug->count = 0; in __untrack_all_wakerefs()
218 if (debug->count) { in dump_and_free_wakeref_tracking()
263 unsigned long alloc = dbg.count; in print_intel_runtime_pm_wakeref()
267 dbg.count = rpm->debug.count; in print_intel_runtime_pm_wakeref()
268 if (dbg.count <= alloc) { in print_intel_runtime_pm_wakeref()
271 dbg.count * sizeof(*s)); in print_intel_runtime_pm_wakeref()
276 if (dbg.count <= alloc) in print_intel_runtime_pm_wakeref()
280 dbg.count * sizeof(*s), in print_intel_runtime_pm_wakeref()
[all …]
/openbmc/u-boot/lib/
H A Dcharset.c159 size_t utf8_utf16_strnlen(const char *src, size_t count) in utf8_utf16_strnlen() argument
163 for (; *src && count; --count) { in utf8_utf16_strnlen()
180 int utf8_utf16_strncpy(u16 **dst, const char *src, size_t count) in utf8_utf16_strncpy() argument
185 for (; count && *src; --count) { in utf8_utf16_strncpy()
242 size_t utf16_strnlen(const u16 *src, size_t count) in utf16_strnlen() argument
246 for (; *src && count; --count) { in utf16_strnlen()
260 size_t utf16_utf8_strnlen(const u16 *src, size_t count) in utf16_utf8_strnlen() argument
264 for (; *src && count; --count) { in utf16_utf8_strnlen()
289 for (; count && *src; --count) { in utf16_utf8_strncpy()
345 size_t u16_strnlen(const u16 *in, size_t count) in u16_strnlen() argument
[all …]
/openbmc/qemu/tests/bench/
H A Dbenchmark-crypto-akcipher.c49 size_t count; in test_rsa_speed() local
59 for (count = 0; count < SIGN_TIMES; ++count) { in test_rsa_speed()
69 count, g_test_timer_last(), in test_rsa_speed()
70 (double)count / g_test_timer_last()); in test_rsa_speed()
76 for (count = 0; count < VERIFY_TIMES; ++count) { in test_rsa_speed()
86 count, g_test_timer_last(), in test_rsa_speed()
87 (double)count / g_test_timer_last()); in test_rsa_speed()
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Drif_mac_profiles_occ.sh43 local count=$1; shift
46 for ((i = 1; i <= count; i++)); do
77 local count=$1; shift
82 if [[ $count -eq 1 ]]; then
96 [[ $occ -eq $((count - 1)) ]]
106 local count=$1; shift
107 local i=$((count + 1))
131 local count=$(devlink_resource_size_get rif_mac_profiles)
133 create_max_rif_mac_profiles $count
136 rif_mac_profile_consolidation_test $count
[all …]
/openbmc/linux/drivers/w1/slaves/
H A Dw1_ds2781.c24 size_t count, int io) in w1_ds2781_do_io() argument
31 count = min_t(int, count, DS2781_DATA_SIZE - addr); in w1_ds2781_do_io()
37 w1_write_block(sl->master, buf, count); in w1_ds2781_do_io()
41 count = w1_read_block(sl->master, buf, count); in w1_ds2781_do_io()
45 return count; in w1_ds2781_do_io()
48 int w1_ds2781_io(struct device *dev, char *buf, int addr, size_t count, in w1_ds2781_io() argument
59 ret = w1_ds2781_do_io(dev, buf, addr, count, io); in w1_ds2781_io()
88 loff_t off, size_t count) in w1_slave_read() argument
92 return w1_ds2781_io(dev, buf, off, count, 0); in w1_slave_read()
H A Dw1_ds2780.c27 size_t count, int io) in w1_ds2780_do_io() argument
34 count = min_t(int, count, DS2780_DATA_SIZE - addr); in w1_ds2780_do_io()
40 w1_write_block(sl->master, buf, count); in w1_ds2780_do_io()
44 count = w1_read_block(sl->master, buf, count); in w1_ds2780_do_io()
48 return count; in w1_ds2780_do_io()
51 int w1_ds2780_io(struct device *dev, char *buf, int addr, size_t count, in w1_ds2780_io() argument
62 ret = w1_ds2780_do_io(dev, buf, addr, count, io); in w1_ds2780_io()
91 loff_t off, size_t count) in w1_slave_read() argument
95 return w1_ds2780_io(dev, buf, off, count, 0); in w1_slave_read()
/openbmc/linux/arch/mips/include/asm/
H A Ddma.h270 static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) in set_dma_count() argument
272 count--; in set_dma_count()
274 dma_outb( count & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); in set_dma_count()
275 dma_outb( (count>>8) & 0xff, ((dmanr&3)<<1) + 1 + IO_DMA1_BASE ); in set_dma_count()
277 dma_outb( (count>>1) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); in set_dma_count()
278 dma_outb( (count>>9) & 0xff, ((dmanr&3)<<2) + 2 + IO_DMA2_BASE ); in set_dma_count()
297 unsigned short count; in get_dma_residue() local
299 count = 1 + dma_inb(io_port); in get_dma_residue()
300 count += dma_inb(io_port) << 8; in get_dma_residue()
302 return (dmanr<=3)? count : (count<<1); in get_dma_residue()
/openbmc/linux/drivers/net/wireless/ath/ath10k/
H A Ddebug.c552 if (*ppos != 0 || count >= sizeof(buf) || count == 0) in ath10k_write_simulate_fw_crash()
599 ret = count; in ath10k_write_simulate_fw_crash()
736 ret = count; in ath10k_reg_value_write()
763 if (!count) in ath10k_mem_value_read()
795 ret = count; in ath10k_mem_value_read()
815 if (!count) in ath10k_mem_value_write()
846 ret = count; in ath10k_mem_value_write()
941 ret = count; in ath10k_write_htt_stats_mask()
1002 res = count; in ath10k_write_htt_max_amsdu_ampdu()
1072 ret = count; in ath10k_write_fw_dbglog()
[all …]
/openbmc/linux/drivers/net/hamradio/
H A D6pack.c168 int actual, count; in sp_encaps() local
335 int count; in sp_bump() local
436 if (!count) in sixpack_receive_buf()
444 count1 = count; in sixpack_receive_buf()
445 while (count) { in sixpack_receive_buf()
446 count--; in sixpack_receive_buf()
788 int count = 0; in encode_sixpack() local
796 for (count = 1; count < length; count++) in encode_sixpack()
797 buf[count] = tx_buf[count]; in encode_sixpack()
799 for (count = 0; count < length; count++) in encode_sixpack()
[all …]
/openbmc/linux/drivers/crypto/
H A Dpadlock-aes.c195 struct cword *control_word, int count) in rep_xcrypt_ecb() argument
212 struct cword *cword, int count) in ecb_crypt_copy() argument
221 memcpy(tmp, in, count * AES_BLOCK_SIZE); in ecb_crypt_copy()
235 memcpy(tmp, in, count * AES_BLOCK_SIZE); in cbc_crypt_copy()
240 struct cword *cword, int count) in ecb_crypt() argument
250 rep_xcrypt_ecb(in, out, key, cword, count); in ecb_crypt()
264 void *control_word, u32 count) in padlock_xcrypt_ecb() argument
268 if (count < ecb_fetch_blocks) { in padlock_xcrypt_ecb()
273 count -= initial; in padlock_xcrypt_ecb()
290 if (count < cbc_fetch_blocks) in padlock_xcrypt_cbc()
[all …]
/openbmc/linux/drivers/char/tpm/
H A Dtpm_i2c_infineon.c109 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()
443 while (size < count) { in recv_data()
452 burstcnt = count - size; in recv_data()
521 size_t count = 0; in tpm_tis_i2c_send() local
542 while (count < len - 1) { in tpm_tis_i2c_send()
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/
H A Dping.py19 count = 0
22 while count < 5:
27 count += 1
29 count = 0
32 …f.fail("Ping timeout error for address %s, count %s, output: %s" % (self.target.ip, count, output))
34 'ping output is:\n%s' % (count,output))
35 self.assertEqual(count, 5, msg = msg)
/openbmc/linux/drivers/base/regmap/
H A Dregmap-debugfs.c217 size_t count, loff_t *ppos) in regmap_read_debugfs() argument
226 if (*ppos < 0 || !count) in regmap_read_debugfs()
230 count = PAGE_SIZE << MAX_ORDER; in regmap_read_debugfs()
290 count, ppos); in regmap_map_read_file()
351 user_buf, count, ppos); in regmap_range_read_file()
373 if (*ppos < 0 || !count) in regmap_reg_ranges_read_file()
377 count = PAGE_SIZE << MAX_ORDER; in regmap_reg_ranges_read_file()
471 return count; in regmap_cache_only_write_file()
497 return count; in regmap_cache_only_write_file()
518 return count; in regmap_cache_bypass_write_file()
[all …]
/openbmc/linux/sound/firewire/tascam/
H A Dtascam-hwdep.c19 long count, loff_t *offset) in tscm_hwdep_read_locked() argument
28 count = min_t(long, count, sizeof(event)); in tscm_hwdep_read_locked()
35 return count; in tscm_hwdep_read_locked()
45 long count; in tscm_hwdep_read_queue() local
54 count = sizeof(type); in tscm_hwdep_read_queue()
85 count += length; in tscm_hwdep_read_queue()
95 return count; in tscm_hwdep_read_queue()
118 count = tscm_hwdep_read_locked(tscm, buf, count, offset); in hwdep_read()
120 count = tscm_hwdep_read_queue(tscm, buf, count, offset); in hwdep_read()
123 count = 0; in hwdep_read()
[all …]

12345678910>>...379