Lines Matching +full:self +full:- +full:powered
1 // SPDX-License-Identifier: GPL-2.0
3 * nokia.c -- Nokia Composite Gadget Driver
5 * Copyright (C) 2008-2010 Nokia Corporation
28 #define NOKIA_LONG_NAME "N900 (PC-Suite Mode)"
65 static const char description_nokia[] = "PC-Suite Configuration";
76 .language = 0x0409, /* en-us */
98 /*-------------------------------------------------------------------------*/
105 /*-------------------------------------------------------------------------*/
121 .label = "Bus Powered",
129 .label = "Self Powered",
152 int obex1_stat = -1; in nokia_bind_config()
153 int obex2_stat = -1; in nokia_bind_config()
154 int phonet_stat = -1; in nokia_bind_config()
269 struct usb_gadget *gadget = cdev->gadget; in nokia_bind()
284 status = -ENODEV; in nokia_bind()
324 fsg_opts->no_configfs = true; in nokia_bind()
326 status = fsg_common_set_num_buffers(fsg_opts->common, fsg_num_buffers); in nokia_bind()
330 status = fsg_common_set_cdev(fsg_opts->common, cdev, fsg_config.can_stall); in nokia_bind()
334 fsg_common_set_sysfs(fsg_opts->common, true); in nokia_bind()
336 status = fsg_common_create_luns(fsg_opts->common, &fsg_config); in nokia_bind()
340 fsg_common_set_inquiry_string(fsg_opts->common, fsg_config.vendor_name, in nokia_bind()
355 dev_info(&gadget->dev, "%s\n", NOKIA_LONG_NAME); in nokia_bind()
369 fsg_common_remove_luns(fsg_opts->common); in nokia_bind()
371 fsg_common_free_buffers(fsg_opts->common); in nokia_bind()