| /Linux-v5.4/arch/alpha/lib/ |
| D | srm_puts.c | 12 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.4/include/net/ |
| D | rtnh.h | 8 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-v5.4/net/sunrpc/xprtrdma/ |
| D | svc_rdma_sendto.c | 360 unsigned int remaining) in xdr_encode_write_chunk() argument 378 if (remaining >= seg_len) { in xdr_encode_write_chunk() 381 remaining -= seg_len; in xdr_encode_write_chunk() 384 *dst = cpu_to_be32(remaining); in xdr_encode_write_chunk() 385 remaining = 0; in xdr_encode_write_chunk() 551 unsigned int remaining; in svc_rdma_pull_up_needed() local 555 remaining = xdr->page_len; in svc_rdma_pull_up_needed() 556 while (remaining) { in svc_rdma_pull_up_needed() 558 remaining -= min_t(u32, PAGE_SIZE - pageoff, in svc_rdma_pull_up_needed() 559 remaining); in svc_rdma_pull_up_needed() [all …]
|
| /Linux-v5.4/drivers/target/tcm_fc/ |
| D | tfc_io.c | 49 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.4/drivers/md/bcache/ |
| D | closure.h | 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()
|
| D | closure.c | 25 atomic_set(&cl->remaining, in closure_put_after_sub() 46 closure_put_after_sub(cl, atomic_sub_return(v, &cl->remaining)); in closure_sub() 55 closure_put_after_sub(cl, atomic_dec_return(&cl->remaining)); in closure_put() 90 if (atomic_read(&cl->remaining) & CLOSURE_WAITING) in closure_wait() 94 atomic_add(CLOSURE_WAITING + 1, &cl->remaining); in closure_wait() 176 int r = atomic_read(&cl->remaining); in debug_seq_show()
|
| /Linux-v5.4/drivers/gpu/drm/radeon/ |
| D | atombios_i2c.c | 110 int i, remaining, current_count, buffer_offset, max_bytes, ret; in radeon_atom_hw_i2c_xfer() local 127 remaining = p->len; in radeon_atom_hw_i2c_xfer() 137 while (remaining) { in radeon_atom_hw_i2c_xfer() 138 if (remaining > max_bytes) in radeon_atom_hw_i2c_xfer() 141 current_count = remaining; in radeon_atom_hw_i2c_xfer() 147 remaining -= current_count; in radeon_atom_hw_i2c_xfer()
|
| /Linux-v5.4/lib/xz/ |
| D | xz_dec_test.c | 105 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.4/lib/zstd/ |
| D | entropy_common.c | 65 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()
|
| /Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
| D | atombios_i2c.c | 117 int i, remaining, current_count, buffer_offset, max_bytes, ret; in amdgpu_atombios_i2c_xfer() local 134 remaining = p->len; in amdgpu_atombios_i2c_xfer() 144 while (remaining) { in amdgpu_atombios_i2c_xfer() 145 if (remaining > max_bytes) in amdgpu_atombios_i2c_xfer() 148 current_count = remaining; in amdgpu_atombios_i2c_xfer() 154 remaining -= current_count; in amdgpu_atombios_i2c_xfer()
|
| /Linux-v5.4/sound/soc/sof/ |
| D | loader.c | 265 size_t remaining; in snd_sof_parse_module_memcpy() local 273 remaining = module->size; in snd_sof_parse_module_memcpy() 276 if (remaining < sizeof(*block)) { in snd_sof_parse_module_memcpy() 282 remaining -= sizeof(*block); in snd_sof_parse_module_memcpy() 327 if (remaining < block->size) { in snd_sof_parse_module_memcpy() 333 remaining -= block->size; in snd_sof_parse_module_memcpy() 377 size_t remaining; in load_modules() local 386 remaining = fw->size - sizeof(*header); in load_modules() 388 if (remaining > fw->size) { in load_modules() 395 if (remaining < sizeof(*module)) { in load_modules() [all …]
|
| /Linux-v5.4/drivers/staging/wusbcore/host/whci/ |
| D | qset.c | 256 size_t remaining, offset; in qset_copy_bounce_to_sg() local 259 remaining = std->len; in qset_copy_bounce_to_sg() 264 while (remaining) { in qset_copy_bounce_to_sg() 267 len = min(sg->length - offset, remaining); in qset_copy_bounce_to_sg() 271 remaining -= len; in qset_copy_bounce_to_sg() 426 size_t remaining; in qset_add_urb_sg() local 436 remaining = urb->transfer_buffer_length; in qset_add_urb_sg() 444 if (remaining == 0) { in qset_add_urb_sg() 449 dma_remaining = min_t(size_t, sg_dma_len(sg), remaining); in qset_add_urb_sg() 518 remaining -= dma_len; in qset_add_urb_sg() [all …]
|
| /Linux-v5.4/tools/lib/bpf/ |
| D | nlattr.c | 24 static struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next() argument 28 *remaining -= totlen; in nla_next() 32 static int nla_ok(const struct nlattr *nla, int remaining) in nla_ok() argument 34 return remaining >= sizeof(*nla) && in nla_ok() 36 nla->nla_len <= remaining; in nla_ok()
|
| /Linux-v5.4/drivers/char/ |
| D | ps3flash.c | 100 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.4/drivers/misc/lkdtm/ |
| D | bugs.c | 42 static int noinline recursive_loop(int remaining) in recursive_loop() argument 46 memset((void *)buf, remaining & 0xFF, sizeof(buf)); in recursive_loop() 47 pr_info("loop %d/%d ...\n", (int)buf[remaining % sizeof(buf)], in recursive_loop() 49 if (!remaining) in recursive_loop() 52 return recursive_loop(remaining - 1); in recursive_loop()
|
| /Linux-v5.4/drivers/md/ |
| D | dm-io.c | 305 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.4/net/sctp/ |
| D | chunk.c | 152 size_t len, first_len, max_data, remaining; in sctp_datamsg_from_user() local 238 for (remaining = msg_len; remaining; remaining -= len) { in sctp_datamsg_from_user() 241 if (remaining == msg_len) { in sctp_datamsg_from_user() 250 if (len >= remaining) { in sctp_datamsg_from_user() 252 len = remaining; in sctp_datamsg_from_user()
|
| /Linux-v5.4/drivers/net/wireless/intel/iwlwifi/fw/ |
| D | paging.c | 230 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()
|
| /Linux-v5.4/drivers/net/ethernet/rocker/ |
| D | rocker_tlv.h | 30 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.4/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
| D | aux.c | 39 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.4/drivers/staging/rtl8188eu/ |
| D | TODO | 2 - 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.4/drivers/media/tuners/ |
| D | tda18218.c | 16 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-v5.4/drivers/staging/rtl8723bs/ |
| D | TODO | 3 - 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.4/drivers/net/usb/ |
| D | asix_common.c | 82 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 …]
|
| /Linux-v5.4/drivers/media/usb/dvb-usb-v2/ |
| D | ec168.c | 200 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()
|