Home
last modified time | relevance | path

Searched refs:count (Results 126 – 150 of 9291) sorted by relevance

12345678910>>...372

/openbmc/linux/kernel/locking/
H A Dsemaphore.c60 if (likely(sem->count > 0)) in down()
61 sem->count--; in down()
84 if (likely(sem->count > 0)) in down_interruptible()
85 sem->count--; in down_interruptible()
111 if (likely(sem->count > 0)) in down_killable()
112 sem->count--; in down_killable()
137 int count; in down_trylock() local
140 count = sem->count - 1; in down_trylock()
141 if (likely(count >= 0)) in down_trylock()
142 sem->count = count; in down_trylock()
[all …]
/openbmc/linux/drivers/gpu/host1x/hw/
H A Dopcodes.h77 static inline u32 host1x_opcode_incr(unsigned offset, unsigned count) in host1x_opcode_incr() argument
79 return (1 << 28) | (offset << 16) | count; in host1x_opcode_incr()
82 static inline u32 host1x_opcode_nonincr(unsigned offset, unsigned count) in host1x_opcode_nonincr() argument
84 return (2 << 28) | (offset << 16) | count; in host1x_opcode_nonincr()
108 static inline u32 host1x_opcode_gather(unsigned count) in host1x_opcode_gather() argument
110 return (6 << 28) | count; in host1x_opcode_gather()
113 static inline u32 host1x_opcode_gather_nonincr(unsigned offset, unsigned count) in host1x_opcode_gather_nonincr() argument
115 return (6 << 28) | (offset << 16) | BIT(15) | count; in host1x_opcode_gather_nonincr()
118 static inline u32 host1x_opcode_gather_incr(unsigned offset, unsigned count) in host1x_opcode_gather_incr() argument
120 return (6 << 28) | (offset << 16) | BIT(15) | BIT(14) | count; in host1x_opcode_gather_incr()
[all …]
/openbmc/linux/samples/seccomp/
H A Dbpf-helper.c20 struct sock_filter *filter, size_t count) in bpf_resolve_jumps() argument
24 if (count < 1 || count > BPF_MAXINSNS) in bpf_resolve_jumps()
30 for (i = 0; i < count; ++i) { in bpf_resolve_jumps()
31 size_t offset = count - i - 1; in bpf_resolve_jumps()
69 if (labels->count == BPF_LABELS_MAX) { in seccomp_bpf_label()
73 if (labels->count == 0) { in seccomp_bpf_label()
76 labels->count++; in seccomp_bpf_label()
79 end = begin + labels->count; in seccomp_bpf_label()
86 labels->count++; in seccomp_bpf_label()
90 void seccomp_bpf_print(struct sock_filter *filter, size_t count) in seccomp_bpf_print() argument
[all …]
/openbmc/u-boot/tools/
H A Dfile2include.c30 size_t count, i, j; in main() local
49 count = ftell(file); in main()
50 if (!count) { in main()
56 buf = malloc(count); in main()
61 count = fread(buf, 1, count, file); in main()
70 printf("#define EFI_ST_DISK_IMG { 0x%08zx, { \\\n", count); in main()
72 for (i = 0; i < count; i += BLOCK_SIZE) { in main()
75 for (j = i; j < i + BLOCK_SIZE && j < count; ++j) { in main()
82 for (j = i; j < i + BLOCK_SIZE && j < count; ++j) in main()
85 for (j = i; j < i + BLOCK_SIZE && j < count; ++j) { in main()
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/
H A Drescan-wf-bic5 count=0
23 while [ $count -lt 12 ]; do
33 count=$((count + 1))
36 count=0
37 while [ $count -lt 3 ]; do
52 echo "WF BIC ready (status: $wf_ready), count=$count"
62 echo "WF BIC not ready (status: $wf_ready), count=$count"
63 count=$((count + 1))
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Dstring_override.c10 int memcmp(const void *cs, const void *ct, size_t count) in memcmp() argument
15 for (su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--) { in memcmp()
22 void *memcpy(void *dest, const void *src, size_t count) in memcpy() argument
27 while (count--) in memcpy()
32 void *memset(void *s, int c, size_t count) in memset() argument
36 while (count--) in memset()
41 size_t strnlen(const char *s, size_t count) in strnlen() argument
45 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen()
H A Dio.c41 ssize_t test_write(int fd, const void *buf, size_t count) in test_write() argument
45 size_t num_left = count; in test_write()
51 TEST_ASSERT(count >= 0, "Unexpected count, count: %li", count); in test_write()
77 } while (num_written < count); in test_write()
118 ssize_t test_read(int fd, void *buf, size_t count) in test_read() argument
122 size_t num_left = count; in test_read()
128 TEST_ASSERT(count >= 0, "Unexpected count, count: %li", count); in test_read()
154 } while (num_read < count); in test_read()
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dsmu_helper.c223 for (i = 0; i < vol_table->count; i++) { in phm_trim_voltage_table()
227 for (j = 0; j < table->count; j++) { in phm_trim_voltage_table()
235 table->entries[table->count].value = vvalue; in phm_trim_voltage_table()
236 table->entries[table->count].smio_low = in phm_trim_voltage_table()
238 table->count++; in phm_trim_voltage_table()
254 PP_ASSERT_WITH_CODE((0 != dep_table->count), in phm_get_svi2_mvdd_voltage_table()
262 vol_table->count = dep_table->count; in phm_get_svi2_mvdd_voltage_table()
264 for (i = 0; i < dep_table->count; i++) { in phm_get_svi2_mvdd_voltage_table()
282 PP_ASSERT_WITH_CODE((0 != dep_table->count), in phm_get_svi2_vddci_voltage_table()
290 vol_table->count = dep_table->count; in phm_get_svi2_vddci_voltage_table()
[all …]
/openbmc/linux/drivers/infiniband/hw/qib/
H A Dqib_diag.c134 size_t count, loff_t *off);
136 size_t count, loff_t *off);
152 size_t count, loff_t *off);
340 u32 regoffs, size_t count) in qib_read_umem64() argument
352 if (count >= limit) in qib_read_umem64()
353 count = limit; in qib_read_umem64()
354 reg_end = reg_addr + (count / sizeof(u64)); in qib_read_umem64()
384 const void __user *uaddr, size_t count) in qib_write_umem64() argument
396 if (count >= limit) in qib_write_umem64()
397 count = limit; in qib_write_umem64()
[all …]
/openbmc/linux/drivers/s390/char/
H A Dcon3215.c85 int count; /* number of bytes in output buffer */ member
162 ccw->count = 160; in raw3215_mk_read_req()
176 int len, count, ix, lines; in raw3215_mk_write_req() local
178 if (raw->count <= raw->written) in raw3215_mk_write_req()
193 req->start = (raw->head - raw->count + raw->written) & in raw3215_mk_write_req()
223 count = len; in raw3215_mk_write_req()
224 if (ix + count > RAW3215_BUFFER_SIZE) in raw3215_mk_write_req()
225 count = RAW3215_BUFFER_SIZE - ix; in raw3215_mk_write_req()
226 ccw->count = count; in raw3215_mk_write_req()
227 len -= count; in raw3215_mk_write_req()
[all …]
/openbmc/phosphor-gpio-monitor/test/
H A Dutest.cpp78 int count = 0; in TEST_F() local
79 while (count < 3) in TEST_F()
83 if (!sd_event_run(eventP.get(), sleepTime.count())) in TEST_F()
85 count++; in TEST_F()
91 EXPECT_EQ(3, count); in TEST_F()
107 int count = 0; in TEST_F() local
108 while (count < 2 && !completed) in TEST_F()
110 if (count == 1) in TEST_F()
118 if (!sd_event_run(eventP.get(), sleepTime.count())) in TEST_F()
120 count++; in TEST_F()
[all …]
/openbmc/linux/drivers/net/wireless/broadcom/b43legacy/
H A Ddebugfs.c33 int (*write)(struct b43legacy_wldev *dev, const char *buf, size_t count);
56 if (bufsize - count) \
57 count += scnprintf(buf + count, \
58 bufsize - count, \
68 ssize_t count = 0; in tsf_read_file() local
76 return count; in tsf_read_file()
80 static int tsf_write_file(struct b43legacy_wldev *dev, const char *buf, size_t count) in tsf_write_file() argument
94 ssize_t count = 0; in ucode_regs_read_file() local
102 return count; in ucode_regs_read_file()
108 ssize_t count = 0; in shm_read_file() local
[all …]
/openbmc/linux/arch/x86/include/asm/
H A Dstring_32.h13 extern char *strncpy(char *dest, const char *src, size_t count);
19 extern char *strncat(char *dest, const char *src, size_t count);
25 extern int strncmp(const char *cs, const char *ct, size_t count);
163 extern void *memchr(const void *cs, int c, size_t count);
165 static inline void *__memset_generic(void *s, char c, size_t count) in __memset_generic() argument
171 : "a" (c), "1" (s), "0" (count) in __memset_generic()
177 #define __constant_count_memset(s, c, count) __memset_generic((s), (c), (count)) argument
181 extern size_t strnlen(const char *s, size_t count);
187 #define __memset(s, c, count) \ argument
188 (__builtin_constant_p(count) \
[all …]
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_debugfs.c14 size_t count, loff_t *ppos, in ixgbe_dbg_common_ops_read() argument
30 if (count < strlen(buf)) { in ixgbe_dbg_common_ops_read()
35 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in ixgbe_dbg_common_ops_read()
49 size_t count, loff_t *ppos) in ixgbe_dbg_reg_ops_read() argument
51 return ixgbe_dbg_common_ops_read(filp, buffer, count, ppos, in ixgbe_dbg_reg_ops_read()
64 size_t count, loff_t *ppos) in ixgbe_dbg_reg_ops_write() argument
72 if (count >= sizeof(ixgbe_dbg_reg_ops_buf)) in ixgbe_dbg_reg_ops_write()
79 count); in ixgbe_dbg_reg_ops_write()
112 return count; in ixgbe_dbg_reg_ops_write()
132 size_t count, loff_t *ppos) in ixgbe_dbg_netdev_ops_read() argument
[all …]
/openbmc/linux/fs/ufs/
H A Dballoc.c39 void ufs_free_fragments(struct inode *inode, u64 fragment, unsigned count) in ufs_free_fragments() argument
52 (unsigned long long)fragment, count); in ufs_free_fragments()
54 if (ufs_fragnum(fragment) + count > uspi->s_fpg) in ufs_free_fragments()
75 end_bit = bit + count; in ufs_free_fragments()
87 inode_sub_bytes(inode, count << uspi->s_fshift); in ufs_free_fragments()
88 fs32_add(sb, &ucg->cg_cs.cs_nffree, count); in ufs_free_fragments()
89 uspi->cs_total.cs_nffree += count; in ufs_free_fragments()
90 fs32_add(sb, &UFS_SB(sb)->fs_cs(cgno).cs_nffree, count); in ufs_free_fragments()
135 void ufs_free_blocks(struct inode *inode, u64 fragment, unsigned count) in ufs_free_blocks() argument
148 (unsigned long long)fragment, count); in ufs_free_blocks()
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D246.out23 "count": 0,
31 "count": 0,
39 "count": 0,
47 "count": 0,
63 "count": 0,
71 "count": 0,
79 "count": 0,
100 "count": 0,
108 "count": 0,
116 "count": 0,
[all …]
/openbmc/linux/arch/powerpc/sysdev/
H A Dmmio_nvram.c24 static ssize_t mmio_nvram_read(char *buf, size_t count, loff_t *index) in mmio_nvram_read() argument
30 if (*index + count > mmio_nvram_len) in mmio_nvram_read()
31 count = mmio_nvram_len - *index; in mmio_nvram_read()
35 memcpy_fromio(buf, mmio_nvram_start + *index, count); in mmio_nvram_read()
39 *index += count; in mmio_nvram_read()
40 return count; in mmio_nvram_read()
60 static ssize_t mmio_nvram_write(char *buf, size_t count, loff_t *index) in mmio_nvram_write() argument
66 if (*index + count > mmio_nvram_len) in mmio_nvram_write()
67 count = mmio_nvram_len - *index; in mmio_nvram_write()
71 memcpy_toio(mmio_nvram_start + *index, buf, count); in mmio_nvram_write()
[all …]
/openbmc/linux/drivers/cpufreq/
H A Dcpufreq_stats.c41 unsigned int count = stats->max_state; in cpufreq_stats_reset_table() local
43 memset(stats->time_in_state, 0, count * sizeof(u64)); in cpufreq_stats_reset_table()
44 memset(stats->trans_table, 0, count * count * sizeof(int)); in cpufreq_stats_reset_table()
104 size_t count) in store_reset() argument
120 return count; in store_reset()
129 int i, j, count; in show_trans_table() local
154 count = 0; in show_trans_table()
156 count = stats->trans_table[i * stats->max_state + j]; in show_trans_table()
158 len += sysfs_emit_at(buf, len, "%9u ", count); in show_trans_table()
212 unsigned int i = 0, count; in cpufreq_stats_create_table() local
[all …]
/openbmc/linux/kernel/
H A Dksysfs.c71 const char *buf, size_t count) in uevent_helper_store() argument
73 if (count+1 > UEVENT_HELPER_PATH_LEN) in uevent_helper_store()
75 memcpy(uevent_helper, buf, count); in uevent_helper_store()
76 uevent_helper[count] = '\0'; in uevent_helper_store()
77 if (count && uevent_helper[count-1] == '\n') in uevent_helper_store()
78 uevent_helper[count-1] = '\0'; in uevent_helper_store()
79 return count; in uevent_helper_store()
92 const char *buf, size_t count) in profiling_store() argument
110 return count; in profiling_store()
142 const char *buf, size_t count) in kexec_crash_size_store() argument
[all …]
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_sysfs.c64 loff_t offset, size_t count) in i915_l3_read() argument
75 count = round_down(count, sizeof(u32)); in i915_l3_read()
76 count = min_t(size_t, GEN7_L3LOG_SIZE - offset, count); in i915_l3_read()
77 memset(buf, 0, count); in i915_l3_read()
83 count); in i915_l3_read()
86 return count; in i915_l3_read()
92 loff_t offset, size_t count) in i915_l3_write() argument
105 if (count < sizeof(u32)) in i915_l3_write()
121 count = round_down(count, sizeof(u32)); in i915_l3_write()
122 memcpy(remap_info + offset / sizeof(u32), buf, count); in i915_l3_write()
[all …]
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/
H A Ddebugfs.c63 size_t count, loff_t *ppos) in mwifiex_info_read() argument
136 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_info_read()
167 size_t count, loff_t *ppos) in mwifiex_getlog_read() argument
223 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_getlog_read()
243 size_t count, loff_t *ppos) in mwifiex_histogram_read() argument
312 ret = simple_read_from_buffer(ubuf, count, ppos, (char *)page, in mwifiex_histogram_read()
322 size_t count, loff_t *ppos) in mwifiex_histogram_write() argument
382 size_t count, loff_t *ppos) in mwifiex_debug_read() argument
399 ret = simple_read_from_buffer(ubuf, count, ppos, (char *) page, in mwifiex_debug_read()
418 const char __user *ubuf, size_t count, loff_t *ppos) in mwifiex_regrdwr_write() argument
[all …]
/openbmc/linux/drivers/platform/mellanox/
H A Dmlxbf-bootctl.c185 const char *buf, size_t count) in post_reset_wdog_store() argument
198 return count; in post_reset_wdog_store()
212 static int mlxbf_bootctl_store(int smc_op, const char *buf, size_t count) in mlxbf_bootctl_store() argument
224 return count; in mlxbf_bootctl_store()
235 const char *buf, size_t count) in reset_action_store() argument
237 return mlxbf_bootctl_store(MLXBF_BOOTCTL_SET_RESET_ACTION, buf, count); in reset_action_store()
249 const char *buf, size_t count) in second_reset_action_store() argument
252 count); in second_reset_action_store()
344 const char *buf, size_t count) in fw_reset_store() argument
356 return count; in fw_reset_store()
[all …]
/openbmc/linux/drivers/s390/cio/
H A Dfcx.c104 u32 count = 0; in calc_dcw_count() local
110 count += dcw->count; in calc_dcw_count()
115 return count; in calc_dcw_count()
131 data_count += tidaw[i].count; in calc_cbc_size()
159 u32 count; in tcw_finalize() local
170 count = calc_dcw_count(tccb); in tcw_finalize()
172 count += calc_cbc_size(tidaw, num_tidaws); in tcw_finalize()
174 tcw->input_count = count; in tcw_finalize()
176 tcw->output_count = count; in tcw_finalize()
177 tcat->count = ALIGN(count, 4) + 4; in tcw_finalize()
[all …]
/openbmc/linux/fs/
H A Dread_write.c355 int rw_verify_area(int read_write, struct file *file, const loff_t *ppos, size_t count) in rw_verify_area() argument
357 if (unlikely((ssize_t) count < 0)) in rw_verify_area()
366 if (count >= -pos) /* both values are in 0..LLONG_MAX */ in rw_verify_area()
368 } else if (unlikely((loff_t) (pos + count) < 0)) { in rw_verify_area()
404 ssize_t __kernel_read(struct file *file, void *buf, size_t count, loff_t *pos) in __kernel_read() argument
408 .iov_len = min_t(size_t, count, MAX_RW_COUNT), in __kernel_read()
439 ssize_t kernel_read(struct file *file, void *buf, size_t count, loff_t *pos) in kernel_read() argument
443 ret = rw_verify_area(READ, file, pos, count); in kernel_read()
446 return __kernel_read(file, buf, count, pos); in kernel_read()
450 ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) in vfs_read() argument
[all …]
/openbmc/u-boot/lib/libfdt/
H A Dfdt_region.c19 static int str_in_list(const char *str, char * const list[], int count) in str_in_list() argument
23 for (i = 0; i < count; i++) in str_in_list()
39 int count = 0; in fdt_find_regions() local
116 if (count && count <= max_regions && in fdt_find_regions()
117 offset == region[count - 1].offset + in fdt_find_regions()
118 region[count - 1].size - base) in fdt_find_regions()
119 start = region[--count].offset - base; in fdt_find_regions()
125 if (count < max_regions) { in fdt_find_regions()
126 region[count].offset = base + start; in fdt_find_regions()
127 region[count].size = stop_at - start; in fdt_find_regions()
[all …]

12345678910>>...372