Home
last modified time | relevance | path

Searched refs:remaining (Results 1 – 25 of 39) sorted by relevance

12

/linux-4.19.296/include/net/
Dnexthop.h8 static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining) in rtnh_ok() argument
10 return remaining >= (int)sizeof(*rtnh) && in rtnh_ok()
12 rtnh->rtnh_len <= remaining; in rtnh_ok()
16 int *remaining) in rtnh_next() argument
20 *remaining -= totlen; in rtnh_next()
Dnetlink.h354 static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok() argument
356 return (remaining >= (int) sizeof(struct nlmsghdr) && in nlmsg_ok()
358 nlh->nlmsg_len <= remaining); in nlmsg_ok()
370 nlmsg_next(const struct nlmsghdr *nlh, int *remaining) in nlmsg_next() argument
374 *remaining -= totlen; in nlmsg_next()
714 static inline int nla_ok(const struct nlattr *nla, int remaining) in nla_ok() argument
716 return remaining >= (int) sizeof(*nla) && in nla_ok()
718 nla->nla_len <= remaining; in nla_ok()
729 static inline struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next() argument
733 *remaining -= totlen; in nla_next()
/linux-4.19.296/lib/xz/
Dxz_dec_test.c105 size_t remaining; in xz_dec_test_write() local
119 remaining = size; in xz_dec_test_write()
120 while ((remaining > 0 || buffers.out_pos == buffers.out_size) in xz_dec_test_write()
124 buffers.in_size = min(remaining, sizeof(buffer_in)); in xz_dec_test_write()
129 remaining -= buffers.in_size; in xz_dec_test_write()
145 return size - remaining - (buffers.in_size - buffers.in_pos); in xz_dec_test_write()
/linux-4.19.296/lib/zstd/
Dentropy_common.c65 int remaining; in FSE_readNCount() local
81 remaining = (1 << nbBits) + 1; in FSE_readNCount()
85 while ((remaining > 1) & (charnum <= *maxSVPtr)) { in FSE_readNCount()
118 int const max = (2 * threshold - 1) - remaining; in FSE_readNCount()
132 remaining -= count < 0 ? -count : count; /* -1 means +1 */ in FSE_readNCount()
135 while (remaining < threshold) { in FSE_readNCount()
150 if (remaining != 1) in FSE_readNCount()
Dfse_compress.c211 int remaining; in FSE_writeNCount_generic() local
225 remaining = tableSize + 1; /* +1 for extra accuracy */ in FSE_writeNCount_generic()
229 while (remaining > 1) { /* stops at 1 */ in FSE_writeNCount_generic()
263 int const max = (2 * threshold - 1) - remaining; in FSE_writeNCount_generic()
264 remaining -= count < 0 ? -count : count; in FSE_writeNCount_generic()
272 if (remaining < 1) in FSE_writeNCount_generic()
274 while (remaining < threshold) in FSE_writeNCount_generic()
/linux-4.19.296/drivers/misc/lkdtm/
Dbugs.c35 static int recursive_loop(int remaining) in recursive_loop() argument
40 memset(buf, (remaining & 0xff) | 0x1, REC_STACK_SIZE); in recursive_loop()
41 if (!remaining) in recursive_loop()
44 return recursive_loop(remaining - 1); in recursive_loop()
/linux-4.19.296/drivers/char/
Dps3flash.c112 size_t remaining, n; in ps3flash_read() local
133 remaining = count; in ps3flash_read()
135 n = min_t(u64, remaining, dev->bounce_size - offset); in ps3flash_read()
162 remaining -= n; in ps3flash_read()
165 } while (remaining > 0); in ps3flash_read()
181 size_t remaining, n; in ps3flash_write() local
202 remaining = count; in ps3flash_write()
204 n = min_t(u64, remaining, dev->bounce_size - offset); in ps3flash_write()
237 remaining -= n; in ps3flash_write()
240 } while (remaining > 0); in ps3flash_write()
Dmem.c146 unsigned long remaining; in read_mem() local
159 remaining = clear_user(buf, sz); in read_mem()
175 remaining = copy_to_user(buf, bounce, sz); in read_mem()
178 if (remaining) in read_mem()
/linux-4.19.296/drivers/media/tuners/
Dtda18218.c25 int ret = 0, len2, remaining; in tda18218_wr_regs() local
42 for (remaining = len; remaining > 0; in tda18218_wr_regs()
43 remaining -= (priv->cfg->i2c_wr_max - 1)) { in tda18218_wr_regs()
44 len2 = remaining; in tda18218_wr_regs()
49 buf[0] = reg + len - remaining; in tda18218_wr_regs()
50 memcpy(&buf[1], &val[len - remaining], len2); in tda18218_wr_regs()
Dsi2157.c83 int ret, len, remaining; in si2157_init() local
193 for (remaining = fw->size; remaining > 0; remaining -= 17) { in si2157_init()
194 len = fw->data[fw->size - remaining]; in si2157_init()
200 memcpy(cmd.args, &fw->data[(fw->size - remaining) + 1], len); in si2157_init()
/linux-4.19.296/drivers/media/usb/dvb-usb-v2/
Dec168.c222 int ret, len, remaining; in ec168_download_firmware() local
227 for (remaining = fw->size; remaining > 0; remaining -= LEN_MAX) { in ec168_download_firmware()
228 len = remaining; in ec168_download_firmware()
233 req.data = (u8 *) &fw->data[fw->size - remaining]; in ec168_download_firmware()
234 req.index = fw->size - remaining; in ec168_download_firmware()
/linux-4.19.296/fs/squashfs/
Dcache.c309 int remaining = length; in squashfs_copy_data() local
322 if (bytes >= remaining) { in squashfs_copy_data()
323 memcpy(buffer, buff, remaining); in squashfs_copy_data()
324 remaining = 0; in squashfs_copy_data()
330 remaining -= bytes; in squashfs_copy_data()
334 return length - remaining; in squashfs_copy_data()
/linux-4.19.296/drivers/i2c/busses/
Di2c-imx-lpi2c.c347 unsigned int temp, remaining; in lpi2c_imx_set_rx_watermark() local
349 remaining = lpi2c_imx->msglen - lpi2c_imx->delivered; in lpi2c_imx_set_rx_watermark()
351 if (remaining > (lpi2c_imx->rxfifosize >> 1)) in lpi2c_imx_set_rx_watermark()
382 unsigned int blocklen, remaining; in lpi2c_imx_read_rxfifo() local
402 remaining = lpi2c_imx->msglen - lpi2c_imx->delivered; in lpi2c_imx_read_rxfifo()
404 if (!remaining) { in lpi2c_imx_read_rxfifo()
415 temp = remaining; in lpi2c_imx_read_rxfifo()
419 temp = (remaining > CHUNK_DATA ? CHUNK_DATA : remaining) - 1; in lpi2c_imx_read_rxfifo()
/linux-4.19.296/drivers/media/dvb-frontends/
Dsi2168.c448 int ret, len, remaining; in si2168_init() local
517 for (remaining = fw->size; remaining > 0; remaining -= 17) { in si2168_init()
518 len = fw->data[fw->size - remaining]; in si2168_init()
523 memcpy(cmd.args, &fw->data[(fw->size - remaining) + 1], len); in si2168_init()
532 for (remaining = fw->size; remaining > 0; remaining -= 8) { in si2168_init()
534 memcpy(cmd.args, &fw->data[fw->size - remaining], len); in si2168_init()
Dcx24116.c567 int i, ret, len, max, remaining; in cx24116_load_firmware() local
611 for (remaining = fw->size; remaining > 0; remaining -= max - 1) { in cx24116_load_firmware()
612 len = remaining; in cx24116_load_firmware()
616 cx24116_writeregN(state, 0xF7, &fw->data[fw->size - remaining], in cx24116_load_firmware()
Dtda10071.c769 int ret, i, len, remaining, fw_size; in tda10071_init() local
895 for (remaining = fw_size; remaining > 0; in tda10071_init()
896 remaining -= (dev->i2c_wr_max - 1)) { in tda10071_init()
897 len = remaining; in tda10071_init()
902 (u8 *) &fw->data[fw_size - remaining], len); in tda10071_init()
/linux-4.19.296/lib/
Dhexdump.c269 int i, linelen, remaining = len; in print_hex_dump() local
276 linelen = min(remaining, rowsize); in print_hex_dump()
277 remaining -= rowsize; in print_hex_dump()
Ddigsig.c114 unsigned int remaining = endp - datap; in digsig_verify_rsa() local
115 pkey[i] = mpi_read_from_buffer(datap, &remaining); in digsig_verify_rsa()
120 datap += remaining; in digsig_verify_rsa()
Ddynamic_debug.c514 static int remaining(int wrote) in remaining() function
530 pos += snprintf(buf + pos, remaining(pos), "<intr> "); in dynamic_emit_prefix()
532 pos += snprintf(buf + pos, remaining(pos), "[%d] ", in dynamic_emit_prefix()
537 pos += snprintf(buf + pos, remaining(pos), "%s:", in dynamic_emit_prefix()
540 pos += snprintf(buf + pos, remaining(pos), "%s:", in dynamic_emit_prefix()
543 pos += snprintf(buf + pos, remaining(pos), "%d:", in dynamic_emit_prefix()
546 pos += snprintf(buf + pos, remaining(pos), " "); in dynamic_emit_prefix()
/linux-4.19.296/fs/nfsd/
Dnfsctl.c540 nfsd_print_version_support(char *buf, int remaining, const char *sep, in nfsd_print_version_support() argument
556 return snprintf(buf, remaining, format, sep, in nfsd_print_version_support()
564 int len, num, remaining; in __write_versions() local
633 remaining = SIMPLE_TRANSACTION_LIMIT; in __write_versions()
641 len = nfsd_print_version_support(buf, remaining, in __write_versions()
643 if (len >= remaining) in __write_versions()
645 remaining -= len; in __write_versions()
654 len = snprintf(buf, remaining, "\n"); in __write_versions()
655 if (len >= remaining) in __write_versions()
/linux-4.19.296/fs/cifs/
Dsmb1ops.c253 int remaining; in check2ndT2() local
279 remaining = total_data_size - data_in_this_rsp; in check2ndT2()
282 remaining); in check2ndT2()
288 return remaining; in check2ndT2()
298 int remaining; in coalesce_t2() local
311 remaining = tgt_total_cnt - total_in_tgt; in coalesce_t2()
313 if (remaining < 0) { in coalesce_t2()
319 if (remaining == 0) { in coalesce_t2()
326 if (remaining < total_in_src) in coalesce_t2()
371 if (remaining != total_in_src) { in coalesce_t2()
/linux-4.19.296/drivers/s390/char/
Dvmlogrdr.c74 int remaining; member
469 priv->remaining = user_data_count; in vmlogrdr_receive_data()
492 if (count > priv->remaining) in vmlogrdr_read()
493 count = priv->remaining; in vmlogrdr_read()
500 priv->remaining -= count; in vmlogrdr_read()
503 if (priv->remaining == 0) in vmlogrdr_read()
Dsclp.c730 u16 remaining; in sclp_remove_processed() local
734 remaining = sccb->length - sizeof(struct sccb_header); in sclp_remove_processed()
735 while (remaining > 0) { in sclp_remove_processed()
736 remaining -= evbuf->length; in sclp_remove_processed()
740 remaining); in sclp_remove_processed()
/linux-4.19.296/fs/
Dtimerfd.c162 ktime_t remaining; in timerfd_get_remaining() local
165 remaining = alarm_expires_remaining(&ctx->t.alarm); in timerfd_get_remaining()
167 remaining = hrtimer_expires_remaining_adjusted(&ctx->t.tmr); in timerfd_get_remaining()
169 return remaining < 0 ? 0: remaining; in timerfd_get_remaining()
/linux-4.19.296/drivers/fsi/
Dfsi-sbefifo.c479 size_t len, chunk, vacant = 0, remaining = cmd_len; in sbefifo_send_command() local
489 while (remaining) { in sbefifo_send_command()
497 len = chunk = min(vacant, remaining); in sbefifo_send_command()
510 remaining -= chunk; in sbefifo_send_command()

12