Lines Matching refs:reg_elem

1734 	struct bnx2x_vlan_mac_registry_elem *reg_elem;  in bnx2x_vlan_mac_get_registry_elem()  local
1739 reg_elem = kzalloc(sizeof(*reg_elem), GFP_ATOMIC); in bnx2x_vlan_mac_get_registry_elem()
1740 if (!reg_elem) in bnx2x_vlan_mac_get_registry_elem()
1744 if (!o->get_cam_offset(o, &reg_elem->cam_offset)) { in bnx2x_vlan_mac_get_registry_elem()
1749 kfree(reg_elem); in bnx2x_vlan_mac_get_registry_elem()
1753 DP(BNX2X_MSG_SP, "Got cam offset %d\n", reg_elem->cam_offset); in bnx2x_vlan_mac_get_registry_elem()
1756 memcpy(&reg_elem->u, &elem->cmd_data.vlan_mac.u, in bnx2x_vlan_mac_get_registry_elem()
1757 sizeof(reg_elem->u)); in bnx2x_vlan_mac_get_registry_elem()
1760 reg_elem->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()
1765 *re = reg_elem; in bnx2x_vlan_mac_get_registry_elem()
1790 struct bnx2x_vlan_mac_registry_elem *reg_elem; in bnx2x_execute_vlan_mac() local
1815 &reg_elem); in bnx2x_execute_vlan_mac()
1819 WARN_ON(!reg_elem); in bnx2x_execute_vlan_mac()
1825 list_add(&reg_elem->link, &cam_obj->head); in bnx2x_execute_vlan_mac()
1829 reg_elem->cam_offset); in bnx2x_execute_vlan_mac()
1858 reg_elem = o->check_del(bp, o, in bnx2x_execute_vlan_mac()
1861 WARN_ON(!reg_elem); in bnx2x_execute_vlan_mac()
1863 o->put_cam_offset(o, reg_elem->cam_offset); in bnx2x_execute_vlan_mac()
1864 list_del(&reg_elem->link); in bnx2x_execute_vlan_mac()
1865 kfree(reg_elem); in bnx2x_execute_vlan_mac()
1890 reg_elem = o->check_del(bp, cam_obj, in bnx2x_execute_vlan_mac()
1892 if (reg_elem) { in bnx2x_execute_vlan_mac()
1893 list_del(&reg_elem->link); in bnx2x_execute_vlan_mac()
1894 kfree(reg_elem); in bnx2x_execute_vlan_mac()