Lines Matching refs:value

34 	int	value = -EINVAL;  in usb_add_function()  local
47 value = function->bind(config, function); in usb_add_function()
48 if (value < 0) { in usb_add_function()
53 value = 0; in usb_add_function()
61 if (value) in usb_add_function()
63 function->name, function, value); in usb_add_function()
64 return value; in usb_add_function()
509 int value; in lookup_string() local
516 value = usb_gadget_get_string(s, id, buf); in lookup_string()
517 if (value > 0) in lookup_string()
518 return value; in lookup_string()
706 int value = -EOPNOTSUPP; in composite_setup() local
753 value = min(w_length, (u16) sizeof cdev->desc); in composite_setup()
754 memcpy(req->buf, &cdev->desc, value); in composite_setup()
760 value = min_t(int, w_length, in composite_setup()
768 value = config_desc(cdev, w_value); in composite_setup()
769 if (value >= 0) in composite_setup()
770 value = min(w_length, (u16) value); in composite_setup()
773 value = get_string(cdev, req->buf, in composite_setup()
775 if (value >= 0) in composite_setup()
776 value = min(w_length, (u16) value); in composite_setup()
804 value = set_config(cdev, ctrl, w_value); in composite_setup()
813 value = min(w_length, (u16) 1); in composite_setup()
830 value = f->set_alt(f, w_index, w_value); in composite_setup()
841 value = f->get_alt ? f->get_alt(f, w_index) : 0; in composite_setup()
842 if (value < 0) in composite_setup()
844 *((u8 *)req->buf) = value; in composite_setup()
845 value = min(w_length, (u16) 1); in composite_setup()
897 value = f->setup(f, ctrl); in composite_setup()
901 value = c->setup(c, ctrl); in composite_setup()
908 if (value >= 0) { in composite_setup()
909 req->length = value; in composite_setup()
910 req->zero = value < w_length; in composite_setup()
911 value = usb_ep_queue(gadget->ep0, req, GFP_KERNEL); in composite_setup()
912 if (value < 0) { in composite_setup()
913 debug("ep_queue --> %d\n", value); in composite_setup()
921 return value; in composite_setup()