Lines Matching refs:DEVICE_CTX
441 usbi_err(DEVICE_CTX(dev), in _open_sysfs_attr()
500 usbi_err(DEVICE_CTX(dev), "read failed, ret=%d errno=%d", fd, errno); in sysfs_get_device_descriptor()
503 usbi_err(DEVICE_CTX(dev), "short read %d/%d", r, DEVICE_DESC_LENGTH); in sysfs_get_device_descriptor()
549 usbi_err(DEVICE_CTX(dev), in sysfs_get_active_config()
559 usbi_err(DEVICE_CTX(dev), "not null-terminated?"); in sysfs_get_active_config()
562 usbi_err(DEVICE_CTX(dev), "no configuration value?"); in sysfs_get_active_config()
568 usbi_err(DEVICE_CTX(dev), "error converting '%s' to integer", tmp); in sysfs_get_active_config()
636 usbi_err(DEVICE_CTX(dev), "end seek failed, ret=%d errno=%d", in sysfs_get_active_config_descriptor()
647 usbi_err(DEVICE_CTX(dev), "seek failed, ret=%d errno=%d", off, errno); in sysfs_get_active_config_descriptor()
657 usbi_err(DEVICE_CTX(dev), "read failed, ret=%d errno=%d", in sysfs_get_active_config_descriptor()
661 usbi_err(DEVICE_CTX(dev), "short read %d/%d", r, sizeof(tmp)); in sysfs_get_active_config_descriptor()
674 r = seek_to_next_config(DEVICE_CTX(dev), fd, 0); in sysfs_get_active_config_descriptor()
684 usbi_err(DEVICE_CTX(dev), "read failed, ret=%d errno=%d", in sysfs_get_active_config_descriptor()
691 usbi_err(DEVICE_CTX(dev), "short read %d/%d", r, len); in sysfs_get_active_config_descriptor()
765 usbi_err(DEVICE_CTX(dev), in op_get_config_descriptor()
770 r = get_config_descriptor(DEVICE_CTX(dev), fd, config_index, buffer, len); in op_get_config_descriptor()
798 r = get_config_descriptor(DEVICE_CTX(dev), fd, idx, tmp, sizeof(tmp)); in cache_active_config()
800 usbi_err(DEVICE_CTX(dev), "first read error %d", r); in cache_active_config()
809 r = get_config_descriptor(DEVICE_CTX(dev), fd, idx, buf, in cache_active_config()
844 usbi_warn(DEVICE_CTX(dev), in usbfs_get_active_config()
874 speed = __read_sysfs_attr(DEVICE_CTX(dev), sysfs_dir, "speed"); in initialize_device()
882 usbi_warn(DEVICE_CTX(dev), "Unknown device speed: %d Mbps", speed); in initialize_device()
915 usbi_err(DEVICE_CTX(dev), "open failed, ret=%d errno=%d", fd, errno); in initialize_device()
924 usbi_warn(DEVICE_CTX(dev), "access to %s is read-only; cannot " in initialize_device()
931 usbi_warn(DEVICE_CTX(dev), "couldn't query active " in initialize_device()
957 usbi_err(DEVICE_CTX(dev), in initialize_device()
963 usbi_err(DEVICE_CTX(dev), "short descriptor read (%d)", r); in initialize_device()