Home
last modified time | relevance | path

Searched refs:icm_table (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/uts/common/sys/ib/adapters/hermon/
H A Dhermon.h890 #define hermon_bitmap(bitmap, dma_info, icm_table, split_index, num_to_hdl) \ argument
891 bitmap = (icm_table)->icm_bitmap[split_index]; \
893 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*(icm_table))) \
894 int num_spans = (icm_table)->num_spans; \
896 (icm_table)->icm_bitmap[split_index] = \
898 ASSERT((icm_table)->icm_dma[split_index] == NULL); \
899 (icm_table)->icm_dma[split_index] = \
903 ASSERT((icm_table)->num_to_hdl[split_index] == NULL); \
904 (icm_table)->num_to_hdl[split_index] = \
909 dma_info = (icm_table)->icm_dma[split_index]
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_rsrc.c2047 hermon_icm_table_t *icm_table; in hermon_rsrc_hw_entry_icm_confirm() local
2072 icm_table = &state->hs_icm[type]; in hermon_rsrc_hw_entry_icm_confirm()
2075 hermon_index(index1, index2, rindx, icm_table, span_offset); in hermon_rsrc_hw_entry_icm_confirm()
2083 mutex_enter(&icm_table->icm_table_lock); in hermon_rsrc_hw_entry_icm_confirm()
2084 hermon_bitmap(bitmap, dma_info, icm_table, index1, num_to_hdl); in hermon_rsrc_hw_entry_icm_confirm()
2087 while (icm_table->icm_busy) { in hermon_rsrc_hw_entry_icm_confirm()
2088 cv_wait(&icm_table->icm_table_cv, in hermon_rsrc_hw_entry_icm_confirm()
2089 &icm_table->icm_table_lock); in hermon_rsrc_hw_entry_icm_confirm()
2094 icm_table->icm_busy = 1; in hermon_rsrc_hw_entry_icm_confirm()
2095 mutex_exit(&icm_table->icm_table_lock); in hermon_rsrc_hw_entry_icm_confirm()
[all …]
H A Dhermon_mr.c455 hermon_icm_table_t *icm_table; in hermon_mr_alloc_fmr() local
623 icm_table = &state->hs_icm[HERMON_DMPT]; in hermon_mr_alloc_fmr()
625 hermon_index(index1, index2, rindx, icm_table, i); in hermon_mr_alloc_fmr()
626 dma_info = icm_table->icm_dma[index1] + index2; in hermon_mr_alloc_fmr()
3243 hermon_icm_table_t *icm_table; in hermon_mr_fast_mtt_write() local
3274 icm_table = &state->hs_icm[HERMON_MTT]; in hermon_mr_fast_mtt_write()
3276 hermon_index(index1, index2, rindx, icm_table, i); in hermon_mr_fast_mtt_write()
3279 per_span = icm_table->span; in hermon_mr_fast_mtt_write()
3280 dma_info = icm_table->icm_dma[index1] + index2; in hermon_mr_fast_mtt_write()
3311 hermon_index(index1, index2, rindx, icm_table, in hermon_mr_fast_mtt_write()
[all …]