Lines Matching refs:rec_index

357 static inline void mlxsw_reg_sfd_rec_pack(char *payload, int rec_index,  in mlxsw_reg_sfd_rec_pack()  argument
364 if (rec_index >= num_rec) in mlxsw_reg_sfd_rec_pack()
365 mlxsw_reg_sfd_num_rec_set(payload, rec_index + 1); in mlxsw_reg_sfd_rec_pack()
366 mlxsw_reg_sfd_rec_swid_set(payload, rec_index, 0); in mlxsw_reg_sfd_rec_pack()
367 mlxsw_reg_sfd_rec_type_set(payload, rec_index, rec_type); in mlxsw_reg_sfd_rec_pack()
368 mlxsw_reg_sfd_rec_mac_memcpy_to(payload, rec_index, mac); in mlxsw_reg_sfd_rec_pack()
369 mlxsw_reg_sfd_rec_action_set(payload, rec_index, action); in mlxsw_reg_sfd_rec_pack()
372 static inline void mlxsw_reg_sfd_uc_pack(char *payload, int rec_index, in mlxsw_reg_sfd_uc_pack() argument
378 mlxsw_reg_sfd_rec_pack(payload, rec_index, in mlxsw_reg_sfd_uc_pack()
380 mlxsw_reg_sfd_rec_policy_set(payload, rec_index, policy); in mlxsw_reg_sfd_uc_pack()
381 mlxsw_reg_sfd_uc_sub_port_set(payload, rec_index, 0); in mlxsw_reg_sfd_uc_pack()
382 mlxsw_reg_sfd_uc_fid_vid_set(payload, rec_index, fid_vid); in mlxsw_reg_sfd_uc_pack()
383 mlxsw_reg_sfd_uc_set_vid_set(payload, rec_index, vid ? true : false); in mlxsw_reg_sfd_uc_pack()
384 mlxsw_reg_sfd_uc_vid_set(payload, rec_index, vid); in mlxsw_reg_sfd_uc_pack()
385 mlxsw_reg_sfd_uc_system_port_set(payload, rec_index, local_port); in mlxsw_reg_sfd_uc_pack()
438 mlxsw_reg_sfd_uc_lag_pack(char *payload, int rec_index, in mlxsw_reg_sfd_uc_lag_pack() argument
444 mlxsw_reg_sfd_rec_pack(payload, rec_index, in mlxsw_reg_sfd_uc_lag_pack()
447 mlxsw_reg_sfd_rec_policy_set(payload, rec_index, policy); in mlxsw_reg_sfd_uc_lag_pack()
448 mlxsw_reg_sfd_uc_lag_sub_port_set(payload, rec_index, 0); in mlxsw_reg_sfd_uc_lag_pack()
449 mlxsw_reg_sfd_uc_lag_fid_vid_set(payload, rec_index, fid_vid); in mlxsw_reg_sfd_uc_lag_pack()
450 mlxsw_reg_sfd_uc_lag_set_vid_set(payload, rec_index, true); in mlxsw_reg_sfd_uc_lag_pack()
451 mlxsw_reg_sfd_uc_lag_lag_vid_set(payload, rec_index, lag_vid); in mlxsw_reg_sfd_uc_lag_pack()
452 mlxsw_reg_sfd_uc_lag_lag_id_set(payload, rec_index, lag_id); in mlxsw_reg_sfd_uc_lag_pack()
483 mlxsw_reg_sfd_mc_pack(char *payload, int rec_index, in mlxsw_reg_sfd_mc_pack() argument
487 mlxsw_reg_sfd_rec_pack(payload, rec_index, in mlxsw_reg_sfd_mc_pack()
489 mlxsw_reg_sfd_mc_pgi_set(payload, rec_index, 0x1FFF); in mlxsw_reg_sfd_mc_pack()
490 mlxsw_reg_sfd_mc_fid_vid_set(payload, rec_index, fid_vid); in mlxsw_reg_sfd_mc_pack()
491 mlxsw_reg_sfd_mc_mid_set(payload, rec_index, mid); in mlxsw_reg_sfd_mc_pack()
533 mlxsw_reg_sfd_uc_tunnel_pack(char *payload, int rec_index, in mlxsw_reg_sfd_uc_tunnel_pack() argument
539 mlxsw_reg_sfd_rec_pack(payload, rec_index, in mlxsw_reg_sfd_uc_tunnel_pack()
542 mlxsw_reg_sfd_rec_policy_set(payload, rec_index, policy); in mlxsw_reg_sfd_uc_tunnel_pack()
543 mlxsw_reg_sfd_uc_tunnel_fid_set(payload, rec_index, fid); in mlxsw_reg_sfd_uc_tunnel_pack()
544 mlxsw_reg_sfd_uc_tunnel_protocol_set(payload, rec_index, proto); in mlxsw_reg_sfd_uc_tunnel_pack()
548 mlxsw_reg_sfd_uc_tunnel_pack4(char *payload, int rec_index, in mlxsw_reg_sfd_uc_tunnel_pack4() argument
553 mlxsw_reg_sfd_uc_tunnel_uip_msb_set(payload, rec_index, uip >> 24); in mlxsw_reg_sfd_uc_tunnel_pack4()
554 mlxsw_reg_sfd_uc_tunnel_uip_lsb_set(payload, rec_index, uip); in mlxsw_reg_sfd_uc_tunnel_pack4()
555 mlxsw_reg_sfd_uc_tunnel_pack(payload, rec_index, policy, mac, fid, in mlxsw_reg_sfd_uc_tunnel_pack4()
561 mlxsw_reg_sfd_uc_tunnel_pack6(char *payload, int rec_index, const char *mac, in mlxsw_reg_sfd_uc_tunnel_pack6() argument
565 mlxsw_reg_sfd_uc_tunnel_uip_lsb_set(payload, rec_index, uip_ptr); in mlxsw_reg_sfd_uc_tunnel_pack6()
567 mlxsw_reg_sfd_uc_tunnel_pack(payload, rec_index, in mlxsw_reg_sfd_uc_tunnel_pack6()
682 static inline void mlxsw_reg_sfn_mac_unpack(char *payload, int rec_index, in mlxsw_reg_sfn_mac_unpack() argument
686 mlxsw_reg_sfn_rec_mac_memcpy_from(payload, rec_index, mac); in mlxsw_reg_sfn_mac_unpack()
687 *p_vid = mlxsw_reg_sfn_mac_fid_get(payload, rec_index); in mlxsw_reg_sfn_mac_unpack()
688 *p_local_port = mlxsw_reg_sfn_mac_system_port_get(payload, rec_index); in mlxsw_reg_sfn_mac_unpack()
698 static inline void mlxsw_reg_sfn_mac_lag_unpack(char *payload, int rec_index, in mlxsw_reg_sfn_mac_lag_unpack() argument
702 mlxsw_reg_sfn_rec_mac_memcpy_from(payload, rec_index, mac); in mlxsw_reg_sfn_mac_lag_unpack()
703 *p_vid = mlxsw_reg_sfn_mac_fid_get(payload, rec_index); in mlxsw_reg_sfn_mac_lag_unpack()
704 *p_lag_id = mlxsw_reg_sfn_mac_lag_lag_id_get(payload, rec_index); in mlxsw_reg_sfn_mac_lag_unpack()
746 mlxsw_reg_sfn_uc_tunnel_unpack(char *payload, int rec_index, char *mac, in mlxsw_reg_sfn_uc_tunnel_unpack() argument
752 mlxsw_reg_sfn_rec_mac_memcpy_from(payload, rec_index, mac); in mlxsw_reg_sfn_uc_tunnel_unpack()
753 *p_fid = mlxsw_reg_sfn_mac_fid_get(payload, rec_index); in mlxsw_reg_sfn_uc_tunnel_unpack()
754 uip_msb = mlxsw_reg_sfn_uc_tunnel_uip_msb_get(payload, rec_index); in mlxsw_reg_sfn_uc_tunnel_unpack()
755 uip_lsb = mlxsw_reg_sfn_uc_tunnel_uip_lsb_get(payload, rec_index); in mlxsw_reg_sfn_uc_tunnel_unpack()
757 *p_proto = mlxsw_reg_sfn_uc_tunnel_protocol_get(payload, rec_index); in mlxsw_reg_sfn_uc_tunnel_unpack()
3755 static inline void mlxsw_reg_peabfe_rec_pack(char *payload, int rec_index, in mlxsw_reg_peabfe_rec_pack() argument
3760 if (rec_index >= num_rec) in mlxsw_reg_peabfe_rec_pack()
3761 mlxsw_reg_peabfe_size_set(payload, rec_index + 1); in mlxsw_reg_peabfe_rec_pack()
3762 mlxsw_reg_peabfe_bf_entry_state_set(payload, rec_index, state); in mlxsw_reg_peabfe_rec_pack()
3763 mlxsw_reg_peabfe_bf_entry_bank_set(payload, rec_index, bank); in mlxsw_reg_peabfe_rec_pack()
3764 mlxsw_reg_peabfe_bf_entry_index_set(payload, rec_index, bf_index); in mlxsw_reg_peabfe_rec_pack()
3815 static inline void mlxsw_reg_iedr_rec_pack(char *payload, int rec_index, in mlxsw_reg_iedr_rec_pack() argument
3821 if (rec_index >= num_rec) in mlxsw_reg_iedr_rec_pack()
3822 mlxsw_reg_iedr_num_rec_set(payload, rec_index + 1); in mlxsw_reg_iedr_rec_pack()
3823 mlxsw_reg_iedr_rec_type_set(payload, rec_index, rec_type); in mlxsw_reg_iedr_rec_pack()
3824 mlxsw_reg_iedr_rec_size_set(payload, rec_index, rec_size); in mlxsw_reg_iedr_rec_pack()
3825 mlxsw_reg_iedr_rec_index_start_set(payload, rec_index, rec_index_start); in mlxsw_reg_iedr_rec_pack()
8554 int rec_index, u16 *p_rif, in mlxsw_reg_rauhtd_ent_ipv6_unpack() argument
8557 *p_rif = mlxsw_reg_rauhtd_ipv6_ent_rif_get(payload, rec_index); in mlxsw_reg_rauhtd_ent_ipv6_unpack()
8558 mlxsw_reg_rauhtd_ipv6_ent_dip_memcpy_from(payload, rec_index, p_dip); in mlxsw_reg_rauhtd_ent_ipv6_unpack()
12956 static inline void mlxsw_reg_sbsr_rec_unpack(char *payload, int rec_index, in mlxsw_reg_sbsr_rec_unpack() argument
12961 mlxsw_reg_sbsr_rec_buff_occupancy_get(payload, rec_index); in mlxsw_reg_sbsr_rec_unpack()
12963 mlxsw_reg_sbsr_rec_max_buff_occupancy_get(payload, rec_index); in mlxsw_reg_sbsr_rec_unpack()