Searched refs:count (Results 426 - 450 of 7674) sorted by relevance

<<11121314151617181920>>

/linux-master/fs/proc/
H A Dpage.c43 * physical page count.
46 size_t count, loff_t *ppos)
57 if (src & KPMMASK || count & KPMMASK)
61 count = min_t(unsigned long, count, (max_dump_pfn * KPMSIZE) - src);
63 while (count > 0) {
82 count -= KPMSIZE;
227 size_t count, loff_t *ppos)
237 if (src & KPMMASK || count & KPMMASK)
241 count
45 kpagecount_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
226 kpageflags_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
275 kpagecgroup_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/kernel/locking/
H A Drwsem.c13 * Rwsem count bit fields re-definition and rwsem rearchitecture by
70 WARN_ONCE(c, "DEBUG_RWSEMS_WARN_ON(%s): count = 0x%lx, magic = 0x%lx, owner = 0x%lx, curr 0x%lx, list %sempty\n",\
71 #c, atomic_long_read(&(sem)->count), \
82 * On 64-bit architectures, the bit definitions of the count are:
88 * Bits 8-62 - 55-bit reader count
91 * On 32-bit architectures, the bit definitions of the count are:
97 * Bits 8-30 - 23-bit reader count
138 * preempt disable section as the atomic op that changes sem->count.
191 * Check the count to see if it is write-locked.
193 long count local
608 long count, new; local
692 long count = atomic_long_read(&sem->count); local
808 long count = atomic_long_read(&sem->count); local
975 rwsem_cond_wake_waiter(struct rw_semaphore *sem, long count, struct wake_q_head *wake_q) argument
996 rwsem_down_read_slowpath(struct rw_semaphore *sem, long count, unsigned int state) argument
1246 long count; local
1513 int count = atomic_read(&sem->rwbase.readers); local
[all...]
/linux-master/mm/damon/
H A Ddbgfs.c36 static char *user_input_str(const char __user *buf, size_t count, loff_t *ppos) argument
45 kbuf = kmalloc(count + 1, GFP_KERNEL | __GFP_NOWARN);
49 ret = simple_write_to_buffer(kbuf, count + 1, ppos, buf, count);
50 if (ret != count) {
60 char __user *buf, size_t count, loff_t *ppos)
73 return simple_read_from_buffer(buf, count, ppos, kbuf, ret);
77 const char __user *buf, size_t count, loff_t *ppos)
84 kbuf = user_input_str(buf, count, ppos);
105 ret = count;
59 dbgfs_attrs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
76 dbgfs_attrs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
172 dbgfs_schemes_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
297 dbgfs_schemes_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
359 dbgfs_target_ids_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
490 dbgfs_target_ids_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
574 dbgfs_init_regions_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
668 dbgfs_init_regions_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
697 dbgfs_kdamond_pid_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
810 damon_dbgfs_deprecated_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
870 dbgfs_mk_context_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
976 dbgfs_rm_context_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
1010 dbgfs_monitor_on_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
1022 dbgfs_monitor_on_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-pkt-decoder.c77 int count; local
84 for (count = 47; count; count--) {
91 packet->count = count;
134 packet->count = 5;
177 packet->count = buf[5] | ((buf[6] & BIT(0)) << 8);
214 packet->count = (buf[1] >> 5) & 0x3;
218 switch (packet->count) {
406 int count; local
[all...]
/linux-master/security/selinux/ss/
H A Dsidtab.c45 s->count = 0;
151 static u32 sidtab_level_from_count(u32 count) argument
156 while (count > capacity) {
227 /* read entries only after reading count */
228 u32 count = smp_load_acquire(&s->count); local
230 if (index >= count)
271 u32 count, hash = context_compute_hash(context); local
297 count = s->count;
363 sidtab_convert_hashtable(struct sidtab *s, u32 count) argument
377 sidtab_convert_tree(union sidtab_entry_inner *edst, union sidtab_entry_inner *esrc, u32 *pos, u32 count, u32 level, struct sidtab_convert_params *convert) argument
429 u32 count, level, pos; local
[all...]
/linux-master/kernel/trace/
H A Dtrace_selftest.c63 static int __maybe_unused trace_test_buffer(struct array_buffer *buf, unsigned long *count) argument
91 if (count)
92 *count = cnt;
361 unsigned long count; local
396 ret = trace_test_buffer(&tr->array_buffer, &count);
400 if (count) {
417 ret = trace_test_buffer(&tr->array_buffer, &count);
423 if (!ret && count != 1) {
425 printk(KERN_CONT ".. filter failed count=%ld ..", count);
694 unsigned long count; local
800 unsigned long count; local
931 unsigned long count; local
980 unsigned long count; local
1042 unsigned long count; local
1197 unsigned long count; local
1272 unsigned long count; local
[all...]
/linux-master/drivers/char/
H A Dnwbutton.c29 static int button_press_count; /* The count of button presses */
57 int button_add_callback (void (*callback) (void), int count) argument
69 button_callback_list [lp].count = count;
94 button_callback_list [lp].count = 0;
105 * list of callback functions, and call any of them whose count argument
106 * matches the current count of button presses. It starts at the beginning
115 if ((button_callback_list [lp].count) == bpcount) {
169 size_t count, loff_t *ppos)
168 button_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) argument
H A Dps3flash.c94 size_t count, loff_t *pos)
105 __func__, __LINE__, count, *pos, userbuf, kernelbuf);
108 if (*pos >= size || !count)
111 if (*pos + count > size) {
113 "%s:%u Truncating count from %zu to %llu\n", __func__,
114 __LINE__, count, size - *pos);
115 count = size - *pos;
121 remaining = count;
155 return count;
163 const void *kernelbuf, size_t count, loff_
93 ps3flash_read(char __user *userbuf, void *kernelbuf, size_t count, loff_t *pos) argument
162 ps3flash_write(const char __user *userbuf, const void *kernelbuf, size_t count, loff_t *pos) argument
237 ps3flash_user_read(struct file *file, char __user *buf, size_t count, loff_t *pos) argument
243 ps3flash_user_write(struct file *file, const char __user *buf, size_t count, loff_t *pos) argument
249 ps3flash_kernel_read(void *buf, size_t count, loff_t pos) argument
254 ps3flash_kernel_write(const void *buf, size_t count, loff_t pos) argument
[all...]
H A Dnwflash.c46 static int write_block(unsigned long p, const char __user *buf, int count);
130 "buffer=%p, count=0x%zx.\n", *ppos, buf, size);
147 unsigned int count = size; local
153 printk("flash_write: offset=0x%lX, buffer=0x%p, count=0x%X.\n",
154 p, buf, count);
163 * check for out of range pos or count
166 return count ? -ENXIO : 0;
168 if (count > gbFlashSize - p)
169 count = gbFlashSize - p;
171 if (!access_ok(buf, count))
397 write_block(unsigned long p, const char __user *buf, int count) argument
[all...]
/linux-master/drivers/hid/
H A Dhid-roccat-common.h41 char *buf, loff_t off, size_t count,
44 void const *buf, loff_t off, size_t count,
50 loff_t off, size_t count) \
52 return roccat_common2_sysfs_write(fp, kobj, buf, off, count, \
59 loff_t off, size_t count) \
61 return roccat_common2_sysfs_read(fp, kobj, buf, off, count, \
/linux-master/drivers/vfio/platform/reset/
H A Dvfio_platform_amdxgbe.c53 unsigned int count; local
73 count = 50;
78 } while ((pcs_value & MDIO_CTRL1_RESET) && --count);
102 count = 2000;
103 while (--count && (ioread32(xgmac_regs->ioaddr + DMA_MR) & 1))
106 if (!count)
/linux-master/arch/mips/loongson2ef/common/cs5536/
H A Dcs5536_mfgpt.c144 int count; local
157 * before latching the timer count to guarantee that although
158 * the jiffies value might be older than the count (that is,
161 * count), it cannot be newer.
164 /* read the count */
165 count = inw(MFGPT0_CNT);
168 * It's possible for count to appear to go the wrong way for this
177 if (count < old_count && jifs == old_jifs)
178 count = old_count;
180 old_count = count;
[all...]
/linux-master/lib/pldmfw/
H A Dpldmfw_private.h160 * @count: the number of descriptors
165 #define pldm_for_each_desc_tlv(i, desc, start, count) \
167 (i) < (count); \
195 * @count: the number of records
199 #define pldm_for_each_record(i, record, start, count) \
201 (i) < (count); \
229 * @count: the number of components
233 #define pldm_for_each_component(i, component, start, count) \
235 (i) < (count); \
/linux-master/drivers/misc/
H A Dhmc6352.c30 static int compass_store(struct device *dev, const char *buf, size_t count, argument
48 return count;
52 struct device_attribute *attr, const char *buf, size_t count)
54 return compass_store(dev, buf, count, "EC");
58 struct device_attribute *attr, const char *buf, size_t count)
60 return compass_store(dev, buf, count, "SW");
51 compass_calibration_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
57 compass_power_mode_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
/linux-master/drivers/mfd/
H A Daat2870-core.c219 ssize_t count = 0; local
222 count += sprintf(buf, "aat2870 registers\n");
224 count += snprintf(buf + count, PAGE_SIZE - count, "0x%02x: ", addr);
225 if (count >= PAGE_SIZE - 1)
230 count += snprintf(buf + count, PAGE_SIZE - count,
233 count
251 aat2870_reg_read_file(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument
271 aat2870_reg_write_file(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument
[all...]
/linux-master/fs/efivarfs/
H A Dfile.c16 const char __user *userbuf, size_t count, loff_t *ppos)
22 unsigned long datasize = count - sizeof(attributes);
26 if (count < sizeof(attributes))
58 bytes = count;
67 size_t count, loff_t *ppos)
101 size = simple_read_from_buffer(userbuf, count, ppos,
15 efivarfs_file_write(struct file *file, const char __user *userbuf, size_t count, loff_t *ppos) argument
66 efivarfs_file_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) argument
/linux-master/include/crypto/
H A Dengine.h85 int crypto_engine_register_aeads(struct aead_engine_alg *algs, int count);
86 void crypto_engine_unregister_aeads(struct aead_engine_alg *algs, int count);
90 int crypto_engine_register_ahashes(struct ahash_engine_alg *algs, int count);
92 int count);
103 int count);
105 int count);
/linux-master/arch/arm/mach-s5pv210/
H A Dpm.c36 * @count: Size of the ptr array.
41 static void s3c_pm_do_save(struct sleep_save *ptr, int count) argument
43 for (; count > 0; count--, ptr++) {
52 * @count: Size of the ptr array.
60 static void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count) argument
62 for (; count > 0; count--, ptr++)
/linux-master/drivers/s390/char/
H A Dcon3215.c71 int residual; /* residual count for read request */
85 int count; /* number of bytes in output buffer */ member in struct:raw3215_info
161 ccw->count = 160;
175 int len, count, ix, lines; local
177 if (raw->count <= raw->written)
192 req->start = (raw->head - raw->count + raw->written) &
195 * now we have to count newlines. We can at max accept
222 count = len;
223 if (ix + count > RAW3215_BUFFER_SIZE)
224 count
352 int count; local
578 unsigned int count, avail; local
781 con_drop_store(struct device_driver *dev, const char *buf, size_t count) argument
828 handle_write(struct raw3215_info *raw, const u8 *str, size_t count) argument
842 con3215_write(struct console *co, const char *str, unsigned int count) argument
1023 tty3215_write(struct tty_struct *tty, const u8 *buf, size_t count) argument
[all...]
/linux-master/drivers/infiniband/hw/qib/
H A Dqib_sysfs.c63 const char *buf, size_t count)
84 return ret < 0 ? ret : count;
90 size_t count)
94 int ret = count, r;
106 const char *buf, size_t count)
120 return count;
218 loff_t pos, size_t count)
232 if (count > ret - pos)
233 count = ret - pos;
235 if (!count)
61 hrtbt_enable_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) argument
88 loopback_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) argument
104 led_override_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) argument
216 cc_table_bin_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t count) argument
251 cc_setting_bin_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t count) argument
387 diagc_attr_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) argument
437 qib_store_per_cpu(struct qib_devdata *dd, const char *buf, size_t count, u64 *zero, u64 cur) argument
465 rc_acks_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) argument
488 rc_qacks_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) argument
511 rc_delayed_comp_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) argument
662 chip_reset_store(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/linux-master/drivers/opp/
H A Dof.c168 int count, i, size; local
178 count = of_count_phandle_with_args(np, "required-opps", NULL);
179 if (count <= 0)
183 required_opp_tables = kcalloc(count, size, GFP_KERNEL);
188 opp_table->required_devs = (void *)(required_opp_tables + count);
189 opp_table->required_opp_count = count;
191 for (i = 0; i < count; i++) {
357 int i, ret, count = opp_table->required_opp_count; local
359 if (!count)
362 opp->required_opps = kcalloc(count, sizeo
508 int ret, i, count, num_paths; local
568 int count, versions, ret, i, j; local
626 int count, ret; local
789 int i, count, ret; local
834 int i, count, ret; local
1022 int ret, count = 0; local
1134 int ret, count; local
[all...]
/linux-master/sound/soc/
H A Dsoc-jack.c84 * @count: Number of zones
90 int snd_soc_jack_add_zones(struct snd_soc_jack *jack, int count, argument
95 for (i = 0; i < count; i++) {
130 * @count: Number of pins
137 int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count, argument
142 for (i = 0; i < count; i++) {
205 int count; member in struct:jack_gpio_tbl
279 static void jack_free_gpios(struct snd_soc_jack *jack, int count, argument
284 for (i = 0; i < count; i++) {
298 jack_free_gpios(tbl->jack, tbl->count, tb
311 snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) argument
425 snd_soc_jack_add_gpiods(struct device *gpiod_dev, struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) argument
447 snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count, struct snd_soc_jack_gpio *gpios) argument
[all...]
/linux-master/drivers/input/misc/
H A Dsparcspkr.c43 static u32 bbc_count_to_reg(struct bbc_beep_info *info, unsigned int count) argument
48 if (!count)
51 if (count <= clock_freq >> 20)
54 if (count >= clock_freq >> 12)
60 if (count <= clock_freq >> i)
71 unsigned int count = 0; local
84 count = 1193182 / value;
86 count = bbc_count_to_reg(info, count);
90 if (count) {
109 unsigned int count = 0; local
[all...]
/linux-master/drivers/auxdisplay/
H A Dline-display.c71 * @count: length of msg, or -1
80 ssize_t count)
87 if (count == -1)
88 count = strlen(msg);
91 if (msg[count - 1] == '\n')
92 count--;
94 if (!count) {
104 new_msg = kmemdup_nul(msg, count, GFP_KERNEL);
111 linedisp->message_len = count;
144 * @count
79 linedisp_display(struct linedisp *linedisp, const char *msg, ssize_t count) argument
150 message_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
170 scroll_step_ms_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
203 map_seg_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/linux-master/fs/hfsplus/
H A Dbitmap.c164 int hfsplus_block_free(struct super_block *sb, u32 offset, u32 count) argument
174 if (!count)
177 hfs_dbg(BITMAP, "block_free: %u,%u\n", offset, count);
179 if ((offset + count) > sbi->total_blocks)
191 len = count;
198 if (j > count) {
199 mask |= 0xffffffffU >> (i + count);
204 count -= j;
210 if (count < 32)
213 count
[all...]

Completed in 324 milliseconds

<<11121314151617181920>>