Searched refs:ep_path (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/tools/usb/ffs-aio-example/simple/device_app/ |
H A D | aio_simple.c | 225 char *ep_path; in main() local 245 ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */); in main() 246 if (!ep_path) { in main() 252 sprintf(ep_path, "%s/ep0", argv[1]); in main() 253 ep0 = open(ep_path, O_RDWR); in main() 267 sprintf(ep_path, "%s/ep%d", argv[1], i+1); in main() 268 ep[i] = open(ep_path, O_RDWR); in main() 276 free(ep_path); in main()
|
/openbmc/linux/tools/usb/ffs-aio-example/multibuff/device_app/ |
H A D | aio_multibuff.c | 238 char *ep_path; in main() local 256 ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */); in main() 257 if (!ep_path) { in main() 263 sprintf(ep_path, "%s/ep0", argv[1]); in main() 264 ep0 = open(ep_path, O_RDWR); in main() 277 sprintf(ep_path, "%s/ep1", argv[1]); in main() 278 ep1 = open(ep_path, O_RDWR); in main() 284 free(ep_path); in main()
|