/linux/lib/ |
H A D | errname.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * on mips), so this wastes a bit of space on those - though we 16 #define E(err) [err + BUILD_BUG_ON_ZERO(err <= 0 || err > 300)] = "-" #err macro 18 E(E2BIG), 19 E(EACCES), 20 E(EADDRINUSE), 21 E(EADDRNOTAVAIL), 22 E(EADV), 23 E(EAFNOSUPPORT), 24 E(EAGAIN), /* EWOULDBLOCK */ [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | l2t.c | 4 * Copyright (c) 2003-2014 Chelsio Communications, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 65 static inline unsigned int vlan_prio(const struct l2t_entry *e) in vlan_prio() argument 67 return e->vlan >> VLAN_PRIO_SHIFT; in vlan_prio() 70 static inline void l2t_hold(struct l2t_data *d, struct l2t_entry *e) in l2t_hold() argument 72 if (atomic_add_return(1, &e->refcnt) == 1) /* 0 -> 1 transition */ in l2t_hold() 73 atomic_dec(&d->nfree); in l2t_hold() 89 unsigned int l2t_size_half = d->l2t_size / 2; in arp_hash() 97 unsigned int l2t_size_half = d->l2t_size / 2; in ipv6_hash() [all …]
|
H A D | smt.c | 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 53 s->smt_size = smt_size; in t4_init_smt() 54 rwlock_init(&s->lock); in t4_init_smt() 55 for (i = 0; i < s->smt_size; ++i) { in t4_init_smt() 56 s->smtab[i].idx = i; in t4_init_smt() 57 s->smtab[i].state = SMT_STATE_UNUSED; in t4_init_smt() 58 eth_zero_addr(s->smtab[i].src_mac); in t4_init_smt() 59 spin_lock_init(&s->smtab[i].lock); in t4_init_smt() 60 s->smtab[i].refcnt = 0; in t4_init_smt() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | l2t.c | 2 * Copyright (c) 2003-2008 Chelsio, Inc. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 63 static inline unsigned int vlan_prio(const struct l2t_entry *e) in vlan_prio() argument 65 return e->vlan >> 13; in vlan_prio() 71 return jhash_2words(key, ifindex, 0) & (d->nentries - 1); in arp_hash() 74 static inline void neigh_replace(struct l2t_entry *e, struct neighbour *n) in neigh_replace() argument 77 if (e->neigh) in neigh_replace() 78 neigh_release(e->neigh); in neigh_replace() 79 e->neigh = n; in neigh_replace() [all …]
|
/linux/scripts/kconfig/ |
H A D | expr.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 21 static struct expr *expr_eliminate_yn(struct expr *e); in expr_alloc_symbol() 24 * expr_lookup - return the expression with the given type and sub-nodes in expr_alloc_symbol() 25 * This looks up an expression with the specified type and sub-nodes. If such 35 struct expr *e; in expr_alloc_two() 40 hash_for_each_possible(expr_hashtable, e, nod in expr_alloc_two() 20 struct expr *e = xcalloc(1, sizeof(*e)); expr_alloc_symbol() local 28 struct expr *e = xcalloc(1, sizeof(*e)); expr_alloc_one() local 36 struct expr *e = xcalloc(1, sizeof(*e)); expr_alloc_two() local 45 struct expr *e = xcalloc(1, sizeof(*e)); expr_alloc_comp() local 68 struct expr *e; expr_copy() local 106 expr_free(struct expr * e) expr_free() argument 308 expr_eliminate_yn(struct expr * e) expr_eliminate_yn() argument 623 expr_eliminate_dups(struct expr * e) expr_eliminate_dups() argument 650 expr_transform(struct expr * e) expr_transform() argument 877 expr_trans_compare(struct expr * e,enum expr_type type,struct symbol * sym) expr_trans_compare() argument 984 expr_calc_value(struct expr * e) expr_calc_value() argument 1089 expr_print(const struct expr * e,void (* fn)(void *,struct symbol *,const char *),void * data,int prevtoken) expr_print() argument 1179 expr_fprint(struct expr * e,FILE * out) expr_fprint() argument 1214 expr_gstr_print(const struct expr * e,struct gstr * gs) expr_gstr_print() argument 1224 expr_print_revdep(struct expr * e,void (* fn)(void *,struct symbol *,const char *),void * data,tristate pr_type,const char ** title) expr_print_revdep() argument 1243 expr_gstr_print_revdep(struct expr * e,struct gstr * gs,tristate pr_type,const char * title) expr_gstr_print_revdep() argument [all...] |
/linux/tools/testing/selftests/powerpc/pmu/ |
H A D | event.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 static void __event_init_opts(struct event *e, u64 config, in __event_init_opts() argument 27 memset(e, 0, sizeof(*e)); in __event_init_opts() 29 e->name = name; in __event_init_opts() 31 e->attr.type = type; in __event_init_opts() 32 e->attr.config = config; in __event_init_opts() 33 e->attr.size = sizeof(e->attr); in __event_init_opts() 35 e->attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | \ in __event_init_opts() 38 e->attr.sample_period = 1000; in __event_init_opts() 39 e->attr.sample_type = PERF_SAMPLE_REGS_INTR; in __event_init_opts() [all …]
|
/linux/security/apparmor/ |
H A D | policy_unpack_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 50 struct aa_ext *e; member 58 struct aa_ext *e; in build_aa_ext_struct() local 63 e = kunit_kmalloc(test, sizeof(*e), GFP_USER); in build_aa_ext_struct() 64 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, e); in build_aa_ext_struct() 66 e->start = buf; in build_aa_ext_struct() 67 e->end = e->start + buf_size; in build_aa_ext_struct() 68 e->pos = e->start; in build_aa_ext_struct() 72 strscpy(buf + 3, TEST_STRING_NAME, e->end - (void *)(buf + 3)); in build_aa_ext_struct() 74 buf = e->start + TEST_STRING_BUF_OFFSET; in build_aa_ext_struct() [all …]
|
H A D | policy_unpack.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 1998-2008 Novell/SUSE 9 * Copyright 2009-2010 Canonical Ltd. 12 * policy format documentation see Documentation/admin-guide/LSM/apparmor.rst 39 if (ad->iface.ns) { in audit_cb() 41 audit_log_untrustedstring(ab, ad->iface.ns); in audit_cb() 43 if (ad->name) { in audit_cb() 45 audit_log_untrustedstring(ab, ad->name); in audit_cb() 47 if (ad->iface.pos) in audit_cb() 48 audit_log_format(ab, " offset=%ld", ad->iface.pos); in audit_cb() [all …]
|
/linux/net/netfilter/ipset/ |
H A D | pfxlen.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #ifdef E 8 #undef E 12 E(0x00000000, 0x00000000, 0x00000000, 0x00000000), \ 13 E(0x80000000, 0x00000000, 0x00000000, 0x00000000), \ 14 E(0xC0000000, 0x00000000, 0x00000000, 0x00000000), \ 15 E(0xE0000000, 0x00000000, 0x00000000, 0x00000000), \ 16 E(0xF0000000, 0x00000000, 0x00000000, 0x00000000), \ 17 E(0xF8000000, 0x00000000, 0x00000000, 0x00000000), \ 18 E(0xFC000000, 0x00000000, 0x00000000, 0x00000000), \ [all …]
|
H A D | ip_set_list_set.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (C) 2008-2013 Jozsef Kadlecsik <kadlec@netfilter.org> */ 53 struct list_set *map = set->data; in list_set_ktest() 54 struct ip_set_ext *mext = &opt->ext; in list_set_ktest() 55 struct set_elem *e; in list_set_ktest() local 56 u32 flags = opt->cmdflags; in list_set_ktest() 59 /* Don't lookup sub-counter in list_set_ktest() 79 struct set_elem *e; list_set_kadd() local 99 struct set_elem *e; list_set_kdel() local 145 struct set_elem *e = container_of(rcu, struct set_elem, rcu); __list_set_del_rcu() local 153 list_set_del(struct ip_set * set,struct set_elem * e) list_set_del() argument 164 list_set_replace(struct ip_set * set,struct set_elem * e,struct set_elem * old) list_set_replace() argument 177 struct set_elem *e, *n; set_cleanup_entries() local 190 struct set_elem *e, *next, *prev = NULL; list_set_utest() local 218 list_set_init_extensions(struct ip_set * set,const struct ip_set_ext * ext,struct set_elem * e) list_set_init_extensions() argument 237 struct set_elem *e, *n, *prev, *next; list_set_uadd() local 319 struct set_elem *e, *next, *prev = NULL; list_set_udel() local 351 struct set_adt_elem e = { .refid = IPSET_INVALID_ID }; list_set_uadt() local 415 struct set_elem *e, *n; list_set_flush() local 427 struct set_elem *e, *n; list_set_destroy() local 444 struct set_elem *e; list_set_memsize() local 487 struct set_elem *e; list_set_list() local [all...] |
/linux/scripts/coccinelle/api/ |
H A D | kvmalloc.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 8 // Options: --no-includes --include-headers 24 expression E, E1, size; 35 * E = \(kmalloc\|kzalloc\|kcalloc\|kmalloc_node\|kzalloc_node\| 41 * E = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...) 45 * E = \(kmalloc\|kzalloc\|kcalloc\|kmalloc_node\|kzalloc_node\| 48 ... when != E = E1 51 * if (E == NULL)@p { 53 * E = \(vmalloc\|vzalloc\|vmalloc_node\|vzalloc_node\)(..., size, ...) 71 expression E; [all …]
|
H A D | kfree_mismatch.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 9 // Options: --no-includes --include-headers 18 expression E, E1; 25 E = \(kmalloc\|kzalloc\|krealloc\|kcalloc\| 31 E = \(vmalloc\|vzalloc\|vmalloc_user\|vmalloc_node\| 38 E = \(kmalloc\|kzalloc\|krealloc\|kcalloc\|kmalloc_node\|kzalloc_node\| 40 ... when != E = E1 42 if (E == NULL) { 44 E = \(vmalloc\|vzalloc\|vmalloc_user\|vmalloc_node\| 53 expression E; [all …]
|
/linux/arch/alpha/lib/ |
H A D | ev6-memcpy.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * arch/alpha/lib/ev6-memcpy.S 4 * 21264 version by Rick Gorton <rick.gorton@alpha-processor.com> 8 * - memory accessed as aligned quadwords only 9 * - uses bcmpge to compare 8 bytes in parallel 14 * ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html 16 * E - either cluster 17 * U - upper subcluster; U0 - subcluster U0; U1 - subcluster U1 18 * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 21 * $1,$2, - scratch [all …]
|
H A D | ev6-memchr.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * arch/alpha/lib/ev6-memchr.S 5 * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> 9 * - memory accessed as aligned quadwords only 10 * - uses cmpbge to compare 8 bytes in parallel 11 * - does binary search to find 0 byte in last 18 * - only minimum number of quadwords may be accessed 19 * - the third argument is an unsigned long 24 * ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html 26 * E - either cluster [all …]
|
H A D | ev6-memset.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * arch/alpha/lib/ev6-memset.S 8 * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> 13 * ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html 15 * E - either cluster 16 * U - upper subcluster; U0 - subcluster U0; U1 - subcluster U1 17 * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 48 * undertake a major re-write to interleave the constant materialization 49 * with other parts of the fall-through code. This is important, even 53 and $17,255,$1 # E : 00000000000000ch [all …]
|
H A D | ev6-stxncpy.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * arch/alpha/lib/ev6-stxncpy.S 4 * 21264 version contributed by Rick Gorton <rick.gorton@api-networks.com> 6 * Copy no more than COUNT bytes of the null-terminated string from 29 * Furthermore, v0, a3-a5, t11, and $at are untouched. 34 * ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html 36 * E - either cluster 37 * U - upper subcluster; U0 - subcluster U0; U1 - subcluster U1 38 * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 66 lda t2, -1 # E : build a mask against false zero [all …]
|
H A D | ev67-strrchr.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * arch/alpha/lib/ev67-strrchr.S 4 * 21264 version by Rick Gorton <rick.gorton@alpha-processor.com> 6 * Finds length of a 0-terminated string. Optimized for the 9 * - memory accessed as aligned quadwords only 10 * - uses bcmpge to compare 8 bytes in parallel 15 * ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html 17 * E - either cluster 18 * U - upper subcluster; U0 - subcluster U0; U1 - subcluster U1 19 * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 [all …]
|
/linux/scripts/coccinelle/null/ |
H A D | badzero.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /// Compare pointer-typed values to NULL rather than 0 7 //# using the option -all_includes and the option -I to specify an 27 expression *E; 32 (E = f(...)) == 33 - 0 36 (E = f(...)) != 37 - 0 40 - 0 42 == (E = f(...)) [all …]
|
/linux/drivers/md/ |
H A D | dm-cache-policy-smq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include "dm-cache-background-tracker.h" 9 #include "dm-cache-policy-internal.h" 10 #include "dm-cache-policy.h" 20 #define DM_MSG_PREFIX "cache-policy-smq" 22 /*----------------------------------------------------------------*/ 37 /*----------------------------------------------------------------*/ 52 /*----------------------------------------------------------------*/ 54 #define INDEXER_NULL ((1u << 28u) - 1u) 69 es->begin = es->end = NULL; in space_init() [all …]
|
/linux/Documentation/driver-api/media/drivers/ccs/ |
H A D | ccs-regs.asc | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause 2 # Copyright (C) 2019--2020 Intel Corporation 5 # - f field LSB MSB rflags 6 # - e enum value # after a field 7 # - e enum value [LSB MSB] 8 # - b bool bit 9 # - l arg name min max elsize [discontig...] 23 - e GRBG 0 24 - e RGGB 1 25 - e BGGR 2 [all …]
|
/linux/block/ |
H A D | elevator.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Block device elevator/IO-scheduler. 11 * - elevator_fn, inserts a new request in the queue list 12 * - elevator_merge_fn, decides whether a new buffer can be merged with 14 * - elevator_dequeue_fn, called when a request is taken off the active list 17 * Removed tests for max-bomb-segments, which was breaking elvtune 18 * when run without -bN 21 * - Rework again to work with bio instead of buffer_heads 22 * - loose bi_dev comparisons, partition handling is right now 23 * - completely modularize elevator setup and teardown [all …]
|
/linux/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_s302m.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include <linux/fixp-arith.h> 156 while (head->next) in vidtv_s302m_access_unit_init() 157 head = head->next; in vidtv_s302m_access_unit_init() 159 head->next = au; in vidtv_s302m_access_unit_init() 165 static void vidtv_s302m_access_unit_destroy(struct vidtv_encoder *e) in vidtv_s302m_access_unit_destroy() argument 167 struct vidtv_access_unit *head = e->access_units; in vidtv_s302m_access_unit_destroy() 172 head = head->next; in vidtv_s302m_access_unit_destroy() 176 e->access_units = NULL; in vidtv_s302m_access_unit_destroy() 179 static void vidtv_s302m_alloc_au(struct vidtv_encoder *e) in vidtv_s302m_alloc_au() argument [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | indir_table.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 20 #define MLX5_ESW_INDIR_TABLE_RECIRC_IDX (MLX5_ESW_INDIR_TABLE_SIZE - 2) 21 #define MLX5_ESW_INDIR_TABLE_FWD_IDX (MLX5_ESW_INDIR_TABLE_SIZE - 1) 52 return ERR_PTR(-ENOMEM); in mlx5_esw_indir_table_init() 54 mutex_init(&indir->lock); in mlx5_esw_indir_table_init() 55 hash_init(indir->table); in mlx5_esw_indir_table_init() 62 mutex_destroy(&indir->lock); in mlx5_esw_indir_table_destroy() 72 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in mlx5_esw_indir_table_needed() 81 return esw_attr->in_rep->vport == MLX5_VPORT_UPLINK && in mlx5_esw_indir_table_needed() 83 esw->dev == dest_mdev && in mlx5_esw_indir_table_needed() [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/ |
H A D | binfmt_misc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * a specified wrapper. See Documentation/admin-guide/binfmt-misc.rst for more details. 67 * - 7 delimiters 68 * - name: ~50 bytes 69 * - type: 1 byte 70 * - offset: 3 bytes (has to be smaller than BINPRM_BUF_SIZE) 71 * - magic: 128 bytes (512 in escaped form) 72 * - mask: 128 bytes (512 in escaped form) 73 * - interp: ~50 bytes 74 * - flags: 5 bytes [all …]
|