Lines Matching refs:template
348 struct nvme_fc_port_template *template, in nvme_fc_register_localport() argument
356 if (!template->localport_delete || !template->remoteport_delete || in nvme_fc_register_localport()
357 !template->ls_req || !template->fcp_io || in nvme_fc_register_localport()
358 !template->ls_abort || !template->fcp_abort || in nvme_fc_register_localport()
359 !template->max_hw_queues || !template->max_sgl_segments || in nvme_fc_register_localport()
360 !template->max_dif_sgl_segments || !template->dma_boundary) { in nvme_fc_register_localport()
372 newrec = nvme_fc_attach_to_unreg_lport(pinfo, template, dev); in nvme_fc_register_localport()
387 newrec = kmalloc((sizeof(*newrec) + template->local_priv_sz), in nvme_fc_register_localport()
409 newrec->ops = template; in nvme_fc_register_localport()
412 if (template->local_priv_sz) in nvme_fc_register_localport()
428 dma_set_seg_boundary(dev, template->dma_boundary); in nvme_fc_register_localport()