| /Linux-v4.19/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-v4.19/include/net/ |
| D | nexthop.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-v4.19/drivers/target/tcm_fc/ |
| D | tfc_io.c | 61 size_t remaining; in ft_queue_data_in() local 87 remaining = se_cmd->data_length; in ft_queue_data_in() 92 BUG_ON(remaining && !se_cmd->t_data_sg); in ft_queue_data_in() 93 if (remaining) { in ft_queue_data_in() 101 use_sg = !(remaining % 4); in ft_queue_data_in() 103 while (remaining) { in ft_queue_data_in() 113 mem_len = min((size_t)sg->length, remaining); in ft_queue_data_in() 125 frame_len = min(frame_len, remaining); in ft_queue_data_in() 168 remaining -= tlen; in ft_queue_data_in() 173 if (!remaining) in ft_queue_data_in() [all …]
|
| /Linux-v4.19/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() 170 int r = atomic_read(&cl->remaining); in debug_seq_show()
|
| /Linux-v4.19/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-v4.19/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-v4.19/drivers/mtd/devices/ |
| D | m25p80.c | 93 size_t remaining = len; in m25p80_write() local 104 while (remaining) { in m25p80_write() 105 op.data.nbytes = remaining < UINT_MAX ? remaining : UINT_MAX; in m25p80_write() 115 remaining -= op.data.nbytes; in m25p80_write() 135 size_t remaining = len; in m25p80_read() local 147 while (remaining) { in m25p80_read() 148 op.data.nbytes = remaining < UINT_MAX ? remaining : UINT_MAX; in m25p80_read() 158 remaining -= op.data.nbytes; in m25p80_read()
|
| /Linux-v4.19/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-v4.19/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-v4.19/drivers/usb/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-v4.19/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() 43 u8 cnt = (remaining > 16) ? 16 : remaining; in nvkm_i2c_aux_i2c_xfer() 51 if (mcnt || remaining > 16) in nvkm_i2c_aux_i2c_xfer() 61 remaining -= cnt; in nvkm_i2c_aux_i2c_xfer()
|
| /Linux-v4.19/tools/lib/bpf/ |
| D | nlattr.c | 34 static struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next() argument 38 *remaining -= totlen; in nla_next() 42 static int nla_ok(const struct nlattr *nla, int remaining) in nla_ok() argument 44 return remaining >= sizeof(*nla) && in nla_ok() 46 nla->nla_len <= remaining; in nla_ok()
|
| /Linux-v4.19/drivers/char/ |
| D | ps3flash.c | 112 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()
|
| /Linux-v4.19/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-v4.19/net/sctp/ |
| D | chunk.c | 169 size_t len, first_len, max_data, remaining; in sctp_datamsg_from_user() local 249 for (remaining = msg_len; remaining; remaining -= len) { in sctp_datamsg_from_user() 252 if (remaining == msg_len) { in sctp_datamsg_from_user() 261 if (len >= remaining) { in sctp_datamsg_from_user() 263 len = remaining; in sctp_datamsg_from_user()
|
| /Linux-v4.19/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-v4.19/drivers/net/ethernet/rocker/ |
| D | rocker_tlv.h | 34 int *remaining) in rocker_tlv_next() argument 38 *remaining -= totlen; in rocker_tlv_next() 42 static inline int rocker_tlv_ok(const struct rocker_tlv *tlv, int remaining) in rocker_tlv_ok() argument 44 return remaining >= (int) ROCKER_TLV_HDRLEN && in rocker_tlv_ok() 46 tlv->len <= remaining; in rocker_tlv_ok()
|
| /Linux-v4.19/drivers/misc/lkdtm/ |
| D | bugs.c | 35 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-v4.19/drivers/staging/rtl8188eu/ |
| D | TODO | 2 - find and remove remaining code valid only for 5 HGz. 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-v4.19/drivers/media/tuners/ |
| D | tda18218.c | 25 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()
|
| /Linux-v4.19/drivers/staging/rtl8723bs/ |
| D | TODO | 3 - find and remove remaining code valid only for 5 HGz. 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-v4.19/drivers/usb/class/ |
| D | usbtmc.c | 683 size_t remaining; in usbtmc_read() local 713 remaining = count; in usbtmc_read() 714 this_part = remaining; in usbtmc_read() 717 while (remaining > 0) { in usbtmc_read() 725 …b_bulk_msg: retval(%u), done(%zu), remaining(%zu), actual(%d)\n", retval, done, remaining, actual); in usbtmc_read() 778 if (remaining > n_characters) in usbtmc_read() 779 remaining = n_characters; in usbtmc_read() 781 if (actual > remaining) in usbtmc_read() 782 actual = remaining; in usbtmc_read() 786 remaining -= actual; in usbtmc_read() [all …]
|
| /Linux-v4.19/drivers/net/usb/ |
| D | asix_common.c | 94 rx->remaining = 0; in reset_asix_rx_fixup_info() 114 if (rx->remaining && (rx->remaining + sizeof(u32) <= skb->len)) { in asix_rx_fixup_internal() 115 offset = ((rx->remaining + 1) & 0xfffe); in asix_rx_fixup_internal() 122 rx->remaining); in asix_rx_fixup_internal() 130 if (!rx->remaining) { in asix_rx_fixup_internal() 172 rx->remaining = size; in asix_rx_fixup_internal() 175 if (rx->remaining > skb->len - offset) { in asix_rx_fixup_internal() 177 rx->remaining -= copy_length; in asix_rx_fixup_internal() 179 copy_length = rx->remaining; in asix_rx_fixup_internal() 180 rx->remaining = 0; in asix_rx_fixup_internal() [all …]
|
| /Linux-v4.19/drivers/media/usb/dvb-usb-v2/ |
| D | ec168.c | 210 int ret, len, remaining; in ec168_download_firmware() local 215 for (remaining = fw->size; remaining > 0; remaining -= LEN_MAX) { in ec168_download_firmware() 216 len = remaining; in ec168_download_firmware() 221 req.data = (u8 *) &fw->data[fw->size - remaining]; in ec168_download_firmware() 222 req.index = fw->size - remaining; in ec168_download_firmware()
|