Home
last modified time | relevance | path

Searched +full:num +full:- +full:strings (Results 1 – 25 of 130) sorted by relevance

123456

/Linux-v5.15/sound/core/
Dinfo_oss.c1 // 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()
42 mutex_unlock(&strings); in snd_oss_info_register()
43 return -ENOMEM; in snd_oss_info_register()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/leds/backlight/
Dqcom-wled.yaml1 # 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,pmi8994-wled
23 - qcom,pmi8998-wled
24 - qcom,pm660l-wled
[all …]
/Linux-v5.15/drivers/xen/xenbus/
Dxenbus_xs.c110 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-v5.15/sound/soc/generic/
Dsimple-card-utils.c1 // 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()
45 snprintf(prop, sizeof(prop), "%s%s", prefix, "convert-rate"); in asoc_simple_parse_convert()
46 of_property_read_u32(np, prop, &data->convert_rate); in asoc_simple_parse_convert()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/usb/
Datmel-usb.txt6 - 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-v5.15/arch/arm64/boot/dts/qcom/
Dpmi8994.dtsi1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/interrupt-controller/irq.h>
3 #include <dt-bindings/spmi/spmi.h>
8 compatible = "qcom,pmi8994", "qcom,spmi-pmic";
10 #address-cells = <1>;
11 #size-cells = <0>;
14 compatible = "qcom,pmi8994-gpio", "qcom,spmi-gpio";
16 gpio-controller;
17 gpio-ranges = <&pmi8994_gpios 0 0 10>;
18 #gpio-cells = <2>;
[all …]
Dpm660l.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/iio/qcom,spmi-vadc.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
10 #include <dt-bindings/thermal/thermal.h>
13 thermal-zones {
15 polling-delay-passive = <250>;
16 polling-delay = <1000>;
18 thermal-sensors = <&pm660l_temp>;
[all …]
/Linux-v5.15/lib/
Dstring_helpers.c1 // 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 …]
Dparser.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * lib/parser.c - simple parser for mount, etc. options.
15 * match_one - Determines if a string matches a simple pattern
34 int len = -1; in match_one()
39 if (strncmp(p, s, meta-p)) in match_one()
42 s += meta - p; in match_one()
64 if (len == -1 || len > str_len) in match_one()
71 goto num; in match_one()
74 goto num; in match_one()
77 goto num; in match_one()
[all …]
/Linux-v5.15/drivers/usb/gadget/
Dconfigfs.c1 // 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 …]
/Linux-v5.15/Documentation/devicetree/bindings/mtd/
Dmarvell-nand.txt4 - 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-v5.15/drivers/usb/gadget/function/
Df_loopback.c1 // 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 …]
Df_sourcesink.c1 // 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 …]
Df_fs.c1 // 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 …]
/Linux-v5.15/Documentation/devicetree/bindings/sound/
Ddavinci-mcasp-audio.txt4 - 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
9 "ti,omap4-mcasp-audio" : for OMAP4
11 - reg : Should contain reg specifiers for the entries in the reg-names property.
12 - reg-names : Should contain:
16 - op-mode : I2S/DIT ops mode. 0 for I2S mode. 1 for DIT mode used for S/PDIF,
17 IEC60958-1, and AES-3 formats.
[all …]
Dimx-audio-card.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/imx-audio-card.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Shengjiu Wang <shengjiu.wang@nxp.com>
15 - fsl,imx-audio-card
21 audio-routing:
22 $ref: /schemas/types.yaml#/definitions/non-unique-string-array
25 pair of strings, the first being the connection's sink, the second
30 ".*-dai-link$":
[all …]
/Linux-v5.15/drivers/usb/gadget/legacy/
Dg_ffs.c1 // 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-v5.15/tools/testing/selftests/bpf/progs/
Dtest_global_data.c1 // SPDX-License-Identifier: GPL-2.0
46 /* Relocation tests for strings. */
65 #define test_reloc(map, num, var) \ argument
67 __u32 key = num; \
/Linux-v5.15/include/linux/
Dof.h1 /* 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 fwnode_init(&node->fwnode, &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-v5.15/drivers/gpio/
Dgpio-reg.c1 // 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-v5.15/include/linux/mmc/
Dsdio_func.h1 /* 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-v5.15/Documentation/devicetree/bindings/pci/
Dhisilicon-histb-pcie.txt6 Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml.
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-v5.15/Documentation/devicetree/bindings/spi/
Domap-spi.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/spi/omap-spi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Aswath Govindraju <a-govindraju@ti.com>
13 - $ref: spi-controller.yaml#
18 - items:
19 - enum:
20 - ti,am654-mcspi
21 - ti,am4372-mcspi
[all …]
/Linux-v5.15/kernel/trace/
Dtrace_events_inject.c1 // 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-v5.15/drivers/of/
Dunittest.c1 // 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 */
28 #include <linux/i2c-mux.h>
71 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name()
73 unittest(np && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
74 "find /testcase-data failed\n"); in of_unittest_find_node_by_name()
79 np = of_find_node_by_path("/testcase-data/"); in of_unittest_find_node_by_name()
80 unittest(!np, "trailing '/' on /testcase-data/ should fail\n"); in of_unittest_find_node_by_name()
82 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_find_node_by_name()
[all …]

123456