/kernel/linux/linux-5.10/fs/quota/ |
H A D | kqid.c | 58 * @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 D | kqid.c | 58 * @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 D | symlink.c | 115 * @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 D | file.c | 580 * @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 D | symlink.c | 115 * @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 D | file.c | 599 * @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 D | test_core.c | 755 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 D | test_core.c | 755 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 D | hmat.c | 299 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 D | hmat.c | 298 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 D | user_namespace.c | 396 * @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 D | user_namespace.c | 417 * @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 D | efc_node.h | 104 if (node->targ) in efc_node_get_enable() 125 bool init, bool targ);
|
H A D | efc_node.c | 45 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 D | efc_device.c | 216 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 D | aic7xxx_osm.c | 906 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 D | aic79xx_osm.c | 1000 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 D | aic7xxx_osm.c | 905 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 D | aic79xx_osm.c | 994 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 D | scsi_transport_sas.h | 109 #define target_to_rphy(targ) \ 110 dev_to_rphy((targ)->dev.parent)
|
/kernel/linux/linux-6.6/include/scsi/ |
H A D | scsi_transport_sas.h | 110 #define target_to_rphy(targ) \ 111 dev_to_rphy((targ)->dev.parent)
|
/kernel/linux/linux-5.10/drivers/block/paride/ |
H A D | pg.c | 422 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 D | pf.c | 604 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 D | sysfs.h | 280 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 D | sysfs.h | 304 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
|