Searched refs:newrec (Results 1 – 2 of 2) sorted by relevance
337 struct nvme_fc_lport *newrec; in nvme_fc_register_localport() local357 newrec = nvme_fc_attach_to_unreg_lport(pinfo, template, dev); in nvme_fc_register_localport()360 if (IS_ERR(newrec)) { in nvme_fc_register_localport()361 ret = PTR_ERR(newrec); in nvme_fc_register_localport()365 } else if (newrec) { in nvme_fc_register_localport()366 *portptr = &newrec->localport; in nvme_fc_register_localport()372 newrec = kmalloc((sizeof(*newrec) + template->local_priv_sz), in nvme_fc_register_localport()374 if (!newrec) { in nvme_fc_register_localport()390 INIT_LIST_HEAD(&newrec->port_list); in nvme_fc_register_localport()391 INIT_LIST_HEAD(&newrec->endp_list); in nvme_fc_register_localport()[all …]
1018 struct nvmet_fc_tgtport *newrec; in nvmet_fc_register_targetport() local1031 newrec = kzalloc((sizeof(*newrec) + template->target_priv_sz), in nvmet_fc_register_targetport()1033 if (!newrec) { in nvmet_fc_register_targetport()1049 newrec->fc_target_port.node_name = pinfo->node_name; in nvmet_fc_register_targetport()1050 newrec->fc_target_port.port_name = pinfo->port_name; in nvmet_fc_register_targetport()1051 newrec->fc_target_port.private = &newrec[1]; in nvmet_fc_register_targetport()1052 newrec->fc_target_port.port_id = pinfo->port_id; in nvmet_fc_register_targetport()1053 newrec->fc_target_port.port_num = idx; in nvmet_fc_register_targetport()1054 INIT_LIST_HEAD(&newrec->tgt_list); in nvmet_fc_register_targetport()1055 newrec->dev = dev; in nvmet_fc_register_targetport()[all …]