Lines Matching refs:port
292 void rds_cong_set_bit(struct rds_cong_map *map, __be16 port) in rds_cong_set_bit() argument
298 &map->m_addr, ntohs(port), map); in rds_cong_set_bit()
300 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_set_bit()
301 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_set_bit()
306 void rds_cong_clear_bit(struct rds_cong_map *map, __be16 port) in rds_cong_clear_bit() argument
312 &map->m_addr, ntohs(port), map); in rds_cong_clear_bit()
314 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_clear_bit()
315 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_clear_bit()
320 static int rds_cong_test_bit(struct rds_cong_map *map, __be16 port) in rds_cong_test_bit() argument
325 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_test_bit()
326 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_test_bit()
361 int rds_cong_wait(struct rds_cong_map *map, __be16 port, int nonblock, in rds_cong_wait() argument
364 if (!rds_cong_test_bit(map, port)) in rds_cong_wait()
373 rs->rs_cong_mask |= RDS_CONG_MONITOR_MASK(ntohs(port)); in rds_cong_wait()
378 if (!rds_cong_test_bit(map, port)) in rds_cong_wait()
386 rdsdebug("waiting on map %p for port %u\n", map, be16_to_cpu(port)); in rds_cong_wait()
389 !rds_cong_test_bit(map, port)); in rds_cong_wait()