/linux-master/fs/smb/server/ |
H A D | vfs.c | 289 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 D | smb2pdu.c | 504 /* 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 D | smb2ops.c | 3606 __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 D | connect.c | 776 * 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 D | cifsglob.h | 670 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 D | ucsi.c | 212 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 D | tcpm.c | 2369 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 D | onboard_usb_hub.c | 225 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 D | fsl_udc_core.c | 835 unsigned count; local 842 dtd = fsl_build_dtd(req, &count, &dma, &is_last, gfp_flags);
|
/linux-master/drivers/usb/gadget/function/ |
H A D | f_fs.c | 271 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 D | port.c | 31 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 D | cdc-wdm.c | 98 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 D | stm32-usart.c | 721 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 D | serial_core.c | 147 /* 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 D | pmac_zilog.c | 1351 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 D | mxs-auart.c | 824 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 D | switch.c | 1835 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 D | platform-vsc.c | 84 fw_status->count = 0;
|
/linux-master/drivers/misc/cardreader/ |
H A D | rtsx_pcr.c | 426 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 D | core.c | 245 /* 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 D | clk.c | 961 * 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 D | binder.c | 1491 * 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...] |
/linux-master/drivers/accessibility/speakup/ |
H A D | main.c | 109 static void spkup_write(const u16 *in_buf, int count); 1079 static void spkup_write(const u16 *in_buf, int count) argument 1084 int in_count = count; 1087 while (count--) { 1129 * clear repeat count 1131 * repeats on you don't get nothing repeated count
|
/linux-master/arch/x86/kvm/ |
H A D | x86.c | 1817 for (i = 0; i < msr_filter->count; i++) { 2523 * and all vCPUs must have matching TSCs. Note, the count for matching 4445 * Provide expected ramp-up count for K7. All other 6417 kvm_pit_load_count(pit, i, ps->channels[i].count, 0); 6449 kvm_pit_load_count(pit, i, pit->pit_state.channels[i].count, 6758 for (i = 0; i < msr_filter->count; i++) 6787 msr_filter->ranges[msr_filter->count] = (struct msr_bitmap_range) { 6794 msr_filter->count++; 8093 unsigned int count, bool in) 8098 WARN_ON_ONCE(vcpu->arch.pio.count); 8091 emulator_pio_in_out(struct kvm_vcpu *vcpu, int size, unsigned short port, void *data, unsigned int count, bool in) argument 8142 emulator_pio_in(struct kvm_vcpu *vcpu, int size, unsigned short port, void *val, unsigned int count) argument 8155 unsigned int count = vcpu->arch.pio.count; local 8161 emulator_pio_in_emulated(struct x86_emulate_ctxt *ctxt, int size, unsigned short port, void *val, unsigned int count) argument 8181 emulator_pio_out(struct kvm_vcpu *vcpu, int size, unsigned short port, const void *val, unsigned int count) argument 8189 emulator_pio_out_emulated(struct x86_emulate_ctxt *ctxt, int size, unsigned short port, const void *val, unsigned int count) argument 13802 advance_sev_es_emulated_pio(struct kvm_vcpu *vcpu, unsigned count, int size) argument 13826 unsigned int count = local 13849 unsigned count = vcpu->arch.pio.count; local 13864 unsigned int count = local 13879 kvm_sev_es_string_io(struct kvm_vcpu *vcpu, unsigned int size, unsigned int port, void *data, unsigned int count, int in) argument [all...] |
/linux-master/arch/x86/kvm/vmx/ |
H A D | vmx.c | 4064 * mode, only the current timer count needs on-demand emulation by KVM. 5834 unsigned count = 130; local 5839 while (vmx->emulation_required && count-- != 0) { 6792 * Ensure that the mmu_notifier sequence count is read before KVM
|