Lines Matching refs:port
291 void rds_cong_set_bit(struct rds_cong_map *map, __be16 port) in rds_cong_set_bit() argument
297 &map->m_addr, ntohs(port), map); in rds_cong_set_bit()
299 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_set_bit()
300 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_set_bit()
305 void rds_cong_clear_bit(struct rds_cong_map *map, __be16 port) in rds_cong_clear_bit() argument
311 &map->m_addr, ntohs(port), map); in rds_cong_clear_bit()
313 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_clear_bit()
314 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_clear_bit()
319 static int rds_cong_test_bit(struct rds_cong_map *map, __be16 port) in rds_cong_test_bit() argument
324 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_test_bit()
325 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_test_bit()
360 int rds_cong_wait(struct rds_cong_map *map, __be16 port, int nonblock, in rds_cong_wait() argument
363 if (!rds_cong_test_bit(map, port)) in rds_cong_wait()
372 rs->rs_cong_mask |= RDS_CONG_MONITOR_MASK(ntohs(port)); in rds_cong_wait()
377 if (!rds_cong_test_bit(map, port)) in rds_cong_wait()
385 rdsdebug("waiting on map %p for port %u\n", map, be16_to_cpu(port)); in rds_cong_wait()
388 !rds_cong_test_bit(map, port)); in rds_cong_wait()