Lines Matching refs:pdev

11 void * lm_get_context(struct _lm_device_t *pdev, u32_t cid){  in lm_get_context()  argument
16 DbgBreakIf(cid > pdev->params.max_func_connections); in lm_get_context()
17 DbgBreakIf(pdev->context_info->array[cid].invalid != LM_CONTEXT_VALID); in lm_get_context()
20 page = cid / (pdev->params.num_context_in_page); in lm_get_context()
23 off = cid % (pdev->params.num_context_in_page); in lm_get_context()
26 …ret = (void*)((char*)pdev->vars.context_cdu_virt_addr_table[page] + (pdev->params.context_line_siz… in lm_get_context()
33 u64_t lm_get_context_phys(struct _lm_device_t *pdev, u32_t cid){ in lm_get_context_phys() argument
38 DbgBreakIf(cid > pdev->params.max_func_connections); in lm_get_context_phys()
39 DbgBreakIf(pdev->context_info->array[cid].invalid != LM_CONTEXT_VALID); in lm_get_context_phys()
42 page = cid / (pdev->params.num_context_in_page); in lm_get_context_phys()
45 off = cid % (pdev->params.num_context_in_page); in lm_get_context_phys()
48 …ret = (pdev->vars.context_cdu_phys_addr_table[page].as_u64 + (pdev->params.context_line_size * off… in lm_get_context_phys()
55 static lm_status_t lm_setup_searcher_hash_info(struct _lm_device_t *pdev) in lm_setup_searcher_hash_info() argument
64 if ( CHK_NULL(pdev) || CHK_NULL( pdev->context_info ) ) in lm_setup_searcher_hash_info()
69 context = pdev->context_info; in lm_setup_searcher_hash_info()
72 DbgBreakIf(!pdev->params.max_func_connections); in lm_setup_searcher_hash_info()
79 num_con = pdev->params.max_func_connections; in lm_setup_searcher_hash_info()
131 static lm_status_t lm_alloc_searcher_hash_info(struct _lm_device_t *pdev) in lm_alloc_searcher_hash_info() argument
138 if CHK_NULL(pdev) in lm_alloc_searcher_hash_info()
146 num_con = pdev->params.max_func_connections; in lm_alloc_searcher_hash_info()
149 hash_info = &pdev->context_info->searcher_hash; in lm_alloc_searcher_hash_info()
157 hash_info->searcher_table = mm_alloc_mem(pdev, alloc_size, mm_cli_idx); in lm_alloc_searcher_hash_info()
167 lm_status_t lm_init_cid_resc(struct _lm_device_t *pdev, u32_t cid) in lm_init_cid_resc() argument
172 if CHK_NULL(pdev) in lm_init_cid_resc()
177 cid_resc = &pdev->context_info->array[cid].cid_resc; in lm_init_cid_resc()
189 lm_sp_req_manager_init(pdev, cid); in lm_init_cid_resc()
194 lm_status_t lm_setup_context_pool(struct _lm_device_t *pdev) in lm_setup_context_pool() argument
202 if CHK_NULL(pdev) in lm_setup_context_pool()
204 DbgBreakIf(!pdev); in lm_setup_context_pool()
208 context = pdev->context_info; in lm_setup_context_pool()
216 num_con = pdev->params.max_func_connections; in lm_setup_context_pool()
227 context->proto_end [ETH_CONNECTION_TYPE] = pdev->params.max_eth_including_vfs_conns - 1; in lm_setup_context_pool()
229 … [TOE_CONNECTION_TYPE] = context->proto_start[TOE_CONNECTION_TYPE] + pdev->params.max_func_to… in lm_setup_context_pool()
231 … [RDMA_CONNECTION_TYPE] = context->proto_start[RDMA_CONNECTION_TYPE] + pdev->params.max_func_rd… in lm_setup_context_pool()
233 … [ISCSI_CONNECTION_TYPE] = context->proto_start[ISCSI_CONNECTION_TYPE] + pdev->params.max_func_is… in lm_setup_context_pool()
235 … [FCOE_CONNECTION_TYPE] = context->proto_start[FCOE_CONNECTION_TYPE] + pdev->params.max_func_fc… in lm_setup_context_pool()
236 DbgBreakIf(context->proto_end[MAX_PROTO - 1] > pdev->params.max_func_connections -1); in lm_setup_context_pool()
257 lm_init_cid_resc(pdev, j); in lm_setup_context_pool()
275 if (IS_CHANNEL_VFDEV(pdev)) { in lm_setup_context_pool()
277 …(volatile void *)((u8_t*)pdev->vars.mapped_bar_addr[BAR_0] + j*lm_vf_get_doorbell_size(pdev) + VF_… in lm_setup_context_pool()
279 context->array[j].cid_resc.reg_handle = pdev->vars.reg_handle[BAR_0]; in lm_setup_context_pool()
285 (volatile void *)((u8_t*)pdev->vars.mapped_bar_addr[BAR_1] + j*LM_DQ_CID_SIZE); in lm_setup_context_pool()
287 context->array[j].cid_resc.reg_handle = pdev->vars.reg_handle[BAR_1]; in lm_setup_context_pool()
291 return lm_setup_searcher_hash_info(pdev) ; in lm_setup_context_pool()
295 lm_status_t lm_alloc_context_pool(struct _lm_device_t *pdev){ in lm_alloc_context_pool() argument
301 if CHK_NULL(pdev) in lm_alloc_context_pool()
303 DbgBreakIf(!pdev); in lm_alloc_context_pool()
308 if ERR_IF( NULL != pdev->context_info ) in lm_alloc_context_pool()
310 DbgBreakIf( pdev->context_info != NULL ) ; in lm_alloc_context_pool()
318 num_con = pdev->params.max_func_connections ; in lm_alloc_context_pool()
321 context = mm_alloc_mem(pdev, sizeof(lm_context_info_t), mm_cli_idx); in lm_alloc_context_pool()
329 context->array = mm_alloc_mem(pdev, sizeof(struct lm_context_cookie)*num_con, mm_cli_idx); in lm_alloc_context_pool()
339 pdev->context_info = context; in lm_alloc_context_pool()
342 return lm_alloc_searcher_hash_info(pdev); in lm_alloc_context_pool()
347 void lm_release_context_pool(struct _lm_device_t *pdev){ in lm_release_context_pool() argument
353 DbgBreakIf( pdev->context_info == NULL ); in lm_release_context_pool()
356 context = pdev->context_info; in lm_release_context_pool()
357 pdev->context_info = NULL; in lm_release_context_pool()
361 for (i=0; i<(pdev->params.max_func_connections); i++ ) in lm_release_context_pool()
446 lm_status_t lm_searcher_mirror_hash_insert(struct _lm_device_t *pdev, u32_t cid, lm_4tuple_t *tuple) in lm_searcher_mirror_hash_insert() argument
456 MM_ACQUIRE_CID_LOCK(pdev); in lm_searcher_mirror_hash_insert()
458 context = pdev->context_info; in lm_searcher_mirror_hash_insert()
509 MM_RELEASE_CID_LOCK(pdev); in lm_searcher_mirror_hash_insert()
515 void lm_searcher_mirror_hash_remove(struct _lm_device_t *pdev, u32_t cid) in lm_searcher_mirror_hash_remove() argument
522 MM_ACQUIRE_CID_LOCK(pdev); in lm_searcher_mirror_hash_remove()
524 context = pdev->context_info; in lm_searcher_mirror_hash_remove()
528 DbgMessage(pdev, WARN, in lm_searcher_mirror_hash_remove()
533 MM_RELEASE_CID_LOCK(pdev); in lm_searcher_mirror_hash_remove()
563 MM_RELEASE_CID_LOCK(pdev); in lm_searcher_mirror_hash_remove()
572 lm_status_t lm_allocate_cid(struct _lm_device_t *pdev, u32_t type, void * cookie, s32_t * out_cid){ in lm_allocate_cid() argument
580 CHK_NULL(pdev) || in lm_allocate_cid()
581 CHK_NULL(pdev->context_info) || in lm_allocate_cid()
582 CHK_NULL(pdev->context_info->array) || in lm_allocate_cid()
584 ERR_IF(type >= ARRSIZE(pdev->context_info->proto_pending)) ) in lm_allocate_cid()
588 DbgBreakIf(!pdev); in lm_allocate_cid()
589 DbgBreakIf(!pdev->context_info); in lm_allocate_cid()
590 DbgBreakIf(!pdev->context_info->array); in lm_allocate_cid()
592 DbgBreakIf(type >= ARRSIZE(pdev->context_info->proto_pending)) ; in lm_allocate_cid()
596 context = pdev->context_info; in lm_allocate_cid()
599 MM_ACQUIRE_CID_LOCK(pdev); in lm_allocate_cid()
603 …if ((pdev->params.cid_allocation_mode == LM_CID_ALLOC_REGULAR) || (context->proto_pending[type] ==… in lm_allocate_cid()
619 lm_sp_req_manager_init(pdev, cid); in lm_allocate_cid()
636 lm_sp_req_manager_init(pdev, cid); in lm_allocate_cid()
641 MM_RELEASE_CID_LOCK(pdev); in lm_allocate_cid()
649 phy_addr.as_u32.low = (pdev->hw_info.mem_base[BAR_1].as_u32.low) & 0xfffffff0; in lm_allocate_cid()
650 phy_addr.as_u32.high = pdev->hw_info.mem_base[BAR_1].as_u32.high; in lm_allocate_cid()
658 (volatile void *)((u8_t*)pdev->vars.mapped_bar_addr[BAR_1] + cid*LM_DQ_CID_SIZE); in lm_allocate_cid()
659 context->array[cid].cid_resc.reg_handle = pdev->vars.reg_handle[BAR_1]; in lm_allocate_cid()
661 (volatile void *)mm_map_io_space_solaris(pdev, in lm_allocate_cid()
673 (volatile void *)((u8_t*)pdev->vars.mapped_bar_addr[BAR_1] + cid*LM_DQ_CID_SIZE); in lm_allocate_cid()
675 (volatile void *)mm_map_io_space(pdev, phy_addr, LM_DQ_CID_SIZE); in lm_allocate_cid()
683 …DbgMessage(pdev, FATAL, "lm_allocate_cid: mm_map_io_space failed. address low=%d address high=%d\n… in lm_allocate_cid()
686 MM_ACQUIRE_CID_LOCK(pdev); in lm_allocate_cid()
688 context->array[cid].next = pdev->context_info->proto_ffree[type]; in lm_allocate_cid()
691 MM_RELEASE_CID_LOCK(pdev); in lm_allocate_cid()
700 void lm_cfc_delete(struct _lm_device_t *pdev, void *param) in lm_cfc_delete() argument
703 u8_t flr_in_progress = lm_fl_reset_is_inprogress(pdev); in lm_cfc_delete()
705 if ( CHK_NULL(pdev) || in lm_cfc_delete()
706 ERR_IF(cid > pdev->params.max_func_connections) || in lm_cfc_delete()
707 ERR_IF(pdev->context_info->array[cid].invalid != LM_CONTEXT_INVALID_WAIT) ) in lm_cfc_delete()
709 DbgBreakIf(!pdev); in lm_cfc_delete()
710 DbgBreakIf(cid > pdev->params.max_func_connections); in lm_cfc_delete()
714 DbgBreakIf(pdev->context_info->array[cid].invalid != LM_CONTEXT_INVALID_WAIT); in lm_cfc_delete()
718 …DbgMessage(pdev, FATAL, "lm_cfc_delete: invalid %d for cid=%d\n", pdev->context_info->array[cid].i… in lm_cfc_delete()
720 if (pdev->context_info->array[cid].invalid != LM_CONTEXT_INVALID_DELETE) in lm_cfc_delete()
727 DbgMessage(pdev, WARN, "lm_cfc_delete: cid=0x%x\n",cid); in lm_cfc_delete()
728 pdev->context_info->array[cid].invalid = LM_CONTEXT_INVALID_DELETE; in lm_cfc_delete()
730 if (lm_fl_reset_is_inprogress(pdev)) in lm_cfc_delete()
732 lm_recycle_cid(pdev, cid); in lm_cfc_delete()
737 lm_command_post(pdev, in lm_cfc_delete()
749 void lm_free_cid(struct _lm_device_t *pdev, u32_t type, u32_t cid, u8_t notify_fw){ in lm_free_cid() argument
755 if ( CHK_NULL(pdev) || in lm_free_cid()
756 CHK_NULL(pdev->context_info) || in lm_free_cid()
757 ERR_IF(type >= ARRSIZE(pdev->context_info->proto_end)) || in lm_free_cid()
758 ERR_IF(cid > (pdev->context_info->proto_end[type])) || in lm_free_cid()
759 ERR_IF(cid < (pdev->context_info->proto_start[type])) || in lm_free_cid()
760 …(!lm_fl_reset_is_inprogress(pdev) && (pdev->context_info->array[cid].invalid != LM_CONTEXT_VALID))) in lm_free_cid()
762 DbgBreakIf(!pdev); in lm_free_cid()
763 DbgBreakIf(!pdev->context_info); in lm_free_cid()
764 DbgBreakIf(type >= ARRSIZE(pdev->context_info->proto_end)); in lm_free_cid()
765 DbgBreakIf(cid > (pdev->context_info->proto_end[type])); in lm_free_cid()
766 DbgBreakIf(cid < (pdev->context_info->proto_start[type])); in lm_free_cid()
767 DbgBreakIf(pdev->context_info->array[cid].invalid != LM_CONTEXT_VALID); in lm_free_cid()
770 MM_ACQUIRE_CID_LOCK(pdev); in lm_free_cid()
774 DbgBreakIf(pdev->context_info->array[cid].cid_resc.cookies[proto_idx]); in lm_free_cid()
777 lm_sp_req_manager_shutdown(pdev, cid); in lm_free_cid()
783 delay_time = LM_FREE_CID_DELAY_TIME(pdev); in lm_free_cid()
788 pdev->context_info->array[cid].invalid = LM_CONTEXT_INVALID_WAIT; in lm_free_cid()
792 curr_cid = pdev->context_info->proto_pending[type]; in lm_free_cid()
793 pdev->context_info->array[cid].next = curr_cid; in lm_free_cid()
794 pdev->context_info->array[cid].prev = 0; in lm_free_cid()
797 pdev->context_info->array[curr_cid].prev = cid; in lm_free_cid()
799 pdev->context_info->proto_pending[type] = cid; in lm_free_cid()
803 pdev->context_info->array[cid].invalid = LM_CONTEXT_INVALID_DELETE; in lm_free_cid()
808 MM_RELEASE_CID_LOCK(pdev); in lm_free_cid()
811 lm_recycle_cid(pdev, cid); in lm_free_cid()
817 DbgMessage(pdev, WARN, "lm_free_cid: CFC delete: cid=0x%x\n",cid); in lm_free_cid()
818 lm_cfc_delete(pdev,(void *)(uintptr_t)cid); in lm_free_cid()
822 DbgMessage(pdev, WARN, "lm_free_cid: schedule CFC delete: cid=0x%x\n",cid); in lm_free_cid()
823 mm_schedule_task(pdev,delay_time,lm_cfc_delete, in lm_free_cid()
830 void lm_recycle_cid(struct _lm_device_t *pdev, u32_t cid){ in lm_recycle_cid() argument
837 if ( CHK_NULL(pdev) || in lm_recycle_cid()
838 ERR_IF(pdev->context_info->array[cid].invalid != LM_CONTEXT_INVALID_DELETE) || in lm_recycle_cid()
839 ERR_IF(cid > pdev->params.max_func_connections) ) in lm_recycle_cid()
841 DbgBreakIf(!pdev); in lm_recycle_cid()
842 DbgBreakIf(pdev->context_info->array[cid].invalid != LM_CONTEXT_INVALID_DELETE); in lm_recycle_cid()
843 DbgBreakIf(cid > pdev->params.max_func_connections); in lm_recycle_cid()
848 … if ((cid >= pdev->context_info->proto_start[i]) && (cid <= pdev->context_info->proto_end[i])) in lm_recycle_cid()
854 if ERR_IF(type >= ARRSIZE(pdev->context_info->proto_pending)) in lm_recycle_cid()
856 DbgBreakIf(type >= ARRSIZE(pdev->context_info->proto_pending)) ; in lm_recycle_cid()
860 MM_ACQUIRE_CID_LOCK(pdev); in lm_recycle_cid()
862 if ((type == TOE_CONNECTION_TYPE) && (pdev->ofld_info.l4_params.ticks_per_second != 0)) in lm_recycle_cid()
864pdev->vars.last_recycling_timestamp = mm_get_current_time(pdev) * 1000 / pdev->ofld_info.l4_params… in lm_recycle_cid()
868 if (pdev->context_info->array[cid].cid_resc.cid_pending == FALSE) { in lm_recycle_cid()
870 prev_cid = pdev->context_info->array[cid].prev; in lm_recycle_cid()
871 next_cid = pdev->context_info->array[cid].next; in lm_recycle_cid()
873 pdev->context_info->array[prev_cid].next = next_cid; in lm_recycle_cid()
876 pdev->context_info->array[next_cid].prev = prev_cid; in lm_recycle_cid()
878 if (pdev->context_info->proto_pending[type] == cid) { in lm_recycle_cid()
880 pdev->context_info->proto_pending[type] = next_cid; in lm_recycle_cid()
882 pdev->context_info->array[cid].prev = pdev->context_info->array[cid].next = 0; in lm_recycle_cid()
884 pdev->context_info->array[cid].next = pdev->context_info->proto_ffree[type]; in lm_recycle_cid()
885 pdev->context_info->array[cid].invalid = LM_CONTEXT_VALID; in lm_recycle_cid()
886 pdev->context_info->array[cid].cfc_delete_cnt = 0; in lm_recycle_cid()
887 pdev->context_info->proto_ffree[type] = cid; in lm_recycle_cid()
891 …mm_unmap_io_space(pdev,(void *)pdev->context_info->array[cid].cid_resc.mapped_cid_bar_addr, LM_DQ_… in lm_recycle_cid()
901 pdev->context_info->array[cid].invalid = LM_CONTEXT_VALID; in lm_recycle_cid()
906 lm_set_cdu_validation_data(pdev, cid, TRUE /* Invalidate */); in lm_recycle_cid()
910 MM_RELEASE_CID_LOCK(pdev); in lm_recycle_cid()
914 if (pdev->cid_recycled_callbacks[type] && call_cb) { in lm_recycle_cid()
915pdev->cid_recycled_callbacks[type](pdev, pdev->context_info->array[cid].cid_resc.cookies[type], ci… in lm_recycle_cid()
924 void * lm_cid_cookie(struct _lm_device_t *pdev, u32_t type, u32_t cid){ in lm_cid_cookie() argument
926 if ( CHK_NULL(pdev) || in lm_cid_cookie()
927 CHK_NULL(pdev->context_info) || in lm_cid_cookie()
929 ERR_IF(cid > (pdev->context_info->proto_end[MAX_PROTO - 1])) || in lm_cid_cookie()
930 CHK_NULL(pdev->context_info->array[cid].cid_resc.cookies[type]) || in lm_cid_cookie()
931 ERR_IF(pdev->context_info->array[cid].invalid != LM_CONTEXT_VALID) ) in lm_cid_cookie()
933 DbgBreakIf(!pdev); in lm_cid_cookie()
934 DbgBreakIf(!pdev->context_info); in lm_cid_cookie()
936 DbgBreakIf(cid > (pdev->context_info->proto_end[MAX_PROTO - 1])); in lm_cid_cookie()
937 DbgBreakIf(pdev->context_info->array[cid].invalid != LM_CONTEXT_VALID); in lm_cid_cookie()
940 if (pdev->context_info->array[cid].cid_resc.cookies[type] == NULL) in lm_cid_cookie()
947 if (pdev->context_info->array[cid].cid_resc.cid_pending != LM_CID_STATE_VALID) in lm_cid_cookie()
952 return pdev->context_info->array[cid].cid_resc.cookies[type]; in lm_cid_cookie()
958 lm_cid_resc_t * lm_cid_resc(struct _lm_device_t *pdev, u32_t cid){ in lm_cid_resc() argument
960 if ( CHK_NULL(pdev) || in lm_cid_resc()
961 CHK_NULL(pdev->context_info) || in lm_cid_resc()
962 ERR_IF(cid > (pdev->context_info->proto_end[MAX_PROTO - 1])) ) in lm_cid_resc()
964 DbgBreakIf(!pdev); in lm_cid_resc()
965 DbgBreakIf(!pdev->context_info); in lm_cid_resc()
966 DbgBreakIf(cid > (pdev->context_info->proto_end[MAX_PROTO - 1])); in lm_cid_resc()
969 return &pdev->context_info->array[cid].cid_resc; in lm_cid_resc()
972 u8_t lm_map_cid_to_proto(struct _lm_device_t * pdev, u32_t cid) in lm_map_cid_to_proto() argument
977 if (!pdev || cid > pdev->params.max_func_connections) { in lm_map_cid_to_proto()
982 … if ((cid >= pdev->context_info->proto_start[i]) && (cid <= pdev->context_info->proto_end[i])) { in lm_map_cid_to_proto()
990 void lm_init_connection_context(struct _lm_device_t *pdev, u32_t const sw_cid, u8_t sb_id) in lm_init_connection_context() argument
994 if ( CHK_NULL(pdev) || in lm_init_connection_context()
995 ERR_IF(sw_cid < PFDEV(pdev)->context_info->proto_start[ETH_CONNECTION_TYPE]) || in lm_init_connection_context()
996 ERR_IF(sw_cid > PFDEV(pdev)->context_info->proto_end[ETH_CONNECTION_TYPE]) ) in lm_init_connection_context()
998 DbgBreakIf(!pdev); in lm_init_connection_context()
999 …DbgBreakIf(sw_cid < PFDEV(pdev)->context_info->proto_start[ETH_CONNECTION_TYPE]); /* first legal N… in lm_init_connection_context()
1000 …DbgBreakIf(sw_cid > PFDEV(pdev)->context_info->proto_end[ETH_CONNECTION_TYPE]); /* last legal NI… in lm_init_connection_context()
1003 context = lm_get_context(PFDEV(pdev), VF_TO_PF_CID(pdev,sw_cid)); in lm_init_connection_context()
1008 lm_set_cdu_validation_data(pdev, VF_TO_PF_CID(pdev,sw_cid), FALSE /* don't invalidate */); in lm_init_connection_context()
1014 IN struct _lm_device_t *pdev, in lm_set_cid_resc() argument
1022 if CHK_NULL(pdev) in lm_set_cid_resc()
1028 MM_ACQUIRE_CID_LOCK(pdev); in lm_set_cid_resc()
1030 cid_resc = lm_cid_resc(pdev, cid); in lm_set_cid_resc()
1034 MM_RELEASE_CID_LOCK(pdev); in lm_set_cid_resc()
1041 MM_RELEASE_CID_LOCK(pdev); in lm_set_cid_resc()
1048 IN struct _lm_device_t *pdev, in lm_free_cid_resc() argument
1057 if (CHK_NULL(pdev) || (cid == 0)) in lm_free_cid_resc()
1063 MM_ACQUIRE_CID_LOCK(pdev); in lm_free_cid_resc()
1065 cid_resc = lm_cid_resc(pdev, cid); in lm_free_cid_resc()
1069 MM_RELEASE_CID_LOCK(pdev); in lm_free_cid_resc()
1080 MM_RELEASE_CID_LOCK(pdev); in lm_free_cid_resc()
1086 lm_free_cid(pdev, lm_map_cid_to_proto(pdev, cid), cid, notify_fw); in lm_free_cid_resc()
1096 IN struct _lm_device_t *pdev, in lm_cid_sp_req_mgr() argument
1102 if CHK_NULL(pdev) in lm_cid_sp_req_mgr()
1107 cid_resc = lm_cid_resc(pdev, cid); in lm_cid_sp_req_mgr()
1121 IN struct _lm_device_t *pdev, in lm_cid_state() argument
1127 if CHK_NULL(pdev) in lm_cid_state()
1132 cid_resc = lm_cid_resc(pdev, cid); in lm_cid_state()
1146 IN struct _lm_device_t *pdev, in lm_set_cid_state() argument
1153 if CHK_NULL(pdev) in lm_set_cid_state()
1159 MM_ACQUIRE_CID_LOCK(pdev); in lm_set_cid_state()
1161 cid_resc = lm_cid_resc(pdev, cid); in lm_set_cid_state()
1165 MM_RELEASE_CID_LOCK(pdev); in lm_set_cid_state()
1172 MM_RELEASE_CID_LOCK(pdev); in lm_set_cid_state()
1185 lm_status_t lm_set_cdu_validation_data(struct _lm_device_t *pdev, s32_t cid, u8_t invalidate) in lm_set_cdu_validation_data() argument
1193 context = lm_get_context(PFDEV(pdev), cid); in lm_set_cdu_validation_data()
1199 proto_type = lm_map_cid_to_proto(PFDEV(pdev), cid); in lm_set_cdu_validation_data()
1228 … *cdu_reserved = CDU_RSRVD_VALUE_TYPE_A(HW_CID(pdev, cid), CDU_REGION_NUMBER_XCM_AG, proto_type); in lm_set_cdu_validation_data()
1229 … *cdu_usage = CDU_RSRVD_VALUE_TYPE_A(HW_CID(pdev, cid), CDU_REGION_NUMBER_UCM_AG, proto_type); in lm_set_cdu_validation_data()
1237 lm_status_t lm_get_context_size(struct _lm_device_t *pdev, s32_t * context_size) in lm_get_context_size() argument
1243 lm_status_t lm_set_con_state(struct _lm_device_t *pdev, u32_t cid, u32_t state) in lm_set_con_state() argument
1245 lm_cid_resc_t * cid_resc = lm_cid_resc(pdev, cid); in lm_set_con_state()
1257 u32_t lm_get_con_state(struct _lm_device_t *pdev, u32_t cid) in lm_get_con_state() argument
1259 const lm_cid_resc_t * cid_resc = lm_cid_resc(pdev, cid); in lm_get_con_state()