Home
last modified time | relevance | path

Searched refs:dma_buf (Results 1 – 21 of 21) sorted by relevance

/freebsd-14.2/sys/dev/qlxgb/
H A Dqla_hw.c154 ha->hw.dma_buf.tx_ring.size = in qla_alloc_dma()
165 ha->hw.dma_buf.tx_ring.dma_b)); in qla_alloc_dma()
174 ha->hw.dma_buf.rds_ring[i].size = in qla_alloc_dma()
189 &ha->hw.dma_buf.rds_ring[j]); in qla_alloc_dma()
198 ha->hw.dma_buf.flags.rds_ring = 1; in qla_alloc_dma()
206 ha->hw.dma_buf.sds_ring[i].size = in qla_alloc_dma()
215 &ha->hw.dma_buf.sds_ring[j]); in qla_alloc_dma()
224 ha->hw.dma_buf.flags.sds_ring = 1; in qla_alloc_dma()
242 ha->hw.dma_buf.context.size = size; in qla_alloc_dma()
251 ha->hw.dma_buf.context.dma_b)); in qla_alloc_dma()
[all …]
H A Dqla_os.c543 dma_buf->alignment, in qla_alloc_dmabuf()
570 dma_buf->dma_map, in qla_alloc_dmabuf()
571 dma_buf->dma_b, in qla_alloc_dmabuf()
572 dma_buf->size, in qla_alloc_dmabuf()
578 bus_dmamem_free(dma_buf->dma_tag, dma_buf->dma_b, in qla_alloc_dmabuf()
579 dma_buf->dma_map); in qla_alloc_dmabuf()
584 dma_buf->dma_addr = b_addr; in qla_alloc_dmabuf()
589 (void *)dma_buf->dma_map, (void *)dma_buf->dma_b, in qla_alloc_dmabuf()
590 dma_buf->size)); in qla_alloc_dmabuf()
598 bus_dmamap_unload(dma_buf->dma_tag, dma_buf->dma_map); in qla_free_dmabuf()
[all …]
H A Dqla_inline.h178 rcv_desc = (q80_recv_desc_t *)ha->hw.dma_buf.rds_ring[ridx].dma_b; in qla_set_hw_rcv_desc()
193 bzero((void *)ha->hw.dma_buf.rds_ring[ridx].dma_b, in qla_init_hw_rcv_descriptors()
196 bzero((void *)ha->hw.dma_buf.rds_ring[ridx].dma_b, in qla_init_hw_rcv_descriptors()
H A Dqla_glbl.h53 extern int qla_alloc_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
54 extern void qla_free_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
H A Dqla_hw.h756 qla_dmabuf_t dma_buf; member
/freebsd-14.2/sys/dev/qlxge/
H A Dqls_os.c605 dma_buf->alignment, in qls_alloc_dmabuf()
632 dma_buf->dma_map, in qls_alloc_dmabuf()
633 dma_buf->dma_b, in qls_alloc_dmabuf()
634 dma_buf->size, in qls_alloc_dmabuf()
640 bus_dmamem_free(dma_buf->dma_tag, dma_buf->dma_b, in qls_alloc_dmabuf()
641 dma_buf->dma_map); in qls_alloc_dmabuf()
646 dma_buf->dma_addr = b_addr; in qls_alloc_dmabuf()
651 (void *)dma_buf->dma_map, (void *)dma_buf->dma_b, in qls_alloc_dmabuf()
652 dma_buf->size)); in qls_alloc_dmabuf()
660 bus_dmamap_unload(dma_buf->dma_tag, dma_buf->dma_map); in qls_free_dmabuf()
[all …]
H A Dqls_glbl.h47 extern int qls_alloc_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
48 extern void qls_free_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
/freebsd-14.2/sys/dev/mana/
H A Dhw_channel.c462 struct hwc_dma_buf *dma_buf; in mana_hwc_alloc_dma_buf() local
470 dma_buf = malloc(sizeof(*dma_buf) + in mana_hwc_alloc_dma_buf()
474 dma_buf->num_reqs = q_depth; in mana_hwc_alloc_dma_buf()
478 gmi = &dma_buf->mem_info; in mana_hwc_alloc_dma_buf()
486 virt_addr = dma_buf->mem_info.virt_addr; in mana_hwc_alloc_dma_buf()
490 hwc_wr = &dma_buf->reqs[i]; in mana_hwc_alloc_dma_buf()
498 *dma_buf_ptr = dma_buf; in mana_hwc_alloc_dma_buf()
501 free(dma_buf, M_DEVBUF); in mana_hwc_alloc_dma_buf()
507 struct hwc_dma_buf *dma_buf) in mana_hwc_dealloc_dma_buf() argument
509 if (!dma_buf) in mana_hwc_dealloc_dma_buf()
[all …]
/freebsd-14.2/sys/dev/qlxgbe/
H A Dql_os.c738 dma_buf->alignment, in ql_alloc_dmabuf()
765 dma_buf->dma_map, in ql_alloc_dmabuf()
766 dma_buf->dma_b, in ql_alloc_dmabuf()
767 dma_buf->size, in ql_alloc_dmabuf()
773 bus_dmamem_free(dma_buf->dma_tag, dma_buf->dma_b, in ql_alloc_dmabuf()
774 dma_buf->dma_map); in ql_alloc_dmabuf()
779 dma_buf->dma_addr = b_addr; in ql_alloc_dmabuf()
784 (void *)dma_buf->dma_map, (void *)dma_buf->dma_b, in ql_alloc_dmabuf()
785 dma_buf->size)); in ql_alloc_dmabuf()
793 bus_dmamap_unload(dma_buf->dma_tag, dma_buf->dma_map); in ql_free_dmabuf()
[all …]
H A Dql_hw.c1273 hw->dma_buf.tx_ring.alignment = 8; in ql_alloc_dma()
1308 hw->dma_buf.tx_ring.dma_b)); in ql_alloc_dma()
1315 hw->dma_buf.rds_ring[i].size = in ql_alloc_dma()
1329 hw->dma_buf.rds_ring[i].dma_b)); in ql_alloc_dma()
1332 hw->dma_buf.flags.rds_ring = 1; in ql_alloc_dma()
1340 hw->dma_buf.sds_ring[i].size = in ql_alloc_dma()
1355 hw->dma_buf.sds_ring[i].dma_b)); in ql_alloc_dma()
1362 hw->dma_buf.flags.sds_ring = 1; in ql_alloc_dma()
2892 ha->hw.dma_buf.sds_ring[i].size); in ql_init_hw_if()
4535 ha->hw.dma_buf.flags.minidump = 1; in ql_minidump_init()
[all …]
H A Dql_inline.h131 rcv_desc = (q80_recv_desc_t *)ha->hw.dma_buf.rds_ring[r_idx].dma_b; in qla_set_hw_rcv_desc()
148 bzero((void *)ha->hw.dma_buf.rds_ring[i].dma_b, in qla_init_hw_rcv_descriptors()
H A Dql_glbl.h47 extern int ql_alloc_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
48 extern void ql_free_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
H A Dql_ioctl.c521 bcopy(ha->hw.dma_buf.tx_ring.dma_b, ptr, size); in ql_capture_drvr_state()
531 bcopy(ha->hw.dma_buf.rds_ring[i].dma_b, ptr, hdr->rxr_size); in ql_capture_drvr_state()
543 bcopy(ha->hw.dma_buf.sds_ring[i].dma_b, ptr, hdr->sds_ring_size); in ql_capture_drvr_state()
H A Dql_hw.h1618 qla_dmabuf_t dma_buf; member
/freebsd-14.2/sys/dev/sfxge/
H A Dsfxge_port.c61 efsys_mem_t *esmp = &(port->mac_stats.dma_buf); in sfxge_mac_stat_update()
467 (void)efx_mac_stats_periodic(enp, &port->mac_stats.dma_buf, 0, B_FALSE); in sfxge_port_stop()
526 if ((rc = efx_mac_stats_periodic(enp, &port->mac_stats.dma_buf, in sfxge_port_start()
553 (void)efx_mac_stats_periodic(enp, &port->mac_stats.dma_buf, 0, B_FALSE); in sfxge_port_start()
572 efsys_mem_t *esmp = &port->phy_stats.dma_buf; in sfxge_phy_stat_update()
662 esmp = &port->mac_stats.dma_buf; in sfxge_port_fini()
672 sfxge_dma_free(&port->phy_stats.dma_buf); in sfxge_port_fini()
727 &port->mac_stats.dma_buf, in sfxge_port_stats_update_period_ms_handler()
757 mac_stats_buf = &port->mac_stats.dma_buf; in sfxge_port_init()
758 phy_stats_buf = &port->phy_stats.dma_buf; in sfxge_port_init()
H A Dsfxge.h230 efsys_mem_t dma_buf; member
/freebsd-14.2/sys/dev/drm2/
H A DdrmP.h633 struct dma_buf *export_dma_buf;
877 struct dma_buf * (*gem_prime_export)(struct drm_device *dev,
881 struct dma_buf *dma_buf);
1397 …orted_buf_handle(struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf, uint32_t han…
1398 …orted_buf_handle(struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf, uint32_t *ha…
1399 …me_remove_imported_buf_handle(struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf);
1402 int drm_prime_lookup_obj(struct drm_device *dev, struct dma_buf *buf,
/freebsd-14.2/sys/dev/qlnx/qlnxe/
H A Dqlnx_os.c4976 bus_dmamem_free(dma_buf->dma_tag, dma_buf->dma_b, in qlnx_alloc_dmabuf()
4992 bus_dmamap_unload(dma_buf->dma_tag, dma_buf->dma_map); in qlnx_free_dmabuf()
4993 bus_dmamem_free(dma_buf->dma_tag, dma_buf->dma_b, dma_buf->dma_map); in qlnx_free_dmabuf()
5001 qlnx_dma_t dma_buf; in qlnx_dma_alloc_coherent() local
5012 dma_buf.alignment = 8; in qlnx_dma_alloc_coherent()
5016 bzero((uint8_t *)dma_buf.dma_b, dma_buf.size); in qlnx_dma_alloc_coherent()
5018 *phys = dma_buf.dma_addr; in qlnx_dma_alloc_coherent()
5025 (void *)dma_buf.dma_map, (void *)dma_buf.dma_tag, in qlnx_dma_alloc_coherent()
5026 dma_buf.dma_b, (void *)dma_buf.dma_addr, size); in qlnx_dma_alloc_coherent()
5028 return (dma_buf.dma_b); in qlnx_dma_alloc_coherent()
[all …]
/freebsd-14.2/sys/dev/ice/
H A Dice_controlq.c1026 struct ice_dma_mem *dma_buf = NULL; in ice_sq_send_cmd_nolock() local
1092 dma_buf = &cq->sq.r.sq_bi[cq->sq.next_to_use]; in ice_sq_send_cmd_nolock()
1094 ice_memcpy(dma_buf->va, buf, buf_size, ICE_NONDMA_TO_DMA); in ice_sq_send_cmd_nolock()
1101 CPU_TO_LE32(ICE_HI_DWORD(dma_buf->pa)); in ice_sq_send_cmd_nolock()
1103 CPU_TO_LE32(ICE_LO_DWORD(dma_buf->pa)); in ice_sq_send_cmd_nolock()
1142 ice_memcpy(buf, dma_buf->va, copy_size, in ice_sq_send_cmd_nolock()
/freebsd-14.2/sys/dev/usb/wlan/
H A Dif_urtw.c1479 int ndata, int maxsz, void *dma_buf) in urtw_alloc_data_list() argument
1487 if (dma_buf == NULL) { in urtw_alloc_data_list()
1498 dp->buf = ((uint8_t *)dma_buf) + in urtw_alloc_data_list()
4144 void *dma_buf = usbd_xfer_get_frame_buffer(xfer, 0); in urtw_bulk_tx_status_callback() local
4154 memcpy(dma_buf, &sc->sc_txstatus, sizeof(uint64_t)); in urtw_bulk_tx_status_callback()
H A Dif_uath.c934 int ndata, int maxsz, void *dma_buf) in uath_alloc_data_list() argument
942 if (dma_buf == NULL) { in uath_alloc_data_list()
954 dp->buf = ((uint8_t *)dma_buf) + (i * maxsz); in uath_alloc_data_list()