| /kernel/linux/linux-5.10/arch/c6x/kernel/ |
| D | signal.c | 41 #define COPY(x) (err |= __get_user(regs->x, &sc->sc_##x)) in restore_sigcontext() macro 43 COPY(sp); COPY(a4); COPY(b4); COPY(a6); COPY(b6); COPY(a8); COPY(b8); in restore_sigcontext() 44 COPY(a0); COPY(a1); COPY(a2); COPY(a3); COPY(a5); COPY(a7); COPY(a9); in restore_sigcontext() 45 COPY(b0); COPY(b1); COPY(b2); COPY(b3); COPY(b5); COPY(b7); COPY(b9); in restore_sigcontext() 47 COPY(a16); COPY(a17); COPY(a18); COPY(a19); in restore_sigcontext() 48 COPY(a20); COPY(a21); COPY(a22); COPY(a23); in restore_sigcontext() 49 COPY(a24); COPY(a25); COPY(a26); COPY(a27); in restore_sigcontext() 50 COPY(a28); COPY(a29); COPY(a30); COPY(a31); in restore_sigcontext() 51 COPY(b16); COPY(b17); COPY(b18); COPY(b19); in restore_sigcontext() 52 COPY(b20); COPY(b21); COPY(b22); COPY(b23); in restore_sigcontext() [all …]
|
| /kernel/linux/linux-5.10/arch/microblaze/kernel/ |
| D | signal.c | 62 #define COPY(x) {err |= __get_user(regs->x, &sc->regs.x); } in restore_sigcontext() macro 63 COPY(r0); in restore_sigcontext() 64 COPY(r1); in restore_sigcontext() 65 COPY(r2); COPY(r3); COPY(r4); COPY(r5); in restore_sigcontext() 66 COPY(r6); COPY(r7); COPY(r8); COPY(r9); in restore_sigcontext() 67 COPY(r10); COPY(r11); COPY(r12); COPY(r13); in restore_sigcontext() 68 COPY(r14); COPY(r15); COPY(r16); COPY(r17); in restore_sigcontext() 69 COPY(r18); COPY(r19); COPY(r20); COPY(r21); in restore_sigcontext() 70 COPY(r22); COPY(r23); COPY(r24); COPY(r25); in restore_sigcontext() 71 COPY(r26); COPY(r27); COPY(r28); COPY(r29); in restore_sigcontext() [all …]
|
| /kernel/linux/linux-6.6/arch/microblaze/kernel/ |
| D | signal.c | 62 #define COPY(x) {err |= __get_user(regs->x, &sc->regs.x); } in restore_sigcontext() macro 63 COPY(r0); in restore_sigcontext() 64 COPY(r1); in restore_sigcontext() 65 COPY(r2); COPY(r3); COPY(r4); COPY(r5); in restore_sigcontext() 66 COPY(r6); COPY(r7); COPY(r8); COPY(r9); in restore_sigcontext() 67 COPY(r10); COPY(r11); COPY(r12); COPY(r13); in restore_sigcontext() 68 COPY(r14); COPY(r15); COPY(r16); COPY(r17); in restore_sigcontext() 69 COPY(r18); COPY(r19); COPY(r20); COPY(r21); in restore_sigcontext() 70 COPY(r22); COPY(r23); COPY(r24); COPY(r25); in restore_sigcontext() 71 COPY(r26); COPY(r27); COPY(r28); COPY(r29); in restore_sigcontext() [all …]
|
| /kernel/linux/linux-5.10/arch/x86/um/os-Linux/ |
| D | mcontext.c | 11 #define COPY(X) regs->gp[X] = mc->gregs[REG_##X] in get_regs_from_mc() macro 15 COPY(EDI); COPY(ESI); COPY(EBP); in get_regs_from_mc() 17 COPY(EBX); COPY(EDX); COPY(ECX); COPY(EAX); in get_regs_from_mc() 18 COPY(EIP); COPY_SEG_CPL3(CS); COPY(EFL); COPY_SEG_CPL3(SS); in get_regs_from_mc() 21 #define COPY(X) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##X] in get_regs_from_mc() 22 COPY(R8); COPY(R9); COPY(R10); COPY(R11); in get_regs_from_mc() 23 COPY(R12); COPY(R13); COPY(R14); COPY(R15); in get_regs_from_mc() 24 COPY(RDI); COPY(RSI); COPY(RBP); COPY(RBX); in get_regs_from_mc() 25 COPY(RDX); COPY(RAX); COPY(RCX); COPY(RSP); in get_regs_from_mc() 26 COPY(RIP); in get_regs_from_mc()
|
| /kernel/linux/linux-6.6/arch/x86/um/os-Linux/ |
| D | mcontext.c | 11 #define COPY(X) regs->gp[X] = mc->gregs[REG_##X] in get_regs_from_mc() macro 15 COPY(EDI); COPY(ESI); COPY(EBP); in get_regs_from_mc() 17 COPY(EBX); COPY(EDX); COPY(ECX); COPY(EAX); in get_regs_from_mc() 18 COPY(EIP); COPY_SEG_CPL3(CS); COPY(EFL); COPY_SEG_CPL3(SS); in get_regs_from_mc() 21 #define COPY(X) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##X] in get_regs_from_mc() 22 COPY(R8); COPY(R9); COPY(R10); COPY(R11); in get_regs_from_mc() 23 COPY(R12); COPY(R13); COPY(R14); COPY(R15); in get_regs_from_mc() 24 COPY(RDI); COPY(RSI); COPY(RBP); COPY(RBX); in get_regs_from_mc() 25 COPY(RDX); COPY(RAX); COPY(RCX); COPY(RSP); in get_regs_from_mc() 26 COPY(RIP); in get_regs_from_mc()
|
| /kernel/linux/linux-6.6/arch/riscv/lib/ |
| D | memmove.S | 18 * a2 - Length of copy n 25 * in the 2 misaligned fixup copy loops. 34 * Forward Copy: a1 - Index counter of src 35 * Reverse Copy: a4 - Index counter of src 36 * Forward Copy: t3 - Index counter of dest 37 * Reverse Copy: t4 - Index counter of dest 38 * Both Copy Modes: t5 - Inclusive first multibyte/aligned of dest 39 * Both Copy Modes: t6 - Non-Inclusive last multibyte/aligned of dest 40 * Both Copy Modes: t0 - Link / Temporary for load-store 41 * Both Copy Modes: t1 - Temporary for load-store [all …]
|
| /kernel/linux/linux-5.10/net/core/ |
| D | datagram.c | 418 int i, copy = start - offset, start_off = offset, n; in __skb_datagram_iter() local 421 /* Copy header. */ in __skb_datagram_iter() 422 if (copy > 0) { in __skb_datagram_iter() 423 if (copy > len) in __skb_datagram_iter() 424 copy = len; in __skb_datagram_iter() 426 skb->data + offset, copy, data, to); in __skb_datagram_iter() 428 if (n != copy) in __skb_datagram_iter() 430 if ((len -= copy) == 0) in __skb_datagram_iter() 434 /* Copy paged appendix. Hmm... why does this look so complicated? */ in __skb_datagram_iter() 442 if ((copy = end - offset) > 0) { in __skb_datagram_iter() [all …]
|
| /kernel/linux/linux-6.6/net/core/ |
| D | datagram.c | 412 int i, copy = start - offset, start_off = offset, n; in __skb_datagram_iter() local 415 /* Copy header. */ in __skb_datagram_iter() 416 if (copy > 0) { in __skb_datagram_iter() 417 if (copy > len) in __skb_datagram_iter() 418 copy = len; in __skb_datagram_iter() 420 skb->data + offset, copy, data, to); in __skb_datagram_iter() 422 if (n != copy) in __skb_datagram_iter() 424 if ((len -= copy) == 0) in __skb_datagram_iter() 428 /* Copy paged appendix. Hmm... why does this look so complicated? */ in __skb_datagram_iter() 436 if ((copy = end - offset) > 0) { in __skb_datagram_iter() [all …]
|
| /kernel/linux/linux-5.10/arch/m68k/atari/ |
| D | time.c | 97 #define COPY(v) val->v=(mste_rtc.v & 0xf) in mste_read() macro 99 COPY(sec_ones) ; COPY(sec_tens) ; COPY(min_ones) ; in mste_read() 100 COPY(min_tens) ; COPY(hr_ones) ; COPY(hr_tens) ; in mste_read() 101 COPY(weekday) ; COPY(day_ones) ; COPY(day_tens) ; in mste_read() 102 COPY(mon_ones) ; COPY(mon_tens) ; COPY(year_ones) ; in mste_read() 103 COPY(year_tens) ; in mste_read() 106 #undef COPY in mste_read() 111 #define COPY(v) mste_rtc.v=val->v in mste_write() macro 113 COPY(sec_ones) ; COPY(sec_tens) ; COPY(min_ones) ; in mste_write() 114 COPY(min_tens) ; COPY(hr_ones) ; COPY(hr_tens) ; in mste_write() [all …]
|
| /kernel/linux/linux-6.6/Documentation/staging/ |
| D | lzo.rst | 27 - a length (number of bytes to copy from dictionary) 28 - the number of literals to copy, which is retained in variable "state" 55 ranges, resulting in multiple copy instructions using different encodings. 59 After any instruction except the large literal copy, 0, 1, 2 or 3 literals 68 End of stream is declared when a block copy of distance 0 is seen. Only one 101 noting that code 16 will represent a block copy from the 111 18..21 : copy 0..3 literals 112 state = (byte - 17) = 0..3 [ copy <state> literals ] 115 22..255 : copy literal string 117 state = 4 [ don't copy extra literals ] [all …]
|
| /kernel/linux/linux-5.10/Documentation/staging/ |
| D | lzo.rst | 27 - a length (number of bytes to copy from dictionary) 28 - the number of literals to copy, which is retained in variable "state" 55 ranges, resulting in multiple copy instructions using different encodings. 59 After any instruction except the large literal copy, 0, 1, 2 or 3 literals 68 End of stream is declared when a block copy of distance 0 is seen. Only one 101 noting that code 16 will represent a block copy from the 111 18..21 : copy 0..3 literals 112 state = (byte - 17) = 0..3 [ copy <state> literals ] 115 22..255 : copy literal string 117 state = 4 [ don't copy extra literals ] [all …]
|
| /kernel/linux/linux-6.6/arch/m68k/atari/ |
| D | time.c | 98 #define COPY(v) val->v=(mste_rtc.v & 0xf) in mste_read() macro 100 COPY(sec_ones) ; COPY(sec_tens) ; COPY(min_ones) ; in mste_read() 101 COPY(min_tens) ; COPY(hr_ones) ; COPY(hr_tens) ; in mste_read() 102 COPY(weekday) ; COPY(day_ones) ; COPY(day_tens) ; in mste_read() 103 COPY(mon_ones) ; COPY(mon_tens) ; COPY(year_ones) ; in mste_read() 104 COPY(year_tens) ; in mste_read() 107 #undef COPY in mste_read() 112 #define COPY(v) mste_rtc.v=val->v in mste_write() macro 114 COPY(sec_ones) ; COPY(sec_tens) ; COPY(min_ones) ; in mste_write() 115 COPY(min_tens) ; COPY(hr_ones) ; COPY(hr_tens) ; in mste_write() [all …]
|
| /kernel/linux/linux-6.6/arch/sh/kernel/ |
| D | signal_32.c | 120 #define COPY(x) err |= __get_user(regs->x, &sc->sc_##x) in restore_sigcontext() macro 121 COPY(regs[1]); in restore_sigcontext() 122 COPY(regs[2]); COPY(regs[3]); in restore_sigcontext() 123 COPY(regs[4]); COPY(regs[5]); in restore_sigcontext() 124 COPY(regs[6]); COPY(regs[7]); in restore_sigcontext() 125 COPY(regs[8]); COPY(regs[9]); in restore_sigcontext() 126 COPY(regs[10]); COPY(regs[11]); in restore_sigcontext() 127 COPY(regs[12]); COPY(regs[13]); in restore_sigcontext() 128 COPY(regs[14]); COPY(regs[15]); in restore_sigcontext() 129 COPY(gbr); COPY(mach); in restore_sigcontext() [all …]
|
| /kernel/linux/linux-5.10/arch/sh/kernel/ |
| D | signal_32.c | 120 #define COPY(x) err |= __get_user(regs->x, &sc->sc_##x) in restore_sigcontext() macro 121 COPY(regs[1]); in restore_sigcontext() 122 COPY(regs[2]); COPY(regs[3]); in restore_sigcontext() 123 COPY(regs[4]); COPY(regs[5]); in restore_sigcontext() 124 COPY(regs[6]); COPY(regs[7]); in restore_sigcontext() 125 COPY(regs[8]); COPY(regs[9]); in restore_sigcontext() 126 COPY(regs[10]); COPY(regs[11]); in restore_sigcontext() 127 COPY(regs[12]); COPY(regs[13]); in restore_sigcontext() 128 COPY(regs[14]); COPY(regs[15]); in restore_sigcontext() 129 COPY(gbr); COPY(mach); in restore_sigcontext() [all …]
|
| /kernel/linux/linux-5.10/arch/nds32/lib/ |
| D | memmove.S | 21 srli $p1, $r2, #2 ! $p1 is how many words to copy 24 ! Copy data reversely when src < dst 30 li $t0, #1 ! Determining copy direction in byte_cpy 35 addi $p1, $p1, #-1 ! How many words left to copy 36 smw.bim $p0, [$r0], $p0 ! Copy the word to det 38 beqz $r2, end_memcpy ! No left bytes to copy 45 li $t0, #-1 ! Determining copy direction in byte_cpy 50 addi $p1, $p1, #-1 ! How many words left to copy 51 smw.adm $p0, [$r0], $p0 ! Copy the word to det 53 beqz $r2, end_memcpy ! No left bytes to copy [all …]
|
| /kernel/linux/linux-6.6/Documentation/admin-guide/device-mapper/ |
| D | kcopyd.rst | 5 Kcopyd provides the ability to copy a range of sectors from one block-device 10 to set aside for their copy jobs. This is done with a call to 16 To start a copy job, the user must set up io_region structures to describe 17 the source and destinations of the copy. Each io_region indicates a 19 of the copy is given as one io_region structure, and the destinations of the 20 copy are given as an array of io_region structures:: 28 To start the copy, the user calls kcopyd_copy(), passing in the client 30 completion callback routine, and a pointer to some context data for the copy:: 39 When the copy completes, kcopyd will call the user's completion routine, 41 write error occurred during the copy. [all …]
|
| /kernel/linux/linux-5.10/Documentation/admin-guide/device-mapper/ |
| D | kcopyd.rst | 5 Kcopyd provides the ability to copy a range of sectors from one block-device 10 to set aside for their copy jobs. This is done with a call to 16 To start a copy job, the user must set up io_region structures to describe 17 the source and destinations of the copy. Each io_region indicates a 19 of the copy is given as one io_region structure, and the destinations of the 20 copy are given as an array of io_region structures:: 28 To start the copy, the user calls kcopyd_copy(), passing in the client 30 completion callback routine, and a pointer to some context data for the copy:: 39 When the copy completes, kcopyd will call the user's completion routine, 41 write error occurred during the copy. [all …]
|
| /kernel/linux/linux-6.6/drivers/s390/cio/ |
| D | device_status.c | 73 * Copy valid bits from the extended control word to device irb. 79 * Copy extended control bit if it is valid... yes there in ccw_device_accumulate_ecw() 90 /* Copy concurrent sense / model dependent information. */ in ccw_device_accumulate_ecw() 111 * Copy valid bits from the extended status word to device irb. 124 /* Copy last path used mask. */ in ccw_device_accumulate_esw() 127 /* Copy subchannel logout information if esw is of format 0. */ in ccw_device_accumulate_esw() 131 /* Copy extended status flags. */ in ccw_device_accumulate_esw() 134 * Copy fields that have a meaning for channel data check in ccw_device_accumulate_esw() 140 /* Copy ancillary report bit. */ in ccw_device_accumulate_esw() 142 /* Copy field-validity-flags. */ in ccw_device_accumulate_esw() [all …]
|
| /kernel/linux/linux-5.10/drivers/s390/cio/ |
| D | device_status.c | 72 * Copy valid bits from the extended control word to device irb. 78 * Copy extended control bit if it is valid... yes there in ccw_device_accumulate_ecw() 89 /* Copy concurrent sense / model dependent information. */ in ccw_device_accumulate_ecw() 110 * Copy valid bits from the extended status word to device irb. 123 /* Copy last path used mask. */ in ccw_device_accumulate_esw() 126 /* Copy subchannel logout information if esw is of format 0. */ in ccw_device_accumulate_esw() 130 /* Copy extended status flags. */ in ccw_device_accumulate_esw() 133 * Copy fields that have a meaning for channel data check in ccw_device_accumulate_esw() 139 /* Copy ancillary report bit. */ in ccw_device_accumulate_esw() 141 /* Copy field-validity-flags. */ in ccw_device_accumulate_esw() [all …]
|
| /kernel/linux/linux-6.6/lib/zlib_inflate/ |
| D | inflate.c | 123 unsigned copy, dist; in zlib_updatewindow() local 127 /* copy state->wsize or less output bytes into the circular window */ in zlib_updatewindow() 128 copy = out - strm->avail_out; in zlib_updatewindow() 129 if (copy >= state->wsize) { in zlib_updatewindow() 136 if (dist > copy) dist = copy; in zlib_updatewindow() 137 memcpy(state->window + state->write, strm->next_out - copy, dist); in zlib_updatewindow() 138 copy -= dist; in zlib_updatewindow() 139 if (copy) { in zlib_updatewindow() 140 memcpy(state->window, strm->next_out - copy, copy); in zlib_updatewindow() 141 state->write = copy; in zlib_updatewindow() [all …]
|
| /kernel/liteos_a/arch/arm/include/ |
| D | user_copy.h | 36 * @brief Copy data from userspace into kernelspace 43 * @param len The number of bytes to copy. 50 * @brief Copy data from kernelspace into userspace 57 * @param len The number of bytes to copy. 64 * @brief Copy data from src to dst 66 * This function will use different copy methods to copy src data to dst, according to 70 * @param max The maxsimum number of bytes to copy. 72 * @param len The number of bytes to copy. 79 * @brief Copy data from src to dst 81 * This function will use different copy methods to copy src data to dst, according to [all …]
|
| /kernel/linux/linux-5.10/mm/ |
| D | process_vm_access.c | 21 * @pages: array of pointers to pages we want to copy 23 * @len: number of bytes to copy 24 * @iter: where to copy to/from locally 25 * @vm_write: 0 means copy from, 1 means copy to 34 /* Do the copy for each page */ in process_vm_rw_pages() 37 size_t copy = PAGE_SIZE - offset; in process_vm_rw_pages() local 40 if (copy > len) in process_vm_rw_pages() 41 copy = len; in process_vm_rw_pages() 44 copied = copy_page_from_iter(page, offset, copy, iter); in process_vm_rw_pages() 46 copied = copy_page_to_iter(page, offset, copy, iter); in process_vm_rw_pages() [all …]
|
| /kernel/linux/linux-6.6/mm/ |
| D | process_vm_access.c | 20 * @pages: array of pointers to pages we want to copy 22 * @len: number of bytes to copy 23 * @iter: where to copy to/from locally 24 * @vm_write: 0 means copy from, 1 means copy to 33 /* Do the copy for each page */ in process_vm_rw_pages() 36 size_t copy = PAGE_SIZE - offset; in process_vm_rw_pages() local 39 if (copy > len) in process_vm_rw_pages() 40 copy = len; in process_vm_rw_pages() 43 copied = copy_page_from_iter(page, offset, copy, iter); in process_vm_rw_pages() 45 copied = copy_page_to_iter(page, offset, copy, iter); in process_vm_rw_pages() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/pcie/ |
| D | tx-gen2.c | 57 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd() local 59 if (copy > cmdlen[i]) in iwl_pcie_gen2_enqueue_hcmd() 60 copy = cmdlen[i]; in iwl_pcie_gen2_enqueue_hcmd() 61 cmdlen[i] -= copy; in iwl_pcie_gen2_enqueue_hcmd() 62 cmddata[i] += copy; in iwl_pcie_gen2_enqueue_hcmd() 63 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd() 149 /* and copy the data that needs to be copied */ in iwl_pcie_gen2_enqueue_hcmd() 151 int copy; in iwl_pcie_gen2_enqueue_hcmd() local 156 /* copy everything if not nocopy/dup */ in iwl_pcie_gen2_enqueue_hcmd() 159 copy = cmd->len[i]; in iwl_pcie_gen2_enqueue_hcmd() [all …]
|
| /kernel/linux/linux-6.6/arch/s390/kvm/ |
| D | gaccess.h | 106 * @x: value to copy to guest 132 * write_guest_lc - copy data from kernel space to guest vcpu's lowcore 136 * @len: number of bytes to copy 138 * Copy data from kernel space to guest vcpu's lowcore. The entire range must 158 * read_guest_lc - copy data from guest vcpu's lowcore to kernel space 162 * @len: number of bytes to copy 164 * Copy data from guest vcpu's lowcore to kernel space. The entire range must 213 * write_guest_with_key - copy data from kernel space to guest space 218 * @len: number of bytes to copy 221 * Copy @len bytes from @data (kernel space) to @ga (guest address). [all …]
|