Home
last modified time | relevance | path

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

123456789

/openbmc/linux/sound/core/
H A 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()
40 mutex_unlock(&strings); in snd_oss_info_register()
41 return -ENOMEM; in snd_oss_info_register()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/leds/backlight/
H A 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,pmi8950-wled
23 - qcom,pmi8994-wled
24 - qcom,pmi8998-wled
[all …]
/openbmc/linux/drivers/xen/xenbus/
H A 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 …]
/openbmc/linux/Documentation/devicetree/bindings/usb/
H A 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 …]
/openbmc/linux/lib/
H A Dstring_helpers.c1 // 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 …]
/openbmc/linux/drivers/usb/gadget/function/
H A Duvc_configfs.c1 // 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 …]
H A 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 …]
H A 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 …]
H A 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_loc
124 u8 num; global() member
2143 unsigned long num = 0; ffs_do_descs() local
2286 unsigned long num = 0; ffs_do_os_descs() local
3377 ffs_func_revmap_ep(struct ffs_function * func,u8 num) ffs_func_revmap_ep() argument
[all...]
/openbmc/linux/drivers/usb/gadget/legacy/
H A 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,
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 …]
/openbmc/openbmc/meta-hpe/meta-common/recipes-phosphor/recipes-graphics/obmc-ikvm/
H A Dcreate_usbhid.sh18 mkdir strings/0x409
20 echo "OpenBMC" > strings/0x409/manufacturer
21 echo "virtual_input" > strings/0x409/product
22 echo "OBMC0001" > strings/0x409/serialnumber
49 # 0x19, 0x01, // USAGE_MINIMUM (Num Lock)
103 # 0x15, 0xff, // LOGICAL_MINIMUM (-1)
105 # 0x35, 0x00, // PHYSICAL_MINIMUM (-127)
116 mkdir configs/c.1/strings/0x409
120 echo "" > configs/c.1/strings/0x409/configuration
123 ln -s functions/hid.0 configs/c.1
[all …]
/openbmc/obmc-ikvm/
H A Dcreate_usbhid.sh4 dev_name="1e6a0000.usb-vhub"
18 mkdir strings/0x409
20 echo "OpenBMC" > strings/0x409/manufacturer
21 echo "Virtual Keyboard and Mouse" > strings/0x409/product
22 echo "OBMC0001" > strings/0x409/serialnumber
49 # 0x19, 0x01, // USAGE_MINIMUM (Num Lock)
103 # 0x15, 0xff, // LOGICAL_MINIMUM (-1)
105 # 0x35, 0x00, // PHYSICAL_MINIMUM (-127)
116 mkdir configs/c.1/strings/0x409
120 echo "" > configs/c.1/strings/0x409/configuration
[all …]
/openbmc/openbmc-test-automation/ipmi/
H A Dtest_ipmi_fru_device.robot71 # Compare read FRU data Count returned -- count is ‘1’ based, with inventory area count.
88 # Verify response for invalid response data - extra bytes.
164 # Chassis Part Number : xxx-xxxxx-xxxx-xxx,
173 # Product Part Number : xxx-xxxx-xxxx-xxx
182 ${num}= Set Variable 0
192 ${frudata}= Get From List ${output} ${num}
202 ${num}= Evaluate int(${num}) + 1
262 …${serial_no_status}= Run Keyword And Return Status Should Be Equal As Strings ${ipmi_fru_serial…
285 # .BOARD_PART_NUMBER property s "111.22222.0000" emits-change
300 # format = %Y-%m-%d - %H:%M:%S and validated against dbus FRU data.
[all …]
/openbmc/linux/drivers/usb/gadget/
H A Dconfigfs.c1 // 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-> in cfg_to_gadget_info()
91 struct usb_string strings[USB_GADGET_FIRST_AVAIL_IDX]; global() member
104 struct usb_string strings; global() member
703 u8 num; config_desc_make() local
[all...]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A 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; \
/openbmc/linux/drivers/gpio/
H A Dgpio-reg.c1 // 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 …]
/openbmc/qemu/bsd-user/
H A Dstrace.c25 #include "user/tswap-target.h"
27 #include "os-strace.h" /* OS dependent strace print functions */
60 gemu_log("%s({ ", name->name); in print_sysctl()
86 gemu_log("%s(\"%s\",{", name->name, s); in print_execve()
116 name->name, in print_ioctl()
142 if (ret == -1) { in print_syscall_ret_addr()
143 gemu_log(" = -1 errno=%d (%s)\n", errno, strerror(errno)); in print_syscall_ret_addr()
163 static void print_syscall(int num, const struct syscallname *scnames, in print_syscall() argument
175 if (scnames[i].nr == num) { in print_syscall()
181 host types and host pointers for strings */ in print_syscall()
[all …]
/openbmc/linux/tools/perf/pmu-events/
H A Djevents.py2 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
63 def removesuffix(s: str, suffix: str) -> str:
69 return s[0:-len(suffix)] if s.endswith(suffix) else s
73 dirname: str) -> str:
79 return tblname.replace('-', '_')
82 def c_len(s: str) -> int:
94 utf = s.encode(encoding='utf-8',errors='strict')
98 return len(utf) - utf.count(b'\\') + utf.count(b'\\\\') - (utf.count(b'\\000') * 2)
101 """A class to hold many strings concatenated together.
103 Generating a large number of stand-alone C strings creates a large
[all …]
/openbmc/linux/tools/perf/util/
H A Dstring.c1 // SPDX-License-Identifier: GPL-2.0
10 "---------------------------------------------------------------------"
11 "---------------------------------------------------------------------"
12 "---------------------------------------------------------------------";
43 /* two-letter suffices */ in perf_atoll()
68 return -1; in perf_atoll()
84 if (*pat == '-' && *(pat + 1) != ']') { /* Range */ in __match_charclass()
85 if (*(pat - 1) <= c && c <= *(pat + 1)) in __match_charclass()
87 if (*(pat - 1) > *(pat + 1)) in __match_charclass()
159 * strglobmatch - glob expression pattern matching
[all …]
/openbmc/linux/include/linux/
H A Dof.h1 /* SPDX-License-Identifier: GPL-2.0+ */
8 * Copyright (C) 1996-2005 Paul Mackerras.
104 * of_node_init - initialize a devicetree node
110 * whether to free the memory will be done by node->release(), which is
116 kobject_init(&node->kobj, &of_node_ktype); in of_node_init()
118 fwnode_init(&node->fwnode, &of_fwnode_ops); in of_node_init()
122 #define of_node_kobj(n) (&(n)->kobj)
131 /* Dummy ref counting routines - to be implemented later */
157 #define OF_BAD_ADDR ((u64)-1)
164 return !IS_ERR_OR_NULL(fwnode) && fwnode->ops == &of_fwnode_ops; in is_of_node()
[all …]
/openbmc/u-boot/lib/
H A Dvsprintf.c7 /* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */
9 * Wirzenius wrote this portably, Torvalds fucked it up :-)
11 * from hush: simple_itoa() was lifted from boa-0.93.15
36 i = i * 10 + *((*s)++) - '0'; in skip_atoi()
50 * On i386 gcc 4.1.2 -O2: ~250 bytes of code. */
60 d0 = d0 - 10*q; in put_dec_trunc()
65 d1 = d1 - 10*q; in put_dec_trunc()
71 d2 = d2 - 10*q; in put_dec_trunc()
77 d3 = d3 - 10*q; in put_dec_trunc()
89 /* BTW, if q is in [0,9999], 8-bit ints will be enough, */ in put_dec_full()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/pci/
H A 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 …]
/openbmc/linux/include/linux/mmc/
H A 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 …]
/openbmc/linux/drivers/video/backlight/
H A Dqcom-wled.c1 // SPDX-License-Identifier: GPL-2.0-only
61 /* WLED3 specific per-'string' registers below */
93 /* WLED4 specific per-'string' registers below */
140 /* WLED5 specific per-'string' registers below */
238 for (i = 0; i < wled->cfg.num_strings; ++i) { in wled3_set_brightness()
239 rc = regmap_bulk_write(wled->regmap, wled->ctrl_addr + in wled3_set_brightness()
240 WLED3_SINK_REG_BRIGHT(wled->cfg.enabled_strings[i]), in wled3_set_brightness()
252 u16 low_limit = wled->max_brightness * 4 / 1000; in wled4_set_brightness()
261 for (i = 0; i < wled->cfg.num_strings; ++i) { in wled4_set_brightness()
262 rc = regmap_bulk_write(wled->regmap, wled->sink_addr + in wled4_set_brightness()
[all …]
/openbmc/qemu/include/io/
H A Dchannel-socket.h29 #define TYPE_QIO_CHANNEL_SOCKET "qio-channel-socket"
40 * parameters and getting socket address strings.
71 * @errp: pointer to a NULL-initialized error object
87 * @errp: pointer to a NULL-initialized error object
127 * @num: the expected amount of connections
128 * @errp: pointer to a NULL-initialized error object
137 int num,
144 * @num: the expected amount of connections
160 int num,
172 * @errp: pointer to a NULL-initialized error object
[all …]

123456789