Searched refs:iounit (Results 1 - 8 of 8) sorted by relevance
/linux-4.4.14/arch/sparc/mm/ |
H A D | io-unit.c | 42 struct iounit_struct *iounit; iounit_iommu_init() local 46 iounit = kzalloc(sizeof(struct iounit_struct), GFP_ATOMIC); iounit_iommu_init() 47 if (!iounit) { iounit_iommu_init() 48 prom_printf("SUN4D: Cannot alloc iounit, halting.\n"); iounit_iommu_init() 52 iounit->limit[0] = IOUNIT_BMAP1_START; iounit_iommu_init() 53 iounit->limit[1] = IOUNIT_BMAP2_START; iounit_iommu_init() 54 iounit->limit[2] = IOUNIT_BMAPM_START; iounit_iommu_init() 55 iounit->limit[3] = IOUNIT_BMAPM_END; iounit_iommu_init() 56 iounit->rotor[1] = IOUNIT_BMAP2_START; iounit_iommu_init() 57 iounit->rotor[2] = IOUNIT_BMAPM_START; iounit_iommu_init() 65 op->dev.archdata.iommu = iounit; iounit_iommu_init() 66 iounit->page_table = xpt; iounit_iommu_init() 67 spin_lock_init(&iounit->lock); iounit_iommu_init() 69 xptend = iounit->page_table + (16 * PAGE_SIZE) / sizeof(iopte_t); iounit_iommu_init() 93 /* One has to hold iounit->lock to call this */ iounit_get_area() 94 static unsigned long iounit_get_area(struct iounit_struct *iounit, unsigned long vaddr, int size) iounit_get_area() argument 112 rotor = iounit->rotor[j - 1]; iounit_get_area() 113 limit = iounit->limit[j]; iounit_get_area() 115 nexti: scan = find_next_zero_bit(iounit->bmap, limit, scan); iounit_get_area() 119 scan = iounit->limit[j - 1]; iounit_get_area() 128 if (test_bit(scan++, iounit->bmap)) iounit_get_area() 130 iounit->rotor[j - 1] = (scan < limit) ? scan : iounit->limit[j - 1]; iounit_get_area() 135 set_bit(scan, iounit->bmap); iounit_get_area() 136 sbus_writel(iopte, &iounit->page_table[scan]); iounit_get_area() 144 struct iounit_struct *iounit = dev->archdata.iommu; iounit_get_scsi_one() local 147 spin_lock_irqsave(&iounit->lock, flags); iounit_get_scsi_one() 148 ret = iounit_get_area(iounit, (unsigned long)vaddr, len); iounit_get_scsi_one() 149 spin_unlock_irqrestore(&iounit->lock, flags); iounit_get_scsi_one() 155 struct iounit_struct *iounit = dev->archdata.iommu; iounit_get_scsi_sgl() local 159 spin_lock_irqsave(&iounit->lock, flags); iounit_get_scsi_sgl() 162 sg->dma_address = iounit_get_area(iounit, (unsigned long) sg_virt(sg), sg->length); iounit_get_scsi_sgl() 166 spin_unlock_irqrestore(&iounit->lock, flags); iounit_get_scsi_sgl() 171 struct iounit_struct *iounit = dev->archdata.iommu; iounit_release_scsi_one() local 174 spin_lock_irqsave(&iounit->lock, flags); iounit_release_scsi_one() 179 clear_bit(vaddr, iounit->bmap); iounit_release_scsi_one() 180 spin_unlock_irqrestore(&iounit->lock, flags); iounit_release_scsi_one() 185 struct iounit_struct *iounit = dev->archdata.iommu; iounit_release_scsi_sgl() local 189 spin_lock_irqsave(&iounit->lock, flags); iounit_release_scsi_sgl() 196 clear_bit(vaddr, iounit->bmap); iounit_release_scsi_sgl() 199 spin_unlock_irqrestore(&iounit->lock, flags); iounit_release_scsi_sgl() 205 struct iounit_struct *iounit = dev->archdata.iommu; iounit_map_dma_area() local 230 iopte = iounit->page_table + i; iounit_map_dma_area()
|
/linux-4.4.14/net/9p/ |
H A D | client.c | 1235 int iounit; p9_client_open() local 1254 err = p9pdu_readf(req->rc, clnt->proto_version, "Qd", &qid, &iounit); p9_client_open() 1260 p9_debug(P9_DEBUG_9P, "<<< %s qid %x.%llx.%x iounit %x\n", p9_client_open() 1262 (unsigned long long)qid.path, qid.version, iounit); p9_client_open() 1265 fid->iounit = iounit; p9_client_open() 1280 int iounit; p9_client_create_dotl() local 1298 err = p9pdu_readf(req->rc, clnt->proto_version, "Qd", qid, &iounit); p9_client_create_dotl() 1304 p9_debug(P9_DEBUG_9P, "<<< RLCREATE qid %x.%llx.%x iounit %x\n", p9_client_create_dotl() 1307 qid->version, iounit); p9_client_create_dotl() 1310 ofid->iounit = iounit; p9_client_create_dotl() 1326 int iounit; p9_client_fcreate() local 1343 err = p9pdu_readf(req->rc, clnt->proto_version, "Qd", &qid, &iounit); p9_client_fcreate() 1349 p9_debug(P9_DEBUG_9P, "<<< RCREATE qid %x.%llx.%x iounit %x\n", p9_client_fcreate() 1352 qid.version, iounit); p9_client_fcreate() 1355 fid->iounit = iounit; p9_client_fcreate() 1554 rsize = fid->iounit; p9_client_read() 1632 int rsize = fid->iounit; p9_client_write() 2074 rsize = fid->iounit; p9_client_readdir()
|
/linux-4.4.14/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_config.c | 761 * mpt3sas_config_get_iounit_pg0 - obtain iounit page 0 797 * mpt3sas_config_get_iounit_pg1 - obtain iounit page 1 833 * mpt3sas_config_set_iounit_pg1 - set iounit page 1 869 * mpt3sas_config_get_iounit_pg3 - obtain iounit page 3 905 * mpt3sas_config_get_iounit_pg8 - obtain iounit page 8 1104 * mpt3sas_config_get_sas_iounit_pg0 - obtain sas iounit page 0 1145 * mpt3sas_config_get_sas_iounit_pg1 - obtain sas iounit page 1 1186 * mpt3sas_config_set_sas_iounit_pg1 - send sas iounit page 1
|
H A D | mpt3sas_base.h | 851 * @iounit_pg0: static iounit page 0 852 * @iounit_pg1: static iounit page 1 853 * @iounit_pg8: static iounit page 8
|
H A D | mpt3sas_scsih.c | 3056 * using high priority request queue. It will send a sas iounit 3173 * It will send a sas iounit control request (MPI2_SAS_OP_REMOVE_DEVICE) 3259 * This is the sas iounit control completion routine.
|
H A D | mpt3sas_base.c | 3924 * mpt3sas_base_sas_iounit_control - send sas iounit control to FW
|
/linux-4.4.14/include/net/9p/ |
H A D | client.h | 176 * @iounit: the server reported maximum transaction size for this file 190 u32 iounit; member in struct:p9_fid
|
/linux-4.4.14/arch/sparc/include/asm/ |
H A D | dma.h | 121 * mmu_map/unmap are provided by iommu/iounit; Invalid to call on IIep.
|
Completed in 410 milliseconds