/linux-master/sound/soc/sof/ |
H A D | debug.c | 10 // Generic debug routines used to export DSP MMIO and memories to userspace 62 /* align io read start to u32 multiple */ 111 /* copy to userspace */ 155 * allocate cache buffer that will be used to save the mem window 156 * contents prior to suspend 168 /* add to dfsentry list */ 189 /* create FS entry for debug files to expose kernel memory */ 210 /* add to dfsentry list */ 269 static ssize_t memory_info_read(struct file *file, char __user *to, size_ argument [all...] |
/linux-master/net/mptcp/ |
H A D | protocol.c | 131 static bool mptcp_try_coalesce(struct sock *sk, struct sk_buff *to, argument 138 !skb_try_coalesce(to, from, &fragstolen, &delta)) 142 MPTCP_SKB_CB(from)->map_seq, MPTCP_SKB_CB(to)->map_seq, 143 to->len, MPTCP_SKB_CB(from)->end_seq); 144 MPTCP_SKB_CB(to)->end_seq = MPTCP_SKB_CB(from)->end_seq; 157 static bool mptcp_ooo_try_coalesce(struct mptcp_sock *msk, struct sk_buff *to, argument 160 if (MPTCP_SKB_CB(from)->map_seq != MPTCP_SKB_CB(to)->end_seq) 163 return mptcp_try_coalesce((struct sock *)msk, to, from); 257 /* Find place to insert this segment. Handle overlaps on the way. */ 351 /* try to fetc 1752 do_copy_data_nocache(struct sock *sk, int copy, struct iov_iter *from, char *to) argument [all...] |
/linux-master/net/ipv4/ |
H A D | raw.c | 160 * RFC 1122: SHOULD pass TOS value up to the transport layer. 300 /* Charge it to the socket. */ 386 * We don't want to modify the ip header, but we do need to 388 * stack. Specifically we want to make sure that iph->ihl is a 451 static int raw_getfrag(void *from, char *to, int offset, int len, int odd, argument 460 memcpy(to, rfv->hdr.c + offset, copy); 465 to, copy), 470 to += copy; 479 return ip_generic_getfrag(rfv->msg, to, offse [all...] |
H A D | ip_output.c | 109 /* if egress device is enslaved to an L3 master device pass the 110 * skb to its handler for processing 146 * Add an ip header to a skbuff and send it out. 269 * bridged to a NETIF_F_TSO tunnel stacked over an interface with an 352 * this to non-zero causes ipi_ifindex in in_pktinfo to be overwritten, 387 Note, that local frames are looped back to be delivered 388 to local recipients. 442 * Equivalent to : 508 /* OK, we know where to sen 553 ip_copy_metadata(struct sk_buff *to, struct sk_buff *from) argument 663 ip_frag_ipcb(struct sk_buff *from, struct sk_buff *to, bool first_frag) argument 934 ip_generic_getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb) argument 951 __ip_append_data(struct sock *sk, struct flowi4 *fl4, struct sk_buff_head *queue, struct inet_cork *cork, struct page_frag *pfrag, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length, int transhdrlen, unsigned int flags) argument 1344 ip_append_data(struct sock *sk, struct flowi4 *fl4, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length, int transhdrlen, struct ipcm_cookie *ipc, struct rtable **rtp, unsigned int flags) argument 1535 ip_make_skb(struct sock *sk, struct flowi4 *fl4, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length, int transhdrlen, struct ipcm_cookie *ipc, struct rtable **rtp, struct inet_cork *cork, unsigned int flags) argument 1572 ip_reply_glue_bits(void *dptr, char *to, int offset, int len, int odd, struct sk_buff *skb) argument [all...] |
/linux-master/net/core/ |
H A D | skmsg.c | 359 /* Revert iov_iter updates, msg will need to use 'trim' later if it 360 * also needs to be cleared. 374 void *to; local 389 to = sg_virt(sge) + msg->sg.copybreak; 392 ret = copy_from_iter_nocache(to, copy, from); 394 ret = copy_from_iter(to, copy, from); 411 /* Receive sk_msg from psock->ingress_msg to @msg. */ 536 * later if this happens. Under memory pressure we don't want to 537 * drop the skb. We need to linearize the skb so that the mapping 580 * the BPF program was run initiating the redirect to th [all...] |
H A D | skbuff.c | 3 * Routines having to do with the 'struct sk_buff' memory handlers. 27 * with respect to whatever list is being frobbed (e.g. via lock_sock() 98 /* We want SKB_SMALL_HEAD_CACHE_SIZE to not be a power of two. 114 /* kcm_write_msgs() relies on casting paged frags to bio_vec to use 152 * @subsys: the subsystem to register, must not be the core 153 * @list: the list of drop reasons within the subsystem, must point to 164 /* must point to statically allocated memory, so INIT is OK */ 171 * @subsys: the subsystem to remove, must not be the core 173 * Note: This will synchronize_rcu() to ensur 2945 skb_copy_bits(const struct sk_buff *skb, int offset, void *to, int len) argument 3530 skb_copy_and_csum_bits(const struct sk_buff *skb, int offset, u8 *to, int len) argument 3746 skb_zerocopy(struct sk_buff *to, struct sk_buff *from, int len, int hlen) argument 3805 skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to) argument 4143 int from, to, merge, todo; local 4266 skb_prepare_seq_read(struct sk_buff *skb, unsigned int from, unsigned int to, struct skb_seq_state *st) argument 4427 skb_find_text(struct sk_buff *skb, unsigned int from, unsigned int to, struct ts_config *config) argument 5917 skb_try_coalesce(struct sk_buff *to, struct sk_buff *from, bool *fragstolen, int *delta_truesize) argument 7146 memcpy_from_iter_csum(void *iter_from, size_t progress, size_t len, void *to, void *priv2) argument 7157 copy_from_user_iter_csum(void __user *iter_from, size_t progress, size_t len, void *to, void *priv2) argument [all...] |
H A D | filter.c | 119 * @skb: buffer to filter 122 * Run the eBPF program and then cut skb->data to correct size returned by 125 * wrapper to bpf_prog_run. It returns 0 if the packet should 136 * allow SOCK_MEMALLOC sockets to use it as this socket is 463 /* This is just a dummy call to avoid letting the compiler 550 * @new_len: pointer to store length of converted program 553 * Remap 'sock_filter' style classic BPF (cBPF) instruction set to 'bpf_insn' 560 * 2) 2nd pass to remap in two passes: 1st pass finds new 594 /* Classic BPF expects A and X to be reset first. These need 595 * to b 1767 __bpf_skb_load_bytes(const struct sk_buff *skb, u32 offset, void *to, u32 len) argument 2638 u8 *raw, *to, *from; local 2764 u8 *raw, *to, *from; local 2992 u8 *to, *from; local [all...] |
/linux-master/net/bridge/ |
H A D | br_forward.c | 20 /* Don't forward packets to originating port or forwarding disabled */ 73 static void __br_forward(const struct net_bridge_port *to, argument 82 * can know whether to pop the VLAN header on egress or keep it. 84 nbp_switchdev_frame_mark_tx_fwd_offload(to, skb); 86 vg = nbp_vlan_group_rcu(to); 87 skb = br_handle_vlan(to->br, to, vg, skb); 92 skb->dev = to->dev; 102 if (unlikely(netpoll_tx_running(to->br->dev))) { 107 br_netpoll_send_skb(to, sk 144 br_forward(const struct net_bridge_port *to, struct sk_buff *skb, bool local_rcv, bool local_orig) argument [all...] |
/linux-master/kernel/bpf/ |
H A D | core.c | 192 /* The jit engine is responsible to provide an array 193 * for insn_off to the jited_off mapping (insn_to_jit_off). 195 * The idx to this array is the insn_off. Hence, the insn_off 196 * here is relative to the prog itself instead of the main prog. 199 * jited_off is the byte off to the end of the jited insn. 204 * here is relative to the main prog. 207 * The prog's idx to prog->aux->linfo and jited_linfo 308 /* We need to take out the map fd for the digest calculation 421 * unpatched image in order to check overflows before we 495 * We need to prob 1280 struct bpf_insn *to = to_buff; local 2967 skb_copy_bits(const struct sk_buff *skb, int offset, void *to, int len) argument [all...] |
/linux-master/include/linux/ |
H A D | filter.h | 66 /* unused opcode to mark special call to bpf_tail_call() helper */ 69 /* unused opcode to mark special load instruction. Same as BPF_ABS */ 72 /* unused opcode to mark special ldsx instruction. Same as BPF_IND */ 75 /* unused opcode to mark special load instruction. Same as BPF_MSH */ 78 /* unused opcode to mark call to interpreter with arguments */ 81 /* unused opcode to mark speculation barrier for mitigating 87 * kallsyms. That way, tools like perf can find it to match 92 /* BPF program can access up to 51 1600 __bpf_skb_load_bytes(const struct sk_buff *skb, u32 offset, void *to, u32 len) argument [all...] |
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | sge.c | 6 * This software is available to you under a choice of one of two 7 * licenses. You may choose to be licensed under the terms of the GNU 77 * Should be >= RX_PULL_LEN but possibly bigger to give pskb_may_pull some room. 84 * to free packets faster than they arrive, we eventually catch up and keep 98 * something to do only when the system experiences severe memory shortage. 108 * Max number of Tx descriptors to be reclaimed by the Tx timer. 113 * Timer index used when backing off due to memory shortage. 124 * Max Tx descriptor space we allow for an Ethernet packet to be inlined 142 * We could easily support more but there doesn't seem to be much need for 161 * these to specif 828 struct ulptx_sge_pair *to; local 896 struct ulptx_sge_pair buf[MAX_SKB_FRAGS / 2 + 1] = {0}, *to; local [all...] |
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ttm.c | 5 * Permission is hereby granted, free of charge, to any person obtaining a 7 * "Software"), to deal in the Software without restriction, including 8 * without limitation the rights to use, copy, modify, merge, publish, 9 * distribute, sub license, and/or sell copies of the Software, and to 10 * permit persons to whom the Software is furnished to do so, subject to 85 * @bo: The buffer object to evict 131 /* Move to system memory */ 138 /* Try evicting to th 309 uint64_t from, to, cur_size; local 2255 uint64_t cur_size, to; local [all...] |
H A D | amdgpu_object.c | 5 * Permission is hereby granted, free of charge, to any person obtaining a 7 * "Software"), to deal in the Software without restriction, including 8 * without limitation the rights to use, copy, modify, merge, publish, 9 * distribute, sub license, and/or sell copies of the Software, and to 10 * permit persons to whom the Software is furnished to do so, subject to 46 * This defines the interfaces to operate on an &amdgpu_bo buffer object which 48 * provides DRM/GEM APIs to userspace. DRM/GEM APIs then use these interfaces 49 * to creat [all...] |
/linux-master/drivers/block/ |
H A D | ublk_drv.c | 51 /* All UBLK_F_* have to be included into UBLK_F_ALL */ 458 * Max ublk devices allowed to add 460 * It can be extended to one per-user limit in future or even controlled 564 * has to be grabbed 701 * evil user who grants this disk's privileges to other 948 /* need to translate since kernel may change */ 1001 /* for READ request, writing data in iod->addr to rq buffers */ 1094 * io_uring_cmd_complete_in_task() tries to run task_work 1107 * so immepdately pass UBLK_IO_RES_NEED_GET_DATA to ublksrv 1235 /* fill iod to slo 1924 ublk_ch_read_iter(struct kiocb *iocb, struct iov_iter *to) argument [all...] |
/linux-master/arch/s390/mm/ |
H A D | gmap.c | 103 * @mm: pointer to the parent mm_struct 190 * @gmap: pointer to the guest address space structure 192 * No locks required. There are no references to this gmap anymore. 215 /* Release reference to the parent */ 224 * @gmap: pointer to the guest address space structure 237 * @gmap: pointer to the guest address space structure 250 * @gmap: pointer to the guest address space structure 257 /* Remove all shadow gmaps linked to this gmap */ 285 * gmap_enable - switch primary space to the guest address space 286 * @gmap: pointer to th 408 gmap_unmap_segment(struct gmap *gmap, unsigned long to, unsigned long len) argument 439 gmap_map_segment(struct gmap *gmap, unsigned long from, unsigned long to, unsigned long len) argument 713 gmap_discard(struct gmap *gmap, unsigned long from, unsigned long to) argument [all...] |
/linux-master/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 44 /* Map BPF registers to A64 registers */ 48 /* arguments from eBPF program to in-kernel function */ 59 /* read-only frame pointer to access stack */ 86 u32 insn_br; /* branch to target */ 163 * remaining bits are guaranteed to be 0x1. So we can compose the address 191 /* BPF JMP offset is relative to the next instruction */ 204 /* We are guaranteed to have aligned memory. */ 219 int to = ctx->epilogue_offset; local 222 return to - from; 291 /* Offset of nop instruction in bpf prog entry to b [all...] |
/linux-master/arch/arm/net/ |
H A D | bpf_jit_32.c | 52 * With frame pointers (to be compliant with the ABI): 73 * Some eBPF operations are implemented via a call to a helper function. 74 * Such calls are "invisible" in the eBPF code, so it is up to the calling 75 * program to preserve any caller-saved ARM registers during the call. The 76 * JIT emits code to push and pop those registers onto the stack, immediately 136 * Map eBPF registers to ARM 32bit registers or stack scratch space. 140 * 2. First callee-saved argument is mapped to arm 32 bit registers and rest 141 * arguments are mapped to scratch space on stack. 142 * 3. We need two 64 bit temp registers to do complex operations on eBPF 146 * registers, we have to ma 456 int to, from; local 510 int to, from; local [all...] |
/linux-master/net/sunrpc/ |
H A D | xprtsock.c | 12 * Rewrite of larges part of the code in order to stabilize TCP stuff. 88 * We simply need to make sure that we don't collide with 178 * The reestablish timeout allows clients to delay for a bit before attempting 179 * to reconnect to a server that just dropped our connection. 181 * We implement an exponential backoff when trying to reestablish a TCP 182 * transport connection with the server. Some servers like to drop a TCP 190 * for this long. Note that we also timeout UDP sockets to prevent 373 * waiting to be decrypted. 624 /* Look up and lock the request corresponding to th 2301 struct rpc_timeout to; local [all...] |
/linux-master/kernel/ |
H A D | workqueue.c | 13 * Made to use alloc_percpu by Christoph Lameter. 22 * pools for workqueues which are not bound to any specific CPU - the 66 * While associated (!DISASSOCIATED), all workers are bound to the 75 * wq_pool_attach_mutex to avoid changing binding state while 91 WORKER_PREP = 1 << 3, /* preparing to run works */ 117 CREATE_COOLDOWN = HZ, /* time to breath after fail */ 130 * We don't want to trap softirq for too long. See MAX_SOFTIRQ_TIME and 196 * guaranteed to see if the counter reached zero. 217 struct list_head dying_workers; /* A: workers about to die */ 227 * Destruction of pool is RCU protected to allo 4508 copy_workqueue_attrs(struct workqueue_attrs *to, const struct workqueue_attrs *from) argument [all...] |
/linux-master/scripts/ |
H A D | Makefile.build | 45 # $(sort ...) is used here to remove duplicated words and excessive spaces. 52 # $(sort ...) is used here to remove duplicated words and excessive spaces. 65 $(warning You cannot use subdir-y/m to visit a module Makefile. Use obj-y/m instead.) 153 # When a module consists of a single object, there is no reason to keep LLVM IR. 154 # Make $(LD) covert LLVM IR to ELF here. 172 # be compiled and linked to the kernel and/or modules. 190 # Due to recursion, we must skip empty.o. 191 # The empty.o file is created in the make process in order to determine 222 cmd_warn_shared_object = $(if $(word 2, $(modname-multi)),$(warning $(kbuild-file): $*.o is added to multiple modules: $(modname-multi))) 248 # ensure to ad [all...] |
/linux-master/rust/ |
H A D | Makefile | 3 # Where to place rustdoc generated documentation 85 # can be used to specify a custom logo. However: 88 # - It requires adding it to every crate. 93 # command-like flags to solve the issue. Meanwhile, we use the non-custom case 120 # We need to allow `rustdoc::broken_intra_doc_links` because some 121 # `no_global_oom_handling` functions refer to non-`no_global_oom_handling` 122 # functions. Ideally `rustdoc` would have a way to distinguish broken links 123 # due to things that are "configured out" vs. entirely non-existing ones. 214 # including third-party crates that need to be downloaded, plus custom 216 # - `cargo` knows how to buil [all...] |
/linux-master/drivers/irqchip/ |
H A D | irq-gic-v3-its.c | 54 * We allocate memory for PROPBASE to cover 2 ^ lpi_id_bits LPIs to 55 * deal with (one configuration byte per interrupt). PENDBASE has to 65 * Collection structure - just an ID, and a redistributor address to 66 * ping. We use one per CPU as a bag of interrupts assigned to this 90 * list of devices writing to it. 92 * dev_alloc_lock has to be taken for device allocations, while the 93 * spinlock must be taken to parse data structures such as the device 141 /* Convert page order to size in bytes */ 156 * The ITS view of a device - belongs to a 1074 its_wait_for_range_completion(struct its_node *its, u64 prev_idx, struct its_cmd_block *to) argument 3800 its_vpe_db_proxy_move(struct its_vpe *vpe, int from, int to) argument [all...] |
/linux-master/arch/riscv/mm/ |
H A D | init.c | 190 pr_notice("Memory limited to %lldMB\n", (u64)memory_limit >> 20); 212 * any allocation to happen between _end and the next pmd aligned page. 217 * Reserve from the start of the kernel to the end of the kernel 241 * if end of dram is equal to maximum addressable memory. For 64-bit 269 * If DTB is built in, no need to reserve its memblock. 694 void *to = (void *)CONFIG_PHYS_RAM_BASE; local 697 memcpy(to, from, sz); 773 * There is a simple way to determine if 4-level is supported by the 775 * then read SATP to see if the configuration was taken into account 839 * Following requirements should be honoured for setup_vm() to wor [all...] |
/linux-master/arch/riscv/include/asm/ |
H A D | page.h | 26 * When not using MMU this corresponds to the first free page in 36 * By default, CONFIG_PAGE_OFFSET value corresponds to SV57 address space so 52 #define copy_page(to, from) memcpy((to), (from), PAGE_SIZE) 59 * Use struct definitions to apply C type checking
|
/linux-master/ |
H A D | Makefile | 11 # Comments in this file are targeted only to the developer, do not 12 # expect to learn how to build the kernel reading this file. 25 # We are using a recursive build, so we need to do a little thinking 26 # to get the ordering right. 34 # is now up to date. 36 # The only cases where we need to modify files which have global 48 # (this increases performance and avoids hard-to-debug behaviour) 71 # A simple variant is to prefix commands with $(Q) - that's useful 80 # Use 'make V=1' to se [all...] |