• Home
  • Raw
  • Download

Lines Matching refs:dir

541 				     int dir)  in ehea_init_top_bmap()  argument
543 if (!ehea_top_bmap->dir[dir]) { in ehea_init_top_bmap()
544 ehea_top_bmap->dir[dir] = in ehea_init_top_bmap()
546 if (!ehea_top_bmap->dir[dir]) in ehea_init_top_bmap()
552 static inline int ehea_init_bmap(struct ehea_bmap *ehea_bmap, int top, int dir) in ehea_init_bmap() argument
560 return ehea_init_top_bmap(ehea_bmap->top[top], dir); in ehea_init_bmap()
572 int top, dir, idx; in ehea_rebuild_busmap() local
581 for (dir = 0; dir < EHEA_MAP_ENTRIES; dir++) { in ehea_rebuild_busmap()
585 if (!ehea_top->dir[dir]) in ehea_rebuild_busmap()
588 ehea_dir = ehea_top->dir[dir]; in ehea_rebuild_busmap()
597 ehea_top->dir[dir] = NULL; in ehea_rebuild_busmap()
627 int dir = ehea_calc_index(i, EHEA_DIR_INDEX_SHIFT); in ehea_update_busmap() local
631 int ret = ehea_init_bmap(ehea_bmap, top, dir); in ehea_update_busmap()
639 if (!ehea_bmap->top[top]->dir[dir]) in ehea_update_busmap()
645 ehea_bmap->top[top]->dir[dir]->ent[idx] = flag; in ehea_update_busmap()
732 int top, dir; in ehea_destroy_busmap() local
741 for (dir = 0; dir < EHEA_MAP_ENTRIES; dir++) { in ehea_destroy_busmap()
742 if (!ehea_bmap->top[top]->dir[dir]) in ehea_destroy_busmap()
745 kfree(ehea_bmap->top[top]->dir[dir]); in ehea_destroy_busmap()
759 int top, dir, idx; in ehea_map_vaddr() local
770 dir = (index >> EHEA_DIR_INDEX_SHIFT) & EHEA_INDEX_MASK; in ehea_map_vaddr()
771 if (!ehea_bmap->top[top]->dir[dir]) in ehea_map_vaddr()
775 if (!ehea_bmap->top[top]->dir[dir]->ent[idx]) in ehea_map_vaddr()
779 return ehea_bmap->top[top]->dir[dir]->ent[idx] | offset; in ehea_map_vaddr()
782 static inline void *ehea_calc_sectbase(int top, int dir, int idx) in ehea_calc_sectbase() argument
785 ret |= dir << EHEA_DIR_INDEX_SHIFT; in ehea_calc_sectbase()
790 static u64 ehea_reg_mr_section(int top, int dir, int idx, u64 *pt, in ehea_reg_mr_section() argument
799 void *sectbase = ehea_calc_sectbase(top, dir, idx); in ehea_reg_mr_section()
821 static u64 ehea_reg_mr_sections(int top, int dir, u64 *pt, in ehea_reg_mr_sections() argument
829 if (!ehea_bmap->top[top]->dir[dir]->ent[idx]) in ehea_reg_mr_sections()
832 hret = ehea_reg_mr_section(top, dir, idx, pt, adapter, mr); in ehea_reg_mr_sections()
844 int dir; in ehea_reg_mr_dir_sections() local
846 for (dir = 0; dir < EHEA_MAP_ENTRIES; dir++) { in ehea_reg_mr_dir_sections()
847 if (!ehea_bmap->top[top]->dir[dir]) in ehea_reg_mr_dir_sections()
850 hret = ehea_reg_mr_sections(top, dir, pt, adapter, mr); in ehea_reg_mr_dir_sections()