Home
last modified time | relevance | path

Searched refs:targ (Results 1 - 25 of 34) sorted by relevance

12

/kernel/linux/linux-5.10/fs/quota/
H A Dkqid.c58 * @targ: The user namespace we want a qid in.
61 * Map @kqid into the user-namespace specified by @targ and
66 * If @kqid has no mapping in @targ (qid_t)-1 is returned.
68 qid_t from_kqid(struct user_namespace *targ, struct kqid kqid) in from_kqid() argument
72 return from_kuid(targ, kqid.uid); in from_kqid()
74 return from_kgid(targ, kqid.gid); in from_kqid()
76 return from_kprojid(targ, kqid.projid); in from_kqid()
85 * @targ: The user namespace we want a qid in.
88 * Map @kqid into the user-namespace specified by @targ and
98 * If @kqid has no mapping in @targ th
101 from_kqid_munged(struct user_namespace *targ, struct kqid kqid) from_kqid_munged() argument
[all...]
/kernel/linux/linux-6.6/fs/quota/
H A Dkqid.c58 * @targ: The user namespace we want a qid in.
61 * Map @kqid into the user-namespace specified by @targ and
66 * If @kqid has no mapping in @targ (qid_t)-1 is returned.
68 qid_t from_kqid(struct user_namespace *targ, struct kqid kqid) in from_kqid() argument
72 return from_kuid(targ, kqid.uid); in from_kqid()
74 return from_kgid(targ, kqid.gid); in from_kqid()
76 return from_kprojid(targ, kqid.projid); in from_kqid()
85 * @targ: The user namespace we want a qid in.
88 * Map @kqid into the user-namespace specified by @targ and
98 * If @kqid has no mapping in @targ th
101 from_kqid_munged(struct user_namespace *targ, struct kqid kqid) from_kqid_munged() argument
[all...]
/kernel/linux/linux-5.10/fs/sysfs/
H A Dsymlink.c115 * @targ: object we're pointing to.
121 void sysfs_delete_link(struct kobject *kobj, struct kobject *targ, in sysfs_delete_link() argument
132 if (targ->sd && kernfs_ns_enabled(kobj->sd)) in sysfs_delete_link()
133 ns = targ->sd->ns; in sysfs_delete_link()
159 * @targ: object we're pointing to.
166 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *targ, in sysfs_rename_link_ns() argument
178 if (targ->sd) in sysfs_rename_link_ns()
179 old_ns = targ->sd->ns; in sysfs_rename_link_ns()
189 if (kn->symlink.target_kn->priv != targ) in sysfs_rename_link_ns()
H A Dfile.c580 * @targ: object of the kernfs_node the symlink points to.
587 * @targ.
591 int sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ, in sysfs_link_change_owner() argument
597 if (!name || !kobj->state_in_sysfs || !targ->state_in_sysfs) in sysfs_link_change_owner()
601 kn = kernfs_find_and_get_ns(kobj->sd, name, targ->sd->ns); in sysfs_link_change_owner()
608 if (kn->symlink.target_kn->priv != targ) in sysfs_link_change_owner()
/kernel/linux/linux-6.6/fs/sysfs/
H A Dsymlink.c115 * @targ: object we're pointing to.
121 void sysfs_delete_link(struct kobject *kobj, struct kobject *targ, in sysfs_delete_link() argument
132 if (targ->sd && kernfs_ns_enabled(kobj->sd)) in sysfs_delete_link()
133 ns = targ->sd->ns; in sysfs_delete_link()
159 * @targ: object we're pointing to.
166 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *targ, in sysfs_rename_link_ns() argument
178 if (targ->sd) in sysfs_rename_link_ns()
179 old_ns = targ->sd->ns; in sysfs_rename_link_ns()
189 if (kn->symlink.target_kn->priv != targ) in sysfs_rename_link_ns()
H A Dfile.c599 * @targ: object of the kernfs_node the symlink points to.
606 * @targ.
610 int sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ, in sysfs_link_change_owner() argument
616 if (!name || !kobj->state_in_sysfs || !targ->state_in_sysfs) in sysfs_link_change_owner()
620 kn = kernfs_find_and_get_ns(kobj->sd, name, targ->sd->ns); in sysfs_link_change_owner()
627 if (kn->symlink.target_kn->priv != targ) in sysfs_link_change_owner()
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
H A Dtest_core.c755 struct lesser_ns_open_thread_arg *targ = arg; in lesser_ns_open_thread_fn() local
757 targ->fd = open(targ->path, O_RDWR); in lesser_ns_open_thread_fn()
758 targ->err = errno; in lesser_ns_open_thread_fn()
774 struct lesser_ns_open_thread_arg targ = { .fd = -1 }; in test_cgcore_lesser_ns_open() local
800 targ.path = cg_test_b_procs; in test_cgcore_lesser_ns_open()
803 &targ); in test_cgcore_lesser_ns_open()
813 cg_test_b_procs_fd = targ.fd; in test_cgcore_lesser_ns_open()
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/
H A Dtest_core.c755 struct lesser_ns_open_thread_arg *targ = arg; in lesser_ns_open_thread_fn() local
757 targ->fd = open(targ->path, O_RDWR); in lesser_ns_open_thread_fn()
758 targ->err = errno; in lesser_ns_open_thread_fn()
774 struct lesser_ns_open_thread_arg targ = { .fd = -1 }; in test_cgcore_lesser_ns_open() local
800 targ.path = cg_test_b_procs; in test_cgcore_lesser_ns_open()
803 &targ); in test_cgcore_lesser_ns_open()
813 cg_test_b_procs_fd = targ.fd; in test_cgcore_lesser_ns_open()
/kernel/linux/linux-5.10/drivers/acpi/numa/
H A Dhmat.c299 unsigned int init, targ, total_size, ipds, tpds; in hmat_parse_locality() local
331 for (targ = 0; targ < tpds; targ++) { in hmat_parse_locality()
332 value = hmat_normalize(entries[init * tpds + targ], in hmat_parse_locality()
336 inits[init], targs[targ], value, in hmat_parse_locality()
340 target = find_mem_target(targs[targ]); in hmat_parse_locality()
/kernel/linux/linux-6.6/drivers/acpi/numa/
H A Dhmat.c298 unsigned int init, targ, total_size, ipds, tpds; in hmat_parse_locality() local
330 for (targ = 0; targ < tpds; targ++) { in hmat_parse_locality()
331 value = hmat_normalize(entries[init * tpds + targ], in hmat_parse_locality()
335 inits[init], targs[targ], value, in hmat_parse_locality()
339 target = find_mem_target(targs[targ]); in hmat_parse_locality()
/kernel/linux/linux-5.10/kernel/
H A Duser_namespace.c396 * @targ: The user namespace we want a uid in.
399 * Map @kuid into the user-namespace specified by @targ and
404 * If @kuid has no mapping in @targ (uid_t)-1 is returned.
406 uid_t from_kuid(struct user_namespace *targ, kuid_t kuid) in from_kuid() argument
409 return map_id_up(&targ->uid_map, __kuid_val(kuid)); in from_kuid()
415 * @targ: The user namespace we want a uid in.
418 * Map @kuid into the user-namespace specified by @targ and
429 * If @kuid has no mapping in @targ overflowuid is returned.
431 uid_t from_kuid_munged(struct user_namespace *targ, kuid_t kuid) in from_kuid_munged() argument
434 uid = from_kuid(targ, kui in from_kuid_munged()
474 from_kgid(struct user_namespace *targ, kgid_t kgid) from_kgid() argument
498 from_kgid_munged(struct user_namespace *targ, kgid_t kgid) from_kgid_munged() argument
541 from_kprojid(struct user_namespace *targ, kprojid_t kprojid) from_kprojid() argument
566 from_kprojid_munged(struct user_namespace *targ, kprojid_t kprojid) from_kprojid_munged() argument
[all...]
/kernel/linux/linux-6.6/kernel/
H A Duser_namespace.c417 * @targ: The user namespace we want a uid in.
420 * Map @kuid into the user-namespace specified by @targ and
425 * If @kuid has no mapping in @targ (uid_t)-1 is returned.
427 uid_t from_kuid(struct user_namespace *targ, kuid_t kuid) in from_kuid() argument
430 return map_id_up(&targ->uid_map, __kuid_val(kuid)); in from_kuid()
436 * @targ: The user namespace we want a uid in.
439 * Map @kuid into the user-namespace specified by @targ and
450 * If @kuid has no mapping in @targ overflowuid is returned.
452 uid_t from_kuid_munged(struct user_namespace *targ, kuid_t kuid) in from_kuid_munged() argument
455 uid = from_kuid(targ, kui in from_kuid_munged()
495 from_kgid(struct user_namespace *targ, kgid_t kgid) from_kgid() argument
519 from_kgid_munged(struct user_namespace *targ, kgid_t kgid) from_kgid_munged() argument
562 from_kprojid(struct user_namespace *targ, kprojid_t kprojid) from_kprojid() argument
587 from_kprojid_munged(struct user_namespace *targ, kprojid_t kprojid) from_kprojid_munged() argument
[all...]
/kernel/linux/linux-6.6/drivers/scsi/elx/libefc/
H A Defc_node.h104 if (node->targ) in efc_node_get_enable()
125 bool init, bool targ);
H A Defc_node.c45 u32 port_id, bool init, bool targ) in efc_node_alloc()
77 node->targ = targ; in efc_node_alloc()
314 node->nport->enable_ini, node->targ); in efc_node_handle_explicit_logo()
315 if (!pend_frames_empty || (node->nport->enable_ini && node->targ)) { in efc_node_handle_explicit_logo()
318 if (node->nport->enable_ini && node->targ) { in efc_node_handle_explicit_logo()
44 efc_node_alloc(struct efc_nport *nport, u32 port_id, bool init, bool targ) efc_node_alloc() argument
H A Defc_device.c216 if (node->init && !node->targ) { in __efc_d_initiate_shutdown()
232 } else if (node->targ && !node->init) { in __efc_d_initiate_shutdown()
248 } else if (node->init && node->targ) { in __efc_d_initiate_shutdown()
293 if (!node->init && !node->targ) { in __efc_d_initiate_shutdown()
367 node->targ = (pp->sp.spp_flags & FCP_SPPF_TARG_FCN) != 0; in efc_process_prli_payload()
1306 if (node->targ) { in __efc_d_device_ready()
1444 labels[(node->targ << 1) | (node->init)], in __efc_d_device_gone()
/kernel/linux/linux-5.10/drivers/scsi/aic7xxx/
H A Daic7xxx_osm.c906 ahc_linux_setup_tag_info(u_long arg, int instance, int targ, int32_t value) in ahc_linux_setup_tag_info() argument
909 if ((instance >= 0) && (targ >= 0) in ahc_linux_setup_tag_info()
911 && (targ < AHC_NUM_TARGETS)) { in ahc_linux_setup_tag_info()
912 aic7xxx_tag_info[instance].tag_commands[targ] = value & 0xff; in ahc_linux_setup_tag_info()
914 printk("tag_info[%d:%d] = %d\n", instance, targ, value); in ahc_linux_setup_tag_info()
927 int targ; in ahc_parse_brace_option() local
936 targ = -1; in ahc_parse_brace_option()
952 if (targ == -1) in ahc_parse_brace_option()
953 targ = 0; in ahc_parse_brace_option()
963 if (targ ! in ahc_parse_brace_option()
[all...]
H A Daic79xx_osm.c1000 ahd_linux_setup_iocell_info(u_long index, int instance, int targ, int32_t value) in ahd_linux_setup_iocell_info() argument
1030 ahd_linux_setup_tag_info(u_long arg, int instance, int targ, int32_t value) in ahd_linux_setup_tag_info() argument
1033 if ((instance >= 0) && (targ >= 0) in ahd_linux_setup_tag_info()
1035 && (targ < AHD_NUM_TARGETS)) { in ahd_linux_setup_tag_info()
1036 aic79xx_tag_info[instance].tag_commands[targ] = value & 0x1FF; in ahd_linux_setup_tag_info()
1038 printk("tag_info[%d:%d] = %d\n", instance, targ, value); in ahd_linux_setup_tag_info()
1051 int targ; in ahd_parse_brace_option() local
1060 targ = -1; in ahd_parse_brace_option()
1076 if (targ == -1) in ahd_parse_brace_option()
1077 targ in ahd_parse_brace_option()
[all...]
/kernel/linux/linux-6.6/drivers/scsi/aic7xxx/
H A Daic7xxx_osm.c905 ahc_linux_setup_tag_info(u_long arg, int instance, int targ, int32_t value) in ahc_linux_setup_tag_info() argument
908 if ((instance >= 0) && (targ >= 0) in ahc_linux_setup_tag_info()
910 && (targ < AHC_NUM_TARGETS)) { in ahc_linux_setup_tag_info()
911 aic7xxx_tag_info[instance].tag_commands[targ] = value & 0xff; in ahc_linux_setup_tag_info()
913 printk("tag_info[%d:%d] = %d\n", instance, targ, value); in ahc_linux_setup_tag_info()
926 int targ; in ahc_parse_brace_option() local
935 targ = -1; in ahc_parse_brace_option()
951 if (targ == -1) in ahc_parse_brace_option()
952 targ = 0; in ahc_parse_brace_option()
962 if (targ ! in ahc_parse_brace_option()
[all...]
H A Daic79xx_osm.c994 ahd_linux_setup_iocell_info(u_long index, int instance, int targ, int32_t value) in ahd_linux_setup_iocell_info() argument
1024 ahd_linux_setup_tag_info(u_long arg, int instance, int targ, int32_t value) in ahd_linux_setup_tag_info() argument
1027 if ((instance >= 0) && (targ >= 0) in ahd_linux_setup_tag_info()
1029 && (targ < AHD_NUM_TARGETS)) { in ahd_linux_setup_tag_info()
1030 aic79xx_tag_info[instance].tag_commands[targ] = value & 0x1FF; in ahd_linux_setup_tag_info()
1032 printk("tag_info[%d:%d] = %d\n", instance, targ, value); in ahd_linux_setup_tag_info()
1045 int targ; in ahd_parse_brace_option() local
1054 targ = -1; in ahd_parse_brace_option()
1070 if (targ == -1) in ahd_parse_brace_option()
1071 targ in ahd_parse_brace_option()
[all...]
/kernel/linux/linux-5.10/include/scsi/
H A Dscsi_transport_sas.h109 #define target_to_rphy(targ) \
110 dev_to_rphy((targ)->dev.parent)
/kernel/linux/linux-6.6/include/scsi/
H A Dscsi_transport_sas.h110 #define target_to_rphy(targ) \
111 dev_to_rphy((targ)->dev.parent)
/kernel/linux/linux-5.10/drivers/block/paride/
H A Dpg.c422 static void xs(char *buf, char *targ, int len) in xs() argument
430 l = *targ++ = c; in xs()
433 targ--; in xs()
434 *targ = '\0'; in xs()
H A Dpf.c604 static void xs(char *buf, char *targ, int offs, int len) in xs() argument
612 l = targ[j++] = buf[k + offs]; in xs()
615 targ[j] = 0; in xs()
/kernel/linux/linux-5.10/include/linux/
H A Dsysfs.h280 void sysfs_delete_link(struct kobject *dir, struct kobject *targ,
324 int sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ,
557 struct kobject *targ, in sysfs_link_change_owner()
556 sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ, const char *name, kuid_t kuid, kgid_t kgid) sysfs_link_change_owner() argument
/kernel/linux/linux-6.6/include/linux/
H A Dsysfs.h304 void sysfs_delete_link(struct kobject *dir, struct kobject *targ,
348 int sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ,
581 struct kobject *targ, in sysfs_link_change_owner()
580 sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ, const char *name, kuid_t kuid, kgid_t kgid) sysfs_link_change_owner() argument

Completed in 29 milliseconds

12