/kernel/linux/linux-6.6/arch/mips/include/asm/ |
H A D | uaccess.h | 57 * This macro copies a single simple value from kernel space to user 75 * get_user: - Get a simple variable from user space. 82 * This macro copies a single simple variable from user space to kernel 109 * This macro copies a single simple value from kernel space to user 149 * __get_user: - Get a simple variable from user space, with less checking. 156 * This macro copies a single simple variable from user space to kernel 390 raw_copy_from_user(void *to, const void __user *from, unsigned long n) in raw_copy_from_user() argument 397 __cu_from_r = from; in raw_copy_from_user() 416 raw_copy_to_user(void __user *to, const void *from, unsigned long n) in raw_copy_to_user() argument 423 __cu_from_r = (from); in raw_copy_to_user() [all...] |
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | scall64-o32.S | 12 * convention than the kernel, so we have to translate things from o32 48 /* We don't want to stumble over broken sign extensions from 59 * stack arguments from the user stack to the kernel stack. 69 load_a4: lw a4, 16(t0) # argument #5 from usp 70 load_a5: lw a5, 20(t0) # argument #6 from usp 71 load_a6: lw a6, 24(t0) # argument #7 from usp 72 load_a7: lw a7, 28(t0) # argument #8 from usp
|
H A D | scall32-o32.S | 41 * stack arguments from the user stack to the kernel stack. 54 * Ok, copy the args from the luser stack to the kernel stack. 61 load_a4: user_lw(t5, 16(t0)) # argument #5 from usp 62 load_a5: user_lw(t6, 20(t0)) # argument #6 from usp 63 load_a6: user_lw(t7, 24(t0)) # argument #7 from usp 64 load_a7: user_lw(t8, 28(t0)) # argument #8 from usp
|
/kernel/linux/linux-6.6/arch/arm64/include/asm/ |
H A D | kvm_asm.h | 250 #define __KVM_EXTABLE(from, to) \ 253 " .long (" #from " - .), (" #to " - .)\n" \ 327 .macro _kvm_extable, from, to variable 330 .long (\from - .), (\to - .)
|
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/nvhe/ |
H A D | mm.c | 113 int pkvm_create_mappings_locked(void *from, void *to, enum kvm_pgtable_prot prot) in pkvm_create_mappings_locked() argument 115 unsigned long start = (unsigned long)from; in pkvm_create_mappings_locked() 138 int pkvm_create_mappings(void *from, void *to, enum kvm_pgtable_prot prot) in pkvm_create_mappings() argument 143 ret = pkvm_create_mappings_locked(from, to, prot); in pkvm_create_mappings() 286 * prevent it from ever being freed. This lets us manipulate the PTEs in __create_fixmap_slot_cb() 411 /* Refill our local memcache by poping pages from the one provided by the host. */
|
/kernel/linux/linux-5.10/tools/testing/selftests/capabilities/ |
H A D | test_execve.c | 156 int from = openat(fromfd, fromname, O_RDONLY); in copy_fromat_to() local 157 if (from == -1) in copy_fromat_to() 164 ssize_t sz = read(from, buf, sizeof(buf)); in copy_fromat_to() 175 close(from); in copy_fromat_to()
|
/kernel/linux/linux-6.6/arch/sh/mm/ |
H A D | cache.c | 99 void copy_user_highpage(struct page *to, struct page *from, in copy_user_highpage() argument 102 struct folio *src = page_folio(from); in copy_user_highpage() 109 vfrom = kmap_coherent(from, vaddr); in copy_user_highpage() 113 vfrom = kmap_atomic(from); in copy_user_highpage()
|
/kernel/linux/linux-5.10/drivers/mtd/maps/ |
H A D | pci.c | 53 static void mtd_pci_copyfrom(struct map_info *_map, void *to, unsigned long from, ssize_t len) in mtd_pci_copyfrom() argument 56 memcpy_fromio(to, map->base + map->translate(map, from), len); in mtd_pci_copyfrom() 71 static void mtd_pci_copyto(struct map_info *_map, unsigned long to, const void *from, ssize_t len) in mtd_pci_copyto() argument 74 memcpy_toio(map->base + map->translate(map, to), from, len); in mtd_pci_copyto()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | display.c | 8 * Some code and ideas taken from drivers/video/omap/ driver 198 * ref count of from-device is decremented. 200 struct omap_dss_device *omap_dss_get_next_device(struct omap_dss_device *from) in omap_dss_get_next_device() argument 212 if (from == NULL) { in omap_dss_get_next_device() 219 omap_dss_put_device(from); in omap_dss_get_next_device() 223 if (dssdev == from) { in omap_dss_get_next_device() 236 WARN(1, "'from' dssdev not found\n"); in omap_dss_get_next_device()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | quota.h | 5 * This code is derived from software contributed to Berkeley by 17 * may be used to endorse or promote products derived from this software 85 * @from: User namespace that the qid is in 97 static inline struct kqid make_kqid(struct user_namespace *from, in make_kqid() argument 105 kqid.uid = make_kuid(from, qid); in make_kqid() 108 kqid.gid = make_kgid(from, qid); in make_kqid() 111 kqid.projid = make_kprojid(from, qid); in make_kqid() 147 * make_kqid_uid - Make a kqid from a kuid 148 * @uid: The kuid to make the quota identifier from 159 * make_kqid_gid - Make a kqid from [all...] |
/kernel/linux/linux-5.10/include/sound/ |
H A D | pcm_params.h | 83 unsigned int from, unsigned int to) in snd_mask_set_range() 86 for (i = from; i <= to; i++) in snd_mask_set_range() 91 unsigned int from, unsigned int to) in snd_mask_reset_range() 94 for (i = from; i <= to; i++) in snd_mask_reset_range() 300 * params_access - get the access type from the hw params 310 * params_format - get the sample format from the hw params 320 * params_subformat - get the sample subformat from the hw params 331 * params_period_bytes - get the period size (in bytes) from the hw params 341 * params_width - get the number of bits of the sample format from the hw params 353 * params_physical_width - get the storage size of the sample format from th 82 snd_mask_set_range(struct snd_mask *mask, unsigned int from, unsigned int to) snd_mask_set_range() argument 90 snd_mask_reset_range(struct snd_mask *mask, unsigned int from, unsigned int to) snd_mask_reset_range() argument [all...] |
/kernel/linux/linux-5.10/kernel/time/ |
H A D | tick-common.c | 193 int from = tick_do_timer_boot_cpu; in tick_take_do_timer_from_boot() local 195 if (from >= 0 && from != cpu) in tick_take_do_timer_from_boot() 196 smp_call_function_single(from, giveup_do_timer, &cpu, 1); in tick_take_do_timer_from_boot() 225 * secondary that comes up will take do_timer from in tick_setup_device() 405 * Transfer the do_timer job away from a dying cpu. 425 * We just set the mode and remove it from the lists. 449 * Called from the local cpu for freeze with interrupts disabled. 463 * Called from the local CPU for unfreeze or XEN resume magic. 484 * Called from syscore_suspen [all...] |
/kernel/linux/linux-5.10/fs/udf/ |
H A D | file.c | 9 * License (GPL). Copies of the GPL can be obtained from: 24 * 04/06/99 64 bit file handling on 32 bit systems taken from ext2 file.c 135 static ssize_t udf_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in udf_file_write_iter() argument 145 retval = generic_write_checks(iocb, from); in udf_file_write_iter() 152 iocb->ki_pos + iov_iter_count(from))) { in udf_file_write_iter() 162 retval = __generic_file_write_iter(iocb, from); in udf_file_write_iter()
|
/kernel/linux/linux-5.10/net/8021q/ |
H A D | vlan_netlink.c | 124 vlan_dev_set_ingress_priority(dev, m->to, m->from); in vlan_changelink() 132 err = vlan_dev_set_egress_priority(dev, m->from, m->to); in vlan_changelink() 244 m.from = i; in vlan_fill_info() 264 m.from = pm->priority; in vlan_fill_info()
|
/kernel/linux/linux-5.10/drivers/staging/hievent/ |
H A D | hievent_driver.c | 269 static ssize_t hievent_write_iter(struct kiocb *iocb, struct iov_iter *from) in hievent_write_iter() argument 273 const struct iovec *iov = from->iov; in hievent_write_iter() 278 if (from->nr_segs != 2) { /* must contain 2 segments */ in hievent_write_iter() 279 pr_err("invalid nr_segs: %ld", from->nr_segs); in hievent_write_iter()
|
/kernel/linux/linux-6.6/drivers/mtd/devices/ |
H A D | mchp48l640.c | 235 static int mchp48l640_read_page(struct mtd_info *mtd, loff_t from, size_t len, in mchp48l640_read_page() argument 252 cmdlen = mchp48l640_mkcmd(flash, MCHP48L640_CMD_READ, from, cmd); in mchp48l640_read_page() 267 static int mchp48l640_read(struct mtd_info *mtd, loff_t from, size_t len, in mchp48l640_read() argument 273 loff_t woff = from; in mchp48l640_read()
|
/kernel/linux/linux-6.6/drivers/mtd/maps/ |
H A D | pci.c | 53 static void mtd_pci_copyfrom(struct map_info *_map, void *to, unsigned long from, ssize_t len) in mtd_pci_copyfrom() argument 56 memcpy_fromio(to, map->base + map->translate(map, from), len); in mtd_pci_copyfrom() 71 static void mtd_pci_copyto(struct map_info *_map, unsigned long to, const void *from, ssize_t len) in mtd_pci_copyto() argument 74 memcpy_toio(map->base + map->translate(map, to), from, len); in mtd_pci_copyto()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | quota.h | 5 * This code is derived from software contributed to Berkeley by 17 * may be used to endorse or promote products derived from this software 85 * @from: User namespace that the qid is in 97 static inline struct kqid make_kqid(struct user_namespace *from, in make_kqid() argument 105 kqid.uid = make_kuid(from, qid); in make_kqid() 108 kqid.gid = make_kgid(from, qid); in make_kqid() 111 kqid.projid = make_kprojid(from, qid); in make_kqid() 147 * make_kqid_uid - Make a kqid from a kuid 148 * @uid: The kuid to make the quota identifier from 159 * make_kqid_gid - Make a kqid from [all...] |
/kernel/linux/linux-6.6/drivers/staging/hievent/ |
H A D | hievent_driver.c | 269 static ssize_t hievent_write_iter(struct kiocb *iocb, struct iov_iter *from) in hievent_write_iter() argument 273 const struct iovec *iov = iter_iov(from); in hievent_write_iter() 278 if (from->nr_segs != 2) { /* must contain 2 segments */ in hievent_write_iter() 279 pr_err("invalid nr_segs: %ld", from->nr_segs); in hievent_write_iter()
|
/kernel/linux/linux-6.6/drivers/platform/x86/intel/pmt/ |
H A D | class.c | 31 * differences from the server platforms (which use the Out Of Band in intel_pmt_is_early_client_hw() 39 pmt_memcpy64_fromio(void *to, const u64 __iomem *from, size_t count) in pmt_memcpy64_fromio() argument 44 if (!IS_ALIGNED((unsigned long)from, 8)) in pmt_memcpy64_fromio() 48 buf[i] = readq(&from[i]); in pmt_memcpy64_fromio() 53 u64 tmp = readq(&from[i]); in pmt_memcpy64_fromio() 221 * address from the parent PCI device and add offset. in intel_pmt_populate_entry()
|
/kernel/linux/linux-6.6/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | display.c | 8 * Some code and ideas taken from drivers/video/omap/ driver 198 * ref count of from-device is decremented. 200 struct omap_dss_device *omap_dss_get_next_device(struct omap_dss_device *from) in omap_dss_get_next_device() argument 212 if (from == NULL) { in omap_dss_get_next_device() 219 omap_dss_put_device(from); in omap_dss_get_next_device() 223 if (dssdev == from) { in omap_dss_get_next_device() 236 WARN(1, "'from' dssdev not found\n"); in omap_dss_get_next_device()
|
/kernel/linux/linux-6.6/include/sound/ |
H A D | pcm_params.h | 83 unsigned int from, unsigned int to) in snd_mask_set_range() 86 for (i = from; i <= to; i++) in snd_mask_set_range() 91 unsigned int from, unsigned int to) in snd_mask_reset_range() 94 for (i = from; i <= to; i++) in snd_mask_reset_range() 300 * params_access - get the access type from the hw params 310 * params_format - get the sample format from the hw params 320 * params_subformat - get the sample subformat from the hw params 331 * params_period_bytes - get the period size (in bytes) from the hw params 341 * params_width - get the number of bits of the sample format from the hw params 353 * params_physical_width - get the storage size of the sample format from th 82 snd_mask_set_range(struct snd_mask *mask, unsigned int from, unsigned int to) snd_mask_set_range() argument 90 snd_mask_reset_range(struct snd_mask *mask, unsigned int from, unsigned int to) snd_mask_reset_range() argument [all...] |
/kernel/linux/linux-6.6/rust/kernel/sync/ |
H A D | arc.rs | 7 //! underlying object when it reaches zero. It is also safe to use concurrently from multiple 10 //! It is different from the standard library's [`Arc`] in a few ways: 105 /// Coercion from `Arc<Example>` to `Arc<dyn MyTrait>`: 143 // This is to allow coercion from `Arc<T>` to `Arc<U>` if `T` can be converted to the 204 /// Constructs a new [`Arc`] from an existing [`ArcInner`]. 218 /// Returns an [`ArcBorrow`] from the given [`Arc`]. 244 // SAFETY: By the safety requirement of this function, we know that `ptr` came from in borrow() 254 // SAFETY: By the safety requirement of this function, we know that `ptr` came from in from_foreign() 304 // SAFETY: The pointer was initialised from the result of `Box::leak`. in drop() 311 fn from(ite functions 317 fn from(item: Pin<UniqueArc<T>>) -> Self { from() functions 419 fn from(b: ArcBorrow<'_, T>) -> Self { from() functions 591 fn from(obj: UniqueArc<T>) -> Self { from() functions [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/capabilities/ |
H A D | test_execve.c | 156 int from = openat(fromfd, fromname, O_RDONLY); in copy_fromat_to() local 157 if (from == -1) in copy_fromat_to() 164 ssize_t sz = read(from, buf, sizeof(buf)); in copy_fromat_to() 175 close(from); in copy_fromat_to()
|
/kernel/linux/linux-6.6/kernel/time/ |
H A D | tick-common.c | 195 int from = tick_do_timer_boot_cpu; in tick_take_do_timer_from_boot() local 197 if (from >= 0 && from != cpu) in tick_take_do_timer_from_boot() 198 smp_call_function_single(from, giveup_do_timer, &cpu, 1); in tick_take_do_timer_from_boot() 227 * secondary that comes up will take do_timer from in tick_setup_device() 402 * Transfer the do_timer job away from a dying cpu. 418 * We just set the mode and remove it from the lists. 442 * Called from the local cpu for freeze with interrupts disabled. 456 * Called from the local CPU for unfreeze or XEN resume magic. 484 * Called from syscore_suspen [all...] |