Lines Matching refs:smac
71 t4_find_or_alloc_sme(struct smt_data *s, uint8_t *smac) in t4_find_or_alloc_sme() argument
87 if (memcmp(e->smac, smac, ETHER_ADDR_LEN) == 0) in t4_find_or_alloc_sme()
142 memcpy(req->src_mac1, e->smac, ETHER_ADDR_LEN); in t4_write_sme()
147 memcpy(req->src_mac0, s->smtab[e->idx - 1].smac, in t4_write_sme()
151 memcpy(req->src_mac0, e->smac, ETHER_ADDR_LEN); in t4_write_sme()
156 memcpy(req->src_mac1, s->smtab[e->idx + 1].smac, in t4_write_sme()
169 memcpy(req->src_mac0, s->smtab[e->idx].smac, ETHER_ADDR_LEN); in t4_write_sme()
187 t4_smt_alloc_switching(struct smt_data *s, uint8_t *smac) in t4_smt_alloc_switching() argument
193 e = t4_find_or_alloc_sme(s, smac); in t4_smt_alloc_switching()
204 uint8_t *smac) in t4_smt_set_switching() argument
215 memcpy(e->smac, smac, ETHER_ADDR_LEN); in t4_smt_set_switching()
331 e->idx, e->smac[0], e->smac[1], e->smac[2], in sysctl_smt()
332 e->smac[3], e->smac[4], e->smac[5], in sysctl_smt()