Home
last modified time | relevance | path

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

12345678910>>...17

/linux/drivers/vfio/pci/
A Dvfio_pci_igd.c51 size_t *remaining, in igd_opregion_shift_copy() argument
59 *remaining -= bytes; in igd_opregion_shift_copy()
71 size_t remaining; in vfio_pci_igd_rw() local
77 remaining = count; in vfio_pci_igd_rw()
85 &remaining, bytes)) in vfio_pci_igd_rw()
103 &pos, &remaining, bytes)) in vfio_pci_igd_rw()
113 &remaining, bytes)) in vfio_pci_igd_rw()
126 &pos, &remaining, bytes)) in vfio_pci_igd_rw()
136 &remaining, bytes)) in vfio_pci_igd_rw()
141 if (remaining && in vfio_pci_igd_rw()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_res_cursor.h37 uint64_t remaining; member
60 cur->remaining = size; in amdgpu_res_first()
74 cur->remaining = size; in amdgpu_res_first()
90 BUG_ON(size > cur->remaining); in amdgpu_res_next()
92 cur->remaining -= size; in amdgpu_res_next()
93 if (!cur->remaining) in amdgpu_res_next()
104 cur->size = min(node->size << PAGE_SHIFT, cur->remaining); in amdgpu_res_next()
A 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/arch/alpha/lib/
A 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/include/net/
A 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()
/linux/drivers/target/tcm_fc/
A Dtfc_io.c48 size_t remaining; in ft_queue_data_in() local
74 remaining = se_cmd->data_length; in ft_queue_data_in()
79 BUG_ON(remaining && !se_cmd->t_data_sg); in ft_queue_data_in()
80 if (remaining) { in ft_queue_data_in()
88 use_sg = !(remaining % 4); in ft_queue_data_in()
90 while (remaining) { in ft_queue_data_in()
100 mem_len = min((size_t)sg->length, remaining); in ft_queue_data_in()
112 frame_len = min(frame_len, remaining); in ft_queue_data_in()
154 remaining -= tlen; in ft_queue_data_in()
159 if (!remaining) in ft_queue_data_in()
[all …]
/linux/net/sunrpc/xprtrdma/
A Dsvc_rdma_sendto.c389 *remaining -= length; in svc_rdma_encode_write_segment()
589 remaining = xdr->page_len; in svc_rdma_xb_dma_map()
590 while (remaining) { in svc_rdma_xb_dma_map()
597 remaining -= len; in svc_rdma_xb_dma_map()
626 unsigned int remaining; in svc_rdma_xb_count_sges() local
633 remaining = xdr->page_len; in svc_rdma_xb_count_sges()
634 while (remaining) { in svc_rdma_xb_count_sges()
636 remaining -= min_t(u32, PAGE_SIZE - offset, remaining); in svc_rdma_xb_count_sges()
703 remaining = xdr->page_len; in svc_rdma_xb_linearize()
704 while (remaining) { in svc_rdma_xb_linearize()
[all …]
/linux/sound/soc/sof/
A Dloader.c281 ssize_t remaining; in snd_sof_fw_ext_man_parse() local
349 remaining -= elem_hdr->size; in snd_sof_fw_ext_man_parse()
353 if (remaining) { in snd_sof_fw_ext_man_parse()
532 size_t remaining; in snd_sof_parse_module_memcpy() local
540 remaining = module->size; in snd_sof_parse_module_memcpy()
549 remaining -= sizeof(*block); in snd_sof_parse_module_memcpy()
598 remaining -= block->size; in snd_sof_parse_module_memcpy()
650 size_t remaining; in load_modules() local
662 if (remaining > fw->size) { in load_modules()
675 remaining -= sizeof(*module); in load_modules()
[all …]
/linux/net/mptcp/
A Doptions.c576 remaining -= map_size; in mptcp_established_options_dss()
667 remaining += opt_size; in mptcp_established_options_add_addr()
669 if (remaining < len) in mptcp_established_options_add_addr()
714 if (remaining < len) in mptcp_established_options_rm_addr()
811 remaining -= opt_size; in mptcp_established_options()
815 remaining -= opt_size; in mptcp_established_options()
827 remaining -= opt_size; in mptcp_established_options()
839 remaining -= opt_size; in mptcp_established_options()
842 remaining -= opt_size; in mptcp_established_options()
846 remaining -= opt_size; in mptcp_established_options()
[all …]
/linux/drivers/md/bcache/
A 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()
A 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()
/linux/drivers/gpu/drm/radeon/
A 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/lib/xz/
A 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/drivers/net/wwan/iosm/
A Diosm_ipc_coredump.c21 s32 remaining; in ipc_coredump_collect() local
28 remaining = devlink->cd_file_info[entry].actual_size; in ipc_coredump_collect()
34 while (remaining > 0) { in ipc_coredump_collect()
35 bytes_to_read = min(remaining, MAX_DATA_SIZE); in ipc_coredump_collect()
43 remaining -= bytes_read; in ipc_coredump_collect()
/linux/lib/zstd/common/
A Dentropy_common.c66 int remaining; in FSE_readNCount_body() local
94 remaining = (1<<nbBits)+1; in FSE_readNCount_body()
149 int const max = (2*threshold-1) - remaining; in FSE_readNCount_body()
166 remaining -= count; in FSE_readNCount_body()
169 remaining += count; in FSE_readNCount_body()
175 if (remaining < threshold) { in FSE_readNCount_body()
180 if (remaining <= 1) break; in FSE_readNCount_body()
181 nbBits = BIT_highbit32(remaining) + 1; in FSE_readNCount_body()
196 if (remaining != 1) return ERROR(corruption_detected); in FSE_readNCount_body()
/linux/tools/lib/bpf/
A 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/drivers/char/
A 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/drivers/md/
A Ddm-io.c305 sector_t remaining = where->count; in do_region() local
344 num_bvecs = bio_max_segs(dm_sector_div_up(remaining, 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/drivers/firmware/tegra/
A Dbpmp-debugfs.c200 int remaining, err; in mrq_debug_read() local
213 remaining = len; in mrq_debug_read()
215 while (remaining > 0) { in mrq_debug_read()
232 remaining -= resp.frd.readlen; in mrq_debug_read()
263 size_t remaining; in mrq_debug_write() local
277 remaining = sz_data; in mrq_debug_write()
279 while (remaining > 0) { in mrq_debug_write()
293 remaining -= req.fwr.datalen; in mrq_debug_write()
326 int remaining, err; in bpmp_debug_show() local
338 remaining = len; in bpmp_debug_show()
[all …]
/linux/net/sctp/
A 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/drivers/net/ethernet/rocker/
A 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/drivers/net/wireless/intel/iwlwifi/fw/
A Dpaging.c174 int remaining = image->sec[sec_idx].len - offset; in iwl_fill_paging_mem() local
182 len = remaining; in iwl_fill_paging_mem()
183 if (remaining != in iwl_fill_paging_mem()
187 remaining); in iwl_fill_paging_mem()
191 } else if (block->fw_paging_size > remaining) { in iwl_fill_paging_mem()
194 idx, remaining); in iwl_fill_paging_mem()
/linux/drivers/media/tuners/
A 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()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
A 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/drivers/media/usb/dvb-usb-v2/
A 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()

Completed in 29 milliseconds

12345678910>>...17