/drivers/gpu/drm/qxl/ |
D | qxl_image.c | 67 int remain; in qxl_image_create_helper() local 71 remain = linesize * height; in qxl_image_create_helper() 75 while (remain > 0) { in qxl_image_create_helper() 86 size = min(size, remain); in qxl_image_create_helper() 92 remain -= size; in qxl_image_create_helper() 99 remain = linesize; in qxl_image_create_helper() 102 while (remain > 0) { in qxl_image_create_helper() 106 size = min((int)(PAGE_SIZE - page_offset), remain); in qxl_image_create_helper() 112 remain -= size; in qxl_image_create_helper()
|
/drivers/media/usb/stk1160/ |
D | stk1160-video.c | 119 int remain; in stk1160_copy_video() local 135 remain = len; in stk1160_copy_video() 147 if (remain < (bytesperline - lineoff)) in stk1160_copy_video() 148 lencopy = remain; in stk1160_copy_video() 158 remain = lencopy; in stk1160_copy_video() 162 if (lencopy == 0 || remain == 0) in stk1160_copy_video() 181 remain -= lencopy; in stk1160_copy_video() 184 while (remain > 0) { in stk1160_copy_video() 190 if (remain < bytesperline) in stk1160_copy_video() 191 lencopy = remain; in stk1160_copy_video() [all …]
|
/drivers/net/wireless/rtlwifi/rtl8188ee/ |
D | fw.c | 68 u32 i, offset, blk_cnt, remain; in _rtl88e_fw_block_write() local 71 remain = size % blk_sz; in _rtl88e_fw_block_write() 79 if (remain) { in _rtl88e_fw_block_write() 82 for (i = 0; i < remain; i++) { in _rtl88e_fw_block_write() 105 u8 remain = (u8) (fwlen % 4); in _rtl88e_fill_dummy() local 107 remain = (remain == 0) ? 0 : (4 - remain); in _rtl88e_fill_dummy() 109 while (remain > 0) { in _rtl88e_fill_dummy() 112 remain--; in _rtl88e_fill_dummy() 123 u32 page_no, remain; in _rtl88e_write_fw() local 131 remain = size % FW_8192C_PAGE_SIZE; in _rtl88e_write_fw() [all …]
|
/drivers/spi/ |
D | spi-sh.c | 171 int remain = t->len; in spi_sh_send() local 181 while (remain > 0) { in spi_sh_send() 182 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_send() 199 remain -= cur_len; in spi_sh_send() 202 if (remain > 0) { in spi_sh_send() 239 int remain = t->len; in spi_sh_receive() local 258 while (remain > 0) { in spi_sh_receive() 259 if (remain >= SPI_SH_FIFO_SIZE) { in spi_sh_receive() 272 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_receive() 279 remain -= cur_len; in spi_sh_receive()
|
D | spi-rspi.c | 255 int remain = t->len; in rspi_send_pio() local 259 while (remain > 0) { in rspi_send_pio() 271 remain--; in rspi_send_pio() 412 int remain = t->len; in rspi_receive_pio() local 418 while (remain > 0) { in rspi_receive_pio() 439 remain--; in rspi_receive_pio()
|
/drivers/staging/gdm72xx/ |
D | gdm_sdio.c | 235 int n, blocks, ret, remain; in send_sdio_pkt() local 252 remain = len - n; in send_sdio_pkt() 253 remain = (remain + 3) & ~3; in send_sdio_pkt() 255 if (remain) { in send_sdio_pkt() 256 ret = sdio_memcpy_toio(func, 0, data + n, remain); in send_sdio_pkt() 512 int ret, remain; in gdm_sdio_irq() local 554 remain = len - TYPE_A_LOOKAHEAD_SIZE + TYPE_A_HEADER_SIZE; in gdm_sdio_irq() 555 if (remain <= 0) in gdm_sdio_irq() 558 blocks = remain / func->cur_blksize; in gdm_sdio_irq() 569 remain -= n; in gdm_sdio_irq() [all …]
|
/drivers/staging/dgrp/ |
D | dgrp_net_ops.c | 2249 long remain; in dgrp_receive() local 2263 remain = nd->nd_remain; in dgrp_receive() 2269 while (remain > 0) { in dgrp_receive() 2316 if (remain < 3) in dgrp_receive() 2330 if (remain < 4) in dgrp_receive() 2400 if (remain < plen) in dgrp_receive() 2401 dlen -= plen - remain; in dgrp_receive() 2481 if (remain < plen) { in dgrp_receive() 2482 dlen = plen - remain; in dgrp_receive() 2488 remain = 3; in dgrp_receive() [all …]
|
/drivers/mmc/host/ |
D | mmci.c | 793 u32 remain, success; in mmci_data_irq() local 808 remain = readl(host->base + MMCIDATACNT); in mmci_data_irq() 809 success = data->blksz * data->blocks - remain; in mmci_data_irq() 887 static int mmci_pio_read(struct mmci_host *host, char *buffer, unsigned int remain) in mmci_pio_read() argument 897 if (count > remain) in mmci_pio_read() 898 count = remain; in mmci_pio_read() 923 remain -= count; in mmci_pio_read() 926 if (remain == 0) in mmci_pio_read() 935 static int mmci_pio_write(struct mmci_host *host, char *buffer, unsigned int remain, u32 status) in mmci_pio_write() argument 946 count = min(remain, maxcnt); in mmci_pio_write() [all …]
|
D | msm_sdcc.c | 599 msmsdcc_pio_read(struct msmsdcc_host *host, char *buffer, unsigned int remain) in msmsdcc_pio_read() argument 604 if (remain % 4) in msmsdcc_pio_read() 605 remain = ((remain >> 2) + 1) << 2; in msmsdcc_pio_read() 612 remain -= sizeof(uint32_t); in msmsdcc_pio_read() 613 if (remain == 0) in msmsdcc_pio_read() 621 unsigned int remain, u32 status) in msmsdcc_pio_write() argument 631 count = min(remain, maxcnt); in msmsdcc_pio_write() 636 remain -= count; in msmsdcc_pio_write() 638 if (remain == 0) in msmsdcc_pio_write() 674 unsigned int remain, len; in msmsdcc_pio_irq() local [all …]
|
D | dw_mmc.c | 1480 unsigned int remain, fcnt; in dw_mci_read_data_pio() local 1488 remain = sg_miter->length; in dw_mci_read_data_pio() 1494 len = min(remain, fcnt); in dw_mci_read_data_pio() 1500 remain -= len; in dw_mci_read_data_pio() 1501 } while (remain); in dw_mci_read_data_pio() 1510 if (!remain) { in dw_mci_read_data_pio() 1535 unsigned int remain, fcnt; in dw_mci_write_data_pio() local 1543 remain = sg_miter->length; in dw_mci_write_data_pio() 1550 len = min(remain, fcnt); in dw_mci_write_data_pio() 1556 remain -= len; in dw_mci_write_data_pio() [all …]
|
D | wbsd.c | 249 host->remain = host->cur_sg->length; in wbsd_init_sg() 265 host->remain = host->cur_sg->length; in wbsd_next_sg() 451 host->remain--; in wbsd_empty_fifo() 458 if (host->remain == 0) { in wbsd_empty_fifo() 514 host->remain--; in wbsd_fill_fifo() 521 if (host->remain == 0) { in wbsd_fill_fifo()
|
D | wbsd.h | 159 unsigned int remain; /* Data left in curren entry */ member
|
/drivers/staging/dwc2/ |
D | hcd_ddma.c | 800 u16 remain = 0; in dwc2_cmpl_host_isoc_dma_desc() local 806 remain = dma_desc->status >> HOST_DMA_ISOC_NBYTES_SHIFT & in dwc2_cmpl_host_isoc_dma_desc() 816 frame_desc->actual_length = qh->n_bytes[idx] - remain; in dwc2_cmpl_host_isoc_dma_desc() 820 frame_desc->actual_length = qh->n_bytes[idx] - remain; in dwc2_cmpl_host_isoc_dma_desc() 929 u16 remain = 0; in dwc2_update_non_isoc_urb_state_ddma() local 932 remain = dma_desc->status >> HOST_DMA_NBYTES_SHIFT & in dwc2_update_non_isoc_urb_state_ddma() 935 dev_vdbg(hsotg->dev, "remain=%d dwc2_urb=%p\n", remain, urb); in dwc2_update_non_isoc_urb_state_ddma() 975 urb->actual_length += n_bytes - remain; in dwc2_update_non_isoc_urb_state_ddma() 976 if (remain || urb->actual_length >= urb->length) { in dwc2_update_non_isoc_urb_state_ddma() 991 urb->actual_length += n_bytes - remain; in dwc2_update_non_isoc_urb_state_ddma() [all …]
|
/drivers/gpu/host1x/ |
D | syncpt.c | 216 int remain = wait_event_interruptible_timeout(wq, in host1x_syncpt_wait() local 219 if (remain > 0 || host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait() 225 if (remain < 0) { in host1x_syncpt_wait() 226 err = remain; in host1x_syncpt_wait()
|
/drivers/bluetooth/ |
D | btusb.c | 1014 int remain = fw->size - (*fw_ptr - fw->data); in btusb_setup_intel_patching() local 1023 if (remain > HCI_COMMAND_HDR_SIZE && *fw_ptr[0] != 0x01) { in btusb_setup_intel_patching() 1028 remain--; in btusb_setup_intel_patching() 1032 remain -= sizeof(*cmd); in btusb_setup_intel_patching() 1037 if (remain < cmd->plen) { in btusb_setup_intel_patching() 1053 remain -= cmd->plen; in btusb_setup_intel_patching() 1062 while (remain > HCI_EVENT_HDR_SIZE && *fw_ptr[0] == 0x02) { in btusb_setup_intel_patching() 1064 remain--; in btusb_setup_intel_patching() 1068 remain -= sizeof(*evt); in btusb_setup_intel_patching() 1070 if (remain < evt->plen) { in btusb_setup_intel_patching() [all …]
|
/drivers/media/usb/em28xx/ |
D | em28xx-i2c.c | 560 int remain = len, rsize, rsize_max, ret; in em28xx_i2c_read_block() local 564 if (addr + remain > (addr_w16 * 0xff00 + 0xff + 1)) in em28xx_i2c_read_block() 577 while (remain > 0) { in em28xx_i2c_read_block() 578 if (remain > rsize_max) in em28xx_i2c_read_block() 581 rsize = remain; in em28xx_i2c_read_block() 587 remain -= rsize; in em28xx_i2c_read_block()
|
D | em28xx-video.c | 167 int linesdone, currlinedone, offset, lencopy, remain; in em28xx_copy_video() local 174 remain = len; in em28xx_copy_video() 191 lencopy = lencopy > remain ? remain : lencopy; in em28xx_copy_video() 197 remain = (char *)buf->vb_buf + buf->length - in em28xx_copy_video() 199 lencopy = remain; in em28xx_copy_video() 205 remain -= lencopy; in em28xx_copy_video() 207 while (remain > 0) { in em28xx_copy_video() 213 if (bytesperline > remain) in em28xx_copy_video() 214 lencopy = remain; in em28xx_copy_video() 224 lencopy = remain = (char *)buf->vb_buf + buf->length - in em28xx_copy_video() [all …]
|
/drivers/media/usb/au0828/ |
D | au0828-video.c | 349 int linesdone, currlinedone, offset, lencopy, remain; in au0828_copy_video() local 359 remain = len; in au0828_copy_video() 372 lencopy = lencopy > remain ? remain : lencopy; in au0828_copy_video() 378 remain = (char *)outp + buf->vb.size - (char *)startwrite; in au0828_copy_video() 379 lencopy = remain; in au0828_copy_video() 385 remain -= lencopy; in au0828_copy_video() 387 while (remain > 0) { in au0828_copy_video() 390 if (bytesperline > remain) in au0828_copy_video() 391 lencopy = remain; in au0828_copy_video() 400 lencopy = remain = (char *)outp + buf->vb.size - in au0828_copy_video() [all …]
|
/drivers/mmc/card/ |
D | queue.c | 468 unsigned int len, remain, offset = 0; in mmc_queue_packed_map_sg() local 471 remain = hdr_sz; in mmc_queue_packed_map_sg() 473 len = min(remain, max_seg_sz); in mmc_queue_packed_map_sg() 476 remain -= len; in mmc_queue_packed_map_sg() 479 } while (remain); in mmc_queue_packed_map_sg()
|
/drivers/infiniband/hw/cxgb4/ |
D | mem.c | 178 u32 remain = len; in _c4iw_write_mem_dma() local 189 while (remain > inline_threshold) { in _c4iw_write_mem_dma() 190 if (remain < T4_ULPTX_MAX_DMA) { in _c4iw_write_mem_dma() 191 if (remain & ~T4_ULPTX_MIN_IO) in _c4iw_write_mem_dma() 192 dmalen = remain & ~(T4_ULPTX_MIN_IO-1); in _c4iw_write_mem_dma() 194 dmalen = remain; in _c4iw_write_mem_dma() 197 remain -= dmalen; in _c4iw_write_mem_dma() 199 !remain); in _c4iw_write_mem_dma() 206 if (remain) in _c4iw_write_mem_dma() 207 ret = _c4iw_write_mem_inline(rdev, addr, remain, data); in _c4iw_write_mem_dma()
|
/drivers/net/wireless/rtlwifi/rtl8192de/ |
D | fw.c | 107 u8 remain = (u8) (fwlen % 4); in _rtl92d_fill_dummy() local 109 remain = (remain == 0) ? 0 : (4 - remain); in _rtl92d_fill_dummy() 110 while (remain > 0) { in _rtl92d_fill_dummy() 113 remain--; in _rtl92d_fill_dummy()
|
/drivers/net/wireless/rtlwifi/rtl8192c/ |
D | fw_common.c | 153 u8 remain = (u8) (fwlen % 4); in _rtl92c_fill_dummy() local 155 remain = (remain == 0) ? 0 : (4 - remain); in _rtl92c_fill_dummy() 157 while (remain > 0) { in _rtl92c_fill_dummy() 160 remain--; in _rtl92c_fill_dummy()
|
/drivers/staging/rtl8712/ |
D | TODO | 5 - checkpatch.pl fixes - only a few remain
|
/drivers/gpu/drm/i915/ |
D | i915_gem.c | 405 ssize_t remain; in i915_gem_shmem_pread() local 414 remain = args->size; in i915_gem_shmem_pread() 444 if (remain <= 0) in i915_gem_shmem_pread() 453 page_length = remain; in i915_gem_shmem_pread() 469 ret = fault_in_multipages_writeable(user_data, remain); in i915_gem_shmem_pread() 490 remain -= page_length; in i915_gem_shmem_pread() 592 ssize_t remain; in i915_gem_gtt_pwrite_fast() local 610 remain = args->size; in i915_gem_gtt_pwrite_fast() 614 while (remain > 0) { in i915_gem_gtt_pwrite_fast() 623 page_length = remain; in i915_gem_gtt_pwrite_fast() [all …]
|
D | i915_gem_execbuffer.c | 306 int remain, ret; in i915_gem_execbuffer_relocate_object() local 310 remain = entry->relocation_count; in i915_gem_execbuffer_relocate_object() 311 while (remain) { in i915_gem_execbuffer_relocate_object() 313 int count = remain; in i915_gem_execbuffer_relocate_object() 316 remain -= count; in i915_gem_execbuffer_relocate_object()
|