Lines Matching defs:bpm
300 struct br_port_msg *bpm;
302 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*bpm))) {
307 bpm = nlmsg_data(nlh);
308 if (bpm->ifindex) {
312 if (nlmsg_attrlen(nlh, sizeof(*bpm))) {
342 struct br_port_msg *bpm;
349 sizeof(*bpm), NLM_F_MULTI);
353 bpm = nlmsg_data(nlh);
354 memset(bpm, 0, sizeof(*bpm));
355 bpm->ifindex = dev->ifindex;
383 struct br_port_msg *bpm;
386 nlh = nlmsg_put(skb, 0, 0, type, sizeof(*bpm), 0);
390 bpm = nlmsg_data(nlh);
391 memset(bpm, 0, sizeof(*bpm));
392 bpm->family = AF_BRIDGE;
393 bpm->ifindex = dev->ifindex;
610 struct br_port_msg *bpm;
614 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*bpm), 0);
618 bpm = nlmsg_data(nlh);
619 memset(bpm, 0, sizeof(*bpm));
620 bpm->family = AF_BRIDGE;
621 bpm->ifindex = dev->ifindex;
763 struct br_port_msg *bpm;
768 err = nlmsg_parse_deprecated(nlh, sizeof(*bpm), tb,
773 bpm = nlmsg_data(nlh);
774 if (bpm->ifindex == 0) {
779 dev = __dev_get_by_index(net, bpm->ifindex);