Lines Matching full:mbox

93 	struct mbox *mbox = &pfvf->mbox;  in cn10k_mcs_alloc_rsrc()  local
98 mutex_lock(&mbox->lock); in cn10k_mcs_alloc_rsrc()
100 req = otx2_mbox_alloc_msg_mcs_alloc_resources(mbox); in cn10k_mcs_alloc_rsrc()
108 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_alloc_rsrc()
112 rsp = (struct mcs_alloc_rsrc_rsp *)otx2_mbox_get_rsp(&pfvf->mbox.mbox, in cn10k_mcs_alloc_rsrc()
138 mutex_unlock(&mbox->lock); in cn10k_mcs_alloc_rsrc()
144 mutex_unlock(&mbox->lock); in cn10k_mcs_alloc_rsrc()
152 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_free_rsrc() local
155 mutex_lock(&mbox->lock); in cn10k_mcs_free_rsrc()
157 req = otx2_mbox_alloc_msg_mcs_free_resources(mbox); in cn10k_mcs_free_rsrc()
167 if (otx2_sync_mbox_msg(&pfvf->mbox)) in cn10k_mcs_free_rsrc()
170 mutex_unlock(&mbox->lock); in cn10k_mcs_free_rsrc()
176 mutex_unlock(&mbox->lock); in cn10k_mcs_free_rsrc()
203 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_rx_secy() local
207 mutex_lock(&mbox->lock); in cn10k_mcs_write_rx_secy()
209 req = otx2_mbox_alloc_msg_mcs_secy_plcy_write(mbox); in cn10k_mcs_write_rx_secy()
229 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_write_rx_secy()
232 mutex_unlock(&mbox->lock); in cn10k_mcs_write_rx_secy()
241 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_rx_flowid() local
244 mutex_lock(&mbox->lock); in cn10k_mcs_write_rx_flowid()
246 req = otx2_mbox_alloc_msg_mcs_flowid_entry_write(mbox); in cn10k_mcs_write_rx_flowid()
268 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_write_rx_flowid()
271 mutex_unlock(&mbox->lock); in cn10k_mcs_write_rx_flowid()
280 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_sc_cam() local
283 mutex_lock(&mbox->lock); in cn10k_mcs_write_sc_cam()
285 sc_req = otx2_mbox_alloc_msg_mcs_rx_sc_cam_write(mbox); in cn10k_mcs_write_sc_cam()
295 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_write_sc_cam()
298 mutex_unlock(&mbox->lock); in cn10k_mcs_write_sc_cam()
310 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_rx_sa_plcy() local
314 mutex_lock(&mbox->lock); in cn10k_mcs_write_rx_sa_plcy()
316 plcy_req = otx2_mbox_alloc_msg_mcs_sa_plcy_write(mbox); in cn10k_mcs_write_rx_sa_plcy()
322 map_req = otx2_mbox_alloc_msg_mcs_rx_sc_sa_map_write(mbox); in cn10k_mcs_write_rx_sa_plcy()
324 otx2_mbox_reset(&mbox->mbox, 0); in cn10k_mcs_write_rx_sa_plcy()
345 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_write_rx_sa_plcy()
348 mutex_unlock(&mbox->lock); in cn10k_mcs_write_rx_sa_plcy()
357 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_rx_sa_pn() local
360 mutex_lock(&mbox->lock); in cn10k_mcs_write_rx_sa_pn()
362 req = otx2_mbox_alloc_msg_mcs_pn_table_write(mbox); in cn10k_mcs_write_rx_sa_pn()
372 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_write_rx_sa_pn()
375 mutex_unlock(&mbox->lock); in cn10k_mcs_write_rx_sa_pn()
384 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_tx_secy() local
394 mutex_lock(&mbox->lock); in cn10k_mcs_write_tx_secy()
396 req = otx2_mbox_alloc_msg_mcs_secy_plcy_write(mbox); in cn10k_mcs_write_tx_secy()
436 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_write_tx_secy()
439 mutex_unlock(&mbox->lock); in cn10k_mcs_write_tx_secy()
448 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_tx_flowid() local
452 mutex_lock(&mbox->lock); in cn10k_mcs_write_tx_flowid()
454 req = otx2_mbox_alloc_msg_mcs_flowid_entry_write(mbox); in cn10k_mcs_write_tx_flowid()
482 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_write_tx_flowid()
485 mutex_unlock(&mbox->lock); in cn10k_mcs_write_tx_flowid()
495 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_link_tx_sa2sc() local
502 mutex_lock(&mbox->lock); in cn10k_mcs_link_tx_sa2sc()
504 map_req = otx2_mbox_alloc_msg_mcs_tx_sc_sa_map_write(mbox); in cn10k_mcs_link_tx_sa2sc()
506 otx2_mbox_reset(&mbox->mbox, 0); in cn10k_mcs_link_tx_sa2sc()
516 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_link_tx_sa2sc()
519 mutex_unlock(&mbox->lock); in cn10k_mcs_link_tx_sa2sc()
530 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_write_tx_sa_plcy() local
534 mutex_lock(&mbox->lock); in cn10k_mcs_write_tx_sa_plcy()
536 plcy_req = otx2_mbox_alloc_msg_mcs_sa_plcy_write(mbox); in cn10k_mcs_write_tx_sa_plcy()
552 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_write_tx_sa_plcy()
555 mutex_unlock(&mbox->lock); in cn10k_mcs_write_tx_sa_plcy()
564 struct mbox *mbox = &pfvf->mbox; in cn10k_write_tx_sa_pn() local
567 mutex_lock(&mbox->lock); in cn10k_write_tx_sa_pn()
569 req = otx2_mbox_alloc_msg_mcs_pn_table_write(mbox); in cn10k_write_tx_sa_pn()
579 ret = otx2_sync_mbox_msg(mbox); in cn10k_write_tx_sa_pn()
582 mutex_unlock(&mbox->lock); in cn10k_write_tx_sa_pn()
590 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_ena_dis_flowid() local
593 mutex_lock(&mbox->lock); in cn10k_mcs_ena_dis_flowid()
595 req = otx2_mbox_alloc_msg_mcs_flowid_ena_entry(mbox); in cn10k_mcs_ena_dis_flowid()
605 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_ena_dis_flowid()
608 mutex_unlock(&mbox->lock); in cn10k_mcs_ena_dis_flowid()
617 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_sa_stats() local
622 mutex_lock(&mbox->lock); in cn10k_mcs_sa_stats()
624 req = otx2_mbox_alloc_msg_mcs_get_sa_stats(mbox); in cn10k_mcs_sa_stats()
636 clear_req = otx2_mbox_alloc_msg_mcs_clear_stats(mbox); in cn10k_mcs_sa_stats()
646 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_sa_stats()
650 rsp = (struct mcs_sa_stats *)otx2_mbox_get_rsp(&pfvf->mbox.mbox, in cn10k_mcs_sa_stats()
659 mutex_unlock(&mbox->lock); in cn10k_mcs_sa_stats()
663 mutex_unlock(&mbox->lock); in cn10k_mcs_sa_stats()
672 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_sc_stats() local
677 mutex_lock(&mbox->lock); in cn10k_mcs_sc_stats()
679 req = otx2_mbox_alloc_msg_mcs_get_sc_stats(mbox); in cn10k_mcs_sc_stats()
691 clear_req = otx2_mbox_alloc_msg_mcs_clear_stats(mbox); in cn10k_mcs_sc_stats()
701 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_sc_stats()
705 rsp = (struct mcs_sc_stats *)otx2_mbox_get_rsp(&pfvf->mbox.mbox, in cn10k_mcs_sc_stats()
714 mutex_unlock(&mbox->lock); in cn10k_mcs_sc_stats()
718 mutex_unlock(&mbox->lock); in cn10k_mcs_sc_stats()
727 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_secy_stats() local
732 mutex_lock(&mbox->lock); in cn10k_mcs_secy_stats()
734 req = otx2_mbox_alloc_msg_mcs_get_secy_stats(mbox); in cn10k_mcs_secy_stats()
746 clear_req = otx2_mbox_alloc_msg_mcs_clear_stats(mbox); in cn10k_mcs_secy_stats()
756 ret = otx2_sync_mbox_msg(mbox); in cn10k_mcs_secy_stats()
760 rsp = (struct mcs_secy_stats *)otx2_mbox_get_rsp(&pfvf->mbox.mbox, in cn10k_mcs_secy_stats()
769 mutex_unlock(&mbox->lock); in cn10k_mcs_secy_stats()
773 mutex_unlock(&mbox->lock); in cn10k_mcs_secy_stats()
1624 struct mbox *mbox = &pfvf->mbox; in cn10k_mcs_init() local
1642 mutex_lock(&mbox->lock); in cn10k_mcs_init()
1644 req = otx2_mbox_alloc_msg_mcs_intr_cfg(mbox); in cn10k_mcs_init()
1650 if (otx2_sync_mbox_msg(mbox)) in cn10k_mcs_init()
1653 mutex_unlock(&mbox->lock); in cn10k_mcs_init()
1658 mutex_unlock(&mbox->lock); in cn10k_mcs_init()