Lines Matching refs:umc_dev
64 struct umc_dev *umc_dev; member
97 struct device *dev = &whcrc->umc_dev->dev; in whcrc_cmd()
139 return umc_controller_reset(whcrc->umc_dev); in whcrc_reset()
192 struct device *dev = &whcrc->umc_dev->dev; in whcrc_irq_cb()
221 struct device *dev = &whcrc->umc_dev->dev; in whcrc_setup_rc_umc()
222 struct umc_dev *umc_dev = whcrc->umc_dev; in whcrc_setup_rc_umc() local
224 whcrc->area = umc_dev->resource.start; in whcrc_setup_rc_umc()
225 whcrc->rc_len = resource_size(&umc_dev->resource); in whcrc_setup_rc_umc()
240 result = request_irq(umc_dev->irq, whcrc_irq_cb, IRQF_SHARED, in whcrc_setup_rc_umc()
244 umc_dev->irq, result); in whcrc_setup_rc_umc()
249 whcrc->cmd_buf = dma_alloc_coherent(&umc_dev->dev, PAGE_SIZE, in whcrc_setup_rc_umc()
256 whcrc->evt_buf = dma_alloc_coherent(&umc_dev->dev, PAGE_SIZE, in whcrc_setup_rc_umc()
265 dma_free_coherent(&umc_dev->dev, PAGE_SIZE, whcrc->cmd_buf, in whcrc_setup_rc_umc()
268 free_irq(umc_dev->irq, whcrc); in whcrc_setup_rc_umc()
284 struct umc_dev *umc_dev = whcrc->umc_dev; in whcrc_release_rc_umc() local
286 dma_free_coherent(&umc_dev->dev, PAGE_SIZE, whcrc->evt_buf, in whcrc_release_rc_umc()
288 dma_free_coherent(&umc_dev->dev, PAGE_SIZE, whcrc->cmd_buf, in whcrc_release_rc_umc()
290 free_irq(umc_dev->irq, whcrc); in whcrc_release_rc_umc()
306 struct device *dev = &whcrc->umc_dev->dev; in whcrc_start_rc()
337 struct umc_dev *umc_dev = whcrc->umc_dev; in whcrc_stop_rc() local
343 whci_wait_for(&umc_dev->dev, whcrc->rc_base + URCSTS, in whcrc_stop_rc()
363 int whcrc_probe(struct umc_dev *umc_dev) in whcrc_probe() argument
368 struct device *dev = &umc_dev->dev; in whcrc_probe()
382 whcrc->umc_dev = umc_dev; in whcrc_probe()
400 umc_set_drvdata(umc_dev, whcrc); in whcrc_probe()
422 static void whcrc_remove(struct umc_dev *umc_dev) in whcrc_remove() argument
424 struct whcrc *whcrc = umc_get_drvdata(umc_dev); in whcrc_remove()
427 umc_set_drvdata(umc_dev, NULL); in whcrc_remove()
434 static int whcrc_pre_reset(struct umc_dev *umc) in whcrc_pre_reset()
443 static int whcrc_post_reset(struct umc_dev *umc) in whcrc_post_reset()