Lines Matching defs:lg
2451 struct logio_entry_24xx *lg;
2465 lg = dma_pool_zalloc(ha->s_dma_pool, GFP_KERNEL, &lg_dma);
2466 if (lg == NULL) {
2472 lg->entry_type = LOGINOUT_PORT_IOCB_TYPE;
2473 lg->entry_count = 1;
2474 lg->handle = make_handle(req->id, lg->handle);
2475 lg->nport_handle = cpu_to_le16(loop_id);
2476 lg->control_flags = cpu_to_le16(LCF_COMMAND_PLOGI);
2478 lg->control_flags |= cpu_to_le16(LCF_COND_PLOGI);
2480 lg->control_flags |= cpu_to_le16(LCF_SKIP_PRLI);
2481 lg->port_id[0] = al_pa;
2482 lg->port_id[1] = area;
2483 lg->port_id[2] = domain;
2484 lg->vp_index = vha->vp_idx;
2485 rval = qla2x00_issue_iocb_timeout(vha, lg, lg_dma, 0,
2490 } else if (lg->entry_status != 0) {
2493 lg->entry_status);
2495 } else if (lg->comp_status != cpu_to_le16(CS_COMPLETE)) {
2496 iop[0] = le32_to_cpu(lg->io_parameter[0]);
2497 iop[1] = le32_to_cpu(lg->io_parameter[1]);
2501 "ioparam=%x/%x.\n", le16_to_cpu(lg->comp_status),
2533 iop[0] = le32_to_cpu(lg->io_parameter[0]);
2545 if (lg->io_parameter[7] || lg->io_parameter[8])
2547 if (lg->io_parameter[9] || lg->io_parameter[10])
2549 if (lg->io_parameter[0] & cpu_to_le32(BIT_7))
2555 dma_pool_free(ha->s_dma_pool, lg, lg_dma);
2726 struct logio_entry_24xx *lg;
2734 lg = dma_pool_zalloc(ha->s_dma_pool, GFP_KERNEL, &lg_dma);
2735 if (lg == NULL) {
2742 lg->entry_type = LOGINOUT_PORT_IOCB_TYPE;
2743 lg->entry_count = 1;
2744 lg->handle = make_handle(req->id, lg->handle);
2745 lg->nport_handle = cpu_to_le16(loop_id);
2746 lg->control_flags =
2749 lg->port_id[0] = al_pa;
2750 lg->port_id[1] = area;
2751 lg->port_id[2] = domain;
2752 lg->vp_index = vha->vp_idx;
2753 rval = qla2x00_issue_iocb_timeout(vha, lg, lg_dma, 0,
2758 } else if (lg->entry_status != 0) {
2761 lg->entry_status);
2763 } else if (lg->comp_status != cpu_to_le16(CS_COMPLETE)) {
2766 "ioparam=%x/%x.\n", le16_to_cpu(lg->comp_status),
2767 le32_to_cpu(lg->io_parameter[0]),
2768 le32_to_cpu(lg->io_parameter[1]));
2775 dma_pool_free(ha->s_dma_pool, lg, lg_dma);