Lines Matching refs:unit
56 int unit; member
206 mdev->port, mdev->unit); in maple_allocq()
210 static struct maple_device *maple_alloc_dev(int port, int unit) in maple_alloc_dev() argument
222 mdev->unit = unit; in maple_alloc_dev()
248 int port, unit, from, to, len; in maple_build_block() local
252 unit = mq->dev->unit; in maple_build_block()
255 to = (port << 6) | (unit > 0 ? (1 << (unit - 1)) & 0x1f : 0x20); in maple_build_block()
365 mdev->product_name, function, mdev->port, mdev->unit); in maple_attach_driver()
383 mdev->unit, function); in maple_attach_driver()
393 " (%d, %d), with error 0x%X\n", mdev->unit, in maple_attach_driver()
413 if (mdev->port == ds->port && mdev->unit == ds->unit) in check_maple_device()
499 ds.unit = k + 1; in maple_map_subunits()
527 killbit = (mdev->unit > 0 ? (1 << (mdev->unit - 1)) & 0x1f : 0x20); in maple_clean_submap()
538 if (likely(mdev->unit != 0)) { in maple_response_none()
557 mdev->port, mdev->unit); in maple_response_none()
581 if ((mdev->unit == 0) && (checked[mdev->port] == false)) { in maple_response_devinfo()
585 if (mdev->unit != 0) in maple_response_devinfo()
587 if (mdev->unit == 0) { in maple_response_devinfo()
593 if (mdev->unit == 0) { in maple_response_devinfo()
609 "file error 0x%X\n", mdev->port, mdev->unit, in maple_response_fileerr()
677 mdev->port, mdev->unit); in maple_dma_handler()
685 mdev->unit); in maple_dma_handler()