Searched refs:newrec (Results 1 – 2 of 2) sorted by relevance
353 struct nvme_fc_lport *newrec; in nvme_fc_register_localport() local373 newrec = nvme_fc_attach_to_unreg_lport(pinfo, template, dev); in nvme_fc_register_localport()376 if (IS_ERR(newrec)) { in nvme_fc_register_localport()377 ret = PTR_ERR(newrec); in nvme_fc_register_localport()381 } else if (newrec) { in nvme_fc_register_localport()382 *portptr = &newrec->localport; in nvme_fc_register_localport()388 newrec = kmalloc((sizeof(*newrec) + template->local_priv_sz), in nvme_fc_register_localport()390 if (!newrec) { in nvme_fc_register_localport()406 INIT_LIST_HEAD(&newrec->port_list); in nvme_fc_register_localport()407 INIT_LIST_HEAD(&newrec->endp_list); in nvme_fc_register_localport()[all …]
1385 struct nvmet_fc_tgtport *newrec; in nvmet_fc_register_targetport() local1398 newrec = kzalloc((sizeof(*newrec) + template->target_priv_sz), in nvmet_fc_register_targetport()1400 if (!newrec) { in nvmet_fc_register_targetport()1416 newrec->fc_target_port.node_name = pinfo->node_name; in nvmet_fc_register_targetport()1417 newrec->fc_target_port.port_name = pinfo->port_name; in nvmet_fc_register_targetport()1419 newrec->fc_target_port.private = &newrec[1]; in nvmet_fc_register_targetport()1421 newrec->fc_target_port.private = NULL; in nvmet_fc_register_targetport()1422 newrec->fc_target_port.port_id = pinfo->port_id; in nvmet_fc_register_targetport()1423 newrec->fc_target_port.port_num = idx; in nvmet_fc_register_targetport()1424 INIT_LIST_HEAD(&newrec->tgt_list); in nvmet_fc_register_targetport()[all …]