Lines Matching refs:off_in

360 qla82xx_pci_set_crbwindow_2M(struct qla_hw_data *ha, ulong off_in,  in qla82xx_pci_set_crbwindow_2M()  argument
366 ha->crb_win = CRB_HI(off_in); in qla82xx_pci_set_crbwindow_2M()
377 __func__, ha->crb_win, win_read, off_in); in qla82xx_pci_set_crbwindow_2M()
379 *off_out = (off_in & MASK(16)) + CRB_INDIRECT_2M + ha->nx_pcibase; in qla82xx_pci_set_crbwindow_2M()
383 qla82xx_pci_get_crb_addr_2M(struct qla_hw_data *ha, ulong off_in, in qla82xx_pci_get_crb_addr_2M() argument
388 if (off_in >= QLA82XX_CRB_MAX) in qla82xx_pci_get_crb_addr_2M()
391 if (off_in >= QLA82XX_PCI_CAMQM && off_in < QLA82XX_PCI_CAMQM_2M_END) { in qla82xx_pci_get_crb_addr_2M()
392 *off_out = (off_in - QLA82XX_PCI_CAMQM) + in qla82xx_pci_get_crb_addr_2M()
397 if (off_in < QLA82XX_PCI_CRBSPACE) in qla82xx_pci_get_crb_addr_2M()
400 off_in -= QLA82XX_PCI_CRBSPACE; in qla82xx_pci_get_crb_addr_2M()
403 m = &crb_128M_2M_map[CRB_BLK(off_in)].sub_block[CRB_SUBBLK(off_in)]; in qla82xx_pci_get_crb_addr_2M()
405 if (m->valid && (m->start_128M <= off_in) && (m->end_128M > off_in)) { in qla82xx_pci_get_crb_addr_2M()
406 *off_out = off_in + m->start_2M - m->start_128M + ha->nx_pcibase; in qla82xx_pci_get_crb_addr_2M()
410 *off_out = (void __iomem *)off_in; in qla82xx_pci_get_crb_addr_2M()
433 qla82xx_wr_32(struct qla_hw_data *ha, ulong off_in, u32 data) in qla82xx_wr_32() argument
439 rv = qla82xx_pci_get_crb_addr_2M(ha, off_in, &off); in qla82xx_wr_32()
448 qla82xx_pci_set_crbwindow_2M(ha, off_in, &off); in qla82xx_wr_32()
463 qla82xx_rd_32(struct qla_hw_data *ha, ulong off_in) in qla82xx_rd_32() argument
470 rv = qla82xx_pci_get_crb_addr_2M(ha, off_in, &off); in qla82xx_rd_32()
479 qla82xx_pci_set_crbwindow_2M(ha, off_in, &off); in qla82xx_rd_32()