Lines Matching refs:logi
117 logi *logi; member
154 logi *plogi; in fcp_login_done()
169 plogi = l->logi + 3 * i; in fcp_login_done()
170 dma_unmap_single (fc->dev, fcmd->cmd, 3 * sizeof(logi), in fcp_login_done()
191 fcmd->cmd = dma_map_single (fc->dev, plogi, 3 * sizeof(logi), in fcp_login_done()
193 fcmd->rsp = fcmd->cmd + 2 * sizeof(logi); in fcp_login_done()
214 plogi = l->logi + 3 * i; in fcp_login_done()
215 dma_unmap_single (fc->dev, l->fcmds[i].cmd, 3 * sizeof(logi), in fcp_login_done()
234 dma_unmap_single (fc->dev, l->fcmds[i].cmd, 3 * sizeof(logi), in fcp_login_done()
259 dma_unmap_single (fc->dev, l->fcmds[i].cmd, 3 * sizeof(logi), in fcp_report_map_done()
261 p = (fc_al_posmap *)(l->logi + 3 * i); in fcp_report_map_done()
309 dma_unmap_single(fc->dev, fcmd->cmd, 3 * sizeof(logi), in fcp_report_map_done()
312 memset(l->logi + 3 * i, 0, 3 * sizeof(logi)); in fcp_report_map_done()
319 l->logi [3 * i].code = LS_FLOGI; in fcp_report_map_done()
320 fcmd->cmd = dma_map_single (fc->dev, l->logi + 3 * i, 3 * sizeof(logi), in fcp_report_map_done()
322 fcmd->rsp = fcmd->cmd + sizeof(logi); in fcp_report_map_done()
323 fcmd->cmdlen = sizeof(logi); in fcp_report_map_done()
324 fcmd->rsplen = sizeof(logi); in fcp_report_map_done()
559 l->logi = kmalloc (count * 3 * sizeof(logi), GFP_KERNEL); in fcp_initialize()
561 if (!l->logi || !l->fcmds) { in fcp_initialize()
562 if (l->logi) kfree (l->logi); in fcp_initialize()
568 memset (l->logi, 0, count * 3 * sizeof(logi)); in fcp_initialize()
581 fcmd->cmd = dma_map_single (fc->dev, l->logi + 3 * i, 3 * sizeof(logi), in fcp_initialize()
601 dma_unmap_single (fc->dev, l->fcmds[i].cmd, 3 * sizeof(logi), FC_DMA_BIDIRECTIONAL); in fcp_initialize()
618 dma_unmap_single(fc->dev, fcmd->cmd, 3 * sizeof(logi), FC_DMA_BIDIRECTIONAL); in fcp_initialize()
626 l->logi [3 * i].code = LS_FLOGI; in fcp_initialize()
627 fcmd->cmd = dma_map_single (fc->dev, l->logi + 3 * i, 3 * sizeof(logi), FC_DMA_BIDIRECTIONAL); in fcp_initialize()
628 fcmd->rsp = fcmd->cmd + sizeof(logi); in fcp_initialize()
629 fcmd->cmdlen = sizeof(logi); in fcp_initialize()
630 fcmd->rsplen = sizeof(logi); in fcp_initialize()
655 default: dma_unmap_single (fc->dev, l->fcmds[i].cmd, 3 * sizeof(logi), FC_DMA_BIDIRECTIONAL); in fcp_initialize()
660 kfree (l->logi); in fcp_initialize()
1108 logi *l; in fc_do_plogi()
1111 l = (logi *)kmalloc(2 * sizeof(logi), GFP_KERNEL); in fc_do_plogi()
1113 memset(l, 0, 2 * sizeof(logi)); in fc_do_plogi()
1119 status = fc_do_els(fc, alpa, l, sizeof(logi)); in fc_do_plogi()