Lines Matching refs:port
299 void rds_cong_set_bit(struct rds_cong_map *map, __be16 port) in rds_cong_set_bit() argument
305 &map->m_addr, ntohs(port), map); in rds_cong_set_bit()
307 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_set_bit()
308 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_set_bit()
313 void rds_cong_clear_bit(struct rds_cong_map *map, __be16 port) in rds_cong_clear_bit() argument
319 &map->m_addr, ntohs(port), map); in rds_cong_clear_bit()
321 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_clear_bit()
322 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_clear_bit()
327 static int rds_cong_test_bit(struct rds_cong_map *map, __be16 port) in rds_cong_test_bit() argument
332 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_test_bit()
333 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_test_bit()
368 int rds_cong_wait(struct rds_cong_map *map, __be16 port, int nonblock, in rds_cong_wait() argument
371 if (!rds_cong_test_bit(map, port)) in rds_cong_wait()
380 rs->rs_cong_mask |= RDS_CONG_MONITOR_MASK(ntohs(port)); in rds_cong_wait()
385 if (!rds_cong_test_bit(map, port)) in rds_cong_wait()
393 rdsdebug("waiting on map %p for port %u\n", map, be16_to_cpu(port)); in rds_cong_wait()
396 !rds_cong_test_bit(map, port)); in rds_cong_wait()