Searched refs:bytes_left (Results 1 - 25 of 62) sorted by relevance

123

/linux-master/drivers/mtd/ubi/
H A Dgluebi.c156 int err = 0, lnum, offs, bytes_left; local
161 bytes_left = len;
162 while (bytes_left) {
165 if (to_read > bytes_left)
166 to_read = bytes_left;
174 bytes_left -= to_read;
178 *retlen = len - bytes_left;
196 int err = 0, lnum, offs, bytes_left; local
205 bytes_left = len;
206 while (bytes_left) {
[all...]
H A Dnvmem.c26 size_t to_read, bytes_left = bytes; local
38 while (bytes_left) {
41 if (to_read > bytes_left)
42 to_read = bytes_left;
50 bytes_left -= to_read;
58 return bytes_left == 0 ? 0 : -EIO;
/linux-master/drivers/media/usb/gspca/
H A Dsq905c.c125 int bytes_left; /* bytes remaining in current frame. */ local
154 bytes_left = buffer[0x40]|(buffer[0x41]<<8)|(buffer[0x42]<<16)
156 gspca_dbg(gspca_dev, D_STREAM, "bytes_left = 0x%x\n",
157 bytes_left);
162 while (bytes_left > 0 && gspca_dev->present) {
163 data_len = bytes_left > SQ905C_MAX_TRANSFER ?
164 SQ905C_MAX_TRANSFER : bytes_left;
173 data_len, bytes_left);
174 bytes_left -= data_len;
175 if (bytes_left
[all...]
H A Dsq905.c202 int bytes_left; /* bytes remaining in current frame. */ local
227 bytes_left = frame_sz;
234 while (bytes_left > 0 && gspca_dev->present) {
235 data_len = bytes_left > SQ905_MAX_TRANSFER ?
236 SQ905_MAX_TRANSFER : bytes_left;
242 data_len, bytes_left);
243 bytes_left -= data_len;
252 } else if (bytes_left == 0) {
262 bytes_left == 0)
H A Djl2005bcd.c308 int bytes_left = 0; /* bytes remaining in current frame. */ local
351 bytes_left = buffer[0x07] * dev->block_size - act_len;
352 gspca_dbg(gspca_dev, D_PACK, "bytes_left = 0x%x\n",
353 bytes_left);
360 while (bytes_left > 0 && gspca_dev->present) {
361 data_len = bytes_left > JL2005C_MAX_TRANSFER ?
362 JL2005C_MAX_TRANSFER : bytes_left;
371 data_len, bytes_left);
372 bytes_left -= data_len;
373 if (bytes_left
[all...]
/linux-master/sound/soc/intel/skylake/
H A Dskl-sst-cldma.c245 * bytes_left is 0.
247 * the first chunk return the no of bytes_left to be copied.
257 unsigned int bytes_left = total_size; local
263 dev_dbg(ctx->dev, "%s: Total binary size: %u\n", __func__, bytes_left);
265 while (bytes_left) {
266 if (bytes_left > ctx->cl_dev.bufsize) {
289 if ((ctx->cl_dev.curr_spib_pos + bytes_left)
291 ctx->cl_dev.curr_spib_pos += bytes_left;
293 excess_bytes = bytes_left -
299 size = bytes_left;
[all...]
H A Dskl-sst.c334 int ret, bytes_left, curr_pos; local
338 bytes_left = ctx->cl_dev.ops.cl_copy_to_dmabuf(ctx, data, size, false);
339 if (bytes_left < 0)
340 return bytes_left;
355 * if bytes_left > 0 then wait for BDL complete interrupt and
356 * copy the next chunk till bytes_left is 0. if bytes_left is
359 while (bytes_left > 0) {
360 curr_pos = size - bytes_left;
366 bytes_left
[all...]
/linux-master/drivers/i2c/busses/
H A Di2c-riic.c94 int bytes_left; member in struct:riic_dev
133 riic->bytes_left = RIIC_INIT_MSG;
163 if (!riic->bytes_left)
166 if (riic->bytes_left == RIIC_INIT_MSG) {
172 riic->bytes_left = riic->msg->len;
178 riic->bytes_left--;
183 * after bytes_left was initialized to support SMBUS_QUICK (new msg has
186 if (riic->bytes_left == 0)
208 } else if (riic->bytes_left) {
228 if (!riic->bytes_left)
[all...]
H A Di2c-mv64xxx.c131 u32 bytes_left; member in struct:mv64xxx_i2c_data
267 if ((drv_data->bytes_left == 0)
283 drv_data->bytes_left--;
297 if (drv_data->bytes_left == 0) {
308 drv_data->bytes_left--;
312 if ((drv_data->bytes_left == 1) || drv_data->aborting)
347 drv_data->bytes_left = drv_data->msg->len;
/linux-master/drivers/virt/coco/efi_secret/
H A Defi_secret.c216 int ret = 0, i = 0, bytes_left; local
263 bytes_left = h->len - sizeof(*h);
265 while (bytes_left >= (int)sizeof(*e) && i < EFI_SECRET_NUM_FILES) {
267 if (e->len < sizeof(*e) || e->len > (unsigned int)bytes_left) {
288 bytes_left -= e->len;
/linux-master/arch/x86/events/
H A Dutils.c92 int bytes_read, bytes_left, insn_offset; local
124 bytes_left = copy_from_user_nmi(buf, (void __user *)from,
126 bytes_read = MAX_INSN_SIZE - bytes_left;
/linux-master/sound/soc/sof/intel/
H A Dhda-loader-skl.c458 unsigned int bytes_left = total_size; local
465 while (bytes_left > 0) {
466 if (bytes_left > bufsize) {
474 __func__, bytes_left);
478 bytes_left -= bufsize;
481 dev_dbg(sdev->dev, "cldma copy %#x bytes\n", bytes_left);
484 cl_skl_cldma_fill_buffer(sdev, dmab, bufsize, bytes_left, curr_pos, false);
489 return bytes_left;
/linux-master/fs/btrfs/
H A Dordered-data.c181 entry->bytes_left = num_bytes;
332 if (WARN_ON_ONCE(len > ordered->bytes_left)) {
337 len, ordered->bytes_left);
338 ordered->bytes_left = 0;
340 ordered->bytes_left -= len;
346 if (ordered->bytes_left)
519 if (io_size > entry->bytes_left)
522 entry->bytes_left, io_size);
524 entry->bytes_left -= io_size;
526 if (entry->bytes_left
[all...]
H A Dzlib.c105 unsigned long bytes_left; local
144 bytes_left = len - workspace->strm.total_in;
145 in_buf_pages = min(DIV_ROUND_UP(bytes_left, PAGE_SIZE),
174 workspace->strm.avail_in = min(bytes_left,
/linux-master/drivers/gpu/drm/ttm/
H A Dttm_bo_vm.c374 unsigned long bytes_left = len; local
382 unsigned long bytes = min(bytes_left, PAGE_SIZE - offset);
401 bytes_left -= bytes;
403 } while (bytes_left);
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_gnss.c135 unsigned int bytes_left = data_len - i; local
137 bytes_read = min_t(typeof(bytes_left), bytes_left,
/linux-master/drivers/remoteproc/
H A Dremoteproc_coredump.c180 size_t seg_data, bytes_left = count; local
199 while (bytes_left) {
210 copy_sz = min_t(size_t, bytes_left, seg_data);
217 bytes_left -= copy_sz;
220 return count - bytes_left;
/linux-master/drivers/infiniband/hw/hfi1/
H A Dpio_copy.c360 unsigned long bytes_left = nbytes & 0x7; local
433 if (pbuf->carry_bytes + bytes_left >= 8) {
463 bytes_left -= nread;
465 read_low_bytes(pbuf, from, bytes_left);
468 read_extra_bytes(pbuf, from, bytes_left);
/linux-master/drivers/scsi/elx/efct/
H A Defct_driver.c251 u32 bytes_left; local
260 bytes_left = buf_len;
269 while (bytes_left > 0) {
270 if (bytes_left > FW_WRITE_BUFSIZE)
273 xfer_size = bytes_left;
277 if (bytes_left == xfer_size)
296 bytes_left -= result.actual_xfer;
/linux-master/drivers/net/wireless/marvell/mwifiex/
H A Dscan.c1197 u32 bytes_left; local
1205 bytes_left = bss_entry->beacon_buf_size;
1208 while (bytes_left >= 2) {
1213 if (bytes_left < total_ie_len) {
1434 bytes_left -= total_ie_len;
1436 } /* while (bytes_left > 2) */
1724 u32 *bytes_left, u64 fw_tsf, u8 *radio_type,
1745 if (*bytes_left >= sizeof(beacon_size)) {
1748 *bytes_left -= sizeof(beacon_size);
1752 if (!beacon_size || beacon_size > *bytes_left) {
1723 mwifiex_parse_single_response_buf(struct mwifiex_private *priv, u8 **bss_info, u32 *bytes_left, u64 fw_tsf, u8 *radio_type, bool ext_scan, s32 rssi_val) argument
2094 u32 bytes_left; local
2593 u32 bytes_left, bytes_left_for_tlv, idx; local
[all...]
/linux-master/fs/nfs/blocklayout/
H A Dblocklayout.c172 size_t bytes_left = header->args.count; local
177 bytes_left += header->args.offset - (isect << SECTOR_SHIFT);
179 while (bytes_left > 0) {
185 if (bytes_left > extent_length << SECTOR_SHIFT)
186 bytes_left -= extent_length << SECTOR_SHIFT;
188 bytes_left = 0;
239 size_t bytes_left = header->args.count; local
274 if (pg_offset + bytes_left > PAGE_SIZE)
277 pg_len = bytes_left;
307 bytes_left
[all...]
/linux-master/drivers/platform/x86/dell/
H A Ddell_rbu.c428 size_t bytes_left; local
445 bytes_left = rbu_data.imagesize - pos;
446 data_length = min(bytes_left, count);
454 retval = bytes_left;
/linux-master/drivers/misc/eeprom/
H A Dat25.c84 size_t bytes_left = count; local
100 segment = min(bytes_left, max_chunk);
145 bytes_left -= segment;
146 } while (bytes_left > 0);
/linux-master/drivers/crypto/ccp/
H A Dccp-ops.c86 wa->bytes_left = len;
108 unsigned int nbytes = min_t(u64, len, wa->bytes_left);
115 wa->bytes_left -= nbytes;
314 nbytes = min_t(u64, sg_wa->bytes_left, dm_wa->length);
320 while (sg_wa->bytes_left && (buf_count < dm_wa->length)) {
323 nbytes = min_t(u64, sg_wa->bytes_left, nbytes);
354 sg_src_len = min_t(u64, src->sg_wa.bytes_left, sg_src_len);
358 sg_dst_len = min_t(u64, src->sg_wa.bytes_left, sg_dst_len);
570 while (src.sg_wa.bytes_left) {
572 if (aes->cmac_final && !src.sg_wa.bytes_left) {
[all...]
/linux-master/drivers/mmc/host/
H A Ddavinci_mmc.c183 u32 bytes_left; member in struct:mmc_davinci_host
252 host->bytes_left -= n;
358 if (!host->do_dma && host->bytes_left <= poll_threshold) {
552 host->bytes_left = data->blocks * data->blksz;
562 if (host->use_dma && (host->bytes_left & (rw_threshold - 1)) == 0
565 host->bytes_left = 0;
875 * bytes_left will decrease to zero as I/O progress and status will
881 if (host->bytes_left && (status & (MMCST0_DXRDY | MMCST0_DRRDY))) {
898 } while (host->bytes_left &&
914 if (host->bytes_left >
[all...]

Completed in 202 milliseconds

123