Lines Matching refs:bpm

386 	struct br_port_msg *bpm;  in br_mdb_valid_dump_req()  local
388 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*bpm))) { in br_mdb_valid_dump_req()
393 bpm = nlmsg_data(nlh); in br_mdb_valid_dump_req()
394 if (bpm->ifindex) { in br_mdb_valid_dump_req()
398 if (nlmsg_attrlen(nlh, sizeof(*bpm))) { in br_mdb_valid_dump_req()
429 struct br_port_msg *bpm; in br_mdb_dump() local
436 sizeof(*bpm), NLM_F_MULTI); in br_mdb_dump()
440 bpm = nlmsg_data(nlh); in br_mdb_dump()
441 memset(bpm, 0, sizeof(*bpm)); in br_mdb_dump()
442 bpm->ifindex = dev->ifindex; in br_mdb_dump()
470 struct br_port_msg *bpm; in nlmsg_populate_mdb_fill() local
473 nlh = nlmsg_put(skb, 0, 0, type, sizeof(*bpm), 0); in nlmsg_populate_mdb_fill()
477 bpm = nlmsg_data(nlh); in nlmsg_populate_mdb_fill()
478 memset(bpm, 0, sizeof(*bpm)); in nlmsg_populate_mdb_fill()
479 bpm->family = AF_BRIDGE; in nlmsg_populate_mdb_fill()
480 bpm->ifindex = dev->ifindex; in nlmsg_populate_mdb_fill()
590 struct br_port_msg *bpm; in nlmsg_populate_rtr_fill() local
593 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*bpm), 0); in nlmsg_populate_rtr_fill()
597 bpm = nlmsg_data(nlh); in nlmsg_populate_rtr_fill()
598 memset(bpm, 0, sizeof(*bpm)); in nlmsg_populate_rtr_fill()
599 bpm->family = AF_BRIDGE; in nlmsg_populate_rtr_fill()
600 bpm->ifindex = dev->ifindex; in nlmsg_populate_rtr_fill()
763 struct br_port_msg *bpm; in br_mdb_parse() local
768 err = nlmsg_parse_deprecated(nlh, sizeof(*bpm), tb, in br_mdb_parse()
773 bpm = nlmsg_data(nlh); in br_mdb_parse()
774 if (bpm->ifindex == 0) { in br_mdb_parse()
779 dev = __dev_get_by_index(net, bpm->ifindex); in br_mdb_parse()