/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
D | brcm,spi-bcm-qspi.txt | 9 io with 3-byte and 4-byte addressing support. 18 - #address-cells: 21 - #size-cells: 24 - compatible: 26 "brcm,spi-brcmstb-qspi", "brcm,spi-bcm-qspi" : MSPI+BSPI on BRCMSTB SoCs 27 "brcm,spi-brcmstb-mspi", "brcm,spi-bcm-qspi" : Second Instance of MSPI 29 "brcm,spi-bcm7425-qspi", "brcm,spi-bcm-qspi", "brcm,spi-brcmstb-mspi" : Second Instance of MSPI 31 "brcm,spi-bcm7429-qspi", "brcm,spi-bcm-qspi", "brcm,spi-brcmstb-mspi" : Second Instance of MSPI 33 "brcm,spi-bcm7435-qspi", "brcm,spi-bcm-qspi", "brcm,spi-brcmstb-mspi" : Second Instance of MSPI 35 "brcm,spi-bcm7445-qspi", "brcm,spi-bcm-qspi", "brcm,spi-brcmstb-mspi" : Second Instance of MSPI [all …]
|
/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 …]
|
D | parser.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * lib/parser.c - simple parser for mount, etc. options. 14 * match_one: - Determines if a string matches a simple pattern 33 int len = -1; in match_one() 38 if (strncmp(p, s, meta-p)) in match_one() 41 s += meta - p; in match_one() 63 if (len == -1 || len > str_len) in match_one() 70 goto num; in match_one() 73 goto num; in match_one() 76 goto num; in match_one() [all …]
|
/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 107 return -EOVERFLOW; in usb_string_copy() 111 return -ENOMEM; in usb_string_copy() [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
D | f_sourcesink.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * f_sourcesink.c - USB peripheral source/sink configuration driver 5 * Copyright (C) 2003-2008 David Brownell 30 * plus two that support control-OUT tests. If the optional "autoresume" 32 * test harness from USB-IF. 58 /*-------------------------------------------------------------------------*/ 271 /* function-specific strings: */ 279 .language = 0x0409, /* en-us */ 280 .strings = strings_sourcesink, 288 /*-------------------------------------------------------------------------*/ [all …]
|
D | f_fs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * f_fs.c -- user mode file system API for USB composite function controllers 9 * Copyright (C) 2003-2004 David Brownell 57 /* Called with ffs->mutex held; take over ownership of data. */ 91 cmpxchg(&ffs->setup_state, FFS_SETUP_CANCELLED, FFS_NO_SETUP); in ffs_setup_state_clear_cancelled() 111 static int ffs_func_revmap_ep(struct ffs_function *func, u8 num); 118 struct usb_ep *ep; /* P: ffs->eps_lock */ 119 struct usb_request *req; /* P: epfile->mutex */ 124 u8 num; member 126 int status; /* P: epfile->mutex */ [all …]
|
D | f_uac1.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * f_uac1.c -- USB Audio Class 1.0 Function (using u_audio API) 8 * on the device - the audio streams are simply sinked to and 34 * DESCRIPTORS ... most are static, but strings and full 39 * We have three interfaces - one AudioControl and two AudioStreaming 42 * USB-OUT -> IT_1 -> OT_2 -> ALSA_Capture 43 * ALSA_Playback -> IT_3 -> OT_4 -> USB-IN 70 /* B.3.2 Class-Specific AC Interface Descriptor */ 166 /* B.4.2 Class-Specific AS Interface Descriptor */ 208 /* Class-specific AS ISO OUT Endpoint Descriptor */ [all …]
|
/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 …]
|
/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; \
|
/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 …]
|
/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 …]
|
/linux-5.10/include/linux/mmc/ |
D | sdio_func.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright 2007-2008 Pierre Ossman 38 unsigned int num; /* function number */ member 56 unsigned num_info; /* number of info strings */ 57 const char **info; /* info strings */ 62 #define sdio_func_present(f) ((f)->state & SDIO_STATE_PRESENT) 64 #define sdio_func_set_present(f) ((f)->state |= SDIO_STATE_PRESENT) 66 #define sdio_func_id(f) (dev_name(&(f)->dev)) 68 #define sdio_get_drvdata(f) dev_get_drvdata(&(f)->dev) 69 #define sdio_set_drvdata(f,d) dev_set_drvdata(&(f)->dev, d) [all …]
|
/linux-5.10/Documentation/devicetree/bindings/pci/ |
D | hisilicon-histb-pcie.txt | 6 Documentation/devicetree/bindings/pci/designware-pcie.txt. 11 - compatible: Should be one of the following strings: 12 "hisilicon,hi3798cv200-pcie" 13 - reg: Should contain sysctl, rc_dbi, config registers location and length. 14 - reg-names: Must include the following entries: 16 "rc-dbi": configuration space of PCIe controller; 18 - bus-range: PCI bus numbers covered. 19 - interrupts: MSI interrupt. 20 - interrupt-names: Must include "msi" entries. 21 - clocks: List of phandle and clock specifier pairs as listed in clock-names [all …]
|
/linux-5.10/kernel/trace/ |
D | trace_events_inject.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * trace_events_inject - trace event injection 53 len = i - s; in parse_field() 55 return -EINVAL; in parse_field() 59 return -ENOMEM; in parse_field() 63 return -ENOENT; in parse_field() 69 return -EINVAL; in parse_field() 74 if (isdigit(str[i]) || str[i] == '-') { in parse_field() 75 char *num, c; in parse_field() local 80 return -EINVAL; in parse_field() [all …]
|
/linux-5.10/drivers/of/ |
D | unittest.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #define pr_fmt(fmt) "### dt-test ### " fmt 10 #include <linux/dma-direct.h> /* to test phys_to_dma/dma_to_phys */ 27 #include <linux/i2c-mux.h> 70 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name() 72 unittest(np && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name() 73 "find /testcase-data failed\n"); in of_unittest_find_node_by_name() 78 np = of_find_node_by_path("/testcase-data/"); in of_unittest_find_node_by_name() 79 unittest(!np, "trailing '/' on /testcase-data/ should fail\n"); in of_unittest_find_node_by_name() 81 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_find_node_by_name() [all …]
|
/linux-5.10/drivers/accessibility/speakup/ |
D | i18n.c | 1 // SPDX-License-Identifier: GPL-2.0 57 [MSG_CTRL] = "control-", 171 [MSG_KEYNAME_NUMLOCK] = "num lock", 431 while ((*input != '\0') && strchr(" 0+-#", *input)) in skip_flags() 489 size_t length1 = end1 - *input1; in compare_specifiers() 490 size_t length2 = end2 - *input2; in compare_specifiers() 502 * Check that two format strings contain the same number of format specifiers, 503 * and that the order of specifiers is the same in both strings. 520 /* No more format specifiers in one or both strings. */ in fmt_validate() 532 * Description: Add a user-supplied message to the user_messages array. [all …]
|