Searched refs:nleft (Results 1 - 9 of 9) sorted by relevance
/linux-4.1.27/drivers/isdn/i4l/ |
H A D | isdn_audio.h | 17 int nleft; member in struct:adpcm_state
|
H A D | isdn_audio.c | 304 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.1.27/drivers/ide/ |
H A D | ide-taskfile.c | 257 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 D | ide-cd.c | 418 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 D | ide-atapi.c | 511 done = min_t(unsigned int, bcount, cmd->nleft); ide_pc_intr()
|
H A D | ide-io.c | 235 cmd->nbytes = cmd->nleft = nr_bytes; ide_init_sg_cmd()
|
/linux-4.1.27/drivers/usb/core/ |
H A D | sysfs.c | 764 size_t nleft = count; read_descriptors() local 775 nleft > 0; ++cfgno) { read_descriptors() 785 n = min(nleft, srclen - (size_t) off); read_descriptors() 787 nleft -= n; read_descriptors() 795 return count - nleft; read_descriptors()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | uprobes.c | 973 int rasize = sizeof_long(), nleft; arch_uretprobe_hijack_return_addr() local 983 nleft = copy_to_user((void __user *)regs->sp, &trampoline_vaddr, rasize); arch_uretprobe_hijack_return_addr() 984 if (likely(!nleft)) arch_uretprobe_hijack_return_addr() 987 if (nleft != rasize) { arch_uretprobe_hijack_return_addr()
|
/linux-4.1.27/include/linux/ |
H A D | ide.h | 303 unsigned int nleft; member in struct:ide_cmd
|
Completed in 354 milliseconds