Home
last modified time | relevance | path

Searched refs:dma_index (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/tty/serial/8250/
H A D8250_mid.c43 int dma_index; member
58 mid->dma_index = 0; in pnw_setup()
61 mid->dma_index = 1; in pnw_setup()
64 mid->dma_index = 2; in pnw_setup()
92 err = hsu_dma_get_status(chip, mid->dma_index * 2 + 1, &status); in tng_handle_irq()
97 ret |= hsu_dma_do_irq(chip, mid->dma_index * 2 + 1, status); in tng_handle_irq()
100 err = hsu_dma_get_status(chip, mid->dma_index * 2, &status); in tng_handle_irq()
104 ret |= hsu_dma_do_irq(chip, mid->dma_index * 2, status); in tng_handle_irq()
124 mid->dma_index = index; in tng_setup()
271 rx_param->chan_id = mid->dma_index * 2 + 1; in mid8250_dma_setup()
[all …]
/linux/drivers/infiniband/core/
H A Dumem_odp.c298 unsigned int dma_index, in ib_umem_odp_map_dma_single_page() argument
303 dma_addr_t *dma_addr = &umem_odp->dma_list[dma_index]; in ib_umem_odp_map_dma_single_page()
352 int pfn_index, dma_index, ret = 0, start_idx; in ib_umem_odp_map_dma_and_lock() local
407 dma_index = start_idx; in ib_umem_odp_map_dma_and_lock()
416 pfn_index += 1 << (page_shift - PAGE_SHIFT), dma_index++) { in ib_umem_odp_map_dma_and_lock()
427 WARN_ON(umem_odp->dma_list[dma_index]); in ib_umem_odp_map_dma_and_lock()
448 umem_odp, dma_index, hmm_pfn_to_page(range.hmm_pfns[pfn_index]), in ib_umem_odp_map_dma_and_lock()
458 ret = dma_index - start_idx; in ib_umem_odp_map_dma_and_lock()
/linux/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-gadget.c77 int dma_index; in cdns2_get_dma_pos() local
79 dma_index = readl(&pdev->adma_regs->ep_traddr) - pep->ring.dma; in cdns2_get_dma_pos()
81 return dma_index / TRB_SIZE; in cdns2_get_dma_pos()
305 int dma_index; in cdns2_wa1_tray_restore_cycle_bit() local
309 dma_index = cdns2_get_dma_pos(pdev, pep); in cdns2_wa1_tray_restore_cycle_bit()
311 if (!doorbell || dma_index != pep->wa1_trb_index) in cdns2_wa1_tray_restore_cycle_bit()
320 int doorbell, dma_index; in cdns2_prepare_ring() local
334 dma_index = cdns2_get_dma_pos(pdev, pep); in cdns2_prepare_ring()
337 if (doorbell && dma_index == TRBS_PER_SEGMENT - 1) { in cdns2_prepare_ring()
/linux/drivers/comedi/drivers/
H A Ddt282x.c314 static int dt282x_prep_ai_dma(struct comedi_device *dev, int dma_index, int n) in dt282x_prep_ai_dma() argument
318 struct comedi_isadma_desc *desc = &dma->desc[dma_index]; in dt282x_prep_ai_dma()
337 static int dt282x_prep_ao_dma(struct comedi_device *dev, int dma_index, int n) in dt282x_prep_ao_dma() argument
341 struct comedi_isadma_desc *desc = &dma->desc[dma_index]; in dt282x_prep_ao_dma()
/linux/drivers/usb/cdns3/
H A Dcdns3-gadget.c118 int dma_index; in cdns3_get_dma_pos() local
120 dma_index = readl(&priv_dev->regs->ep_traddr) - priv_ep->trb_pool_dma; in cdns3_get_dma_pos()
122 return dma_index / TRB_SIZE; in cdns3_get_dma_pos()
981 int dma_index; in cdns3_wa1_tray_restore_cycle_bit() local
985 dma_index = cdns3_get_dma_pos(priv_dev, priv_ep); in cdns3_wa1_tray_restore_cycle_bit()
987 if (!doorbell || dma_index != priv_ep->wa1_trb_index) in cdns3_wa1_tray_restore_cycle_bit()
1164 int doorbell, dma_index; in cdns3_ep_run_transfer() local
1168 dma_index = cdns3_get_dma_pos(priv_dev, priv_ep); in cdns3_ep_run_transfer()
1171 if (doorbell && dma_index == priv_ep->num_trbs - 1) { in cdns3_ep_run_transfer()