/drivers/nvme/target/ |
D | core.c | 227 list_for_each_entry_rcu(ns, &ctrl->subsys->namespaces, dev_link) { in __nvmet_find_namespace() 262 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_enable() local 266 mutex_lock(&subsys->lock); in nvmet_ns_enable() 288 if (ns->nsid > subsys->max_nsid) in nvmet_ns_enable() 289 subsys->max_nsid = ns->nsid; in nvmet_ns_enable() 295 if (list_empty(&subsys->namespaces)) { in nvmet_ns_enable() 296 list_add_tail_rcu(&ns->dev_link, &subsys->namespaces); in nvmet_ns_enable() 300 list_for_each_entry_rcu(old, &subsys->namespaces, dev_link) { in nvmet_ns_enable() 309 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) in nvmet_ns_enable() 315 mutex_unlock(&subsys->lock); in nvmet_ns_enable() [all …]
|
D | configfs.c | 269 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_path_store() local 272 mutex_lock(&subsys->lock); in nvmet_ns_device_path_store() 284 mutex_unlock(&subsys->lock); in nvmet_ns_device_path_store() 288 mutex_unlock(&subsys->lock); in nvmet_ns_device_path_store() 303 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_nguid_store() local 309 mutex_lock(&subsys->lock); in nvmet_ns_device_nguid_store() 334 mutex_unlock(&subsys->lock); in nvmet_ns_device_nguid_store() 392 struct nvmet_subsys *subsys = namespaces_to_subsys(&group->cg_item); in nvmet_ns_make() local 406 ns = nvmet_ns_alloc(subsys, nsid); in nvmet_ns_make() 411 pr_info("adding nsid %d to subsystem %s\n", nsid, subsys->subsysnqn); in nvmet_ns_make() [all …]
|
D | admin-cmd.c | 76 list_for_each_entry_rcu(ns, &ctrl->subsys->namespaces, dev_link) { in nvmet_get_smart_log_all() 207 id->ver = cpu_to_le32(ctrl->subsys->ver); in nvmet_execute_identify_ctrl() 239 id->nn = cpu_to_le32(ctrl->subsys->max_nsid); in nvmet_execute_identify_ctrl() 258 strcpy(id->subnqn, ctrl->subsys->subsysnqn); in nvmet_execute_identify_ctrl() 351 list_for_each_entry_rcu(ns, &ctrl->subsys->namespaces, dev_link) { in nvmet_execute_identify_nslist() 382 struct nvmet_subsys *subsys = req->sq->ctrl->subsys; in nvmet_execute_set_features() local 390 (subsys->max_qid - 1) | ((subsys->max_qid - 1) << 16)); in nvmet_execute_set_features() 407 struct nvmet_subsys *subsys = req->sq->ctrl->subsys; in nvmet_execute_get_features() local 440 (subsys->max_qid-1) | ((subsys->max_qid-1) << 16)); in nvmet_execute_get_features()
|
D | nvmet.h | 51 struct nvmet_subsys *subsys; member 107 struct nvmet_subsys *subsys; member 195 struct nvmet_subsys *subsys; member 285 void nvmet_subsys_put(struct nvmet_subsys *subsys); 291 struct nvmet_ns *nvmet_ns_alloc(struct nvmet_subsys *subsys, u32 nsid); 326 bool nvmet_host_allowed(struct nvmet_req *req, struct nvmet_subsys *subsys,
|
D | discovery.c | 90 if (!nvmet_host_allowed(req, p->subsys, ctrl->hostnqn)) in nvmet_execute_get_disc_log_page() 94 p->subsys->subsysnqn, in nvmet_execute_get_disc_log_page() 141 id->ver = cpu_to_le32(ctrl->subsys->ver); in nvmet_execute_identify_disc_ctrl() 153 strcpy(id->subnqn, ctrl->subsys->subsysnqn); in nvmet_execute_identify_disc_ctrl()
|
D | fabrics-cmd.c | 58 val = ctrl->subsys->ver; in nvmet_execute_prop_get() 191 if (unlikely(qid > ctrl->subsys->max_qid)) { in nvmet_execute_io_connect()
|
/drivers/base/ |
D | bus.c | 43 kset_get(&bus->p->subsys); in bus_get() 52 kset_put(&bus->p->subsys); in bus_put() 133 error = sysfs_create_file(&bus->p->subsys.kobj, &attr->attr); in bus_create_file() 144 sysfs_remove_file(&bus->p->subsys.kobj, &attr->attr); in bus_remove_file() 388 struct device *subsys_find_device_by_id(struct bus_type *subsys, unsigned int id, in subsys_find_device_by_id() argument 394 if (!subsys) in subsys_find_device_by_id() 398 klist_iter_init_node(&subsys->p->klist_devices, &i, &hint->p->knode_bus); in subsys_find_device_by_id() 407 klist_iter_init_node(&subsys->p->klist_devices, &i, NULL); in subsys_find_device_by_id() 524 &dev->bus->p->subsys.kobj, "subsystem"); in bus_add_device() 843 return sysfs_create_groups(&bus->p->subsys.kobj, groups); in bus_add_groups() [all …]
|
D | class.c | 95 error = sysfs_create_file_ns(&cls->p->subsys.kobj, in class_create_file_ns() 106 sysfs_remove_file_ns(&cls->p->subsys.kobj, &attr->attr, ns); in class_remove_file_ns() 112 kset_get(&cls->p->subsys); in class_get() 119 kset_put(&cls->p->subsys); in class_put() 180 error = kobject_set_name(&cp->subsys.kobj, "%s", cls->name); in __class_register() 193 cp->subsys.kobj.kset = class_kset; in __class_register() 195 cp->subsys.kobj.kset = class_kset; in __class_register() 197 cp->subsys.kobj.ktype = &class_ktype; in __class_register() 201 error = kset_register(&cp->subsys); in __class_register() 216 kset_unregister(&cls->p->subsys); in class_unregister()
|
D | base.h | 29 struct kset subsys; member 44 #define to_subsys_private(obj) container_of(obj, struct subsys_private, subsys.kobj)
|
D | core.c | 792 return &block_class.p->subsys.kobj; in get_device_parent() 885 &dev->class->p->subsys.kobj, in device_add_class_symlinks() 904 error = sysfs_create_link(&dev->class->p->subsys.kobj, in device_add_class_symlinks() 936 sysfs_delete_link(&dev->class->p->subsys.kobj, &dev->kobj, dev_name(dev)); in device_remove_class_symlinks() 1940 error = sysfs_rename_link_ns(&dev->class->p->subsys.kobj, in device_rename() 2132 const char *subsys; in create_syslog_header() local 2136 subsys = dev->class->name; in create_syslog_header() 2138 subsys = dev->bus->name; in create_syslog_header() 2142 pos += snprintf(hdr + pos, hdrlen - pos, "SUBSYSTEM=%s", subsys); in create_syslog_header() 2156 if (strcmp(subsys, "block") == 0) in create_syslog_header() [all …]
|
/drivers/video/fbdev/vermilion/ |
D | vermilion.c | 56 static struct vml_sys *subsys = NULL; variable 610 if (subsys && subsys->nearest_clock) { in vmlfb_check_var_locked() 611 nearest_clock = subsys->nearest_clock(subsys, clock); in vmlfb_check_var_locked() 790 if (!subsys) in vmlfb_set_par_locked() 812 if (subsys->nearest_clock) { in vmlfb_set_par_locked() 813 clock = subsys->nearest_clock(subsys, clock); in vmlfb_set_par_locked() 838 if (subsys->set_clock) in vmlfb_set_par_locked() 839 subsys->set_clock(subsys, clock); in vmlfb_set_par_locked() 891 list_move(&vinfo->head, (subsys) ? &global_has_mode : &global_no_mode); in vmlfb_set_par() 1089 if (subsys != NULL) { in vmlfb_register_subsys() [all …]
|
/drivers/misc/ |
D | spear13xx_pcie_gadget.c | 56 struct configfs_subsystem subsys; member 228 struct pcie_gadget_target, subsys) : NULL; in to_target() 671 struct configfs_subsystem *subsys; in spear_pcie_gadget_probe() local 679 cg_item = &target->subsys.su_group.cg_item; in spear_pcie_gadget_probe() 719 subsys = &target->subsys; in spear_pcie_gadget_probe() 720 config_group_init(&subsys->su_group); in spear_pcie_gadget_probe() 721 mutex_init(&subsys->su_mutex); in spear_pcie_gadget_probe() 722 status = configfs_register_subsystem(subsys); in spear_pcie_gadget_probe() 774 configfs_unregister_subsystem(&target->subsys); in spear_pcie_gadget_remove()
|
/drivers/cpufreq/ |
D | s3c2410-cpufreq.c | 123 .subsys = &s3c2410_subsys, 150 .subsys = &s3c2410a_subsys,
|
D | s3c2440-cpufreq.c | 287 .subsys = &s3c2440_subsys, 301 .subsys = &s3c2442_subsys,
|
D | s3c2412-cpufreq.c | 247 .subsys = &s3c2412_subsys,
|
/drivers/staging/lustre/lnet/libcfs/ |
D | debug.c | 229 libcfs_debug_subsys2str(int subsys) in libcfs_debug_subsys2str() argument 233 if (subsys >= ARRAY_SIZE(libcfs_debug_subsystems)) in libcfs_debug_subsys2str() 236 return libcfs_debug_subsystems[subsys]; in libcfs_debug_subsys2str()
|
/drivers/staging/comedi/drivers/ |
D | dt3000.c | 257 unsigned int subsys, unsigned int chan, in dt3k_readsingle() argument 260 writew(subsys, dev->mmio + DPR_SUBSYS); in dt3k_readsingle() 270 static void dt3k_writesingle(struct comedi_device *dev, unsigned int subsys, in dt3k_writesingle() argument 273 writew(subsys, dev->mmio + DPR_SUBSYS); in dt3k_writesingle()
|
/drivers/scsi/be2iscsi/ |
D | be_cmds.c | 914 u8 subsys = 0, opcode = 0; in beiscsi_cmd_q_destroy() local 927 subsys = CMD_SUBSYSTEM_COMMON; in beiscsi_cmd_q_destroy() 931 subsys = CMD_SUBSYSTEM_COMMON; in beiscsi_cmd_q_destroy() 935 subsys = CMD_SUBSYSTEM_COMMON; in beiscsi_cmd_q_destroy() 939 subsys = CMD_SUBSYSTEM_ISCSI; in beiscsi_cmd_q_destroy() 943 subsys = CMD_SUBSYSTEM_ISCSI; in beiscsi_cmd_q_destroy() 947 subsys = CMD_SUBSYSTEM_ISCSI; in beiscsi_cmd_q_destroy() 955 be_cmd_hdr_prepare(&req->hdr, subsys, opcode, sizeof(*req)); in beiscsi_cmd_q_destroy()
|
/drivers/input/misc/ |
D | wistron_btns.c | 204 static u16 bios_get_default_setting(u8 subsys) in bios_get_default_setting() argument 210 regs.ebx = 0x0200 | subsys; in bios_get_default_setting() 216 static void bios_set_state(u8 subsys, int enable) in bios_set_state() argument 222 regs.ebx = (enable ? 0x0100 : 0x0000) | subsys; in bios_set_state()
|
/drivers/target/ |
D | target_core_configfs.c | 3146 struct configfs_subsystem *subsys = &target_core_fabrics; in target_core_init_configfs() local 3154 config_group_init(&subsys->su_group); in target_core_init_configfs() 3155 mutex_init(&subsys->su_mutex); in target_core_init_configfs() 3166 configfs_add_default_group(&target_core_hbagroup, &subsys->su_group); in target_core_init_configfs() 3200 ret = configfs_register_subsystem(subsys); in target_core_init_configfs() 3203 ret, subsys->su_group.cg_item.ci_namebuf); in target_core_init_configfs() 3227 configfs_unregister_subsystem(subsys); in target_core_init_configfs()
|
/drivers/scsi/ |
D | ips.c | 991 if (le32_to_cpu(ha->subsys->param[3]) & 0x300000) { in __ips_eh_reset() 2482 if (le32_to_cpu(ha->subsys->param[4]) & 0x1) { in ips_hainit() 2556 if ((ha->subsys->param[3] & 0x300000) in ips_next() 3748 if (ha->subsys->param[4] & 0x00100000) { /* If NEW Tape DCDB is Supported */ in ips_send_cmd() 4257 kfree(ha->subsys); in ips_free() 4258 ha->subsys = NULL; in ips_free() 5734 scb->data_len = sizeof (*ha->subsys); in ips_read_subsystem_parameters() 5744 memcpy(ha->subsys, ha->ioctl_data, sizeof(*ha->subsys)); in ips_read_subsystem_parameters() 7040 ha->subsys = kmalloc(sizeof (IPS_SUBSYS), GFP_KERNEL); in ips_init_phase1() 7042 if (!ha->subsys) { in ips_init_phase1()
|
/drivers/scsi/lpfc/ |
D | lpfc_mbox.c | 1617 uint8_t subsys, opcode; in lpfc_mbox_tmo_val() local 1632 subsys = lpfc_sli_config_mbox_subsys_get(phba, mboxq); in lpfc_mbox_tmo_val() 1634 if (subsys == LPFC_MBOX_SUBSYSTEM_COMMON) { in lpfc_mbox_tmo_val() 1654 if (subsys == LPFC_MBOX_SUBSYSTEM_FCOE) { in lpfc_mbox_tmo_val()
|
D | lpfc_bsg.c | 4126 uint32_t subsys; in lpfc_bsg_handle_sli_cfg_mbox() local 4137 subsys = bsg_bf_get(lpfc_emb0_subcmnd_subsys, in lpfc_bsg_handle_sli_cfg_mbox() 4141 if (subsys == SLI_CONFIG_SUBSYS_FCOE) { in lpfc_bsg_handle_sli_cfg_mbox() 4170 } else if (subsys == SLI_CONFIG_SUBSYS_COMN) { in lpfc_bsg_handle_sli_cfg_mbox() 4194 subsys, opcode); in lpfc_bsg_handle_sli_cfg_mbox() 4198 subsys = bsg_bf_get(lpfc_emb1_subcmnd_subsys, in lpfc_bsg_handle_sli_cfg_mbox() 4202 if (subsys == SLI_CONFIG_SUBSYS_COMN) { in lpfc_bsg_handle_sli_cfg_mbox() 4233 subsys, opcode); in lpfc_bsg_handle_sli_cfg_mbox()
|
/drivers/net/ethernet/emulex/benet/ |
D | be_cmds.c | 1462 u8 subsys = 0, opcode = 0; in be_cmd_q_destroy() local 1473 subsys = CMD_SUBSYSTEM_COMMON; in be_cmd_q_destroy() 1477 subsys = CMD_SUBSYSTEM_COMMON; in be_cmd_q_destroy() 1481 subsys = CMD_SUBSYSTEM_ETH; in be_cmd_q_destroy() 1485 subsys = CMD_SUBSYSTEM_ETH; in be_cmd_q_destroy() 1489 subsys = CMD_SUBSYSTEM_COMMON; in be_cmd_q_destroy() 1496 be_wrb_cmd_hdr_prepare(&req->hdr, subsys, opcode, sizeof(*req), wrb, in be_cmd_q_destroy()
|
/drivers/net/ |
D | rionet.c | 714 .subsys = &rio_bus_type,
|