Searched refs:count (Results 201 - 225 of 7674) sorted by relevance

1234567891011>>

/linux-master/security/tomoyo/
H A Dsecurityfs_if.c33 * @count: Size of @buf.
36 * Returns @count on success, negative value otherwise.
42 size_t count, loff_t *ppos)
47 if (!count || count >= TOMOYO_EXEC_TMPSIZE - 10)
49 data = memdup_user_nul(buf, count);
87 return error ? error : count;
95 * @count: Size of @buf.
101 size_t count, loff_t *ppos)
107 if (pos >= len || !count)
41 tomoyo_write_self(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
100 tomoyo_read_self(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
176 tomoyo_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
192 tomoyo_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/mm/
H A Dmaccess.c80 long strncpy_from_kernel_nofault(char *dst, const void *unsafe_addr, long count) argument
84 if (unlikely(count <= 0))
86 if (!copy_from_kernel_nofault_allowed(unsafe_addr, count))
94 } while (dst[-1] && src - unsafe_addr < count);
163 * least @count bytes long.
165 * @count: Maximum number of bytes to copy, including the trailing NUL.
174 * If @count is smaller than the length of the string, copies @count-1 bytes,
175 * sets the last byte of @dst buffer to NUL and returns @count.
178 long count)
177 strncpy_from_user_nofault(char *dst, const void __user *unsafe_addr, long count) argument
215 strnlen_user_nofault(const void __user *unsafe_addr, long count) argument
226 __copy_overflow(int size, unsigned long count) argument
[all...]
H A Dcma.c45 return cma->count << PAGE_SHIFT;
79 unsigned long count)
85 bitmap_count = cma_bitmap_pages_to_bits(cma, count);
108 for (pfn = base_pfn + 1; pfn < base_pfn + cma->count; pfn++) {
114 for (pfn = base_pfn; pfn < base_pfn + cma->count;
132 for (pfn = base_pfn; pfn < base_pfn + cma->count; pfn++)
135 totalcma_pages -= cma->count;
136 cma->count = 0;
205 cma->count = size >> PAGE_SHIFT;
406 pr_cont("=> %lu free of %lu total pages\n", nr_total, cma->count);
78 cma_clear_bitmap(struct cma *cma, unsigned long pfn, unsigned long count) argument
420 cma_alloc(struct cma *cma, unsigned long count, unsigned int align, bool no_warn) argument
520 cma_pages_valid(struct cma *cma, const struct page *pages, unsigned long count) argument
549 cma_release(struct cma *cma, const struct page *pages, unsigned long count) argument
[all...]
/linux-master/drivers/staging/iio/addac/
H A Dadt7316-spi.c25 static int adt7316_spi_multi_read(void *client, u8 reg, u8 count, u8 *data) argument
31 if (count > ADT7316_REG_MAX_ADDR)
32 count = ADT7316_REG_MAX_ADDR;
45 ret = spi_write_then_read(spi_dev, cmd, 1, data, count);
54 static int adt7316_spi_multi_write(void *client, u8 reg, u8 count, u8 *data) argument
60 if (count > ADT7316_REG_MAX_ADDR)
61 count = ADT7316_REG_MAX_ADDR;
65 for (i = 0; i < count; i++)
68 ret = spi_write(spi_dev, buf, count + 2);
/linux-master/arch/powerpc/platforms/powernv/
H A Dopal-msglog.c34 ssize_t memcons_copy(struct memcons *mc, char *to, loff_t pos, size_t count) argument
60 ret = memory_read_from_buffer(to, count, &pos,
68 count -= first_read;
71 if (count <= 0)
81 ret = memory_read_from_buffer(to, count, &pos, conbuf, out_pos);
91 ssize_t opal_msglog_copy(char *to, loff_t pos, size_t count) argument
93 return memcons_copy(opal_memcons, to, pos, count);
98 loff_t pos, size_t count)
100 return opal_msglog_copy(to, pos, count);
96 opal_msglog_read(struct file *file, struct kobject *kobj, struct bin_attribute *bin_attr, char *to, loff_t pos, size_t count) argument
/linux-master/lib/
H A Dstrscpy_kunit.c14 * @count: Size of destination buffer, argument to strscpy_pad()
25 static void tc(struct kunit *test, char *src, int count, int expected, argument
42 max_expected = count - 1; /* Space for the null */
44 KUNIT_ASSERT_LE_MSG(test, count, max_count,
45 "count (%d) is too big (%d) ... aborting", count, max_count);
50 written = strscpy_pad(buf, src, count);
53 if (count && written == -E2BIG) {
54 KUNIT_ASSERT_EQ_MSG(test, 0, strncmp(buf, src, count - 1),
56 KUNIT_ASSERT_EQ_MSG(test, buf[count
[all...]
/linux-master/fs/f2fs/
H A Dshrinker.c26 long count = NM_I(sbi)->nid_cnt[FREE_NID] - MAX_FREE_NIDS; local
28 return count > 0 ? count : 0;
45 unsigned long count = 0; local
59 /* count read extent cache entries */
60 count += __count_extent_cache(sbi, EX_READ);
62 /* count block age extent cache entries */
63 count += __count_extent_cache(sbi, EX_BLOCK_AGE);
65 /* count clean nat cache entries */
66 count
[all...]
/linux-master/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_interrupt.c115 int count; local
117 count = kfifo_in(&node->ih_fifo, ih_ring_entry,
119 if (count != node->kfd->device_info.ih_ring_entry_size) {
122 count);
134 int count; local
136 count = kfifo_out(&node->ih_fifo, ih_ring_entry,
139 WARN_ON(count && count != node->kfd->device_info.ih_ring_entry_size);
141 return count == node->kfd->device_info.ih_ring_entry_size;
/linux-master/security/integrity/ima/
H A Dima_kexec.c35 file.count = sizeof(khdr); /* reserved space */
40 if (file.count < file.size) {
41 khdr.count++;
56 khdr.buffer_size = file.count;
59 khdr.count = cpu_to_le64(khdr.count);
65 file.buf, file.count < 100 ? file.count : 100,
68 *buffer_size = file.count;
/linux-master/drivers/net/ipa/
H A Dipa_table.c167 u32 count; local
175 count = hweight64(filtered);
176 if (count > ipa->filter_count) {
178 count, ipa->filter_count);
186 /* Zero entry count means no table, so just return a 0 address */
187 static dma_addr_t ipa_table_addr(struct ipa *ipa, bool filter_mask, u16 count) argument
191 if (!count)
194 WARN_ON(count > max_t(u32, ipa->filter_count, ipa->route_count));
203 bool hashed, bool ipv6, u16 first, u16 count)
220 size = count * sizeo
202 ipa_table_reset_add(struct gsi_trans *trans, bool filter, bool hashed, bool ipv6, u16 first, u16 count) argument
296 u16 count; local
396 u16 count; local
609 u32 count; local
719 u32 count; local
763 u32 count = max_t(u32, 1 + ipa->filter_count, ipa->route_count); local
[all...]
/linux-master/arch/mips/sibyte/common/
H A Dcfe_console.c14 unsigned int count)
18 for (i=0, last=0; i<count; i++) {
33 if (last != count) {
35 written = cfe_write(cfe_cons_handle, &str[last], count-last);
39 } while (last < count);
13 cfe_console_write(struct console *cons, const char *str, unsigned int count) argument
/linux-master/arch/mips/mm/
H A Dsc-debugfs.c14 size_t count, loff_t *ppos)
23 return simple_read_from_buffer(user_buf, count, ppos, buf, 2);
28 size_t count, loff_t *ppos)
33 err = kstrtobool_from_user(user_buf, count, &enabled);
42 return count;
13 sc_prefetch_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
26 sc_prefetch_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
/linux-master/tools/testing/selftests/powerpc/benchmarks/
H A Dmmap_bench.c31 printf("mmap_bench <--pgfault> <--iterations count>\n");
46 int count; local
47 for (count = 0; count < CHUNK_COUNT; count++)
48 c[count << 16] = 'c';
/linux-master/arch/x86/boot/
H A Dmemory.c20 int count = 0; local
61 count = 0;
66 count++;
67 } while (ireg.ebx && count < ARRAY_SIZE(boot_params.e820_table));
69 boot_params.e820_entries = count;
/linux-master/drivers/acpi/
H A Dfan_attr.c22 int count; local
25 count = scnprintf(buf, PAGE_SIZE, "not-defined:");
27 count = scnprintf(buf, PAGE_SIZE, "%lld:", fps->control);
30 count += sysfs_emit_at(buf, count, "not-defined:");
32 count += sysfs_emit_at(buf, count, "%lld:", fps->trip_point);
35 count += sysfs_emit_at(buf, count, "not-defined:");
37 count
[all...]
/linux-master/drivers/firmware/efi/libstub/
H A Dintrinsics.c14 void *__memmove(void *__dest, const void *__src, size_t count) __alias(memmove);
15 void *__memset(void *s, int c, size_t count) __alias(memset);
36 * @count: The size of the area.
39 int memcmp(const void *cs, const void *ct, size_t count) argument
44 for (su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--)
/linux-master/drivers/memory/tegra/
H A Dtegra210-emc-table.c17 unsigned int i, count = 0; local
29 count++;
39 if (count != emc->num_timings) {
41 count, emc->num_timings);
48 emc->num_timings = count;
/linux-master/drivers/peci/
H A Dsysfs.c18 static ssize_t rescan_store(const struct bus_type *bus, const char *buf, size_t count) argument
28 return count;
34 return count;
53 const char *buf, size_t count)
66 return count;
52 remove_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
/linux-master/arch/arm64/kernel/
H A Dcpuidle.c22 int i, count; local
36 count = pr->power.count - 1;
37 if (count <= 0)
40 for (i = 0; i < count; i++) {
/linux-master/samples/bpf/
H A Dtracex6.bpf.c32 u64 count, *val; local
35 count = bpf_perf_event_read(&counters, key);
36 error = (s64)count;
42 *val = count;
44 bpf_map_update_elem(&values, &key, &count, BPF_NOEXIST);
/linux-master/drivers/cpufreq/
H A Dcpufreq_stats.c41 unsigned int count = stats->max_state; local
43 memset(stats->time_in_state, 0, count * sizeof(u64));
44 memset(stats->trans_table, 0, count * count * sizeof(int));
104 size_t count)
120 return count;
129 int i, j, count; local
154 count = 0;
156 count = stats->trans_table[i * stats->max_state + j];
158 len += sysfs_emit_at(buf, len, "%9u ", count);
103 store_reset(struct cpufreq_policy *policy, const char *buf, size_t count) argument
212 unsigned int i = 0, count; local
[all...]
/linux-master/sound/pci/hda/
H A Dcirrus_scodec.c32 int count; local
36 count = gpiod_count(dev, "spk-id");
37 if (count > 0) {
39 gpios_per_amp = count / num_amps;
42 if (count % num_amps)
/linux-master/tools/testing/selftests/lsm/
H A Dcommon.c73 int count = 0; local
82 count++;
84 count++;
86 count++;
88 return count;
/linux-master/samples/ftrace/
H A Dsample-trace-array.c46 static void simple_thread_func(int count) argument
52 * Printing count value using trace_array_printk() - trace_printk()
55 trace_array_printk(tr, _THIS_IP_, "trace_array_printk: count=%d\n",
56 count);
59 * current value of count and current jiffies.
61 trace_sample_event(count, jiffies);
66 int count = 0; local
83 simple_thread_func(count++);
/linux-master/include/linux/
H A Ddynamic_queue_limits.h90 static inline void dql_queued(struct dql *dql, unsigned int count) argument
94 BUG_ON(count > DQL_MAX_OBJECT);
96 dql->last_obj_cnt = count;
105 dql->num_queued += count;
143 void dql_completed(struct dql *dql, unsigned int count);

Completed in 400 milliseconds

1234567891011>>