Lines Matching defs:instance

66 static int tavor_drv_init(tavor_state_t *state, dev_info_t *dip, int instance);
277 minor_t instance;
284 instance = TAVOR_DEV_INSTANCE(dev);
285 state = ddi_get_soft_state(tavor_statep, instance);
297 instance = TAVOR_DEV_INSTANCE(dev);
298 *result = (void *)(uintptr_t)instance;
321 minor_t instance;
329 instance = TAVOR_DEV_INSTANCE(*devp);
330 state = ddi_get_soft_state(tavor_statep, instance);
354 * instance and the UAR page index) or we return the current minor
376 status = tavor_umap_db_find_nolock(instance, key,
414 umapdb = tavor_umap_db_alloc(instance, key,
430 * the UAR page index (15 bits) and the device instance number
434 TAVOR_MINORNUM_SHIFT) | instance);
441 umapdb2 = tavor_umap_db_alloc(instance, dev,
464 * index (top 16 bits) and the device instance number
468 TAVOR_MINORNUM_SHIFT) | instance);
490 minor_t instance;
496 instance = TAVOR_DEV_INSTANCE(dev);
497 state = ddi_get_soft_state(tavor_statep, instance);
528 status = tavor_umap_db_find_nolock(instance, key, MLNX_UMAP_PID_RSRC,
555 status = tavor_umap_db_find_nolock(instance, key,
584 int instance;
595 instance = ddi_get_instance(dip);
596 status = ddi_soft_state_zalloc(tavor_statep, instance);
600 "attach_ssz_fail", instance);
604 state = ddi_get_soft_state(tavor_statep, instance);
606 ddi_soft_state_free(tavor_statep, instance);
609 "attach_gss_fail", instance);
627 status = tavor_drv_init(state, dip, instance);
636 status = ddi_create_minor_node(dip, "devctl", S_IFCHR, instance,
723 cmn_err(CE_NOTE, "tavor%d: driver failed to attach: %s", instance,
726 ddi_soft_state_free(tavor_statep, instance);
743 int instance, status;
747 instance = ddi_get_instance(dip);
748 state = ddi_get_soft_state(tavor_statep, instance);
832 ddi_soft_state_free(tavor_statep, instance);
857 tavor_drv_init(tavor_state_t *state, dev_info_t *dip, int instance)
863 /* Save away devinfo and instance */
865 state->ts_instance = instance;
906 cmn_err(CE_NOTE, "tavor%d: error during attach: %s", instance,