Lines Matching refs:ratr_pl

3457 					 bool force, char *ratr_pl)  in __mlxsw_sp_nexthop_eth_update()  argument
3467 mlxsw_reg_ratr_pack(ratr_pl, op, true, MLXSW_REG_RATR_TYPE_ETHERNET, in __mlxsw_sp_nexthop_eth_update()
3471 mlxsw_reg_ratr_eth_entry_pack(ratr_pl, neigh_entry->ha); in __mlxsw_sp_nexthop_eth_update()
3474 mlxsw_reg_ratr_trap_action_set(ratr_pl, in __mlxsw_sp_nexthop_eth_update()
3478 mlxsw_reg_ratr_trap_action_set(ratr_pl, in __mlxsw_sp_nexthop_eth_update()
3480 mlxsw_reg_ratr_trap_id_set(ratr_pl, MLXSW_TRAP_ID_RTR_EGRESS0); in __mlxsw_sp_nexthop_eth_update()
3487 mlxsw_reg_ratr_counter_pack(ratr_pl, nh->counter_index, true); in __mlxsw_sp_nexthop_eth_update()
3489 mlxsw_reg_ratr_counter_pack(ratr_pl, 0, false); in __mlxsw_sp_nexthop_eth_update()
3491 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ratr), ratr_pl); in __mlxsw_sp_nexthop_eth_update()
3496 char *ratr_pl) in mlxsw_sp_nexthop_eth_update() argument
3504 nh, force, ratr_pl); in mlxsw_sp_nexthop_eth_update()
3515 bool force, char *ratr_pl) in __mlxsw_sp_nexthop_ipip_update() argument
3521 force, ratr_pl); in __mlxsw_sp_nexthop_ipip_update()
3527 char *ratr_pl) in mlxsw_sp_nexthop_ipip_update() argument
3535 nh, force, ratr_pl); in mlxsw_sp_nexthop_ipip_update()
3545 char *ratr_pl) in mlxsw_sp_nexthop_update() argument
3554 force, ratr_pl); in mlxsw_sp_nexthop_update()
3557 force, ratr_pl); in mlxsw_sp_nexthop_update()
3565 char ratr_pl[MLXSW_REG_RATR_LEN]; in mlxsw_sp_nexthop_group_update() local
3582 true, ratr_pl); in mlxsw_sp_nexthop_group_update()
4414 char ratr_pl[MLXSW_REG_RATR_LEN]; in mlxsw_sp_adj_trap_entry_init() local
4423 mlxsw_reg_ratr_pack(ratr_pl, MLXSW_REG_RATR_OP_WRITE_WRITE_ENTRY, true, in mlxsw_sp_adj_trap_entry_init()
4427 mlxsw_reg_ratr_trap_action_set(ratr_pl, trap_action); in mlxsw_sp_adj_trap_entry_init()
4428 mlxsw_reg_ratr_trap_id_set(ratr_pl, MLXSW_TRAP_ID_RTR_EGRESS0); in mlxsw_sp_adj_trap_entry_init()
4429 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(ratr), ratr_pl); in mlxsw_sp_adj_trap_entry_init()
5126 u32 adj_index, char *ratr_pl) in mlxsw_sp_nexthop_obj_bucket_query() argument
5128 MLXSW_REG_ZERO(ratr, ratr_pl); in mlxsw_sp_nexthop_obj_bucket_query()
5129 mlxsw_reg_ratr_op_set(ratr_pl, MLXSW_REG_RATR_OP_QUERY_READ); in mlxsw_sp_nexthop_obj_bucket_query()
5130 mlxsw_reg_ratr_adjacency_index_low_set(ratr_pl, adj_index); in mlxsw_sp_nexthop_obj_bucket_query()
5131 mlxsw_reg_ratr_adjacency_index_high_set(ratr_pl, adj_index >> 16); in mlxsw_sp_nexthop_obj_bucket_query()
5133 return mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(ratr), ratr_pl); in mlxsw_sp_nexthop_obj_bucket_query()
5136 static int mlxsw_sp_nexthop_obj_bucket_compare(char *ratr_pl, char *ratr_pl_new) in mlxsw_sp_nexthop_obj_bucket_compare() argument
5141 mlxsw_reg_ratr_op_set(ratr_pl, MLXSW_REG_RATR_OP_QUERY_READ); in mlxsw_sp_nexthop_obj_bucket_compare()
5142 mlxsw_reg_ratr_a_set(ratr_pl, 0); in mlxsw_sp_nexthop_obj_bucket_compare()
5149 if (!memcmp(ratr_pl, ratr_pl_new, MLXSW_REG_RATR_LEN)) in mlxsw_sp_nexthop_obj_bucket_compare()
5164 char ratr_pl[MLXSW_REG_RATR_LEN]; in mlxsw_sp_nexthop_obj_bucket_adj_update() local
5176 err = mlxsw_sp_nexthop_update(mlxsw_sp, adj_index, nh, force, ratr_pl); in mlxsw_sp_nexthop_obj_bucket_adj_update()
5190 err = mlxsw_sp_nexthop_obj_bucket_compare(ratr_pl, ratr_pl_new); in mlxsw_sp_nexthop_obj_bucket_adj_update()