Searched refs:UB_MAX_DEV (Results 1 – 2 of 2) sorted by relevance
164 static struct device_info devices[UB_MAX_DEV];168 return ((i < 0 || i >= UB_MAX_DEV) ? NULL : &devices[i]); in ub_dev_get()182 memset(&devices, 0, sizeof(struct device_info) * UB_MAX_DEV); in ub_dev_enum()190 if (++n >= UB_MAX_DEV) in ub_dev_enum()216 if (handle < 0 || handle >= UB_MAX_DEV) in ub_dev_open()231 if (handle < 0 || handle >= UB_MAX_DEV) in ub_dev_close()252 if (handle < 0 || handle >= UB_MAX_DEV) in dev_valid()
18 #define UB_MAX_DEV 6 /* max devices number */ macro