Lines Matching refs:afinfo
2908 struct udp_seq_afinfo *afinfo;
2913 afinfo = state->bpf_seq_afinfo;
2915 afinfo = PDE_DATA(file_inode(seq->file));
2917 for (state->bucket = start; state->bucket <= afinfo->udp_table->mask;
2919 struct udp_hslot *hslot = &afinfo->udp_table->hash[state->bucket];
2928 if (afinfo->family == AF_UNSPEC ||
2929 sk->sk_family == afinfo->family)
2941 struct udp_seq_afinfo *afinfo;
2946 afinfo = state->bpf_seq_afinfo;
2948 afinfo = PDE_DATA(file_inode(seq->file));
2953 (afinfo->family != AF_UNSPEC &&
2954 sk->sk_family != afinfo->family)));
2957 if (state->bucket <= afinfo->udp_table->mask)
2958 spin_unlock_bh(&afinfo->udp_table->hash[state->bucket].lock);
2999 struct udp_seq_afinfo *afinfo;
3003 afinfo = state->bpf_seq_afinfo;
3005 afinfo = PDE_DATA(file_inode(seq->file));
3007 if (state->bucket <= afinfo->udp_table->mask)
3008 spin_unlock_bh(&afinfo->udp_table->hash[state->bucket].lock);
3235 struct udp_seq_afinfo *afinfo;
3238 afinfo = kmalloc(sizeof(*afinfo), GFP_USER | __GFP_NOWARN);
3239 if (!afinfo)
3242 afinfo->family = AF_UNSPEC;
3243 afinfo->udp_table = &udp_table;
3244 st->bpf_seq_afinfo = afinfo;
3247 kfree(afinfo);