/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/ |
D | l2t.c | 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() 118 static int addreq(const struct l2t_entry *e, const u32 *addr) in addreq() argument 120 if (e->v6) in addreq() 121 return (e->addr[0] ^ addr[0]) | (e->addr[1] ^ addr[1]) | in addreq() 122 (e->addr[2] ^ addr[2]) | (e->addr[3] ^ addr[3]); in addreq() 123 return e->addr[0] ^ addr[0]; in addreq() 126 static void neigh_replace(struct l2t_entry *e, struct neighbour *n) in neigh_replace() argument [all …]
|
D | smt.c | 68 struct smt_entry *e, *end; in find_or_alloc_smte() local 70 for (e = &s->smtab[0], end = &s->smtab[s->smt_size]; e != end; ++e) { in find_or_alloc_smte() 71 if (e->refcnt == 0) { in find_or_alloc_smte() 73 first_free = e; in find_or_alloc_smte() 75 if (e->state == SMT_STATE_SWITCHING) { in find_or_alloc_smte() 79 if (memcmp(e->src_mac, smac, ETH_ALEN) == 0) in find_or_alloc_smte() 86 e = first_free; in find_or_alloc_smte() 92 e->state = SMT_STATE_UNUSED; in find_or_alloc_smte() 95 return e; in find_or_alloc_smte() 98 static void t4_smte_free(struct smt_entry *e) in t4_smte_free() argument [all …]
|
D | sched.c | 47 struct sched_class *e; in t4_sched_class_fw_cmd() local 50 e = &s->tab[p->u.params.class]; in t4_sched_class_fw_cmd() 57 p->u.params.channel, e->idx, in t4_sched_class_fw_cmd() 113 struct sched_class *e, *end; in t4_sched_queue_lookup() local 119 for (e = &s->tab[0]; e != end; ++e) { in t4_sched_queue_lookup() 123 if (e->state == SCHED_STATE_UNUSED) in t4_sched_queue_lookup() 126 list_for_each_entry(qe, &e->queue_list, list) { in t4_sched_queue_lookup() 128 found = e; in t4_sched_queue_lookup() 146 struct sched_class *e; in t4_sched_queue_unbind() local 160 e = t4_sched_queue_lookup(pi, qid, &index); in t4_sched_queue_unbind() [all …]
|
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb3/ |
D | l2t.c | 63 static inline unsigned int vlan_prio(const struct l2t_entry *e) in vlan_prio() argument 65 return e->vlan >> 13; in vlan_prio() 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() 88 struct l2t_entry *e) in setup_l2e_send_pending() argument 101 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_L2T_WRITE_REQ, e->idx)); in setup_l2e_send_pending() 102 req->params = htonl(V_L2T_W_IDX(e->idx) | V_L2T_W_IFF(e->smt_idx) | in setup_l2e_send_pending() 103 V_L2T_W_VLAN(e->vlan & VLAN_VID_MASK) | in setup_l2e_send_pending() [all …]
|
/Linux-v5.4/tools/testing/selftests/powerpc/pmu/ |
D | event.c | 23 void event_init_opts(struct event *e, u64 config, int type, char *name) in event_init_opts() argument 25 memset(e, 0, sizeof(*e)); in event_init_opts() 27 e->name = name; in event_init_opts() 29 e->attr.type = type; in event_init_opts() 30 e->attr.config = config; in event_init_opts() 31 e->attr.size = sizeof(e->attr); in event_init_opts() 33 e->attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | \ in event_init_opts() 37 void event_init_named(struct event *e, u64 config, char *name) in event_init_named() argument 39 event_init_opts(e, config, PERF_TYPE_RAW, name); in event_init_named() 42 void event_init(struct event *e, u64 config) in event_init() argument [all …]
|
D | per_event_excludes.c | 25 struct event *e, events[4]; in per_event_excludes() local 37 e = &events[0]; in per_event_excludes() 38 event_init_opts(e, PERF_COUNT_HW_INSTRUCTIONS, in per_event_excludes() 40 e->attr.disabled = 1; in per_event_excludes() 42 e = &events[1]; in per_event_excludes() 43 event_init_opts(e, PERF_COUNT_HW_INSTRUCTIONS, in per_event_excludes() 45 e->attr.disabled = 1; in per_event_excludes() 46 e->attr.exclude_user = 1; in per_event_excludes() 47 e->attr.exclude_hv = 1; in per_event_excludes() 49 e = &events[2]; in per_event_excludes() [all …]
|
/Linux-v5.4/scripts/kconfig/ |
D | expr.c | 17 static struct expr *expr_eliminate_yn(struct expr *e); 21 struct expr *e = xcalloc(1, sizeof(*e)); in expr_alloc_symbol() local 22 e->type = E_SYMBOL; in expr_alloc_symbol() 23 e->left.sym = sym; in expr_alloc_symbol() 24 return e; in expr_alloc_symbol() 29 struct expr *e = xcalloc(1, sizeof(*e)); in expr_alloc_one() local 30 e->type = type; in expr_alloc_one() 31 e->left.expr = ce; in expr_alloc_one() 32 return e; in expr_alloc_one() 37 struct expr *e = xcalloc(1, sizeof(*e)); in expr_alloc_two() local [all …]
|
/Linux-v5.4/security/apparmor/ |
D | policy_unpack.c | 105 const char *name, const char *info, struct aa_ext *e, in audit_iface() argument 110 if (e) in audit_iface() 111 aad(&sa)->iface.pos = e->pos - e->start; in audit_iface() 198 static bool inbounds(struct aa_ext *e, size_t size) in inbounds() argument 200 return (size <= e->end - e->pos); in inbounds() 219 static size_t unpack_u16_chunk(struct aa_ext *e, char **chunk) in unpack_u16_chunk() argument 222 void *pos = e->pos; in unpack_u16_chunk() 224 if (!inbounds(e, sizeof(u16))) in unpack_u16_chunk() 226 size = le16_to_cpu(get_unaligned((__le16 *) e->pos)); in unpack_u16_chunk() 227 e->pos += sizeof(__le16); in unpack_u16_chunk() [all …]
|
/Linux-v5.4/block/ |
D | elevator.c | 63 struct elevator_queue *e = q->elevator; in elv_iosched_allow_bio_merge() local 65 if (e->type->ops.allow_merge) in elv_iosched_allow_bio_merge() 66 return e->type->ops.allow_merge(q, rq, bio); in elv_iosched_allow_bio_merge() 101 static bool elevator_match(const struct elevator_type *e, const char *name, in elevator_match() argument 104 if (!elv_support_features(e->elevator_features, required_features)) in elevator_match() 106 if (!strcmp(e->elevator_name, name)) in elevator_match() 108 if (e->elevator_alias && !strcmp(e->elevator_alias, name)) in elevator_match() 125 struct elevator_type *e; in elevator_find() local 127 list_for_each_entry(e, &elv_list, list) { in elevator_find() 128 if (elevator_match(e, name, required_features)) in elevator_find() [all …]
|
/Linux-v5.4/tools/testing/selftests/powerpc/pmu/ebb/ |
D | trace.c | 78 struct trace_entry *e; in trace_alloc_entry() local 80 e = trace_alloc(tb, sizeof(*e) + payload_size); in trace_alloc_entry() 81 if (e) in trace_alloc_entry() 82 e->length = payload_size; in trace_alloc_entry() 84 return e; in trace_alloc_entry() 89 struct trace_entry *e; in trace_log_reg() local 92 e = trace_alloc_entry(tb, sizeof(reg) + sizeof(value)); in trace_log_reg() 93 if (!e) in trace_log_reg() 96 e->type = TRACE_TYPE_REG; in trace_log_reg() 97 p = (u64 *)e->data; in trace_log_reg() [all …]
|
/Linux-v5.4/fs/ |
D | binfmt_misc.c | 97 Node *e = list_entry(l, Node, list); in check_file() local 102 if (!test_bit(Enabled, &e->flags)) in check_file() 106 if (!test_bit(Magic, &e->flags)) { in check_file() 107 if (p && !strcmp(e->magic, p + 1)) in check_file() 108 return e; in check_file() 113 s = bprm->buf + e->offset; in check_file() 114 if (e->mask) { in check_file() 115 for (j = 0; j < e->size; j++) in check_file() 116 if ((*s++ ^ e->magic[j]) & e->mask[j]) in check_file() 119 for (j = 0; j < e->size; j++) in check_file() [all …]
|
/Linux-v5.4/drivers/md/ |
D | dm-cache-policy-smq.c | 87 struct entry *e; in __get_entry() local 89 e = es->begin + block; in __get_entry() 90 BUG_ON(e >= es->end); in __get_entry() 92 return e; in __get_entry() 95 static unsigned to_index(struct entry_space *es, struct entry *e) in to_index() argument 97 BUG_ON(e < es->begin || e >= es->end); in to_index() 98 return e - es->begin; in to_index() 132 static struct entry *l_next(struct entry_space *es, struct entry *e) in l_next() argument 134 return to_entry(es, e->next); in l_next() 137 static struct entry *l_prev(struct entry_space *es, struct entry *e) in l_prev() argument [all …]
|
/Linux-v5.4/lib/ |
D | lru_cache.c | 39 #define PARANOIA_LC_ELEMENT(lc, e) do { \ argument 41 struct lc_element *e_ = (e); \ 94 struct lc_element *e; in lc_create() local 138 e = p + e_off; in lc_create() 139 e->lc_index = i; in lc_create() 140 e->lc_number = LC_FREE; in lc_create() 141 e->lc_new_number = LC_FREE; in lc_create() 142 list_add(&e->list, &lc->free); in lc_create() 143 element[i] = e; in lc_create() 212 struct lc_element *e = lc->lc_element[i]; in lc_reset() local [all …]
|
/Linux-v5.4/drivers/mtd/ubi/ |
D | wl.c | 127 struct ubi_wl_entry *e, struct rb_root *root); 129 struct ubi_wl_entry *e); 139 static void wl_tree_add(struct ubi_wl_entry *e, struct rb_root *root) in wl_tree_add() argument 150 if (e->ec < e1->ec) in wl_tree_add() 152 else if (e->ec > e1->ec) in wl_tree_add() 155 ubi_assert(e->pnum != e1->pnum); in wl_tree_add() 156 if (e->pnum < e1->pnum) in wl_tree_add() 163 rb_link_node(&e->u.rb, parent, p); in wl_tree_add() 164 rb_insert_color(&e->u.rb, root); in wl_tree_add() 175 static void wl_entry_destroy(struct ubi_device *ubi, struct ubi_wl_entry *e) in wl_entry_destroy() argument [all …]
|
D | fastmap-wl.c | 29 struct ubi_wl_entry *e, *victim = NULL; in find_anchor_wl_entry() local 32 ubi_rb_for_each_entry(p, e, root, u.rb) { in find_anchor_wl_entry() 33 if (e->pnum < UBI_FM_MAX_START && e->ec < max_ec) { in find_anchor_wl_entry() 34 victim = e; in find_anchor_wl_entry() 35 max_ec = e->ec; in find_anchor_wl_entry() 51 struct ubi_wl_entry *e; in return_unused_pool_pebs() local 54 e = ubi->lookuptbl[pool->pebs[i]]; in return_unused_pool_pebs() 55 wl_tree_add(e, &ubi->free); in return_unused_pool_pebs() 63 struct ubi_wl_entry *e; in anchor_pebs_available() local 65 ubi_rb_for_each_entry(p, e, root, u.rb) in anchor_pebs_available() [all …]
|
/Linux-v5.4/arch/sparc/vdso/ |
D | vma.c | 68 static void *one_section64(struct vdso_elfinfo64 *e, const char *name, in one_section64() argument 75 shdrs = (void *)e->hdr + e->hdr->e_shoff; in one_section64() 76 snames = (void *)e->hdr + shdrs[e->hdr->e_shstrndx].sh_offset; in one_section64() 77 for (i = 1; i < e->hdr->e_shnum; i++) { in one_section64() 81 return (void *)e->hdr + shdrs[i].sh_offset; in one_section64() 89 struct vdso_elfinfo64 *e = &_e->u.elf64; in find_sections64() local 91 e->hdr = image->data; in find_sections64() 92 e->dynsym = one_section64(e, ".dynsym", &e->dynsymsize); in find_sections64() 93 e->dynstr = one_section64(e, ".dynstr", NULL); in find_sections64() 95 if (!e->dynsym || !e->dynstr) { in find_sections64() [all …]
|
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_sync.c | 134 struct amdgpu_sync_entry *e; in amdgpu_sync_add_later() local 136 hash_for_each_possible(sync->fences, e, node, f->context) { in amdgpu_sync_add_later() 137 if (unlikely(e->fence->context != f->context)) in amdgpu_sync_add_later() 140 amdgpu_sync_keep_later(&e->fence, f); in amdgpu_sync_add_later() 143 e->explicit |= explicit; in amdgpu_sync_add_later() 160 struct amdgpu_sync_entry *e; in amdgpu_sync_fence() local 171 e = kmem_cache_alloc(amdgpu_sync_slab, GFP_KERNEL); in amdgpu_sync_fence() 172 if (!e) in amdgpu_sync_fence() 175 e->explicit = explicit; in amdgpu_sync_fence() 177 hash_add(sync->fences, &e->node, f->context); in amdgpu_sync_fence() [all …]
|
/Linux-v5.4/net/netfilter/ipset/ |
D | ip_set_list_set.c | 55 struct set_elem *e; in list_set_ktest() local 63 list_for_each_entry_rcu(e, &map->members, list) { in list_set_ktest() 64 ret = ip_set_test(e->id, skb, par, opt); in list_set_ktest() 67 if (ip_set_match_extensions(set, ext, mext, flags, e)) in list_set_ktest() 79 struct set_elem *e; in list_set_kadd() local 82 list_for_each_entry(e, &map->members, list) { in list_set_kadd() 84 ip_set_timeout_expired(ext_timeout(e, set))) in list_set_kadd() 86 ret = ip_set_add(e->id, skb, par, opt); in list_set_kadd() 99 struct set_elem *e; in list_set_kdel() local 102 list_for_each_entry(e, &map->members, list) { in list_set_kdel() [all …]
|
D | ip_set_hash_netportnet.c | 142 hash_netportnet4_init(struct hash_netportnet4_elem *e) in hash_netportnet4_init() argument 144 e->cidr[0] = HOST_MASK; in hash_netportnet4_init() 145 e->cidr[1] = HOST_MASK; in hash_netportnet4_init() 155 struct hash_netportnet4_elem e = { }; in hash_netportnet4_kadt() local 158 e.cidr[0] = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK); in hash_netportnet4_kadt() 159 e.cidr[1] = INIT_CIDR(h->nets[0].cidr[1], HOST_MASK); in hash_netportnet4_kadt() 161 e.ccmp = (HOST_MASK << (sizeof(e.cidr[0]) * 8)) | HOST_MASK; in hash_netportnet4_kadt() 164 &e.port, &e.proto)) in hash_netportnet4_kadt() 167 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0]); in hash_netportnet4_kadt() 168 ip4addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip[1]); in hash_netportnet4_kadt() [all …]
|
D | ip_set_hash_netnet.c | 132 hash_netnet4_init(struct hash_netnet4_elem *e) in hash_netnet4_init() argument 134 e->cidr[0] = HOST_MASK; in hash_netnet4_init() 135 e->cidr[1] = HOST_MASK; in hash_netnet4_init() 145 struct hash_netnet4_elem e = { }; in hash_netnet4_kadt() local 148 e.cidr[0] = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK); in hash_netnet4_kadt() 149 e.cidr[1] = INIT_CIDR(h->nets[0].cidr[1], HOST_MASK); in hash_netnet4_kadt() 151 e.ccmp = (HOST_MASK << (sizeof(e.cidr[0]) * 8)) | HOST_MASK; in hash_netnet4_kadt() 153 ip4addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0]); in hash_netnet4_kadt() 154 ip4addrptr(skb, opt->flags & IPSET_DIM_TWO_SRC, &e.ip[1]); in hash_netnet4_kadt() 155 e.ip[0] &= ip_set_netmask(e.cidr[0]); in hash_netnet4_kadt() [all …]
|
/Linux-v5.4/virt/kvm/arm/vgic/ |
D | vgic-irqfd.c | 18 static int vgic_irqfd_set_irq(struct kvm_kernel_irq_routing_entry *e, in vgic_irqfd_set_irq() argument 22 unsigned int spi_id = e->irqchip.pin + VGIC_NR_PRIVATE_IRQS; in vgic_irqfd_set_irq() 39 struct kvm_kernel_irq_routing_entry *e, in kvm_set_routing_entry() argument 46 e->set = vgic_irqfd_set_irq; in kvm_set_routing_entry() 47 e->irqchip.irqchip = ue->u.irqchip.irqchip; in kvm_set_routing_entry() 48 e->irqchip.pin = ue->u.irqchip.pin; in kvm_set_routing_entry() 49 if ((e->irqchip.pin >= KVM_IRQCHIP_NUM_PINS) || in kvm_set_routing_entry() 50 (e->irqchip.irqchip >= KVM_NR_IRQCHIPS)) in kvm_set_routing_entry() 54 e->set = kvm_set_msi; in kvm_set_routing_entry() 55 e->msi.address_lo = ue->u.msi.address_lo; in kvm_set_routing_entry() [all …]
|
/Linux-v5.4/drivers/net/fddi/skfp/ |
D | ecm.c | 101 smc->e.path_test = PT_PASSED ; in ecm_init() 102 smc->e.trace_prop = 0 ; in ecm_init() 103 smc->e.sb_flag = 0 ; in ecm_init() 105 smc->e.ecm_line_state = FALSE ; in ecm_init() 157 smc->e.DisconnectFlag = FALSE ; in ecm_fsm() 160 smc->e.DisconnectFlag = TRUE ; in ecm_fsm() 168 smc->e.path_test = PT_PASSED ; in ecm_fsm() 169 smc->e.ecm_line_state = FALSE ; in ecm_fsm() 176 && smc->e.path_test==PT_PASSED) { in ecm_fsm() 181 else if (cmd == EC_CONNECT && (smc->e.path_test==PT_PASSED) && in ecm_fsm() [all …]
|
/Linux-v5.4/sound/pci/hda/ |
D | hda_eld.c | 224 int snd_hdmi_parse_eld(struct hda_codec *codec, struct parsed_hdmi_eld *e, in snd_hdmi_parse_eld() argument 230 memset(e, 0, sizeof(*e)); in snd_hdmi_parse_eld() 231 e->eld_ver = GRAB_BITS(buf, 0, 3, 5); in snd_hdmi_parse_eld() 232 if (e->eld_ver != ELD_VER_CEA_861D && in snd_hdmi_parse_eld() 233 e->eld_ver != ELD_VER_PARTIAL) { in snd_hdmi_parse_eld() 234 codec_info(codec, "HDMI: Unknown ELD version %d\n", e->eld_ver); in snd_hdmi_parse_eld() 238 e->baseline_len = GRAB_BITS(buf, 2, 0, 8); in snd_hdmi_parse_eld() 240 e->cea_edid_ver = GRAB_BITS(buf, 4, 5, 3); in snd_hdmi_parse_eld() 242 e->support_hdcp = GRAB_BITS(buf, 5, 0, 1); in snd_hdmi_parse_eld() 243 e->support_ai = GRAB_BITS(buf, 5, 1, 1); in snd_hdmi_parse_eld() [all …]
|
/Linux-v5.4/fs/dlm/ |
D | requestqueue.c | 34 struct rq_entry *e; in dlm_add_requestqueue() local 37 e = kmalloc(sizeof(struct rq_entry) + length, GFP_NOFS); in dlm_add_requestqueue() 38 if (!e) { in dlm_add_requestqueue() 43 e->recover_seq = ls->ls_recover_seq & 0xFFFFFFFF; in dlm_add_requestqueue() 44 e->nodeid = nodeid; in dlm_add_requestqueue() 45 memcpy(&e->request, ms, ms->m_header.h_length); in dlm_add_requestqueue() 48 list_add_tail(&e->list, &ls->ls_requestqueue); in dlm_add_requestqueue() 65 struct rq_entry *e; in dlm_process_requestqueue() local 77 e = list_entry(ls->ls_requestqueue.next, struct rq_entry, list); in dlm_process_requestqueue() 80 ms = &e->request; in dlm_process_requestqueue() [all …]
|
/Linux-v5.4/net/netfilter/ |
D | xt_recent.c | 128 struct recent_entry *e; in recent_entry_lookup() local 136 list_for_each_entry(e, &table->iphash[h], list) in recent_entry_lookup() 137 if (e->family == family && in recent_entry_lookup() 138 memcmp(&e->addr, addrp, sizeof(e->addr)) == 0 && in recent_entry_lookup() 139 (ttl == e->ttl || ttl == 0 || e->ttl == 0)) in recent_entry_lookup() 140 return e; in recent_entry_lookup() 144 static void recent_entry_remove(struct recent_table *t, struct recent_entry *e) in recent_entry_remove() argument 146 list_del(&e->list); in recent_entry_remove() 147 list_del(&e->lru_list); in recent_entry_remove() 148 kfree(e); in recent_entry_remove() [all …]
|