Home
last modified time | relevance | path

Searched refs:remaining (Results 1 – 200 of 269) sorted by relevance

12

/linux-4.4.14/arch/alpha/lib/
Dsrm_puts.c11 long remaining, written; in srm_puts() local
16 for (remaining = len; remaining > 0; remaining -= written) in srm_puts()
18 written = callback_puts(0, str, remaining); in srm_puts()
Dev6-memset.S102 sra $18,3,$3 # U : Number of remaining quads to write
279 sra $18,3,$3 # U : Number of remaining quads to write
466 sra $18,3,$3 # U : Number of remaining quads to write
/linux-4.4.14/drivers/md/bcache/
Dclosure.h161 atomic_t remaining; member
219 if (atomic_read(&cl->remaining) & CLOSURE_SLEEPING) in __closure_end_sleep()
220 atomic_sub(CLOSURE_SLEEPING, &cl->remaining); in __closure_end_sleep()
229 if (!(atomic_read(&cl->remaining) & CLOSURE_SLEEPING)) in __closure_start_sleep()
230 atomic_add(CLOSURE_SLEEPING, &cl->remaining); in __closure_start_sleep()
235 atomic_sub(CLOSURE_RUNNING, &cl->remaining); in closure_set_stopped()
265 BUG_ON((atomic_inc_return(&cl->remaining) & in closure_get()
268 atomic_inc(&cl->remaining); in closure_get()
285 atomic_set(&cl->remaining, CLOSURE_REMAINING_INITIALIZER); in closure_init()
294 atomic_set(&cl->remaining, CLOSURE_REMAINING_INITIALIZER|CLOSURE_STACK); in closure_init_stack()
Dclosure.c27 atomic_set(&cl->remaining, in closure_put_after_sub()
48 closure_put_after_sub(cl, atomic_sub_return(v, &cl->remaining)); in closure_sub()
57 closure_put_after_sub(cl, atomic_dec_return(&cl->remaining)); in closure_put()
103 if (atomic_read(&cl->remaining) & CLOSURE_WAITING) in closure_wait()
107 atomic_add(CLOSURE_WAITING + 1, &cl->remaining); in closure_wait()
126 if ((atomic_read(&cl->remaining) & in closure_sync()
176 int r = atomic_read(&cl->remaining); in debug_seq_show()
/linux-4.4.14/include/net/
Dnexthop.h7 static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining) in rtnh_ok() argument
9 return remaining >= sizeof(*rtnh) && in rtnh_ok()
11 rtnh->rtnh_len <= remaining; in rtnh_ok()
15 int *remaining) in rtnh_next() argument
19 *remaining -= totlen; in rtnh_next()
Dnetlink.h333 static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok() argument
335 return (remaining >= (int) sizeof(struct nlmsghdr) && in nlmsg_ok()
337 nlh->nlmsg_len <= remaining); in nlmsg_ok()
349 nlmsg_next(const struct nlmsghdr *nlh, int *remaining) in nlmsg_next() argument
353 *remaining -= totlen; in nlmsg_next()
688 static inline int nla_ok(const struct nlattr *nla, int remaining) in nla_ok() argument
690 return remaining >= (int) sizeof(*nla) && in nla_ok()
692 nla->nla_len <= remaining; in nla_ok()
703 static inline struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next() argument
707 *remaining -= totlen; in nla_next()
/linux-4.4.14/drivers/target/tcm_fc/
Dtfc_io.c61 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-4.4.14/drivers/gpu/drm/amd/amdgpu/
Datombios_i2c.c109 int i, remaining, current_count, buffer_offset, max_bytes, ret; in amdgpu_atombios_i2c_xfer() local
126 remaining = p->len; in amdgpu_atombios_i2c_xfer()
136 while (remaining) { in amdgpu_atombios_i2c_xfer()
137 if (remaining > max_bytes) in amdgpu_atombios_i2c_xfer()
140 current_count = remaining; in amdgpu_atombios_i2c_xfer()
146 remaining -= current_count; in amdgpu_atombios_i2c_xfer()
/linux-4.4.14/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-4.4.14/drivers/gpu/drm/radeon/
Datombios_i2c.c110 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()
Dradeon_i2c.c586 int i, j, remaining, current_count, buffer_offset, ret = num; in r500_hw_i2c_xfer() local
705 remaining = p->len; in r500_hw_i2c_xfer()
708 while (remaining) { in r500_hw_i2c_xfer()
709 if (remaining > 15) in r500_hw_i2c_xfer()
712 current_count = remaining; in r500_hw_i2c_xfer()
744 remaining -= current_count; in r500_hw_i2c_xfer()
748 while (remaining) { in r500_hw_i2c_xfer()
749 if (remaining > 15) in r500_hw_i2c_xfer()
752 current_count = remaining; in r500_hw_i2c_xfer()
785 remaining -= current_count; in r500_hw_i2c_xfer()
/linux-4.4.14/drivers/usb/class/
Dusbtmc.c442 size_t remaining; in usbtmc_read() local
473 remaining = count; in usbtmc_read()
474 this_part = remaining; in usbtmc_read()
477 while (remaining > 0) { in usbtmc_read()
479 dev_dbg(dev, "usb_bulk_msg_in: remaining(%zu), count(%zu)\n", remaining, count); in usbtmc_read()
481 if (remaining > USBTMC_SIZE_IOBUFFER - USBTMC_HEADER_SIZE - 3) in usbtmc_read()
484 this_part = remaining; in usbtmc_read()
502 …b_bulk_msg: retval(%u), done(%zu), remaining(%zu), actual(%d)\n", retval, done, remaining, actual); in usbtmc_read()
556 if (remaining > n_characters) in usbtmc_read()
557 remaining = n_characters; in usbtmc_read()
[all …]
/linux-4.4.14/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()
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()
Dbit.c189 u8 remaining = msg->len; in nvkm_i2c_bit_xfer() local
197 while (!ret && remaining--) in nvkm_i2c_bit_xfer()
198 ret = nvkm_i2c_get_byte(bus, ptr++, !remaining); in nvkm_i2c_bit_xfer()
200 while (!ret && remaining--) in nvkm_i2c_bit_xfer()
/linux-4.4.14/drivers/usb/host/whci/
Dqset.c268 size_t remaining, offset; in qset_copy_bounce_to_sg() local
271 remaining = std->len; in qset_copy_bounce_to_sg()
276 while (remaining) { in qset_copy_bounce_to_sg()
279 len = min(sg->length - offset, remaining); in qset_copy_bounce_to_sg()
283 remaining -= len; in qset_copy_bounce_to_sg()
438 size_t remaining; in qset_add_urb_sg() local
448 remaining = urb->transfer_buffer_length; in qset_add_urb_sg()
456 if (remaining == 0) { in qset_add_urb_sg()
461 dma_remaining = min_t(size_t, sg_dma_len(sg), remaining); in qset_add_urb_sg()
530 remaining -= dma_len; in qset_add_urb_sg()
[all …]
/linux-4.4.14/drivers/char/
Dps3flash.c112 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()
Dmem.c127 unsigned long remaining; in read_mem() local
143 remaining = copy_to_user(buf, ptr, sz); in read_mem()
145 if (remaining) in read_mem()
/linux-4.4.14/drivers/md/
Ddm-io.c289 sector_t remaining = where->count; in do_region() local
319 dm_sector_div_up(remaining, (PAGE_SIZE >> SECTOR_SHIFT))); in do_region()
322 bio->bi_iter.bi_sector = where->sector + (where->count - remaining); in do_region()
328 num_sectors = min_t(sector_t, special_cmd_max_sectors, remaining); in do_region()
330 remaining -= num_sectors; in do_region()
337 num_sectors = min_t(sector_t, special_cmd_max_sectors, remaining); in do_region()
341 remaining -= num_sectors; in do_region()
343 } else while (remaining) { in do_region()
348 len = min(len, to_bytes(remaining)); in do_region()
353 remaining -= to_sector(len); in do_region()
[all …]
Draid1.h131 atomic_t remaining; /* 'have we finished' count, member
Draid10.h99 atomic_t remaining; /* 'have we finished' count, member
Draid10.c429 if (atomic_dec_and_test(&r10_bio->remaining)) { in one_write_done()
1348 atomic_set(&r10_bio->remaining, 1); in __make_request()
1370 atomic_inc(&r10_bio->remaining); in __make_request()
1413 atomic_inc(&r10_bio->remaining); in __make_request()
1840 atomic_dec_and_test(&r10_bio->remaining)) { in end_sync_read()
1852 while (atomic_dec_and_test(&r10_bio->remaining)) { in end_sync_request()
1937 atomic_set(&r10_bio->remaining, 1); in sync_request_write()
2004 atomic_inc(&r10_bio->remaining); in sync_request_write()
2025 atomic_inc(&r10_bio->remaining); in sync_request_write()
2032 if (atomic_dec_and_test(&r10_bio->remaining)) { in sync_request_write()
[all …]
Ddm-ioctl.c1106 size_t remaining, len, used = 0; in retrieve_status() local
1122 remaining = len - (outptr - outbuf); in retrieve_status()
1123 if (remaining <= sizeof(struct dm_target_spec)) { in retrieve_status()
1137 remaining = len - (outptr - outbuf); in retrieve_status()
1138 if (remaining <= 0) { in retrieve_status()
1147 ti->type->status(ti, type, status_flags, outptr, remaining); in retrieve_status()
1152 if (l == remaining) { in retrieve_status()
Ddm-table.c622 unsigned short remaining = 0; in validate_hardware_logical_block_alignment() local
645 if (remaining < ti->len && in validate_hardware_logical_block_alignment()
646 remaining & ((ti_limits.logical_block_size >> in validate_hardware_logical_block_alignment()
653 remaining = next_target_start ? in validate_hardware_logical_block_alignment()
657 if (remaining) { in validate_hardware_logical_block_alignment()
Draid1.c389 if (!atomic_dec_and_test(&r1_bio->remaining)) in r1_bio_write_done()
472 if (atomic_read(&r1_bio->behind_remaining) >= (atomic_read(&r1_bio->remaining)-1) && in raid1_end_write_request()
1331 atomic_set(&r1_bio->remaining, 1); in make_request()
1383 atomic_inc(&r1_bio->remaining); in make_request()
1714 if (atomic_dec_and_test(&r1_bio->remaining)) in end_sync_read()
1759 if (atomic_dec_and_test(&r1_bio->remaining)) { in end_sync_write()
2024 atomic_set(&r1_bio->remaining, 1); in sync_request_write()
2035 atomic_inc(&r1_bio->remaining); in sync_request_write()
2041 if (atomic_dec_and_test(&r1_bio->remaining)) { in sync_request_write()
2747 atomic_set(&r1_bio->remaining, read_targets); in sync_request()
[all …]
/linux-4.4.14/drivers/net/usb/
Dasix_common.c68 if (rx->remaining && (rx->remaining + sizeof(u32) <= skb->len)) { in asix_rx_fixup_internal()
69 offset = ((rx->remaining + 1) & 0xfffe); in asix_rx_fixup_internal()
76 rx->remaining); in asix_rx_fixup_internal()
85 rx->remaining = 0; in asix_rx_fixup_internal()
93 if (!rx->remaining) { in asix_rx_fixup_internal()
133 rx->remaining = size; in asix_rx_fixup_internal()
136 if (rx->remaining > skb->len - offset) { in asix_rx_fixup_internal()
138 rx->remaining -= copy_length; in asix_rx_fixup_internal()
140 copy_length = rx->remaining; in asix_rx_fixup_internal()
141 rx->remaining = 0; in asix_rx_fixup_internal()
[all …]
Dasix.h171 u16 remaining; member
/linux-4.4.14/drivers/media/tuners/
Dtda18218.c29 int ret = 0, len2, remaining; in tda18218_wr_regs() local
46 for (remaining = len; remaining > 0; in tda18218_wr_regs()
47 remaining -= (priv->cfg->i2c_wr_max - 1)) { in tda18218_wr_regs()
48 len2 = remaining; in tda18218_wr_regs()
53 buf[0] = reg + len - remaining; in tda18218_wr_regs()
54 memcpy(&buf[1], &val[len - remaining], len2); in tda18218_wr_regs()
Dsi2157.c83 int ret, len, remaining; in si2157_init() local
167 for (remaining = fw->size; remaining > 0; remaining -= 17) { in si2157_init()
168 len = fw->data[fw->size - remaining]; in si2157_init()
174 memcpy(cmd.args, &fw->data[(fw->size - remaining) + 1], len); in si2157_init()
/linux-4.4.14/drivers/staging/rtl8188eu/
DTODO2 - 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-4.4.14/drivers/media/usb/dvb-usb-v2/
Dec168.c214 int ret, len, remaining; in ec168_download_firmware() local
219 for (remaining = fw->size; remaining > 0; remaining -= LEN_MAX) { in ec168_download_firmware()
220 len = remaining; in ec168_download_firmware()
225 req.data = (u8 *) &fw->data[fw->size - remaining]; in ec168_download_firmware()
226 req.index = fw->size - remaining; in ec168_download_firmware()
Daf9015.c354 int i, len, remaining, ret; in af9015_download_firmware() local
368 for (remaining = fw->size; remaining > 0; remaining -= LEN_MAX) { in af9015_download_firmware()
369 len = remaining; in af9015_download_firmware()
374 req.data = (u8 *) &fw->data[fw->size - remaining]; in af9015_download_firmware()
375 req.addr = FW_ADDR + fw->size - remaining; in af9015_download_firmware()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dmanage.c205 u16 remaining, i, j, prev_bytes; in e1000_mng_host_if_write() local
227 remaining = length & 0x3; in e1000_mng_host_if_write()
228 length -= remaining; in e1000_mng_host_if_write()
244 if (remaining) { in e1000_mng_host_if_write()
246 if (j < remaining) in e1000_mng_host_if_write()
/linux-4.4.14/fs/squashfs/
Dcache.c309 int remaining = length; in squashfs_copy_data() local
322 if (bytes >= remaining) { in squashfs_copy_data()
323 memcpy(buffer, buff, remaining); in squashfs_copy_data()
324 remaining = 0; in squashfs_copy_data()
330 remaining -= bytes; in squashfs_copy_data()
334 return length - remaining; in squashfs_copy_data()
/linux-4.4.14/arch/alpha/kernel/
Dsrmcons.c94 long c, remaining = count; in srmcons_do_write() local
99 for (cur = (char *)buf; remaining > 0; ) { in srmcons_do_write()
105 for (c = 0; c < min_t(long, 128L, remaining) && !need_cr; c++) in srmcons_do_write()
112 remaining -= result.bits.c; in srmcons_do_write()
/linux-4.4.14/drivers/usb/musb/
Dtusb6010_omap.c117 unsigned long remaining, flags, pio; in tusb_omap_dma_cb() local
135 remaining = musb_readl(ep_conf, TUSB_EP_TX_OFFSET); in tusb_omap_dma_cb()
137 remaining = musb_readl(ep_conf, TUSB_EP_RX_OFFSET); in tusb_omap_dma_cb()
139 remaining = TUSB_EP_CONFIG_XFR_SIZE(remaining); in tusb_omap_dma_cb()
142 if (unlikely(remaining > chdat->transfer_len)) { in tusb_omap_dma_cb()
145 remaining); in tusb_omap_dma_cb()
146 remaining = 0; in tusb_omap_dma_cb()
149 channel->actual_len = chdat->transfer_len - remaining; in tusb_omap_dma_cb()
152 dev_dbg(musb->controller, "DMA remaining %lu/%u\n", remaining, chdat->transfer_len); in tusb_omap_dma_cb()
/linux-4.4.14/drivers/media/dvb-frontends/
Dsi2168.c398 int ret, len, remaining; in si2168_init() local
503 for (remaining = fw->size; remaining > 0; remaining -= 17) { in si2168_init()
504 len = fw->data[fw->size - remaining]; in si2168_init()
509 memcpy(cmd.args, &fw->data[(fw->size - remaining) + 1], len); in si2168_init()
518 for (remaining = fw->size; remaining > 0; remaining -= 8) { in si2168_init()
520 memcpy(cmd.args, &fw->data[fw->size - remaining], len); in si2168_init()
Daf9013.c1354 int i, len, remaining, ret; in af9013_download_firmware() local
1407 for (remaining = fw->size; remaining > 0; remaining -= LEN_MAX) { in af9013_download_firmware()
1408 len = remaining; in af9013_download_firmware()
1413 FW_ADDR + fw->size - remaining, in af9013_download_firmware()
1414 (u8 *) &fw->data[fw->size - remaining], len); in af9013_download_firmware()
Dcx24116.c571 int i, ret, len, max, remaining; in cx24116_load_firmware() local
615 for (remaining = fw->size; remaining > 0; remaining -= max - 1) { in cx24116_load_firmware()
616 len = remaining; in cx24116_load_firmware()
620 cx24116_writeregN(state, 0xF7, &fw->data[fw->size - remaining], in cx24116_load_firmware()
Dtda10071.c768 int ret, i, len, remaining, fw_size; in tda10071_init() local
894 for (remaining = fw_size; remaining > 0; in tda10071_init()
895 remaining -= (dev->i2c_wr_max - 1)) { in tda10071_init()
896 len = remaining; in tda10071_init()
901 (u8 *) &fw->data[fw_size - remaining], len); in tda10071_init()
Dm88ds3103.c638 int ret, len, remaining; in m88ds3103_init() local
699 for (remaining = fw->size; remaining > 0; in m88ds3103_init()
700 remaining -= (dev->cfg->i2c_wr_max - 1)) { in m88ds3103_init()
701 len = remaining; in m88ds3103_init()
706 &fw->data[fw->size - remaining], len); in m88ds3103_init()
/linux-4.4.14/arch/tile/kernel/
Dstack.c287 size_t namelen, remaining; in describe_addr() local
312 remaining = (bufsize - 1) - namelen; in describe_addr()
314 rc = snprintf(p, remaining, "+%#lx/%#lx ", in describe_addr()
316 if (modname && rc < remaining) in describe_addr()
317 snprintf(p + rc, remaining - rc, "[%s] ", modname); in describe_addr()
345 remaining = (bufsize - 1) - namelen; in describe_addr()
347 snprintf(buf + namelen, remaining, "[%lx+%lx] ", in describe_addr()
/linux-4.4.14/tools/perf/ui/stdio/
Dhist.c88 u64 remaining; in __callchain__fprintf_graph() local
93 remaining = total_samples; in __callchain__fprintf_graph()
102 remaining -= cumul; in __callchain__fprintf_graph()
112 if (!next && (callchain_param.mode != CHAIN_GRAPH_REL || !remaining)) in __callchain__fprintf_graph()
145 remaining && remaining != total_samples) { in __callchain__fprintf_graph()
153 remaining, left_margin); in __callchain__fprintf_graph()
/linux-4.4.14/drivers/staging/rtl8723au/
DTODO5 - convert any remaining unusual variable types
7 - checkpatch.pl fixes - most of the remaining ones are lines too long. Many
/linux-4.4.14/drivers/scsi/libfc/
Dfc_libfc.c116 size_t remaining = len; in fc_copy_buffer_to_sglist() local
119 while (remaining > 0 && sg) { in fc_copy_buffer_to_sglist()
135 sg_bytes = min(remaining, sg->length - *offset); in fc_copy_buffer_to_sglist()
151 remaining -= sg_bytes; in fc_copy_buffer_to_sglist()
Dfc_fcp.c568 size_t remaining; in fc_fcp_send_data() local
609 remaining = seq_blen; in fc_fcp_send_data()
618 while (remaining > 0 && sg) { in fc_fcp_send_data()
625 tlen = min(t_blen, remaining); in fc_fcp_send_data()
670 remaining -= sg_bytes; in fc_fcp_send_data()
680 if (remaining == 0) in fc_fcp_send_data()
/linux-4.4.14/drivers/usb/c67x00/
Dc67x00-sched.c661 int remaining; in c67x00_add_data_urb() local
670 remaining = urb->transfer_buffer_length - urb->actual_length; in c67x00_add_data_urb()
675 usb_pipeout(urb->pipe) && !(remaining % maxps); in c67x00_add_data_urb()
677 while (remaining || need_empty) { in c67x00_add_data_urb()
681 len = (remaining > maxps) ? maxps : remaining; in c67x00_add_data_urb()
687 remaining; in c67x00_add_data_urb()
694 remaining -= len; in c67x00_add_data_urb()
873 int maxps, need_empty, remaining; in c67x00_end_of_data() local
887 remaining = urb->transfer_buffer_length - urb->actual_length; in c67x00_end_of_data()
889 usb_pipeout(urb->pipe) && !(remaining % maxps); in c67x00_end_of_data()
[all …]
/linux-4.4.14/drivers/gpu/vga/
Dvgaarb.c920 size_t remaining = count; in vga_arb_write() local
939 remaining -= 5; in vga_arb_write()
943 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) { in vga_arb_write()
975 remaining -= 7; in vga_arb_write()
983 (curr_pos, remaining, &io_state)) { in vga_arb_write()
1031 remaining -= 8; in vga_arb_write()
1035 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) { in vga_arb_write()
1075 remaining -= 7; in vga_arb_write()
1081 if (!vga_pci_str_to_vars(curr_pos, remaining, in vga_arb_write()
1138 remaining -= 8; in vga_arb_write()
[all …]
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dpio_copy.c262 unsigned int remaining; in zero_extra_bytes() local
267 remaining = pbuf->carry_bytes - zbytes; /* remaining bytes */ in zero_extra_bytes()
270 if (remaining) in zero_extra_bytes()
271 pbuf->carry.val64 = (pbuf->carry.val64 << zshift(remaining)) in zero_extra_bytes()
272 >> zshift(remaining); in zero_extra_bytes()
275 pbuf->carry_bytes = remaining; in zero_extra_bytes()
/linux-4.4.14/drivers/staging/android/
Dtimed_output.c35 int remaining = tdev->get_time(tdev); in enable_show() local
37 return sprintf(buf, "%d\n", remaining); in enable_show()
/linux-4.4.14/lib/
Dhexdump.c247 int i, linelen, remaining = len; in print_hex_dump() local
254 linelen = min(remaining, rowsize); in print_hex_dump()
255 remaining -= rowsize; in print_hex_dump()
Ddigsig.c110 unsigned int remaining = endp - datap; in digsig_verify_rsa() local
111 pkey[i] = mpi_read_from_buffer(datap, &remaining); in digsig_verify_rsa()
114 datap += remaining; in digsig_verify_rsa()
Ddynamic_debug.c501 static int remaining(int wrote) in remaining() function
517 pos += snprintf(buf + pos, remaining(pos), "<intr> "); in dynamic_emit_prefix()
519 pos += snprintf(buf + pos, remaining(pos), "[%d] ", in dynamic_emit_prefix()
524 pos += snprintf(buf + pos, remaining(pos), "%s:", in dynamic_emit_prefix()
527 pos += snprintf(buf + pos, remaining(pos), "%s:", in dynamic_emit_prefix()
530 pos += snprintf(buf + pos, remaining(pos), "%d:", in dynamic_emit_prefix()
533 pos += snprintf(buf + pos, remaining(pos), " "); in dynamic_emit_prefix()
Dbch.c1117 unsigned int sum, x, y, remaining, ak = 0, xi[m]; in build_deg2_base() local
1130 remaining = m; in build_deg2_base()
1133 for (x = 0; (x <= GF_N(bch)) && remaining; x++) { in build_deg2_base()
1140 remaining--; in build_deg2_base()
1148 return remaining ? -1 : 0; in build_deg2_base()
/linux-4.4.14/arch/metag/lib/
Dmemcpy.S37 ! the source to the destination until the remaining data has an 8 byte
43 SUB D1Ar3, D1Ar3, #1 ! decrement count of remaining bytes
74 ! If there are any remaining bytes use the byte copy loop, otherwise we are done
175 ! If there are no remaining bytes to copy, we are done.
179 ! address of the remaining bytes, and fall through to the byte copy loop.
Dmemset.S62 ! D1Ar3 should be the remaining total byte count
/linux-4.4.14/drivers/staging/media/mn88472/
Dmn88472.c282 int ret, len, remaining; in mn88472_init() local
327 for (remaining = fw->size; remaining > 0; in mn88472_init()
328 remaining -= (dev->i2c_wr_max - 1)) { in mn88472_init()
329 len = remaining; in mn88472_init()
334 &fw->data[fw->size - remaining], len); in mn88472_init()
/linux-4.4.14/drivers/staging/media/mn88473/
Dmn88473.c242 int ret, len, remaining; in mn88473_init() local
277 for (remaining = fw->size; remaining > 0; in mn88473_init()
278 remaining -= (dev->i2c_wr_max - 1)) { in mn88473_init()
279 len = remaining; in mn88473_init()
284 &fw->data[fw->size - remaining], len); in mn88473_init()
/linux-4.4.14/fs/nfsd/
Dnfsctl.c546 int len, num, remaining; in __write_versions() local
604 remaining = SIMPLE_TRANSACTION_LIMIT; in __write_versions()
607 len = snprintf(buf, remaining, "%s%c%d", sep, in __write_versions()
612 if (len >= remaining) in __write_versions()
614 remaining -= len; in __write_versions()
621 len = snprintf(buf, remaining, " %c4.%u", in __write_versions()
627 if (len >= remaining) in __write_versions()
629 remaining -= len; in __write_versions()
634 len = snprintf(buf, remaining, "\n"); in __write_versions()
635 if (len >= remaining) in __write_versions()
/linux-4.4.14/fs/cifs/
Dtransport.c141 unsigned int remaining; in smb_send_kvec() local
156 remaining = 0; in smb_send_kvec()
158 remaining += iov[i].iov_len; in smb_send_kvec()
161 while (remaining) { in smb_send_kvec()
181 n_vec - first_vec, remaining); in smb_send_kvec()
200 if (rc == remaining) { in smb_send_kvec()
201 remaining = 0; in smb_send_kvec()
205 if (rc > remaining) { in smb_send_kvec()
206 cifs_dbg(VFS, "sent %d requested %d\n", rc, remaining); in smb_send_kvec()
218 remaining -= rc; in smb_send_kvec()
Dsmb1ops.c247 int remaining; in check2ndT2() local
273 remaining = total_data_size - data_in_this_rsp; in check2ndT2()
276 remaining); in check2ndT2()
282 return remaining; in check2ndT2()
292 int remaining; in coalesce_t2() local
305 remaining = tgt_total_cnt - total_in_tgt; in coalesce_t2()
307 if (remaining < 0) { in coalesce_t2()
313 if (remaining == 0) { in coalesce_t2()
320 if (remaining < total_in_src) in coalesce_t2()
365 if (remaining != total_in_src) { in coalesce_t2()
Dsmb2pdu.c1113 unsigned int remaining; in parse_lease_state() local
1117 remaining = le32_to_cpu(rsp->CreateContextsLength); in parse_lease_state()
1119 while (remaining >= sizeof(struct create_context)) { in parse_lease_state()
1128 remaining -= next; in parse_lease_state()
/linux-4.4.14/drivers/mtd/devices/
Dmtd_dataflash.c308 size_t remaining = len; in dataflash_write() local
330 while (remaining > 0) { in dataflash_write()
415 remaining = 0; in dataflash_write()
423 remaining = remaining - writelen; in dataflash_write()
429 if (remaining > priv->page_size) in dataflash_write()
432 writelen = remaining; in dataflash_write()
Dst_spi_fsm.c755 uint32_t remaining = size >> 2; in stfsm_read_fifo() local
763 while (remaining) { in stfsm_read_fifo()
770 words = min(avail, remaining); in stfsm_read_fifo()
771 remaining -= words; in stfsm_read_fifo()
/linux-4.4.14/net/ipv4/
Dfib_semantics.c457 static int fib_count_nexthops(struct rtnexthop *rtnh, int remaining) in fib_count_nexthops() argument
461 while (rtnh_ok(rtnh, remaining)) { in fib_count_nexthops()
463 rtnh = rtnh_next(rtnh, &remaining); in fib_count_nexthops()
467 return remaining > 0 ? 0 : nhs; in fib_count_nexthops()
471 int remaining, struct fib_config *cfg) in fib_get_nhs() argument
479 if (!rtnh_ok(rtnh, remaining)) in fib_get_nhs()
522 rtnh = rtnh_next(rtnh, &remaining); in fib_get_nhs()
625 int remaining; in fib_nh_match() local
649 remaining = cfg->fc_mp_len; in fib_nh_match()
654 if (!rtnh_ok(rtnh, remaining)) in fib_nh_match()
[all …]
Dtcp_output.c550 unsigned int remaining = MAX_TCP_OPTION_SPACE; in tcp_syn_options() local
557 remaining -= TCPOLEN_MD5SIG_ALIGNED; in tcp_syn_options()
573 remaining -= TCPOLEN_MSS_ALIGNED; in tcp_syn_options()
579 remaining -= TCPOLEN_TSTAMP_ALIGNED; in tcp_syn_options()
584 remaining -= TCPOLEN_WSCALE_ALIGNED; in tcp_syn_options()
589 remaining -= TCPOLEN_SACKPERM_ALIGNED; in tcp_syn_options()
598 if (remaining >= need) { in tcp_syn_options()
601 remaining -= need; in tcp_syn_options()
607 return MAX_TCP_OPTION_SPACE - remaining; in tcp_syn_options()
618 unsigned int remaining = MAX_TCP_OPTION_SPACE; in tcp_synack_options() local
[all …]
Dinet_hashtables.c516 int i, remaining, low, high, port; in __inet_hash_connect() local
522 remaining = (high - low) + 1; in __inet_hash_connect()
531 for (i = 0; i < remaining; i++) { in __inet_hash_connect()
532 port = low + (i + offset) % remaining; in __inet_hash_connect()
Dinet_connection_sock.c106 int remaining, rover, low, high; in inet_csk_get_port() local
118 remaining = (high - low) + 1; in inet_csk_get_port()
119 smallest_rover = rover = prandom_u32() % remaining + low; in inet_csk_get_port()
152 } while (--remaining > 0); in inet_csk_get_port()
161 if (remaining <= 0) { in inet_csk_get_port()
Dtcp_ipv4.c368 __u32 remaining; in tcp_v4_err() local
473 remaining = icsk->icsk_rto - in tcp_v4_err()
477 if (remaining) { in tcp_v4_err()
479 remaining, TCP_RTO_MAX); in tcp_v4_err()
Dfib_frontend.c636 int err, remaining; in rtm_to_fib_config() local
664 nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), remaining) { in rtm_to_fib_config()
Dudp.c219 int low, high, remaining; in udp_lib_get_port() local
225 remaining = (high - low) + 1; in udp_lib_get_port()
228 first = reciprocal_scale(rand, remaining) + low; in udp_lib_get_port()
/linux-4.4.14/drivers/s390/char/
Dvmlogrdr.c73 int remaining; member
470 priv->remaining = user_data_count; in vmlogrdr_receive_data()
493 if (count > priv->remaining) in vmlogrdr_read()
494 count = priv->remaining; in vmlogrdr_read()
501 priv->remaining -= count; in vmlogrdr_read()
504 if (priv->remaining == 0) in vmlogrdr_read()
Dsclp.c751 u16 remaining; in sclp_remove_processed() local
755 remaining = sccb->length - sizeof(struct sccb_header); in sclp_remove_processed()
756 while (remaining > 0) { in sclp_remove_processed()
757 remaining -= evbuf->length; in sclp_remove_processed()
761 remaining); in sclp_remove_processed()
/linux-4.4.14/crypto/
Dvmac.c414 int i, remaining; in vhash() local
421 remaining = mbytes % VMAC_NHBYTES; in vhash()
432 } else if (remaining) { in vhash()
433 nh_16(mptr, kptr, 2*((remaining+15)/16), ch, cl); in vhash()
449 if (remaining) { in vhash()
450 nh_16(mptr, kptr, 2*((remaining+15)/16), rh, rl); in vhash()
457 remaining *= 8; in vhash()
458 return l3hash(ch, cl, ctx->l3key[0], ctx->l3key[1], remaining); in vhash()
/linux-4.4.14/arch/x86/crypto/
Dcrc32c-pcl-intel-asm_64.S282 jz do_return # Return if remaining length is zero
292 jz do_return # return if remaining data is zero
299 jz do_return # return if remaining data is zero
/linux-4.4.14/fs/
Dtimerfd.c151 ktime_t remaining; in timerfd_get_remaining() local
154 remaining = alarm_expires_remaining(&ctx->t.alarm); in timerfd_get_remaining()
156 remaining = hrtimer_expires_remaining_adjusted(&ctx->t.tmr); in timerfd_get_remaining()
158 return remaining.tv64 < 0 ? ktime_set(0, 0): remaining; in timerfd_get_remaining()
Ddirect-io.c294 unsigned long remaining; in dio_bio_end_aio() local
301 remaining = --dio->refcount; in dio_bio_end_aio()
302 if (remaining == 1 && dio->waiter) in dio_bio_end_aio()
306 if (remaining == 0) { in dio_bio_end_aio()
Dseq_file.c767 int i, linelen, remaining = len; in seq_hex_dump() local
776 linelen = min(remaining, rowsize); in seq_hex_dump()
777 remaining -= rowsize; in seq_hex_dump()
Dbinfmt_elf.c1514 unsigned count, size, names_ofs, remaining, n; in fill_files_note() local
1534 remaining = size - names_ofs; in fill_files_note()
1543 filename = file_path(file, name_curpos, remaining); in fill_files_note()
1555 n = (name_curpos + remaining) - filename; in fill_files_note()
1556 remaining = filename - name_curpos; in fill_files_note()
/linux-4.4.14/drivers/dma/
DTODO3 1. Move remaining drivers to use new slave interface
/linux-4.4.14/drivers/spi/
Dspi-dln2.c553 u16 remaining = data_len; in dln2_spi_rdwr() local
557 if (remaining > DLN2_SPI_MAX_XFER_SIZE) { in dln2_spi_rdwr()
561 len = remaining; in dln2_spi_rdwr()
565 offset = data_len - remaining; in dln2_spi_rdwr()
587 remaining -= len; in dln2_spi_rdwr()
588 } while (remaining); in dln2_spi_rdwr()
/linux-4.4.14/arch/um/drivers/
Dcow_user.c148 int remaining; in absolutize() local
170 remaining = size - strlen(to); in absolutize()
171 if (strlen(slash) + 1 > remaining) { in absolutize()
/linux-4.4.14/drivers/gpu/drm/omapdrm/
DKconfig25 The remaining overlays are reserved for video.
/linux-4.4.14/arch/mips/boot/
Delf2ecoff.c69 int remaining, cur, count; in copy() local
77 remaining = size; in copy()
78 while (remaining) { in copy()
79 cur = remaining; in copy()
82 remaining -= cur; in copy()
/linux-4.4.14/drivers/staging/lustre/
DTODO1 * Possible remaining coding style fix.
/linux-4.4.14/drivers/nvdimm/
Dbtt.c620 size_t remaining = btt->rawsize; in discover_arenas() local
629 while (remaining) { in discover_arenas()
643 if (remaining == btt->rawsize) { in discover_arenas()
672 remaining -= arena->size; in discover_arenas()
697 size_t remaining = btt->rawsize; in create_arenas() local
700 while (remaining) { in create_arenas()
702 size_t arena_size = min_t(u64, ARENA_MAX_SIZE, remaining); in create_arenas()
704 remaining -= arena_size; in create_arenas()
714 if (remaining >= ARENA_MIN_SIZE) in create_arenas()
/linux-4.4.14/arch/arc/lib/
Dmemcpy-archs.S86 and.f lp_count, r2, ZOLAND ;Last remaining 31 bytes
136 ;; Write back the remaining 16bits
139 ;; Write back the remaining 8bits
/linux-4.4.14/drivers/misc/
Dlkdtm.c306 static int recursive_loop(int remaining) in recursive_loop() argument
311 memset(buf, (remaining & 0xff) | 0x1, REC_STACK_SIZE); in recursive_loop()
312 if (!remaining) in recursive_loop()
315 return recursive_loop(remaining - 1); in recursive_loop()
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-ioctl.c678 int consumed, remaining; in _cx18_process_idx_data() local
693 remaining = buf->bytesused - buf->readpos; in _cx18_process_idx_data()
698 while (remaining >= sizeof(struct cx18_enc_idx_entry) && in _cx18_process_idx_data()
718 remaining -= sizeof(struct cx18_enc_idx_entry); in _cx18_process_idx_data()
723 if (remaining > 0 && remaining < sizeof(struct cx18_enc_idx_entry)) in _cx18_process_idx_data()
724 consumed += remaining; in _cx18_process_idx_data()
/linux-4.4.14/Documentation/scheduler/
Dsched-deadline.txt74 a "remaining runtime". These two parameters are initially set to 0;
79 remaining runtime runtime
85 remaining runtime are re-initialized as
88 remaining runtime = runtime
90 otherwise, the scheduling deadline and the remaining runtime are
94 remaining runtime is decreased as
96 remaining runtime = remaining runtime - t
101 - When the remaining runtime becomes less or equal than 0, the task is
108 throttled task, the scheduling deadline and the remaining runtime are
112 remaining runtime = remaining runtime + runtime
[all …]
Dcompletion.txt168 (in jiffies). If timeout occurs it returns 0 else the remaining time in
179 otherwise it returns 0 if the completion timed out or the remaining time in
Dsched-bwc.txt90 In case b) above, even though the child may have runtime remaining it will not
Dsched-rt-group.txt72 The remaining CPU time will be used for user input and other tasks. Because
/linux-4.4.14/arch/openrisc/
DTODO.openrisc2 since 2.6.35. There are, however, remaining items to be completed within
/linux-4.4.14/Documentation/devicetree/bindings/timer/
Dnvidia,tegra30-timer.txt14 through 5, and one for the shared interrupt for the remaining channels.
/linux-4.4.14/Documentation/devicetree/bindings/powerpc/fsl/
Dlbc.txt6 chipselect number, and the remaining cells are the
/linux-4.4.14/drivers/net/ethernet/cadence/
DKconfig16 the remaining Atmel network card questions. If you say Y, you will be
/linux-4.4.14/drivers/crypto/marvell/
Dcipher.c232 int remaining; in mv_cesa_aes_setkey() local
243 remaining = (ctx->aes.key_length - 16) / 4; in mv_cesa_aes_setkey()
244 offset = ctx->aes.key_length + 24 - remaining; in mv_cesa_aes_setkey()
245 for (i = 0; i < remaining; i++) in mv_cesa_aes_setkey()
/linux-4.4.14/drivers/staging/slicoss/
DTODO4 - any remaining sparse and checkpatch.pl warnings
/linux-4.4.14/net/dccp/
Doutput.c223 long remaining; in dccp_wait_for_ccid() local
229 remaining = schedule_timeout(delay); in dccp_wait_for_ccid()
237 return remaining; in dccp_wait_for_ccid()
/linux-4.4.14/net/mpls/
Daf_mpls.c633 int remaining = len; in mpls_count_nexthops() local
642 while (rtnh_ok(rtnh, remaining)) { in mpls_count_nexthops()
659 rtnh = rtnh_next(rtnh, &remaining); in mpls_count_nexthops()
663 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops()
671 int remaining = cfg->rc_mp_len; in mpls_nh_build_multi() local
682 if (!rtnh_ok(rtnh, remaining)) in mpls_nh_build_multi()
705 rtnh = rtnh_next(rtnh, &remaining); in mpls_nh_build_multi()
/linux-4.4.14/Documentation/devicetree/bindings/net/
Dhisilicon-hns-nic.txt13 The remaining 6 PHYs are taken according to the mode of DSAF.
/linux-4.4.14/Documentation/devicetree/bindings/clock/
Dste-u300-syscon-clock.txt11 2 = rest/remaining clock
/linux-4.4.14/kernel/time/
Dposix-timers.c738 ktime_t now, remaining, iv; in common_timer_get() local
763 remaining = __hrtimer_expires_remaining_adjusted(timer, now); in common_timer_get()
765 if (remaining.tv64 <= 0) { in common_timer_get()
773 cur_setting->it_value = ktime_to_timespec(remaining); in common_timer_get()
/linux-4.4.14/Documentation/devicetree/bindings/clock/st/
Dst,quadfs.txt34 for the remaining outputs.
Dst,clkgen-vcc.txt31 for the remaining outputs.
/linux-4.4.14/drivers/message/fusion/
Dmptlan.c976 u32 remaining = le32_to_cpu(pRecvRep->BucketsRemaining); in mpt_lan_receive_post_reply() local
1115 if (remaining == 0) in mpt_lan_receive_post_reply()
1120 else if (remaining < 10) in mpt_lan_receive_post_reply()
1124 remaining, atomic_read(&priv->buckets_out)); in mpt_lan_receive_post_reply()
1126 if ((remaining < priv->bucketthresh) && in mpt_lan_receive_post_reply()
1127 ((atomic_read(&priv->buckets_out) - remaining) > in mpt_lan_receive_post_reply()
/linux-4.4.14/arch/powerpc/lib/
Ddiv64.S52 divwu r0,r6,r4 # perform the remaining 32-bit division
/linux-4.4.14/drivers/mmc/host/
Datmel-mci.c1882 unsigned int remaining = sg->length - offset; in atmci_read_data_pio() local
1883 memcpy(buf + offset, &value, remaining); in atmci_read_data_pio()
1884 nbytes += remaining; in atmci_read_data_pio()
1892 offset = 4 - remaining; in atmci_read_data_pio()
1894 memcpy(buf, (u8 *)&value + remaining, offset); in atmci_read_data_pio()
1948 unsigned int remaining = sg->length - offset; in atmci_write_data_pio() local
1951 memcpy(&value, buf + offset, remaining); in atmci_write_data_pio()
1952 nbytes += remaining; in atmci_write_data_pio()
1961 offset = 4 - remaining; in atmci_write_data_pio()
1963 memcpy((u8 *)&value + remaining, buf, offset); in atmci_write_data_pio()
/linux-4.4.14/Documentation/usb/
Ddwc3.txt39 handles the remaining EP work which might sleep such as waiting
Derror-codes.txt132 endpoint or the remaining buffer size. "Babble".
/linux-4.4.14/arch/mn10300/lib/
Dmemset.S79 # copy the remaining 1, 2 or 3 words
Dmemcpy.S89 # copy the remaining 1, 2 or 3 words
Ddo_csum.S106 # copy the remaining whole words
Dmemmove.S109 # copy the remaining 1, 2 or 3 words
/linux-4.4.14/drivers/net/wireless/prism54/
Dislpci_dev.c490 long remaining; in islpci_reset_if() local
505 remaining = schedule_timeout_uninterruptible(HZ); in islpci_reset_if()
507 if(remaining > 0) { in islpci_reset_if()
/linux-4.4.14/drivers/net/ethernet/adi/
DKconfig15 the remaining Blackfin card questions. If you say Y, you will be
/linux-4.4.14/drivers/staging/lustre/lustre/include/
Dlustre_lib.h561 long remaining = schedule_timeout(interval);\
563 cfs_time_sub(interval, remaining));\
/linux-4.4.14/drivers/tty/hvc/
Dhvsi.c183 int remaining = (int)(hp->inbuf_end - read_to); in compact_inbuf() local
185 pr_debug("%s: %i chars remain\n", __func__, remaining); in compact_inbuf()
188 memmove(hp->inbuf, read_to, remaining); in compact_inbuf()
190 hp->inbuf_end = hp->inbuf + remaining; in compact_inbuf()
/linux-4.4.14/Documentation/devicetree/bindings/memory-controllers/fsl/
Difc.txt10 chipselect number, and the remaining cells are the
/linux-4.4.14/arch/x86/kvm/
Di8254.c110 ktime_t remaining; in __kpit_elapsed() local
125 remaining = hrtimer_get_remaining(&ps->timer); in __kpit_elapsed()
126 elapsed = ps->period - ktime_to_ns(remaining); in __kpit_elapsed()
Dlapic.c1030 ktime_t remaining; in apic_get_tmcct() local
1041 remaining = hrtimer_get_remaining(&apic->lapic_timer.timer); in apic_get_tmcct()
1042 if (ktime_to_ns(remaining) < 0) in apic_get_tmcct()
1043 remaining = ktime_set(0, 0); in apic_get_tmcct()
1045 ns = mod_64(ktime_to_ns(remaining), apic->lapic_timer.period); in apic_get_tmcct()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dsta.c1667 int remaining = cnt; in iwl_mvm_sta_modify_sleep_tx_count() local
1685 if (n_queued > remaining) { in iwl_mvm_sta_modify_sleep_tx_count()
1687 remaining = 0; in iwl_mvm_sta_modify_sleep_tx_count()
1690 remaining -= n_queued; in iwl_mvm_sta_modify_sleep_tx_count()
1694 cmd.sleep_tx_count = cpu_to_le16(cnt - remaining); in iwl_mvm_sta_modify_sleep_tx_count()
1695 if (WARN_ON(cnt - remaining == 0)) { in iwl_mvm_sta_modify_sleep_tx_count()
/linux-4.4.14/drivers/nvme/host/
Dscsi.c238 size_t remaining = n; in nvme_trans_copy_to_user() local
249 xfer_len = min(remaining, sgl.iov_len); in nvme_trans_copy_to_user()
254 remaining -= xfer_len; in nvme_trans_copy_to_user()
255 if (remaining == 0) in nvme_trans_copy_to_user()
273 size_t remaining = n; in nvme_trans_copy_from_user() local
284 xfer_len = min(remaining, sgl.iov_len); in nvme_trans_copy_from_user()
288 remaining -= xfer_len; in nvme_trans_copy_from_user()
289 if (remaining == 0) in nvme_trans_copy_from_user()
/linux-4.4.14/drivers/block/
Dfloppy.c2405 int remaining; /* number of transferred 512-byte sectors */ in copy_buffer() local
2421 remaining = current_count_sectors << 9; in copy_buffer()
2422 if (remaining > blk_rq_bytes(current_req) && CT(COMMAND) == FD_WRITE) { in copy_buffer()
2425 pr_info("remaining=%d\n", remaining >> 9); in copy_buffer()
2441 if (!remaining) in copy_buffer()
2445 SUPBOUND(size, remaining); in copy_buffer()
2471 remaining -= size; in copy_buffer()
2474 if (remaining) { in copy_buffer()
2475 if (remaining > 0) in copy_buffer()
2476 max_sector -= remaining >> 9; in copy_buffer()
[all …]
/linux-4.4.14/drivers/hwtracing/intel_th/
Dmsu.c395 size_t remaining = 0; in msc_buffer_iterate() local
427 remaining = fn(data, src, tocopy); in msc_buffer_iterate()
429 if (remaining) in msc_buffer_iterate()
432 copied = tocopy - remaining; in msc_buffer_iterate()
/linux-4.4.14/Documentation/ABI/stable/
Dsysfs-firmware-opal-elog20 the only remaining copy of a log message may be in
Dsysfs-driver-ib_srp45 in an SRP_CMD the remaining memory descriptors are
/linux-4.4.14/net/sunrpc/
Dsvcsock.c280 static int svc_one_sock_name(struct svc_sock *svsk, char *buf, int remaining) in svc_one_sock_name() argument
289 len = snprintf(buf, remaining, "ipv4 %s %pI4 %d\n", in svc_one_sock_name()
296 len = snprintf(buf, remaining, "ipv6 %s %pI6 %d\n", in svc_one_sock_name()
303 len = snprintf(buf, remaining, "*unknown-%d*\n", in svc_one_sock_name()
307 if (len >= remaining) { in svc_one_sock_name()
Dsvc_xprt.c1239 char *pos, int remaining) in svc_one_xprt_name() argument
1243 len = snprintf(pos, remaining, "%s %u\n", in svc_one_xprt_name()
1246 if (len >= remaining) in svc_one_xprt_name()
/linux-4.4.14/drivers/usb/host/
Dmax3421-hcd.c852 size_t remaining, transfer_size; in max3421_recv_data_available() local
860 remaining = 0; in max3421_recv_data_available()
862 remaining = urb->transfer_buffer_length - urb->actual_length; in max3421_recv_data_available()
864 if (transfer_size > remaining) in max3421_recv_data_available()
865 transfer_size = remaining; in max3421_recv_data_available()
/linux-4.4.14/Documentation/locking/
Dlglock.txt77 being initializeable in kernel modules (the remaining problem is that
146 currently prevent using RCU in place of view remaining lglocks.
/linux-4.4.14/Documentation/w1/slaves/
Dw1_ds242333 - 31 remaining bytes from the ram page
/linux-4.4.14/Documentation/devicetree/bindings/interrupt-controller/
Dimg,pdc-intc.txt27 shared SysWake interrupt, and remaining specifies shall be PDC peripheral
/linux-4.4.14/mm/
Dvmscan.c3038 static bool prepare_kswapd_sleep(pg_data_t *pgdat, int order, long remaining, in prepare_kswapd_sleep() argument
3042 if (remaining) in prepare_kswapd_sleep()
3346 long remaining = 0; in kswapd_try_to_sleep() local
3355 if (prepare_kswapd_sleep(pgdat, order, remaining, classzone_idx)) { in kswapd_try_to_sleep()
3356 remaining = schedule_timeout(HZ/10); in kswapd_try_to_sleep()
3365 if (prepare_kswapd_sleep(pgdat, order, remaining, classzone_idx)) { in kswapd_try_to_sleep()
3391 if (remaining) in kswapd_try_to_sleep()
/linux-4.4.14/drivers/net/ethernet/3com/
Dtyphoon.c1275 u32 remaining; in typhoon_request_firmware() local
1289 remaining = typhoon_fw->size; in typhoon_request_firmware()
1290 if (remaining < sizeof(struct typhoon_file_header)) in typhoon_request_firmware()
1299 remaining -= sizeof(struct typhoon_file_header); in typhoon_request_firmware()
1302 if (remaining < sizeof(struct typhoon_section_header)) in typhoon_request_firmware()
1309 if (remaining < section_len) in typhoon_request_firmware()
1313 remaining -= section_len; in typhoon_request_firmware()
/linux-4.4.14/Documentation/devicetree/bindings/crypto/
Dfsl-sec2.txt31 remaining bits are reserved for future SEC EUs.
/linux-4.4.14/arch/powerpc/boot/
Ddiv64.S52 divwu r0,r6,r4 # perform the remaining 32-bit division
/linux-4.4.14/drivers/media/platform/coda/
Dcoda.h166 int remaining; member
Dcoda-bit.c531 if (size > iram->remaining) in coda_iram_alloc()
533 iram->remaining -= size; in coda_iram_alloc()
553 iram_info->remaining = dev->iram.size; in coda_setup_iram()
/linux-4.4.14/arch/frv/kernel/
Dhead-uc-fr451.S67 # need to tile the remaining IAMPR/DAMPR registers to cover as much of the RAM as possible
Dhead-uc-fr401.S252 # need to tile the remaining IAMPR/DAMPR registers to cover as much of the RAM as possible
Dhead-uc-fr555.S240 # need to tile the remaining IAMPR/DAMPR registers to cover as much of the RAM as possible
/linux-4.4.14/tools/perf/Documentation/
Dperf-script-perl.txt103 All of the remaining fields in the event's format file have
163 The remaining sections provide descriptions of each of the available
/linux-4.4.14/Documentation/
Dpadata.txt153 The one remaining function in the padata API should be called to clean up
158 This function will busy-wait while any remaining tasks are completed, so it
Dcircular-buffers.txt68 Calculation of the occupancy or the remaining capacity of an arbitrarily sized
80 (*) Measure the remaining capacity of a buffer:
Dkmemleak.txt87 1. mark all objects as white (remaining white objects will later be
96 4. the remaining white objects are considered orphan and reported via
Dfutex-requeue-pi.txt116 woken. futex_requeue() then proceeds to requeue the remaining
Dpi-futex.txt91 remaining work: if there is no futex-queue attached to the futex address
/linux-4.4.14/net/wireless/
Dutil.c657 int remaining, err; in ieee80211_amsdu_to_8023s() local
678 remaining = skb->len; in ieee80211_amsdu_to_8023s()
684 if (subframe_len > remaining) in ieee80211_amsdu_to_8023s()
689 if (remaining <= subframe_len + padding) in ieee80211_amsdu_to_8023s()
/linux-4.4.14/drivers/usb/gadget/udc/bdc/
Dbdc_ep.c202 int remaining; in bd_needed_req() local
209 remaining = req->usb_req.length % BD_MAX_BUFF_SIZE; in bd_needed_req()
210 if (remaining) in bd_needed_req()
214 remaining = req->usb_req.length / BD_MAX_BUFF_SIZE; in bd_needed_req()
215 bd_needed += remaining; in bd_needed_req()
/linux-4.4.14/arch/xtensa/lib/
Dstrnlen_user.S91 EX(l32i, a9, a4, 4, lenfixup) # load 4 bytes for remaining checks
/linux-4.4.14/Documentation/devicetree/bindings/input/touchscreen/
Dti-tsc-adc.txt17 remaining 4 can be used by the ADC.
/linux-4.4.14/net/ipv6/
Droute.c1701 int remaining; in ip6_convert_metrics() local
1711 nla_for_each_attr(nla, cfg->fc_mx, cfg->fc_mx_len, remaining) { in ip6_convert_metrics()
2866 int remaining; in ip6_route_multipath_add() local
2874 remaining = cfg->fc_mp_len; in ip6_route_multipath_add()
2880 while (rtnh_ok(rtnh, remaining)) { in ip6_route_multipath_add()
2913 rtnh = rtnh_next(rtnh, &remaining); in ip6_route_multipath_add()
2966 int remaining; in ip6_route_multipath_del() local
2970 remaining = cfg->fc_mp_len; in ip6_route_multipath_del()
2974 while (rtnh_ok(rtnh, remaining)) { in ip6_route_multipath_del()
2993 rtnh = rtnh_next(rtnh, &remaining); in ip6_route_multipath_del()
/linux-4.4.14/Documentation/filesystems/
Dudf.txt54 The remaining are for debugging and disaster recovery:
Domfs.txt46 same 64-bit block number, any remaining space in the smaller sysblock is
Dlogfs.txt158 remaining valid data is copied elsewhere, thereby invalidating it.
224 complain about remaining inodes due to the inode file either. Same
/linux-4.4.14/arch/m32r/kernel/
Dhead.S94 and3 r4, r3, #3 ; get no. of remaining BSS bytes to clear
/linux-4.4.14/Documentation/ABI/
DREADME35 This directory documents interfaces that are still remaining in
/linux-4.4.14/Documentation/security/
DIMA-templates.txt21 management from the remaining IMA code. The core of this solution is the
/linux-4.4.14/Documentation/acpi/
Dvideo_extension.txt57 not used by Linux currently. The remaining 10 levels are supported levels
/linux-4.4.14/Documentation/devicetree/bindings/pinctrl/
Dbrcm,bcm11351-pinctrl.txt162 the "pins" property. Thus, the remaining properties in the "grp_1" node applies
174 "i2c_pin1" and "i2c_pin2"; the remaining properties in this pin group node,
Dimg,tz1090-pinctrl.txt74 particular function and leave the remaining pins unmuxed. This is useful if
/linux-4.4.14/Documentation/arm/pxa/
Dmfp.txt17 the MFP logic and the remaining SoC peripherals:
55 the remaining functions are pure GPIO-specific, i.e.
/linux-4.4.14/drivers/usb/core/
Dhub.c1553 int remaining = hdev->bus_mA - in hub_configure() local
1560 if (remaining < maxchild * unit_load) in hub_configure()
4618 int remaining; in hub_power_remaining() local
4624 remaining = hdev->bus_mA - hub->descriptor->bHubContrCurrent; in hub_power_remaining()
4651 remaining -= delta; in hub_power_remaining()
4653 if (remaining < 0) { in hub_power_remaining()
4655 -remaining); in hub_power_remaining()
4656 remaining = 0; in hub_power_remaining()
4658 return remaining; in hub_power_remaining()
/linux-4.4.14/Documentation/hwmon/
Dadm102663 for SCSI terminator power. The remaining inputs are not scaled and have
/linux-4.4.14/arch/powerpc/platforms/powernv/
Dpci-ioda.c2388 unsigned int residual, remaining, segs, tw, base; in pnv_ioda_setup_dma() local
2413 remaining = phb->ioda.tce32_count; in pnv_ioda_setup_dma()
2419 if (!remaining) { in pnv_ioda_setup_dma()
2426 if (segs > remaining) in pnv_ioda_setup_dma()
2427 segs = remaining; in pnv_ioda_setup_dma()
2445 remaining -= segs; in pnv_ioda_setup_dma()
/linux-4.4.14/Documentation/scsi/
Dhpsa.txt77 remaining on the controller from the previous kernel. This attribute enables
Dst.txt89 as a synchronization point, i.e., all remaining data form the drive buffers is
124 remaining bits define the tape device number. This numbering is
283 3. The remaining segments between ST_MAX_SG (or the module parameter
/linux-4.4.14/Documentation/s390/
DCommonIO62 - echo free all > /proc/cio_ignore will un-ignore all remaining ignored
/linux-4.4.14/fs/xfs/
Dxfs_bmap_util.c757 xfs_fileoff_t remaining = length; in xfs_bmap_punch_delalloc_range() local
812 remaining--; in xfs_bmap_punch_delalloc_range()
813 } while(remaining > 0); in xfs_bmap_punch_delalloc_range()
/linux-4.4.14/kernel/sched/
Dfair.c3657 u64 remaining, u64 expires) in distribute_cfs_runtime() argument
3661 u64 starting_runtime = remaining; in distribute_cfs_runtime()
3673 if (runtime > remaining) in distribute_cfs_runtime()
3674 runtime = remaining; in distribute_cfs_runtime()
3675 remaining -= runtime; in distribute_cfs_runtime()
3687 if (!remaining) in distribute_cfs_runtime()
3692 return starting_runtime - remaining; in distribute_cfs_runtime()
3784 u64 remaining; in runtime_refresh_within() local
3791 remaining = ktime_to_ns(hrtimer_expires_remaining(refresh_timer)); in runtime_refresh_within()
3792 if (remaining < min_expire) in runtime_refresh_within()
/linux-4.4.14/Documentation/power/
Dstates.txt12 the meaning of the remaining ones depends on the relative_sleep_states command
Dpower_supply_class.txt210 approximating remaining battery capacity based on its charge, current,
/linux-4.4.14/Documentation/arm/
Dtcm.txt70 - Have the remaining TCM RAM added to a special
DBooting129 overwrite it, whilst remaining within the region which will be covered
/linux-4.4.14/Documentation/input/
Dyealink.txt139 - If less characters are written than allowed, the remaining digits are
/linux-4.4.14/arch/unicore32/kernel/
Dentry.S175 @ We are now ready to fill in the remaining blanks on the stack:
204 @ We are now ready to fill in the remaining blanks on the stack:
/linux-4.4.14/drivers/usb/gadget/udc/
Datmel_usba_udc.c88 size_t len, remaining, actual = 0; in queue_dbg_read() local
113 remaining = __copy_to_user(buf, tmpbuf, len); in queue_dbg_read()
114 actual += len - remaining; in queue_dbg_read()
115 if (remaining) in queue_dbg_read()
Damd5536udc.c705 unsigned remaining = 0; in udc_txfifo_write() local
712 remaining = req->length - req->actual; in udc_txfifo_write()
717 if (bytes > remaining) in udc_txfifo_write()
718 bytes = remaining; in udc_txfifo_write()
/linux-4.4.14/Documentation/frv/
Dbooting.txt128 The remaining components are all optional:
/linux-4.4.14/arch/arc/mm/
Dtlbex.S55 ; Since the Fast Path TLB Miss handler is coded with 4 regs, the remaining 3
/linux-4.4.14/drivers/atm/
Dnicstar.c2214 int remaining, tocopy; in dequeue_rx() local
2283 remaining = len - iov->iov_len; in dequeue_rx()
2292 min_t(int, remaining, iov->iov_len); in dequeue_rx()
2298 remaining -= tocopy; in dequeue_rx()
2302 if (remaining != 0 || hb->len != len) in dequeue_rx()
/linux-4.4.14/arch/sparc/lib/
Dchecksum_32.S43 andcc %o1, 4, %g0 ! nope, check for word remaining
49 andcc %o1, 4, %g0 ! check again for word remaining
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
Dbe_main.c2035 u16 hdr_len, curr_frag_len, remaining; in skb_fill_rx_data() local
2073 remaining = rxcp->pkt_size - curr_frag_len; in skb_fill_rx_data()
2076 curr_frag_len = min(remaining, rx_frag_size); in skb_fill_rx_data()
2095 remaining -= curr_frag_len; in skb_fill_rx_data()
2145 u16 remaining, curr_frag_len; in be_rx_compl_process_gro() local
2154 remaining = rxcp->pkt_size; in be_rx_compl_process_gro()
2158 curr_frag_len = min(remaining, rx_frag_size); in be_rx_compl_process_gro()
2173 remaining -= curr_frag_len; in be_rx_compl_process_gro()
/linux-4.4.14/fs/cramfs/
DREADME111 The remaining options try to make cramfs more sharable.
/linux-4.4.14/Documentation/vm/
Duserfaultfd.txt126 remaining missing pages from that new page offset. Soon after that
Dpage_migration127 13. The remaining page flags are copied to the new page.
/linux-4.4.14/Documentation/devicetree/bindings/pci/
Dnvidia,tegra20-pcie.txt37 - The remaining entries setup the mapping for the standard I/O, memory and
/linux-4.4.14/Documentation/laptops/
Ddisk-shock-protection.txt58 of milliseconds remaining until normal operation will be resumed;
/linux-4.4.14/Documentation/rapidio/
Drapidio.txt142 completed a discovery process can be started on all remaining endpoints.
296 an agent skips RapidIO discovery and continues with remaining kernel
/linux-4.4.14/Documentation/powerpc/
Dpci_iov_resource_on_powernv.txt133 spaces or assign the remaining PE# to 32-bit only devices.
144 PEs" that are used for the remaining M64 segments.
/linux-4.4.14/tools/perf/ui/browsers/
Dhists.c1048 u16 remaining = h->nr_rows - h->row_offset; in ui_browser__hists_seek() local
1049 if (offset > remaining) { in ui_browser__hists_seek()
1050 offset -= remaining; in ui_browser__hists_seek()
/linux-4.4.14/Documentation/PCI/
Dpci.txt436 When the shared IRQ handler is "unhooked", the remaining devices
439 it was one of the remaining devices asserted the IRQ line. Since none
442 iterations later). Once the shared IRQ is masked, the remaining devices
/linux-4.4.14/Documentation/watchdog/
Dwatchdog-api.txt133 Some watchdog drivers have the ability to report the remaining time
/linux-4.4.14/Documentation/fmc/
Didentifiers.txt12 bytes. The standard allows the application to use all the remaining
/linux-4.4.14/net/tipc/
Dsocket.c2282 u32 remaining = (TIPC_MAX_PORT - TIPC_MIN_PORT) + 1; in tipc_sk_insert() local
2283 u32 portid = prandom_u32() % remaining + TIPC_MIN_PORT; in tipc_sk_insert()
2285 while (remaining--) { in tipc_sk_insert()
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dclient.c1438 int remaining, rc; in ptlrpc_set_producer() local
1442 remaining = atomic_read(&set->set_remaining); in ptlrpc_set_producer()
1458 return (atomic_read(&set->set_remaining) - remaining); in ptlrpc_set_producer()
/linux-4.4.14/drivers/regulator/
Dcore.c2042 unsigned long intended, max_delay, remaining; in _regulator_do_enable() local
2055 remaining = intended - start_jiffy; in _regulator_do_enable()
2056 if (remaining <= max_delay) in _regulator_do_enable()
2058 jiffies_to_usecs(remaining)); in _regulator_do_enable()
/linux-4.4.14/net/core/
Dpktgen.c2241 s64 remaining; in spin() local
2247 remaining = ktime_to_ns(hrtimer_expires_remaining(&t.timer)); in spin()
2248 if (remaining <= 0) { in spin()
2254 if (remaining < 100000) { in spin()
/linux-4.4.14/arch/arm/kernel/
Dentry-armv.S178 @ We are now ready to fill in the remaining blanks on the stack:

12