Lines Matching defs:lg
2504 struct logio_entry_24xx *lg;
2518 lg = dma_pool_zalloc(ha->s_dma_pool, GFP_KERNEL, &lg_dma);
2519 if (lg == NULL) {
2525 lg->entry_type = LOGINOUT_PORT_IOCB_TYPE;
2526 lg->entry_count = 1;
2527 lg->handle = make_handle(req->id, lg->handle);
2528 lg->nport_handle = cpu_to_le16(loop_id);
2529 lg->control_flags = cpu_to_le16(LCF_COMMAND_PLOGI);
2531 lg->control_flags |= cpu_to_le16(LCF_COND_PLOGI);
2533 lg->control_flags |= cpu_to_le16(LCF_SKIP_PRLI);
2534 lg->port_id[0] = al_pa;
2535 lg->port_id[1] = area;
2536 lg->port_id[2] = domain;
2537 lg->vp_index = vha->vp_idx;
2538 rval = qla2x00_issue_iocb_timeout(vha, lg, lg_dma, 0,
2543 } else if (lg->entry_status != 0) {
2546 lg->entry_status);
2548 } else if (lg->comp_status != cpu_to_le16(CS_COMPLETE)) {
2549 iop[0] = le32_to_cpu(lg->io_parameter[0]);
2550 iop[1] = le32_to_cpu(lg->io_parameter[1]);
2554 "ioparam=%x/%x.\n", le16_to_cpu(lg->comp_status),
2586 iop[0] = le32_to_cpu(lg->io_parameter[0]);
2598 if (lg->io_parameter[7] || lg->io_parameter[8])
2600 if (lg->io_parameter[9] || lg->io_parameter[10])
2602 if (lg->io_parameter[0] & cpu_to_le32(BIT_7))
2608 dma_pool_free(ha->s_dma_pool, lg, lg_dma);
2779 struct logio_entry_24xx *lg;
2787 lg = dma_pool_zalloc(ha->s_dma_pool, GFP_KERNEL, &lg_dma);
2788 if (lg == NULL) {
2795 lg->entry_type = LOGINOUT_PORT_IOCB_TYPE;
2796 lg->entry_count = 1;
2797 lg->handle = make_handle(req->id, lg->handle);
2798 lg->nport_handle = cpu_to_le16(loop_id);
2799 lg->control_flags =
2802 lg->port_id[0] = al_pa;
2803 lg->port_id[1] = area;
2804 lg->port_id[2] = domain;
2805 lg->vp_index = vha->vp_idx;
2806 rval = qla2x00_issue_iocb_timeout(vha, lg, lg_dma, 0,
2811 } else if (lg->entry_status != 0) {
2814 lg->entry_status);
2816 } else if (lg->comp_status != cpu_to_le16(CS_COMPLETE)) {
2819 "ioparam=%x/%x.\n", le16_to_cpu(lg->comp_status),
2820 le32_to_cpu(lg->io_parameter[0]),
2821 le32_to_cpu(lg->io_parameter[1]));
2828 dma_pool_free(ha->s_dma_pool, lg, lg_dma);