Home
last modified time | relevance | path

Searched refs:smtab (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dsmt.c50 s = kvzalloc(struct_size(s, smtab, smt_size), GFP_KERNEL); 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()
70 for (e = &s->smtab[0], end = &s->smtab[s->smt_size]; e != end; ++e) { in find_or_alloc_smte()
126 struct smt_entry *e = &s->smtab[smtidx]; in do_smt_write_rpl()
170 memcpy(req->src_mac0, s->smtab[e->idx - 1].src_mac, in write_smt_entry()
180 memcpy(req->src_mac1, s->smtab[e->idx + 1].src_mac, in write_smt_entry()
[all …]
Dsmt.h69 struct smt_entry smtab[]; member