/Linux-v4.19/arch/um/kernel/skas/ |
D | uaccess.c | 93 long size, remain, n; in buffer_op() local 96 remain = len; in buffer_op() 100 remain = (n < 0 ? remain : 0); in buffer_op() 105 remain -= size; in buffer_op() 106 if (remain == 0) in buffer_op() 109 while (addr < ((addr + remain) & PAGE_MASK)) { in buffer_op() 112 remain = (n < 0 ? remain : 0); in buffer_op() 117 remain -= PAGE_SIZE; in buffer_op() 119 if (remain == 0) in buffer_op() 122 n = do_op_one_page(addr, remain, is_write, op, arg); in buffer_op() [all …]
|
/Linux-v4.19/arch/mips/netlogic/xlr/ |
D | setup.c | 104 int i, remain, len; in build_arcs_cmdline() local 107 remain = sizeof(arcs_cmdline) - 1; in build_arcs_cmdline() 112 if (len + 1 > remain) in build_arcs_cmdline() 116 remain -= len + 1; in build_arcs_cmdline() 123 if (len > remain) in build_arcs_cmdline() 126 remain -= len; in build_arcs_cmdline() 132 if (len > remain) in build_arcs_cmdline() 135 remain -= len; in build_arcs_cmdline()
|
/Linux-v4.19/drivers/staging/fbtft/ |
D | fbtft-bus.c | 125 size_t remain; in fbtft_write_vmem16_bus8() local 135 remain = len / 2; in fbtft_write_vmem16_bus8() 155 while (remain) { in fbtft_write_vmem16_bus8() 156 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus8() 158 to_copy, remain - to_copy); in fbtft_write_vmem16_bus8() 168 remain -= to_copy; in fbtft_write_vmem16_bus8() 180 size_t remain; in fbtft_write_vmem16_bus9() local 194 remain = len; in fbtft_write_vmem16_bus9() 199 while (remain) { in fbtft_write_vmem16_bus9() 200 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus9() [all …]
|
D | fb_ra8875.c | 248 size_t remain; in write_vmem16_bus8() local 258 remain = len / 2; in write_vmem16_bus8() 266 while (remain) { in write_vmem16_bus8() 267 to_copy = min(tx_array_size, remain); in write_vmem16_bus8() 269 to_copy, remain - to_copy); in write_vmem16_bus8() 279 remain -= to_copy; in write_vmem16_bus8()
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_print.c | 38 if (!iterator->remain) in __drm_puts_coredump() 53 if (copy > iterator->remain) in __drm_puts_coredump() 54 copy = iterator->remain; in __drm_puts_coredump() 61 iterator->remain -= copy; in __drm_puts_coredump() 65 len = min_t(ssize_t, strlen(str), iterator->remain); in __drm_puts_coredump() 70 iterator->remain -= len; in __drm_puts_coredump() 81 if (!iterator->remain) in __drm_printfn_coredump() 94 if ((iterator->offset >= iterator->start) && (len < iterator->remain)) { in __drm_printfn_coredump() 98 iterator->remain, "%pV", vaf); in __drm_printfn_coredump() 101 iterator->remain -= len; in __drm_printfn_coredump()
|
/Linux-v4.19/arch/um/drivers/ |
D | umcast_kern.c | 73 char *port_str = NULL, *ttl_str = NULL, *remain; in mcast_setup() local 81 remain = split_if_spec(str, mac_out, &init->addr, &port_str, &ttl_str, in mcast_setup() 83 if (remain != NULL) { in mcast_setup() 85 "specification : '%s'\n", remain); in mcast_setup() 119 char *lport_str = NULL, *rport_str = NULL, *remain; in ucast_setup() local 127 remain = split_if_spec(str, mac_out, &init->addr, in ucast_setup() 129 if (remain != NULL) { in ucast_setup() 131 "specification : '%s'\n", remain); in ucast_setup()
|
D | net_user.c | 52 int remain, ret, expected; in read_output() local 62 ret = read(fd, &remain, sizeof(remain)); in read_output() 64 if (ret != sizeof(remain)) { in read_output() 67 expected = sizeof(remain); in read_output() 72 while (remain != 0) { in read_output() 73 expected = (remain < len) ? remain : len; in read_output() 81 remain -= ret; in read_output()
|
D | pcap_kern.c | 56 char *remain, *host_if = NULL, *options[2] = { NULL, NULL }; in pcap_setup() local 65 remain = split_if_spec(str, &host_if, &init->filter, in pcap_setup() 67 if (remain != NULL) { in pcap_setup() 69 "specification : '%s'\n", remain); in pcap_setup()
|
D | vde_kern.c | 73 char *remain, *port_str = NULL, *mode_str = NULL, *last; in vde_setup() local 82 remain = split_if_spec(str, &init->vde_switch, mac_out, &port_str, in vde_setup() 85 if (remain != NULL) in vde_setup() 87 "'%s'\n", remain); in vde_setup()
|
D | daemon_kern.c | 64 char *remain; in daemon_setup() local 70 remain = split_if_spec(str, mac_out, &init->sock_type, &init->ctl_sock, in daemon_setup() 72 if (remain != NULL) in daemon_setup()
|
/Linux-v4.19/drivers/gpu/drm/qxl/ |
D | qxl_image.c | 136 int remain; in qxl_image_init_helper() local 140 remain = linesize * height; in qxl_image_init_helper() 144 while (remain > 0) { in qxl_image_init_helper() 155 size = min(size, remain); in qxl_image_init_helper() 161 remain -= size; in qxl_image_init_helper() 168 remain = linesize; in qxl_image_init_helper() 171 while (remain > 0) { in qxl_image_init_helper() 174 size = min((int)(PAGE_SIZE - page_offset), remain); in qxl_image_init_helper() 180 remain -= size; in qxl_image_init_helper()
|
/Linux-v4.19/drivers/media/usb/stk1160/ |
D | stk1160-video.c | 116 int remain; in stk1160_copy_video() local 132 remain = len; in stk1160_copy_video() 144 if (remain < (bytesperline - lineoff)) in stk1160_copy_video() 145 lencopy = remain; in stk1160_copy_video() 155 remain = lencopy; in stk1160_copy_video() 159 if (lencopy == 0 || remain == 0) in stk1160_copy_video() 178 remain -= lencopy; in stk1160_copy_video() 181 while (remain > 0) { in stk1160_copy_video() 187 if (remain < bytesperline) in stk1160_copy_video() 188 lencopy = remain; in stk1160_copy_video() [all …]
|
/Linux-v4.19/drivers/staging/rtl8188eu/hal/ |
D | fw.c | 48 u32 i, write_address, blk_cnt, remain; in _rtl88e_fw_block_write() local 51 remain = size % blk_sz; in _rtl88e_fw_block_write() 59 for (i = 0; i < remain; i++, write_address++) in _rtl88e_fw_block_write() 78 u32 page_no, remain; in _rtl88e_write_fw() local 82 remain = size % FW_8192C_PAGE_SIZE; in _rtl88e_write_fw() 90 if (remain) { in _rtl88e_write_fw() 93 _rtl88e_fw_page_write(adapt, page, (buf_ptr + offset), remain); in _rtl88e_write_fw()
|
/Linux-v4.19/drivers/acpi/apei/ |
D | bert.c | 42 int remain = region_len; in bert_print_all() local 48 while (remain > sizeof(struct acpi_bert_region)) { in bert_print_all() 55 if (remain < estatus_len) { in bert_print_all() 77 remain -= estatus_len; in bert_print_all()
|
/Linux-v4.19/drivers/mmc/host/ |
D | moxart-mmc.c | 164 int remain; in moxart_next_sg() local 172 remain = host->data_len - data->bytes_xfered; in moxart_next_sg() 173 if (remain > 0 && remain < host->data_remain) in moxart_next_sg() 174 host->data_remain = remain; in moxart_next_sg() 309 u32 *sgp, len = 0, remain, status; in moxart_transfer_pio() local 315 remain = host->data_remain; in moxart_transfer_pio() 318 while (remain > 0) { in moxart_transfer_pio() 325 for (len = 0; len < remain && len < host->fifo_width;) { in moxart_transfer_pio() 330 remain -= len; in moxart_transfer_pio() 334 while (remain > 0) { in moxart_transfer_pio() [all …]
|
D | mmci.c | 906 u32 remain, success; in mmci_data_irq() local 921 remain = readl(host->base + MMCIDATACNT); in mmci_data_irq() 922 success = data->blksz * data->blocks - remain; in mmci_data_irq() 1072 static int mmci_get_rx_fifocnt(struct mmci_host *host, u32 status, int remain) in mmci_get_rx_fifocnt() argument 1074 return remain - (readl(host->base + MMCIFIFOCNT) << 2); in mmci_get_rx_fifocnt() 1091 static int mmci_pio_read(struct mmci_host *host, char *buffer, unsigned int remain) in mmci_pio_read() argument 1101 if (count > remain) in mmci_pio_read() 1102 count = remain; in mmci_pio_read() 1127 remain -= count; in mmci_pio_read() 1130 if (remain == 0) in mmci_pio_read() [all …]
|
/Linux-v4.19/drivers/spi/ |
D | spi-sh.c | 165 int remain = t->len; in spi_sh_send() local 174 while (remain > 0) { in spi_sh_send() 175 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_send() 192 remain -= cur_len; in spi_sh_send() 195 if (remain > 0) { in spi_sh_send() 230 int remain = t->len; in spi_sh_receive() local 246 while (remain > 0) { in spi_sh_receive() 247 if (remain >= SPI_SH_FIFO_SIZE) { in spi_sh_receive() 260 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_receive() 267 remain -= cur_len; in spi_sh_receive()
|
/Linux-v4.19/lib/ |
D | genalloc.c | 295 int nbits, start_bit, end_bit, remain; in gen_pool_alloc_algo() local 317 remain = bitmap_set_ll(chunk->bits, start_bit, nbits); in gen_pool_alloc_algo() 318 if (remain) { in gen_pool_alloc_algo() 319 remain = bitmap_clear_ll(chunk->bits, start_bit, in gen_pool_alloc_algo() 320 nbits - remain); in gen_pool_alloc_algo() 321 BUG_ON(remain); in gen_pool_alloc_algo() 378 int start_bit, nbits, remain; in gen_pool_free() local 390 remain = bitmap_clear_ll(chunk->bits, start_bit, nbits); in gen_pool_free() 391 BUG_ON(remain); in gen_pool_free()
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | udbg.c | 106 int remain = n; in udbg_write() local 113 while (((c = *s++) != '\0') && (remain-- > 0)) { in udbg_write() 121 return n - remain; in udbg_write()
|
/Linux-v4.19/drivers/bluetooth/ |
D | btqca.c | 272 int ret, remain, i = 0; in qca_download_firmware() local 286 remain = fw->size; in qca_download_firmware() 287 while (remain > 0) { in qca_download_firmware() 288 int segsize = min(MAX_SIZE_PER_TLV_SEGMENT, remain); in qca_download_firmware() 292 remain -= segsize; in qca_download_firmware() 294 if (!remain || segsize < MAX_SIZE_PER_TLV_SEGMENT) in qca_download_firmware()
|
/Linux-v4.19/drivers/staging/gasket/ |
D | gasket_page_table.c | 649 uint slot_idx, remain, len; in gasket_unmap_extended_pages() local 653 remain = num_pages; in gasket_unmap_extended_pages() 658 while (remain > 0) { in gasket_unmap_extended_pages() 660 len = min(remain, GASKET_PAGES_PER_SUBTABLE - slot_idx); in gasket_unmap_extended_pages() 670 remain -= len; in gasket_unmap_extended_pages() 930 uint remain, subtable_slot_idx, len; in gasket_alloc_extended_entries() local 934 remain = num_entries; in gasket_alloc_extended_entries() 941 while (remain > 0) { in gasket_alloc_extended_entries() 942 len = min(remain, in gasket_alloc_extended_entries() 958 remain -= len; in gasket_alloc_extended_entries() [all …]
|
/Linux-v4.19/sound/soc/codecs/ |
D | rt5677-spi.c | 78 static u8 rt5677_spi_select_cmd(bool read, u32 align, u32 remain, u32 *len) in rt5677_spi_select_cmd() argument 82 if (align == 2 || align == 6 || remain == 2) { in rt5677_spi_select_cmd() 85 } else if (align == 4 || remain <= 6) { in rt5677_spi_select_cmd() 90 *len = min_t(u32, remain & ~7, RT5677_SPI_BURST_LEN); in rt5677_spi_select_cmd()
|
/Linux-v4.19/fs/ocfs2/ |
D | filecheck.c | 311 ssize_t ret = 0, total = 0, remain = PAGE_SIZE; in ocfs2_filecheck_attr_show() local 322 total = snprintf(buf, remain, "%u\n", ent->fs_fcheck->fc_max); in ocfs2_filecheck_attr_show() 327 ret = snprintf(buf, remain, "INO\t\tDONE\tERROR\n"); in ocfs2_filecheck_attr_show() 329 remain -= ret; in ocfs2_filecheck_attr_show() 335 ret = snprintf(buf + total, remain, "%lu\t\t%u\t%s\n", in ocfs2_filecheck_attr_show() 342 if (ret == remain) { in ocfs2_filecheck_attr_show() 348 remain -= ret; in ocfs2_filecheck_attr_show()
|
/Linux-v4.19/arch/alpha/lib/ |
D | memchr.S | 72 # Deal with the case where at most 8 bytes remain to be searched 103 # Deal with the case where $18 > 8 bytes remain to be 127 # At least two quads remain to be accessed. 133 # At least three quads remain to be accessed
|
/Linux-v4.19/drivers/usb/gadget/udc/aspeed-vhub/ |
D | ep0.c | 242 unsigned int remain; in ast_vhub_ep0_do_receive() local 246 remain = req->req.length - req->req.actual; in ast_vhub_ep0_do_receive() 248 EPVDBG(ep, "receive got=%d remain=%d\n", len, remain); in ast_vhub_ep0_do_receive() 251 if (len > remain) { in ast_vhub_ep0_do_receive() 253 len - remain); in ast_vhub_ep0_do_receive() 254 len = remain; in ast_vhub_ep0_do_receive() 262 if (len < ep->ep.maxpacket || len == remain) { in ast_vhub_ep0_do_receive()
|