Lines Matching defs:dev_num
400 umad_cache_add(uint_t dev_num, int port, char *ibdev)
402 if ((dev_num >= MAX_PORTS) || (umad_cache_cnt >= MAX_PORTS)) {
403 fprintf(stderr, "dev %d: exceeds umad cache size\n", dev_num);
407 umad_dev_cache[dev_num].umc_port = port;
408 strcpy(umad_dev_cache[dev_num].umc_ib_dev, ibdev);
409 umad_dev_cache[dev_num].umc_valid = 1;
1157 unsigned int dev_num;
1178 if (check_path(path, CP_UMAD, &dev_num)) {
1179 if (dev_num >= MAX_PORTS) {
1183 if (!umad_dev_cache[dev_num].umc_valid) {
1187 len = strlcpy(buf, umad_dev_cache[dev_num].umc_ib_dev,
1191 umad_dev_cache[dev_num].umc_port);