Lines Matching refs:unit
57 int unit; member
207 mdev->port, mdev->unit); in maple_allocq()
211 static struct maple_device *maple_alloc_dev(int port, int unit) in maple_alloc_dev() argument
223 mdev->unit = unit; in maple_alloc_dev()
249 int port, unit, from, to, len; in maple_build_block() local
253 unit = mq->dev->unit; in maple_build_block()
256 to = (port << 6) | (unit > 0 ? (1 << (unit - 1)) & 0x1f : 0x20); in maple_build_block()
366 mdev->product_name, function, mdev->port, mdev->unit); in maple_attach_driver()
384 mdev->unit, function); in maple_attach_driver()
394 " (%d, %d), with error 0x%X\n", mdev->unit, in maple_attach_driver()
414 if (mdev->port == ds->port && mdev->unit == ds->unit) in check_maple_device()
500 ds.unit = k + 1; in maple_map_subunits()
528 killbit = (mdev->unit > 0 ? (1 << (mdev->unit - 1)) & 0x1f : 0x20); in maple_clean_submap()
539 if (likely(mdev->unit != 0)) { in maple_response_none()
558 mdev->port, mdev->unit); in maple_response_none()
582 if ((mdev->unit == 0) && (checked[mdev->port] == false)) { in maple_response_devinfo()
586 if (mdev->unit != 0) in maple_response_devinfo()
588 if (mdev->unit == 0) { in maple_response_devinfo()
594 if (mdev->unit == 0) { in maple_response_devinfo()
610 "file error 0x%X\n", mdev->port, mdev->unit, in maple_response_fileerr()
678 mdev->port, mdev->unit); in maple_dma_handler()
686 mdev->unit); in maple_dma_handler()