Lines Matching refs:fxiocb
1769 complete(&lio->u.fxiocb.fxiocb_comp); in qla2x00_fxdisc_iocb_timeout()
1776 complete(&lio->u.fxiocb.fxiocb_comp); in qla2x00_fxdisc_sp_done()
1804 fdisc->u.fxiocb.flags = in qlafx00_fx_disc()
1806 fdisc->u.fxiocb.rsp_len = sizeof(struct config_info_data); in qlafx00_fx_disc()
1809 fdisc->u.fxiocb.flags = in qlafx00_fx_disc()
1811 fdisc->u.fxiocb.rsp_len = QLAFX00_PORT_DATA_INFO; in qlafx00_fx_disc()
1812 fdisc->u.fxiocb.req_data = cpu_to_le32(fcport->port_id); in qlafx00_fx_disc()
1815 fdisc->u.fxiocb.flags = in qlafx00_fx_disc()
1817 fdisc->u.fxiocb.rsp_len = QLAFX00_TGT_NODE_INFO; in qlafx00_fx_disc()
1818 fdisc->u.fxiocb.req_data = cpu_to_le32(fcport->tgt_id); in qlafx00_fx_disc()
1821 fdisc->u.fxiocb.flags = in qlafx00_fx_disc()
1823 fdisc->u.fxiocb.rsp_len = QLAFX00_TGT_NODE_LIST_SIZE; in qlafx00_fx_disc()
1826 fdisc->u.fxiocb.flags = SRB_FXDISC_REQ_DMA_VALID; in qlafx00_fx_disc()
1827 fdisc->u.fxiocb.req_len = sizeof(struct register_host_info); in qlafx00_fx_disc()
1840 if (fdisc->u.fxiocb.flags & SRB_FXDISC_REQ_DMA_VALID) { in qlafx00_fx_disc()
1841 fdisc->u.fxiocb.req_addr = dma_alloc_coherent(&ha->pdev->dev, in qlafx00_fx_disc()
1842 fdisc->u.fxiocb.req_len, in qlafx00_fx_disc()
1843 &fdisc->u.fxiocb.req_dma_handle, GFP_KERNEL); in qlafx00_fx_disc()
1844 if (!fdisc->u.fxiocb.req_addr) in qlafx00_fx_disc()
1849 fdisc->u.fxiocb.req_addr; in qlafx00_fx_disc()
1893 if (fdisc->u.fxiocb.flags & SRB_FXDISC_RESP_DMA_VALID) { in qlafx00_fx_disc()
1894 fdisc->u.fxiocb.rsp_addr = dma_alloc_coherent(&ha->pdev->dev, in qlafx00_fx_disc()
1895 fdisc->u.fxiocb.rsp_len, in qlafx00_fx_disc()
1896 &fdisc->u.fxiocb.rsp_dma_handle, GFP_KERNEL); in qlafx00_fx_disc()
1897 if (!fdisc->u.fxiocb.rsp_addr) in qlafx00_fx_disc()
1901 fdisc->u.fxiocb.req_func_type = cpu_to_le16(fx_type); in qlafx00_fx_disc()
1907 wait_for_completion(&fdisc->u.fxiocb.fxiocb_comp); in qlafx00_fx_disc()
1911 (struct config_info_data *) fdisc->u.fxiocb.rsp_addr; in qlafx00_fx_disc()
1934 (struct port_info_data *) fdisc->u.fxiocb.rsp_addr; in qlafx00_fx_disc()
1945 (struct qlafx00_tgt_node_info *) fdisc->u.fxiocb.rsp_addr; in qlafx00_fx_disc()
1953 (struct qlafx00_tgt_node_info *) fdisc->u.fxiocb.rsp_addr; in qlafx00_fx_disc()
1958 fdisc->u.fxiocb.result = in qlafx00_fx_disc()
1959 (fdisc->u.fxiocb.result == in qlafx00_fx_disc()
1963 rval = le32_to_cpu(fdisc->u.fxiocb.result); in qlafx00_fx_disc()
1966 if (fdisc->u.fxiocb.rsp_addr) in qlafx00_fx_disc()
1967 dma_free_coherent(&ha->pdev->dev, fdisc->u.fxiocb.rsp_len, in qlafx00_fx_disc()
1968 fdisc->u.fxiocb.rsp_addr, fdisc->u.fxiocb.rsp_dma_handle); in qlafx00_fx_disc()
1971 if (fdisc->u.fxiocb.req_addr) in qlafx00_fx_disc()
1972 dma_free_coherent(&ha->pdev->dev, fdisc->u.fxiocb.req_len, in qlafx00_fx_disc()
1973 fdisc->u.fxiocb.req_addr, fdisc->u.fxiocb.req_dma_handle); in qlafx00_fx_disc()
2197 iocb_job->u.fxiocb.seq_number = pkt->seq_no; in qlafx00_ioctl_iosb_entry()
2198 iocb_job->u.fxiocb.fw_flags = pkt->fw_iotcl_flags; in qlafx00_ioctl_iosb_entry()
2199 iocb_job->u.fxiocb.result = pkt->status; in qlafx00_ioctl_iosb_entry()
2200 if (iocb_job->u.fxiocb.flags & SRB_FXDISC_RSP_DWRD_VALID) in qlafx00_ioctl_iosb_entry()
2201 iocb_job->u.fxiocb.req_data = in qlafx00_ioctl_iosb_entry()
3233 sp->u.iocb_cmd.u.fxiocb.req_func_type; in qlafx00_fxdisc_iocb()
3234 fx_iocb.adapid = fxio->u.fxiocb.adapter_id; in qlafx00_fxdisc_iocb()
3235 fx_iocb.adapid_hi = fxio->u.fxiocb.adapter_id_hi; in qlafx00_fxdisc_iocb()
3236 fx_iocb.reserved_0 = fxio->u.fxiocb.reserved_0; in qlafx00_fxdisc_iocb()
3237 fx_iocb.reserved_1 = fxio->u.fxiocb.reserved_1; in qlafx00_fxdisc_iocb()
3238 fx_iocb.dataword_extra = fxio->u.fxiocb.req_data_extra; in qlafx00_fxdisc_iocb()
3240 if (fxio->u.fxiocb.flags & SRB_FXDISC_REQ_DMA_VALID) { in qlafx00_fxdisc_iocb()
3243 cpu_to_le16(fxio->u.fxiocb.req_len); in qlafx00_fxdisc_iocb()
3244 put_unaligned_le64(fxio->u.fxiocb.req_dma_handle, in qlafx00_fxdisc_iocb()
3247 cpu_to_le32(fxio->u.fxiocb.req_len); in qlafx00_fxdisc_iocb()
3250 if (fxio->u.fxiocb.flags & SRB_FXDISC_RESP_DMA_VALID) { in qlafx00_fxdisc_iocb()
3253 cpu_to_le16(fxio->u.fxiocb.rsp_len); in qlafx00_fxdisc_iocb()
3254 put_unaligned_le64(fxio->u.fxiocb.rsp_dma_handle, in qlafx00_fxdisc_iocb()
3257 cpu_to_le32(fxio->u.fxiocb.rsp_len); in qlafx00_fxdisc_iocb()
3260 if (fxio->u.fxiocb.flags & SRB_FXDISC_REQ_DWRD_VALID) { in qlafx00_fxdisc_iocb()
3261 fx_iocb.dataword = fxio->u.fxiocb.req_data; in qlafx00_fxdisc_iocb()
3263 fx_iocb.flags = fxio->u.fxiocb.flags; in qlafx00_fxdisc_iocb()