/linux/Documentation/devicetree/bindings/leds/backlight/ |
H A 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 <andersson@kernel.org> 11 - Kiran Gunda <quic_kgunda@quicinc.com> 21 - qcom,pm8941-wled 22 - qcom,pmi8950-wled 23 - qcom,pmi8994-wled 24 - qcom,pmi8998-wled [all …]
|
/linux/drivers/xen/xenbus/ |
H A 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 …]
|
/linux/sound/core/ |
H A 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 guard(mutex)(&strings); in snd_oss_info_register() 34 x = snd_sndstat_strings[num][dev]; in snd_oss_info_register() 40 return -ENOMEM; in snd_oss_info_register() 42 snd_sndstat_strings[num][dev] = x; in snd_oss_info_register() [all …]
|
/linux/Documentation/devicetree/bindings/usb/ |
H A 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/lib/ |
H A D | string_helpers.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Helpers for formatting and printing strings 22 #include <kunit/test-bug.h> 25 * string_get_size - get the size in the specified units 119 remainder -= 1000; in string_get_size() 147 return -ENOENT; in parse_int_array() 151 return -ENOMEM; in parse_int_array() 161 * parse_int_array_user - Split string into a sequence of integers 219 u8 num; in unescape_octal() local 224 num = (*q++) & 7; in unescape_octal() [all …]
|
H A D | parser.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * lib/parser.c - simple parser for mount, etc. options. 16 * HEX: "0xFFFFFFFFFFFFFFFF" --> 18 17 * DEC: "18446744073709551615" --> 20 18 * OCT: "01777777777777777777777" - [all...] |
/linux/drivers/usb/gadget/function/ |
H A 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 …]
|
H A 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 …]
|
H A 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 18 #include <linux/dma-buf.h> 19 #include <linux/dma-fence.h> 20 #include <linux/dma-resv.h> 65 /* Called with ffs->mutex held; take over ownership of data. */ 100 cmpxchg(&ffs->setup_state, FFS_SETUP_CANCELLED, FFS_NO_SETUP); in ffs_setup_state_clear_cancelled() 121 static int ffs_func_revmap_ep(struct ffs_function *func, u8 num); 128 struct usb_ep *ep; /* P: ffs->eps_lock */ [all …]
|
/linux/drivers/usb/gadget/legacy/ |
H A 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 …]
|
/linux/drivers/usb/gadget/ |
H A 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 …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A 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/drivers/gpio/ |
H A D | gpio-reg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * gpio-reg: single register individually fixed-direction GPIOs 19 #include <linux/gpio/gpio-reg.h> 37 return r->direction & BIT(offset) ? GPIO_LINE_DIRECTION_IN : in gpio_reg_get_direction() 46 if (r->direction & BIT(offset)) in gpio_reg_direction_output() 47 return -ENOTSUPP; in gpio_reg_direction_output() 49 gc->set(gc, offset, value); in gpio_reg_direction_output() 57 return r->direction & BIT(offset) ? 0 : -ENOTSUPP; in gpio_reg_direction_input() 66 spin_lock_irqsave(&r->lock, flags); in gpio_reg_set() 67 val = r->out; in gpio_reg_set() [all …]
|
/linux/include/linux/mmc/ |
H A 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/Documentation/kbuild/ |
H A D | gendwarfksyms.rst | 18 ----- 23 Usage: gendwarfksyms [options] elf-object-file ... < symbol-list 26 -d, --debug Print debugging information 27 --dump-dies Dump DWARF DIE contents 28 --dump-die-map Print debugging information about die_map changes 29 --dump-types Dump type strings 30 --dump-versions Dump expanded type strings used for symbol versions 31 -s, --stable Support kABI stability features 32 -T, --symtypes file Write a symtypes file 33 -h, --help Print this message [all …]
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | hisilicon-histb-pcie.txt | 6 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/Documentation/devicetree/bindings/spi/ |
H A D | omap-spi.yaml | 1 # 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/kernel/trace/ |
H A 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/net/9p/ |
H A D | trans_usbg.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * trans_usbg.c - USB peripheral usb9pfs configuration driver and transport. 12 /* +--------------------------+ | +--------------------------+ 15 * | (this:trans_usbg) | | |(e.g. diod or nfs-ganesha)| 16 * +-------------^------------+ | +-------------^------------+ 18 * ------------------|------------------------------------|------------- 20 * +-------------v------------+ | +-------------v------------+ 22 * HW | USB Device Controller <---------> USB Host Controller | 24 * +--------------------------+ | +--------------------------+ 94 struct usb_composite_dev *cdev = usb9pfs->function.config->cdev; in usb9pfs_queue_tx() [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | amlogic,axg-sound-card.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/amlogic,axg-sound-card.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jerome Brunet <jbrunet@baylibre.com> 13 - $ref: sound-card-common.yaml# 17 const: amlogic,axg-sound-card 19 audio-aux-devs: 20 $ref: /schemas/types.yaml#/definitions/phandle-array 23 audio-widgets: [all …]
|
/linux/sound/soc/ |
H A D | soc-core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-core.c -- ALSA SoC Audio Layer 11 // with code, comments and ideas from :- 40 #include <sound/soc-dpcm.h> 41 #include <sound/soc-topology.h> 42 #include <sound/soc-link.h> 76 return sysfs_emit(buf, "%ld\n", rtd->pmdown_time); in pmdown_time_show() 86 ret = kstrtol(buf, 10, &rtd->pmdown_time); in pmdown_time_store() 110 return attr->mode; /* always visible */ in soc_dev_attr_is_visible() 111 return rtd->dai_link->num_codecs ? attr->mode : 0; /* enabled only with codec */ in soc_dev_attr_is_visible() [all …]
|
/linux/tools/lib/bpf/ |
H A D | btf_relocate.c | 1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 25 #define qsort(base, num, sz, cmp) sort(base, num, sz, cmp, NULL) argument 55 #define BTF_IS_EMBEDDED ((__u32)-1) 68 struct btf_type *t = btf_type_by_id(r->btf, i); in btf_relocate_rewrite_type_id() 78 *id = r->id_map[*id]; in btf_relocate_rewrite_type_id() 83 * types are named. If strings match, and size is non-zero for both elements 90 int name_diff = strcmp(ni1->name, ni2->name); in cmp_btf_name_size() 92 if (!name_diff && ni1->needs_size && ni2->needs_size) in cmp_btf_name_size() 93 return ni2->size - ni1->size; in cmp_btf_name_size() 107 int high = nelems - 1; in search_btf_name_size() [all …]
|
/linux/drivers/accessibility/speakup/ |
H A D | i18n.c | 1 // SPDX-License-Identifier: GPL-2.0 57 [MSG_CTRL] = "control-", 178 [MSG_KEYNAME_NUMLOCK] = "num lock", 438 while ((*input != '\0') && strchr(" 0+-#", *input)) in skip_flags() 496 size_t length1 = end1 - *input1; in compare_specifiers() 497 size_t length2 = end2 - *input2; in compare_specifiers() 509 * Check that two format strings contain the same number of format specifiers, 510 * and that the order of specifiers is the same in both strings. 527 /* No more format specifiers in one or both strings. */ in fmt_validate() 539 * Description: Add a user-supplied message to the user_messages array. [all …]
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | sdm450-motorola-ali.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 5 /dts-v1/; 11 /delete-node/ &qseecom_mem; 16 chassis-type = "handset"; 17 qcom,msm-id = <338 0>; 18 qcom,board-id = <0x43 0xc200>; 20 gpio-keys { 21 compatible = "gpio-keys"; 23 key-volume-up { 30 reserved-memory { [all …]
|
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | core.h | 1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */ 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2025 Qualcomm Innovation Center, Inc. All rights reserved. 53 /* SMBIOS type structure length (excluding strings-set) */ 187 /* set country code by ANSI country name, based on ISO3166-1 alpha2 */ 322 * struct ath11k_chan_power_info - TPE containing power info per channel chunk 340 * struct ath11k_reg_tpc_power_info - regulatory TPC power info 416 /* Must be last - ends in a flexible-array member. 534 /* the following are protected by ar->data_lock */ 563 /* Protected with ar->data_lock */ [all …]
|