Home
last modified time | relevance | path

Searched refs:remain (Results 1 – 21 of 21) sorted by relevance

/drivers/mmc/host/
Dmmci.c211 static int mmci_pio_read(struct mmci_host *host, char *buffer, unsigned int remain) in mmci_pio_read() argument
221 if (count > remain) in mmci_pio_read()
222 count = remain; in mmci_pio_read()
230 remain -= count; in mmci_pio_read()
233 if (remain == 0) in mmci_pio_read()
242 static int mmci_pio_write(struct mmci_host *host, char *buffer, unsigned int remain, u32 status) in mmci_pio_write() argument
251 count = min(remain, maxcnt); in mmci_pio_write()
256 remain -= count; in mmci_pio_write()
258 if (remain == 0) in mmci_pio_write()
282 unsigned int remain, len; in mmci_pio_irq() local
[all …]
Dwbsd.c248 host->remain = host->cur_sg->length; in wbsd_init_sg()
264 host->remain = host->cur_sg->length; in wbsd_next_sg()
450 host->remain--; in wbsd_empty_fifo()
457 if (host->remain == 0) { in wbsd_empty_fifo()
513 host->remain--; in wbsd_fill_fifo()
520 if (host->remain == 0) { in wbsd_fill_fifo()
Dwbsd.h159 unsigned int remain; /* Data left in curren entry */ member
/drivers/serial/jsm/
Djsm_tty.c842 u32 remain; in jsm_tty_write() local
856 remain = WQUEUESIZE - head; in jsm_tty_write()
859 if (n >= remain) { in jsm_tty_write()
860 n -= remain; in jsm_tty_write()
862 (data_count < remain)) { in jsm_tty_write()
870 if (data_count == remain) head = 0; in jsm_tty_write()
875 remain = n; in jsm_tty_write()
877 (data_count1 < remain)) { in jsm_tty_write()
/drivers/char/
Depca.c509 int remain; in pc_write() local
555 remain = size - (head - tail) - 1; in pc_write()
558 remain = tail - head - 1; in pc_write()
559 dataLen = remain; in pc_write()
565 bytesAvailable = min(remain, bytesAvailable); in pc_write()
601 int remain = 0; in pc_write_room() local
623 remain = tail - head - 1; in pc_write_room()
624 if (remain < 0) in pc_write_room()
625 remain += ch->txbufsize; in pc_write_room()
627 if (remain && (ch->statusflags & LOWWAIT) == 0) { in pc_write_room()
[all …]
/drivers/media/video/em28xx/
Dem28xx-video.c157 int linesdone, currlinedone, offset, lencopy, remain; in em28xx_copy_video() local
170 remain = len; in em28xx_copy_video()
183 lencopy = lencopy > remain ? remain : lencopy; in em28xx_copy_video()
189 lencopy = remain = (char *)outp + buf->vb.size - (char *)startwrite; in em28xx_copy_video()
195 remain -= lencopy; in em28xx_copy_video()
197 while (remain > 0) { in em28xx_copy_video()
200 if (bytesperline > remain) in em28xx_copy_video()
201 lencopy = remain; in em28xx_copy_video()
209 lencopy = remain = (char *)outp + buf->vb.size - in em28xx_copy_video()
217 remain -= lencopy; in em28xx_copy_video()
/drivers/platform/x86/
Dtoshiba_acpi.c524 int remain = count; in write_video() local
535 while (remain) { in write_video()
545 --remain; in write_video()
547 while (remain && *(buffer - 1) != ';'); in write_video()
/drivers/s390/char/
Dtape_core.c485 int remain; in tape_put_device() local
487 remain = atomic_dec_return(&device->ref_count); in tape_put_device()
488 if (remain > 0) { in tape_put_device()
489 DBF_EVENT(4, "tape_put_device(%p) -> %i\n", device, remain); in tape_put_device()
491 if (remain < 0) { in tape_put_device()
/drivers/net/wireless/libertas/
Dif_cs.c568 int remain = fw->size - sent; in if_cs_prog_helper() local
570 if (remain < count) in if_cs_prog_helper()
571 count = remain; in if_cs_prog_helper()
/drivers/isdn/hardware/mISDN/
Dhfcsusb.c1199 int k, tx_offset, num_isoc_packets, sink, remain, current_len, in tx_iso_complete() local
1278 remain = tx_skb->len - *tx_idx; in tx_iso_complete()
1280 remain = 0; in tx_iso_complete()
1282 if (remain > 0) { in tx_iso_complete()
1289 if (remain < current_len) in tx_iso_complete()
1290 current_len = remain; in tx_iso_complete()
1296 if (current_len == remain) { in tx_iso_complete()
/drivers/gpu/drm/i915/
Di915_gem.c252 ssize_t remain; in i915_gem_gtt_pwrite() local
259 remain = args->size; in i915_gem_gtt_pwrite()
260 if (!access_ok(VERIFY_READ, user_data, remain)) in i915_gem_gtt_pwrite()
278 while (remain > 0) { in i915_gem_gtt_pwrite()
287 page_length = remain; in i915_gem_gtt_pwrite()
288 if ((page_offset + remain) > PAGE_SIZE) in i915_gem_gtt_pwrite()
306 remain -= page_length; in i915_gem_gtt_pwrite()
/drivers/media/dvb/frontends/
Dstb0899_algo.c792 u32 dec_ratio, dec_rate, decim, remain, intval, btr_nom_freq; in stb0899_dvbs2_calc_srate() local
804 remain = (decim * (1 << (config->btr_nco_bits - 1))) % master_clk; in stb0899_dvbs2_calc_srate()
807 remain = (decim * (1 << (config->btr_nco_bits - 1))) % master_clk; in stb0899_dvbs2_calc_srate()
809 btr_nom_freq = (intval * srate) + ((remain * srate) / master_clk); in stb0899_dvbs2_calc_srate()
/drivers/staging/rt2870/
D2870_main_dev.c1592 UINT32 delta, remain, remain_low, remain_high; in BeaconUpdateExec() local
1606 remain = (remain_high + remain_low)%(pAd->CommonCfg.BeaconPeriod << 10); in BeaconUpdateExec()
1607 delta = (pAd->CommonCfg.BeaconPeriod << 10) - remain; in BeaconUpdateExec()
/drivers/usb/gadget/
Dpxa27x_udc.c885 int length, count, remain, i; in write_packet() local
895 remain = length & 0x3; in write_packet()
901 for (i = remain; i > 0; i--) in write_packet()
904 ep_vdbg(ep, "length=%d+%d, udccsr=0x%03x\n", count, remain, in write_packet()
/drivers/staging/rtl8187se/
Dr8180_core.c3203 int remain; local
3363 remain=len;
3366 while(remain!=0){
3384 remain,len);
3393 return remain;
3410 if(remain==len && !descfrag) {
3421 for(i=0;i<buflen&& remain >0;i++,remain--){
3423 if(remain == 4 && i+4 >= buflen) break;
3508 if(!remain) *tail = (*tail) | (1<<28); // last segment of frame
3511 if(!remain)DMESG("Last descriptor");
/drivers/block/paride/
DTransition-notes128 can be taken to callers as long as they remain within the area.
/drivers/video/console/
DKconfig128 such that other users of the framebuffer will remain normally
/drivers/staging/asus_oled/
DREADME112 stop flashing (but that part of the picture will remain there), and the lower
/drivers/mtd/onenand/
Donenand_base.c406 unsigned long remain, timeout; in onenand_try_interrupt_wait() local
412 remain = wait_for_completion_timeout(&this->complete, timeout); in onenand_try_interrupt_wait()
413 if (!remain) { in onenand_try_interrupt_wait()
/drivers/net/wireless/
DKconfig223 on startup. The firmware will remain cached until the
/drivers/watchdog/
DKconfig218 and/or ATUe configuration registers will remain intact, but if