Searched refs:nleft (Results 1 - 10 of 10) sorted by relevance

/linux-4.4.14/drivers/isdn/i4l/
H A Disdn_audio.h17 int nleft; member in struct:adpcm_state
H A Disdn_audio.c304 while (s->nleft < s->nbits) { isdn_audio_get_bits()
308 s->nleft += 8; isdn_audio_get_bits()
310 s->nleft -= s->nbits; isdn_audio_get_bits()
311 return (s->word >> s->nleft) & bitmask[s->nbits]; isdn_audio_get_bits()
319 s->nleft += nbits; isdn_audio_put_bits()
320 while (s->nleft >= 8) { isdn_audio_put_bits()
321 int d = (s->word >> (s->nleft - 8)); isdn_audio_put_bits()
324 s->nleft -= 8; isdn_audio_put_bits()
337 s->nleft = 0; isdn_audio_adpcm_init()
/linux-4.4.14/drivers/ide/
H A Dide-taskfile.c257 cmd->nleft -= nr_bytes; ide_pio_bytes()
297 nr_bytes = min_t(unsigned, cmd->nleft, drive->mult_count << 9); ide_pio_datablock()
309 int nr_bytes = cmd->nbytes - cmd->nleft; ide_error_cmd()
312 ((cmd->tf_flags & IDE_TFLAG_WRITE) || cmd->nleft == 0)) { ide_error_cmd()
370 if (((stat & ATA_DRQ) == 0) ^ (cmd->nleft == 0)) task_pio_intr()
374 if (write && cmd->nleft == 0) task_pio_intr()
381 if (write == 0 && cmd->nleft == 0) { task_pio_intr()
H A Dide-cd.c418 cmd->nleft > 0 && cmd->nleft <= 5) ide_cd_request_sense_fixup()
419 cmd->nleft = 0; ide_cd_request_sense_fixup()
508 unsigned int nr_bytes = cmd->nbytes - cmd->nleft; ide_cd_error_cmd()
572 thislen = (rq->cmd_type == REQ_TYPE_FS) ? len : cmd->nleft; cdrom_newpc_intr()
587 if (cmd->nleft > 0) { cdrom_newpc_intr()
590 cmd->nleft); cdrom_newpc_intr()
598 uptodate = cmd->nleft ? 0 : 1; cdrom_newpc_intr()
606 uptodate = cmd->nleft ? 0 : 1; cdrom_newpc_intr()
627 int blen = min_t(int, thislen, cmd->nleft); cdrom_newpc_intr()
629 if (cmd->nleft == 0) cdrom_newpc_intr()
675 if (cmd->nleft == 0) cdrom_newpc_intr()
688 rq->resid_len -= cmd->nbytes - cmd->nleft; cdrom_newpc_intr()
H A Dide-atapi.c511 done = min_t(unsigned int, bcount, cmd->nleft); ide_pc_intr()
H A Dide-io.c235 cmd->nbytes = cmd->nleft = nr_bytes; ide_init_sg_cmd()
/linux-4.4.14/drivers/staging/wilc1000/
H A Dwilc_sdio.c277 int nblk, nleft; sdio_write() local
311 nleft = size % block_size; sdio_write()
332 if (nleft > 0) { sdio_write()
335 cmd.count = nleft; sdio_write()
408 int nblk, nleft; sdio_read() local
442 nleft = size % block_size; sdio_read()
463 if (nleft > 0) { sdio_read()
466 cmd.count = nleft; sdio_read()
/linux-4.4.14/drivers/usb/core/
H A Dsysfs.c816 size_t nleft = count; read_descriptors() local
827 nleft > 0; ++cfgno) { read_descriptors()
837 n = min(nleft, srclen - (size_t) off); read_descriptors()
839 nleft -= n; read_descriptors()
847 return count - nleft; read_descriptors()
/linux-4.4.14/arch/x86/kernel/
H A Duprobes.c965 int rasize = sizeof_long(), nleft; arch_uretprobe_hijack_return_addr() local
975 nleft = copy_to_user((void __user *)regs->sp, &trampoline_vaddr, rasize); arch_uretprobe_hijack_return_addr()
976 if (likely(!nleft)) arch_uretprobe_hijack_return_addr()
979 if (nleft != rasize) { arch_uretprobe_hijack_return_addr()
/linux-4.4.14/include/linux/
H A Dide.h316 unsigned int nleft; member in struct:ide_cmd

Completed in 463 milliseconds