Lines Matching refs:vlan_mac
683 data->vlan_mac.mac, data->vlan_mac.vlan); in bnx2x_check_vlan_mac_add()
686 if ((data->vlan_mac.vlan == pos->u.vlan_mac.vlan) && in bnx2x_check_vlan_mac_add()
687 (!memcmp(data->vlan_mac.mac, pos->u.vlan_mac.mac, in bnx2x_check_vlan_mac_add()
689 (data->vlan_mac.is_inner_mac == in bnx2x_check_vlan_mac_add()
690 pos->u.vlan_mac.is_inner_mac)) in bnx2x_check_vlan_mac_add()
738 data->vlan_mac.mac, data->vlan_mac.vlan); in bnx2x_check_vlan_mac_del()
741 if ((data->vlan_mac.vlan == pos->u.vlan_mac.vlan) && in bnx2x_check_vlan_mac_del()
742 (!memcmp(data->vlan_mac.mac, pos->u.vlan_mac.mac, in bnx2x_check_vlan_mac_del()
744 (data->vlan_mac.is_inner_mac == in bnx2x_check_vlan_mac_del()
745 pos->u.vlan_mac.is_inner_mac)) in bnx2x_check_vlan_mac_del()
891 int rule_cnt = rule_idx + 1, cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_set_one_mac_e2()
894 unsigned long *vlan_mac_flags = &elem->cmd_data.vlan_mac.vlan_mac_flags; in bnx2x_set_one_mac_e2()
895 u8 *mac = elem->cmd_data.vlan_mac.u.mac.mac; in bnx2x_set_one_mac_e2()
939 cpu_to_le16(elem->cmd_data.vlan_mac.u.mac.is_inner_mac); in bnx2x_set_one_mac_e2()
948 elem->cmd_data.vlan_mac.target_obj, in bnx2x_set_one_mac_e2()
957 cpu_to_le16(elem->cmd_data.vlan_mac. in bnx2x_set_one_mac_e2()
1055 bool add = (elem->cmd_data.vlan_mac.cmd == BNX2X_VLAN_MAC_ADD) ? in bnx2x_set_one_mac_e1x()
1063 elem->cmd_data.vlan_mac.u.mac.mac, 0, in bnx2x_set_one_mac_e1x()
1077 enum bnx2x_vlan_mac_cmd cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_set_one_vlan_e2()
1079 u16 vlan = elem->cmd_data.vlan_mac.u.vlan.vlan; in bnx2x_set_one_vlan_e2()
1102 elem->cmd_data.vlan_mac.target_obj, in bnx2x_set_one_vlan_e2()
1127 enum bnx2x_vlan_mac_cmd cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_set_one_vlan_mac_e2()
1129 u16 vlan = elem->cmd_data.vlan_mac.u.vlan_mac.vlan; in bnx2x_set_one_vlan_mac_e2()
1130 u8 *mac = elem->cmd_data.vlan_mac.u.vlan_mac.mac; in bnx2x_set_one_vlan_mac_e2()
1146 inner_mac = elem->cmd_data.vlan_mac.u.vlan_mac.is_inner_mac; in bnx2x_set_one_vlan_mac_e2()
1156 target_obj = elem->cmd_data.vlan_mac.target_obj; in bnx2x_set_one_vlan_mac_e2()
1194 bool add = (elem->cmd_data.vlan_mac.cmd == BNX2X_VLAN_MAC_ADD) ? in bnx2x_set_one_vlan_mac_e1h()
1202 elem->cmd_data.vlan_mac.u.vlan_mac.mac, in bnx2x_set_one_vlan_mac_e1h()
1203 elem->cmd_data.vlan_mac.u.vlan_mac.vlan, in bnx2x_set_one_vlan_mac_e1h()
1277 struct bnx2x_mac_ramrod_data *data = &elem->cmd_data.vlan_mac.u.mac; in bnx2x_exeq_get_mac()
1281 if (!memcmp(&pos->cmd_data.vlan_mac.u.mac, data, in bnx2x_exeq_get_mac()
1283 (pos->cmd_data.vlan_mac.cmd == elem->cmd_data.vlan_mac.cmd)) in bnx2x_exeq_get_mac()
1294 struct bnx2x_vlan_ramrod_data *data = &elem->cmd_data.vlan_mac.u.vlan; in bnx2x_exeq_get_vlan()
1298 if (!memcmp(&pos->cmd_data.vlan_mac.u.vlan, data, in bnx2x_exeq_get_vlan()
1300 (pos->cmd_data.vlan_mac.cmd == elem->cmd_data.vlan_mac.cmd)) in bnx2x_exeq_get_vlan()
1312 &elem->cmd_data.vlan_mac.u.vlan_mac; in bnx2x_exeq_get_vlan_mac()
1316 if (!memcmp(&pos->cmd_data.vlan_mac.u.vlan_mac, data, in bnx2x_exeq_get_vlan_mac()
1318 (pos->cmd_data.vlan_mac.cmd == in bnx2x_exeq_get_vlan_mac()
1319 elem->cmd_data.vlan_mac.cmd)) in bnx2x_exeq_get_vlan_mac()
1342 struct bnx2x_vlan_mac_obj *o = &qo->vlan_mac; in bnx2x_validate_vlan_mac_add()
1347 rc = o->check_add(bp, o, &elem->cmd_data.vlan_mac.u); in bnx2x_validate_vlan_mac_add()
1367 &elem->cmd_data.vlan_mac.vlan_mac_flags) || in bnx2x_validate_vlan_mac_add()
1390 struct bnx2x_vlan_mac_obj *o = &qo->vlan_mac; in bnx2x_validate_vlan_mac_del()
1398 pos = o->check_del(bp, o, &elem->cmd_data.vlan_mac.u); in bnx2x_validate_vlan_mac_del()
1410 query_elem.cmd_data.vlan_mac.cmd = BNX2X_VLAN_MAC_MOVE; in bnx2x_validate_vlan_mac_del()
1424 &elem->cmd_data.vlan_mac.vlan_mac_flags) || in bnx2x_validate_vlan_mac_del()
1449 struct bnx2x_vlan_mac_obj *src_o = &qo->vlan_mac; in bnx2x_validate_vlan_mac_move()
1450 struct bnx2x_vlan_mac_obj *dest_o = elem->cmd_data.vlan_mac.target_obj; in bnx2x_validate_vlan_mac_move()
1459 &elem->cmd_data.vlan_mac.u)) { in bnx2x_validate_vlan_mac_move()
1471 query_elem.cmd_data.vlan_mac.cmd = BNX2X_VLAN_MAC_DEL; in bnx2x_validate_vlan_mac_move()
1484 query_elem.cmd_data.vlan_mac.cmd = BNX2X_VLAN_MAC_ADD; in bnx2x_validate_vlan_mac_move()
1492 &elem->cmd_data.vlan_mac.vlan_mac_flags) || in bnx2x_validate_vlan_mac_move()
1497 &elem->cmd_data.vlan_mac.vlan_mac_flags) || in bnx2x_validate_vlan_mac_move()
1511 switch (elem->cmd_data.vlan_mac.cmd) { in bnx2x_validate_vlan_mac()
1531 &elem->cmd_data.vlan_mac.vlan_mac_flags)) in bnx2x_remove_vlan_mac()
1534 switch (elem->cmd_data.vlan_mac.cmd) { in bnx2x_remove_vlan_mac()
1537 rc = qo->vlan_mac.put_credit(&qo->vlan_mac); in bnx2x_remove_vlan_mac()
1540 rc = qo->vlan_mac.get_credit(&qo->vlan_mac); in bnx2x_remove_vlan_mac()
1669 struct bnx2x_vlan_mac_obj *o = &qo->vlan_mac; in bnx2x_optimize_vlan_mac()
1674 switch (elem->cmd_data.vlan_mac.cmd) { in bnx2x_optimize_vlan_mac()
1676 query.cmd_data.vlan_mac.cmd = BNX2X_VLAN_MAC_DEL; in bnx2x_optimize_vlan_mac()
1679 query.cmd_data.vlan_mac.cmd = BNX2X_VLAN_MAC_ADD; in bnx2x_optimize_vlan_mac()
1692 &pos->cmd_data.vlan_mac.vlan_mac_flags)) { in bnx2x_optimize_vlan_mac()
1693 if ((query.cmd_data.vlan_mac.cmd == in bnx2x_optimize_vlan_mac()
1704 (elem->cmd_data.vlan_mac.cmd == BNX2X_VLAN_MAC_ADD) ? in bnx2x_optimize_vlan_mac()
1733 enum bnx2x_vlan_mac_cmd cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_vlan_mac_get_registry_elem()
1756 memcpy(®_elem->u, &elem->cmd_data.vlan_mac.u, in bnx2x_vlan_mac_get_registry_elem()
1761 elem->cmd_data.vlan_mac.vlan_mac_flags; in bnx2x_vlan_mac_get_registry_elem()
1763 reg_elem = o->check_del(bp, o, &elem->cmd_data.vlan_mac.u); in bnx2x_vlan_mac_get_registry_elem()
1785 struct bnx2x_vlan_mac_obj *o = &qo->vlan_mac, *cam_obj; in bnx2x_execute_vlan_mac()
1804 cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_execute_vlan_mac()
1809 cam_obj = elem->cmd_data.vlan_mac.target_obj; in bnx2x_execute_vlan_mac()
1855 cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_execute_vlan_mac()
1859 &elem->cmd_data.vlan_mac.u); in bnx2x_execute_vlan_mac()
1879 cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_execute_vlan_mac()
1882 cam_obj = elem->cmd_data.vlan_mac.target_obj; in bnx2x_execute_vlan_mac()
1891 &elem->cmd_data.vlan_mac.u); in bnx2x_execute_vlan_mac()
1925 memcpy(&elem->cmd_data.vlan_mac, &p->user_req, sizeof(p->user_req)); in bnx2x_vlan_mac_push_new_cmd()
2038 flags = exeq_pos->cmd_data.vlan_mac.vlan_mac_flags; in bnx2x_vlan_mac_del_all()