Searched refs:count (Results 1 - 25 of 7674) sorted by last modified time

1234567891011>>

/linux-master/tools/testing/selftests/kvm/x86_64/
H A Dpmu_counters_test.c88 * one "hit, assert that its count is non-zero. If an event isn't supported or
90 * off regarding the count, i.e. no checks can be done.
92 * Sanity check that in all cases, the event doesn't count when it's disabled,
99 uint64_t count; local
101 count = _rdpmc(pmc);
107 GUEST_ASSERT_EQ(count, NUM_INSNS_RETIRED);
110 GUEST_ASSERT_EQ(count, NUM_BRANCHES);
120 GUEST_ASSERT_NE(count, 0);
123 GUEST_ASSERT(count >= NUM_INSNS_RETIRED);
131 GUEST_ASSERT_EQ(_rdpmc(pmc), count); local
[all...]
/linux-master/kernel/sched/
H A Dsched.h108 extern void call_trace_sched_update_nr_running(struct rq *rq, int count);
2512 static inline void add_nr_running(struct rq *rq, unsigned count) argument
2516 rq->nr_running = prev_nr + count;
2518 call_trace_sched_update_nr_running(rq, count);
2531 static inline void sub_nr_running(struct rq *rq, unsigned count) argument
2533 rq->nr_running -= count;
2535 call_trace_sched_update_nr_running(rq, -count);
/linux-master/fs/sysfs/
H A Dfile.c45 ssize_t count; local
52 count = seq_get_buf(sf, &buf);
53 if (count < PAGE_SIZE) {
59 count = ops->show(kobj, of->kn->priv, buf);
60 if (count < 0)
61 return count;
67 if (count >= (ssize_t)PAGE_SIZE) {
68 printk("fill_read_buffer: %pS returned bad count\n",
71 count = PAGE_SIZE - 1;
73 seq_commit(sf, count);
77 sysfs_kf_bin_read(struct kernfs_open_file *of, char *buf, size_t count, loff_t pos) argument
101 sysfs_kf_read(struct kernfs_open_file *of, char *buf, size_t count, loff_t pos) argument
127 sysfs_kf_write(struct kernfs_open_file *of, char *buf, size_t count, loff_t pos) argument
140 sysfs_kf_bin_write(struct kernfs_open_file *of, char *buf, size_t count, loff_t pos) argument
[all...]
/linux-master/fs/smb/server/
H A Dvfs.c289 size_t count)
294 ksmbd_debug(VFS, "read stream data pos : %llu, count : %zd\n",
295 *pos, count);
306 count = -EINVAL;
310 if (v_len - *pos < count)
311 count = v_len - *pos;
313 memcpy(buf, &stream_buf[*pos], count);
317 return count;
368 * @count: read byte count
288 ksmbd_vfs_stream_read(struct ksmbd_file *fp, char *buf, loff_t *pos, size_t count) argument
374 ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count, loff_t *pos, char *rbuf) argument
417 ksmbd_vfs_stream_write(struct ksmbd_file *fp, char *buf, loff_t *pos, size_t count) argument
490 ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp, char *buf, size_t count, loff_t *pos, bool sync, ssize_t *written) argument
[all...]
/linux-master/fs/smb/client/
H A Dsmb2pdu.c504 /* lookup word count ie StructureSize from table */
785 pr_warn_once("Invalid SMB3 hash algorithm count\n");
809 pr_warn_once("invalid SMB3 compress algorithm count\n");
842 pr_warn_once("Invalid SMB3.11 cipher count\n");
892 pr_warn_once("Invalid signing algorithm count\n");
3314 * want to double count this, so we do not send
4101 /* first check if ref count has reached 0, if not inc ref count */
4116 /* if the server is marked for termination, drop the ref count here */
4712 cifs_dbg(FYI, "bad length %d for count
6000 unsigned int count; local
[all...]
H A Dsmb2ops.c3606 __u64 count, old_eof, new_eof; local
3618 count = old_eof - off;
3636 rc = smb2_copychunk_range(xid, cfile, cfile, off, count, off + len);
4161 size_t count = iov_iter_count(iter); local
4173 rc = extract_iter_to_sg(iter, count, &sgtable,
H A Dconnect.c776 * iov_iter_discard already sets smb_msg.type and count and iov_offset
1658 /* For secondary channels, we pick up ref-count on the primary server */
3704 __u16 bytes_left, count; local
3756 count = bcc_ptr - &pSMB->Password[0];
3757 be32_add_cpu(&pSMB->hdr.smb_buf_length, count);
3758 pSMB->ByteCount = cpu_to_le16(count);
H A Dcifsglob.h670 inc_rfc1001_len(void *buf, int count) argument
672 be32_add_cpu((__be32 *)buf, count);
766 atomic_t smb2slowcmd[NUMBER_OF_SMB2_COMMANDS]; /* count resps > 1 sec */
1449 int count; member in struct:cifsFileInfo
1450 spinlock_t file_info_lock; /* protects four flag/count fields above */
1548 ++cifs_file->count;
2026 * cifsFileInfo->file_info_lock cifsFileInfo->count cifs_new_fileinfo
/linux-master/drivers/usb/typec/ucsi/
H A Ducsi.c212 unsigned int count; member in struct:ucsi_work
234 if (uwork->count-- && (ret == -EBUSY || ret == -ETIMEDOUT)) {
258 uwork->count = retries;
/linux-master/drivers/usb/typec/tcpm/
H A Dtcpm.c2369 const u32 *data, int count, enum tcpm_transmit_type tx_sop_type)
2396 if (WARN_ON(count > VDO_MAX_SIZE - 1))
2397 count = VDO_MAX_SIZE - 1;
2403 tcpm_queue_vdm(port, header, data, count, tx_sop_type);
2800 u32 header, const u32 *data, int count)
2804 tcpm_queue_vdm_unlocked(port, header, data, count - 1, TCPC_TX_SOP);
2852 u32 header, const u32 *data, int count)
2856 tcpm_queue_vdm_unlocked(port, header, data, count - 1, TCPC_TX_SOP_PRIME);
2368 tcpm_send_vdm(struct tcpm_port *port, u32 vid, int cmd, const u32 *data, int count, enum tcpm_transmit_type tx_sop_type) argument
2799 tcpm_altmode_vdm(struct typec_altmode *altmode, u32 header, const u32 *data, int count) argument
2851 tcpm_cable_altmode_vdm(struct typec_altmode *altmode, enum typec_plug_index sop, u32 header, const u32 *data, int count) argument
/linux-master/drivers/usb/misc/
H A Donboard_usb_hub.c225 const char *buf, size_t count)
237 return count;
224 always_powered_in_suspend_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
/linux-master/drivers/usb/gadget/udc/
H A Dfsl_udc_core.c835 unsigned count; local
842 dtd = fsl_build_dtd(req, &count, &dma, &is_last, gfp_flags);
/linux-master/drivers/usb/gadget/function/
H A Df_fs.c271 static void ffs_epfiles_destroy(struct ffs_epfile *epfiles, unsigned count);
507 * n cannot be bigger than ffs->ev.count, which cannot be bigger than
525 ffs->ev.count -= n;
526 if (ffs->ev.count)
528 ffs->ev.count * sizeof *ffs->ev.types);
577 if ((file->f_flags & O_NONBLOCK) && !ffs->ev.count) {
583 ffs->ev.count)) {
590 min(n, (size_t)ffs->ev.count));
699 if (ffs->ev.count)
2265 ffs->ev.count
2329 unsigned i, count; local
2359 ffs_epfiles_destroy(struct ffs_epfile *epfiles, unsigned count) argument
2379 unsigned short count; local
2406 unsigned short count; local
2610 ffs_do_descs(unsigned count, char *data, unsigned len, ffs_entity_callback entity, void *priv) argument
2752 ffs_do_os_descs(unsigned count, char *data, unsigned len, ffs_os_desc_callback entity, void *priv) argument
3856 unsigned count = func->ffs->interfaces_count; local
4021 unsigned count = ffs->eps_count; local
[all...]
/linux-master/drivers/usb/core/
H A Dport.c31 const char *buf, size_t count)
44 return count;
99 const char *buf, size_t count)
146 rc = count;
222 const char *buf, size_t count)
231 return count;
258 const char *buf, size_t count)
297 return count;
30 early_stop_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
98 disable_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
221 quirks_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
256 usb3_lpm_permit_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
/linux-master/drivers/usb/class/
H A Dcdc-wdm.c98 int count; member in struct:wdm_device
376 (struct file *file, const char __user *buffer, size_t count, loff_t *ppos)
383 if (count > desc->wMaxCommand)
384 count = desc->wMaxCommand;
393 buf = memdup_user(buffer, count);
440 count,
450 req->wLength = cpu_to_le16(count);
469 return count;
520 (struct file *file, char __user *buffer, size_t count, loff_t *ppos)
601 if (cntr > count)
375 wdm_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) argument
519 wdm_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) argument
[all...]
/linux-master/drivers/tty/serial/
H A Dstm32-usart.c721 unsigned int count; local
731 count = uart_circ_chars_pending(xmit);
733 if (count > TX_BUF_L)
734 count = TX_BUF_L;
737 memcpy(&stm32port->tx_buf[0], &xmit->buf[xmit->tail], count);
742 if (one > count)
743 one = count;
744 two = count - one;
753 count,
783 uart_xmit_advance(port, count);
2026 early_stm32_serial_write(struct console *console, const char *s, unsigned int count) argument
[all...]
H A Dserial_core.c147 /* Increment the runtime PM usage count for the active check below */
593 static ssize_t uart_write(struct tty_struct *tty, const u8 *buf, size_t count) argument
617 if (count < c)
618 c = count;
624 count -= c;
1046 * This semaphore protects port->count. It is also
1162 * Take the per-port semaphore. This prevents count from
1764 --port->count;
1900 port->count = 0;
2143 * @count
2146 uart_console_write(struct uart_port *port, const char *s, unsigned int count, void (*putchar)(struct uart_port *, unsigned char)) argument
3065 console_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
H A Dpmac_zilog.c1351 int count; member in struct:slot_names_prop
1379 if (slots && slots->count > 0) {
1550 int count = 0; local
1581 pmz_ports[count].mate = &pmz_ports[count+1];
1582 pmz_ports[count+1].mate = &pmz_ports[count];
1584 pmz_ports[count].flags = PMACZILOG_FLAG_IS_CHANNEL_A;
1585 pmz_ports[count].node = node_a;
1586 pmz_ports[count
1872 pmz_console_write(struct console *con, const char *s, unsigned int count) argument
[all...]
H A Dmxs-auart.c824 int count; local
833 count = stat & AUART_STAT_RXCOUNT_MASK;
834 tty_insert_flip_string(port, s->rx_dma_buf, count);
1319 auart_console_write(struct console *co, const char *str, unsigned int count) argument
1341 uart_console_write(port, str, count, mxs_auart_console_putchar);
/linux-master/drivers/thunderbolt/
H A Dswitch.c1835 const char *buf, size_t count)
1852 return ret ? ret : count;
1911 const char *buf, size_t count)
1915 ssize_t ret = count;
2088 struct device_attribute *attr, const char *buf, size_t count)
2093 return count;
2104 struct device_attribute *attr, const char *buf, size_t count)
2109 return ret ? ret : count;
3375 * reference count drops to zero. If there are switches connected below
3717 * Returned switch has reference count increase
1833 authorized_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
1910 key_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
2087 nvm_authenticate_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
2103 nvm_authenticate_on_disconnect_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/linux-master/drivers/misc/mei/
H A Dplatform-vsc.c84 fw_status->count = 0;
/linux-master/drivers/misc/cardreader/
H A Drtsx_pcr.c426 int err = 0, count; local
429 count = rtsx_pci_dma_map_sg(pcr, sglist, num_sg, read);
430 if (count < 1)
432 pcr_dbg(pcr, "DMA mapping count: %d\n", count);
434 err = rtsx_pci_dma_transfer(pcr, sglist, count, read, timeout);
467 int count, bool read, int timeout)
482 if ((sglist == NULL) || (count < 1))
487 for_each_sg(sglist, sg, count, i) {
490 rtsx_pci_add_sg_tbl(pcr, addr, len, i == count
466 rtsx_pci_dma_transfer(struct rtsx_pcr *pcr, struct scatterlist *sglist, int count, bool read, int timeout) argument
[all...]
/linux-master/drivers/interconnect/
H A Dcore.c245 /* count the hops including the source */
1081 int count = 0; local
1086 count++;
1087 count += of_count_icc_providers(child);
1090 return count;
1097 static int count; local
1099 count++;
1101 if (count < providers_count)
/linux-master/drivers/clk/
H A Dclk.c961 * if there is something wrong with this consumer protect count, stop
987 static void clk_core_rate_restore_protect(struct clk_core *core, int count) argument
994 if (count == 0)
998 core->protect_count = count;
2148 /* migrate prepare count if > 0 */
3356 seq_puts(s, " clock count count count rate accuracy phase cycle enable consumer id\n");
3641 size_t count, loff_t *ppos)
3649 err = kstrtou8_from_user(ubuf, count,
3640 current_parent_write(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) argument
5354 int count; local
5372 int count; local
[all...]
/linux-master/drivers/android/
H A Dbinder.c1491 * count for the thread to ensure it stays alive until
6052 size_t start_pos = m->count;
6059 header_pos = m->count;
6080 if (!print_always && m->count == header_pos)
6081 m->count = start_pos;
6089 int count; local
6091 count = hlist_count_nodes(&node->refs);
6097 node->internal_strong_refs, count, node->tmp_refs);
6098 if (count) {
6128 size_t start_pos = m->count;
6295 int count, strong, weak, ready_threads; local
6468 unsigned int count; local
[all...]

Completed in 340 milliseconds

1234567891011>>