Lines Matching refs:ip_tbl
341 struct rx_ip_sa *ipsa = &ipsec->ip_tbl[i];
647 if (ipsec->ip_tbl[i].used) {
648 if (!memcmp(ipsec->ip_tbl[i].ipaddr,
665 ipsec->ip_tbl[match].ref_cnt++;
671 memcpy(ipsec->ip_tbl[first].ipaddr,
673 ipsec->ip_tbl[first].ref_cnt = 1;
674 ipsec->ip_tbl[first].used = true;
786 if (ipsec->ip_tbl[ipi].ref_cnt > 0) {
787 ipsec->ip_tbl[ipi].ref_cnt--;
789 if (!ipsec->ip_tbl[ipi].ref_cnt) {
790 memset(&ipsec->ip_tbl[ipi], 0,
1268 ipsec->ip_tbl = kzalloc(size, GFP_KERNEL);
1269 if (!ipsec->ip_tbl)
1284 kfree(ipsec->ip_tbl);
1302 kfree(ipsec->ip_tbl);