Home
last modified time | relevance | path

Searched refs:count (Results 51 – 75 of 8448) sorted by relevance

12345678910>>...338

/openbmc/linux/drivers/md/persistent-data/
H A Ddm-btree-spine.c127 s->count = 0; in init_ro_spine()
136 for (i = 0; i < s->count; i++) in exit_ro_spine()
144 if (s->count == 2) { in ro_step()
147 s->count--; in ro_step()
150 r = bn_read_lock(s->info, new_child, s->nodes + s->count); in ro_step()
152 s->count++; in ro_step()
159 BUG_ON(!s->count); in ro_pop()
160 --s->count; in ro_pop()
161 unlock_block(s->info, s->nodes[s->count]); in ro_pop()
168 BUG_ON(!s->count); in ro_node()
[all …]
/openbmc/qemu/tests/qtest/
H A Dnpcm7xx_timer-test.c163 static int64_t tim_calculate_step(uint32_t count, uint32_t prescale) in tim_calculate_step() argument
165 return (1000000000LL / TIM_REF_HZ) * count * (prescale + 1); in tim_calculate_step()
240 unsigned int count = 256; in test_oneshot_ps5() local
245 tim_write_ticr(td, count); in test_oneshot_ps5()
248 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps5()
250 clock_step(tim_calculate_step(count, ps) - 1); in test_oneshot_ps5()
253 g_assert_cmpuint(tim_read_tdr(td), <, count); in test_oneshot_ps5()
259 g_assert_cmpuint(tim_read_tdr(td), ==, count); in test_oneshot_ps5()
269 clock_step(2 * tim_calculate_step(count, ps)); in test_oneshot_ps5()
278 unsigned int count = 1; in test_oneshot_ps0() local
[all …]
/openbmc/linux/drivers/w1/slaves/
H A Dw1_ds2433.c49 static inline size_t w1_f23_fix_count(loff_t off, size_t count, size_t size) in w1_f23_fix_count() argument
54 if ((off + count) > size) in w1_f23_fix_count()
57 return count; in w1_f23_fix_count()
91 loff_t off, size_t count) in eeprom_read() argument
101 count = w1_f23_fix_count(off, count, W1_EEPROM_SIZE); in eeprom_read()
102 if (!count) in eeprom_read()
110 max_page = (off + count - 1) >> W1_PAGE_BITS; in eeprom_read()
113 count = -EIO; in eeprom_read()
117 memcpy(buf, &data->memory[off], count); in eeprom_read()
123 count = -EIO; in eeprom_read()
[all …]
H A Dw1_ds2431.c46 static inline size_t w1_f2d_fix_count(loff_t off, size_t count, size_t size) in w1_f2d_fix_count() argument
51 if ((off + count) > size) in w1_f2d_fix_count()
54 return count; in w1_f2d_fix_count()
64 static int w1_f2d_readblock(struct w1_slave *sl, int off, int count, char *buf) in w1_f2d_readblock() argument
79 w1_read_block(sl->master, buf, count); in w1_f2d_readblock()
85 w1_read_block(sl->master, cmp, count); in w1_f2d_readblock()
87 if (!memcmp(cmp, buf, count)) in w1_f2d_readblock()
99 loff_t off, size_t count) in eeprom_read() argument
102 int todo = count; in eeprom_read()
104 count = w1_f2d_fix_count(off, count, W1_F2D_EEPROM_SIZE); in eeprom_read()
[all …]
H A Dw1_ds2805.c43 static inline size_t w1_f0d_fix_count(loff_t off, size_t count, size_t size) in w1_f0d_fix_count() argument
48 if ((off + count) > size) in w1_f0d_fix_count()
51 return count; in w1_f0d_fix_count()
61 static int w1_f0d_readblock(struct w1_slave *sl, int off, int count, char *buf) in w1_f0d_readblock() argument
76 w1_read_block(sl->master, buf, count); in w1_f0d_readblock()
82 w1_read_block(sl->master, cmp, count); in w1_f0d_readblock()
84 if (!memcmp(cmp, buf, count)) in w1_f0d_readblock()
96 char *buf, loff_t off, size_t count) in w1_f0d_read_bin() argument
99 int todo = count; in w1_f0d_read_bin()
101 count = w1_f0d_fix_count(off, count, W1_F0D_EEPROM_SIZE); in w1_f0d_read_bin()
[all …]
/openbmc/linux/drivers/staging/media/meson/vdec/
H A Dcodec_vp9.c1481 unsigned int *count, in adapt_coef_probs_cxt() argument
1495 const int n0 = count[coef_count_cxt_start]; in adapt_coef_probs_cxt()
1496 const int n1 = count[coef_count_cxt_start + 1]; in adapt_coef_probs_cxt()
1497 const int n2 = count[coef_count_cxt_start + 2]; in adapt_coef_probs_cxt()
1498 const int neob = count[coef_count_cxt_start + 3]; in adapt_coef_probs_cxt()
1499 const int nneob = count[coef_count_cxt_start + 4]; in adapt_coef_probs_cxt()
1543 unsigned int *count) in adapt_coef_probs() argument
1597 count, in adapt_coef_probs()
1655 den = count[coef_count_node_start] + in adapt_coef_probs()
1656 count[coef_count_node_start + 1]; in adapt_coef_probs()
[all …]
/openbmc/u-boot/drivers/misc/
H A Djz4780_efuse.c35 static void jz4780_efuse_read_chunk(size_t addr, size_t count, u8 *buf) in jz4780_efuse_read_chunk() argument
43 ((count - 1) << EFUSE_EFUCTRL_LEN_BIT) | in jz4780_efuse_read_chunk()
53 if ((count % 4) == 0) { in jz4780_efuse_read_chunk()
54 for (i = 0; i < count / 4; i++) { in jz4780_efuse_read_chunk()
60 if (count > 2) in jz4780_efuse_read_chunk()
62 if (count > 1) in jz4780_efuse_read_chunk()
68 static inline int jz4780_efuse_chunk_size(size_t count) in jz4780_efuse_chunk_size() argument
70 if (count >= 32) in jz4780_efuse_chunk_size()
72 else if ((count / 4) > 0) in jz4780_efuse_chunk_size()
73 return (count / 4) * 4; in jz4780_efuse_chunk_size()
[all …]
/openbmc/linux/scripts/genksyms/
H A Dlex.l128 int token, count = 0;
183 count = 0;
187 count = 0;
191 count = 0;
206 count = 0;
221 count = 1;
229 count = 1;
248 ++count;
251 if (--count == 0)
268 ++count;
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sockmap_listen.c57 unsigned int *count; in prog_stream_verdict() local
66 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_stream_verdict()
67 if (count) in prog_stream_verdict()
68 (*count)++; in prog_stream_verdict()
76 unsigned int *count; in prog_skb_verdict() local
87 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_skb_verdict()
88 if (count) in prog_skb_verdict()
89 (*count)++; in prog_skb_verdict()
97 unsigned int *count; in prog_msg_verdict() local
106 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_msg_verdict()
[all …]
/openbmc/linux/drivers/acpi/
H A Dfan_attr.c22 int count; in show_state() local
25 count = scnprintf(buf, PAGE_SIZE, "not-defined:"); in show_state()
27 count = scnprintf(buf, PAGE_SIZE, "%lld:", fps->control); in show_state()
30 count += sysfs_emit_at(buf, count, "not-defined:"); in show_state()
32 count += sysfs_emit_at(buf, count, "%lld:", fps->trip_point); in show_state()
35 count += sysfs_emit_at(buf, count, "not-defined:"); in show_state()
37 count += sysfs_emit_at(buf, count, "%lld:", fps->speed); in show_state()
40 count += sysfs_emit_at(buf, count, "not-defined:"); in show_state()
42 count += sysfs_emit_at(buf, count, "%lld:", fps->noise_level * 100); in show_state()
45 count += sysfs_emit_at(buf, count, "not-defined\n"); in show_state()
[all …]
/openbmc/linux/include/asm-generic/
H A Dio.h401 unsigned int count) in readsb() argument
403 if (count) { in readsb()
409 } while (--count); in readsb()
417 unsigned int count) in readsw() argument
419 if (count) { in readsw()
425 } while (--count); in readsw()
433 unsigned int count) in readsl() argument
435 if (count) { in readsl()
441 } while (--count); in readsl()
450 unsigned int count) in readsq() argument
[all …]
/openbmc/linux/drivers/counter/
H A Di8254.c57 static int i8254_count_read(struct counter_device *const counter, struct counter_count *const count, in i8254_count_read() argument
66 ret = regmap_write(priv->map, I8254_CONTROL_REG, I8254_COUNTER_LATCH(count->id)); in i8254_count_read()
71 ret = regmap_noinc_read(priv->map, I8254_COUNTER_REG(count->id), value, sizeof(value)); in i8254_count_read()
85 struct counter_count *const count, in i8254_function_read() argument
97 struct counter_count *const count, in i8254_action_read() argument
108 switch (priv->out_mode[count->id]) { in i8254_action_read()
126 struct counter_count *const count, u64 *const ceiling) in i8254_count_ceiling_read() argument
132 switch (priv->out_mode[count->id]) { in i8254_count_ceiling_read()
135 *ceiling = (priv->preset[count->id] == 0) ? U16_MAX : priv->preset[count->id]; in i8254_count_ceiling_read()
138 if (priv->preset[count->id] % 2) in i8254_count_ceiling_read()
[all …]
/openbmc/u-boot/common/
H A Dkgdb.c133 mem2hex(char *mem, char *buf, int count) in mem2hex() argument
142 tmp = buf + count; in mem2hex()
145 memcpy(tmp, mem, count); in mem2hex()
147 while (count-- > 0) { in mem2hex()
161 hex2mem(char *buf, char *mem, int count) in hex2mem() argument
170 tmp_raw = buf + count * 2; in hex2mem()
187 memcpy(mem, tmp_raw, count); in hex2mem()
189 kgdb_flush_cache_range((void *)mem, (void *)(mem+count)); in hex2mem()
230 int count; in getpacket() local
247 count = 0; in getpacket()
[all …]
/openbmc/linux/drivers/net/wireless/marvell/libertas/
H A Ddebugfs.c26 size_t count, loff_t *ppos) in write_file_dummy() argument
34 size_t count, loff_t *ppos) in lbs_dev_info() argument
49 res = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_dev_info()
56 const char __user *user_buf, size_t count, in lbs_sleepparams_write() argument
65 buf = memdup_user_nul(user_buf, min(count, len - 1)); in lbs_sleepparams_write()
83 ret = count; in lbs_sleepparams_write()
93 size_t count, loff_t *ppos) in lbs_sleepparams_read() argument
113 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_sleepparams_read()
121 const char __user *user_buf, size_t count, in lbs_host_sleep_write() argument
129 buf = memdup_user_nul(user_buf, min(count, len - 1)); in lbs_host_sleep_write()
[all …]
/openbmc/linux/arch/hexagon/include/asm/
H A Dio.h183 int count) in memcpy_fromio() argument
185 memcpy(dst, (void *) src, count); in memcpy_fromio()
189 int count) in memcpy_toio() argument
191 memcpy((void *) dst, src, count); in memcpy_toio()
251 static inline void insb(unsigned long port, void *buffer, int count) in insb() argument
253 if (count) { in insb()
258 } while (--count); in insb()
262 static inline void insw(unsigned long port, void *buffer, int count) in insw() argument
264 if (count) { in insw()
269 } while (--count); in insw()
[all …]
/openbmc/qemu/util/
H A Dhbitmap.c65 uint64_t count; member
196 int64_t hbitmap_next_dirty(const HBitmap *hb, int64_t start, int64_t count) in hbitmap_next_dirty() argument
202 assert(start >= 0 && count >= 0); in hbitmap_next_dirty()
204 if (start >= hb->orig_size || count == 0) { in hbitmap_next_dirty()
208 end = count > hb->orig_size - start ? hb->orig_size : start + count; in hbitmap_next_dirty()
220 int64_t hbitmap_next_zero(const HBitmap *hb, int64_t start, int64_t count) in hbitmap_next_zero() argument
229 assert(start >= 0 && count >= 0); in hbitmap_next_zero()
231 if (start >= hb->orig_size || count == 0) { in hbitmap_next_zero()
235 end_bit = count > hb->orig_size - start ? in hbitmap_next_zero()
237 ((start + count - 1) >> hb->granularity) + 1; in hbitmap_next_zero()
[all …]
/openbmc/linux/arch/powerpc/kernel/
H A Dio.c27 void _insb(const volatile u8 __iomem *port, void *buf, long count) in _insb() argument
32 if (unlikely(count <= 0)) in _insb()
39 } while (--count != 0); in _insb()
44 void _outsb(volatile u8 __iomem *port, const void *buf, long count) in _outsb() argument
48 if (unlikely(count <= 0)) in _outsb()
53 } while (--count != 0); in _outsb()
58 void _insw_ns(const volatile u16 __iomem *port, void *buf, long count) in _insw_ns() argument
63 if (unlikely(count <= 0)) in _insw_ns()
70 } while (--count != 0); in _insw_ns()
75 void _outsw_ns(volatile u16 __iomem *port, const void *buf, long count) in _outsw_ns() argument
[all …]
/openbmc/phosphor-fan-presence/monitor/
H A Dpower_off_cause.hpp37 PowerOffCause(size_t count, const std::string& name) : in PowerOffCause() argument
38 _count(count), _name(std::to_string(count) + " " + name) in PowerOffCause()
100 explicit MissingFanFRUCause(size_t count) : in MissingFanFRUCause() argument
101 PowerOffCause(count, "Missing Fan FRUs") in MissingFanFRUCause()
112 size_t count = std::count_if( in satisfied() local
117 return count >= _count; in satisfied()
143 explicit NonfuncFanRotorCause(size_t count) : in NonfuncFanRotorCause() argument
144 PowerOffCause(count, "Nonfunctional Fan Rotors") in NonfuncFanRotorCause()
155 size_t count = std::accumulate( in satisfied() local
165 return count >= _count; in satisfied()
[all …]
/openbmc/linux/include/linux/
H A Dkstrtox.h100 int __must_check kstrtoull_from_user(const char __user *s, size_t count, unsigned int base, unsigne…
101 int __must_check kstrtoll_from_user(const char __user *s, size_t count, unsigned int base, long lon…
102 int __must_check kstrtoul_from_user(const char __user *s, size_t count, unsigned int base, unsigned…
103 int __must_check kstrtol_from_user(const char __user *s, size_t count, unsigned int base, long *res…
104 int __must_check kstrtouint_from_user(const char __user *s, size_t count, unsigned int base, unsign…
105 int __must_check kstrtoint_from_user(const char __user *s, size_t count, unsigned int base, int *re…
106 int __must_check kstrtou16_from_user(const char __user *s, size_t count, unsigned int base, u16 *re…
107 int __must_check kstrtos16_from_user(const char __user *s, size_t count, unsigned int base, s16 *re…
108 int __must_check kstrtou8_from_user(const char __user *s, size_t count, unsigned int base, u8 *res);
109 int __must_check kstrtos8_from_user(const char __user *s, size_t count, unsigned int base, s8 *res);
[all …]
/openbmc/linux/fs/ufs/
H A Dutil.c24 u64 count = 0; in _ubh_bread_() local
27 count = size >> uspi->s_fshift; in _ubh_bread_()
28 if (count > UFS_MAXFRAG) in _ubh_bread_()
34 ubh->count = count; in _ubh_bread_()
35 for (i = 0; i < count; i++) in _ubh_bread_()
52 u64 count = 0; in ubh_bread_uspi() local
55 count = size >> uspi->s_fshift; in ubh_bread_uspi()
56 if (count <= 0 || count > UFS_MAXFRAG) in ubh_bread_uspi()
59 USPI_UBH(uspi)->count = count; in ubh_bread_uspi()
60 for (i = 0; i < count; i++) in ubh_bread_uspi()
[all …]
/openbmc/linux/drivers/video/fbdev/core/
H A Dfb_sys_fops.c16 ssize_t fb_sys_read(struct fb_info *info, char __user *buf, size_t count, in fb_sys_read() argument
36 if (count >= total_size) in fb_sys_read()
37 count = total_size; in fb_sys_read()
39 if (count + p > total_size) in fb_sys_read()
40 count = total_size - p; in fb_sys_read()
47 c = copy_to_user(buf, src, count); in fb_sys_read()
50 ret = count - c; in fb_sys_read()
59 size_t count, loff_t *ppos) in fb_sys_write() argument
78 if (count > total_size) { in fb_sys_write()
80 count = total_size; in fb_sys_write()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/selftests/
H A Di915_random.c45 void i915_prandom_shuffle(void *arr, size_t elsz, size_t count, in i915_prandom_shuffle() argument
50 if (WARN_ON(elsz > sizeof(stack) || count > U32_MAX)) in i915_prandom_shuffle()
53 if (!elsz || !count) in i915_prandom_shuffle()
57 while (--count) { in i915_prandom_shuffle()
60 swp = i915_prandom_u32_max_state(count + 1, state); in i915_prandom_shuffle()
61 if (swp == count) in i915_prandom_shuffle()
64 memcpy(stack, arr + count * elsz, elsz); in i915_prandom_shuffle()
65 memcpy(arr + count * elsz, arr + swp * elsz, elsz); in i915_prandom_shuffle()
70 void i915_random_reorder(unsigned int *order, unsigned int count, in i915_random_reorder() argument
73 i915_prandom_shuffle(order, sizeof(*order), count, state); in i915_random_reorder()
[all …]
/openbmc/linux/drivers/tty/vt/
H A Dvc_screen.c249 unsigned int pos, unsigned int count, bool viewed) in vcs_read_buf_uni() argument
263 if (nr > count / 4) in vcs_read_buf_uni()
264 nr = count / 4; in vcs_read_buf_uni()
267 count -= nr * 4; in vcs_read_buf_uni()
271 } while (count); in vcs_read_buf_uni()
277 unsigned int pos, unsigned int count, bool viewed) in vcs_read_buf_noattr() argument
286 while (count-- > 0) { in vcs_read_buf_noattr()
297 unsigned int pos, unsigned int count, bool viewed, in vcs_read_buf() argument
302 unsigned int filled = count; in vcs_read_buf()
311 count += pos; in vcs_read_buf()
[all …]
/openbmc/linux/mm/
H A Dcma.c50 return cma->count << PAGE_SHIFT; in cma_get_size()
84 unsigned long count) in cma_clear_bitmap() argument
90 bitmap_count = cma_bitmap_pages_to_bits(cma, count); in cma_clear_bitmap()
113 for (pfn = base_pfn + 1; pfn < base_pfn + cma->count; pfn++) { in cma_activate_area()
119 for (pfn = base_pfn; pfn < base_pfn + cma->count; in cma_activate_area()
137 for (pfn = base_pfn; pfn < base_pfn + cma->count; pfn++) in cma_activate_area()
140 totalcma_pages -= cma->count; in cma_activate_area()
141 cma->count = 0; in cma_activate_area()
206 cma->count = size >> PAGE_SHIFT; in cma_init_reserved_mem()
408 pr_cont("=> %lu free of %lu total pages\n", nr_total, cma->count); in cma_debug_show_areas()
[all …]
/openbmc/linux/fs/
H A Deventfd.c41 __u64 count; member
63 if (ULLONG_MAX - ctx->count < n) in eventfd_signal_mask()
64 n = ULLONG_MAX - ctx->count; in eventfd_signal_mask()
65 ctx->count += n; in eventfd_signal_mask()
134 u64 count; in eventfd_poll() local
176 count = READ_ONCE(ctx->count); in eventfd_poll()
178 if (count > 0) in eventfd_poll()
180 if (count == ULLONG_MAX) in eventfd_poll()
182 if (ULLONG_MAX - 1 > count) in eventfd_poll()
192 *cnt = ((ctx->flags & EFD_SEMAPHORE) && ctx->count) ? 1 : ctx->count; in eventfd_ctx_do_read()
[all …]

12345678910>>...338