Home
last modified time | relevance | path

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

12345678910>>...17

/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/
Dsvc_rdma_sendto.c372 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()
416 unsigned int remaining) in svc_rdma_encode_write_chunk() argument
422 trace_svcrdma_encode_write_chunk(remaining); in svc_rdma_encode_write_chunk()
437 ret = svc_rdma_encode_write_segment(src, sctxt, &remaining); in svc_rdma_encode_write_chunk()
575 unsigned int remaining; in svc_rdma_pull_up_needed() local
579 remaining = xdr->page_len; in svc_rdma_pull_up_needed()
[all …]
Drpc_rdma.c135 unsigned int count, remaining, offset; in rpcrdma_args_inline() local
141 remaining = xdr->page_len; in rpcrdma_args_inline()
144 while (remaining) { in rpcrdma_args_inline()
145 remaining -= min_t(unsigned int, in rpcrdma_args_inline()
146 PAGE_SIZE - offset, remaining); in rpcrdma_args_inline()
218 u32 remaining, page_offset; in rpcrdma_convert_kvec() local
223 remaining = vec->iov_len; in rpcrdma_convert_kvec()
224 while (remaining) { in rpcrdma_convert_kvec()
227 seg->mr_len = min_t(u32, PAGE_SIZE - page_offset, remaining); in rpcrdma_convert_kvec()
228 remaining -= seg->mr_len; in rpcrdma_convert_kvec()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.10/drivers/md/bcache/
Dclosure.h156 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()
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()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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()
507 remaining -= sizeof(*block); in snd_sof_parse_module_memcpy()
[all …]
/kernel/linux/linux-5.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()
150 if (remaining != 1) in FSE_readNCount()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/
Dpaging.c230 int remaining = image->sec[sec_idx].len - offset; in iwl_fill_paging_mem() local
238 len = remaining; in iwl_fill_paging_mem()
239 if (remaining != in iwl_fill_paging_mem()
243 remaining); in iwl_fill_paging_mem()
247 } else if (block->fw_paging_size > remaining) { in iwl_fill_paging_mem()
250 idx, remaining); in iwl_fill_paging_mem()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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
/kernel/linux/linux-5.10/net/mptcp/
Doptions.c394 unsigned int remaining, in mptcp_established_options_mp() argument
485 unsigned int remaining, in mptcp_established_options_dss() argument
504 remaining -= map_size; in mptcp_established_options_dss()
580 unsigned int remaining, in mptcp_established_options_add_addr() argument
590 !(mptcp_pm_add_addr_signal(msk, remaining, &saddr, &echo))) in mptcp_established_options_add_addr()
594 if (remaining < len) in mptcp_established_options_add_addr()
628 unsigned int remaining, in mptcp_established_options_rm_addr() argument
636 !(mptcp_pm_rm_addr_signal(msk, remaining, &rm_id))) in mptcp_established_options_rm_addr()
639 if (remaining < TCPOLEN_MPTCP_RM_ADDR_BASE) in mptcp_established_options_rm_addr()
652 unsigned int *size, unsigned int remaining, in mptcp_established_options() argument
[all …]
/kernel/linux/linux-5.10/drivers/media/tuners/
Dtda18218.c16 int ret = 0, len2, remaining; in tda18218_wr_regs() local
33 for (remaining = len; remaining > 0; in tda18218_wr_regs()
34 remaining -= (priv->cfg->i2c_wr_max - 1)) { in tda18218_wr_regs()
35 len2 = remaining; in tda18218_wr_regs()
40 buf[0] = reg + len - remaining; in tda18218_wr_regs()
41 memcpy(&buf[1], &val[len - remaining], len2); in tda18218_wr_regs()
/kernel/linux/linux-5.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
/kernel/linux/linux-5.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()
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()
168 rx->remaining = 0; in asix_rx_fixup_internal()
[all …]
/kernel/linux/linux-5.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()

12345678910>>...17