Home
last modified time | relevance | path

Searched full:remaining (Results 1 – 25 of 1697) sorted by relevance

12345678910>>...68

/Linux-v5.10/arch/alpha/lib/
Dsrm_puts.c12 long remaining, written; in srm_puts() local
17 for (remaining = len; remaining > 0; remaining -= written) in srm_puts()
19 written = callback_puts(0, str, remaining); in srm_puts()
/Linux-v5.10/include/net/
Drtnh.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.h63 * nlmsg_ok(nlh, remaining) does nlh fit into remaining bytes?
64 * nlmsg_next(nlh, remaining) get next netlink message
149 * nla_ok(nla, remaining) does nla fit into remaining bytes?
150 * nla_next(nla, remaining) get next netlink attribute
605 * nlmsg_ok - check if the netlink message fits into the remaining bytes
607 * @remaining: number of bytes remaining in message stream
609 static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok() argument
611 return (remaining >= (int) sizeof(struct nlmsghdr) && in nlmsg_ok()
613 nlh->nlmsg_len <= remaining); in nlmsg_ok()
619 * @remaining: number of bytes remaining in message stream
[all …]
/Linux-v5.10/drivers/target/tcm_fc/
Dtfc_io.c49 size_t remaining; in ft_queue_data_in() local
75 remaining = se_cmd->data_length; in ft_queue_data_in()
80 BUG_ON(remaining && !se_cmd->t_data_sg); in ft_queue_data_in()
81 if (remaining) { in ft_queue_data_in()
89 use_sg = !(remaining % 4); in ft_queue_data_in()
91 while (remaining) { in ft_queue_data_in()
101 mem_len = min((size_t)sg->length, remaining); in ft_queue_data_in()
113 frame_len = min(frame_len, remaining); in ft_queue_data_in()
155 remaining -= tlen; in ft_queue_data_in()
160 if (!remaining) in ft_queue_data_in()
[all …]
/Linux-v5.10/net/sunrpc/xprtrdma/
Dsvc_rdma_sendto.c57 * the svc_rqst will be recycled as soon as sendto returns. Remaining
363 * @remaining: remaining bytes of the payload left in the Write chunk
372 unsigned int *remaining) in svc_rdma_encode_write_segment() argument
385 if (*remaining < length) { in svc_rdma_encode_write_segment()
387 length = *remaining; in svc_rdma_encode_write_segment()
388 *remaining = 0; in svc_rdma_encode_write_segment()
391 *remaining -= length; in svc_rdma_encode_write_segment()
403 * @remaining: size in bytes of the payload in the Write chunk
416 unsigned int remaining) in svc_rdma_encode_write_chunk() argument
422 trace_svcrdma_encode_write_chunk(remaining); in svc_rdma_encode_write_chunk()
[all …]
/Linux-v5.10/sound/soc/sof/
Dloader.c232 ssize_t remaining; in snd_sof_fw_ext_man_parse() local
237 remaining = head->full_size - head->header_size; in snd_sof_fw_ext_man_parse()
255 while (remaining > sizeof(*elem_hdr)) { in snd_sof_fw_ext_man_parse()
262 elem_hdr->size > remaining) { in snd_sof_fw_ext_man_parse()
294 remaining -= elem_hdr->size; in snd_sof_fw_ext_man_parse()
298 if (remaining) { in snd_sof_fw_ext_man_parse()
490 size_t remaining; in snd_sof_parse_module_memcpy() local
498 remaining = module->size; in snd_sof_parse_module_memcpy()
501 if (remaining < sizeof(*block)) { in snd_sof_parse_module_memcpy()
502 dev_err(sdev->dev, "error: not enough data remaining\n"); in snd_sof_parse_module_memcpy()
[all …]
/Linux-v5.10/drivers/gpu/drm/radeon/
Datombios_i2c.c105 int i, remaining, current_count, buffer_offset, max_bytes, ret; in radeon_atom_hw_i2c_xfer() local
122 remaining = p->len; in radeon_atom_hw_i2c_xfer()
132 while (remaining) { in radeon_atom_hw_i2c_xfer()
133 if (remaining > max_bytes) in radeon_atom_hw_i2c_xfer()
136 current_count = remaining; in radeon_atom_hw_i2c_xfer()
142 remaining -= current_count; in radeon_atom_hw_i2c_xfer()
/Linux-v5.10/drivers/char/
Dps3flash.c100 size_t remaining, n; in ps3flash_read() local
121 remaining = count; in ps3flash_read()
123 n = min_t(u64, remaining, dev->bounce_size - offset); in ps3flash_read()
150 remaining -= n; in ps3flash_read()
153 } while (remaining > 0); in ps3flash_read()
169 size_t remaining, n; in ps3flash_write() local
190 remaining = count; in ps3flash_write()
192 n = min_t(u64, remaining, dev->bounce_size - offset); in ps3flash_write()
225 remaining -= n; in ps3flash_write()
228 } while (remaining > 0); in ps3flash_write()
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Datombios_i2c.c112 int i, remaining, current_count, buffer_offset, max_bytes, ret; in amdgpu_atombios_i2c_xfer() local
129 remaining = p->len; in amdgpu_atombios_i2c_xfer()
139 while (remaining) { in amdgpu_atombios_i2c_xfer()
140 if (remaining > max_bytes) in amdgpu_atombios_i2c_xfer()
143 current_count = remaining; in amdgpu_atombios_i2c_xfer()
149 remaining -= current_count; in amdgpu_atombios_i2c_xfer()
/Linux-v5.10/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-v5.10/drivers/md/bcache/
Dclosure.c25 atomic_set(&cl->remaining, in closure_put_after_sub()
46 closure_put_after_sub(cl, atomic_sub_return(v, &cl->remaining)); in closure_sub()
54 closure_put_after_sub(cl, atomic_dec_return(&cl->remaining)); in closure_put()
87 if (atomic_read(&cl->remaining) & CLOSURE_WAITING) in closure_wait()
91 atomic_add(CLOSURE_WAITING + 1, &cl->remaining); in closure_wait()
169 int r = atomic_read(&cl->remaining); in debug_show()
Dclosure.h124 * must be cleared before remaining hits 0. Primarily to help guard
156 atomic_t remaining; member
183 if ((atomic_read(&cl->remaining) & CLOSURE_REMAINING_MASK) != 1) in closure_sync()
224 atomic_sub(CLOSURE_RUNNING, &cl->remaining); in closure_set_stopped()
259 BUG_ON((atomic_inc_return(&cl->remaining) & in closure_get()
262 atomic_inc(&cl->remaining); in closure_get()
279 atomic_set(&cl->remaining, CLOSURE_REMAINING_INITIALIZER); in closure_init()
288 atomic_set(&cl->remaining, CLOSURE_REMAINING_INITIALIZER); in closure_init_stack()
/Linux-v5.10/drivers/staging/rtl8188eu/
DTODO2 - find and remove remaining code valid only for 5 GHz. Most of the obvious
5 - convert any remaining unusual variable types
7 - checkpatch.pl fixes - most of the remaining ones are lines too long. Many
/Linux-v5.10/drivers/staging/rtl8723bs/
DTODO3 - find and remove remaining code valid only for 5 GHz. Most of the obvious
6 - convert any remaining unusual variable types
8 - checkpatch.pl fixes - most of the remaining ones are lines too long. Many
/Linux-v5.10/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()
149 } /* while ((remaining>1) & (charnum<=*maxSVPtr)) */ in FSE_readNCount()
150 if (remaining != 1) in FSE_readNCount()
/Linux-v5.10/drivers/usb/musb/
Dtusb6010_omap.c107 unsigned long remaining, flags, pio; in tusb_omap_dma_cb() local
115 remaining = musb_readl(ep_conf, TUSB_EP_TX_OFFSET); in tusb_omap_dma_cb()
117 remaining = musb_readl(ep_conf, TUSB_EP_RX_OFFSET); in tusb_omap_dma_cb()
119 remaining = TUSB_EP_CONFIG_XFR_SIZE(remaining); in tusb_omap_dma_cb()
122 if (unlikely(remaining > chdat->transfer_len)) { in tusb_omap_dma_cb()
124 chdat->tx ? "tx" : "rx", remaining); in tusb_omap_dma_cb()
125 remaining = 0; in tusb_omap_dma_cb()
128 channel->actual_len = chdat->transfer_len - remaining; in tusb_omap_dma_cb()
131 dev_dbg(musb->controller, "DMA remaining %lu/%u\n", remaining, chdat->transfer_len); in tusb_omap_dma_cb()
133 /* Transfer remaining 1 - 31 bytes */ in tusb_omap_dma_cb()
[all …]
/Linux-v5.10/tools/testing/selftests/tc-testing/
Dtdc.py84 def load_required_plugins(self, reqs, parser, args, remaining): argument
114 (args, remaining) = parser.parse_known_args(args=remaining, namespace=args)
153 def call_check_args(self, args, remaining): argument
155 pgn_inst.check_args(args, remaining)
400 # fill in the remaining tests with ok-skipped
513 def check_default_settings(args, remaining, pm): argument
531 pm.call_check_args(args, remaining)
683 def set_operation_mode(pm, parser, args, remaining): argument
685 Load the test case data and process remaining arguments to determine
722 args = pm.load_required_plugins(req_plugins, parser, args, remaining)
[all …]
/Linux-v5.10/drivers/md/
Ddm-io.c305 sector_t remaining = where->count; in do_region() local
345 dm_sector_div_up(remaining, (PAGE_SIZE >> SECTOR_SHIFT))); in do_region()
349 bio->bi_iter.bi_sector = where->sector + (where->count - remaining); in do_region()
356 num_sectors = min_t(sector_t, special_cmd_max_sectors, remaining); in do_region()
358 remaining -= num_sectors; in do_region()
365 num_sectors = min_t(sector_t, special_cmd_max_sectors, remaining); in do_region()
369 remaining -= num_sectors; in do_region()
371 } else while (remaining) { in do_region()
376 len = min(len, to_bytes(remaining)); in do_region()
381 remaining -= to_sector(len); in do_region()
[all …]
/Linux-v5.10/drivers/net/ethernet/rocker/
Drocker_tlv.h30 int *remaining) in rocker_tlv_next() argument
34 *remaining -= totlen; in rocker_tlv_next()
38 static inline int rocker_tlv_ok(const struct rocker_tlv *tlv, int remaining) in rocker_tlv_ok() argument
40 return remaining >= (int) ROCKER_TLV_HDRLEN && in rocker_tlv_ok()
42 tlv->len <= remaining; in rocker_tlv_ok()
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
Daux.c39 u8 remaining = msg->len; in nvkm_i2c_aux_i2c_xfer() local
42 while (remaining) { in nvkm_i2c_aux_i2c_xfer()
50 if (mcnt || remaining > 16) in nvkm_i2c_aux_i2c_xfer()
56 cnt = min_t(u8, remaining, 16); in nvkm_i2c_aux_i2c_xfer()
69 remaining -= cnt; in nvkm_i2c_aux_i2c_xfer()
/Linux-v5.10/tools/lib/bpf/
Dnlattr.c25 static struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next() argument
29 *remaining -= totlen; in nla_next()
33 static int nla_ok(const struct nlattr *nla, int remaining) in nla_ok() argument
35 return remaining >= sizeof(*nla) && in nla_ok()
37 nla->nla_len <= remaining; in nla_ok()
/Linux-v5.10/net/mptcp/
Doptions.c392 unsigned int remaining, in mptcp_established_options_mp() argument
483 unsigned int remaining, in mptcp_established_options_dss() argument
502 remaining -= map_size; in mptcp_established_options_dss()
578 unsigned int remaining, in mptcp_established_options_add_addr() argument
588 !(mptcp_pm_add_addr_signal(msk, remaining, &saddr, &echo))) in mptcp_established_options_add_addr()
592 if (remaining < len) in mptcp_established_options_add_addr()
626 unsigned int remaining, in mptcp_established_options_rm_addr() argument
634 !(mptcp_pm_rm_addr_signal(msk, remaining, &rm_id))) in mptcp_established_options_rm_addr()
637 if (remaining < TCPOLEN_MPTCP_RM_ADDR_BASE) in mptcp_established_options_rm_addr()
650 unsigned int *size, unsigned int remaining, in mptcp_established_options() argument
[all …]
/Linux-v5.10/net/sctp/
Dchunk.c150 size_t len, first_len, max_data, remaining; in sctp_datamsg_from_user() local
236 for (remaining = msg_len; remaining; remaining -= len) { in sctp_datamsg_from_user()
239 if (remaining == msg_len) { in sctp_datamsg_from_user()
248 if (len >= remaining) { in sctp_datamsg_from_user()
250 len = remaining; in sctp_datamsg_from_user()
/Linux-v5.10/drivers/media/usb/dvb-usb-v2/
Dec168.c200 int ret, len, remaining; in ec168_download_firmware() local
205 for (remaining = fw->size; remaining > 0; remaining -= LEN_MAX) { in ec168_download_firmware()
206 len = remaining; in ec168_download_firmware()
211 req.data = (u8 *) &fw->data[fw->size - remaining]; in ec168_download_firmware()
212 req.index = fw->size - remaining; in ec168_download_firmware()
/Linux-v5.10/drivers/net/usb/
Dasix_common.c82 rx->remaining = 0; in reset_asix_rx_fixup_info()
102 if (rx->remaining && (rx->remaining + sizeof(u32) <= skb->len)) { in asix_rx_fixup_internal()
103 offset = ((rx->remaining + 1) & 0xfffe); in asix_rx_fixup_internal()
109 netdev_err(dev->net, "asix_rx_fixup() Data Header synchronisation was lost, remaining %d\n", in asix_rx_fixup_internal()
110 rx->remaining); in asix_rx_fixup_internal()
118 if (!rx->remaining) { in asix_rx_fixup_internal()
160 rx->remaining = size; in asix_rx_fixup_internal()
163 if (rx->remaining > skb->len - offset) { in asix_rx_fixup_internal()
165 rx->remaining -= copy_length; in asix_rx_fixup_internal()
167 copy_length = rx->remaining; in asix_rx_fixup_internal()
[all …]

12345678910>>...68