Home
last modified time | relevance | path

Searched refs:bytes_left (Results 1 – 25 of 29) sorted by relevance

12

/drivers/mtd/ubi/
Dgluebi.c156 int err = 0, lnum, offs, bytes_left; in gluebi_read() local
161 bytes_left = len; in gluebi_read()
162 while (bytes_left) { in gluebi_read()
165 if (to_read > bytes_left) in gluebi_read()
166 to_read = bytes_left; in gluebi_read()
174 bytes_left -= to_read; in gluebi_read()
178 *retlen = len - bytes_left; in gluebi_read()
196 int err = 0, lnum, offs, bytes_left; in gluebi_write() local
205 bytes_left = len; in gluebi_write()
206 while (bytes_left) { in gluebi_write()
[all …]
Dblock.c186 int ret, leb, offset, bytes_left, to_read; in ubiblock_read() local
197 bytes_left = to_read; in ubiblock_read()
199 while (bytes_left) { in ubiblock_read()
211 bytes_left -= to_read; in ubiblock_read()
212 to_read = bytes_left; in ubiblock_read()
/drivers/staging/uwb/
Dhwa-rc.c107 size_t bytes_left, ielength; in hwarc_filter_evt_beacon_WUSB_0100() local
111 bytes_left = buf_size; in hwarc_filter_evt_beacon_WUSB_0100()
112 if (bytes_left < sizeof(*be)) { in hwarc_filter_evt_beacon_WUSB_0100()
115 bytes_left, sizeof(*be)); in hwarc_filter_evt_beacon_WUSB_0100()
118 bytes_left -= sizeof(*be); in hwarc_filter_evt_beacon_WUSB_0100()
120 if (bytes_left < ielength) { in hwarc_filter_evt_beacon_WUSB_0100()
123 bytes_left, ielength); in hwarc_filter_evt_beacon_WUSB_0100()
166 size_t bytes_left, ielength; in hwarc_filter_evt_drp_avail_WUSB_0100() local
171 bytes_left = buf_size; in hwarc_filter_evt_drp_avail_WUSB_0100()
172 if (bytes_left < sizeof(*da)) { in hwarc_filter_evt_drp_avail_WUSB_0100()
[all …]
Ddrp.c797 size_t ielength, bytes_left; in uwbd_evt_handle_rc_drp() local
809 bytes_left = evt->notif.size - sizeof(*drp_evt); in uwbd_evt_handle_rc_drp()
812 if (bytes_left != ielength) { in uwbd_evt_handle_rc_drp()
815 bytes_left, ielength); in uwbd_evt_handle_rc_drp()
/drivers/i2c/busses/
Di2c-riic.c93 int bytes_left; member
132 riic->bytes_left = RIIC_INIT_MSG; in riic_xfer()
162 if (!riic->bytes_left) in riic_tdre_isr()
165 if (riic->bytes_left == RIIC_INIT_MSG) { in riic_tdre_isr()
171 riic->bytes_left = riic->msg->len; in riic_tdre_isr()
177 riic->bytes_left--; in riic_tdre_isr()
185 if (riic->bytes_left == 0) in riic_tdre_isr()
207 } else if (riic->bytes_left) { in riic_tend_isr()
227 if (!riic->bytes_left) in riic_rdrf_isr()
230 if (riic->bytes_left == RIIC_INIT_MSG) { in riic_rdrf_isr()
[all …]
Di2c-mv64xxx.c130 u32 bytes_left; member
257 if ((drv_data->bytes_left == 0) in mv64xxx_i2c_fsm()
273 drv_data->bytes_left--; in mv64xxx_i2c_fsm()
287 if (drv_data->bytes_left == 0) { in mv64xxx_i2c_fsm()
298 drv_data->bytes_left--; in mv64xxx_i2c_fsm()
302 if ((drv_data->bytes_left == 1) || drv_data->aborting) in mv64xxx_i2c_fsm()
336 drv_data->bytes_left = drv_data->msg->len; in mv64xxx_i2c_send_start()
Di2c-bcm-iproc.c455 u32 bytes_left, val; in bcm_iproc_i2c_read() local
458 bytes_left = msg->len - iproc_i2c->rx_bytes; in bcm_iproc_i2c_read()
459 if (bytes_left == 0) { in bcm_iproc_i2c_read()
466 } else if (bytes_left < iproc_i2c->thld_bytes) { in bcm_iproc_i2c_read()
470 val |= (bytes_left << M_FIFO_RX_THLD_SHIFT); in bcm_iproc_i2c_read()
472 iproc_i2c->thld_bytes = bytes_left; in bcm_iproc_i2c_read()
/drivers/media/usb/gspca/
Dsq905c.c125 int bytes_left; /* bytes remaining in current frame. */ in sq905c_dostream() local
154 bytes_left = buffer[0x40]|(buffer[0x41]<<8)|(buffer[0x42]<<16) in sq905c_dostream()
157 bytes_left); in sq905c_dostream()
162 while (bytes_left > 0 && gspca_dev->present) { in sq905c_dostream()
163 data_len = bytes_left > SQ905C_MAX_TRANSFER ? in sq905c_dostream()
164 SQ905C_MAX_TRANSFER : bytes_left; in sq905c_dostream()
173 data_len, bytes_left); in sq905c_dostream()
174 bytes_left -= data_len; in sq905c_dostream()
175 if (bytes_left == 0) in sq905c_dostream()
Dsq905.c202 int bytes_left; /* bytes remaining in current frame. */ in sq905_dostream() local
227 bytes_left = frame_sz; in sq905_dostream()
234 while (bytes_left > 0 && gspca_dev->present) { in sq905_dostream()
235 data_len = bytes_left > SQ905_MAX_TRANSFER ? in sq905_dostream()
236 SQ905_MAX_TRANSFER : bytes_left; in sq905_dostream()
242 data_len, bytes_left); in sq905_dostream()
243 bytes_left -= data_len; in sq905_dostream()
252 } else if (bytes_left == 0) { in sq905_dostream()
262 bytes_left == 0) in sq905_dostream()
Djl2005bcd.c306 int bytes_left = 0; /* bytes remaining in current frame. */ in jl2005c_dostream() local
349 bytes_left = buffer[0x07] * dev->block_size - act_len; in jl2005c_dostream()
351 bytes_left); in jl2005c_dostream()
358 while (bytes_left > 0 && gspca_dev->present) { in jl2005c_dostream()
359 data_len = bytes_left > JL2005C_MAX_TRANSFER ? in jl2005c_dostream()
360 JL2005C_MAX_TRANSFER : bytes_left; in jl2005c_dostream()
369 data_len, bytes_left); in jl2005c_dostream()
370 bytes_left -= data_len; in jl2005c_dostream()
371 if (bytes_left == 0) { in jl2005c_dostream()
/drivers/net/wireless/marvell/mwifiex/
Dscan.c1227 u32 bytes_left; in mwifiex_update_bss_desc_with_ie() local
1235 bytes_left = bss_entry->beacon_buf_size; in mwifiex_update_bss_desc_with_ie()
1238 while (bytes_left >= 2) { in mwifiex_update_bss_desc_with_ie()
1243 if (bytes_left < total_ie_len) { in mwifiex_update_bss_desc_with_ie()
1466 bytes_left -= (element_len + 2); in mwifiex_update_bss_desc_with_ie()
1756 u32 *bytes_left, u64 fw_tsf, u8 *radio_type, in mwifiex_parse_single_response_buf() argument
1777 if (*bytes_left >= sizeof(beacon_size)) { in mwifiex_parse_single_response_buf()
1780 *bytes_left -= sizeof(beacon_size); in mwifiex_parse_single_response_buf()
1784 if (!beacon_size || beacon_size > *bytes_left) { in mwifiex_parse_single_response_buf()
1785 *bss_info += *bytes_left; in mwifiex_parse_single_response_buf()
[all …]
/drivers/infiniband/hw/hfi1/
Dpio_copy.c402 unsigned long bytes_left = nbytes & 0x7; in mid_copy_mix() local
475 if (pbuf->carry_bytes + bytes_left >= 8) { in mid_copy_mix()
505 bytes_left -= nread; in mid_copy_mix()
507 read_low_bytes(pbuf, from, bytes_left); in mid_copy_mix()
510 read_extra_bytes(pbuf, from, bytes_left); in mid_copy_mix()
/drivers/mmc/host/
Ddavinci_mmc.c190 u32 bytes_left; member
221 if (host->buffer_bytes_left > host->bytes_left) in mmc_davinci_sg_to_buf()
222 host->buffer_bytes_left = host->bytes_left; in mmc_davinci_sg_to_buf()
240 host->bytes_left -= n; in davinci_fifo_data_trans()
371 if (!host->do_dma && host->bytes_left <= poll_threshold) { in mmc_davinci_start_command()
563 host->bytes_left = data->blocks * data->blksz; in mmc_davinci_prepare_data()
573 if (host->use_dma && (host->bytes_left & (rw_threshold - 1)) == 0 in mmc_davinci_prepare_data()
576 host->bytes_left = 0; in mmc_davinci_prepare_data()
891 if (host->bytes_left && (status & (MMCST0_DXRDY | MMCST0_DRRDY))) { in mmc_davinci_irq()
908 } while (host->bytes_left && in mmc_davinci_irq()
[all …]
/drivers/crypto/ccp/
Dccp-ops.c85 wa->bytes_left = len; in ccp_init_sg_workarea()
106 unsigned int nbytes = min_t(u64, len, wa->bytes_left); in ccp_update_sg_workarea()
112 wa->bytes_left -= nbytes; in ccp_update_sg_workarea()
295 nbytes = min_t(u64, sg_wa->bytes_left, dm_wa->length); in ccp_queue_buf()
301 while (sg_wa->bytes_left && (buf_count < dm_wa->length)) { in ccp_queue_buf()
304 nbytes = min_t(u64, sg_wa->bytes_left, nbytes); in ccp_queue_buf()
335 sg_src_len = min_t(u64, src->sg_wa.bytes_left, sg_src_len); in ccp_prepare_data()
339 sg_dst_len = min_t(u64, src->sg_wa.bytes_left, sg_dst_len); in ccp_prepare_data()
551 while (src.sg_wa.bytes_left) { in ccp_run_aes_cmac_cmd()
553 if (aes->cmac_final && !src.sg_wa.bytes_left) { in ccp_run_aes_cmac_cmd()
[all …]
Dccp-dev.h476 u64 bytes_left; member
/drivers/gpu/drm/ttm/
Dttm_bo_vm.c324 unsigned long bytes_left = len; in ttm_bo_vm_access_kmap() local
332 unsigned long bytes = min(bytes_left, PAGE_SIZE - offset); in ttm_bo_vm_access_kmap()
351 bytes_left -= bytes; in ttm_bo_vm_access_kmap()
353 } while (bytes_left); in ttm_bo_vm_access_kmap()
/drivers/platform/x86/
Ddell_rbu.c452 size_t bytes_left; in read_packet_data() local
470 bytes_left = rbu_data.imagesize - pos; in read_packet_data()
471 data_length = min(bytes_left, count); in read_packet_data()
479 retval = bytes_left; in read_packet_data()
/drivers/usb/gadget/udc/
Dgr_udc.c478 u16 bytes_left; /* Bytes left to provide descriptors for */ in gr_setup_out_desc_list() local
483 bytes_left = req->req.length; in gr_setup_out_desc_list()
485 while (bytes_left > 0) { in gr_setup_out_desc_list()
487 u16 size = min(bytes_left, ep->bytes_per_buffer); in gr_setup_out_desc_list()
491 req->evenlen = req->req.length - bytes_left; in gr_setup_out_desc_list()
499 bytes_left -= size; in gr_setup_out_desc_list()
531 u16 bytes_left; /* Bytes left in req to provide descriptors for */ in gr_setup_in_desc_list() local
536 bytes_left = req->req.length; in gr_setup_in_desc_list()
540 u16 size = min(bytes_left, ep->bytes_per_buffer); in gr_setup_in_desc_list()
546 bytes_left -= size; in gr_setup_in_desc_list()
[all …]
Dbcm63xx_udc.c598 unsigned int bytes_left = breq->req.length - breq->offset; in iudma_write() local
606 if ((bytes_left % iudma->max_pkt == 0) && bytes_left && breq->req.zero) in iudma_write()
622 n_bytes = min_t(int, bytes_left, max_bd_bytes); in iudma_write()
639 if (extra_zero_pkt && !bytes_left) in iudma_write()
643 (n_bytes == bytes_left && !extra_zero_pkt)) { in iudma_write()
654 bytes_left -= n_bytes; in iudma_write()
/drivers/net/ethernet/cavium/liquidio/
Docteon_droq.c344 u32 i, bytes_left; in octeon_create_recv_info() local
360 bytes_left = (u32)info->length; in octeon_create_recv_info()
373 (bytes_left >= in octeon_create_recv_info()
374 droq->buffer_size) ? droq->buffer_size : bytes_left; in octeon_create_recv_info()
380 bytes_left -= droq->buffer_size; in octeon_create_recv_info()
/drivers/spi/
Dspi-pxa2xx.c647 u32 bytes_left; in interrupt_transfer() local
662 bytes_left = drv_data->rx_end - drv_data->rx; in interrupt_transfer()
665 bytes_left >>= 2; in interrupt_transfer()
668 bytes_left >>= 1; in interrupt_transfer()
673 if (rx_thre > bytes_left) in interrupt_transfer()
674 rx_thre = bytes_left; in interrupt_transfer()
/drivers/net/ethernet/qlogic/qed/
Dqed_mcp.c2804 u32 bytes_left = len, offset = 0, bytes_to_copy, read_len = 0; in qed_mcp_nvm_read() local
2814 while (bytes_left > 0) { in qed_mcp_nvm_read()
2815 bytes_to_copy = min_t(u32, bytes_left, MCP_DRV_NVM_BUF_LEN); in qed_mcp_nvm_read()
2834 if (bytes_left % 0x1000 < in qed_mcp_nvm_read()
2835 (bytes_left - read_len) % 0x1000) in qed_mcp_nvm_read()
2839 bytes_left -= read_len; in qed_mcp_nvm_read()
2948 u32 bytes_left, bytes_to_copy, buf_size, nvm_offset = 0; in qed_mcp_phy_sfp_read() local
2959 bytes_left = len; in qed_mcp_phy_sfp_read()
2960 while (bytes_left > 0) { in qed_mcp_phy_sfp_read()
2961 bytes_to_copy = min_t(u32, bytes_left, in qed_mcp_phy_sfp_read()
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_lib.c22 int bytes_left, bytes_read, bytes; in cudbg_do_compression() local
30 bytes_left = pin_buff->size; in cudbg_do_compression()
32 while (bytes_left > 0) { in cudbg_do_compression()
34 bytes = min_t(unsigned long, bytes_left, in cudbg_do_compression()
41 bytes_left -= bytes; in cudbg_do_compression()
971 unsigned long bytes, bytes_left, bytes_read = 0; in cudbg_read_fw_mem() local
996 bytes_left = tot_len; in cudbg_read_fw_mem()
997 while (bytes_left > 0) { in cudbg_read_fw_mem()
1007 bytes = min_t(unsigned long, bytes_left, in cudbg_read_fw_mem()
1031 bytes_left -= bytes; in cudbg_read_fw_mem()
/drivers/scsi/csiostor/
Dcsio_scsi.c1493 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/
Dio_ti.c530 int bytes_left = 0; in tx_active() local
563 bytes_left += 64; in tx_active()
566 bytes_left += 1; in tx_active()
570 dev_dbg(&port->port->dev, "%s - return %d\n", __func__, bytes_left); in tx_active()
574 return bytes_left; in tx_active()

12