subsys 62 arch/arm/mach-s3c24xx/pll-s3c2410.c .subsys = &s3c2410_subsys, subsys 75 arch/arm/mach-s3c24xx/pll-s3c2410.c .subsys = &s3c2410a_subsys, subsys 73 arch/arm/mach-s3c24xx/pll-s3c2440-12000000.c .subsys = &s3c2440_subsys, subsys 86 arch/arm/mach-s3c24xx/pll-s3c2440-12000000.c .subsys = &s3c2442_subsys, subsys 102 arch/arm/mach-s3c24xx/pll-s3c2440-16934400.c .subsys = &s3c2440_subsys, subsys 114 arch/arm/mach-s3c24xx/pll-s3c2440-16934400.c .subsys = &s3c2442_subsys, subsys 116 arch/arm/mach-s3c24xx/pm-s3c2410.c .subsys = &s3c2410_subsys, subsys 131 arch/arm/mach-s3c24xx/pm-s3c2410.c .subsys = &s3c2410a_subsys, subsys 146 arch/arm/mach-s3c24xx/pm-s3c2410.c .subsys = &s3c2440_subsys, subsys 161 arch/arm/mach-s3c24xx/pm-s3c2410.c .subsys = &s3c2442_subsys, subsys 94 arch/arm/mach-s3c24xx/pm-s3c2412.c .subsys = &s3c2412_subsys, subsys 59 arch/arm/mach-s3c24xx/pm-s3c2416.c .subsys = &s3c2416_subsys, subsys 365 arch/sh/kernel/cpu/sh4/sq.c .subsys = &cpu_subsys, subsys 769 arch/x86/kernel/cpu/microcode/core.c .subsys = &cpu_subsys, subsys 30 drivers/base/base.h struct kset subsys; subsys 45 drivers/base/base.h #define to_subsys_private(obj) container_of(obj, struct subsys_private, subsys.kobj) subsys 44 drivers/base/bus.c kset_get(&bus->p->subsys); subsys 53 drivers/base/bus.c kset_put(&bus->p->subsys); subsys 134 drivers/base/bus.c error = sysfs_create_file(&bus->p->subsys.kobj, &attr->attr); subsys 145 drivers/base/bus.c sysfs_remove_file(&bus->p->subsys.kobj, &attr->attr); subsys 355 drivers/base/bus.c struct device *subsys_find_device_by_id(struct bus_type *subsys, unsigned int id, subsys 361 drivers/base/bus.c if (!subsys) subsys 365 drivers/base/bus.c klist_iter_init_node(&subsys->p->klist_devices, &i, &hint->p->knode_bus); subsys 374 drivers/base/bus.c klist_iter_init_node(&subsys->p->klist_devices, &i, NULL); subsys 459 drivers/base/bus.c &dev->bus->p->subsys.kobj, "subsystem"); subsys 751 drivers/base/bus.c return sysfs_create_groups(&bus->p->subsys.kobj, groups); subsys 757 drivers/base/bus.c sysfs_remove_groups(&bus->p->subsys.kobj, groups); subsys 781 drivers/base/bus.c rc = kobject_synth_uevent(&bus->p->subsys.kobj, buf, count); subsys 816 drivers/base/bus.c retval = kobject_set_name(&priv->subsys.kobj, "%s", bus->name); subsys 820 drivers/base/bus.c priv->subsys.kobj.kset = bus_kset; subsys 821 drivers/base/bus.c priv->subsys.kobj.ktype = &bus_ktype; subsys 824 drivers/base/bus.c retval = kset_register(&priv->subsys); subsys 833 drivers/base/bus.c &priv->subsys.kobj); subsys 840 drivers/base/bus.c &priv->subsys.kobj); subsys 871 drivers/base/bus.c kset_unregister(&bus->p->subsys); subsys 896 drivers/base/bus.c kset_unregister(&bus->p->subsys); subsys 914 drivers/base/bus.c return &bus->p->subsys; subsys 986 drivers/base/bus.c void subsys_dev_iter_init(struct subsys_dev_iter *iter, struct bus_type *subsys, subsys 993 drivers/base/bus.c klist_iter_init_node(&subsys->p->klist_devices, &iter->ki, start_knode); subsys 1041 drivers/base/bus.c struct bus_type *subsys; subsys 1045 drivers/base/bus.c if (!sif || !sif->subsys) subsys 1048 drivers/base/bus.c subsys = bus_get(sif->subsys); subsys 1049 drivers/base/bus.c if (!subsys) subsys 1052 drivers/base/bus.c mutex_lock(&subsys->p->mutex); subsys 1053 drivers/base/bus.c list_add_tail(&sif->node, &subsys->p->interfaces); subsys 1055 drivers/base/bus.c subsys_dev_iter_init(&iter, subsys, NULL, NULL); subsys 1060 drivers/base/bus.c mutex_unlock(&subsys->p->mutex); subsys 1068 drivers/base/bus.c struct bus_type *subsys; subsys 1072 drivers/base/bus.c if (!sif || !sif->subsys) subsys 1075 drivers/base/bus.c subsys = sif->subsys; subsys 1077 drivers/base/bus.c mutex_lock(&subsys->p->mutex); subsys 1080 drivers/base/bus.c subsys_dev_iter_init(&iter, subsys, NULL, NULL); subsys 1085 drivers/base/bus.c mutex_unlock(&subsys->p->mutex); subsys 1087 drivers/base/bus.c bus_put(subsys); subsys 1096 drivers/base/bus.c static int subsys_register(struct bus_type *subsys, subsys 1103 drivers/base/bus.c err = bus_register(subsys); subsys 1113 drivers/base/bus.c err = dev_set_name(dev, "%s", subsys->name); subsys 1125 drivers/base/bus.c subsys->dev_root = dev; subsys 1134 drivers/base/bus.c bus_unregister(subsys); subsys 1156 drivers/base/bus.c int subsys_system_register(struct bus_type *subsys, subsys 1159 drivers/base/bus.c return subsys_register(subsys, groups, &system_kset->kobj); subsys 1174 drivers/base/bus.c int subsys_virtual_register(struct bus_type *subsys, subsys 1183 drivers/base/bus.c return subsys_register(subsys, groups, virtual_dir); subsys 93 drivers/base/class.c error = sysfs_create_file_ns(&cls->p->subsys.kobj, subsys 104 drivers/base/class.c sysfs_remove_file_ns(&cls->p->subsys.kobj, &attr->attr, ns); subsys 110 drivers/base/class.c kset_get(&cls->p->subsys); subsys 117 drivers/base/class.c kset_put(&cls->p->subsys); subsys 143 drivers/base/class.c return sysfs_create_groups(&cls->p->subsys.kobj, groups); subsys 149 drivers/base/class.c return sysfs_remove_groups(&cls->p->subsys.kobj, groups); subsys 166 drivers/base/class.c error = kobject_set_name(&cp->subsys.kobj, "%s", cls->name); subsys 179 drivers/base/class.c cp->subsys.kobj.kset = class_kset; subsys 181 drivers/base/class.c cp->subsys.kobj.kset = class_kset; subsys 183 drivers/base/class.c cp->subsys.kobj.ktype = &class_ktype; subsys 187 drivers/base/class.c error = kset_register(&cp->subsys); subsys 202 drivers/base/class.c kset_unregister(&cls->p->subsys); subsys 1795 drivers/base/core.c return &block_class.p->subsys.kobj; subsys 1941 drivers/base/core.c &dev->class->p->subsys.kobj, subsys 1960 drivers/base/core.c error = sysfs_create_link(&dev->class->p->subsys.kobj, subsys 1992 drivers/base/core.c sysfs_delete_link(&dev->class->p->subsys.kobj, &dev->kobj, dev_name(dev)); subsys 3050 drivers/base/core.c error = sysfs_rename_link_ns(&dev->class->p->subsys.kobj, subsys 3253 drivers/base/core.c const char *subsys; subsys 3257 drivers/base/core.c subsys = dev->class->name; subsys 3259 drivers/base/core.c subsys = dev->bus->name; subsys 3263 drivers/base/core.c pos += snprintf(hdr + pos, hdrlen - pos, "SUBSYSTEM=%s", subsys); subsys 3277 drivers/base/core.c if (strcmp(subsys, "block") == 0) subsys 3285 drivers/base/core.c } else if (strcmp(subsys, "net") == 0) { subsys 3294 drivers/base/core.c "DEVICE=+%s:%s", subsys, dev_name(dev)); subsys 1765 drivers/cpufreq/cpufreq.c .subsys = &cpu_subsys, subsys 120 drivers/cpufreq/s3c2410-cpufreq.c .subsys = &s3c2410_subsys, subsys 147 drivers/cpufreq/s3c2410-cpufreq.c .subsys = &s3c2410a_subsys, subsys 244 drivers/cpufreq/s3c2412-cpufreq.c .subsys = &s3c2412_subsys, subsys 284 drivers/cpufreq/s3c2440-cpufreq.c .subsys = &s3c2440_subsys, subsys 298 drivers/cpufreq/s3c2440-cpufreq.c .subsys = &s3c2442_subsys, subsys 388 drivers/dax/bus.c struct dev_pagemap *pgmap, enum dev_dax_subsys subsys) subsys 428 drivers/dax/bus.c if (subsys == DEV_DAX_BUS) subsys 22 drivers/dax/bus.h struct dev_pagemap *pgmap, enum dev_dax_subsys subsys); subsys 31 drivers/dax/bus.h struct dev_dax *__dax_pmem_probe(struct device *dev, enum dev_dax_subsys subsys); subsys 10 drivers/dax/pmem/core.c struct dev_dax *__dax_pmem_probe(struct device *dev, enum dev_dax_subsys subsys) subsys 61 drivers/dax/pmem/core.c dev_dax = __devm_create_dev_dax(dax_region, id, &pgmap, subsys); subsys 347 drivers/infiniband/hw/ocrdma/ocrdma_hw.c u8 opcode, u8 subsys, u32 cmd_len) subsys 349 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd_hdr->subsys_op = (opcode | (subsys << OCRDMA_MCH_SUBSYS_SHIFT)); subsys 192 drivers/input/misc/wistron_btns.c static u16 bios_get_default_setting(u8 subsys) subsys 198 drivers/input/misc/wistron_btns.c regs.ebx = 0x0200 | subsys; subsys 204 drivers/input/misc/wistron_btns.c static void bios_set_state(u8 subsys, int enable) subsys 210 drivers/input/misc/wistron_btns.c regs.ebx = (enable ? 0x0100 : 0x0000) | subsys; subsys 368 drivers/input/touchscreen/chipone_icn8505.c const char *subsys = "unknown"; subsys 381 drivers/input/touchscreen/chipone_icn8505.c subsys = obj->string.pointer; subsys 390 drivers/input/touchscreen/chipone_icn8505.c "chipone/icn8505-%s.fw", subsys); subsys 1481 drivers/misc/mic/scif/scif_api.c si->subsys = &scif_peer_bus; subsys 1456 drivers/net/ethernet/emulex/benet/be_cmds.c u8 subsys = 0, opcode = 0; subsys 1467 drivers/net/ethernet/emulex/benet/be_cmds.c subsys = CMD_SUBSYSTEM_COMMON; subsys 1471 drivers/net/ethernet/emulex/benet/be_cmds.c subsys = CMD_SUBSYSTEM_COMMON; subsys 1475 drivers/net/ethernet/emulex/benet/be_cmds.c subsys = CMD_SUBSYSTEM_ETH; subsys 1479 drivers/net/ethernet/emulex/benet/be_cmds.c subsys = CMD_SUBSYSTEM_ETH; subsys 1483 drivers/net/ethernet/emulex/benet/be_cmds.c subsys = CMD_SUBSYSTEM_COMMON; subsys 1490 drivers/net/ethernet/emulex/benet/be_cmds.c be_wrb_cmd_hdr_prepare(&req->hdr, subsys, opcode, sizeof(*req), wrb, subsys 701 drivers/net/rionet.c .subsys = &rio_bus_type, subsys 94 drivers/nvme/host/core.c static void nvme_put_subsystem(struct nvme_subsystem *subsys); subsys 440 drivers/nvme/host/core.c ida_simple_remove(&head->subsys->ns_ida, head->instance); subsys 443 drivers/nvme/host/core.c nvme_put_subsystem(head->subsys); subsys 1358 drivers/nvme/host/core.c mutex_lock(&ctrl->subsys->lock); subsys 1359 drivers/nvme/host/core.c nvme_mpath_start_freeze(ctrl->subsys); subsys 1360 drivers/nvme/host/core.c nvme_mpath_wait_freeze(ctrl->subsys); subsys 1389 drivers/nvme/host/core.c nvme_mpath_unfreeze(ctrl->subsys); subsys 1390 drivers/nvme/host/core.c mutex_unlock(&ctrl->subsys->lock); subsys 1790 drivers/nvme/host/core.c atomic_bs = (1 + ns->ctrl->subsys->awupf) * bs; subsys 2458 drivers/nvme/host/core.c static void nvme_init_subnqn(struct nvme_subsystem *subsys, struct nvme_ctrl *ctrl, subsys 2467 drivers/nvme/host/core.c strlcpy(subsys->subnqn, id->subnqn, NVMF_NQN_SIZE); subsys 2476 drivers/nvme/host/core.c off = snprintf(subsys->subnqn, NVMF_NQN_SIZE, subsys 2479 drivers/nvme/host/core.c memcpy(subsys->subnqn + off, id->sn, sizeof(id->sn)); subsys 2481 drivers/nvme/host/core.c memcpy(subsys->subnqn + off, id->mn, sizeof(id->mn)); subsys 2483 drivers/nvme/host/core.c memset(subsys->subnqn + off, 0, sizeof(subsys->subnqn) - off); subsys 2488 drivers/nvme/host/core.c struct nvme_subsystem *subsys = subsys 2491 drivers/nvme/host/core.c if (subsys->instance >= 0) subsys 2492 drivers/nvme/host/core.c ida_simple_remove(&nvme_instance_ida, subsys->instance); subsys 2493 drivers/nvme/host/core.c kfree(subsys); subsys 2498 drivers/nvme/host/core.c struct nvme_subsystem *subsys = subsys 2502 drivers/nvme/host/core.c list_del(&subsys->entry); subsys 2505 drivers/nvme/host/core.c ida_destroy(&subsys->ns_ida); subsys 2506 drivers/nvme/host/core.c device_del(&subsys->dev); subsys 2507 drivers/nvme/host/core.c put_device(&subsys->dev); subsys 2510 drivers/nvme/host/core.c static void nvme_put_subsystem(struct nvme_subsystem *subsys) subsys 2512 drivers/nvme/host/core.c kref_put(&subsys->ref, nvme_destroy_subsystem); subsys 2517 drivers/nvme/host/core.c struct nvme_subsystem *subsys; subsys 2532 drivers/nvme/host/core.c list_for_each_entry(subsys, &nvme_subsystems, entry) { subsys 2533 drivers/nvme/host/core.c if (strcmp(subsys->subnqn, subsysnqn)) subsys 2535 drivers/nvme/host/core.c if (!kref_get_unless_zero(&subsys->ref)) subsys 2537 drivers/nvme/host/core.c return subsys; subsys 2551 drivers/nvme/host/core.c struct nvme_subsystem *subsys = subsys 2554 drivers/nvme/host/core.c return snprintf(buf, PAGE_SIZE, "%s\n", subsys->subnqn); subsys 2562 drivers/nvme/host/core.c struct nvme_subsystem *subsys = \ subsys 2565 drivers/nvme/host/core.c (int)sizeof(subsys->field), subsys->field); \ subsys 2593 drivers/nvme/host/core.c static bool nvme_validate_cntlid(struct nvme_subsystem *subsys, subsys 2600 drivers/nvme/host/core.c list_for_each_entry(tmp, &subsys->ctrls, subsys_entry) { subsys 2626 drivers/nvme/host/core.c struct nvme_subsystem *subsys, *found; subsys 2629 drivers/nvme/host/core.c subsys = kzalloc(sizeof(*subsys), GFP_KERNEL); subsys 2630 drivers/nvme/host/core.c if (!subsys) subsys 2633 drivers/nvme/host/core.c subsys->instance = -1; subsys 2634 drivers/nvme/host/core.c mutex_init(&subsys->lock); subsys 2635 drivers/nvme/host/core.c kref_init(&subsys->ref); subsys 2636 drivers/nvme/host/core.c INIT_LIST_HEAD(&subsys->ctrls); subsys 2637 drivers/nvme/host/core.c INIT_LIST_HEAD(&subsys->nsheads); subsys 2638 drivers/nvme/host/core.c nvme_init_subnqn(subsys, ctrl, id); subsys 2639 drivers/nvme/host/core.c memcpy(subsys->serial, id->sn, sizeof(subsys->serial)); subsys 2640 drivers/nvme/host/core.c memcpy(subsys->model, id->mn, sizeof(subsys->model)); subsys 2641 drivers/nvme/host/core.c memcpy(subsys->firmware_rev, id->fr, sizeof(subsys->firmware_rev)); subsys 2642 drivers/nvme/host/core.c subsys->vendor_id = le16_to_cpu(id->vid); subsys 2643 drivers/nvme/host/core.c subsys->cmic = id->cmic; subsys 2644 drivers/nvme/host/core.c subsys->awupf = le16_to_cpu(id->awupf); subsys 2646 drivers/nvme/host/core.c subsys->iopolicy = NVME_IOPOLICY_NUMA; subsys 2649 drivers/nvme/host/core.c subsys->dev.class = nvme_subsys_class; subsys 2650 drivers/nvme/host/core.c subsys->dev.release = nvme_release_subsystem; subsys 2651 drivers/nvme/host/core.c subsys->dev.groups = nvme_subsys_attrs_groups; subsys 2652 drivers/nvme/host/core.c dev_set_name(&subsys->dev, "nvme-subsys%d", ctrl->instance); subsys 2653 drivers/nvme/host/core.c device_initialize(&subsys->dev); subsys 2656 drivers/nvme/host/core.c found = __nvme_find_get_subsystem(subsys->subnqn); subsys 2658 drivers/nvme/host/core.c put_device(&subsys->dev); subsys 2659 drivers/nvme/host/core.c subsys = found; subsys 2661 drivers/nvme/host/core.c if (!nvme_validate_cntlid(subsys, ctrl, id)) { subsys 2666 drivers/nvme/host/core.c ret = device_add(&subsys->dev); subsys 2670 drivers/nvme/host/core.c put_device(&subsys->dev); subsys 2673 drivers/nvme/host/core.c ida_init(&subsys->ns_ida); subsys 2674 drivers/nvme/host/core.c list_add_tail(&subsys->entry, &nvme_subsystems); subsys 2677 drivers/nvme/host/core.c ret = sysfs_create_link(&subsys->dev.kobj, &ctrl->device->kobj, subsys 2686 drivers/nvme/host/core.c subsys->instance = ctrl->instance; subsys 2687 drivers/nvme/host/core.c ctrl->subsys = subsys; subsys 2688 drivers/nvme/host/core.c list_add_tail(&ctrl->subsys_entry, &subsys->ctrls); subsys 2693 drivers/nvme/host/core.c nvme_put_subsystem(subsys); subsys 3039 drivers/nvme/host/core.c struct nvme_subsystem *subsys = head->subsys; subsys 3040 drivers/nvme/host/core.c int serial_len = sizeof(subsys->serial); subsys 3041 drivers/nvme/host/core.c int model_len = sizeof(subsys->model); subsys 3052 drivers/nvme/host/core.c while (serial_len > 0 && (subsys->serial[serial_len - 1] == ' ' || subsys 3053 drivers/nvme/host/core.c subsys->serial[serial_len - 1] == '\0')) subsys 3055 drivers/nvme/host/core.c while (model_len > 0 && (subsys->model[model_len - 1] == ' ' || subsys 3056 drivers/nvme/host/core.c subsys->model[model_len - 1] == '\0')) subsys 3059 drivers/nvme/host/core.c return sprintf(buf, "nvme.%04x-%*phN-%*phN-%08x\n", subsys->vendor_id, subsys 3060 drivers/nvme/host/core.c serial_len, subsys->serial, model_len, subsys->model, subsys 3165 drivers/nvme/host/core.c (int)sizeof(ctrl->subsys->field), ctrl->subsys->field); \ subsys 3238 drivers/nvme/host/core.c return snprintf(buf, PAGE_SIZE, "%s\n", ctrl->subsys->subnqn); subsys 3294 drivers/nvme/host/core.c static struct nvme_ns_head *__nvme_find_ns_head(struct nvme_subsystem *subsys, subsys 3299 drivers/nvme/host/core.c lockdep_assert_held(&subsys->lock); subsys 3301 drivers/nvme/host/core.c list_for_each_entry(h, &subsys->nsheads, entry) { subsys 3309 drivers/nvme/host/core.c static int __nvme_check_ids(struct nvme_subsystem *subsys, subsys 3314 drivers/nvme/host/core.c lockdep_assert_held(&subsys->lock); subsys 3316 drivers/nvme/host/core.c list_for_each_entry(h, &subsys->nsheads, entry) { subsys 3340 drivers/nvme/host/core.c ret = ida_simple_get(&ctrl->subsys->ns_ida, 1, 0, GFP_KERNEL); subsys 3348 drivers/nvme/host/core.c head->subsys = ctrl->subsys; subsys 3356 drivers/nvme/host/core.c ret = __nvme_check_ids(ctrl->subsys, head); subsys 3367 drivers/nvme/host/core.c list_add_tail(&head->entry, &ctrl->subsys->nsheads); subsys 3369 drivers/nvme/host/core.c kref_get(&ctrl->subsys->ref); subsys 3375 drivers/nvme/host/core.c ida_simple_remove(&ctrl->subsys->ns_ida, head->instance); subsys 3392 drivers/nvme/host/core.c mutex_lock(&ctrl->subsys->lock); subsys 3394 drivers/nvme/host/core.c head = __nvme_find_ns_head(ctrl->subsys, nsid); subsys 3421 drivers/nvme/host/core.c mutex_unlock(&ctrl->subsys->lock); subsys 3571 drivers/nvme/host/core.c mutex_lock(&ctrl->subsys->lock); subsys 3573 drivers/nvme/host/core.c mutex_unlock(&ctrl->subsys->lock); subsys 3593 drivers/nvme/host/core.c mutex_lock(&ns->ctrl->subsys->lock); subsys 3595 drivers/nvme/host/core.c mutex_unlock(&ns->ctrl->subsys->lock); subsys 4004 drivers/nvme/host/core.c struct nvme_subsystem *subsys = ctrl->subsys; subsys 4006 drivers/nvme/host/core.c if (subsys && ctrl->instance != subsys->instance) subsys 4013 drivers/nvme/host/core.c if (subsys) { subsys 4016 drivers/nvme/host/core.c sysfs_remove_link(&subsys->dev.kobj, dev_name(ctrl->device)); subsys 4022 drivers/nvme/host/core.c if (subsys) subsys 4023 drivers/nvme/host/core.c nvme_put_subsystem(subsys); subsys 15 drivers/nvme/host/multipath.c void nvme_mpath_unfreeze(struct nvme_subsystem *subsys) subsys 19 drivers/nvme/host/multipath.c lockdep_assert_held(&subsys->lock); subsys 20 drivers/nvme/host/multipath.c list_for_each_entry(h, &subsys->nsheads, entry) subsys 25 drivers/nvme/host/multipath.c void nvme_mpath_wait_freeze(struct nvme_subsystem *subsys) subsys 29 drivers/nvme/host/multipath.c lockdep_assert_held(&subsys->lock); subsys 30 drivers/nvme/host/multipath.c list_for_each_entry(h, &subsys->nsheads, entry) subsys 35 drivers/nvme/host/multipath.c void nvme_mpath_start_freeze(struct nvme_subsystem *subsys) subsys 39 drivers/nvme/host/multipath.c lockdep_assert_held(&subsys->lock); subsys 40 drivers/nvme/host/multipath.c list_for_each_entry(h, &subsys->nsheads, entry) subsys 58 drivers/nvme/host/multipath.c sprintf(disk_name, "nvme%dc%dn%d", ctrl->subsys->instance, subsys 62 drivers/nvme/host/multipath.c sprintf(disk_name, "nvme%dn%d", ctrl->subsys->instance, subsys 186 drivers/nvme/host/multipath.c if (READ_ONCE(head->subsys->iopolicy) == NVME_IOPOLICY_NUMA) subsys 271 drivers/nvme/host/multipath.c if (READ_ONCE(head->subsys->iopolicy) == NVME_IOPOLICY_RR && ns) subsys 377 drivers/nvme/host/multipath.c if (!(ctrl->subsys->cmic & (1 << 1)) || !multipath) subsys 403 drivers/nvme/host/multipath.c ctrl->subsys->instance, head->instance); subsys 422 drivers/nvme/host/multipath.c device_add_disk(&head->subsys->dev, head->disk, subsys 601 drivers/nvme/host/multipath.c struct nvme_subsystem *subsys = subsys 605 drivers/nvme/host/multipath.c nvme_iopolicy_names[READ_ONCE(subsys->iopolicy)]); subsys 611 drivers/nvme/host/multipath.c struct nvme_subsystem *subsys = subsys 617 drivers/nvme/host/multipath.c WRITE_ONCE(subsys->iopolicy, i); subsys 690 drivers/nvme/host/multipath.c if (!multipath || !ctrl->subsys || !(ctrl->subsys->cmic & (1 << 3))) subsys 204 drivers/nvme/host/nvme.h struct nvme_subsystem *subsys; subsys 336 drivers/nvme/host/nvme.h struct nvme_subsystem *subsys; subsys 519 drivers/nvme/host/nvme.h void nvme_mpath_unfreeze(struct nvme_subsystem *subsys); subsys 520 drivers/nvme/host/nvme.h void nvme_mpath_wait_freeze(struct nvme_subsystem *subsys); subsys 521 drivers/nvme/host/nvme.h void nvme_mpath_start_freeze(struct nvme_subsystem *subsys); subsys 608 drivers/nvme/host/nvme.h if (ctrl->subsys->cmic & (1 << 3)) subsys 619 drivers/nvme/host/nvme.h static inline void nvme_mpath_unfreeze(struct nvme_subsystem *subsys) subsys 622 drivers/nvme/host/nvme.h static inline void nvme_mpath_wait_freeze(struct nvme_subsystem *subsys) subsys 625 drivers/nvme/host/nvme.h static inline void nvme_mpath_start_freeze(struct nvme_subsystem *subsys) subsys 109 drivers/nvme/target/admin-cmd.c list_for_each_entry_rcu(ns, &ctrl->subsys->namespaces, dev_link) { subsys 226 drivers/nvme/target/admin-cmd.c list_for_each_entry_rcu(ns, &ctrl->subsys->namespaces, dev_link) subsys 303 drivers/nvme/target/admin-cmd.c bin2hex(id->sn, &ctrl->subsys->serial, subsys 304 drivers/nvme/target/admin-cmd.c min(sizeof(ctrl->subsys->serial), sizeof(id->sn) / 2)); subsys 322 drivers/nvme/target/admin-cmd.c id->ver = cpu_to_le32(ctrl->subsys->ver); subsys 355 drivers/nvme/target/admin-cmd.c id->nn = cpu_to_le32(ctrl->subsys->max_nsid); subsys 376 drivers/nvme/target/admin-cmd.c strlcpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); subsys 493 drivers/nvme/target/admin-cmd.c list_for_each_entry_rcu(ns, &ctrl->subsys->namespaces, dev_link) { subsys 598 drivers/nvme/target/admin-cmd.c struct nvmet_subsys *subsys = req->sq->ctrl->subsys; subsys 607 drivers/nvme/target/admin-cmd.c mutex_lock(&subsys->lock); subsys 624 drivers/nvme/target/admin-cmd.c nvmet_ns_changed(subsys, req->ns->nsid); subsys 625 drivers/nvme/target/admin-cmd.c mutex_unlock(&subsys->lock); subsys 657 drivers/nvme/target/admin-cmd.c struct nvmet_subsys *subsys = req->sq->ctrl->subsys; subsys 664 drivers/nvme/target/admin-cmd.c (subsys->max_qid - 1) | ((subsys->max_qid - 1) << 16)); subsys 689 drivers/nvme/target/admin-cmd.c struct nvmet_subsys *subsys = req->sq->ctrl->subsys; subsys 697 drivers/nvme/target/admin-cmd.c mutex_lock(&subsys->lock); subsys 703 drivers/nvme/target/admin-cmd.c mutex_unlock(&subsys->lock); subsys 720 drivers/nvme/target/admin-cmd.c struct nvmet_subsys *subsys = req->sq->ctrl->subsys; subsys 754 drivers/nvme/target/admin-cmd.c (subsys->max_qid-1) | ((subsys->max_qid-1) << 16)); subsys 314 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys = ns->subsys; subsys 318 drivers/nvme/target/configfs.c mutex_lock(&subsys->lock); subsys 334 drivers/nvme/target/configfs.c mutex_unlock(&subsys->lock); subsys 338 drivers/nvme/target/configfs.c mutex_unlock(&subsys->lock); subsys 361 drivers/nvme/target/configfs.c mutex_lock(&ns->subsys->lock); subsys 378 drivers/nvme/target/configfs.c mutex_unlock(&ns->subsys->lock); subsys 395 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys = ns->subsys; subsys 399 drivers/nvme/target/configfs.c mutex_lock(&subsys->lock); subsys 410 drivers/nvme/target/configfs.c mutex_unlock(&subsys->lock); subsys 425 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys = ns->subsys; subsys 431 drivers/nvme/target/configfs.c mutex_lock(&subsys->lock); subsys 456 drivers/nvme/target/configfs.c mutex_unlock(&subsys->lock); subsys 489 drivers/nvme/target/configfs.c nvmet_send_ana_event(ns->subsys, NULL); subsys 534 drivers/nvme/target/configfs.c mutex_lock(&ns->subsys->lock); subsys 537 drivers/nvme/target/configfs.c mutex_unlock(&ns->subsys->lock); subsys 542 drivers/nvme/target/configfs.c mutex_unlock(&ns->subsys->lock); subsys 581 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys = namespaces_to_subsys(&group->cg_item); subsys 597 drivers/nvme/target/configfs.c ns = nvmet_ns_alloc(subsys, nsid); subsys 602 drivers/nvme/target/configfs.c pr_info("adding nsid %d to subsystem %s\n", nsid, subsys->subsysnqn); subsys 622 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys; subsys 630 drivers/nvme/target/configfs.c subsys = to_subsys(target); subsys 634 drivers/nvme/target/configfs.c link->subsys = subsys; subsys 639 drivers/nvme/target/configfs.c if (p->subsys == subsys) subsys 650 drivers/nvme/target/configfs.c nvmet_port_disc_changed(port, subsys); subsys 665 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys = to_subsys(target); subsys 670 drivers/nvme/target/configfs.c if (p->subsys == subsys) subsys 678 drivers/nvme/target/configfs.c nvmet_port_del_ctrls(port, subsys); subsys 679 drivers/nvme/target/configfs.c nvmet_port_disc_changed(port, subsys); subsys 700 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys = to_subsys(parent->ci_parent); subsys 718 drivers/nvme/target/configfs.c if (subsys->allow_any_host) { subsys 724 drivers/nvme/target/configfs.c list_for_each_entry(p, &subsys->hosts, entry) { subsys 728 drivers/nvme/target/configfs.c list_add_tail(&link->entry, &subsys->hosts); subsys 729 drivers/nvme/target/configfs.c nvmet_subsys_disc_changed(subsys, host); subsys 742 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys = to_subsys(parent->ci_parent); subsys 747 drivers/nvme/target/configfs.c list_for_each_entry(p, &subsys->hosts, entry) { subsys 756 drivers/nvme/target/configfs.c nvmet_subsys_disc_changed(subsys, host); subsys 782 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys = to_subsys(item); subsys 790 drivers/nvme/target/configfs.c if (allow_any_host && !list_empty(&subsys->hosts)) { subsys 796 drivers/nvme/target/configfs.c if (subsys->allow_any_host != allow_any_host) { subsys 797 drivers/nvme/target/configfs.c subsys->allow_any_host = allow_any_host; subsys 798 drivers/nvme/target/configfs.c nvmet_subsys_disc_changed(subsys, NULL); subsys 811 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys = to_subsys(item); subsys 813 drivers/nvme/target/configfs.c if (NVME_TERTIARY(subsys->ver)) subsys 815 drivers/nvme/target/configfs.c (int)NVME_MAJOR(subsys->ver), subsys 816 drivers/nvme/target/configfs.c (int)NVME_MINOR(subsys->ver), subsys 817 drivers/nvme/target/configfs.c (int)NVME_TERTIARY(subsys->ver)); subsys 820 drivers/nvme/target/configfs.c (int)NVME_MAJOR(subsys->ver), subsys 821 drivers/nvme/target/configfs.c (int)NVME_MINOR(subsys->ver)); subsys 827 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys = to_subsys(item); subsys 837 drivers/nvme/target/configfs.c subsys->ver = NVME_VS(major, minor, tertiary); subsys 847 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys = to_subsys(item); subsys 849 drivers/nvme/target/configfs.c return snprintf(page, PAGE_SIZE, "%llx\n", subsys->serial); subsys 855 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys = to_subsys(item); subsys 858 drivers/nvme/target/configfs.c sscanf(page, "%llx\n", &subsys->serial); subsys 877 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys = to_subsys(item); subsys 879 drivers/nvme/target/configfs.c nvmet_subsys_del_ctrls(subsys); subsys 880 drivers/nvme/target/configfs.c nvmet_subsys_put(subsys); subsys 896 drivers/nvme/target/configfs.c struct nvmet_subsys *subsys; subsys 903 drivers/nvme/target/configfs.c subsys = nvmet_subsys_alloc(name, NVME_NQN_NVME); subsys 904 drivers/nvme/target/configfs.c if (IS_ERR(subsys)) subsys 905 drivers/nvme/target/configfs.c return ERR_CAST(subsys); subsys 907 drivers/nvme/target/configfs.c config_group_init_type_name(&subsys->group, name, &nvmet_subsys_type); subsys 909 drivers/nvme/target/configfs.c config_group_init_type_name(&subsys->namespaces_group, subsys 911 drivers/nvme/target/configfs.c configfs_add_default_group(&subsys->namespaces_group, &subsys->group); subsys 913 drivers/nvme/target/configfs.c config_group_init_type_name(&subsys->allowed_hosts_group, subsys 915 drivers/nvme/target/configfs.c configfs_add_default_group(&subsys->allowed_hosts_group, subsys 916 drivers/nvme/target/configfs.c &subsys->group); subsys 918 drivers/nvme/target/configfs.c return &subsys->group; subsys 116 drivers/nvme/target/core.c static unsigned int nvmet_max_nsid(struct nvmet_subsys *subsys) subsys 120 drivers/nvme/target/core.c if (list_empty(&subsys->namespaces)) subsys 123 drivers/nvme/target/core.c ns = list_last_entry(&subsys->namespaces, struct nvmet_ns, dev_link); subsys 220 drivers/nvme/target/core.c void nvmet_ns_changed(struct nvmet_subsys *subsys, u32 nsid) subsys 224 drivers/nvme/target/core.c lockdep_assert_held(&subsys->lock); subsys 226 drivers/nvme/target/core.c list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { subsys 236 drivers/nvme/target/core.c void nvmet_send_ana_event(struct nvmet_subsys *subsys, subsys 241 drivers/nvme/target/core.c mutex_lock(&subsys->lock); subsys 242 drivers/nvme/target/core.c list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { subsys 250 drivers/nvme/target/core.c mutex_unlock(&subsys->lock); subsys 259 drivers/nvme/target/core.c nvmet_send_ana_event(p->subsys, port); subsys 286 drivers/nvme/target/core.c void nvmet_port_del_ctrls(struct nvmet_port *port, struct nvmet_subsys *subsys) subsys 290 drivers/nvme/target/core.c mutex_lock(&subsys->lock); subsys 291 drivers/nvme/target/core.c list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { subsys 295 drivers/nvme/target/core.c mutex_unlock(&subsys->lock); subsys 391 drivers/nvme/target/core.c list_for_each_entry_rcu(ns, &ctrl->subsys->namespaces, dev_link) { subsys 515 drivers/nvme/target/core.c struct nvmet_subsys *subsys = ns->subsys; subsys 519 drivers/nvme/target/core.c mutex_lock(&subsys->lock); subsys 525 drivers/nvme/target/core.c if (subsys->nr_namespaces == NVMET_MAX_NAMESPACES) subsys 538 drivers/nvme/target/core.c list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) subsys 546 drivers/nvme/target/core.c if (ns->nsid > subsys->max_nsid) subsys 547 drivers/nvme/target/core.c subsys->max_nsid = ns->nsid; subsys 553 drivers/nvme/target/core.c if (list_empty(&subsys->namespaces)) { subsys 554 drivers/nvme/target/core.c list_add_tail_rcu(&ns->dev_link, &subsys->namespaces); subsys 558 drivers/nvme/target/core.c list_for_each_entry_rcu(old, &subsys->namespaces, dev_link, subsys 559 drivers/nvme/target/core.c lockdep_is_held(&subsys->lock)) { subsys 567 drivers/nvme/target/core.c subsys->nr_namespaces++; subsys 569 drivers/nvme/target/core.c nvmet_ns_changed(subsys, ns->nsid); subsys 573 drivers/nvme/target/core.c mutex_unlock(&subsys->lock); subsys 576 drivers/nvme/target/core.c list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) subsys 585 drivers/nvme/target/core.c struct nvmet_subsys *subsys = ns->subsys; subsys 588 drivers/nvme/target/core.c mutex_lock(&subsys->lock); subsys 594 drivers/nvme/target/core.c if (ns->nsid == subsys->max_nsid) subsys 595 drivers/nvme/target/core.c subsys->max_nsid = nvmet_max_nsid(subsys); subsys 597 drivers/nvme/target/core.c list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) subsys 600 drivers/nvme/target/core.c mutex_unlock(&subsys->lock); subsys 615 drivers/nvme/target/core.c mutex_lock(&subsys->lock); subsys 617 drivers/nvme/target/core.c subsys->nr_namespaces--; subsys 618 drivers/nvme/target/core.c nvmet_ns_changed(subsys, ns->nsid); subsys 621 drivers/nvme/target/core.c mutex_unlock(&subsys->lock); subsys 636 drivers/nvme/target/core.c struct nvmet_ns *nvmet_ns_alloc(struct nvmet_subsys *subsys, u32 nsid) subsys 648 drivers/nvme/target/core.c ns->subsys = subsys; subsys 902 drivers/nvme/target/core.c else if (req->sq->ctrl->subsys->type == NVME_NQN_DISC) subsys 1091 drivers/nvme/target/core.c struct nvmet_subsys *subsys; subsys 1095 drivers/nvme/target/core.c subsys = nvmet_find_get_subsys(req->port, subsysnqn); subsys 1096 drivers/nvme/target/core.c if (!subsys) { subsys 1103 drivers/nvme/target/core.c mutex_lock(&subsys->lock); subsys 1104 drivers/nvme/target/core.c list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { subsys 1124 drivers/nvme/target/core.c mutex_unlock(&subsys->lock); subsys 1125 drivers/nvme/target/core.c nvmet_subsys_put(subsys); subsys 1145 drivers/nvme/target/core.c bool nvmet_host_allowed(struct nvmet_subsys *subsys, const char *hostnqn) subsys 1151 drivers/nvme/target/core.c if (subsys->allow_any_host) subsys 1154 drivers/nvme/target/core.c if (subsys->type == NVME_NQN_DISC) /* allow all access to disc subsys */ subsys 1157 drivers/nvme/target/core.c list_for_each_entry(p, &subsys->hosts, entry) { subsys 1178 drivers/nvme/target/core.c list_for_each_entry_rcu(ns, &ctrl->subsys->namespaces, dev_link, subsys 1179 drivers/nvme/target/core.c lockdep_is_held(&ctrl->subsys->lock)) subsys 1209 drivers/nvme/target/core.c struct nvmet_subsys *subsys; subsys 1215 drivers/nvme/target/core.c subsys = nvmet_find_get_subsys(req->port, subsysnqn); subsys 1216 drivers/nvme/target/core.c if (!subsys) { subsys 1225 drivers/nvme/target/core.c if (!nvmet_host_allowed(subsys, hostnqn)) { subsys 1254 drivers/nvme/target/core.c ctrl->subsys = subsys; subsys 1262 drivers/nvme/target/core.c ctrl->cqs = kcalloc(subsys->max_qid + 1, subsys 1268 drivers/nvme/target/core.c ctrl->sqs = kcalloc(subsys->max_qid + 1, subsys 1289 drivers/nvme/target/core.c if ((ctrl->subsys->type == NVME_NQN_DISC) && !kato) subsys 1300 drivers/nvme/target/core.c mutex_lock(&subsys->lock); subsys 1301 drivers/nvme/target/core.c list_add_tail(&ctrl->subsys_entry, &subsys->ctrls); subsys 1303 drivers/nvme/target/core.c mutex_unlock(&subsys->lock); subsys 1317 drivers/nvme/target/core.c nvmet_subsys_put(subsys); subsys 1325 drivers/nvme/target/core.c struct nvmet_subsys *subsys = ctrl->subsys; subsys 1327 drivers/nvme/target/core.c mutex_lock(&subsys->lock); subsys 1330 drivers/nvme/target/core.c mutex_unlock(&subsys->lock); subsys 1344 drivers/nvme/target/core.c nvmet_subsys_put(subsys); subsys 1379 drivers/nvme/target/core.c if (!strncmp(p->subsys->subsysnqn, subsysnqn, subsys 1381 drivers/nvme/target/core.c if (!kref_get_unless_zero(&p->subsys->ref)) subsys 1384 drivers/nvme/target/core.c return p->subsys; subsys 1394 drivers/nvme/target/core.c struct nvmet_subsys *subsys; subsys 1396 drivers/nvme/target/core.c subsys = kzalloc(sizeof(*subsys), GFP_KERNEL); subsys 1397 drivers/nvme/target/core.c if (!subsys) subsys 1400 drivers/nvme/target/core.c subsys->ver = NVME_VS(1, 3, 0); /* NVMe 1.3.0 */ subsys 1402 drivers/nvme/target/core.c get_random_bytes(&subsys->serial, sizeof(subsys->serial)); subsys 1406 drivers/nvme/target/core.c subsys->max_qid = NVMET_NR_QUEUES; subsys 1409 drivers/nvme/target/core.c subsys->max_qid = 0; subsys 1413 drivers/nvme/target/core.c kfree(subsys); subsys 1416 drivers/nvme/target/core.c subsys->type = type; subsys 1417 drivers/nvme/target/core.c subsys->subsysnqn = kstrndup(subsysnqn, NVMF_NQN_SIZE, subsys 1419 drivers/nvme/target/core.c if (!subsys->subsysnqn) { subsys 1420 drivers/nvme/target/core.c kfree(subsys); subsys 1424 drivers/nvme/target/core.c kref_init(&subsys->ref); subsys 1426 drivers/nvme/target/core.c mutex_init(&subsys->lock); subsys 1427 drivers/nvme/target/core.c INIT_LIST_HEAD(&subsys->namespaces); subsys 1428 drivers/nvme/target/core.c INIT_LIST_HEAD(&subsys->ctrls); subsys 1429 drivers/nvme/target/core.c INIT_LIST_HEAD(&subsys->hosts); subsys 1431 drivers/nvme/target/core.c return subsys; subsys 1436 drivers/nvme/target/core.c struct nvmet_subsys *subsys = subsys 1439 drivers/nvme/target/core.c WARN_ON_ONCE(!list_empty(&subsys->namespaces)); subsys 1441 drivers/nvme/target/core.c kfree(subsys->subsysnqn); subsys 1442 drivers/nvme/target/core.c kfree(subsys); subsys 1445 drivers/nvme/target/core.c void nvmet_subsys_del_ctrls(struct nvmet_subsys *subsys) subsys 1449 drivers/nvme/target/core.c mutex_lock(&subsys->lock); subsys 1450 drivers/nvme/target/core.c list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) subsys 1452 drivers/nvme/target/core.c mutex_unlock(&subsys->lock); subsys 1455 drivers/nvme/target/core.c void nvmet_subsys_put(struct nvmet_subsys *subsys) subsys 1457 drivers/nvme/target/core.c kref_put(&subsys->ref, nvmet_subsys_free); subsys 29 drivers/nvme/target/discovery.c struct nvmet_subsys *subsys) subsys 38 drivers/nvme/target/discovery.c if (subsys && !nvmet_host_allowed(subsys, ctrl->hostnqn)) subsys 51 drivers/nvme/target/discovery.c struct nvmet_subsys *subsys, subsys 66 drivers/nvme/target/discovery.c void nvmet_subsys_disc_changed(struct nvmet_subsys *subsys, subsys 76 drivers/nvme/target/discovery.c if (s->subsys != subsys) subsys 78 drivers/nvme/target/discovery.c __nvmet_subsys_disc_changed(port, subsys, host); subsys 151 drivers/nvme/target/discovery.c if (!nvmet_host_allowed(p->subsys, ctrl->hostnqn)) subsys 198 drivers/nvme/target/discovery.c if (!nvmet_host_allowed(p->subsys, ctrl->hostnqn)) subsys 203 drivers/nvme/target/discovery.c p->subsys->subsysnqn, traddr, subsys 248 drivers/nvme/target/discovery.c id->ver = cpu_to_le32(ctrl->subsys->ver); subsys 262 drivers/nvme/target/discovery.c strlcpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); subsys 53 drivers/nvme/target/fabrics-cmd.c val = ctrl->subsys->ver; subsys 202 drivers/nvme/target/fabrics-cmd.c ctrl->cntlid, ctrl->subsys->subsysnqn, ctrl->hostnqn); subsys 245 drivers/nvme/target/fabrics-cmd.c if (unlikely(qid > ctrl->subsys->max_qid)) { subsys 67 drivers/nvme/target/nvmet.h struct nvmet_subsys *subsys; subsys 160 drivers/nvme/target/nvmet.h struct nvmet_subsys *subsys; subsys 265 drivers/nvme/target/nvmet.h struct nvmet_subsys *subsys; subsys 404 drivers/nvme/target/nvmet.h void nvmet_subsys_put(struct nvmet_subsys *subsys); subsys 405 drivers/nvme/target/nvmet.h void nvmet_subsys_del_ctrls(struct nvmet_subsys *subsys); subsys 411 drivers/nvme/target/nvmet.h struct nvmet_ns *nvmet_ns_alloc(struct nvmet_subsys *subsys, u32 nsid); subsys 414 drivers/nvme/target/nvmet.h void nvmet_send_ana_event(struct nvmet_subsys *subsys, subsys 422 drivers/nvme/target/nvmet.h struct nvmet_subsys *subsys); subsys 441 drivers/nvme/target/nvmet.h struct nvmet_subsys *subsys); subsys 442 drivers/nvme/target/nvmet.h void nvmet_subsys_disc_changed(struct nvmet_subsys *subsys, subsys 482 drivers/nvme/target/nvmet.h bool nvmet_host_allowed(struct nvmet_subsys *subsys, const char *hostnqn); subsys 490 drivers/nvme/target/nvmet.h void nvmet_ns_changed(struct nvmet_subsys *subsys, u32 nsid); subsys 2278 drivers/rapidio/rio_cm.c .subsys = &rio_bus_type, subsys 906 drivers/scsi/be2iscsi/be_cmds.c u8 subsys = 0, opcode = 0; subsys 919 drivers/scsi/be2iscsi/be_cmds.c subsys = CMD_SUBSYSTEM_COMMON; subsys 923 drivers/scsi/be2iscsi/be_cmds.c subsys = CMD_SUBSYSTEM_COMMON; subsys 927 drivers/scsi/be2iscsi/be_cmds.c subsys = CMD_SUBSYSTEM_COMMON; subsys 931 drivers/scsi/be2iscsi/be_cmds.c subsys = CMD_SUBSYSTEM_ISCSI; subsys 935 drivers/scsi/be2iscsi/be_cmds.c subsys = CMD_SUBSYSTEM_ISCSI; subsys 939 drivers/scsi/be2iscsi/be_cmds.c subsys = CMD_SUBSYSTEM_ISCSI; subsys 946 drivers/scsi/be2iscsi/be_cmds.c be_cmd_hdr_prepare(&req->hdr, subsys, opcode, sizeof(*req)); subsys 986 drivers/scsi/ips.c if (le32_to_cpu(ha->subsys->param[3]) & 0x300000) { subsys 2469 drivers/scsi/ips.c if (le32_to_cpu(ha->subsys->param[4]) & 0x1) { subsys 2543 drivers/scsi/ips.c if ((ha->subsys->param[3] & 0x300000) subsys 3733 drivers/scsi/ips.c if (ha->subsys->param[4] & 0x00100000) { /* If NEW Tape DCDB is Supported */ subsys 4242 drivers/scsi/ips.c kfree(ha->subsys); subsys 4243 drivers/scsi/ips.c ha->subsys = NULL; subsys 5719 drivers/scsi/ips.c scb->data_len = sizeof (*ha->subsys); subsys 5729 drivers/scsi/ips.c memcpy(ha->subsys, ha->ioctl_data, sizeof(*ha->subsys)); subsys 6988 drivers/scsi/ips.c ha->subsys = kmalloc(sizeof (IPS_SUBSYS), GFP_KERNEL); subsys 6990 drivers/scsi/ips.c if (!ha->subsys) { subsys 1030 drivers/scsi/ips.h IPS_SUBSYS *subsys; /* Subsystem parameters */ subsys 4260 drivers/scsi/lpfc/lpfc_bsg.c uint32_t subsys; subsys 4271 drivers/scsi/lpfc/lpfc_bsg.c subsys = bsg_bf_get(lpfc_emb0_subcmnd_subsys, subsys 4275 drivers/scsi/lpfc/lpfc_bsg.c if (subsys == SLI_CONFIG_SUBSYS_FCOE) { subsys 4304 drivers/scsi/lpfc/lpfc_bsg.c } else if (subsys == SLI_CONFIG_SUBSYS_COMN) { subsys 4328 drivers/scsi/lpfc/lpfc_bsg.c subsys, opcode); subsys 4332 drivers/scsi/lpfc/lpfc_bsg.c subsys = bsg_bf_get(lpfc_emb1_subcmnd_subsys, subsys 4336 drivers/scsi/lpfc/lpfc_bsg.c if (subsys == SLI_CONFIG_SUBSYS_COMN) { subsys 4367 drivers/scsi/lpfc/lpfc_bsg.c subsys, opcode); subsys 1628 drivers/scsi/lpfc/lpfc_mbox.c uint8_t subsys, opcode; subsys 1643 drivers/scsi/lpfc/lpfc_mbox.c subsys = lpfc_sli_config_mbox_subsys_get(phba, mboxq); subsys 1645 drivers/scsi/lpfc/lpfc_mbox.c if (subsys == LPFC_MBOX_SUBSYSTEM_COMMON) { subsys 1665 drivers/scsi/lpfc/lpfc_mbox.c if (subsys == LPFC_MBOX_SUBSYSTEM_FCOE) { subsys 140 drivers/soc/mediatek/mtk-cmdq-helper.c int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value) subsys 143 drivers/soc/mediatek/mtk-cmdq-helper.c (subsys << CMDQ_SUBSYS_SHIFT); subsys 149 drivers/soc/mediatek/mtk-cmdq-helper.c int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, subsys 159 drivers/soc/mediatek/mtk-cmdq-helper.c err |= cmdq_pkt_write(pkt, subsys, offset_mask, value); subsys 248 drivers/staging/comedi/drivers/dt3000.c unsigned int subsys, unsigned int chan, subsys 251 drivers/staging/comedi/drivers/dt3000.c writew(subsys, dev->mmio + DPR_SUBSYS); subsys 261 drivers/staging/comedi/drivers/dt3000.c static void dt3k_writesingle(struct comedi_device *dev, unsigned int subsys, subsys 264 drivers/staging/comedi/drivers/dt3000.c writew(subsys, dev->mmio + DPR_SUBSYS); subsys 546 drivers/staging/most/configfs.c struct configfs_subsystem subsys; subsys 555 drivers/staging/most/configfs.c struct most_sound, subsys); subsys 582 drivers/staging/most/configfs.c .subsys = { subsys 603 drivers/staging/most/configfs.c ret = configfs_register_subsystem(&most_sound_subsys.subsys); subsys 640 drivers/staging/most/configfs.c configfs_unregister_subsystem(&most_sound_subsys.subsys); subsys 655 drivers/staging/most/configfs.c config_group_init(&most_sound_subsys.subsys.su_group); subsys 656 drivers/staging/most/configfs.c mutex_init(&most_sound_subsys.subsys.su_mutex); subsys 3459 drivers/target/target_core_configfs.c struct configfs_subsystem *subsys = &target_core_fabrics; subsys 3467 drivers/target/target_core_configfs.c config_group_init(&subsys->su_group); subsys 3468 drivers/target/target_core_configfs.c mutex_init(&subsys->su_mutex); subsys 3479 drivers/target/target_core_configfs.c configfs_add_default_group(&target_core_hbagroup, &subsys->su_group); subsys 3513 drivers/target/target_core_configfs.c ret = configfs_register_subsystem(subsys); subsys 3516 drivers/target/target_core_configfs.c ret, subsys->su_group.cg_item.ci_namebuf); subsys 3542 drivers/target/target_core_configfs.c configfs_unregister_subsystem(subsys); subsys 42 drivers/video/fbdev/vermilion/vermilion.c static struct vml_sys *subsys = NULL; subsys 596 drivers/video/fbdev/vermilion/vermilion.c if (subsys && subsys->nearest_clock) { subsys 597 drivers/video/fbdev/vermilion/vermilion.c nearest_clock = subsys->nearest_clock(subsys, clock); subsys 776 drivers/video/fbdev/vermilion/vermilion.c if (!subsys) subsys 798 drivers/video/fbdev/vermilion/vermilion.c if (subsys->nearest_clock) { subsys 799 drivers/video/fbdev/vermilion/vermilion.c clock = subsys->nearest_clock(subsys, clock); subsys 824 drivers/video/fbdev/vermilion/vermilion.c if (subsys->set_clock) subsys 825 drivers/video/fbdev/vermilion/vermilion.c subsys->set_clock(subsys, clock); subsys 877 drivers/video/fbdev/vermilion/vermilion.c list_move(&vinfo->head, (subsys) ? &global_has_mode : &global_no_mode); subsys 1075 drivers/video/fbdev/vermilion/vermilion.c if (subsys != NULL) { subsys 1076 drivers/video/fbdev/vermilion/vermilion.c subsys->restore(subsys); subsys 1078 drivers/video/fbdev/vermilion/vermilion.c subsys = sys; subsys 1079 drivers/video/fbdev/vermilion/vermilion.c subsys->save(subsys); subsys 1129 drivers/video/fbdev/vermilion/vermilion.c subsys->name ? subsys->name : "unknown"); subsys 1140 drivers/video/fbdev/vermilion/vermilion.c if (subsys != sys) { subsys 1144 drivers/video/fbdev/vermilion/vermilion.c subsys->restore(subsys); subsys 1145 drivers/video/fbdev/vermilion/vermilion.c subsys = NULL; subsys 796 fs/configfs/dir.c struct configfs_subsystem *subsys = NULL; /* gcc is a turd */ subsys 801 fs/configfs/dir.c subsys = parent_group->cg_subsys; subsys 803 fs/configfs/dir.c subsys = to_configfs_subsystem(group); subsys 806 fs/configfs/dir.c group->cg_subsys = subsys; subsys 1124 fs/configfs/dir.c int configfs_depend_item(struct configfs_subsystem *subsys, subsys 1129 fs/configfs/dir.c struct config_item *s_item = &subsys->su_group.cg_item; subsys 1277 fs/configfs/dir.c struct configfs_subsystem *subsys; subsys 1309 fs/configfs/dir.c subsys = to_config_group(parent_item)->cg_subsys; subsys 1310 fs/configfs/dir.c BUG_ON(!subsys); subsys 1324 fs/configfs/dir.c if (!subsys->su_group.cg_item.ci_type) { subsys 1328 fs/configfs/dir.c subsys_owner = subsys->su_group.cg_item.ci_type->ct_owner; subsys 1342 fs/configfs/dir.c mutex_lock(&subsys->su_mutex); subsys 1361 fs/configfs/dir.c mutex_unlock(&subsys->su_mutex); subsys 1421 fs/configfs/dir.c mutex_lock(&subsys->su_mutex); subsys 1430 fs/configfs/dir.c mutex_unlock(&subsys->su_mutex); subsys 1457 fs/configfs/dir.c struct configfs_subsystem *subsys; subsys 1469 fs/configfs/dir.c subsys = to_config_group(parent_item)->cg_subsys; subsys 1470 fs/configfs/dir.c BUG_ON(!subsys); subsys 1478 fs/configfs/dir.c BUG_ON(!subsys->su_group.cg_item.ci_type); subsys 1479 fs/configfs/dir.c subsys_owner = subsys->su_group.cg_item.ci_type->ct_owner; subsys 1540 fs/configfs/dir.c mutex_lock(&subsys->su_mutex); subsys 1546 fs/configfs/dir.c mutex_lock(&subsys->su_mutex); subsys 1552 fs/configfs/dir.c mutex_unlock(&subsys->su_mutex); subsys 1746 fs/configfs/dir.c struct configfs_subsystem *subsys = parent_group->cg_subsys; subsys 1755 fs/configfs/dir.c mutex_lock(&subsys->su_mutex); subsys 1757 fs/configfs/dir.c mutex_unlock(&subsys->su_mutex); subsys 1774 fs/configfs/dir.c mutex_lock(&subsys->su_mutex); subsys 1776 fs/configfs/dir.c mutex_unlock(&subsys->su_mutex); subsys 1790 fs/configfs/dir.c struct configfs_subsystem *subsys = group->cg_subsys; subsys 1814 fs/configfs/dir.c mutex_lock(&subsys->su_mutex); subsys 1816 fs/configfs/dir.c mutex_unlock(&subsys->su_mutex); subsys 1864 fs/configfs/dir.c int configfs_register_subsystem(struct configfs_subsystem *subsys) subsys 1867 fs/configfs/dir.c struct config_group *group = &subsys->su_group; subsys 1920 fs/configfs/dir.c void configfs_unregister_subsystem(struct configfs_subsystem *subsys) subsys 1922 fs/configfs/dir.c struct config_group *group = &subsys->su_group; subsys 207 fs/dlm/config.c struct configfs_subsystem subsys; subsys 530 fs/dlm/config.c .subsys = { subsys 542 fs/dlm/config.c config_group_init(&clusters_root.subsys.su_group); subsys 543 fs/dlm/config.c mutex_init(&clusters_root.subsys.su_mutex); subsys 544 fs/dlm/config.c return configfs_register_subsystem(&clusters_root.subsys); subsys 549 fs/dlm/config.c configfs_unregister_subsystem(&clusters_root.subsys); subsys 751 fs/dlm/config.c mutex_lock(&clusters_root.subsys.su_mutex); subsys 762 fs/dlm/config.c mutex_unlock(&clusters_root.subsys.su_mutex); subsys 196 include/linux/cgroup-defs.h struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT]; subsys 427 include/linux/cgroup-defs.h struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT]; subsys 465 include/linux/cgroup.h task_css_set_check((task), (__c))->subsys[(subsys_id)] subsys 533 include/linux/cgroup.h init_css_set.subsys[subsys_id]; subsys 238 include/linux/configfs.h int configfs_register_subsystem(struct configfs_subsystem *subsys); subsys 239 include/linux/configfs.h void configfs_unregister_subsystem(struct configfs_subsystem *subsys); subsys 255 include/linux/configfs.h int configfs_depend_item(struct configfs_subsystem *subsys, subsys 161 include/linux/device.h struct bus_type *subsys, subsys 530 include/linux/device.h struct bus_type *subsys; subsys 539 include/linux/device.h int subsys_system_register(struct bus_type *subsys, subsys 541 include/linux/device.h int subsys_virtual_register(struct bus_type *subsys, subsys 49 include/linux/netfilter/nfnetlink.h static inline u16 nfnl_msg_type(u8 subsys, u8 msg_type) subsys 51 include/linux/netfilter/nfnetlink.h return subsys << 8 | msg_type; subsys 65 include/linux/netfilter/nfnetlink.h #define MODULE_ALIAS_NFNL_SUBSYS(subsys) \ subsys 66 include/linux/netfilter/nfnetlink.h MODULE_ALIAS("nfnetlink-subsys-" __stringify(subsys)) subsys 205 include/linux/pe.h uint16_t subsys; /* subsystem */ subsys 239 include/linux/pe.h uint16_t subsys; /* subsystem */ subsys 69 include/linux/soc/mediatek/mtk-cmdq.h int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value); subsys 81 include/linux/soc/mediatek/mtk-cmdq.h int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, subsys 470 kernel/cgroup/cgroup.c return rcu_dereference_check(cgrp->subsys[ss->id], subsys 555 kernel/cgroup/cgroup.c return init_css_set.subsys[ss->id]; subsys 584 kernel/cgroup/cgroup.c css = init_css_set.subsys[ss->id]; subsys 644 kernel/cgroup/cgroup.c return rcu_dereference_raw(cgrp->subsys[cft->ss->id]); subsys 661 kernel/cgroup/cgroup.c (cgrp)->subsys[(ssid)], \ subsys 950 kernel/cgroup/cgroup.c css_put(cset->subsys[ssid]); subsys 994 kernel/cgroup/cgroup.c if (memcmp(template, cset->subsys, sizeof(cset->subsys))) subsys 1087 kernel/cgroup/cgroup.c template[i] = old_cset->subsys[i]; subsys 1227 kernel/cgroup/cgroup.c memcpy(cset->subsys, template, sizeof(cset->subsys)); subsys 1244 kernel/cgroup/cgroup.c key = css_set_hash(cset->subsys); subsys 1248 kernel/cgroup/cgroup.c struct cgroup_subsys_state *css = cset->subsys[ssid]; subsys 1756 kernel/cgroup/cgroup.c RCU_INIT_POINTER(scgrp->subsys[ssid], NULL); subsys 1757 kernel/cgroup/cgroup.c rcu_assign_pointer(dcgrp->subsys[ssid], css); subsys 2442 kernel/cgroup/cgroup.c *dst_cssp = cset->mg_dst_cset->subsys[tset->ssid]; subsys 2444 kernel/cgroup/cgroup.c *dst_cssp = cset->subsys[tset->ssid]; subsys 2735 kernel/cgroup/cgroup.c if (src_cset->subsys[ssid] != dst_cset->subsys[ssid]) subsys 5124 kernel/cgroup/cgroup.c rcu_assign_pointer(css->cgroup->subsys[ss->id], css); subsys 5147 kernel/cgroup/cgroup.c RCU_INIT_POINTER(css->cgroup->subsys[ss->id], NULL); subsys 5668 kernel/cgroup/cgroup.c init_css_set.subsys[ss->id] = css; subsys 5756 kernel/cgroup/cgroup.c css_set_hash(init_css_set.subsys)); subsys 5765 kernel/cgroup/cgroup.c init_css_set.subsys[ss->id]; subsys 5814 kernel/cgroup/cgroup.c ss->bind(init_css_set.subsys[ssid]); subsys 5817 kernel/cgroup/cgroup.c css_populate_dir(init_css_set.subsys[ssid]); subsys 5824 kernel/cgroup/cgroup.c css_set_hash(init_css_set.subsys)); subsys 64 kernel/cgroup/debug.c css = cset->subsys[ss->id]; subsys 217 kernel/cgroup/debug.c css = rcu_dereference_check(cgrp->subsys[ss->id], true); subsys 38 net/netfilter/nfnetlink.c rcu_dereference_protected(table[(id)].subsys, \ subsys 45 net/netfilter/nfnetlink.c const struct nfnetlink_subsystem __rcu *subsys; subsys 90 net/netfilter/nfnetlink.c if (table[n->subsys_id].subsys) { subsys 94 net/netfilter/nfnetlink.c rcu_assign_pointer(table[n->subsys_id].subsys, n); subsys 104 net/netfilter/nfnetlink.c table[n->subsys_id].subsys = NULL; subsys 118 net/netfilter/nfnetlink.c return rcu_dereference(table[subsys_id].subsys); subsys 36 samples/configfs/configfs_sample.c struct configfs_subsystem subsys; subsys 44 samples/configfs/configfs_sample.c struct childless, subsys) : NULL; subsys 110 samples/configfs/configfs_sample.c .subsys = { subsys 345 samples/configfs/configfs_sample.c &childless_subsys.subsys, subsys 355 samples/configfs/configfs_sample.c struct configfs_subsystem *subsys; subsys 358 samples/configfs/configfs_sample.c subsys = example_subsys[i]; subsys 360 samples/configfs/configfs_sample.c config_group_init(&subsys->su_group); subsys 361 samples/configfs/configfs_sample.c mutex_init(&subsys->su_mutex); subsys 362 samples/configfs/configfs_sample.c ret = configfs_register_subsystem(subsys); subsys 366 samples/configfs/configfs_sample.c subsys->su_group.cg_item.ci_namebuf); subsys 38 sound/pci/ctxfi/ctatc.h u16 subsys;