newrec 337 drivers/nvme/host/fc.c struct nvme_fc_lport *newrec; newrec 357 drivers/nvme/host/fc.c newrec = nvme_fc_attach_to_unreg_lport(pinfo, template, dev); newrec 360 drivers/nvme/host/fc.c if (IS_ERR(newrec)) { newrec 361 drivers/nvme/host/fc.c ret = PTR_ERR(newrec); newrec 365 drivers/nvme/host/fc.c } else if (newrec) { newrec 366 drivers/nvme/host/fc.c *portptr = &newrec->localport; newrec 372 drivers/nvme/host/fc.c newrec = kmalloc((sizeof(*newrec) + template->local_priv_sz), newrec 374 drivers/nvme/host/fc.c if (!newrec) { newrec 390 drivers/nvme/host/fc.c INIT_LIST_HEAD(&newrec->port_list); newrec 391 drivers/nvme/host/fc.c INIT_LIST_HEAD(&newrec->endp_list); newrec 392 drivers/nvme/host/fc.c kref_init(&newrec->ref); newrec 393 drivers/nvme/host/fc.c atomic_set(&newrec->act_rport_cnt, 0); newrec 394 drivers/nvme/host/fc.c newrec->ops = template; newrec 395 drivers/nvme/host/fc.c newrec->dev = dev; newrec 396 drivers/nvme/host/fc.c ida_init(&newrec->endp_cnt); newrec 397 drivers/nvme/host/fc.c newrec->localport.private = &newrec[1]; newrec 398 drivers/nvme/host/fc.c newrec->localport.node_name = pinfo->node_name; newrec 399 drivers/nvme/host/fc.c newrec->localport.port_name = pinfo->port_name; newrec 400 drivers/nvme/host/fc.c newrec->localport.port_role = pinfo->port_role; newrec 401 drivers/nvme/host/fc.c newrec->localport.port_id = pinfo->port_id; newrec 402 drivers/nvme/host/fc.c newrec->localport.port_state = FC_OBJSTATE_ONLINE; newrec 403 drivers/nvme/host/fc.c newrec->localport.port_num = idx; newrec 406 drivers/nvme/host/fc.c list_add_tail(&newrec->port_list, &nvme_fc_lport_list); newrec 412 drivers/nvme/host/fc.c *portptr = &newrec->localport; newrec 418 drivers/nvme/host/fc.c kfree(newrec); newrec 651 drivers/nvme/host/fc.c struct nvme_fc_rport *newrec; newrec 665 drivers/nvme/host/fc.c newrec = nvme_fc_attach_to_suspended_rport(lport, pinfo); newrec 668 drivers/nvme/host/fc.c if (IS_ERR(newrec)) { newrec 669 drivers/nvme/host/fc.c ret = PTR_ERR(newrec); newrec 673 drivers/nvme/host/fc.c } else if (newrec) { newrec 675 drivers/nvme/host/fc.c __nvme_fc_set_dev_loss_tmo(newrec, pinfo); newrec 676 drivers/nvme/host/fc.c nvme_fc_signal_discovery_scan(lport, newrec); newrec 677 drivers/nvme/host/fc.c *portptr = &newrec->remoteport; newrec 683 drivers/nvme/host/fc.c newrec = kmalloc((sizeof(*newrec) + lport->ops->remote_priv_sz), newrec 685 drivers/nvme/host/fc.c if (!newrec) { newrec 696 drivers/nvme/host/fc.c INIT_LIST_HEAD(&newrec->endp_list); newrec 697 drivers/nvme/host/fc.c INIT_LIST_HEAD(&newrec->ctrl_list); newrec 698 drivers/nvme/host/fc.c INIT_LIST_HEAD(&newrec->ls_req_list); newrec 699 drivers/nvme/host/fc.c INIT_LIST_HEAD(&newrec->disc_list); newrec 700 drivers/nvme/host/fc.c kref_init(&newrec->ref); newrec 701 drivers/nvme/host/fc.c atomic_set(&newrec->act_ctrl_cnt, 0); newrec 702 drivers/nvme/host/fc.c spin_lock_init(&newrec->lock); newrec 703 drivers/nvme/host/fc.c newrec->remoteport.localport = &lport->localport; newrec 704 drivers/nvme/host/fc.c newrec->dev = lport->dev; newrec 705 drivers/nvme/host/fc.c newrec->lport = lport; newrec 706 drivers/nvme/host/fc.c newrec->remoteport.private = &newrec[1]; newrec 707 drivers/nvme/host/fc.c newrec->remoteport.port_role = pinfo->port_role; newrec 708 drivers/nvme/host/fc.c newrec->remoteport.node_name = pinfo->node_name; newrec 709 drivers/nvme/host/fc.c newrec->remoteport.port_name = pinfo->port_name; newrec 710 drivers/nvme/host/fc.c newrec->remoteport.port_id = pinfo->port_id; newrec 711 drivers/nvme/host/fc.c newrec->remoteport.port_state = FC_OBJSTATE_ONLINE; newrec 712 drivers/nvme/host/fc.c newrec->remoteport.port_num = idx; newrec 713 drivers/nvme/host/fc.c __nvme_fc_set_dev_loss_tmo(newrec, pinfo); newrec 716 drivers/nvme/host/fc.c list_add_tail(&newrec->endp_list, &lport->endp_list); newrec 719 drivers/nvme/host/fc.c nvme_fc_signal_discovery_scan(lport, newrec); newrec 721 drivers/nvme/host/fc.c *portptr = &newrec->remoteport; newrec 725 drivers/nvme/host/fc.c kfree(newrec); newrec 1018 drivers/nvme/target/fc.c struct nvmet_fc_tgtport *newrec; newrec 1031 drivers/nvme/target/fc.c newrec = kzalloc((sizeof(*newrec) + template->target_priv_sz), newrec 1033 drivers/nvme/target/fc.c if (!newrec) { newrec 1049 drivers/nvme/target/fc.c newrec->fc_target_port.node_name = pinfo->node_name; newrec 1050 drivers/nvme/target/fc.c newrec->fc_target_port.port_name = pinfo->port_name; newrec 1051 drivers/nvme/target/fc.c newrec->fc_target_port.private = &newrec[1]; newrec 1052 drivers/nvme/target/fc.c newrec->fc_target_port.port_id = pinfo->port_id; newrec 1053 drivers/nvme/target/fc.c newrec->fc_target_port.port_num = idx; newrec 1054 drivers/nvme/target/fc.c INIT_LIST_HEAD(&newrec->tgt_list); newrec 1055 drivers/nvme/target/fc.c newrec->dev = dev; newrec 1056 drivers/nvme/target/fc.c newrec->ops = template; newrec 1057 drivers/nvme/target/fc.c spin_lock_init(&newrec->lock); newrec 1058 drivers/nvme/target/fc.c INIT_LIST_HEAD(&newrec->ls_list); newrec 1059 drivers/nvme/target/fc.c INIT_LIST_HEAD(&newrec->ls_busylist); newrec 1060 drivers/nvme/target/fc.c INIT_LIST_HEAD(&newrec->assoc_list); newrec 1061 drivers/nvme/target/fc.c kref_init(&newrec->ref); newrec 1062 drivers/nvme/target/fc.c ida_init(&newrec->assoc_cnt); newrec 1063 drivers/nvme/target/fc.c newrec->max_sg_cnt = template->max_sgl_segments; newrec 1065 drivers/nvme/target/fc.c ret = nvmet_fc_alloc_ls_iodlist(newrec); newrec 1071 drivers/nvme/target/fc.c nvmet_fc_portentry_rebind_tgt(newrec); newrec 1074 drivers/nvme/target/fc.c list_add_tail(&newrec->tgt_list, &nvmet_fc_target_list); newrec 1077 drivers/nvme/target/fc.c *portptr = &newrec->fc_target_port; newrec 1085 drivers/nvme/target/fc.c kfree(newrec);