/drivers/mtd/ubi/ |
D | gluebi.c | 174 int err = 0, lnum, offs, bytes_left; in gluebi_read() local 179 bytes_left = len; in gluebi_read() 180 while (bytes_left) { in gluebi_read() 183 if (to_read > bytes_left) in gluebi_read() 184 to_read = bytes_left; in gluebi_read() 192 bytes_left -= to_read; in gluebi_read() 196 *retlen = len - bytes_left; in gluebi_read() 214 int err = 0, lnum, offs, bytes_left; in gluebi_write() local 223 bytes_left = len; in gluebi_write() 224 while (bytes_left) { in gluebi_write() [all …]
|
D | block.c | 194 int ret, leb, offset, bytes_left, to_read; in ubiblock_read() local 205 bytes_left = to_read; in ubiblock_read() 207 while (bytes_left) { in ubiblock_read() 219 bytes_left -= to_read; in ubiblock_read() 220 to_read = bytes_left; in ubiblock_read()
|
/drivers/uwb/ |
D | hwa-rc.c | 124 size_t bytes_left, ielength; in hwarc_filter_evt_beacon_WUSB_0100() local 128 bytes_left = buf_size; in hwarc_filter_evt_beacon_WUSB_0100() 129 if (bytes_left < sizeof(*be)) { in hwarc_filter_evt_beacon_WUSB_0100() 132 bytes_left, sizeof(*be)); in hwarc_filter_evt_beacon_WUSB_0100() 135 bytes_left -= sizeof(*be); in hwarc_filter_evt_beacon_WUSB_0100() 137 if (bytes_left < ielength) { in hwarc_filter_evt_beacon_WUSB_0100() 140 bytes_left, ielength); in hwarc_filter_evt_beacon_WUSB_0100() 183 size_t bytes_left, ielength; in hwarc_filter_evt_drp_avail_WUSB_0100() local 188 bytes_left = buf_size; in hwarc_filter_evt_drp_avail_WUSB_0100() 189 if (bytes_left < sizeof(*da)) { in hwarc_filter_evt_drp_avail_WUSB_0100() [all …]
|
D | drp.c | 808 size_t ielength, bytes_left; in uwbd_evt_handle_rc_drp() local 820 bytes_left = evt->notif.size - sizeof(*drp_evt); in uwbd_evt_handle_rc_drp() 823 if (bytes_left != ielength) { in uwbd_evt_handle_rc_drp() 826 bytes_left, ielength); in uwbd_evt_handle_rc_drp()
|
/drivers/i2c/busses/ |
D | i2c-riic.c | 100 int bytes_left; member 141 riic->bytes_left = RIIC_INIT_MSG; in riic_xfer() 171 if (!riic->bytes_left) in riic_tdre_isr() 174 if (riic->bytes_left == RIIC_INIT_MSG) { in riic_tdre_isr() 181 riic->bytes_left = riic->msg->len; in riic_tdre_isr() 187 riic->bytes_left--; in riic_tdre_isr() 195 if (riic->bytes_left == 0) in riic_tdre_isr() 217 } else if (riic->bytes_left) { in riic_tend_isr() 237 if (!riic->bytes_left) in riic_rdrf_isr() 240 if (riic->bytes_left == RIIC_INIT_MSG) { in riic_rdrf_isr() [all …]
|
D | i2c-mv64xxx.c | 130 u32 bytes_left; member 258 if ((drv_data->bytes_left == 0) in mv64xxx_i2c_fsm() 274 drv_data->bytes_left--; in mv64xxx_i2c_fsm() 288 if (drv_data->bytes_left == 0) { in mv64xxx_i2c_fsm() 299 drv_data->bytes_left--; in mv64xxx_i2c_fsm() 303 if ((drv_data->bytes_left == 1) || drv_data->aborting) in mv64xxx_i2c_fsm() 337 drv_data->bytes_left = drv_data->msg->len; in mv64xxx_i2c_send_start()
|
/drivers/media/usb/gspca/ |
D | sq905c.c | 138 int bytes_left; /* bytes remaining in current frame. */ in sq905c_dostream() local 167 bytes_left = buffer[0x40]|(buffer[0x41]<<8)|(buffer[0x42]<<16) in sq905c_dostream() 169 PDEBUG(D_STREAM, "bytes_left = 0x%x", bytes_left); in sq905c_dostream() 174 while (bytes_left > 0 && gspca_dev->present) { in sq905c_dostream() 175 data_len = bytes_left > SQ905C_MAX_TRANSFER ? in sq905c_dostream() 176 SQ905C_MAX_TRANSFER : bytes_left; in sq905c_dostream() 185 data_len, bytes_left); in sq905c_dostream() 186 bytes_left -= data_len; in sq905c_dostream() 187 if (bytes_left == 0) in sq905c_dostream()
|
D | sq905.c | 216 int bytes_left; /* bytes remaining in current frame. */ in sq905_dostream() local 241 bytes_left = frame_sz; in sq905_dostream() 248 while (bytes_left > 0 && gspca_dev->present) { in sq905_dostream() 249 data_len = bytes_left > SQ905_MAX_TRANSFER ? in sq905_dostream() 250 SQ905_MAX_TRANSFER : bytes_left; in sq905_dostream() 256 data_len, bytes_left); in sq905_dostream() 257 bytes_left -= data_len; in sq905_dostream() 266 } else if (bytes_left == 0) { in sq905_dostream() 276 bytes_left == 0) in sq905_dostream()
|
D | jl2005bcd.c | 321 int bytes_left = 0; /* bytes remaining in current frame. */ in jl2005c_dostream() local 364 bytes_left = buffer[0x07] * dev->block_size - act_len; in jl2005c_dostream() 365 PDEBUG(D_PACK, "bytes_left = 0x%x", bytes_left); in jl2005c_dostream() 372 while (bytes_left > 0 && gspca_dev->present) { in jl2005c_dostream() 373 data_len = bytes_left > JL2005C_MAX_TRANSFER ? in jl2005c_dostream() 374 JL2005C_MAX_TRANSFER : bytes_left; in jl2005c_dostream() 383 data_len, bytes_left); in jl2005c_dostream() 384 bytes_left -= data_len; in jl2005c_dostream() 385 if (bytes_left == 0) { in jl2005c_dostream()
|
/drivers/net/wireless/mwifiex/ |
D | scan.c | 1199 u32 bytes_left; in mwifiex_update_bss_desc_with_ie() local 1207 bytes_left = bss_entry->beacon_buf_size; in mwifiex_update_bss_desc_with_ie() 1210 while (bytes_left >= 2) { in mwifiex_update_bss_desc_with_ie() 1215 if (bytes_left < total_ie_len) { in mwifiex_update_bss_desc_with_ie() 1437 bytes_left -= (element_len + 2); in mwifiex_update_bss_desc_with_ie() 1727 u32 *bytes_left, u64 fw_tsf, u8 *radio_type, in mwifiex_parse_single_response_buf() argument 1748 if (*bytes_left >= sizeof(beacon_size)) { in mwifiex_parse_single_response_buf() 1751 *bytes_left -= sizeof(beacon_size); in mwifiex_parse_single_response_buf() 1755 if (!beacon_size || beacon_size > *bytes_left) { in mwifiex_parse_single_response_buf() 1756 *bss_info += *bytes_left; in mwifiex_parse_single_response_buf() [all …]
|
/drivers/scsi/ |
D | sym53c416.c | 247 unsigned int bytes_left; in sym53c416_read() local 255 bytes_left = inb(base + PIO_FIFO_CNT); /* Number of bytes in the PIO FIFO */ in sym53c416_read() 256 if(fastpio && bytes_left > 3) in sym53c416_read() 258 insl(base + PIO_FIFO_1, buffer, bytes_left >> 2); in sym53c416_read() 259 buffer += bytes_left & 0xFC; in sym53c416_read() 260 len -= bytes_left & 0xFC; in sym53c416_read() 262 else if(bytes_left > 0) in sym53c416_read() 264 len -= bytes_left; in sym53c416_read() 265 for(; bytes_left > 0; bytes_left--) in sym53c416_read()
|
/drivers/mmc/host/ |
D | davinci_mmc.c | 203 u32 bytes_left; member 235 if (host->buffer_bytes_left > host->bytes_left) in mmc_davinci_sg_to_buf() 236 host->buffer_bytes_left = host->bytes_left; in mmc_davinci_sg_to_buf() 254 host->bytes_left -= n; in davinci_fifo_data_trans() 389 if (!host->do_dma && host->bytes_left <= poll_threshold) { in mmc_davinci_start_command() 606 host->bytes_left = data->blocks * data->blksz; in mmc_davinci_prepare_data() 616 if (host->use_dma && (host->bytes_left & (rw_threshold - 1)) == 0 in mmc_davinci_prepare_data() 619 host->bytes_left = 0; in mmc_davinci_prepare_data() 936 if (host->bytes_left && (status & (MMCST0_DXRDY | MMCST0_DRRDY))) { in mmc_davinci_irq() 953 } while (host->bytes_left && in mmc_davinci_irq() [all …]
|
/drivers/media/platform/ |
D | vim2m.c | 207 int tile_w, bytes_left; in device_process() local 232 bytes_left = bytesperline - tile_w * MEM2MEM_NUM_TILES; in device_process() 252 p_out += bytesperline * height - bytes_left; in device_process() 266 p_in += bytes_left; in device_process() 267 p_out -= bytes_left; in device_process() 286 p_in += bytes_left; in device_process() 306 p_in += bytes_left; in device_process() 307 p_out += bytes_left - 2 * bytesperline; in device_process() 325 p_in += bytes_left; in device_process() 326 p_out += bytes_left; in device_process()
|
/drivers/crypto/ccp/ |
D | ccp-ops.c | 64 u64 bytes_left; member 502 wa->bytes_left = len; in ccp_init_sg_workarea() 523 unsigned int nbytes = min_t(u64, len, wa->bytes_left); in ccp_update_sg_workarea() 529 wa->bytes_left -= nbytes; in ccp_update_sg_workarea() 722 nbytes = min_t(u64, sg_wa->bytes_left, dm_wa->length); in ccp_queue_buf() 728 while (sg_wa->bytes_left && (buf_count < dm_wa->length)) { in ccp_queue_buf() 731 nbytes = min_t(u64, sg_wa->bytes_left, nbytes); in ccp_queue_buf() 762 sg_src_len = min_t(u64, src->sg_wa.bytes_left, sg_src_len); in ccp_prepare_data() 766 sg_dst_len = min_t(u64, src->sg_wa.bytes_left, sg_dst_len); in ccp_prepare_data() 974 while (src.sg_wa.bytes_left) { in ccp_run_aes_cmac_cmd() [all …]
|
/drivers/net/irda/ |
D | sir_dev.c | 40 unsigned bytes_left; in sirdev_tx_complete_fsm() local 50 bytes_left = dev->drv->chars_in_buffer(dev); in sirdev_tx_complete_fsm() 52 bytes_left = 0; in sirdev_tx_complete_fsm() 53 if (!bytes_left) { in sirdev_tx_complete_fsm() 59 delay = (bytes_left*8*10000) / (dev->speed/100); in sirdev_tx_complete_fsm() 61 delay = (bytes_left*10*10000) / (dev->speed/100); in sirdev_tx_complete_fsm()
|
/drivers/staging/rdma/hfi1/ |
D | pio_copy.c | 550 unsigned long bytes_left = (pbuf->carry_bytes + nbytes) & 0x7; in mid_copy_mix() local 619 if (pbuf->carry_bytes < bytes_left) { in mid_copy_mix() 621 read_extra_bytes(pbuf, from, bytes_left - pbuf->carry_bytes); in mid_copy_mix() 624 zero_extra_bytes(pbuf, pbuf->carry_bytes - bytes_left); in mid_copy_mix()
|
/drivers/firmware/ |
D | dell_rbu.c | 474 size_t bytes_left; in read_packet_data() local 492 bytes_left = rbu_data.imagesize - pos; in read_packet_data() 493 data_length = min(bytes_left, count); in read_packet_data() 501 retval = bytes_left; in read_packet_data()
|
/drivers/usb/gadget/udc/ |
D | gr_udc.c | 499 u16 bytes_left; /* Bytes left to provide descriptors for */ in gr_setup_out_desc_list() local 504 bytes_left = req->req.length; in gr_setup_out_desc_list() 506 while (bytes_left > 0) { in gr_setup_out_desc_list() 508 u16 size = min(bytes_left, ep->bytes_per_buffer); in gr_setup_out_desc_list() 512 req->evenlen = req->req.length - bytes_left; in gr_setup_out_desc_list() 520 bytes_left -= size; in gr_setup_out_desc_list() 552 u16 bytes_left; /* Bytes left in req to provide descriptors for */ in gr_setup_in_desc_list() local 557 bytes_left = req->req.length; in gr_setup_in_desc_list() 561 u16 size = min(bytes_left, ep->bytes_per_buffer); in gr_setup_in_desc_list() 567 bytes_left -= size; in gr_setup_in_desc_list() [all …]
|
D | bcm63xx_udc.c | 607 unsigned int bytes_left = breq->req.length - breq->offset; in iudma_write() local 615 if ((bytes_left % iudma->max_pkt == 0) && bytes_left && breq->req.zero) in iudma_write() 631 n_bytes = min_t(int, bytes_left, max_bd_bytes); in iudma_write() 648 if (extra_zero_pkt && !bytes_left) in iudma_write() 652 (n_bytes == bytes_left && !extra_zero_pkt)) { in iudma_write() 663 bytes_left -= n_bytes; in iudma_write()
|
/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_droq.c | 360 u32 i, bytes_left; in octeon_create_recv_info() local 375 bytes_left = (u32)info->length; in octeon_create_recv_info() 383 (bytes_left >= in octeon_create_recv_info() 384 droq->buffer_size) ? droq->buffer_size : bytes_left; in octeon_create_recv_info() 390 bytes_left -= droq->buffer_size; in octeon_create_recv_info()
|
/drivers/spi/ |
D | spi-pxa2xx.c | 637 u32 bytes_left; in interrupt_transfer() local 652 bytes_left = drv_data->rx_end - drv_data->rx; in interrupt_transfer() 655 bytes_left >>= 1; in interrupt_transfer() 657 bytes_left >>= 1; in interrupt_transfer() 661 if (rx_thre > bytes_left) in interrupt_transfer() 662 rx_thre = bytes_left; in interrupt_transfer()
|
/drivers/media/platform/soc_camera/ |
D | omap1_camera.c | 147 int bytes_left; member 324 if (unlikely(buf->bytes_left < block_size)) in set_dma_dest_params() 325 block_size = buf->bytes_left; in set_dma_dest_params() 333 buf->bytes_left -= block_size; in set_dma_dest_params() 390 if (unlikely(!buf->bytes_left)) { in try_next_sgbuf() 412 buf->bytes_left = buf->vb.size; in try_next_sgbuf()
|
/drivers/scsi/csiostor/ |
D | csio_scsi.c | 1493 uint32_t bytes_left; in csio_scsi_copy_to_sgl() local 1502 bytes_left = scsi_bufflen(scmnd); in csio_scsi_copy_to_sgl() 1507 while (bytes_left > 0 && sg && dma_buf) { in csio_scsi_copy_to_sgl() 1542 bytes_left -= bytes_copy; in csio_scsi_copy_to_sgl() 1545 if (bytes_left > 0) in csio_scsi_copy_to_sgl()
|
/drivers/usb/serial/ |
D | io_ti.c | 534 int bytes_left = 0; in tx_active() local 567 bytes_left += 64; in tx_active() 570 bytes_left += 1; in tx_active() 574 dev_dbg(&port->port->dev, "%s - return %d\n", __func__, bytes_left); in tx_active() 578 return bytes_left; in tx_active()
|
/drivers/scsi/lpfc/ |
D | lpfc_bsg.c | 159 unsigned int bytes_left = size; in lpfc_alloc_bsg_buffers() local 170 while (bytes_left) { in lpfc_alloc_bsg_buffers() 203 (bytes_left >= LPFC_BPL_SIZE ? LPFC_BPL_SIZE : in lpfc_alloc_bsg_buffers() 204 bytes_left); in lpfc_alloc_bsg_buffers() 205 bytes_left -= bpl->tus.f.bdeSize; in lpfc_alloc_bsg_buffers()
|