| /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-4.19/sound/core/ |
| D | info_oss.c | 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 36 static DEFINE_MUTEX(strings); 39 int snd_oss_info_register(int dev, int num, char *string) in snd_oss_info_register() argument 44 return -ENXIO; in snd_oss_info_register() 45 if (snd_BUG_ON(num < 0 || num >= SNDRV_CARDS)) in snd_oss_info_register() 46 return -ENXIO; in snd_oss_info_register() 47 mutex_lock(&strings); in snd_oss_info_register() 49 if ((x = snd_sndstat_strings[num][dev]) != NULL) { in snd_oss_info_register() 56 mutex_unlock(&strings); in snd_oss_info_register() 57 return -ENOMEM; in snd_oss_info_register() [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-4.19/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-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-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-4.19/Documentation/devicetree/bindings/leds/backlight/ |
| D | pm8941-wled.txt | 4 - compatible: should be "qcom,pm8941-wled" 5 - reg: slave address 8 - default-brightness: brightness value on boot, value from: 0-4095 10 - label: The name of the backlight device 11 - qcom,cs-out: bool; enable current sink output 12 - qcom,cabc: bool; enable content adaptive backlight control 13 - qcom,ext-gen: bool; use externally generated modulator signal to dim 14 - qcom,current-limit: mA; per-string current limit; value from 0 to 25 16 - qcom,current-boost-limit: mA; boost current limit; one of: 19 - qcom,switching-freq: kHz; switching frequency; one of: [all …]
|
| /kernel/linux/linux-4.19/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-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-4.19/Documentation/devicetree/bindings/spi/ |
| D | omap-spi.txt | 4 - compatible : 5 - "ti,omap2-mcspi" for OMAP2 & OMAP3. 6 - "ti,omap4-mcspi" for OMAP4+. 7 - ti,spi-num-cs : Number of chipselect supported by the instance. 8 - ti,hwmods: Name of the hwmod associated to the McSPI 9 - ti,pindir-d0-out-d1-in: Select the D0 pin as output and D1 as 14 - dmas: List of DMA specifiers with the controller specific format 17 - dma-names: List of DMA request names. These strings correspond 27 #address-cells = <1>; 28 #size-cells = <0>; [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-4.19/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 primary_lang = num & 0x3ff; in check_user_usb_string() 26 sub_lang = num >> 10; in check_user_usb_string() 33 return -EINVAL; in check_user_usb_string() 36 return -EINVAL; in check_user_usb_string() 38 stringtab_dev->language = num; in check_user_usb_string() 90 struct usb_string strings[USB_GADGET_FIRST_AVAIL_IDX]; member 105 struct usb_string strings; member [all …]
|
| /kernel/linux/linux-4.19/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-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 109 return -EOVERFLOW; in usb_string_copy() 116 return -ENOMEM; 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-4.19/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-4.19/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-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-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-4.19/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-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-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-4.19/include/linux/ |
| D | of.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 8 * Copyright (C) 1996-2005 Paul Mackerras. 111 kobject_init(&node->kobj, &of_node_ktype); in of_node_init() 113 node->fwnode.ops = &of_fwnode_ops; in of_node_init() 117 #define of_node_kobj(n) (&(n)->kobj) 126 /* Dummy ref counting routines - to be implemented later */ 152 #define OF_BAD_ADDR ((u64)-1) 159 return !IS_ERR_OR_NULL(fwnode) && fwnode->ops == &of_fwnode_ops; in is_of_node() 177 &__of_fwnode_handle_node->fwnode : NULL; \ 187 return node && (node->parent == NULL); in of_node_is_root() [all …]
|