| /kernel/linux/linux-5.10/sound/core/ |
| D | info_oss.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 static DEFINE_MUTEX(strings); 24 int snd_oss_info_register(int dev, int num, char *string) in snd_oss_info_register() argument 29 return -ENXIO; in snd_oss_info_register() 30 if (snd_BUG_ON(num < 0 || num >= SNDRV_CARDS)) in snd_oss_info_register() 31 return -ENXIO; in snd_oss_info_register() 32 mutex_lock(&strings); in snd_oss_info_register() 34 if ((x = snd_sndstat_strings[num][dev]) != NULL) { in snd_oss_info_register() 41 mutex_unlock(&strings); in snd_oss_info_register() 42 return -ENOMEM; in snd_oss_info_register() [all …]
|
| /kernel/linux/linux-6.6/sound/core/ |
| D | info_oss.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 static DEFINE_MUTEX(strings); 24 int snd_oss_info_register(int dev, int num, char *string) in snd_oss_info_register() argument 29 return -ENXIO; in snd_oss_info_register() 30 if (snd_BUG_ON(num < 0 || num >= SNDRV_CARDS)) in snd_oss_info_register() 31 return -ENXIO; in snd_oss_info_register() 32 mutex_lock(&strings); in snd_oss_info_register() 34 x = snd_sndstat_strings[num][dev]; in snd_oss_info_register() 40 mutex_unlock(&strings); in snd_oss_info_register() 41 return -ENOMEM; in snd_oss_info_register() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/leds/backlight/ |
| D | qcom-wled.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/qcom-wled.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bjorn Andersson <bjorn.andersson@linaro.org> 11 - Kiran Gunda <kgunda@codeaurora.org> 21 - qcom,pm8941-wled 22 - qcom,pmi8950-wled 23 - qcom,pmi8994-wled 24 - qcom,pmi8998-wled [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/backlight/ |
| D | qcom-wled.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/qcom-wled.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bjorn Andersson <bjorn.andersson@linaro.org> 11 - Kiran Gunda <kgunda@codeaurora.org> 21 - qcom,pm8941-wled 22 - qcom,pmi8998-wled 23 - qcom,pm660l-wled 24 - qcom,pm8150l-wled [all …]
|
| /kernel/linux/linux-5.10/drivers/xen/xenbus/ |
| D | xenbus_xs.c | 110 xs_suspend_active--; in xs_suspend_exit() 119 req->type = req->msg.type; in xs_request_enter() 129 if (req->type == XS_TRANSACTION_START && !req->user_req) in xs_request_enter() 142 xs_state_users--; in xs_request_exit() 143 if ((req->type == XS_TRANSACTION_START && req->msg.type == XS_ERROR) || in xs_request_exit() 144 (req->type == XS_TRANSACTION_END && !req->user_req && in xs_request_exit() 145 !WARN_ON_ONCE(req->msg.type == XS_ERROR && in xs_request_exit() 146 !strcmp(req->body, "ENOENT")))) in xs_request_exit() 147 xs_state_users--; in xs_request_exit() 159 if (i == ARRAY_SIZE(xsd_errors) - 1) { in get_error() [all …]
|
| /kernel/linux/linux-6.6/drivers/xen/xenbus/ |
| D | xenbus_xs.c | 110 xs_suspend_active--; in xs_suspend_exit() 125 req->type = req->msg.type; in xs_request_enter() 135 if (req->type == XS_TRANSACTION_START && !req->user_req) in xs_request_enter() 148 xs_state_users--; in xs_request_exit() 149 if ((req->type == XS_TRANSACTION_START && req->msg.type == XS_ERROR) || in xs_request_exit() 150 (req->type == XS_TRANSACTION_END && !req->user_req && in xs_request_exit() 151 !WARN_ON_ONCE(req->msg.type == XS_ERROR && in xs_request_exit() 152 !strcmp(req->body, "ENOENT")))) in xs_request_exit() 153 xs_state_users--; in xs_request_exit() 165 if (i == ARRAY_SIZE(xsd_errors) - 1) { in get_error() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/ |
| D | atmel-usb.txt | 6 - compatible: Should be "atmel,at91rm9200-ohci" for USB controllers 8 - reg: Address and length of the register set for the device 9 - interrupts: Should contain ohci interrupt 10 - clocks: Should reference the peripheral, host and system clocks 11 - clock-names: Should contain three strings 15 - num-ports: Number of ports. 16 - atmel,vbus-gpio: If present, specifies a gpio that needs to be 18 - atmel,oc-gpio: If present, specifies a gpio that needs to be 22 compatible = "atmel,at91rm9200-ohci", "usb-ohci"; 25 clock-names = "ohci_clk", "hclk", "uhpck"; [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/usb/ |
| D | atmel-usb.txt | 6 - compatible: Should be "atmel,at91rm9200-ohci" for USB controllers 8 - reg: Address and length of the register set for the device 9 - interrupts: Should contain ohci interrupt 10 - clocks: Should reference the peripheral, host and system clocks 11 - clock-names: Should contain three strings 15 - num-ports: Number of ports. 16 - atmel,vbus-gpio: If present, specifies a gpio that needs to be 18 - atmel,oc-gpio: If present, specifies a gpio that needs to be 22 compatible = "atmel,at91rm9200-ohci", "usb-ohci"; 25 clock-names = "ohci_clk", "hclk", "uhpck"; [all …]
|
| /kernel/linux/linux-6.6/lib/ |
| D | string_helpers.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Helpers for formatting and printing strings 23 * string_get_size - get the size in the specified units 114 remainder -= 1000; in string_get_size() 135 * parse_int_array_user - Split string into a sequence of integers 159 ret = -ENOENT; in parse_int_array_user() 165 ret = -ENOMEM; in parse_int_array_user() 209 u8 num; in unescape_octal() local 214 num = (*q++) & 7; in unescape_octal() 215 while (num < 32 && isodigit(*q) && (q - *src < 3)) { in unescape_octal() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/generic/ |
| D | simple-card-utils.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // simple-card-utils.c 25 if (data->convert_rate) in asoc_simple_convert_fixup() 26 rate->min = in asoc_simple_convert_fixup() 27 rate->max = data->convert_rate; in asoc_simple_convert_fixup() 29 if (data->convert_channels) in asoc_simple_convert_fixup() 30 channels->min = in asoc_simple_convert_fixup() 31 channels->max = data->convert_channels; in asoc_simple_convert_fixup() 46 snprintf(prop, sizeof(prop), "%s%s", prefix, "convert-rate"); in asoc_simple_parse_convert() 47 of_property_read_u32(np, prop, &data->convert_rate); in asoc_simple_parse_convert() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/spi/ |
| D | omap-spi.txt | 4 - compatible : 5 - "ti,am654-mcspi" for AM654. 6 - "ti,omap2-mcspi" for OMAP2 & OMAP3. 7 - "ti,omap4-mcspi" for OMAP4+. 8 - ti,spi-num-cs : Number of chipselect supported by the instance. 9 - ti,hwmods: Name of the hwmod associated to the McSPI 10 - ti,pindir-d0-out-d1-in: Select the D0 pin as output and D1 as 15 - dmas: List of DMA specifiers with the controller specific format 18 - dma-names: List of DMA request names. These strings correspond 28 #address-cells = <1>; [all …]
|
| /kernel/linux/linux-5.10/lib/ |
| D | string_helpers.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Helpers for formatting and printing strings 22 * string_get_size - get the size in the specified units 113 remainder -= 1000; in string_get_size() 164 u8 num; in unescape_octal() local 169 num = (*q++) & 7; in unescape_octal() 170 while (num < 32 && isodigit(*q) && (q - *src < 3)) { in unescape_octal() 171 num <<= 3; in unescape_octal() 172 num += (*q++) & 7; in unescape_octal() 174 *p = num; in unescape_octal() [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/gadget/ |
| D | configfs.c | 1 // SPDX-License-Identifier: GPL-2.0 16 u16 num; in check_user_usb_string() local 19 ret = kstrtou16(name, 0, &num); in check_user_usb_string() 23 if (!usb_validate_langid(num)) in check_user_usb_string() 24 return -EINVAL; in check_user_usb_string() 26 stringtab_dev->language = num; in check_user_usb_string() 78 struct usb_string strings[USB_GADGET_FIRST_AVAIL_IDX]; member 93 struct usb_string strings; member 110 return -EOVERFLOW; in usb_string_copy() 112 return -EINVAL; in usb_string_copy() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mtd/ |
| D | marvell-nand.txt | 4 - compatible: can be one of the following: 5 * "marvell,armada-8k-nand-controller" 6 * "marvell,armada370-nand-controller" 7 * "marvell,pxa3xx-nand-controller" 8 * "marvell,armada-8k-nand" (deprecated) 9 * "marvell,armada370-nand" (deprecated) 10 * "marvell,pxa3xx-nand" (deprecated) 13 - reg: NAND flash controller memory area. 14 - #address-cells: shall be set to 1. Encode the NAND CS. 15 - #size-cells: shall be set to 0. [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
| D | davinci-mcasp-audio.txt | 4 - compatible : 5 "ti,dm646x-mcasp-audio" : for DM646x platforms 6 "ti,da830-mcasp-audio" : for both DA830 & DA850 platforms 7 "ti,am33xx-mcasp-audio" : for AM33xx platforms (AM33xx, AM43xx, TI81xx) 8 "ti,dra7-mcasp-audio" : for DRA7xx platforms 10 - reg : Should contain reg specifiers for the entries in the reg-names property. 11 - reg-names : Should contain: 15 - op-mode : I2S/DIT ops mode. 0 for I2S mode. 1 for DIT mode used for S/PDIF, 16 IEC60958-1, and AES-3 formats. 17 - tdm-slots : Slots for TDM operation. Indicates number of channels transmitted [all …]
|
| /kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
| D | uvc_configfs.c | 1 // SPDX-License-Identifier: GPL-2.0 19 /* ----------------------------------------------------------------------------- 48 return li < ri ? -1 : li == ri ? 0 : 1; in uvcg_config_compare_u32() 59 unsigned int num; in __uvcg_fill_item_entries() local 63 ret = kstrtouint(buf, 0, &num); in __uvcg_fill_item_entries() 67 if (num != (num & GENMASK((size * 8) - 1, 0))) in __uvcg_fill_item_entries() 68 return -ERANGE; in __uvcg_fill_item_entries() 71 memcpy(*values, &num, size); in __uvcg_fill_item_entries() 88 return -EINVAL; in __uvcg_iter_item_entries() 92 return -ENOMEM; in __uvcg_iter_item_entries() [all …]
|
| D | f_loopback.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * f_loopback.c - USB peripheral loopback configuration driver 5 * Copyright (C) 2003-2008 David Brownell 43 /*-------------------------------------------------------------------------*/ 147 /* function-specific strings: */ 155 .language = 0x0409, /* en-us */ 156 .strings = strings_loopback, 164 /*-------------------------------------------------------------------------*/ 168 struct usb_composite_dev *cdev = c->cdev; in loopback_bind() 187 loop->in_ep = usb_ep_autoconfig(cdev->gadget, &fs_loop_source_desc); in loopback_bind() [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
| D | f_loopback.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * f_loopback.c - USB peripheral loopback configuration driver 5 * Copyright (C) 2003-2008 David Brownell 43 /*-------------------------------------------------------------------------*/ 147 /* function-specific strings: */ 155 .language = 0x0409, /* en-us */ 156 .strings = strings_loopback, 164 /*-------------------------------------------------------------------------*/ 168 struct usb_composite_dev *cdev = c->cdev; in loopback_bind() 187 loop->in_ep = usb_ep_autoconfig(cdev->gadget, &fs_loop_source_desc); in loopback_bind() [all …]
|
| /kernel/linux/linux-6.6/drivers/usb/gadget/legacy/ |
| D | g_ffs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * g_ffs.c -- user mode file system API for USB composite function controllers 108 .language = 0x0409, /* en-us */ 109 .strings = gfs_strings, 117 int num; member 151 .strings = gfs_dev_strings, 193 ret = -ENOMEM; in gfs_init() 201 ret = -ENOMEM; in gfs_init() 209 --i; in gfs_init() 214 ret = ffs_single_dev(opts->dev); in gfs_init() [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/gadget/legacy/ |
| D | g_ffs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * g_ffs.c -- user mode file system API for USB composite function controllers 108 .language = 0x0409, /* en-us */ 109 .strings = gfs_strings, 117 int num; member 151 .strings = gfs_dev_strings, 195 ret = -ENOMEM; in gfs_init() 203 ret = -ENOMEM; in gfs_init() 211 --i; in gfs_init() 216 ret = ffs_single_dev(opts->dev); in gfs_init() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
| D | test_global_data.c | 1 // SPDX-License-Identifier: GPL-2.0 46 /* Relocation tests for strings. */ 65 #define test_reloc(map, num, var) \ argument 67 __u32 key = num; \
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
| D | test_global_data.c | 1 // SPDX-License-Identifier: GPL-2.0 46 /* Relocation tests for strings. */ 65 #define test_reloc(map, num, var) \ argument 67 __u32 key = num; \
|
| /kernel/linux/linux-6.6/drivers/usb/gadget/ |
| D | configfs.c | 1 // SPDX-License-Identifier: GPL-2.0 18 u16 num; in check_user_usb_string() local 21 ret = kstrtou16(name, 0, &num); in check_user_usb_string() 25 if (!usb_validate_langid(num)) in check_user_usb_string() 26 return -EINVAL; in check_user_usb_string() 28 stringtab_dev->language = num; in check_user_usb_string() 86 return container_of(cfg->c.cdev, struct gadget_info, cdev); in cfg_to_gadget_info() 91 struct usb_string strings[USB_GADGET_FIRST_AVAIL_IDX]; member 104 struct usb_string strings; member 121 return -EOVERFLOW; in usb_string_copy() [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | of.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 8 * Copyright (C) 1996-2005 Paul Mackerras. 109 kobject_init(&node->kobj, &of_node_ktype); in of_node_init() 111 node->fwnode.ops = &of_fwnode_ops; in of_node_init() 115 #define of_node_kobj(n) (&(n)->kobj) 124 /* Dummy ref counting routines - to be implemented later */ 150 #define OF_BAD_ADDR ((u64)-1) 157 return !IS_ERR_OR_NULL(fwnode) && fwnode->ops == &of_fwnode_ops; in is_of_node() 175 &__of_fwnode_handle_node->fwnode : NULL; \ 185 return node && (node->parent == NULL); in of_node_is_root() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpio/ |
| D | gpio-reg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * gpio-reg: single register individually fixed-direction GPIOs 8 #include <linux/gpio/gpio-reg.h> 29 return r->direction & BIT(offset) ? GPIO_LINE_DIRECTION_IN : in gpio_reg_get_direction() 38 if (r->direction & BIT(offset)) in gpio_reg_direction_output() 39 return -ENOTSUPP; in gpio_reg_direction_output() 41 gc->set(gc, offset, value); in gpio_reg_direction_output() 49 return r->direction & BIT(offset) ? 0 : -ENOTSUPP; in gpio_reg_direction_input() 58 spin_lock_irqsave(&r->lock, flags); in gpio_reg_set() 59 val = r->out; in gpio_reg_set() [all …]
|