/linux-4.4.14/drivers/staging/rdma/hfi1/ |
H A D | pio.c | 478 u32 *hw_context) sc_hw_alloc() 492 *hw_context = context; sc_hw_alloc() 505 static void sc_hw_free(struct hfi1_devdata *dd, u32 sw_index, u32 hw_context) sc_hw_free() argument 511 dd_dev_err(dd, "%s: sw_index %u not allocated? hw_context %u\n", sc_hw_free() 512 __func__, sw_index, hw_context); sc_hw_free() 515 dd->hw_to_sw[hw_context] = INVALID_SCI; sc_hw_free() 545 u32 gc = group_context(sc->hw_context, sc->group); cr_group_addresses() 546 u32 index = sc->hw_context & 0x7; cr_group_addresses() 627 write_kctxt_csr(sc->dd, sc->hw_context, sc_set_cr_threshold() 649 u32 hw_context = sc->hw_context; set_pio_integrity() local 660 write_kctxt_csr(dd, hw_context, SC(CHECK_ENABLE), reg); set_pio_integrity() 677 u32 hw_context; sc_alloc() local 690 ret = sc_hw_alloc(dd, type, &sw_index, &hw_context); sc_alloc() 715 sc->hw_context = hw_context; sc_alloc() 722 sc->base_addr = dd->piobase + ((hw_context & PIO_ADDR_CONTEXT_MASK) sc_alloc() 730 write_kctxt_csr(dd, hw_context, SC(CTRL), reg); sc_alloc() 735 write_kctxt_csr(dd, hw_context, SC(ERR_MASK), (u64)-1); sc_alloc() 738 write_kctxt_csr(dd, hw_context, SC(CHECK_PARTITION_KEY), sc_alloc() 753 write_kctxt_csr(dd, hw_context, SC(CHECK_OPCODE), sc_alloc() 759 write_kctxt_csr(dd, hw_context, SC(CREDIT_RETURN_ADDR), reg); sc_alloc() 786 write_kctxt_csr(dd, hw_context, SC(CREDIT_CTRL), reg); sc_alloc() 791 write_kctxt_csr(dd, hw_context, SC(CHECK_VL), reg); sc_alloc() 821 hw_context, sc_alloc() 837 u32 hw_context; sc_free() local 847 hw_context = sc->hw_context; sc_free() 855 write_kctxt_csr(dd, hw_context, SC(CTRL), 0); sc_free() 856 write_kctxt_csr(dd, hw_context, SC(CHECK_ENABLE), 0); sc_free() 857 write_kctxt_csr(dd, hw_context, SC(ERR_MASK), 0); sc_free() 858 write_kctxt_csr(dd, hw_context, SC(CHECK_PARTITION_KEY), 0); sc_free() 859 write_kctxt_csr(dd, hw_context, SC(CHECK_OPCODE), 0); sc_free() 860 write_kctxt_csr(dd, hw_context, SC(CREDIT_RETURN_ADDR), 0); sc_free() 861 write_kctxt_csr(dd, hw_context, SC(CREDIT_CTRL), 0); sc_free() 864 sc_hw_free(dd, sw_index, hw_context); sc_free() 883 reg = read_kctxt_csr(sc->dd, sc->hw_context, SC(CTRL)); sc_disable() 887 write_kctxt_csr(sc->dd, sc->hw_context, SC(CTRL), reg); sc_disable() 931 reg = read_csr(dd, sc->hw_context * 8 + sc_wait_for_packet_egress() 947 sc->hw_context, (u32)reg); sc_wait_for_packet_egress() 995 sc->hw_context); sc_restart() 1005 reg = read_kctxt_csr(dd, sc->hw_context, SC(STATUS)); sc_restart() 1010 __func__, sc->sw_index, sc->hw_context); sc_restart() 1038 sc->hw_context, count); sc_restart() 1186 sc_ctrl = read_kctxt_csr(dd, sc->hw_context, SC(CTRL)); sc_enable() 1207 reg = read_kctxt_csr(dd, sc->hw_context, SC(ERR_STATUS)); sc_enable() 1209 write_kctxt_csr(dd, sc->hw_context, SC(ERR_CLEAR), sc_enable() 1224 pio = ((sc->hw_context & SEND_PIO_INIT_CTXT_PIO_CTXT_NUM_MASK) << sc_enable() 1238 sc->sw_index, sc->hw_context, ret); sc_enable() 1246 write_kctxt_csr(dd, sc->hw_context, SC(CTRL), sc_ctrl); sc_enable() 1251 read_kctxt_csr(dd, sc->hw_context, SC(CTRL)); sc_enable() 1267 write_kctxt_csr(sc->dd, sc->hw_context, SC(CREDIT_FORCE), sc_return_credits() 1273 read_kctxt_csr(sc->dd, sc->hw_context, SC(CREDIT_FORCE)); sc_return_credits() 1275 write_kctxt_csr(sc->dd, sc->hw_context, SC(CREDIT_FORCE), 0); sc_return_credits() 1294 __func__, sc->sw_index, sc->hw_context); sc_drop() 1440 write_kctxt_csr(sc->dd, sc->hw_context, sc_add_credit_return_intr() 1462 write_kctxt_csr(sc->dd, sc->hw_context, sc_del_credit_return_intr() 1620 void sc_group_release_update(struct hfi1_devdata *dd, u32 hw_context) sc_group_release_update() argument 1627 sw_index = dd->hw_to_sw[hw_context]; sc_group_release_update() 1630 __func__, hw_context, sw_index); sc_group_release_update() 1637 gc = group_context(hw_context, sc->group); sc_group_release_update() 1644 __func__, hw_context, sw_index); sc_group_release_update() 1684 ctxt = dd->vld[15].sc->hw_context; init_pervl_scs() 1692 ctxt = dd->vld[i].sc->hw_context; init_pervl_scs() 477 sc_hw_alloc(struct hfi1_devdata *dd, int type, u32 *sw_index, u32 *hw_context) sc_hw_alloc() argument
|
H A D | pio.h | 115 u32 hw_context; /* hardware context number */ member in struct:send_context 189 void sc_group_release_update(struct hfi1_devdata *dd, u32 hw_context);
|
H A D | trace.h | 251 __field(u32, hw_context) 257 __entry->hw_context = sc->hw_context; 264 __entry->hw_context, 275 __field(u32, hw_context) 282 __entry->hw_context = sc->hw_context; 290 __entry->hw_context,
|
H A D | file_ops.c | 517 (uctxt->sc->hw_context * BIT(16))) + hfi1_file_mmap() 805 write_kctxt_csr(dd, uctxt->sc->hw_context, SEND_CTXT_CHECK_ENABLE, hfi1_file_close() 1021 uctxt->sc->hw_context); allocate_ctxt() 1205 cinfo.send_ctxt = uctxt->sc->hw_context; get_ctxt_info()
|
H A D | chip.c | 2470 * Send context error interrupt. Source (hw_context) is < 160. 2479 unsigned int hw_context) is_sendctxt_err_int() 2487 sw_index = dd->hw_to_sw[hw_context]; is_sendctxt_err_int() 2491 sw_index, hw_context); is_sendctxt_err_int() 2498 sw_index, hw_context); is_sendctxt_err_int() 2505 status = read_kctxt_csr(dd, hw_context, SEND_CTXT_ERR_STATUS); is_sendctxt_err_int() 2507 dd_dev_info(dd, "Send Context %u(%u) Error: %s\n", sw_index, hw_context, is_sendctxt_err_int() 8646 reg = read_kctxt_csr(dd, sc->hw_context, hfi1_init_ctxt() 8652 write_kctxt_csr(dd, sc->hw_context, hfi1_init_ctxt() 10267 sctxt = rcd->sc->hw_context; hfi1_set_ctxt_jkey() 10305 sctxt = rcd->sc->hw_context; hfi1_clear_ctxt_jkey() 10340 sctxt = rcd->sc->hw_context; hfi1_set_ctxt_pkey() 10368 sctxt = rcd->sc->hw_context; hfi1_clear_ctxt_pkey() 2478 is_sendctxt_err_int(struct hfi1_devdata *dd, unsigned int hw_context) is_sendctxt_err_int() argument
|
H A D | diag.c | 577 vl, sc->sw_index, sc->hw_context); diagpkt_write() 873 sc->hw_context); hfi1_snoop_write()
|
/linux-4.4.14/drivers/gpu/drm/gma500/ |
H A D | mmu.c | 138 void psb_mmu_set_pd_context(struct psb_mmu_pd *pd, int hw_context) psb_mmu_set_pd_context() argument 142 uint32_t offset = (hw_context == 0) ? PSB_CR_BIF_DIR_LIST_BASE0 : psb_mmu_set_pd_context() 143 PSB_CR_BIF_DIR_LIST_BASE1 + hw_context * 4; psb_mmu_set_pd_context() 149 pd->hw_context = hw_context; psb_mmu_set_pd_context() 224 pd->hw_context = -1; psb_mmu_alloc_pd() 256 if (pd->hw_context != -1) { psb_mmu_free_pagedir() 257 PSB_WSGX32(0, PSB_CR_BIF_DIR_LIST_BASE0 + pd->hw_context * 4); psb_mmu_free_pagedir() 307 if (pd->driver->has_clflush && pd->hw_context != -1) { psb_mmu_alloc_pt() 357 if (pd->hw_context != -1) { psb_mmu_pt_alloc_map_lock() 394 if (pd->hw_context != -1) { psb_mmu_pt_unmap_unlock() 593 if (pd->hw_context != -1) psb_mmu_remove_pfn_sequence() 598 if (pd->hw_context != -1) psb_mmu_remove_pfn_sequence() 650 if (pd->hw_context != -1) psb_mmu_remove_pages() 656 if (pd->hw_context != -1) psb_mmu_remove_pages() 695 if (pd->hw_context != -1) psb_mmu_insert_pfn_sequence() 700 if (pd->hw_context != -1) psb_mmu_insert_pfn_sequence() 761 if (pd->hw_context != -1) psb_mmu_insert_pages() 767 if (pd->hw_context != -1) psb_mmu_insert_pages()
|
H A D | mmu.h | 52 int hw_context; member in struct:psb_mmu_pd 83 extern void psb_mmu_set_pd_context(struct psb_mmu_pd *pd, int hw_context);
|
/linux-4.4.14/drivers/crypto/ |
H A D | talitos.c | 825 u32 hw_context[TALITOS_MDEU_MAX_CONTEXT_SIZE / sizeof(u32)]; member in struct:talitos_ahash_req_ctx 839 u32 hw_context[TALITOS_MDEU_MAX_CONTEXT_SIZE / sizeof(u32)]; member in struct:talitos_export_state 1742 (char *)req_ctx->hw_context, common_nonsnoop_hash() 1775 req_ctx->hw_context, DMA_FROM_DEVICE); common_nonsnoop_hash() 1830 req_ctx->hw_context[0] = SHA224_H0; ahash_init_sha224_swinit() 1831 req_ctx->hw_context[1] = SHA224_H1; ahash_init_sha224_swinit() 1832 req_ctx->hw_context[2] = SHA224_H2; ahash_init_sha224_swinit() 1833 req_ctx->hw_context[3] = SHA224_H3; ahash_init_sha224_swinit() 1834 req_ctx->hw_context[4] = SHA224_H4; ahash_init_sha224_swinit() 1835 req_ctx->hw_context[5] = SHA224_H5; ahash_init_sha224_swinit() 1836 req_ctx->hw_context[6] = SHA224_H6; ahash_init_sha224_swinit() 1837 req_ctx->hw_context[7] = SHA224_H7; ahash_init_sha224_swinit() 1840 req_ctx->hw_context[8] = 0; ahash_init_sha224_swinit() 1841 req_ctx->hw_context[9] = 0; ahash_init_sha224_swinit() 1972 memcpy(export->hw_context, req_ctx->hw_context, ahash_export() 1995 memcpy(req_ctx->hw_context, export->hw_context, ahash_import()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x.h | 1304 struct hw_context { struct 1747 struct hw_context context[ILT_MAX_L2_LINES];
|