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

<<11121314151617181920>>

/linux-master/arch/alpha/kernel/
H A Dsrmcons.c53 int count = 0, loops = 0; local
59 count++;
63 if (count)
66 return count;
94 srmcons_do_write(struct tty_port *port, const u8 *buf, size_t count) argument
99 while (count > 0) {
105 for (c = 0; c < min_t(size_t, 128U, count) && !need_cr; c++)
112 count -= result.bits.c;
131 srmcons_write(struct tty_struct *tty, const u8 *buf, size_t count) argument
136 srmcons_do_write(tty->port, buf, count);
237 srm_console_write(struct console *co, const char *s, unsigned count) argument
[all...]
/linux-master/fs/xfs/libxfs/
H A Dxfs_attr_leaf.c115 ASSERT(!to->count && !to->usedbytes);
169 to->count = be16_to_cpu(hdr3->count);
183 to->count = be16_to_cpu(from->hdr.count);
211 hdr3->count = cpu_to_be16(from->count);
226 to->hdr.count = cpu_to_be16(from->count);
342 if ((char *)&entries[ichdr.count] >
1722 int count; local
1912 int count; local
2566 xfs_attr3_leaf_moveents( struct xfs_da_args *args, struct xfs_attr_leafblock *leaf_s, struct xfs_attr3_icleaf_hdr *ichdr_s, int start_s, struct xfs_attr_leafblock *leaf_d, struct xfs_attr3_icleaf_hdr *ichdr_d, int start_d, int count) argument
2710 xfs_attr_leaf_lasthash( struct xfs_buf *bp, int *count) argument
[all...]
/linux-master/lib/
H A Dhashtable_test.c127 int bkt, i, j, count; local
138 count = 0;
143 count++;
147 KUNIT_EXPECT_EQ(test, count, 3);
157 int bkt, i, j, count; local
168 count = 0;
173 count++;
180 KUNIT_EXPECT_EQ(test, count, 3);
190 int bkt, i, j, count; local
207 count
245 int bkt, i, j, count; local
[all...]
/linux-master/fs/ext4/
H A Dblock_validity.c26 unsigned int count; member in struct:ext4_system_zone
49 if ((entry1->start_blk + entry1->count) == entry2->start_blk &&
71 unsigned int count, u32 ino)
82 else if (start_blk >= (entry->start_blk + entry->count))
93 new_entry->count = count;
106 new_entry->count += entry->count;
117 new_entry->count += entry->count;
69 add_system_zone(struct ext4_system_blocks *system_blks, ext4_fsblk_t start_blk, unsigned int count, u32 ino) argument
295 ext4_sb_block_valid(struct super_block *sb, struct inode *inode, ext4_fsblk_t start_blk, unsigned int count) argument
343 ext4_inode_block_valid(struct inode *inode, ext4_fsblk_t start_blk, unsigned int count) argument
[all...]
/linux-master/drivers/misc/lkdtm/
H A Dcore.c35 size_t count, loff_t *off);
37 size_t count, loff_t *off);
43 size_t count, loff_t *off);
229 size_t count, loff_t *off)
236 if (count >= PAGE_SIZE)
242 if (copy_from_user(buf, user_buf, count)) {
247 buf[count] = '\0';
260 *off += count;
262 return count;
268 size_t count, loff_
227 lkdtm_debugfs_entry(struct file *f, const char __user *user_buf, size_t count, loff_t *off) argument
267 lkdtm_debugfs_read(struct file *f, char __user *user_buf, size_t count, loff_t *off) argument
304 direct_entry(struct file *f, const char __user *user_buf, size_t count, loff_t *off) argument
[all...]
/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;
233 size_t count, loff_t *ppos)
242 if (src & KPMMASK || count & KPMMASK)
246 count
45 kpagecount_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
232 kpageflags_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument
280 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...]
/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
656 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...]

Completed in 478 milliseconds

<<11121314151617181920>>