Searched refs:dev_buf (Results 1 – 1 of 1) sorted by relevance
669 unsigned char *dev_buf; in initialize_device() local748 dev_buf = malloc(DEVICE_DESC_LENGTH); in initialize_device()749 if (!dev_buf) { in initialize_device()754 r = read(fd, dev_buf, DEVICE_DESC_LENGTH); in initialize_device()758 free(dev_buf); in initialize_device()763 free(dev_buf); in initialize_device()770 dev->num_configurations = dev_buf[DEVICE_DESC_LENGTH - 1]; in initialize_device()776 free(dev_buf); in initialize_device()782 priv->dev_descriptor = dev_buf; in initialize_device()