Home
last modified time | relevance | path

Searched refs:dma_mem (Results 1 – 17 of 17) sorted by relevance

/linux/kernel/dma/
A Dcoherent.c25 if (dev && dev->dma_mem) in dev_get_coherent_memory()
26 return dev->dma_mem; in dev_get_coherent_memory()
53 if (!dma_mem) in dma_init_coherent_memory()
56 if (!dma_mem->bitmap) in dma_init_coherent_memory()
59 dma_mem->virt_base = mem_base; in dma_init_coherent_memory()
62 dma_mem->size = pages; in dma_init_coherent_memory()
66 return dma_mem; in dma_init_coherent_memory()
69 kfree(dma_mem); in dma_init_coherent_memory()
93 if (dev->dma_mem) in dma_assign_coherent_memory()
96 dev->dma_mem = mem; in dma_assign_coherent_memory()
[all …]
/linux/drivers/infiniband/hw/irdma/
A Dhmc.c487 struct irdma_dma_mem dma_mem; in irdma_add_sd_table_entry() local
498 dma_mem.size = ALIGN(alloc_len, IRDMA_HMC_PD_BP_BUF_ALIGNMENT); in irdma_add_sd_table_entry()
499 dma_mem.va = dma_alloc_coherent(hw->device, dma_mem.size, in irdma_add_sd_table_entry()
500 &dma_mem.pa, GFP_KERNEL); in irdma_add_sd_table_entry()
501 if (!dma_mem.va) in irdma_add_sd_table_entry()
510 dma_free_coherent(hw->device, dma_mem.size, in irdma_add_sd_table_entry()
511 dma_mem.va, dma_mem.pa); in irdma_add_sd_table_entry()
512 dma_mem.va = NULL; in irdma_add_sd_table_entry()
517 memcpy(&sd_entry->u.pd_table.pd_page_addr, &dma_mem, in irdma_add_sd_table_entry()
520 memcpy(&sd_entry->u.bp.addr, &dma_mem, in irdma_add_sd_table_entry()
A Dverbs.h134 struct irdma_dma_mem dma_mem; member
A Dutils.c1129 dma_free_coherent(rf->sc_dev.hw->device, iwqp->kqp.dma_mem.size, in irdma_free_qp_rsrc()
1130 iwqp->kqp.dma_mem.va, iwqp->kqp.dma_mem.pa); in irdma_free_qp_rsrc()
1131 iwqp->kqp.dma_mem.va = NULL; in irdma_free_qp_rsrc()
A Dverbs.c590 struct irdma_dma_mem *mem = &iwqp->kqp.dma_mem; in irdma_setup_kmode_qp()
/linux/drivers/scsi/be2iscsi/
A Dbe.h31 struct be_dma_mem dma_mem; member
53 return q->dma_mem.va + q->head * q->entry_size; in queue_head_node()
58 return q->dma_mem.va + wrb_num * q->entry_size; in queue_get_wrb()
63 return q->dma_mem.va + q->tail * q->entry_size; in queue_tail_node()
A Dbe_cmds.c741 struct be_dma_mem *q_mem = &eq->dma_mem; in beiscsi_cmd_eq_create()
783 struct be_dma_mem *q_mem = &cq->dma_mem; in beiscsi_cmd_cq_create()
856 struct be_dma_mem *q_mem = &mccq->dma_mem; in beiscsi_cmd_mccq_create()
982 struct be_dma_mem *q_mem = &dq->dma_mem; in be_cmd_create_default_pdu_queue()
A Dbe_main.c2981 struct be_dma_mem *mem = &q->dma_mem; in be_fill_queue()
3013 mem = &eq->dma_mem; in beiscsi_create_eqs()
3050 mem = &eq->dma_mem; in beiscsi_create_eqs()
3079 mem = &cq->dma_mem; in beiscsi_create_cqs()
3113 mem = &cq->dma_mem; in beiscsi_create_cqs()
3138 mem = &dq->dma_mem; in beiscsi_create_def_hdr()
3190 mem = &dataq->dma_mem; in beiscsi_create_def_data()
3305 struct be_dma_mem *mem = &q->dma_mem; in be_queue_free()
3316 struct be_dma_mem *mem = &q->dma_mem; in be_queue_alloc()
/linux/drivers/net/ethernet/qlogic/qed/
A Dqed_cxt.c776 if (!p_t2 || !p_t2->dma_mem) in qed_cxt_src_t2_free()
780 if (p_t2->dma_mem[i].virt_addr) in qed_cxt_src_t2_free()
782 p_t2->dma_mem[i].size, in qed_cxt_src_t2_free()
783 p_t2->dma_mem[i].virt_addr, in qed_cxt_src_t2_free()
784 p_t2->dma_mem[i].phys_addr); in qed_cxt_src_t2_free()
786 kfree(p_t2->dma_mem); in qed_cxt_src_t2_free()
787 p_t2->dma_mem = NULL; in qed_cxt_src_t2_free()
797 if (!p_t2 || !p_t2->dma_mem) in qed_cxt_t2_alloc_pages()
808 if (!p_t2->dma_mem[i].virt_addr) in qed_cxt_t2_alloc_pages()
812 p_t2->dma_mem[i].size = size; in qed_cxt_t2_alloc_pages()
[all …]
A Dqed_cxt.h303 struct phys_mem_desc *dma_mem; member
/linux/drivers/scsi/
A Dstex.c311 void *dma_mem; member
418 return (struct req_msg *)(hba->dma_mem + in stex_ss_alloc_req()
1143 msg_h = (struct st_msg_header *)hba->dma_mem; in stex_ss_handshake()
1733 hba->dma_mem = dma_alloc_coherent(&pdev->dev, in stex_probe()
1735 if (!hba->dma_mem) { in stex_probe()
1744 hba->dma_mem = dma_alloc_coherent(&pdev->dev, in stex_probe()
1748 if (!hba->dma_mem) { in stex_probe()
1765 hba->scratch = (__le32 *)(hba->dma_mem + scratch_offset); in stex_probe()
1767 hba->copy_buffer = hba->dma_mem + cp_offset; in stex_probe()
1836 hba->dma_mem, hba->dma_handle); in stex_probe()
[all …]
/linux/drivers/net/ethernet/emulex/benet/
A Dbe.h131 struct be_dma_mem dma_mem; member
153 return q->dma_mem.va + q->head * q->entry_size; in queue_head_node()
158 return q->dma_mem.va + q->tail * q->entry_size; in queue_tail_node()
163 return q->dma_mem.va + index * q->entry_size; in queue_index_node()
A Dbe_cmds.c998 struct be_dma_mem *q_mem = &eqo->q.dma_mem; in be_cmd_eq_create()
1163 struct be_dma_mem *q_mem = &cq->dma_mem; in be_cmd_cq_create()
1241 struct be_dma_mem *q_mem = &mccq->dma_mem; in be_cmd_mccq_ext_create()
1306 struct be_dma_mem *q_mem = &mccq->dma_mem; in be_cmd_mccq_org_create()
1365 struct be_dma_mem *q_mem = &txq->dma_mem; in be_cmd_txq_create()
1413 struct be_dma_mem *q_mem = &rxq->dma_mem; in be_cmd_rxq_create()
A Dbe_main.c147 struct be_dma_mem *mem = &q->dma_mem; in be_queue_free()
159 struct be_dma_mem *mem = &q->dma_mem; in be_queue_alloc()
1436 entry = txo->q.dma_mem.va; in be_tx_timeout()
1446 entry = txo->cq.dma_mem.va; in be_tx_timeout()
/linux/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-eth.c3205 void *dma_mem, *key, *mask; in dpaa2_eth_set_vlan_qos() local
3219 dma_mem = kzalloc(DPAA2_CLASSIFIER_DMA_SIZE, GFP_KERNEL); in dpaa2_eth_set_vlan_qos()
3220 if (!dma_mem) in dpaa2_eth_set_vlan_qos()
3229 err = dpni_prepare_key_cfg(&kg_cfg, dma_mem); in dpaa2_eth_set_vlan_qos()
3238 qos_cfg.key_cfg_iova = dma_map_single(dev, dma_mem, in dpaa2_eth_set_vlan_qos()
3305 kfree(dma_mem); in dpaa2_eth_set_vlan_qos()
3751 u8 *dma_mem; in dpaa2_eth_set_dist_key() local
3781 dma_mem = kzalloc(DPAA2_CLASSIFIER_DMA_SIZE, GFP_KERNEL); in dpaa2_eth_set_dist_key()
3782 if (!dma_mem) in dpaa2_eth_set_dist_key()
3785 err = dpni_prepare_key_cfg(&cls_cfg, dma_mem); in dpaa2_eth_set_dist_key()
[all …]
A Ddpaa2-switch.c834 u8 *dma_mem; in dpaa2_switch_fdb_iterate() local
838 dma_mem = kzalloc(fdb_dump_size, GFP_KERNEL); in dpaa2_switch_fdb_iterate()
839 if (!dma_mem) in dpaa2_switch_fdb_iterate()
842 fdb_dump_iova = dma_map_single(dev, dma_mem, fdb_dump_size, in dpaa2_switch_fdb_iterate()
860 fdb_entries = (struct fdb_dump_entry *)dma_mem; in dpaa2_switch_fdb_iterate()
870 kfree(dma_mem); in dpaa2_switch_fdb_iterate()
877 kfree(dma_mem); in dpaa2_switch_fdb_iterate()
/linux/include/linux/
A Ddevice.h531 struct dma_coherent_mem *dma_mem; /* internal for coherent mem member

Completed in 95 milliseconds