Lines Matching refs:devnum
1000 int devnum; in ib_umad_init_port() local
1004 devnum = find_first_zero_bit(dev_map, IB_UMAD_MAX_PORTS); in ib_umad_init_port()
1005 if (devnum >= IB_UMAD_MAX_PORTS) { in ib_umad_init_port()
1007 devnum = find_overflow_devnum(); in ib_umad_init_port()
1008 if (devnum < 0) in ib_umad_init_port()
1012 port->dev_num = devnum + IB_UMAD_MAX_PORTS; in ib_umad_init_port()
1013 base = devnum + overflow_maj; in ib_umad_init_port()
1014 set_bit(devnum, overflow_map); in ib_umad_init_port()
1016 port->dev_num = devnum; in ib_umad_init_port()
1017 base = devnum + base_dev; in ib_umad_init_port()
1018 set_bit(devnum, dev_map); in ib_umad_init_port()
1077 clear_bit(devnum, dev_map); in ib_umad_init_port()
1079 clear_bit(devnum, overflow_map); in ib_umad_init_port()