/linux/drivers/usb/gadget/function/ |
H A D | f_mass_storage.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 21 #define _FSG_MODULE_PARAM_ARRAY(prefix, params, name, type, desc) \ argument 22 module_param_array_named(prefix ## name, params.name, type, \ 23 &prefix ## params.name ## _count, \ 25 MODULE_PARM_DESC(prefix ## name, desc) 27 #define _FSG_MODULE_PARAM(prefix, params, name, type, desc) \ argument 28 module_param_named(prefix ## name, params.name, type, \ 30 MODULE_PARM_DESC(prefix ## name, desc) 32 #define __FSG_MODULE_PARAMETERS(prefix, params) \ argument 33 _FSG_MODULE_PARAM_ARRAY(prefix, params, file, charp, \ [all …]
|
/linux/drivers/firmware/broadcom/ |
H A D | bcm47xx_sprom.c | 6 * Copyright (C) 2010-2012 Hauke Mehrtens <hauke@hauke-m.de> 36 static void create_key(const char *prefix, const char *postfix, in create_key() argument 37 const char *name, char *buf, int len) in create_key() argument 39 if (prefix && postfix) in create_key() 40 snprintf(buf, len, "%s%s%s", prefix, name, postfix); in create_key() 41 else if (prefix) in create_key() 42 snprintf(buf, len, "%s%s", prefix, name); in create_key() 44 snprintf(buf, len, "%s%s", name, postfix); in create_key() 46 snprintf(buf, len, "%s", name); in create_key() 49 static int get_nvram_var(const char *prefix, const char *postfix, in get_nvram_var() argument [all …]
|
/linux/arch/arm64/boot/dts/amlogic/ |
H A D | meson-g12.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 #include "meson-g12-common.dtsi" 8 #include <dt-bindings/clock/axg-audio-clkc.h> 9 #include <dt-bindings/power/meson-g12a-power.h> 10 #include <dt-bindings/reset/amlogic,meson-axg-audio-arb.h> 11 #include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h> 14 tdmif_a: audio-controller-0 { 15 compatible = "amlogic,axg-tdm-iface"; 16 #sound-dai-cells = <0>; 17 sound-name-prefix = "TDM_A"; [all …]
|
H A D | meson-sm1.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 #include "meson-g12-common.dtsi" 8 #include <dt-bindings/clock/axg-audio-clkc.h> 9 #include <dt-bindings/power/meson-sm1-power.h> 10 #include <dt-bindings/reset/amlogic,meson-axg-audio-arb.h> 11 #include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h> 16 tdmif_a: audio-controller-0 { 17 compatible = "amlogic,axg-tdm-iface"; 18 #sound-dai-cells = <0>; 19 sound-name-prefix = "TDM_A"; [all …]
|
/linux/tools/include/linux/ |
H A D | btf_ids.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 51 #define __ID(prefix) \ argument 52 __PASTE(__PASTE(prefix, __COUNTER__), __LINE__) 58 #define BTF_ID(prefix, name) \ argument 59 __BTF_ID(__ID(__BTF_ID__##prefix##__##name##__)) 76 #define __BTF_ID_LIST(name, scope) \ argument 79 "." #scope " " #name "; \n" \ 80 #name ":; \n" \ 83 #define BTF_ID_LIST(name) \ argument 84 __BTF_ID_LIST(name, local) \ [all …]
|
/linux/scripts/ |
H A D | syscallhdr.sh | 2 # SPDX-License-Identifier: GPL-2.0-only 8 # NR ABI NAME [NATIVE] [COMPAT] 11 # ABI ABI name 12 # NAME syscall name 16 set -e 19 …echo >&2 "usage: $0 [--abis ABIS] [--emit-nr] [--offset OFFSET] [--prefix PREFIX] INFILE OUTFILE" … 25 echo >&2 " --abis ABIS ABI(s) to handle (By default, all lines are handled)" 26 echo >&2 " --emit-nr Emit the macro of the number of syscalls (__NR_syscalls)" 27 echo >&2 " --offset OFFSET The offset of syscall numbers" 28 echo >&2 " --prefix PREFIX The prefix to the macro like __NR_<PREFIX><NAME>" [all …]
|
H A D | syscallnr.sh | 2 # SPDX-License-Identifier: GPL-2.0-only 8 # NR ABI NAME [NATIVE] [COMPAT] 11 # ABI ABI name 12 # NAME syscall name 15 set -e 18 echo >&2 "usage: $0 [--abis ABIS] [--prefix PREFIX] INFILE OUTFILE" >&2 24 echo >&2 " --abis ABIS ABI(s) to handle (By default, all lines are handled)" 25 echo >&2 " --prefix PREFIX The prefix to the macro like __NR_<PREFIX><NAME>" 31 prefix= 33 while [ $# -gt 0 ] [all …]
|
/linux/drivers/clk/qcom/ |
H A D | lcc-msm8960.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/clk-provider.h> 15 #include <dt-bindings/clock/qcom,lcc-msm8960.h> 18 #include "clk-regmap.h" 19 #include "clk-pll.h" 20 #include "clk-rcg.h" 21 #include "clk-branch.h" 22 #include "clk-regmap-divider.h" 23 #include "clk-regmap-mux.h" 26 .fw_name = "pxo", .name = "pxo_board", [all …]
|
/linux/sound/soc/generic/ |
H A D | simple-card.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <sound/soc-dai.h> 22 #define DAI "sound-dai" 23 #define CELL "#sound-dai-cells" 24 #define PREFIX "simple-audio-car macro 136 simple_parse_node(struct simple_util_priv * priv,struct device_node * np,struct link_info * li,char * prefix,int * cpu) simple_parse_node() argument 173 simple_link_init(struct simple_util_priv * priv,struct device_node * cpu,struct device_node * codec,struct link_info * li,char * prefix,char * name) simple_link_init() argument 236 char *prefix = ""; simple_dai_link_of_dpcm() local 319 char *prefix = ""; simple_dai_link_of() local [all...] |
H A D | simple-card-utils.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // simple-card-utils.c 7 #include <dt-bindings/sound/audio-graph.h> 21 int val = -EINVAL; in simple_util_get_sample_fmt() 35 if (!strcmp(data->convert_sample_format, in simple_util_get_sample_fmt() 60 char *prefix, in simple_util_parse_convert() argument 68 if (!prefix) in simple_util_parse_convert() 69 prefix = ""; in simple_util_parse_convert() 72 snprintf(prop, sizeof(prop), "%s%s", prefix, "convert-rate"); in simple_util_parse_convert() 73 of_property_read_u32(np, prop, &data->convert_rate); in simple_util_parse_convert() [all …]
|
/linux/drivers/regulator/ |
H A D | mc13xxx.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * mc13xxx.h - regulators for the Freescale mc13xxx PMIC 41 return -ENODEV; in mc13xxx_get_num_regulators_dt() 55 #define MC13xxx_DEFINE(prefix, _name, _node, _reg, _vsel_reg, _voltages, _ops) \ argument 56 [prefix ## _name] = { \ 58 .name = #_node, \ 63 .id = prefix ## _name, \ 66 .reg = prefix ## _reg, \ 67 .enable_bit = prefix ## _reg ## _ ## _name ## EN, \ 68 .vsel_reg = prefix ## _vsel_reg, \ [all …]
|
/linux/arch/riscv/include/asm/ |
H A D | syscall_wrapper.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * syscall_wrapper.h - riscv specific wrappers to syscall definitions 17 #define __SYSCALL_SE_DEFINEx(x, prefix, name, ...) \ argument 18 static long __se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \ 19 static long __se_##prefix##name(__MAP(x,__SC_LONG,__VA_ARGS__)) 23 ,,regs->orig_a0,,regs->a1,,regs->a2 \ 24 ,,regs->a3,,regs->a4,,regs->a5,,regs->a6) 28 * Use type aliasing to ensure registers a0-a6 are correctly passed to the syscall 29 * implementation when >word-size arguments are used. 31 #define __SYSCALL_SE_DEFINEx(x, prefix, name, ...) \ argument [all …]
|
/linux/include/sound/ |
H A D | simple_card_utils.h | 1 /* SPDX-License-Identifier: GPL-2.0 14 #define simple_util_init_hp(card, sjack, prefix) \ argument 15 simple_util_init_jack(card, sjack, 1, prefix, NULL) 16 #define simple_util_init_mic(card, sjack, prefix) \ argument 17 simple_util_init_jack(card, sjack, 0, prefix, NULL) 26 const char *name; member 79 #define simple_priv_to_card(priv) (&(priv)->snd_card) 80 #define simple_priv_to_props(priv, i) ((priv)->dai_prop 209 simple_util_debug_dai(struct simple_util_priv * priv,char * name,struct simple_util_dai * dai) simple_util_debug_dai() argument [all...] |
/linux/drivers/md/dm-vdo/ |
H A D | logger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 #include "thread-device.h" 17 #include "thread-utils.h" 47 * emit_log_message_to_kernel() - Emit a log message to the kernel at the specified priority. 92 * emit_log_message() - Emit a log message to the kernel log in a format suited to the current 102 * Fields: module name, interrupt level, process name, device ID. 105 * @module: The name of the module doing the logging 106 * @prefix: The prefix of the log message 110 static void emit_log_message(int priority, const char *module, const char *prefix, in emit_log_message() argument 123 prefix, vaf1, vaf2); in emit_log_message() [all …]
|
/linux/Documentation/netlink/ |
H A D | genetlink.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 16 len-or-limit: 17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc. 19 pattern: ^[su](8|16|32|64)-(min|max)$ 26 required: [ name, doc, attribute-sets, operations ] [all …]
|
/linux/Documentation/netlink/specs/ |
H A D | nlctrl.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 name: nlctrl 4 protocol: genetlink-legacy 5 uapi-header: linux/genetlink.h 8 genetlink meta-family that exposes information about all genetlink 12 - 13 name: op-flags 15 enum-name: 17 - admin-perm 18 - cmd-cap-do [all …]
|
H A D | ovs_flow.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 name: ovs_flow 5 protocol: genetlink-legacy 6 uapi-header: linux/openvswitch.h 12 - 13 name: ovs-header 18 - 19 name: dp-ifindex 24 - 25 name: ovs-flow-stats [all …]
|
H A D | ovs_vport.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 name: ovs_vport 5 protocol: genetlink-legacy 6 uapi-header: linux/openvswitch.h 12 - 13 name: ovs-header 16 - 17 name: dp-ifindex 19 - 20 name: vport-type [all …]
|
H A D | team.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 name: team 5 protocol: genetlink-legacy 10 c-family-name: team-genl-name 11 c-version-name: team-genl-version 12 kernel-policy: global 13 uapi-header: linux/if_team.h 16 - 17 name: string-max-len 20 - [all …]
|
/linux/fs/squashfs/ |
H A D | xattr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Squashfs - a compressed read only filesystem for Linux 30 struct super_block *sb = inode->i_sb; in squashfs_listxattr() 31 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_listxattr() 32 u64 start = SQUASHFS_XATTR_BLK(squashfs_i(inode)->xattr) in squashfs_listxattr() 33 + msblk->xattr_table; in squashfs_listxattr() 34 int offset = SQUASHFS_XATTR_OFFSET(squashfs_i(inode)->xattr); in squashfs_listxattr() 35 int count = squashfs_i(inode)->xattr_count; in squashfs_listxattr() 40 if (msblk->xattr_id_table == NULL) in squashfs_listxattr() 41 return -EOPNOTSUPP; in squashfs_listxattr() [all …]
|
/linux/fs/xfs/ |
H A D | xfs_xattr.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Portions Copyright (C) 2000-2008 Silicon Graphics, Inc. 25 * Get permission to use log-assisted atomic exchange of file extents. 45 return -EOPNOTSUPP; in xfs_attr_grab_log_assist() 47 /* Enable log-assisted xattrs. */ in xfs_attr_grab_log_assist() 74 * initialize the inode, attr_filter, name, namelen, value, and valuelen fields 82 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_change() 86 return -EIO; in xfs_attr_change() 88 error = xfs_qm_dqattach(args->dp); in xfs_attr_change() 94 * to remove, so we have to allow the name lookup prior to attribute in xfs_attr_change() [all …]
|
/linux/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | trace.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in trace_buffer_allocate() 31 tb->size = size; in trace_buffer_allocate() 32 tb->tail = tb->data; in trace_buffer_allocate() 33 tb->overflow = false; in trace_buffer_allocate() 40 return p < ((void *)tb + tb->size); in trace_check_bounds() 51 if (tb->overflow) in trace_check_alloc() 55 tb->overflow = true; in trace_check_alloc() 66 p = tb->tail; in trace_alloc() 67 newtail = tb->tail + bytes; in trace_alloc() [all …]
|
/linux/fs/bcachefs/ |
H A D | xattr.c | 1 // SPDX-License-Identifier: GPL-2.0 25 bch2_str_hash_update(&ctx, info, &key->type, sizeof(key->type)); in bch2_xattr_hash() 26 bch2_str_hash_update(&ctx, info, key->name.name, key->name.len); in bch2_xattr_hash() 41 &X_SEARCH(x.v->x_type, x.v->x_name, x.v->x_name_len)); in xattr_hash_bkey() 49 return l.v->x_type != r->type || in xattr_cmp_key() 50 l.v->x_name_len != r->name.len || in xattr_cmp_key() 51 memcmp(l.v->x_name, r->name.name, r->name.len); in xattr_cmp_key() 59 return l.v->x_type != r.v->x_type || in xattr_cmp_bkey() 60 l.v->x_name_len != r.v->x_name_len || in xattr_cmp_bkey() 61 memcmp(l.v->x_name, r.v->x_name, r.v->x_name_len); in xattr_cmp_bkey() [all …]
|
/linux/tools/bpf/resolve_btfids/ |
H A D | main.c | 1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 8 * following name syntax: 14 * func - lookup BTF_KIND_FUNC symbol with <symbol> name 20 * struct - lookup BTF_KIND_STRUCT symbol with <symbol> name 26 * union - lookup BTF_KIND_UNION symbol with <symbol> name 32 * typedef - lookup BTF_KIND_TYPEDEF symbol with <symbol> name 38 * set - store symbol size into first 4 bytes and sort following 49 * set8 - store symbol size into first 4 bytes and sort following 79 #include <subcmd/parse-options.h> 103 char *name; member [all …]
|
/linux/scripts/atomic/ |
H A D | gen-atomic-fallback.sh | 2 # SPDX-License-Identifier: GPL-2.0 6 . ${ATOMICDIR}/atomic-tbl.sh 8 #gen_template_fallback(template, meta, pfx, name, sfx, order, atomic, int, args...) 14 local name="$1"; shift 28 #gen_order_fallback(meta, pfx, name, sfx, order, atomic, int, args...) 33 local name="$1"; shift 38 local tmpl="${ATOMICDIR}/fallbacks/${tmpl_order:-fence}" 39 gen_template_fallback "${tmpl}" "${meta}" "${pfx}" "${name}" "${sfx}" "${order}" "$@" 42 #gen_proto_fallback(meta, pfx, name, sfx, order, atomic, int, args...) 47 local name="$1"; shift [all …]
|