rec_index 391 drivers/net/ethernet/mellanox/mlxsw/reg.h static inline void mlxsw_reg_sfd_rec_pack(char *payload, int rec_index, rec_index 398 drivers/net/ethernet/mellanox/mlxsw/reg.h if (rec_index >= num_rec) rec_index 399 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_num_rec_set(payload, rec_index + 1); rec_index 400 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_rec_swid_set(payload, rec_index, 0); rec_index 401 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_rec_type_set(payload, rec_index, rec_type); rec_index 402 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_rec_mac_memcpy_to(payload, rec_index, mac); rec_index 403 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_rec_action_set(payload, rec_index, action); rec_index 406 drivers/net/ethernet/mellanox/mlxsw/reg.h static inline void mlxsw_reg_sfd_uc_pack(char *payload, int rec_index, rec_index 412 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_rec_pack(payload, rec_index, rec_index 414 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_rec_policy_set(payload, rec_index, policy); rec_index 415 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_uc_sub_port_set(payload, rec_index, 0); rec_index 416 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_uc_fid_vid_set(payload, rec_index, fid_vid); rec_index 417 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_uc_system_port_set(payload, rec_index, local_port); rec_index 420 drivers/net/ethernet/mellanox/mlxsw/reg.h static inline void mlxsw_reg_sfd_uc_unpack(char *payload, int rec_index, rec_index 424 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_rec_mac_memcpy_from(payload, rec_index, mac); rec_index 425 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_fid_vid = mlxsw_reg_sfd_uc_fid_vid_get(payload, rec_index); rec_index 426 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_local_port = mlxsw_reg_sfd_uc_system_port_get(payload, rec_index); rec_index 465 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_uc_lag_pack(char *payload, int rec_index, rec_index 471 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_rec_pack(payload, rec_index, rec_index 474 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_rec_policy_set(payload, rec_index, policy); rec_index 475 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_uc_lag_sub_port_set(payload, rec_index, 0); rec_index 476 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_uc_lag_fid_vid_set(payload, rec_index, fid_vid); rec_index 477 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_uc_lag_lag_vid_set(payload, rec_index, lag_vid); rec_index 478 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_uc_lag_lag_id_set(payload, rec_index, lag_id); rec_index 481 drivers/net/ethernet/mellanox/mlxsw/reg.h static inline void mlxsw_reg_sfd_uc_lag_unpack(char *payload, int rec_index, rec_index 485 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_rec_mac_memcpy_from(payload, rec_index, mac); rec_index 486 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_vid = mlxsw_reg_sfd_uc_lag_fid_vid_get(payload, rec_index); rec_index 487 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_lag_id = mlxsw_reg_sfd_uc_lag_lag_id_get(payload, rec_index); rec_index 518 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_mc_pack(char *payload, int rec_index, rec_index 522 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_rec_pack(payload, rec_index, rec_index 524 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_mc_pgi_set(payload, rec_index, 0x1FFF); rec_index 525 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_mc_fid_vid_set(payload, rec_index, fid_vid); rec_index 526 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_mc_mid_set(payload, rec_index, mid); rec_index 568 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_uc_tunnel_pack(char *payload, int rec_index, rec_index 574 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_rec_pack(payload, rec_index, rec_index 577 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_rec_policy_set(payload, rec_index, policy); rec_index 578 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_uc_tunnel_uip_msb_set(payload, rec_index, uip >> 24); rec_index 579 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_uc_tunnel_uip_lsb_set(payload, rec_index, uip); rec_index 580 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_uc_tunnel_fid_set(payload, rec_index, fid); rec_index 581 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfd_uc_tunnel_protocol_set(payload, rec_index, proto); rec_index 686 drivers/net/ethernet/mellanox/mlxsw/reg.h static inline void mlxsw_reg_sfn_mac_unpack(char *payload, int rec_index, rec_index 690 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfn_rec_mac_memcpy_from(payload, rec_index, mac); rec_index 691 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_vid = mlxsw_reg_sfn_mac_fid_get(payload, rec_index); rec_index 692 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_local_port = mlxsw_reg_sfn_mac_system_port_get(payload, rec_index); rec_index 702 drivers/net/ethernet/mellanox/mlxsw/reg.h static inline void mlxsw_reg_sfn_mac_lag_unpack(char *payload, int rec_index, rec_index 706 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfn_rec_mac_memcpy_from(payload, rec_index, mac); rec_index 707 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_vid = mlxsw_reg_sfn_mac_fid_get(payload, rec_index); rec_index 708 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_lag_id = mlxsw_reg_sfn_mac_lag_lag_id_get(payload, rec_index); rec_index 757 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfn_uc_tunnel_unpack(char *payload, int rec_index, char *mac, rec_index 763 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sfn_rec_mac_memcpy_from(payload, rec_index, mac); rec_index 764 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_fid = mlxsw_reg_sfn_mac_fid_get(payload, rec_index); rec_index 765 drivers/net/ethernet/mellanox/mlxsw/reg.h uip_msb = mlxsw_reg_sfn_uc_tunnel_uip_msb_get(payload, rec_index); rec_index 766 drivers/net/ethernet/mellanox/mlxsw/reg.h uip_lsb = mlxsw_reg_sfn_uc_tunnel_uip_lsb_get(payload, rec_index); rec_index 768 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_proto = mlxsw_reg_sfn_uc_tunnel_protocol_get(payload, rec_index); rec_index 3161 drivers/net/ethernet/mellanox/mlxsw/reg.h static inline void mlxsw_reg_peabfe_rec_pack(char *payload, int rec_index, rec_index 3166 drivers/net/ethernet/mellanox/mlxsw/reg.h if (rec_index >= num_rec) rec_index 3167 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_peabfe_size_set(payload, rec_index + 1); rec_index 3168 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_peabfe_bf_entry_state_set(payload, rec_index, state); rec_index 3169 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_peabfe_bf_entry_bank_set(payload, rec_index, bank); rec_index 3170 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_peabfe_bf_entry_index_set(payload, rec_index, bf_index); rec_index 3221 drivers/net/ethernet/mellanox/mlxsw/reg.h static inline void mlxsw_reg_iedr_rec_pack(char *payload, int rec_index, rec_index 3227 drivers/net/ethernet/mellanox/mlxsw/reg.h if (rec_index >= num_rec) rec_index 3228 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_iedr_num_rec_set(payload, rec_index + 1); rec_index 3229 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_iedr_rec_type_set(payload, rec_index, rec_type); rec_index 3230 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_iedr_rec_size_set(payload, rec_index, rec_size); rec_index 3231 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_iedr_rec_index_start_set(payload, rec_index, rec_index_start); rec_index 7436 drivers/net/ethernet/mellanox/mlxsw/reg.h int rec_index, u16 *p_rif, rec_index 7439 drivers/net/ethernet/mellanox/mlxsw/reg.h *p_rif = mlxsw_reg_rauhtd_ipv6_ent_rif_get(payload, rec_index); rec_index 7440 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_rauhtd_ipv6_ent_dip_memcpy_from(payload, rec_index, p_dip); rec_index 10421 drivers/net/ethernet/mellanox/mlxsw/reg.h static inline void mlxsw_reg_sbsr_rec_unpack(char *payload, int rec_index, rec_index 10426 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sbsr_rec_buff_occupancy_get(payload, rec_index); rec_index 10428 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sbsr_rec_max_buff_occupancy_get(payload, rec_index); rec_index 1197 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c int rec_index = 0; rec_index 1216 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c mlxsw_reg_sbsr_rec_unpack(sbsr_pl, rec_index++, rec_index 1230 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c mlxsw_reg_sbsr_rec_unpack(sbsr_pl, rec_index++, rec_index 2130 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c int rec_index) rec_index 2137 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c mlxsw_reg_rauhtd_ent_ipv6_unpack(rauhtd_pl, rec_index, &rif, rec_index 2157 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c int rec_index) rec_index 2164 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c int rec_index) rec_index 2170 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c rec_index); rec_index 2178 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c ent_index = rec_index * MLXSW_REG_RAUHTD_IPV4_ENT_PER_REC + i; rec_index 2187 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c int rec_index) rec_index 2191 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c rec_index); rec_index 2195 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c char *rauhtd_pl, int rec_index) rec_index 2197 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c switch (mlxsw_reg_rauhtd_rec_type_get(rauhtd_pl, rec_index)) { rec_index 2200 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c rec_index); rec_index 2204 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c rec_index); rec_index 2450 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c char *sfn_pl, int rec_index, rec_index 2464 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c mlxsw_reg_sfn_mac_unpack(sfn_pl, rec_index, mac, &fid, &local_port); rec_index 2511 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c char *sfn_pl, int rec_index, rec_index 2526 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c mlxsw_reg_sfn_mac_lag_unpack(sfn_pl, rec_index, mac, &fid, &lag_id); rec_index 2627 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c int rec_index, rec_index 2641 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c mlxsw_reg_sfn_uc_tunnel_unpack(sfn_pl, rec_index, mac, &fid_index, rec_index 2691 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c char *sfn_pl, int rec_index) rec_index 2693 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c switch (mlxsw_reg_sfn_rec_type_get(sfn_pl, rec_index)) { rec_index 2696 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c rec_index, true); rec_index 2700 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c rec_index, false); rec_index 2704 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c rec_index, true); rec_index 2708 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c rec_index, false); rec_index 2712 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c rec_index, true); rec_index 2716 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c rec_index, false);