Home
last modified time | relevance | path

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

123

/drivers/staging/fbtft/
Dfbtft-bus.c119 size_t remain; in fbtft_write_vmem16_bus8() local
129 remain = len / 2; in fbtft_write_vmem16_bus8()
149 while (remain) { in fbtft_write_vmem16_bus8()
150 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus8()
152 to_copy, remain - to_copy); in fbtft_write_vmem16_bus8()
162 remain -= to_copy; in fbtft_write_vmem16_bus8()
174 size_t remain; in fbtft_write_vmem16_bus9() local
188 remain = len; in fbtft_write_vmem16_bus9()
193 while (remain) { in fbtft_write_vmem16_bus9()
194 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus9()
[all …]
Dfb_ra8875.c257 size_t remain; in write_vmem16_bus8() local
267 remain = len / 2; in write_vmem16_bus8()
275 while (remain) { in write_vmem16_bus8()
276 to_copy = min(tx_array_size, remain); in write_vmem16_bus8()
278 to_copy, remain - to_copy); in write_vmem16_bus8()
288 remain -= to_copy; in write_vmem16_bus8()
/drivers/media/usb/stk1160/
Dstk1160-video.c116 int remain; in stk1160_copy_video() local
132 remain = len; in stk1160_copy_video()
144 if (remain < (bytesperline - lineoff)) in stk1160_copy_video()
145 lencopy = remain; in stk1160_copy_video()
155 remain = lencopy; in stk1160_copy_video()
159 if (lencopy == 0 || remain == 0) in stk1160_copy_video()
178 remain -= lencopy; in stk1160_copy_video()
181 while (remain > 0) { in stk1160_copy_video()
187 if (remain < bytesperline) in stk1160_copy_video()
188 lencopy = remain; in stk1160_copy_video()
[all …]
/drivers/gpu/drm/qxl/
Dqxl_image.c136 int remain; in qxl_image_init_helper() local
140 remain = linesize * height; in qxl_image_init_helper()
144 while (remain > 0) { in qxl_image_init_helper()
155 size = min(size, remain); in qxl_image_init_helper()
161 remain -= size; in qxl_image_init_helper()
168 remain = linesize; in qxl_image_init_helper()
171 while (remain > 0) { in qxl_image_init_helper()
174 size = min((int)(PAGE_SIZE - page_offset), remain); in qxl_image_init_helper()
180 remain -= size; in qxl_image_init_helper()
/drivers/staging/rtl8188eu/hal/
Dfw.c59 u32 i, write_address, blk_cnt, remain; in _rtl88e_fw_block_write() local
62 remain = size % blk_sz; in _rtl88e_fw_block_write()
70 for (i = 0; i < remain; i++, write_address++) in _rtl88e_fw_block_write()
89 u32 page_no, remain; in _rtl88e_write_fw() local
93 remain = size % FW_8192C_PAGE_SIZE; in _rtl88e_write_fw()
101 if (remain) { in _rtl88e_write_fw()
104 _rtl88e_fw_page_write(adapt, page, (buf_ptr + offset), remain); in _rtl88e_write_fw()
/drivers/mmc/host/
Dmoxart-mmc.c164 int remain; in moxart_next_sg() local
172 remain = host->data_len - data->bytes_xfered; in moxart_next_sg()
173 if (remain > 0 && remain < host->data_remain) in moxart_next_sg()
174 host->data_remain = remain; in moxart_next_sg()
309 u32 *sgp, len = 0, remain, status; in moxart_transfer_pio() local
315 remain = host->data_remain; in moxart_transfer_pio()
318 while (remain > 0) { in moxart_transfer_pio()
325 for (len = 0; len < remain && len < host->fifo_width;) { in moxart_transfer_pio()
330 remain -= len; in moxart_transfer_pio()
334 while (remain > 0) { in moxart_transfer_pio()
[all …]
Dmmci.c926 u32 remain, success; in mmci_data_irq() local
941 remain = readl(host->base + MMCIDATACNT); in mmci_data_irq()
942 success = data->blksz * data->blocks - remain; in mmci_data_irq()
1092 static int mmci_get_rx_fifocnt(struct mmci_host *host, u32 status, int remain) in mmci_get_rx_fifocnt() argument
1094 return remain - (readl(host->base + MMCIFIFOCNT) << 2); in mmci_get_rx_fifocnt()
1111 static int mmci_pio_read(struct mmci_host *host, char *buffer, unsigned int remain) in mmci_pio_read() argument
1121 if (count > remain) in mmci_pio_read()
1122 count = remain; in mmci_pio_read()
1147 remain -= count; in mmci_pio_read()
1150 if (remain == 0) in mmci_pio_read()
[all …]
/drivers/acpi/apei/
Dbert.c42 int remain = region_len; in bert_print_all() local
48 while (remain > sizeof(struct acpi_bert_region)) { in bert_print_all()
55 if (remain < estatus_len) { in bert_print_all()
77 remain -= estatus_len; in bert_print_all()
/drivers/spi/
Dspi-sh.c165 int remain = t->len; in spi_sh_send() local
174 while (remain > 0) { in spi_sh_send()
175 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_send()
192 remain -= cur_len; in spi_sh_send()
195 if (remain > 0) { in spi_sh_send()
230 int remain = t->len; in spi_sh_receive() local
246 while (remain > 0) { in spi_sh_receive()
247 if (remain >= SPI_SH_FIFO_SIZE) { in spi_sh_receive()
260 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_receive()
267 remain -= cur_len; in spi_sh_receive()
Dspi-fsl-lpspi.c99 u32 remain; member
134 fsl_lpspi->remain -= sizeof(type); \
193 if (!fsl_lpspi->remain) in fsl_lpspi_write_tx_fifo()
199 if (!fsl_lpspi->remain && (txfifo_cnt < fsl_lpspi->txfifosize)) in fsl_lpspi_write_tx_fifo()
341 fsl_lpspi->remain = t->len; in fsl_lpspi_transfer_one()
412 if (!fsl_lpspi->remain) in fsl_lpspi_isr()
/drivers/gpu/host1x/
Dsyncpt.c272 int remain; in host1x_syncpt_wait() local
274 remain = wait_event_interruptible_timeout(wq, in host1x_syncpt_wait()
277 if (remain > 0 || host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
286 if (remain < 0) { in host1x_syncpt_wait()
287 err = remain; in host1x_syncpt_wait()
/drivers/usb/dwc2/
Dhcd_ddma.c897 u16 remain = 0; in dwc2_cmpl_host_isoc_dma_desc() local
913 remain = (dma_desc->status & HOST_DMA_ISOC_NBYTES_MASK) >> in dwc2_cmpl_host_isoc_dma_desc()
923 frame_desc->actual_length = qh->n_bytes[idx] - remain; in dwc2_cmpl_host_isoc_dma_desc()
927 frame_desc->actual_length = qh->n_bytes[idx] - remain; in dwc2_cmpl_host_isoc_dma_desc()
1073 u16 remain = 0; in dwc2_update_non_isoc_urb_state_ddma() local
1076 remain = (dma_desc->status & HOST_DMA_NBYTES_MASK) >> in dwc2_update_non_isoc_urb_state_ddma()
1079 dev_vdbg(hsotg->dev, "remain=%d dwc2_urb=%p\n", remain, urb); in dwc2_update_non_isoc_urb_state_ddma()
1119 urb->actual_length += n_bytes - remain; in dwc2_update_non_isoc_urb_state_ddma()
1120 if (remain || urb->actual_length >= urb->length) { in dwc2_update_non_isoc_urb_state_ddma()
1135 urb->actual_length += n_bytes - remain; in dwc2_update_non_isoc_urb_state_ddma()
[all …]
/drivers/infiniband/hw/cxgb4/
Dmem.c190 u32 remain = len; in _c4iw_write_mem_dma() local
201 while (remain > inline_threshold) { in _c4iw_write_mem_dma()
202 if (remain < T4_ULPTX_MAX_DMA) { in _c4iw_write_mem_dma()
203 if (remain & ~T4_ULPTX_MIN_IO) in _c4iw_write_mem_dma()
204 dmalen = remain & ~(T4_ULPTX_MIN_IO-1); in _c4iw_write_mem_dma()
206 dmalen = remain; in _c4iw_write_mem_dma()
209 remain -= dmalen; in _c4iw_write_mem_dma()
211 !remain, skb); in _c4iw_write_mem_dma()
218 if (remain) in _c4iw_write_mem_dma()
219 ret = _c4iw_write_mem_inline(rdev, addr, remain, data, skb); in _c4iw_write_mem_dma()
/drivers/staging/gdm724x/
Dgdm_tty.c182 int remain = len; in gdm_tty_write() local
193 sending_len = min(MUX_TX_MAX_SIZE, remain); in gdm_tty_write()
202 remain -= sending_len; in gdm_tty_write()
203 if (remain <= 0) in gdm_tty_write()
/drivers/staging/dgnc/
Ddgnc_tty.c315 int remain; in dgnc_wmove() local
328 remain = WQUEUESIZE - head; in dgnc_wmove()
330 if (n >= remain) { in dgnc_wmove()
331 n -= remain; in dgnc_wmove()
332 memcpy(ch->ch_wqueue + head, buf, remain); in dgnc_wmove()
334 buf += remain; in dgnc_wmove()
339 remain = n; in dgnc_wmove()
340 memcpy(ch->ch_wqueue + head, buf, remain); in dgnc_wmove()
341 head += remain; in dgnc_wmove()
1430 uint remain; in dgnc_tty_write() local
[all …]
/drivers/media/usb/au0828/
Dau0828-video.c325 int linesdone, currlinedone, offset, lencopy, remain; in au0828_copy_video() local
335 remain = len; in au0828_copy_video()
348 lencopy = lencopy > remain ? remain : lencopy; in au0828_copy_video()
354 remain = (char *)outp + buf->length - (char *)startwrite; in au0828_copy_video()
355 lencopy = remain; in au0828_copy_video()
361 remain -= lencopy; in au0828_copy_video()
363 while (remain > 0) { in au0828_copy_video()
366 if (bytesperline > remain) in au0828_copy_video()
367 lencopy = remain; in au0828_copy_video()
376 lencopy = remain = (char *)outp + buf->length - in au0828_copy_video()
[all …]
/drivers/staging/lustre/lnet/libcfs/
Dtracefile.c305 int remain; in libcfs_debug_vmsg2() local
374 remain = max_nob - needed; in libcfs_debug_vmsg2()
375 if (remain < 0) in libcfs_debug_vmsg2()
376 remain = 0; in libcfs_debug_vmsg2()
379 needed += vsnprintf(string_buf + needed, remain, in libcfs_debug_vmsg2()
475 remain = CFS_TRACE_CONSOLE_BUFFER_SIZE - needed; in libcfs_debug_vmsg2()
476 if (remain > 0) { in libcfs_debug_vmsg2()
478 needed += vsnprintf(string_buf + needed, remain, in libcfs_debug_vmsg2()
/drivers/media/dvb-frontends/
Dmn88473.c473 int ret, len, remain; in mn88473_init() local
501 for (remain = fw->size; remain > 0; remain -= (dev->i2c_wr_max - 1)) { in mn88473_init()
502 len = min(dev->i2c_wr_max - 1, remain); in mn88473_init()
504 &fw->data[fw->size - remain], len); in mn88473_init()
/drivers/media/usb/em28xx/
Dem28xx-i2c.c618 int remain = len, rsize, rsize_max, ret; in em28xx_i2c_read_block() local
622 if (addr + remain > (addr_w16 * 0xff00 + 0xff + 1)) in em28xx_i2c_read_block()
635 while (remain > 0) { in em28xx_i2c_read_block()
636 if (remain > rsize_max) in em28xx_i2c_read_block()
639 rsize = remain; in em28xx_i2c_read_block()
645 remain -= rsize; in em28xx_i2c_read_block()
Dem28xx-video.c461 int linesdone, currlinedone, offset, lencopy, remain; in em28xx_copy_video() local
468 remain = len; in em28xx_copy_video()
485 lencopy = lencopy > remain ? remain : lencopy; in em28xx_copy_video()
491 remain = (char *)buf->vb_buf + buf->length - in em28xx_copy_video()
493 lencopy = remain; in em28xx_copy_video()
499 remain -= lencopy; in em28xx_copy_video()
501 while (remain > 0) { in em28xx_copy_video()
507 if (bytesperline > remain) in em28xx_copy_video()
508 lencopy = remain; in em28xx_copy_video()
517 lencopy = remain = (char *)buf->vb_buf + buf->length - in em28xx_copy_video()
[all …]
/drivers/gpu/drm/i915/
Di915_gem.c959 u64 remain; in i915_gem_shmem_pread() local
978 remain = args->size; in i915_gem_shmem_pread()
981 for (idx = args->offset >> PAGE_SHIFT; remain; idx++) { in i915_gem_shmem_pread()
983 unsigned int length = min_t(u64, remain, PAGE_SIZE - offset); in i915_gem_shmem_pread()
991 remain -= length; in i915_gem_shmem_pread()
1030 u64 remain, offset; in i915_gem_gtt_pread() local
1063 remain = args->size; in i915_gem_gtt_pread()
1066 while (remain > 0) { in i915_gem_gtt_pread()
1076 page_length = remain < page_length ? remain : page_length; in i915_gem_gtt_pread()
1093 remain -= page_length; in i915_gem_gtt_pread()
[all …]
/drivers/usb/misc/
Dchaoskey.c428 unsigned long remain; in chaoskey_read() local
462 remain = copy_to_user(buffer, dev->buf + dev->used, this_time); in chaoskey_read()
463 if (remain) { in chaoskey_read()
469 dev->used += this_time - remain; in chaoskey_read()
/drivers/usb/musb/
Dmusb_virthub.c173 long remain = (unsigned long) musb->rh_timer - jiffies; in musb_port_reset() local
175 if (musb->rh_timer > 0 && remain > 0) { in musb_port_reset()
178 &musb->deassert_reset_work, remain); in musb_port_reset()
/drivers/net/ethernet/wiznet/
Dw5100.c528 int remain = 0; in w5100_readbuf() local
537 remain = (offset + len) % mem_size; in w5100_readbuf()
542 if (ret || !remain) in w5100_readbuf()
545 return w5100_readbulk(priv, mem_start, buf + len, remain); in w5100_readbuf()
553 int remain = 0; in w5100_writebuf() local
561 remain = (offset + len) % mem_size; in w5100_writebuf()
566 if (ret || !remain) in w5100_writebuf()
569 return w5100_writebulk(priv, mem_start, buf + len, remain); in w5100_writebuf()
/drivers/staging/rtl8712/
DTODO5 - checkpatch.pl fixes - only a few remain

123