Home
last modified time | relevance | path

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

/freebsd-13.1/sys/dev/qlxgb/
H A Dqla_hw.c156 ha->hw.dma_buf.tx_ring.size = in qla_alloc_dma()
167 ha->hw.dma_buf.tx_ring.dma_b)); in qla_alloc_dma()
176 ha->hw.dma_buf.rds_ring[i].size = in qla_alloc_dma()
191 &ha->hw.dma_buf.rds_ring[j]); in qla_alloc_dma()
200 ha->hw.dma_buf.flags.rds_ring = 1; in qla_alloc_dma()
208 ha->hw.dma_buf.sds_ring[i].size = in qla_alloc_dma()
217 &ha->hw.dma_buf.sds_ring[j]); in qla_alloc_dma()
226 ha->hw.dma_buf.flags.sds_ring = 1; in qla_alloc_dma()
244 ha->hw.dma_buf.context.size = size; in qla_alloc_dma()
253 ha->hw.dma_buf.context.dma_b)); in qla_alloc_dma()
[all …]
H A Dqla_os.c550 dma_buf->alignment, in qla_alloc_dmabuf()
577 dma_buf->dma_map, in qla_alloc_dmabuf()
578 dma_buf->dma_b, in qla_alloc_dmabuf()
579 dma_buf->size, in qla_alloc_dmabuf()
585 bus_dmamem_free(dma_buf->dma_tag, dma_buf->dma_b, in qla_alloc_dmabuf()
586 dma_buf->dma_map); in qla_alloc_dmabuf()
591 dma_buf->dma_addr = b_addr; in qla_alloc_dmabuf()
596 (void *)dma_buf->dma_map, (void *)dma_buf->dma_b, in qla_alloc_dmabuf()
597 dma_buf->size)); in qla_alloc_dmabuf()
605 bus_dmamap_unload(dma_buf->dma_tag, dma_buf->dma_map); in qla_free_dmabuf()
[all …]
H A Dqla_inline.h180 rcv_desc = (q80_recv_desc_t *)ha->hw.dma_buf.rds_ring[ridx].dma_b; in qla_set_hw_rcv_desc()
195 bzero((void *)ha->hw.dma_buf.rds_ring[ridx].dma_b, in qla_init_hw_rcv_descriptors()
198 bzero((void *)ha->hw.dma_buf.rds_ring[ridx].dma_b, in qla_init_hw_rcv_descriptors()
H A Dqla_glbl.h55 extern int qla_alloc_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
56 extern void qla_free_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
H A Dqla_hw.h758 qla_dmabuf_t dma_buf; member
/freebsd-13.1/sys/dev/qlxge/
H A Dqls_os.c612 dma_buf->alignment, in qls_alloc_dmabuf()
639 dma_buf->dma_map, in qls_alloc_dmabuf()
640 dma_buf->dma_b, in qls_alloc_dmabuf()
641 dma_buf->size, in qls_alloc_dmabuf()
647 bus_dmamem_free(dma_buf->dma_tag, dma_buf->dma_b, in qls_alloc_dmabuf()
648 dma_buf->dma_map); in qls_alloc_dmabuf()
653 dma_buf->dma_addr = b_addr; in qls_alloc_dmabuf()
658 (void *)dma_buf->dma_map, (void *)dma_buf->dma_b, in qls_alloc_dmabuf()
659 dma_buf->size)); in qls_alloc_dmabuf()
667 bus_dmamap_unload(dma_buf->dma_tag, dma_buf->dma_map); in qls_free_dmabuf()
[all …]
H A Dqls_glbl.h49 extern int qls_alloc_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
50 extern void qls_free_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
/freebsd-13.1/sys/dev/qlxgbe/
H A Dql_os.c744 dma_buf->alignment, in ql_alloc_dmabuf()
771 dma_buf->dma_map, in ql_alloc_dmabuf()
772 dma_buf->dma_b, in ql_alloc_dmabuf()
773 dma_buf->size, in ql_alloc_dmabuf()
779 bus_dmamem_free(dma_buf->dma_tag, dma_buf->dma_b, in ql_alloc_dmabuf()
780 dma_buf->dma_map); in ql_alloc_dmabuf()
785 dma_buf->dma_addr = b_addr; in ql_alloc_dmabuf()
790 (void *)dma_buf->dma_map, (void *)dma_buf->dma_b, in ql_alloc_dmabuf()
791 dma_buf->size)); in ql_alloc_dmabuf()
799 bus_dmamap_unload(dma_buf->dma_tag, dma_buf->dma_map); in ql_free_dmabuf()
[all …]
H A Dql_hw.c1275 hw->dma_buf.tx_ring.alignment = 8; in ql_alloc_dma()
1310 hw->dma_buf.tx_ring.dma_b)); in ql_alloc_dma()
1317 hw->dma_buf.rds_ring[i].size = in ql_alloc_dma()
1331 hw->dma_buf.rds_ring[i].dma_b)); in ql_alloc_dma()
1334 hw->dma_buf.flags.rds_ring = 1; in ql_alloc_dma()
1342 hw->dma_buf.sds_ring[i].size = in ql_alloc_dma()
1357 hw->dma_buf.sds_ring[i].dma_b)); in ql_alloc_dma()
1364 hw->dma_buf.flags.sds_ring = 1; in ql_alloc_dma()
2916 ha->hw.dma_buf.sds_ring[i].size); in ql_init_hw_if()
4559 ha->hw.dma_buf.flags.minidump = 1; in ql_minidump_init()
[all …]
H A Dql_inline.h133 rcv_desc = (q80_recv_desc_t *)ha->hw.dma_buf.rds_ring[r_idx].dma_b; in qla_set_hw_rcv_desc()
150 bzero((void *)ha->hw.dma_buf.rds_ring[i].dma_b, in qla_init_hw_rcv_descriptors()
H A Dql_glbl.h49 extern int ql_alloc_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
50 extern void ql_free_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
H A Dql_ioctl.c523 bcopy(ha->hw.dma_buf.tx_ring.dma_b, ptr, size); in ql_capture_drvr_state()
533 bcopy(ha->hw.dma_buf.rds_ring[i].dma_b, ptr, hdr->rxr_size); in ql_capture_drvr_state()
545 bcopy(ha->hw.dma_buf.sds_ring[i].dma_b, ptr, hdr->sds_ring_size); in ql_capture_drvr_state()
H A Dql_hw.h1620 qla_dmabuf_t dma_buf; member
/freebsd-13.1/sys/dev/sfxge/
H A Dsfxge_port.c63 efsys_mem_t *esmp = &(port->mac_stats.dma_buf); in sfxge_mac_stat_update()
469 (void)efx_mac_stats_periodic(enp, &port->mac_stats.dma_buf, 0, B_FALSE); in sfxge_port_stop()
529 if ((rc = efx_mac_stats_periodic(enp, &port->mac_stats.dma_buf, in sfxge_port_start()
556 (void)efx_mac_stats_periodic(enp, &port->mac_stats.dma_buf, 0, B_FALSE); in sfxge_port_start()
575 efsys_mem_t *esmp = &port->phy_stats.dma_buf; in sfxge_phy_stat_update()
665 esmp = &port->mac_stats.dma_buf; in sfxge_port_fini()
675 sfxge_dma_free(&port->phy_stats.dma_buf); in sfxge_port_fini()
730 &port->mac_stats.dma_buf, in sfxge_port_stats_update_period_ms_handler()
760 mac_stats_buf = &port->mac_stats.dma_buf; in sfxge_port_init()
761 phy_stats_buf = &port->phy_stats.dma_buf; in sfxge_port_init()
H A Dsfxge.h232 efsys_mem_t dma_buf; member
/freebsd-13.1/sys/dev/drm2/
H A DdrmP.h635 struct dma_buf *export_dma_buf;
879 struct dma_buf * (*gem_prime_export)(struct drm_device *dev,
883 struct dma_buf *dma_buf);
1399 …orted_buf_handle(struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf, uint32_t han…
1400 …orted_buf_handle(struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf, uint32_t *ha…
1401 …me_remove_imported_buf_handle(struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf);
1404 int drm_prime_lookup_obj(struct drm_device *dev, struct dma_buf *buf,
/freebsd-13.1/sys/dev/qlnx/qlnxe/
H A Dqlnx_os.c5082 bus_dmamem_free(dma_buf->dma_tag, dma_buf->dma_b, in qlnx_alloc_dmabuf()
5098 bus_dmamap_unload(dma_buf->dma_tag, dma_buf->dma_map); in qlnx_free_dmabuf()
5099 bus_dmamem_free(dma_buf->dma_tag, dma_buf->dma_b, dma_buf->dma_map); in qlnx_free_dmabuf()
5107 qlnx_dma_t dma_buf; in qlnx_dma_alloc_coherent() local
5120 dma_buf.alignment = 8; in qlnx_dma_alloc_coherent()
5124 bzero((uint8_t *)dma_buf.dma_b, dma_buf.size); in qlnx_dma_alloc_coherent()
5126 *phys = dma_buf.dma_addr; in qlnx_dma_alloc_coherent()
5133 (void *)dma_buf.dma_map, (void *)dma_buf.dma_tag, in qlnx_dma_alloc_coherent()
5134 dma_buf.dma_b, (void *)dma_buf.dma_addr, size); in qlnx_dma_alloc_coherent()
5136 return (dma_buf.dma_b); in qlnx_dma_alloc_coherent()
[all …]
/freebsd-13.1/sys/dev/ice/
H A Dice_controlq.c931 struct ice_dma_mem *dma_buf = NULL; in ice_sq_send_cmd_nolock() local
1004 dma_buf = &cq->sq.r.sq_bi[cq->sq.next_to_use]; in ice_sq_send_cmd_nolock()
1006 ice_memcpy(dma_buf->va, buf, buf_size, ICE_NONDMA_TO_DMA); in ice_sq_send_cmd_nolock()
1013 CPU_TO_LE32(ICE_HI_DWORD(dma_buf->pa)); in ice_sq_send_cmd_nolock()
1015 CPU_TO_LE32(ICE_LO_DWORD(dma_buf->pa)); in ice_sq_send_cmd_nolock()
1049 ice_memcpy(buf, dma_buf->va, copy_size, in ice_sq_send_cmd_nolock()
/freebsd-13.1/sys/dev/usb/wlan/
H A Dif_urtw.c1475 int ndata, int maxsz, void *dma_buf) in urtw_alloc_data_list() argument
1483 if (dma_buf == NULL) { in urtw_alloc_data_list()
1494 dp->buf = ((uint8_t *)dma_buf) + in urtw_alloc_data_list()
4145 void *dma_buf = usbd_xfer_get_frame_buffer(xfer, 0); in urtw_bulk_tx_status_callback() local
4155 memcpy(dma_buf, &sc->sc_txstatus, sizeof(uint64_t)); in urtw_bulk_tx_status_callback()
H A Dif_uath.c936 int ndata, int maxsz, void *dma_buf) in uath_alloc_data_list() argument
944 if (dma_buf == NULL) { in uath_alloc_data_list()
956 dp->buf = ((uint8_t *)dma_buf) + (i * maxsz); in uath_alloc_data_list()