• Home
  • Raw
  • Download

Lines Matching refs:dir

561 				     int dir)  in ehea_init_top_bmap()  argument
563 if (!ehea_top_bmap->dir[dir]) { in ehea_init_top_bmap()
564 ehea_top_bmap->dir[dir] = in ehea_init_top_bmap()
566 if (!ehea_top_bmap->dir[dir]) in ehea_init_top_bmap()
572 static inline int ehea_init_bmap(struct ehea_bmap *ehea_bmap, int top, int dir) in ehea_init_bmap() argument
580 return ehea_init_top_bmap(ehea_bmap->top[top], dir); in ehea_init_bmap()
592 int top, dir, idx; in ehea_rebuild_busmap() local
601 for (dir = 0; dir < EHEA_MAP_ENTRIES; dir++) { in ehea_rebuild_busmap()
605 if (!ehea_top->dir[dir]) in ehea_rebuild_busmap()
608 ehea_dir = ehea_top->dir[dir]; in ehea_rebuild_busmap()
617 ehea_top->dir[dir] = NULL; in ehea_rebuild_busmap()
647 int dir = ehea_calc_index(i, EHEA_DIR_INDEX_SHIFT); in ehea_update_busmap() local
651 int ret = ehea_init_bmap(ehea_bmap, top, dir); in ehea_update_busmap()
659 if (!ehea_bmap->top[top]->dir[dir]) in ehea_update_busmap()
665 ehea_bmap->top[top]->dir[dir]->ent[idx] = flag; in ehea_update_busmap()
755 int top, dir; in ehea_destroy_busmap() local
764 for (dir = 0; dir < EHEA_MAP_ENTRIES; dir++) { in ehea_destroy_busmap()
765 if (!ehea_bmap->top[top]->dir[dir]) in ehea_destroy_busmap()
768 kfree(ehea_bmap->top[top]->dir[dir]); in ehea_destroy_busmap()
782 int top, dir, idx; in ehea_map_vaddr() local
793 dir = (index >> EHEA_DIR_INDEX_SHIFT) & EHEA_INDEX_MASK; in ehea_map_vaddr()
794 if (!ehea_bmap->top[top]->dir[dir]) in ehea_map_vaddr()
798 if (!ehea_bmap->top[top]->dir[dir]->ent[idx]) in ehea_map_vaddr()
802 return ehea_bmap->top[top]->dir[dir]->ent[idx] | offset; in ehea_map_vaddr()
805 static inline void *ehea_calc_sectbase(int top, int dir, int idx) in ehea_calc_sectbase() argument
808 ret |= dir << EHEA_DIR_INDEX_SHIFT; in ehea_calc_sectbase()
813 static u64 ehea_reg_mr_section(int top, int dir, int idx, u64 *pt, in ehea_reg_mr_section() argument
822 void *sectbase = ehea_calc_sectbase(top, dir, idx); in ehea_reg_mr_section()
844 static u64 ehea_reg_mr_sections(int top, int dir, u64 *pt, in ehea_reg_mr_sections() argument
852 if (!ehea_bmap->top[top]->dir[dir]->ent[idx]) in ehea_reg_mr_sections()
855 hret = ehea_reg_mr_section(top, dir, idx, pt, adapter, mr); in ehea_reg_mr_sections()
867 int dir; in ehea_reg_mr_dir_sections() local
869 for (dir = 0; dir < EHEA_MAP_ENTRIES; dir++) { in ehea_reg_mr_dir_sections()
870 if (!ehea_bmap->top[top]->dir[dir]) in ehea_reg_mr_dir_sections()
873 hret = ehea_reg_mr_sections(top, dir, pt, adapter, mr); in ehea_reg_mr_dir_sections()