Home
last modified time | relevance | path

Searched refs:newrec (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/nvme/host/ !
Dfc.c360 struct nvme_fc_lport *newrec; in nvme_fc_register_localport() local
380 newrec = nvme_fc_attach_to_unreg_lport(pinfo, template, dev); in nvme_fc_register_localport()
383 if (IS_ERR(newrec)) { in nvme_fc_register_localport()
384 ret = PTR_ERR(newrec); in nvme_fc_register_localport()
388 } else if (newrec) { in nvme_fc_register_localport()
389 *portptr = &newrec->localport; in nvme_fc_register_localport()
395 newrec = kmalloc((sizeof(*newrec) + template->local_priv_sz), in nvme_fc_register_localport()
397 if (!newrec) { in nvme_fc_register_localport()
413 INIT_LIST_HEAD(&newrec->port_list); in nvme_fc_register_localport()
414 INIT_LIST_HEAD(&newrec->endp_list); in nvme_fc_register_localport()
[all …]
/linux-5.19.10/drivers/nvme/target/ !
Dfc.c1366 struct nvmet_fc_tgtport *newrec; in nvmet_fc_register_targetport() local
1379 newrec = kzalloc((sizeof(*newrec) + template->target_priv_sz), in nvmet_fc_register_targetport()
1381 if (!newrec) { in nvmet_fc_register_targetport()
1397 newrec->fc_target_port.node_name = pinfo->node_name; in nvmet_fc_register_targetport()
1398 newrec->fc_target_port.port_name = pinfo->port_name; in nvmet_fc_register_targetport()
1400 newrec->fc_target_port.private = &newrec[1]; in nvmet_fc_register_targetport()
1402 newrec->fc_target_port.private = NULL; in nvmet_fc_register_targetport()
1403 newrec->fc_target_port.port_id = pinfo->port_id; in nvmet_fc_register_targetport()
1404 newrec->fc_target_port.port_num = idx; in nvmet_fc_register_targetport()
1405 INIT_LIST_HEAD(&newrec->tgt_list); in nvmet_fc_register_targetport()
[all …]