Lines Matching refs:ib_win

1116 	struct tsi721_ib_win *ib_win;  in tsi721_rio_map_inb_mem()  local
1172 ib_win = &priv->ib_win[i]; in tsi721_rio_map_inb_mem()
1174 if (!ib_win->active) { in tsi721_rio_map_inb_mem()
1179 } else if (ibw_start < (ib_win->rstart + ib_win->size) && in tsi721_rio_map_inb_mem()
1180 (ibw_start + ibw_size) > ib_win->rstart) { in tsi721_rio_map_inb_mem()
1182 if (!direct || ib_win->xlat) { in tsi721_rio_map_inb_mem()
1192 if (rstart >= ib_win->rstart && in tsi721_rio_map_inb_mem()
1193 (rstart + size) <= (ib_win->rstart + in tsi721_rio_map_inb_mem()
1194 ib_win->size)) { in tsi721_rio_map_inb_mem()
1197 list_add_tail(&map->node, &ib_win->mappings); in tsi721_rio_map_inb_mem()
1217 ib_win = &priv->ib_win[i]; in tsi721_rio_map_inb_mem()
1218 ib_win->active = true; in tsi721_rio_map_inb_mem()
1219 ib_win->rstart = ibw_start; in tsi721_rio_map_inb_mem()
1220 ib_win->lstart = loc_start; in tsi721_rio_map_inb_mem()
1221 ib_win->size = ibw_size; in tsi721_rio_map_inb_mem()
1222 ib_win->xlat = (lstart != rstart); in tsi721_rio_map_inb_mem()
1223 INIT_LIST_HEAD(&ib_win->mappings); in tsi721_rio_map_inb_mem()
1232 list_add_tail(&map->node, &ib_win->mappings); in tsi721_rio_map_inb_mem()
1267 struct tsi721_ib_win *ib_win; in tsi721_rio_unmap_inb_mem() local
1275 ib_win = &priv->ib_win[i]; in tsi721_rio_unmap_inb_mem()
1278 if (!ib_win->active || in tsi721_rio_unmap_inb_mem()
1279 (ib_win->xlat && lstart != ib_win->lstart)) in tsi721_rio_unmap_inb_mem()
1282 if (lstart >= ib_win->lstart && in tsi721_rio_unmap_inb_mem()
1283 lstart < (ib_win->lstart + ib_win->size)) { in tsi721_rio_unmap_inb_mem()
1285 if (!ib_win->xlat) { in tsi721_rio_unmap_inb_mem()
1290 &ib_win->mappings, node) { in tsi721_rio_unmap_inb_mem()
1302 if (!list_empty(&ib_win->mappings)) in tsi721_rio_unmap_inb_mem()
1308 ib_win->active = false; in tsi721_rio_unmap_inb_mem()
1343 struct tsi721_ib_win *ib_win; in tsi721_close_sr2pc_mapping() local
1348 ib_win = &priv->ib_win[i]; in tsi721_close_sr2pc_mapping()
1349 if (ib_win->active) { in tsi721_close_sr2pc_mapping()
1351 ib_win->active = false; in tsi721_close_sr2pc_mapping()