Lines Matching refs:rw

1334 	const struct bhndb_regwin	*rw;  in bhndb_dw_set_addr()  local
1338 rw = dwa->win; in bhndb_dw_set_addr()
1344 offset = addr % rw->win_size; in bhndb_dw_set_addr()
1348 if (rw->win_size - offset < size) in bhndb_dw_set_addr()
1440 const struct bhndb_regwin *rw; in bhndb_regwin_count() local
1444 for (rw = table; rw->win_type != BHNDB_REGWIN_T_INVALID; rw++) { in bhndb_regwin_count()
1445 if (type == BHNDB_REGWIN_T_INVALID || rw->win_type == type) in bhndb_regwin_count()
1466 const struct bhndb_regwin *rw; in bhndb_regwin_find_type() local
1468 for (rw = table; rw->win_type != BHNDB_REGWIN_T_INVALID; rw++) in bhndb_regwin_find_type()
1470 if (rw->win_type == type && rw->win_size >= min_size) in bhndb_regwin_find_type()
1471 return (rw); in bhndb_regwin_find_type()
1497 const struct bhndb_regwin *rw; in bhndb_regwin_find_core() local
1499 for (rw = table; rw->win_type != BHNDB_REGWIN_T_INVALID; rw++) in bhndb_regwin_find_core()
1504 if (rw->win_type != BHNDB_REGWIN_T_CORE) in bhndb_regwin_find_core()
1507 if (rw->d.core.class != class) in bhndb_regwin_find_core()
1510 if (unit != -1 && rw->d.core.unit != unit) in bhndb_regwin_find_core()
1513 if (rw->d.core.port_type != port_type) in bhndb_regwin_find_core()
1516 if (rw->d.core.port != port) in bhndb_regwin_find_core()
1519 if (rw->d.core.region != region) in bhndb_regwin_find_core()
1524 if (rw->d.core.offset > offset) in bhndb_regwin_find_core()
1527 rw_offset = offset - rw->d.core.offset; in bhndb_regwin_find_core()
1529 if (rw->win_size < rw_offset) in bhndb_regwin_find_core()
1532 if (rw->win_size - rw_offset < min_size) in bhndb_regwin_find_core()
1535 return (rw); in bhndb_regwin_find_core()
1565 const struct bhndb_regwin *rw; in bhndb_regwin_find_best() local
1568 rw = bhndb_regwin_find_core(table, class, unit, port_type, in bhndb_regwin_find_best()
1570 if (rw != NULL) in bhndb_regwin_find_best()
1571 return (rw); in bhndb_regwin_find_best()