Lines Matching refs:dev
129 #define AV1394_DEV2STATE(dev) \
130 (ddi_get_soft_state(av1394_statep, AV1394_DEV2INST(dev)))
297 dev_t dev = (dev_t)arg;
303 if ((avp = AV1394_DEV2STATE(dev)) != NULL) {
311 *result = (void *)(uintptr_t)AV1394_DEV2INST(dev);
321 av1394_open(dev_t *dev, int flag, int otyp, cred_t *cr)
323 av1394_inst_t *avp = AV1394_DEV2STATE(*dev);
328 if (AV1394_DEV_IS_ISOCH(*dev)) {
330 } else if (AV1394_DEV_IS_ASYNC(*dev)) {
340 av1394_close(dev_t dev, int flag, int otyp, cred_t *cr)
342 av1394_inst_t *avp = AV1394_DEV2STATE(dev);
347 if (AV1394_DEV_IS_ISOCH(dev)) {
349 } else if (AV1394_DEV_IS_ASYNC(dev)) {
359 av1394_read(dev_t dev, struct uio *uiop, cred_t *cr)
361 av1394_inst_t *avp = AV1394_DEV2STATE(dev);
366 if (AV1394_DEV_IS_ISOCH(dev)) {
368 } else if (AV1394_DEV_IS_ASYNC(dev)) {
378 av1394_write(dev_t dev, struct uio *uiop, cred_t *cr)
380 av1394_inst_t *avp = AV1394_DEV2STATE(dev);
385 if (AV1394_DEV_IS_ISOCH(dev)) {
387 } else if (AV1394_DEV_IS_ASYNC(dev)) {
397 av1394_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cr, int *rvalp)
399 av1394_inst_t *avp = AV1394_DEV2STATE(dev);
404 if (AV1394_DEV_IS_ISOCH(dev)) {
406 } else if (AV1394_DEV_IS_ASYNC(dev)) {
416 av1394_devmap(dev_t dev, devmap_cookie_t dhp, offset_t off, size_t len,
419 av1394_inst_t *avp = AV1394_DEV2STATE(dev);
423 if ((avp != NULL) && (AV1394_DEV_IS_ISOCH(dev))) {
431 av1394_poll(dev_t dev, short events, int anyyet, short *reventsp,
434 av1394_inst_t *avp = AV1394_DEV2STATE(dev);
438 if ((avp != NULL) && AV1394_DEV_IS_ASYNC(dev)) {