• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/tidspbridge/pmgr/

Lines Matching refs:allocator

11  * Each registered SM segment is represented by a SM "allocator" that
63 * sma - shared memory allocator.
64 * vma - virtual memory allocator.(not used).
117 1 /* ul_seg_id, default segment Id for allocator */
143 static void add_to_free_list(struct cmm_allocator *allocator,
147 static struct cmm_mnode *get_free_block(struct cmm_allocator *allocator,
151 /* get available slot for new allocator */
173 struct cmm_allocator *allocator = NULL;
187 /* get the allocator object for this segment id */
188 allocator =
196 pnode = get_free_block(allocator, usize);
208 add_to_free_list(allocator, new_node);
220 lst_put_tail(allocator->in_use_list_head,
325 /* UnRegister SM allocator */
378 struct cmm_allocator *allocator = NULL;
392 /* get the allocator for this segment id */
393 allocator = get_allocator(cmm_mgr_obj, ul_seg_id);
394 if (allocator != NULL) {
397 (struct cmm_mnode *)lst_first(allocator->in_use_list_head);
401 lst_remove_elem(allocator->in_use_list_head,
404 add_to_free_list(allocator, mnode_obj);
410 lst_next(allocator->in_use_list_head,
470 /* get the allocator object for this segment id */
557 /* make sure we have room for another allocator */
571 /* create, zero, and tag an SM allocator object */
609 /* Place node on the SM allocator's free list */
626 /* Cleanup allocator */
684 * UnRegister the SM allocator by freeing all its resources and
729 /* Free allocator itself */
805 static struct cmm_mnode *get_free_block(struct cmm_allocator *allocator,
808 if (allocator) {
810 lst_first(allocator->free_list_head);
813 lst_remove_elem(allocator->free_list_head,
819 lst_next(allocator->free_list_head,
831 static void add_to_free_list(struct cmm_allocator *allocator,
841 DBC_REQUIRE(allocator != NULL);
844 mnode_obj = (struct cmm_mnode *)lst_first(allocator->free_list_head);
855 lst_next(allocator->free_list_head,
864 lst_remove_elem(allocator->free_list_head,
871 delete_node((struct cmm_object *)allocator->hcmm_mgr,
876 lst_remove_elem(allocator->free_list_head,
881 delete_node((struct cmm_object *)allocator->hcmm_mgr,
885 mnode_obj = (struct cmm_mnode *)lst_first(allocator->free_list_head);
892 (struct cmm_mnode *)lst_next(allocator->free_list_head,
897 lst_put_tail(allocator->free_list_head,
901 lst_insert_before(allocator->free_list_head,
910 * Return the allocator for the given SM Segid.
916 struct cmm_allocator *allocator = NULL;
920 allocator = cmm_mgr_obj->pa_gppsm_seg_tab[ul_seg_id - 1];
921 if (allocator != NULL) {
923 if (!allocator) {
924 allocator = NULL;
928 return allocator;
1088 struct cmm_allocator *allocator = NULL;
1099 /* get this translator's default SM allocator */
1101 allocator = cmm_mgr_obj->pa_gppsm_seg_tab[xlator_obj->ul_seg_id - 1];
1102 if (!allocator)
1109 dw_offset = (u8 *) paddr - (u8 *) (allocator->shm_base -
1110 allocator->
1125 allocator->shm_base - allocator->ul_dsp_size +
1135 GPPPA2DSPPA((allocator->shm_base - allocator->ul_dsp_size),
1137 allocator->dw_dsp_phys_addr_offset *
1138 allocator->c_factor);
1142 DSPPA2GPPPA(allocator->shm_base - allocator->ul_dsp_size,
1144 allocator->dw_dsp_phys_addr_offset *
1145 allocator->c_factor);