Home
last modified time | relevance | path

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

12345678910>>...382

/openbmc/linux/arch/powerpc/kernel/ptrace/
H A Dptrace-decl.h74 unsigned int pos, unsigned int count,
82 unsigned int pos, unsigned int count,
90 unsigned int pos, unsigned int count,
98 unsigned int pos, unsigned int count,
109 unsigned int pos, unsigned int count,
124 unsigned int pos, unsigned int count,
129 unsigned int pos, unsigned int count,
134 unsigned int pos, unsigned int count,
139 unsigned int pos, unsigned int count,
144 unsigned int pos, unsigned int count,
[all …]
/openbmc/linux/sound/oss/dmasound/
H A Ddmasound_paula.c160 ssize_t count, used; in ami_ct_s8() local
164 count = min_t(unsigned long, userCount, frameLeft) & ~1; in ami_ct_s8()
165 used = count; in ami_ct_s8()
166 if (copy_from_user(p, userPtr, count)) in ami_ct_s8()
171 count = min_t(unsigned long, userCount, frameLeft)>>1 & ~1; in ami_ct_s8()
172 used = count*2; in ami_ct_s8()
173 while (count > 0) { in ami_ct_s8()
177 count--; in ami_ct_s8()
194 ssize_t count, used; \
198 count = min_t(size_t, userCount, frameLeft) & ~1; \
[all …]
H A Ddmasound_atari.c161 ssize_t count, used; in ata_ct_law() local
164 count = min_t(unsigned long, userCount, frameLeft); in ata_ct_law()
166 count &= ~1; in ata_ct_law()
167 used = count; in ata_ct_law()
168 while (count > 0) { in ata_ct_law()
173 count--; in ata_ct_law()
184 ssize_t count, used; in ata_ct_s8() local
187 count = min_t(unsigned long, userCount, frameLeft); in ata_ct_s8()
189 count &= ~1; in ata_ct_s8()
190 used = count; in ata_ct_s8()
[all …]
/openbmc/linux/fs/proc/
H A Dpage.c46 size_t count, loff_t *ppos) in kpagecount_read() argument
57 if (src & KPMMASK || count & KPMMASK) in kpagecount_read()
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()
227 size_t count, loff_t *ppos) in kpageflags_read() argument
237 if (src & KPMMASK || count & KPMMASK) in kpageflags_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()
[all …]
/openbmc/linux/drivers/pci/
H A Dpci-sysfs.c84 const char *buf, size_t count) in broken_parity_status_store() argument
94 return count; in broken_parity_status_store()
293 const char *buf, size_t count) in enable_store() argument
317 return result < 0 ? result : count; in enable_store()
333 size_t count) in numa_node_store() argument
355 return count; in numa_node_store()
395 const char *buf, size_t count) in msi_bus_store() argument
416 return count; in msi_bus_store()
426 return count; in msi_bus_store()
430 static ssize_t rescan_store(const struct bus_type *bus, const char *buf, size_t count) in rescan_store() argument
[all …]
/openbmc/linux/drivers/opp/
H A Dof.c168 int count, i; in _opp_table_alloc_required_tables() local
178 count = of_count_phandle_with_args(np, "required-opps", NULL); in _opp_table_alloc_required_tables()
179 if (count <= 0) in _opp_table_alloc_required_tables()
182 required_opp_tables = kcalloc(count, sizeof(*required_opp_tables), in _opp_table_alloc_required_tables()
188 opp_table->required_opp_count = count; in _opp_table_alloc_required_tables()
190 for (i = 0; i < count; i++) { in _opp_table_alloc_required_tables()
306 int i, ret, count = opp_table->required_opp_count; in _of_opp_alloc_required_opps() local
308 if (!count) in _of_opp_alloc_required_opps()
311 required_opps = kcalloc(count, sizeof(*required_opps), GFP_KERNEL); in _of_opp_alloc_required_opps()
317 for (i = 0; i < count; i++) { in _of_opp_alloc_required_opps()
[all …]
/openbmc/linux/drivers/tee/amdtee/
H A Dcall.c15 static int tee_params_to_amd_params(struct tee_param *tee, u32 count, in tee_params_to_amd_params() argument
21 if (!count) in tee_params_to_amd_params()
24 if (!tee || !amd || count > TEE_MAX_PARAMS) in tee_params_to_amd_params()
28 for (i = 0; i < count; i++) { in tee_params_to_amd_params()
36 for (i = 0; i < count; i++) { in tee_params_to_amd_params()
72 static int amd_params_to_tee_params(struct tee_param *tee, u32 count, in amd_params_to_tee_params() argument
78 if (!count) in amd_params_to_tee_params()
81 if (!tee || !amd || count > TEE_MAX_PARAMS) in amd_params_to_tee_params()
85 for (i = 0; i < count; i++) { in amd_params_to_tee_params()
130 u32 count = 0; in get_ta_refcount() local
[all …]
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/
H A Dtonga_smumgr.c256 if (allowed_clock_voltage_table->count == 0) in tonga_get_dependency_volt_by_clk()
259 for (i = 0; i < allowed_clock_voltage_table->count; i++) { in tonga_get_dependency_volt_by_clk()
305 unsigned int count; in tonga_populate_smc_vddc_table() local
309 table->VddcLevelCount = data->vddc_voltage_table.count; in tonga_populate_smc_vddc_table()
310 for (count = 0; count < table->VddcLevelCount; count++) { in tonga_populate_smc_vddc_table()
311 table->VddcTable[count] = in tonga_populate_smc_vddc_table()
312 PP_HOST_TO_SMC_US(data->vddc_voltage_table.entries[count].value * VOLTAGE_SCALE); in tonga_populate_smc_vddc_table()
322 unsigned int count; in tonga_populate_smc_vdd_gfx_table() local
326 table->VddGfxLevelCount = data->vddgfx_voltage_table.count; in tonga_populate_smc_vdd_gfx_table()
327 for (count = 0; count < data->vddgfx_voltage_table.count; count++) { in tonga_populate_smc_vdd_gfx_table()
[all …]
/openbmc/linux/scripts/
H A Dsetlocalversion41 set -- $(git rev-list --count --left-right "$tag"...HEAD 2> /dev/null)
49 count="$2"
86 count=
99 if [ -z "${count}" ] && [ -n "${file_localversion}" ]; then
104 if [ -z "${count}" ]; then
111 if [ -z "${count}" ] || [ "${count}" -gt 0 ]; then
122 if [ -n "${count}" ]; then
123 printf "%s%05d" "-" "${count}"
/openbmc/linux/arch/x86/include/asm/
H A Ddma.h264 static inline void set_dma_count(unsigned int dmanr, unsigned int count) in set_dma_count() argument
266 count--; in set_dma_count()
268 dma_outb(count & 0xff, ((dmanr & 3) << 1) + 1 + IO_DMA1_BASE); in set_dma_count()
269 dma_outb((count >> 8) & 0xff, in set_dma_count()
272 dma_outb((count >> 1) & 0xff, in set_dma_count()
274 dma_outb((count >> 9) & 0xff, in set_dma_count()
292 unsigned short count; in get_dma_residue() local
297 count = 1 + dma_inb(io_port); in get_dma_residue()
298 count += dma_inb(io_port) << 8; in get_dma_residue()
300 return (dmanr <= 3) ? count : (count << 1); in get_dma_residue()
/openbmc/linux/arch/alpha/lib/
H A Dchecksum.c81 int odd, count; in do_csum() local
92 count = len >> 1; /* nr of 16-bit words.. */ in do_csum()
93 if (count) { in do_csum()
96 count--; in do_csum()
100 count >>= 1; /* nr of 32-bit words.. */ in do_csum()
101 if (count) { in do_csum()
104 count--; in do_csum()
108 count >>= 1; /* nr of 64-bit words.. */ in do_csum()
109 if (count) { in do_csum()
113 count--; in do_csum()
[all …]
/openbmc/linux/security/tomoyo/
H A Dsecurityfs_if.c42 size_t count, loff_t *ppos) in tomoyo_write_self() argument
47 if (!count || count >= TOMOYO_EXEC_TMPSIZE - 10) in tomoyo_write_self()
49 data = memdup_user_nul(buf, count); in tomoyo_write_self()
87 return error ? error : count; in tomoyo_write_self()
101 size_t count, loff_t *ppos) in tomoyo_read_self() argument
107 if (pos >= len || !count) in tomoyo_read_self()
110 if (count < len) in tomoyo_read_self()
111 len = count; in tomoyo_read_self()
176 static ssize_t tomoyo_read(struct file *file, char __user *buf, size_t count, in tomoyo_read() argument
179 return tomoyo_read_control(file->private_data, buf, count); in tomoyo_read()
[all …]
/openbmc/u-boot/test/py/tests/
H A Dtest_sf.py120 count = sf_params['len']
124 cmd = 'mw.b %08x %02x %x' % (addr, pattern, count)
126 crc_pattern = u_boot_utils.crc32(u_boot_console, addr, count)
130 cmd = 'sf read %08x %08x %x' % (addr, offset, count)
133 crc_readback = u_boot_utils.crc32(u_boot_console, addr, count)
154 count = sf_params['len']
157 cmd = 'mw.b %08x %02x %x' % (addr, pattern, count)
159 crc_pattern = u_boot_utils.crc32(u_boot_console, addr, count)
161 cmd = 'sf update %08x %08x %x' % (addr, offset, count)
196 count = sf_params['len']
[all …]
/openbmc/qemu/hw/s390x/
H A Ds390-stattrib-kvm.c40 uint32_t count, in kvm_s390_stattrib_read_helper() argument
49 .count = count, in kvm_s390_stattrib_read_helper()
61 return clog.count; in kvm_s390_stattrib_read_helper()
66 uint32_t count, in kvm_s390_stattrib_get_stattr() argument
69 return kvm_s390_stattrib_read_helper(sa, start_gfn, count, values, 0); in kvm_s390_stattrib_get_stattr()
74 uint32_t count, in kvm_s390_stattrib_peek_stattr() argument
77 return kvm_s390_stattrib_read_helper(sa, &start_gfn, count, values, in kvm_s390_stattrib_peek_stattr()
83 uint32_t count, in kvm_s390_stattrib_set_stattr() argument
90 if (start_gfn + count > max) { in kvm_s390_stattrib_set_stattr()
98 memcpy(sas->incoming_buffer + start_gfn, values, count); in kvm_s390_stattrib_set_stattr()
[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()
284 int utf16_utf8_strncpy(char **dst, const u16 *src, size_t count) in utf16_utf8_strncpy() argument
289 for (; count && *src; --count) { in utf16_utf8_strncpy()
[all …]
/openbmc/u-boot/fs/jffs2/
H A Dmini_inflate.c41 stream->codes.count = stream->code_count; in init_stream()
49 stream->lengths.count = stream->length_count; in init_stream()
57 stream->distance.count = stream->distance_count; in init_stream()
125 while (!(set->count[bits] && code < set->first[bits] + in read_symbol()
126 set->count[bits])) { in read_symbol()
189 code = (code + set->count[i - 1]) << 1; in fill_code_tables()
191 set->pos[i] = set->pos[i - 1] + set->count[i - 1]; in fill_code_tables()
201 for (i = 1; i < set->bits; i++) set->pos[i] -= set->count[i]; in fill_code_tables()
207 cramfs_memset(set->count, 0, set->bits); in init_code_tables()
244 if (length) codes->count[length]++; in decompress_dynamic()
[all …]
/openbmc/linux/drivers/mtd/ubi/
H A Dcdev.c171 static ssize_t vol_cdev_read(struct file *file, __user char *buf, size_t count, in vol_cdev_read() argument
178 size_t count_save = count; in vol_cdev_read()
182 count, *offp, vol->vol_id); in vol_cdev_read()
192 if (*offp == vol->used_bytes || count == 0) in vol_cdev_read()
198 if (*offp + count > vol->used_bytes) in vol_cdev_read()
199 count_save = count = vol->used_bytes - *offp; in vol_cdev_read()
202 if (count < tbuf_size) in vol_cdev_read()
203 tbuf_size = ALIGN(count, ubi->min_io_size); in vol_cdev_read()
208 len = count > tbuf_size ? tbuf_size : count; in vol_cdev_read()
227 count -= len; in vol_cdev_read()
[all …]
/openbmc/linux/drivers/char/
H A Dps3flash.c94 size_t count, loff_t *pos) in ps3flash_read() argument
105 __func__, __LINE__, count, *pos, userbuf, kernelbuf); in ps3flash_read()
108 if (*pos >= size || !count) in ps3flash_read()
111 if (*pos + count > size) { in ps3flash_read()
114 __LINE__, count, size - *pos); in ps3flash_read()
115 count = size - *pos; in ps3flash_read()
121 remaining = count; in ps3flash_read()
155 return count; in ps3flash_read()
163 const void *kernelbuf, size_t count, loff_t *pos) in ps3flash_write() argument
174 __func__, __LINE__, count, *pos, userbuf, kernelbuf); in ps3flash_write()
[all …]
/openbmc/linux/kernel/trace/
H A Dtrace_selftest.c63 static int __maybe_unused trace_test_buffer(struct array_buffer *buf, unsigned long *count) in trace_test_buffer() argument
91 if (count) in trace_test_buffer()
92 *count = cnt; in trace_test_buffer()
361 unsigned long count; in trace_selftest_startup_dynamic_tracing() local
396 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_dynamic_tracing()
400 if (count) { in trace_selftest_startup_dynamic_tracing()
417 ret = trace_test_buffer(&tr->array_buffer, &count); in trace_selftest_startup_dynamic_tracing()
423 if (!ret && count != 1) { in trace_selftest_startup_dynamic_tracing()
425 printk(KERN_CONT ".. filter failed count=%ld ..", count); in trace_selftest_startup_dynamic_tracing()
694 unsigned long count; in trace_selftest_startup_function() local
[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()
32 if (copy_to_user(buf, &event, count)) 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()
98 static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in hwdep_read() argument
118 count = tscm_hwdep_read_locked(tscm, buf, count, offset); in hwdep_read()
[all …]
/openbmc/linux/drivers/acpi/acpica/
H A Dutids.c207 u32 count; in acpi_ut_execute_CID() local
228 count = obj_desc->package.count; in acpi_ut_execute_CID()
232 count = 1; in acpi_ut_execute_CID()
237 for (i = 0; i < count; i++) { in acpi_ut_execute_CID()
266 (count * sizeof(struct acpi_pnp_device_id)) + string_area_size; in acpi_ut_execute_CID()
277 ((acpi_size)count * sizeof(struct acpi_pnp_device_id)); in acpi_ut_execute_CID()
281 for (i = 0; i < count; i++) { in acpi_ut_execute_CID()
303 cid_list->count = count; in acpi_ut_execute_CID()
340 u32 count; in acpi_ut_execute_CLS() local
358 count = obj_desc->package.count; in acpi_ut_execute_CLS()
[all …]
/openbmc/linux/drivers/base/regmap/
H A Dtrace.h105 TP_PROTO(struct regmap *map, unsigned int reg, int count),
107 TP_ARGS(map, reg, count),
112 __field( int, count )
118 __entry->count = count;
121 TP_printk("%s reg=%x count=%d", __get_str(name), __entry->reg, __entry->count)
126 TP_PROTO(struct regmap *map, unsigned int reg, int count),
128 TP_ARGS(map, reg, count)
133 TP_PROTO(struct regmap *map, unsigned int reg, int count),
135 TP_ARGS(map, reg, count)
140 TP_PROTO(struct regmap *map, unsigned int reg, int count),
[all …]
/openbmc/linux/tools/lib/perf/
H A Devsel.c322 int thread, struct perf_counts_values *count) in perf_evsel__read_group() argument
347 count->ena = data[idx++]; in perf_evsel__read_group()
349 count->run = data[idx++]; in perf_evsel__read_group()
352 count->val = data[idx++]; in perf_evsel__read_group()
354 count->id = data[idx++]; in perf_evsel__read_group()
356 count->lost = data[idx++]; in perf_evsel__read_group()
367 struct perf_counts_values *count) in perf_evsel__adjust_values() argument
372 count->val = buf[n++]; in perf_evsel__adjust_values()
375 count->ena = buf[n++]; in perf_evsel__adjust_values()
378 count->run = buf[n++]; in perf_evsel__adjust_values()
[all …]
/openbmc/linux/fs/hfs/
H A Dbitmap.c193 int hfs_clear_vbm_bits(struct super_block *sb, u16 start, u16 count) in hfs_clear_vbm_bits() argument
200 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()
[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 …]

12345678910>>...382