Home
last modified time | relevance | path

Searched refs:subsys (Results 1 – 25 of 30) sorted by relevance

12

/drivers/nvme/target/
Dcore.c227 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 …]
Dconfigfs.c269 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 …]
Dadmin-cmd.c76 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()
Dnvmet.h51 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,
Ddiscovery.c90 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()
Dfabrics-cmd.c58 val = ctrl->subsys->ver; in nvmet_execute_prop_get()
191 if (unlikely(qid > ctrl->subsys->max_qid)) { in nvmet_execute_io_connect()
/drivers/base/
Dbus.c43 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 …]
Dclass.c95 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()
Dbase.h29 struct kset subsys; member
44 #define to_subsys_private(obj) container_of(obj, struct subsys_private, subsys.kobj)
Dcore.c792 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/
Dvermilion.c56 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/
Dspear13xx_pcie_gadget.c56 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/
Ds3c2410-cpufreq.c123 .subsys = &s3c2410_subsys,
150 .subsys = &s3c2410a_subsys,
Ds3c2440-cpufreq.c287 .subsys = &s3c2440_subsys,
301 .subsys = &s3c2442_subsys,
Ds3c2412-cpufreq.c247 .subsys = &s3c2412_subsys,
/drivers/staging/lustre/lnet/libcfs/
Ddebug.c229 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/
Ddt3000.c257 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/
Dbe_cmds.c914 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/
Dwistron_btns.c204 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/
Dtarget_core_configfs.c3146 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/
Dips.c991 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/
Dlpfc_mbox.c1617 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()
Dlpfc_bsg.c4126 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/
Dbe_cmds.c1462 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/
Drionet.c714 .subsys = &rio_bus_type,

12