• Home
  • Raw
  • Download

Lines Matching refs:elem

78 					     struct bnx2x_exeq_elem *elem)  in bnx2x_exe_queue_free_elem()  argument
81 kfree(elem); in bnx2x_exe_queue_free_elem()
86 struct bnx2x_exeq_elem *elem; in bnx2x_exe_queue_length() local
91 list_for_each_entry(elem, &o->exe_queue, link) in bnx2x_exe_queue_length()
111 struct bnx2x_exeq_elem *elem, in bnx2x_exe_queue_add() argument
120 rc = o->optimize(bp, o->owner, elem); in bnx2x_exe_queue_add()
125 rc = o->validate(bp, o->owner, elem); in bnx2x_exe_queue_add()
133 list_add_tail(&elem->link, &o->exe_queue); in bnx2x_exe_queue_add()
140 bnx2x_exe_queue_free_elem(bp, elem); in bnx2x_exe_queue_add()
151 struct bnx2x_exeq_elem *elem; in __bnx2x_exe_queue_reset_pending() local
154 elem = list_first_entry(&o->pending_comp, in __bnx2x_exe_queue_reset_pending()
157 list_del(&elem->link); in __bnx2x_exe_queue_reset_pending()
158 bnx2x_exe_queue_free_elem(bp, elem); in __bnx2x_exe_queue_reset_pending()
175 struct bnx2x_exeq_elem *elem, spacer; in bnx2x_exe_queue_step() local
199 elem = list_first_entry(&o->exe_queue, struct bnx2x_exeq_elem, in bnx2x_exe_queue_step()
201 WARN_ON(!elem->cmd_len); in bnx2x_exe_queue_step()
203 if (cur_len + elem->cmd_len <= o->exe_chunk_len) { in bnx2x_exe_queue_step()
204 cur_len += elem->cmd_len; in bnx2x_exe_queue_step()
211 list_move_tail(&elem->link, &o->pending_comp); in bnx2x_exe_queue_step()
807 struct bnx2x_exeq_elem *elem, int rule_idx, in bnx2x_set_one_mac_e2() argument
813 int rule_cnt = rule_idx + 1, cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_set_one_mac_e2()
816 unsigned long *vlan_mac_flags = &elem->cmd_data.vlan_mac.vlan_mac_flags; in bnx2x_set_one_mac_e2()
817 u8 *mac = elem->cmd_data.vlan_mac.u.mac.mac; in bnx2x_set_one_mac_e2()
861 cpu_to_le16(elem->cmd_data.vlan_mac.u.mac.is_inner_mac); in bnx2x_set_one_mac_e2()
870 elem->cmd_data.vlan_mac.target_obj, in bnx2x_set_one_mac_e2()
879 cpu_to_le16(elem->cmd_data.vlan_mac. in bnx2x_set_one_mac_e2()
968 struct bnx2x_exeq_elem *elem, int rule_idx, in bnx2x_set_one_mac_e1x() argument
977 bool add = (elem->cmd_data.vlan_mac.cmd == BNX2X_VLAN_MAC_ADD) ? in bnx2x_set_one_mac_e1x()
985 elem->cmd_data.vlan_mac.u.mac.mac, 0, in bnx2x_set_one_mac_e1x()
991 struct bnx2x_exeq_elem *elem, int rule_idx, in bnx2x_set_one_vlan_e2() argument
999 enum bnx2x_vlan_mac_cmd cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_set_one_vlan_e2()
1001 u16 vlan = elem->cmd_data.vlan_mac.u.vlan.vlan; in bnx2x_set_one_vlan_e2()
1024 elem->cmd_data.vlan_mac.target_obj, in bnx2x_set_one_vlan_e2()
1106 struct bnx2x_exeq_elem *elem) in bnx2x_exeq_get_mac() argument
1109 struct bnx2x_mac_ramrod_data *data = &elem->cmd_data.vlan_mac.u.mac; in bnx2x_exeq_get_mac()
1115 (pos->cmd_data.vlan_mac.cmd == elem->cmd_data.vlan_mac.cmd)) in bnx2x_exeq_get_mac()
1123 struct bnx2x_exeq_elem *elem) in bnx2x_exeq_get_vlan() argument
1126 struct bnx2x_vlan_ramrod_data *data = &elem->cmd_data.vlan_mac.u.vlan; in bnx2x_exeq_get_vlan()
1132 (pos->cmd_data.vlan_mac.cmd == elem->cmd_data.vlan_mac.cmd)) in bnx2x_exeq_get_vlan()
1153 struct bnx2x_exeq_elem *elem) in bnx2x_validate_vlan_mac_add() argument
1160 rc = o->check_add(bp, o, &elem->cmd_data.vlan_mac.u); in bnx2x_validate_vlan_mac_add()
1169 if (exeq->get(exeq, elem)) { in bnx2x_validate_vlan_mac_add()
1180 &elem->cmd_data.vlan_mac.vlan_mac_flags) || in bnx2x_validate_vlan_mac_add()
1201 struct bnx2x_exeq_elem *elem) in bnx2x_validate_vlan_mac_del() argument
1211 pos = o->check_del(bp, o, &elem->cmd_data.vlan_mac.u); in bnx2x_validate_vlan_mac_del()
1220 memcpy(&query_elem, elem, sizeof(query_elem)); in bnx2x_validate_vlan_mac_del()
1230 if (exeq->get(exeq, elem)) { in bnx2x_validate_vlan_mac_del()
1237 &elem->cmd_data.vlan_mac.vlan_mac_flags) || in bnx2x_validate_vlan_mac_del()
1260 struct bnx2x_exeq_elem *elem) in bnx2x_validate_vlan_mac_move() argument
1263 struct bnx2x_vlan_mac_obj *dest_o = elem->cmd_data.vlan_mac.target_obj; in bnx2x_validate_vlan_mac_move()
1272 &elem->cmd_data.vlan_mac.u)) { in bnx2x_validate_vlan_mac_move()
1281 memcpy(&query_elem, elem, sizeof(query_elem)); in bnx2x_validate_vlan_mac_move()
1291 if (src_exeq->get(src_exeq, elem)) { in bnx2x_validate_vlan_mac_move()
1305 &elem->cmd_data.vlan_mac.vlan_mac_flags) || in bnx2x_validate_vlan_mac_move()
1310 &elem->cmd_data.vlan_mac.vlan_mac_flags) || in bnx2x_validate_vlan_mac_move()
1322 struct bnx2x_exeq_elem *elem) in bnx2x_validate_vlan_mac() argument
1324 switch (elem->cmd_data.vlan_mac.cmd) { in bnx2x_validate_vlan_mac()
1326 return bnx2x_validate_vlan_mac_add(bp, qo, elem); in bnx2x_validate_vlan_mac()
1328 return bnx2x_validate_vlan_mac_del(bp, qo, elem); in bnx2x_validate_vlan_mac()
1330 return bnx2x_validate_vlan_mac_move(bp, qo, elem); in bnx2x_validate_vlan_mac()
1338 struct bnx2x_exeq_elem *elem) in bnx2x_remove_vlan_mac() argument
1344 &elem->cmd_data.vlan_mac.vlan_mac_flags)) in bnx2x_remove_vlan_mac()
1347 switch (elem->cmd_data.vlan_mac.cmd) { in bnx2x_remove_vlan_mac()
1479 struct bnx2x_exeq_elem *elem) in bnx2x_optimize_vlan_mac() argument
1485 memcpy(&query, elem, sizeof(query)); in bnx2x_optimize_vlan_mac()
1487 switch (elem->cmd_data.vlan_mac.cmd) { in bnx2x_optimize_vlan_mac()
1517 (elem->cmd_data.vlan_mac.cmd == BNX2X_VLAN_MAC_ADD) ? in bnx2x_optimize_vlan_mac()
1542 struct bnx2x_exeq_elem *elem, in bnx2x_vlan_mac_get_registry_elem() argument
1546 enum bnx2x_vlan_mac_cmd cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_vlan_mac_get_registry_elem()
1569 memcpy(&reg_elem->u, &elem->cmd_data.vlan_mac.u, in bnx2x_vlan_mac_get_registry_elem()
1574 elem->cmd_data.vlan_mac.vlan_mac_flags; in bnx2x_vlan_mac_get_registry_elem()
1576 reg_elem = o->check_del(bp, o, &elem->cmd_data.vlan_mac.u); in bnx2x_vlan_mac_get_registry_elem()
1597 struct bnx2x_exeq_elem *elem; in bnx2x_execute_vlan_mac() local
1616 list_for_each_entry(elem, exe_chunk, link) { in bnx2x_execute_vlan_mac()
1617 cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_execute_vlan_mac()
1622 cam_obj = elem->cmd_data.vlan_mac.target_obj; in bnx2x_execute_vlan_mac()
1627 elem, restore, in bnx2x_execute_vlan_mac()
1641 o->set_one_rule(bp, o, elem, idx, in bnx2x_execute_vlan_mac()
1667 list_for_each_entry(elem, exe_chunk, link) { in bnx2x_execute_vlan_mac()
1668 cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_execute_vlan_mac()
1672 &elem->cmd_data.vlan_mac.u); in bnx2x_execute_vlan_mac()
1691 list_for_each_entry(elem, exe_chunk, link) { in bnx2x_execute_vlan_mac()
1692 cmd = elem->cmd_data.vlan_mac.cmd; in bnx2x_execute_vlan_mac()
1695 cam_obj = elem->cmd_data.vlan_mac.target_obj; in bnx2x_execute_vlan_mac()
1704 &elem->cmd_data.vlan_mac.u); in bnx2x_execute_vlan_mac()
1719 struct bnx2x_exeq_elem *elem; in bnx2x_vlan_mac_push_new_cmd() local
1724 elem = bnx2x_exe_queue_alloc_elem(bp); in bnx2x_vlan_mac_push_new_cmd()
1725 if (!elem) in bnx2x_vlan_mac_push_new_cmd()
1731 elem->cmd_len = 2; in bnx2x_vlan_mac_push_new_cmd()
1734 elem->cmd_len = 1; in bnx2x_vlan_mac_push_new_cmd()
1738 memcpy(&elem->cmd_data.vlan_mac, &p->user_req, sizeof(p->user_req)); in bnx2x_vlan_mac_push_new_cmd()
1741 return bnx2x_exe_queue_add(bp, &o->exe_queue, elem, restore); in bnx2x_vlan_mac_push_new_cmd()
2908 u64 elem; in bnx2x_mcast_refresh_registry_e2() local
2911 elem = o->registry.aprox_match.vec[i]; in bnx2x_mcast_refresh_registry_e2()
2912 for (; elem; cnt++) in bnx2x_mcast_refresh_registry_e2()
2913 elem &= elem - 1; in bnx2x_mcast_refresh_registry_e2()
3263 struct bnx2x_mcast_mac_elem *elem; in bnx2x_mcast_handle_restore_cmd_e1() local
3268 list_for_each_entry(elem, &o->registry.exact_match.macs, link) { in bnx2x_mcast_handle_restore_cmd_e1()
3269 cfg_data.mac = &elem->mac[0]; in bnx2x_mcast_handle_restore_cmd_e1()
3367 struct bnx2x_mcast_mac_elem *elem; in bnx2x_mcast_refresh_registry_e1() local
3382 elem = kcalloc(len, sizeof(*elem), GFP_ATOMIC); in bnx2x_mcast_refresh_registry_e1()
3383 if (!elem) { in bnx2x_mcast_refresh_registry_e1()
3388 for (i = 0; i < len; i++, elem++) { in bnx2x_mcast_refresh_registry_e1()
3393 elem->mac); in bnx2x_mcast_refresh_registry_e1()
3395 elem->mac); in bnx2x_mcast_refresh_registry_e1()
3396 list_add_tail(&elem->link, in bnx2x_mcast_refresh_registry_e1()
3400 elem = list_first_entry(&o->registry.exact_match.macs, in bnx2x_mcast_refresh_registry_e1()
3403 kfree(elem); in bnx2x_mcast_refresh_registry_e1()