Lines Matching refs:kdev
135 static struct knav_dma_pool_device *kdev; variable
229 dev_err(kdev->dev, "timeout waiting for teardown\n"); in chan_teardown()
261 dev_dbg(kdev->dev, "channel stopped\n"); in chan_stop()
362 list_for_each_entry(dma, &kdev->list, list) { in knav_dma_debug_show()
389 dev_err(kdev->dev, "No 'ti,navigator-dma-names' property\n"); in of_channel_match_helper()
395 dev_err(kdev->dev, "Missing the phandle args name %s\n", name); in of_channel_match_helper()
400 dev_err(kdev->dev, "Missing args for %s\n", name); in of_channel_match_helper()
424 if (!kdev) { in knav_dma_open_channel()
431 dev_err(kdev->dev, "No DMA instance with name %s\n", name); in knav_dma_open_channel()
435 dev_dbg(kdev->dev, "initializing %s channel %d from DMA %s\n", in knav_dma_open_channel()
442 dev_err(kdev->dev, "bad direction\n"); in knav_dma_open_channel()
447 list_for_each_entry(dma, &kdev->list, list) { in knav_dma_open_channel()
454 dev_err(kdev->dev, "No DMA instance with name %s\n", instance); in knav_dma_open_channel()
474 dev_err(kdev->dev, "channel %d is not in DMA %s\n", in knav_dma_open_channel()
481 dev_err(kdev->dev, "channel %d config miss-match\n", in knav_dma_open_channel()
493 dev_dbg(kdev->dev, "channel %d opened from DMA %s\n", in knav_dma_open_channel()
510 if (!kdev) { in knav_dma_close_channel()
521 dev_dbg(kdev->dev, "channel %d or flow %d closed from DMA %s\n", in knav_dma_close_channel()
530 struct device *dev = kdev->dev; in pktdma_get_regs()
542 regs = devm_ioremap_resource(kdev->dev, &res); in pktdma_get_regs()
559 dev_dbg(kdev->dev, "rx flow(%d) (%p)\n", chan->flow, chan->reg_rx_flow); in pktdma_init_rx_chan()
572 dev_dbg(kdev->dev, "tx channel(%d) (%p)\n", chan->channel, chan->reg_chan); in pktdma_init_tx_chan()
581 struct device *dev = kdev->dev; in pktdma_init_chan()
620 dma = devm_kzalloc(kdev->dev, sizeof(*dma), GFP_KERNEL); in dma_init()
622 dev_err(kdev->dev, "could not allocate driver mem\n"); in dma_init()
629 dev_err(kdev->dev, "unspecified navigator cloud addresses\n"); in dma_init()
635 dev_warn(kdev->dev, "too many queue mgrs(>%d) rest ignored\n", in dma_init()
644 dev_err(kdev->dev, "invalid navigator cloud addresses\n"); in dma_init()
652 dev_err(kdev->dev, "bad size %pa for global regs\n", &size); in dma_init()
684 dev_dbg(kdev->dev, "unspecified rx timeout using value %d\n", in dma_init()
707 list_add_tail(&dma->list, &kdev->list); in dma_init()
719 …dev_info(kdev->dev, "DMA %s registered %d logical channels, flows %d, tx chans: %d, rx chans: %d%s… in dma_init()
739 kdev = devm_kzalloc(dev, in knav_dma_probe()
741 if (!kdev) { in knav_dma_probe()
746 kdev->dev = dev; in knav_dma_probe()
747 INIT_LIST_HEAD(&kdev->list); in knav_dma_probe()
749 pm_runtime_enable(kdev->dev); in knav_dma_probe()
750 ret = pm_runtime_get_sync(kdev->dev); in knav_dma_probe()
752 pm_runtime_put_noidle(kdev->dev); in knav_dma_probe()
753 dev_err(kdev->dev, "unable to enable pktdma, err %d\n", ret); in knav_dma_probe()
767 if (list_empty(&kdev->list)) { in knav_dma_probe()
780 pm_runtime_put_sync(kdev->dev); in knav_dma_probe()
782 pm_runtime_disable(kdev->dev); in knav_dma_probe()
791 list_for_each_entry(dma, &kdev->list, list) { in knav_dma_remove()