Lines Matching refs:rec_index

390 static inline void mlxsw_reg_sfd_rec_pack(char *payload, int rec_index,  in mlxsw_reg_sfd_rec_pack()  argument
397 if (rec_index >= num_rec) in mlxsw_reg_sfd_rec_pack()
398 mlxsw_reg_sfd_num_rec_set(payload, rec_index + 1); in mlxsw_reg_sfd_rec_pack()
399 mlxsw_reg_sfd_rec_swid_set(payload, rec_index, 0); in mlxsw_reg_sfd_rec_pack()
400 mlxsw_reg_sfd_rec_type_set(payload, rec_index, rec_type); in mlxsw_reg_sfd_rec_pack()
401 mlxsw_reg_sfd_rec_mac_memcpy_to(payload, rec_index, mac); in mlxsw_reg_sfd_rec_pack()
402 mlxsw_reg_sfd_rec_action_set(payload, rec_index, action); in mlxsw_reg_sfd_rec_pack()
405 static inline void mlxsw_reg_sfd_uc_pack(char *payload, int rec_index, in mlxsw_reg_sfd_uc_pack() argument
411 mlxsw_reg_sfd_rec_pack(payload, rec_index, in mlxsw_reg_sfd_uc_pack()
413 mlxsw_reg_sfd_rec_policy_set(payload, rec_index, policy); in mlxsw_reg_sfd_uc_pack()
414 mlxsw_reg_sfd_uc_sub_port_set(payload, rec_index, 0); in mlxsw_reg_sfd_uc_pack()
415 mlxsw_reg_sfd_uc_fid_vid_set(payload, rec_index, fid_vid); in mlxsw_reg_sfd_uc_pack()
416 mlxsw_reg_sfd_uc_system_port_set(payload, rec_index, local_port); in mlxsw_reg_sfd_uc_pack()
419 static inline void mlxsw_reg_sfd_uc_unpack(char *payload, int rec_index, in mlxsw_reg_sfd_uc_unpack() argument
423 mlxsw_reg_sfd_rec_mac_memcpy_from(payload, rec_index, mac); in mlxsw_reg_sfd_uc_unpack()
424 *p_fid_vid = mlxsw_reg_sfd_uc_fid_vid_get(payload, rec_index); in mlxsw_reg_sfd_uc_unpack()
425 *p_local_port = mlxsw_reg_sfd_uc_system_port_get(payload, rec_index); in mlxsw_reg_sfd_uc_unpack()
464 mlxsw_reg_sfd_uc_lag_pack(char *payload, int rec_index, in mlxsw_reg_sfd_uc_lag_pack() argument
470 mlxsw_reg_sfd_rec_pack(payload, rec_index, in mlxsw_reg_sfd_uc_lag_pack()
473 mlxsw_reg_sfd_rec_policy_set(payload, rec_index, policy); in mlxsw_reg_sfd_uc_lag_pack()
474 mlxsw_reg_sfd_uc_lag_sub_port_set(payload, rec_index, 0); in mlxsw_reg_sfd_uc_lag_pack()
475 mlxsw_reg_sfd_uc_lag_fid_vid_set(payload, rec_index, fid_vid); in mlxsw_reg_sfd_uc_lag_pack()
476 mlxsw_reg_sfd_uc_lag_lag_vid_set(payload, rec_index, lag_vid); in mlxsw_reg_sfd_uc_lag_pack()
477 mlxsw_reg_sfd_uc_lag_lag_id_set(payload, rec_index, lag_id); in mlxsw_reg_sfd_uc_lag_pack()
480 static inline void mlxsw_reg_sfd_uc_lag_unpack(char *payload, int rec_index, in mlxsw_reg_sfd_uc_lag_unpack() argument
484 mlxsw_reg_sfd_rec_mac_memcpy_from(payload, rec_index, mac); in mlxsw_reg_sfd_uc_lag_unpack()
485 *p_vid = mlxsw_reg_sfd_uc_lag_fid_vid_get(payload, rec_index); in mlxsw_reg_sfd_uc_lag_unpack()
486 *p_lag_id = mlxsw_reg_sfd_uc_lag_lag_id_get(payload, rec_index); in mlxsw_reg_sfd_uc_lag_unpack()
517 mlxsw_reg_sfd_mc_pack(char *payload, int rec_index, in mlxsw_reg_sfd_mc_pack() argument
521 mlxsw_reg_sfd_rec_pack(payload, rec_index, in mlxsw_reg_sfd_mc_pack()
523 mlxsw_reg_sfd_mc_pgi_set(payload, rec_index, 0x1FFF); in mlxsw_reg_sfd_mc_pack()
524 mlxsw_reg_sfd_mc_fid_vid_set(payload, rec_index, fid_vid); in mlxsw_reg_sfd_mc_pack()
525 mlxsw_reg_sfd_mc_mid_set(payload, rec_index, mid); in mlxsw_reg_sfd_mc_pack()
626 static inline void mlxsw_reg_sfn_mac_unpack(char *payload, int rec_index, in mlxsw_reg_sfn_mac_unpack() argument
630 mlxsw_reg_sfn_rec_mac_memcpy_from(payload, rec_index, mac); in mlxsw_reg_sfn_mac_unpack()
631 *p_vid = mlxsw_reg_sfn_mac_fid_get(payload, rec_index); in mlxsw_reg_sfn_mac_unpack()
632 *p_local_port = mlxsw_reg_sfn_mac_system_port_get(payload, rec_index); in mlxsw_reg_sfn_mac_unpack()
642 static inline void mlxsw_reg_sfn_mac_lag_unpack(char *payload, int rec_index, in mlxsw_reg_sfn_mac_lag_unpack() argument
646 mlxsw_reg_sfn_rec_mac_memcpy_from(payload, rec_index, mac); in mlxsw_reg_sfn_mac_lag_unpack()
647 *p_vid = mlxsw_reg_sfn_mac_fid_get(payload, rec_index); in mlxsw_reg_sfn_mac_lag_unpack()
648 *p_lag_id = mlxsw_reg_sfn_mac_lag_lag_id_get(payload, rec_index); in mlxsw_reg_sfn_mac_lag_unpack()
2972 static inline void mlxsw_reg_iedr_rec_pack(char *payload, int rec_index, in mlxsw_reg_iedr_rec_pack() argument
2978 if (rec_index >= num_rec) in mlxsw_reg_iedr_rec_pack()
2979 mlxsw_reg_iedr_num_rec_set(payload, rec_index + 1); in mlxsw_reg_iedr_rec_pack()
2980 mlxsw_reg_iedr_rec_type_set(payload, rec_index, rec_type); in mlxsw_reg_iedr_rec_pack()
2981 mlxsw_reg_iedr_rec_size_set(payload, rec_index, rec_size); in mlxsw_reg_iedr_rec_pack()
2982 mlxsw_reg_iedr_rec_index_start_set(payload, rec_index, rec_index_start); in mlxsw_reg_iedr_rec_pack()
6765 int rec_index, u16 *p_rif, in mlxsw_reg_rauhtd_ent_ipv6_unpack() argument
6768 *p_rif = mlxsw_reg_rauhtd_ipv6_ent_rif_get(payload, rec_index); in mlxsw_reg_rauhtd_ent_ipv6_unpack()
6769 mlxsw_reg_rauhtd_ipv6_ent_dip_memcpy_from(payload, rec_index, p_dip); in mlxsw_reg_rauhtd_ent_ipv6_unpack()
8672 static inline void mlxsw_reg_sbsr_rec_unpack(char *payload, int rec_index, in mlxsw_reg_sbsr_rec_unpack() argument
8677 mlxsw_reg_sbsr_rec_buff_occupancy_get(payload, rec_index); in mlxsw_reg_sbsr_rec_unpack()
8679 mlxsw_reg_sbsr_rec_max_buff_occupancy_get(payload, rec_index); in mlxsw_reg_sbsr_rec_unpack()