Home
last modified time | relevance | path

Searched refs:prefix (Results 1 – 25 of 1018) sorted by relevance

12345678910>>...41

/linux/drivers/firmware/broadcom/
H A Dbcm47xx_sprom.c36 static void create_key(const char *prefix, const char *postfix, 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()
49 static int get_nvram_var(const char *prefix, const char *postfix, in get_nvram_var() argument
55 create_key(prefix, postfix, name, key, sizeof(key)); in get_nvram_var()
58 if (fallback && err == -ENOENT && prefix) { in get_nvram_var()
66 static void nvram_read_ ## type(const char *prefix, \
74 err = get_nvram_var(prefix, postfix, name, buf, sizeof(buf), \
[all …]
/linux/drivers/usb/gadget/function/
H A Df_mass_storage.h21 #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, \
35 _FSG_MODULE_PARAM_ARRAY(prefix, params, ro, bool, \
[all …]
/linux/drivers/md/dm-vdo/
H A Dmessage-stats.c15 static void write_u64(char *prefix, u64 value, char *suffix, char **buf, in write_u64() argument
20 count = scnprintf(*buf, *maxlen, "%s%llu%s", prefix == NULL ? "" : prefix, in write_u64()
26 static void write_u32(char *prefix, u32 value, char *suffix, char **buf, in write_u32() argument
31 count = scnprintf(*buf, *maxlen, "%s%u%s", prefix == NULL ? "" : prefix, in write_u32()
37 static void write_block_count_t(char *prefix, block_count_t value, char *suffix, in write_block_count_t() argument
42 count = scnprintf(*buf, *maxlen, "%s%llu%s", prefix == NULL ? "" : prefix, in write_block_count_t()
48 static void write_string(char *prefix, char *value, char *suffix, char **buf, in write_string() argument
53 count = scnprintf(*buf, *maxlen, "%s%s%s", prefix == NULL ? "" : prefix, in write_string()
59 static void write_bool(char *prefix, bool value, char *suffix, char **buf, in write_bool() argument
64 count = scnprintf(*buf, *maxlen, "%s%d%s", prefix == NULL ? "" : prefix, in write_bool()
[all …]
H A Dlogger.c110 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()
131 device_instance, current->comm, prefix, vaf1, in emit_log_message()
143 prefix, vaf1, vaf2); in emit_log_message()
149 prefix, vaf1, vaf2); in emit_log_message()
161 void vdo_log_embedded_message(int priority, const char *module, const char *prefix, in vdo_log_embedded_message() argument
173 if (prefix == NULL) in vdo_log_embedded_message()
174 prefix = ""; in vdo_log_embedded_message()
188 emit_log_message(priority, module, prefix, &vaf1, &vaf2); in vdo_log_embedded_message()
/linux/drivers/regulator/
H A Dmc13xxx.h55 #define MC13xxx_DEFINE(prefix, _name, _node, _reg, _vsel_reg, _voltages, _ops) \ argument
56 [prefix ## _name] = { \
63 .id = prefix ## _name, \
66 .reg = prefix ## _reg, \
67 .enable_bit = prefix ## _reg ## _ ## _name ## EN, \
68 .vsel_reg = prefix ## _vsel_reg, \
69 .vsel_shift = prefix ## _vsel_reg ## _ ## _name ## VSEL,\
70 .vsel_mask = prefix ## _vsel_reg ## _ ## _name ## VSEL_M,\
73 #define MC13xxx_FIXED_DEFINE(prefix, _name, _node, _reg, _voltages, _ops) \ argument
74 [prefix ## _name] = { \
[all …]
/linux/include/linux/
H A Dbtf_ids.h57 #define __ID(prefix) \ argument
58 __PASTE(__PASTE(prefix, __COUNTER__), __LINE__)
64 #define BTF_ID(prefix, name) \ argument
65 __BTF_ID(__ID(__BTF_ID__##prefix##__##name##__), "")
67 #define ____BTF_ID_FLAGS(prefix, name, flags) \ argument
68 __BTF_ID(__ID(__BTF_ID__##prefix##__##name##__), ".long " #flags "\n")
69 #define __BTF_ID_FLAGS(prefix, name, flags, ...) \ argument
70 ____BTF_ID_FLAGS(prefix, name, flags)
71 #define BTF_ID_FLAGS(prefix, name, ...) \ argument
72 __BTF_ID_FLAGS(prefix, name, ##__VA_ARGS__, 0)
[all …]
H A Dfs_context.h77 const char *prefix; member
192 void logfc(struct fc_log *log, const char *prefix, char level, const char *fmt, ...);
196 #define __plogp(p, prefix, l, fmt, ...) \ argument
197 logfc((p)->log, (prefix), (l), (fmt), ## __VA_ARGS__)
198 #define __plog(p, l, fmt, ...) __plogp(p, (p)->prefix, l, fmt, ## __VA_ARGS__)
211 #define infofcp(fc, prefix, fmt, ...) \ argument
212 __plogp((&(fc)->log), prefix, 'i', fmt, ## __VA_ARGS__)
225 #define warnfcp(fc, prefix, fmt, ...) \ argument
226 __plogp((&(fc)->log), prefix, 'w', fmt, ## __VA_ARGS__)
239 #define errorfcp(fc, prefix, fmt, ...) \ argument
[all …]
/linux/drivers/clk/qcom/
H A Dlcc-msm8960.c92 #define CLK_AIF_OSR_SRC(prefix, _ns, _md) \ argument
93 static struct clk_rcg prefix##_osr_src = { \
117 .name = #prefix "_osr_src", \
126 #define CLK_AIF_OSR_CLK(prefix, _ns, hr, en_bit) \ argument
127 static struct clk_branch prefix##_osr_clk = { \
135 .name = #prefix "_osr_clk", \
137 &prefix##_osr_src.clkr.hw, \
146 #define CLK_AIF_OSR_DIV_CLK(prefix, _ns, _width) \ argument
147 static struct clk_regmap_div prefix##_div_clk = { \
153 .name = #prefix "_div_clk", \
[all …]
/linux/tools/perf/tests/shell/
H A Dstat+std_output.sh32 local prefix=1
36 in "--interval") prefix=2
37 ;; "--per-thread") prefix=2
38 ;; "--system-wide-no-aggr") prefix=2
39 ;; "--per-core") prefix=3
40 ;; "--per-socket") prefix=3
41 ;; "--per-node") prefix=3
42 ;; "--per-die") prefix=3
43 ;; "--per-cache") prefix=3
44 ;; "--per-cluster") prefix=3
[all …]
/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Dtrace.c168 static void trace_print_header(int seq, int prefix) in trace_print_header() argument
170 printf("%*s[%d]: ", prefix, "", seq); in trace_print_header()
235 static void trace_print_entry(struct trace_entry *e, int seq, int *prefix) in trace_print_entry() argument
239 trace_print_header(seq, *prefix); in trace_print_entry()
243 trace_print_header(seq, *prefix); in trace_print_entry()
247 trace_print_header(seq, *prefix); in trace_print_entry()
251 trace_print_header(seq, *prefix); in trace_print_entry()
253 *prefix += PREFIX_DELTA; in trace_print_entry()
256 *prefix -= PREFIX_DELTA; in trace_print_entry()
257 if (*prefix < BASE_PREFIX) in trace_print_entry()
[all …]
/linux/net/ipv6/
H A Daddrlabel.c27 struct in6_addr prefix; member
61 const struct in6_addr *prefix; member
66 .prefix = &in6addr_any,
69 .prefix = &(struct in6_addr){ { { 0xfc } } } ,
73 .prefix = &(struct in6_addr){ { { 0xfe, 0xc0 } } },
77 .prefix = &(struct in6_addr){ { { 0x20, 0x02 } } },
81 .prefix = &(struct in6_addr){ { { 0x3f, 0xfe } } },
85 .prefix = &(struct in6_addr){ { { 0x20, 0x01 } } },
89 .prefix = &(struct in6_addr){ { { 0x20, 0x01, 0x00, 0x10 } } },
93 .prefix = &(struct in6_addr){ { { [10] = 0xff, [11] = 0xff } } },
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/pcie/
H A Dutils.c21 char *prefix; in iwl_trans_pcie_dump_regs() local
40 prefix = (char *)buf + alloc_size - PREFIX_LEN; in iwl_trans_pcie_dump_regs()
45 sprintf(prefix, "iwlwifi %s: ", pci_name(pdev)); in iwl_trans_pcie_dump_regs()
50 print_hex_dump(KERN_ERR, prefix, DUMP_PREFIX_OFFSET, 32, 4, buf, i, 0); in iwl_trans_pcie_dump_regs()
55 print_hex_dump(KERN_ERR, prefix, DUMP_PREFIX_OFFSET, 32, 4, buf, i, 0); in iwl_trans_pcie_dump_regs()
63 print_hex_dump(KERN_ERR, prefix, DUMP_PREFIX_OFFSET, in iwl_trans_pcie_dump_regs()
72 sprintf(prefix, "iwlwifi %s: ", pci_name(pdev)); in iwl_trans_pcie_dump_regs()
79 print_hex_dump(KERN_ERR, prefix, DUMP_PREFIX_OFFSET, 32, 4, buf, i, 0); in iwl_trans_pcie_dump_regs()
89 sprintf(prefix, "iwlwifi %s: ", pci_name(pdev)); in iwl_trans_pcie_dump_regs()
93 print_hex_dump(KERN_ERR, prefix, DUMP_PREFIX_OFFSET, 32, in iwl_trans_pcie_dump_regs()
[all …]
/linux/lib/crc/x86/
H A Dcrc-pclmul-template.h18 #define DECLARE_CRC_PCLMUL_FUNCS(prefix, crc_t) \ argument
19 crc_t prefix##_pclmul_sse(crc_t crc, const u8 *p, size_t len, \
21 crc_t prefix##_vpclmul_avx2(crc_t crc, const u8 *p, size_t len, \
23 crc_t prefix##_vpclmul_avx512(crc_t crc, const u8 *p, size_t len, \
25 DEFINE_STATIC_CALL(prefix##_pclmul, prefix##_pclmul_sse)
56 #define CRC_PCLMUL(crc, p, len, prefix, consts, have_pclmulqdq) \ argument
64 crc = static_call(prefix##_pclmul)((crc), (p), (len), \
/linux/drivers/gpu/drm/xe/
H A Dxe_gen_wa_oob.c55 static int parse(FILE *input, FILE *csource, FILE *cheader, char *prefix) in parse() argument
99 fprintf(cheader, "\t%s_%s = %u,\n", prefix, name, idx); in parse()
121 fprintf(cheader, "\t_%s_COUNT = %u\n", prefix, idx); in parse()
134 static int fn_to_prefix(const char *fn, char *prefix, size_t size) in fn_to_prefix() argument
144 memcpy(prefix, fn, len + 1); in fn_to_prefix()
146 for (char *p = prefix; *p; p++) { in fn_to_prefix()
178 char prefix[128]; in main() local
186 if (fn_to_prefix(args[ARGS_CHEADER].fn, prefix, sizeof(prefix)) < 0) in main()
198 fprintf(args[ARGS_CHEADER].f, HEADER, args[ARGS_INPUT].fn, prefix, prefix); in main()
201 args[ARGS_CHEADER].f, prefix); in main()
/linux/tools/include/linux/
H A Dbtf_ids.h51 #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##__))
93 #define BTF_ID_LIST_SINGLE(name, prefix, typename) \ argument
95 BTF_ID(prefix, typename)
96 #define BTF_ID_LIST_GLOBAL_SINGLE(name, prefix, typename) \ argument
98 BTF_ID(prefix, typename)
161 #define BTF_ID(prefix, name) argument
164 #define BTF_ID_LIST_SINGLE(name, prefix, typename) static u32 __maybe_unused name[1]; argument
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_print.c184 const void *origin, const char *prefix, in __drm_dev_vprintk() argument
187 const char *prefix_pad = prefix ? " " : ""; in __drm_dev_vprintk()
189 if (!prefix) in __drm_dev_vprintk()
190 prefix = ""; in __drm_dev_vprintk()
195 origin, prefix_pad, prefix, vaf); in __drm_dev_vprintk()
198 prefix_pad, prefix, vaf); in __drm_dev_vprintk()
202 level, origin, prefix_pad, prefix, vaf); in __drm_dev_vprintk()
205 level, prefix_pad, prefix, vaf); in __drm_dev_vprintk()
224 __drm_dev_vprintk(dev, KERN_DEBUG, p->origin, p->prefix, vaf); in __drm_printfn_dbg()
232 if (p->prefix) in __drm_printfn_err()
[all …]
/linux/sound/soc/sdw_utils/
H A Dsoc_sdw_ti_amp.c48 const char *prefix; in asoc_sdw_ti_spk_rtd_init() local
55 prefix = codec_dai->component->name_prefix; in asoc_sdw_ti_spk_rtd_init()
56 if (!strncmp(prefix, "tas2783-1", strlen("tas2783-1"))) { in asoc_sdw_ti_spk_rtd_init()
58 } else if (!strncmp(prefix, "tas2783-2", strlen("tas2783-2"))) { in asoc_sdw_ti_spk_rtd_init()
62 dev_err(card->dev, "unhandled prefix %s", prefix); in asoc_sdw_ti_spk_rtd_init()
66 snprintf(widget_name, sizeof(widget_name), "%s SPK", prefix); in asoc_sdw_ti_spk_rtd_init()
67 ret = asoc_sdw_ti_amp_initial_settings(card, prefix); in asoc_sdw_ti_spk_rtd_init()
/linux/tools/perf/trace/beauty/
H A Dmmap_prot.sh16 prefix="PROT"
19 …pace:]]*define[[:space:]]+%s_([[:alnum:]_]+)[[:space:]]+(0x[[:xdigit:]]+)[[:space:]]*.*' ${prefix}`
25 …xargs printf "\t[ilog2(%s) + 1] = \"%s\",\n#ifndef ${prefix}_%s\n#define ${prefix}_%s %s\n#endif\n…
30 …xargs printf "\t[ilog2(%s) + 1] = \"%s\",\n#ifndef ${prefix}_%s\n#define ${prefix}_%s %s\n#endif\n…
/linux/samples/pktgen/
H A Dfunctions.sh216 local net prefix
219 IFS='/' read net prefix <<< $1
223 if [[ -n $prefix ]]; then
224 if ! (in_between $prefix 0 $bitlen); then
225 err 5 "Invalid prefix: /$prefix"
256 local net prefix
259 IFS='/' read net prefix <<< $1
262 if [[ -z $prefix ]]; then
273 local remain=$[ bitlen-prefix ]
284 min_mask="$(printf '1%.s' $(seq $prefix))$(printf '0%.s' $(seq $remain))"
[all …]
/linux/tools/lib/
H A Dstring.c209 unsigned int words, prefix; in memchr_inv() local
219 prefix = (unsigned long)start % 8; in memchr_inv()
220 if (prefix) { in memchr_inv()
223 prefix = 8 - prefix; in memchr_inv()
224 r = check_bytes8(start, value, prefix); in memchr_inv()
227 start += prefix; in memchr_inv()
228 bytes -= prefix; in memchr_inv()
/linux/drivers/net/ethernet/sfc/
H A Def100_rx.c34 bool ef100_rx_buf_hash_valid(const u8 *prefix) in ef100_rx_buf_hash_valid() argument
36 return PREFIX_FIELD(prefix, RSS_HASH_VALID); in ef100_rx_buf_hash_valid()
39 static bool ef100_has_fcs_error(struct efx_channel *channel, u32 *prefix) in ef100_has_fcs_error() argument
44 rxclass = le16_to_cpu((__force __le16)PREFIX_FIELD(prefix, CLASS)); in ef100_has_fcs_error()
66 u32 *prefix; in __ef100_rx_packet() local
68 prefix = (u32 *)(eh - ESE_GZ_RX_PKT_PREFIX_LEN); in __ef100_rx_packet()
71 u32 mark = PREFIX_FIELD(prefix, USER_MARK); in __ef100_rx_packet()
77 if (ef100_has_fcs_error(channel, prefix) && in __ef100_rx_packet()
81 rx_buf->len = le16_to_cpu((__force __le16)PREFIX_FIELD(prefix, LENGTH)); in __ef100_rx_packet()
90 ing_port = le16_to_cpu((__force __le16) PREFIX_FIELD(prefix, INGRESS_MPORT)); in __ef100_rx_packet()
[all …]
/linux/arch/riscv/include/asm/
H A Datomic.h53 #define ATOMIC_OP(op, asm_op, I, asm_type, c_type, prefix) \ argument
55 void arch_atomic##prefix##_##op(c_type i, atomic##prefix##_t *v) \
87 #define ATOMIC_FETCH_OP(op, asm_op, I, asm_type, c_type, prefix) \ in ATOMIC_OPS() argument
89 c_type arch_atomic##prefix##_fetch_##op##_relaxed(c_type i, \ in ATOMIC_OPS()
90 atomic##prefix##_t *v) \ in ATOMIC_OPS()
101 c_type arch_atomic##prefix##_fetch_##op(c_type i, atomic##prefix##_t *v) \
112 #define ATOMIC_OP_RETURN(op, asm_op, c_op, I, asm_type, c_type, prefix) \ argument
114 c_type arch_atomic##prefix##_##op##_return_relaxed(c_type i, \
115 atomic##prefix##_t *v) \
117 return arch_atomic##prefix##_fetch_##op##_relaxed(i, v) c_op I; \
[all …]
/linux/drivers/gpu/drm/i915/
H A Di915_syncmap.c74 u64 prefix; member
160 if (likely(__sync_leaf_prefix(p, id) == p->prefix)) in i915_syncmap_is_later()
169 if (__sync_branch_prefix(p, id) == p->prefix) in i915_syncmap_is_later()
182 if (__sync_branch_prefix(p, id) != p->prefix) in i915_syncmap_is_later()
207 p->prefix = __sync_leaf_prefix(p, id); in __sync_alloc_leaf()
241 GEM_BUG_ON(__sync_leaf_prefix(p, id) == p->prefix); in __sync_set()
250 if (__sync_branch_prefix(p, id) == p->prefix) in __sync_set()
278 if (__sync_branch_prefix(p, id) != p->prefix) { in __sync_set()
288 above = fls64(__sync_branch_prefix(p, id) ^ p->prefix); in __sync_set()
291 next->prefix = __sync_branch_prefix(next, id); in __sync_set()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Dsoc15_common.h113 #define WREG32_RLC_EX(prefix, reg, value, inst) \ argument
118 …uint32_t r0 = adev->reg_offset[GC_HWIP][inst][prefix##SCRATCH_REG0_BASE_IDX] + prefix##SCRATCH_REG…
119 …uint32_t r1 = adev->reg_offset[GC_HWIP][inst][prefix##SCRATCH_REG1_BASE_IDX] + prefix##SCRATCH_REG…
120 …uint32_t spare_int = adev->reg_offset[GC_HWIP][inst][prefix##RLC_SPARE_INT_BASE_IDX] + prefix##RLC…
151 #define WREG32_SOC15_RLC_SHADOW_EX(prefix, ip, inst, reg, value) \ argument
155 …uint32_t r2 = adev->reg_offset[GC_HWIP][inst][prefix##SCRATCH_REG1_BASE_IDX] + prefix##SCRATCH_REG…
156 …uint32_t r3 = adev->reg_offset[GC_HWIP][inst][prefix##SCRATCH_REG1_BASE_IDX] + prefix##SCRATCH_REG…
157 …uint32_t grbm_cntl = adev->reg_offset[GC_HWIP][inst][prefix##GRBM_GFX_CNTL_BASE_IDX] + prefix##GRB…
158 …uint32_t grbm_idx = adev->reg_offset[GC_HWIP][inst][prefix##GRBM_GFX_INDEX_BASE_IDX] + prefix##GRB…
178 #define WREG32_SOC15_RLC_EX(prefix, ip, inst, reg, value) \ argument
[all …]
/linux/drivers/s390/net/
H A Dsmsgiucv.c24 const char *prefix; member
81 if (strncmp(buffer + 8, cb->prefix, cb->len) == 0) { in smsg_message_pending()
90 int smsg_register_callback(const char *prefix, in smsg_register_callback() argument
98 cb->prefix = prefix; in smsg_register_callback()
99 cb->len = strlen(prefix); in smsg_register_callback()
107 void smsg_unregister_callback(const char *prefix, in smsg_unregister_callback() argument
117 strcmp(tmp->prefix, prefix) == 0) { in smsg_unregister_callback()

12345678910>>...41