instance           58 arch/arm/include/asm/efi.h #define efi_table_attr(table, attr, instance)				\
instance           59 arch/arm/include/asm/efi.h 	((table##_t *)instance)->attr
instance           61 arch/arm/include/asm/efi.h #define efi_call_proto(protocol, f, instance, ...)			\
instance           62 arch/arm/include/asm/efi.h 	((protocol##_t *)instance)->f(instance, ##__VA_ARGS__)
instance          340 arch/arm/mach-davinci/devices-da8xx.c int __init da8xx_register_i2c(int instance,
instance          345 arch/arm/mach-davinci/devices-da8xx.c 	if (instance == 0)
instance          347 arch/arm/mach-davinci/devices-da8xx.c 	else if (instance == 1)
instance         1068 arch/arm/mach-davinci/devices-da8xx.c int __init da8xx_register_spi_bus(int instance, unsigned num_chipselect)
instance         1070 arch/arm/mach-davinci/devices-da8xx.c 	if (instance < 0 || instance > 1)
instance         1073 arch/arm/mach-davinci/devices-da8xx.c 	da8xx_spi_pdata[instance].num_chipselect = num_chipselect;
instance         1075 arch/arm/mach-davinci/devices-da8xx.c 	if (instance == 1 && cpu_is_davinci_da850()) {
instance         1080 arch/arm/mach-davinci/devices-da8xx.c 	return platform_device_register(&da8xx_spi_device[instance]);
instance          102 arch/arm/mach-davinci/include/mach/da8xx.h int da8xx_register_i2c(int instance, struct davinci_i2c_platform_data *pdata);
instance          103 arch/arm/mach-davinci/include/mach/da8xx.h int da8xx_register_spi_bus(int instance, unsigned num_chipselect);
instance          101 arch/arm64/include/asm/efi.h #define efi_table_attr(table, attr, instance)				\
instance          102 arch/arm64/include/asm/efi.h 	((table##_t *)instance)->attr
instance          104 arch/arm64/include/asm/efi.h #define efi_call_proto(protocol, f, instance, ...)			\
instance          105 arch/arm64/include/asm/efi.h 	((protocol##_t *)instance)->f(instance, ##__VA_ARGS__)
instance          283 arch/mips/ar7/platform.c static void __init cpmac_get_mac(int instance, unsigned char *dev_addr)
instance          287 arch/mips/ar7/platform.c 	sprintf(name, "mac%c", 'a' + instance);
instance          289 arch/mips/ar7/platform.c 	if (!mac && instance) {
instance          201 arch/mips/mm/tlbex.c static void uasm_bgezl_hazard(u32 **p, struct uasm_reloc **r, int instance)
instance          203 arch/mips/mm/tlbex.c 	switch (instance) {
instance          205 arch/mips/mm/tlbex.c 		uasm_il_bgezl(p, r, 0, label_tlbw_hazard_0 + instance);
instance          212 arch/mips/mm/tlbex.c static void uasm_bgezl_label(struct uasm_label **l, u32 **p, int instance)
instance          214 arch/mips/mm/tlbex.c 	switch (instance) {
instance          216 arch/mips/mm/tlbex.c 		uasm_build_label(l, *p, label_tlbw_hazard_0 + instance);
instance          178 arch/sparc/include/asm/oplib_32.h int cpu_find_by_instance(int instance, phandle *prom_node, int *mid);
instance           74 arch/sparc/kernel/devices.c static int cpu_instance_compare(phandle nd, int instance, void *_arg)
instance           78 arch/sparc/kernel/devices.c 	if (instance == desired_instance)
instance           83 arch/sparc/kernel/devices.c int cpu_find_by_instance(int instance, phandle *prom_node, int *mid)
instance           85 arch/sparc/kernel/devices.c 	return __cpu_find_by(cpu_instance_compare, (void *)instance,
instance           89 arch/sparc/kernel/devices.c static int cpu_mid_compare(phandle nd, int instance, void *_arg)
instance          232 arch/sparc/kernel/smp_32.c 	int instance, mid;
instance          234 arch/sparc/kernel/smp_32.c 	instance = 0;
instance          235 arch/sparc/kernel/smp_32.c 	while (!cpu_find_by_instance(instance, NULL, &mid)) {
instance          240 arch/sparc/kernel/smp_32.c 		instance++;
instance          224 arch/x86/include/asm/efi.h #define efi_table_attr(table, attr, instance)				\
instance          226 arch/x86/include/asm/efi.h 		((table##_64_t *)(unsigned long)instance)->attr :	\
instance          227 arch/x86/include/asm/efi.h 		((table##_32_t *)(unsigned long)instance)->attr)
instance          229 arch/x86/include/asm/efi.h #define efi_call_proto(protocol, f, instance, ...)			\
instance          230 arch/x86/include/asm/efi.h 	__efi_early()->call(efi_table_attr(protocol, f, instance),	\
instance          231 arch/x86/include/asm/efi.h 		instance, ##__VA_ARGS__)
instance           49 arch/x86/pci/sta2x11-fixup.c 	struct sta2x11_instance *instance;
instance           51 arch/x86/pci/sta2x11-fixup.c 	instance = kzalloc(sizeof(*instance), GFP_ATOMIC);
instance           52 arch/x86/pci/sta2x11-fixup.c 	if (!instance)
instance           55 arch/x86/pci/sta2x11-fixup.c 	instance->bus0 = pdev->subordinate->number + 1;
instance           64 arch/x86/pci/sta2x11-fixup.c 	list_add(&instance->list, &sta2x11_instance_list);
instance           73 arch/x86/pci/sta2x11-fixup.c 	struct sta2x11_instance *instance;
instance           76 arch/x86/pci/sta2x11-fixup.c 	list_for_each_entry(instance, &sta2x11_instance_list, list) {
instance           77 arch/x86/pci/sta2x11-fixup.c 		ep = pdev->bus->number - instance->bus0;
instance           79 arch/x86/pci/sta2x11-fixup.c 			return instance;
instance           86 arch/x86/pci/sta2x11-fixup.c 	struct sta2x11_instance *instance;
instance           88 arch/x86/pci/sta2x11-fixup.c 	instance = sta2x11_pdev_to_instance(pdev);
instance           89 arch/x86/pci/sta2x11-fixup.c 	if (!instance)
instance           92 arch/x86/pci/sta2x11-fixup.c 	return pdev->bus->number - instance->bus0;
instance           97 arch/x86/pci/sta2x11-fixup.c 	struct sta2x11_instance *instance;
instance          100 arch/x86/pci/sta2x11-fixup.c 	instance = sta2x11_pdev_to_instance(pdev);
instance          101 arch/x86/pci/sta2x11-fixup.c 	if (!instance)
instance          104 arch/x86/pci/sta2x11-fixup.c 	return instance->map + ep;
instance          150 arch/x86/pci/sta2x11-fixup.c 	struct sta2x11_instance *instance = sta2x11_pdev_to_instance(pdev);
instance          152 arch/x86/pci/sta2x11-fixup.c 	if (!instance) /* either a sta2x11 bridge or another ST device */
instance         2016 drivers/acpi/acpi_video.c static int instance;
instance         2044 drivers/acpi/acpi_video.c 		if (instance)
instance         2045 drivers/acpi/acpi_video.c 			device->pnp.bus_id[3] = '0' + instance;
instance         2046 drivers/acpi/acpi_video.c 		instance++;
instance         2050 drivers/acpi/acpi_video.c 		if (instance)
instance         2051 drivers/acpi/acpi_video.c 			device->pnp.bus_id[3] = '0' + instance;
instance         2052 drivers/acpi/acpi_video.c 		instance++;
instance          217 drivers/acpi/acpica/tbxface.c 		      u32 instance, struct acpi_table_header *out_table_header)
instance          239 drivers/acpi/acpica/tbxface.c 		if (++j < instance) {
instance          298 drivers/acpi/acpica/tbxface.c 	       u32 instance, struct acpi_table_header ** out_table)
instance          330 drivers/acpi/acpica/tbxface.c 		if (++j < instance) {
instance          331 drivers/acpi/sysfs.c 	int instance;
instance          351 drivers/acpi/sysfs.c 	status = acpi_get_table(table_attr->name, table_attr->instance,
instance          375 drivers/acpi/sysfs.c 			if (table_attr->instance < attr->instance)
instance          376 drivers/acpi/sysfs.c 				table_attr->instance = attr->instance;
instance          378 drivers/acpi/sysfs.c 	table_attr->instance++;
instance          379 drivers/acpi/sysfs.c 	if (table_attr->instance > ACPI_MAX_TABLE_INSTANCES) {
instance          387 drivers/acpi/sysfs.c 	if (table_attr->instance > 1 || (table_attr->instance == 1 &&
instance          391 drivers/acpi/sysfs.c 			 table_attr->instance);
instance          366 drivers/acpi/tables.c 	u32 instance = 0;
instance          375 drivers/acpi/tables.c 		instance = acpi_apic_instance;
instance          377 drivers/acpi/tables.c 	acpi_get_table(id, instance, &table_header);
instance           96 drivers/block/mtip32xx/mtip32xx.c static int instance;
instance          830 drivers/block/mtip32xx/mtip32xx.c static irqreturn_t mtip_irq_handler(int irq, void *instance)
instance          832 drivers/block/mtip32xx/mtip32xx.c 	struct driver_data *dd = instance;
instance         4051 drivers/block/mtip32xx/mtip32xx.c 	dd->instance	= instance;
instance         4059 drivers/block/mtip32xx/mtip32xx.c 	snprintf(dd->workq_name, 31, "mtipq%d", dd->instance);
instance         4063 drivers/block/mtip32xx/mtip32xx.c 		dev_warn(&pdev->dev, "Can't create wq %d\n", dd->instance);
instance         4144 drivers/block/mtip32xx/mtip32xx.c 	instance++;
instance          428 drivers/block/mtip32xx/mtip32xx.h 	int instance; /* Instance number. First device probed is 0, ... */
instance           89 drivers/clk/versatile/clk-sp810.c 	static int instance;
instance          115 drivers/clk/versatile/clk-sp810.c 		snprintf(name, sizeof(name), "sp810_%d_%d", instance, i);
instance          136 drivers/clk/versatile/clk-sp810.c 	instance++;
instance           81 drivers/dma/ioat/dma.c 	struct ioatdma_device *instance = data;
instance           87 drivers/dma/ioat/dma.c 	intrctrl = readb(instance->reg_base + IOAT_INTRCTRL_OFFSET);
instance           93 drivers/dma/ioat/dma.c 		writeb(intrctrl, instance->reg_base + IOAT_INTRCTRL_OFFSET);
instance           97 drivers/dma/ioat/dma.c 	attnstatus = readl(instance->reg_base + IOAT_ATTNSTATUS_OFFSET);
instance           99 drivers/dma/ioat/dma.c 		ioat_chan = ioat_chan_by_index(instance, bit);
instance          104 drivers/dma/ioat/dma.c 	writeb(intrctrl, instance->reg_base + IOAT_INTRCTRL_OFFSET);
instance           64 drivers/edac/edac_device.c 	unsigned instance, block, attr;
instance          145 drivers/edac/edac_device.c 	for (instance = 0; instance < nr_instances; instance++) {
instance          146 drivers/edac/edac_device.c 		inst = &dev_inst[instance];
instance          149 drivers/edac/edac_device.c 		blk_p = &dev_blk[instance * nr_blocks];
instance          154 drivers/edac/edac_device.c 			 "%s%u", edac_device_name, instance);
instance          159 drivers/edac/edac_device.c 			blk->instance = inst;
instance          164 drivers/edac/edac_device.c 				 instance, inst, block, blk, blk->name);
instance          561 drivers/edac/edac_device.c 	struct edac_device_instance *instance;
instance          572 drivers/edac/edac_device.c 	instance = edac_dev->instances + inst_nr;
instance          574 drivers/edac/edac_device.c 	if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) {
instance          579 drivers/edac/edac_device.c 				instance->nr_blocks);
instance          583 drivers/edac/edac_device.c 	if (instance->nr_blocks > 0) {
instance          584 drivers/edac/edac_device.c 		block = instance->blocks + block_nr;
instance          589 drivers/edac/edac_device.c 	instance->counters.ce_count++;
instance          595 drivers/edac/edac_device.c 				edac_dev->ctl_name, instance->name,
instance          603 drivers/edac/edac_device.c 	struct edac_device_instance *instance;
instance          614 drivers/edac/edac_device.c 	instance = edac_dev->instances + inst_nr;
instance          616 drivers/edac/edac_device.c 	if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) {
instance          621 drivers/edac/edac_device.c 				instance->nr_blocks);
instance          625 drivers/edac/edac_device.c 	if (instance->nr_blocks > 0) {
instance          626 drivers/edac/edac_device.c 		block = instance->blocks + block_nr;
instance          631 drivers/edac/edac_device.c 	instance->counters.ue_count++;
instance          637 drivers/edac/edac_device.c 				edac_dev->ctl_name, instance->name,
instance          642 drivers/edac/edac_device.c 			edac_dev->ctl_name, instance->name,
instance          118 drivers/edac/edac_device.h 	struct edac_device_instance *instance;	/* Up Pointer */
instance          308 drivers/edac/edac_device_sysfs.c static ssize_t instance_ue_count_show(struct edac_device_instance *instance,
instance          311 drivers/edac/edac_device_sysfs.c 	return sprintf(data, "%u\n", instance->counters.ue_count);
instance          314 drivers/edac/edac_device_sysfs.c static ssize_t instance_ce_count_show(struct edac_device_instance *instance,
instance          317 drivers/edac/edac_device_sysfs.c 	return sprintf(data, "%u\n", instance->counters.ce_count);
instance          326 drivers/edac/edac_device_sysfs.c 	struct edac_device_instance *instance;
instance          333 drivers/edac/edac_device_sysfs.c 	instance = to_instance(kobj);
instance          334 drivers/edac/edac_device_sysfs.c 	kobject_put(&instance->ctl->kobj);
instance          348 drivers/edac/edac_device_sysfs.c 	struct edac_device_instance *instance = to_instance(kobj);
instance          352 drivers/edac/edac_device_sysfs.c 		return instance_attr->show(instance, buffer);
instance          361 drivers/edac/edac_device_sysfs.c 	struct edac_device_instance *instance = to_instance(kobj);
instance          365 drivers/edac/edac_device_sysfs.c 		return instance_attr->store(instance, buffer, count);
instance          442 drivers/edac/edac_device_sysfs.c 	kobject_put(&block->instance->ctl->kobj);
instance          508 drivers/edac/edac_device_sysfs.c 				struct edac_device_instance *instance,
instance          517 drivers/edac/edac_device_sysfs.c 		 instance->name, instance, block->name, block);
instance          535 drivers/edac/edac_device_sysfs.c 				   &instance->kobj,
instance          613 drivers/edac/edac_device_sysfs.c 	struct edac_device_instance *instance;
instance          616 drivers/edac/edac_device_sysfs.c 	instance = &edac_dev->instances[idx];
instance          619 drivers/edac/edac_device_sysfs.c 	memset(&instance->kobj, 0, sizeof(struct kobject));
instance          621 drivers/edac/edac_device_sysfs.c 	instance->ctl = edac_dev;
instance          633 drivers/edac/edac_device_sysfs.c 	err = kobject_init_and_add(&instance->kobj, &ktype_instance_ctrl,
instance          634 drivers/edac/edac_device_sysfs.c 				   &edac_dev->kobj, "%s", instance->name);
instance          637 drivers/edac/edac_device_sysfs.c 			 instance->name);
instance          643 drivers/edac/edac_device_sysfs.c 		 instance->nr_blocks, idx);
instance          646 drivers/edac/edac_device_sysfs.c 	for (i = 0; i < instance->nr_blocks; i++) {
instance          647 drivers/edac/edac_device_sysfs.c 		err = edac_device_create_block(edac_dev, instance,
instance          648 drivers/edac/edac_device_sysfs.c 						&instance->blocks[i]);
instance          653 drivers/edac/edac_device_sysfs.c 							&instance->blocks[j]);
instance          657 drivers/edac/edac_device_sysfs.c 	kobject_uevent(&instance->kobj, KOBJ_ADD);
instance          660 drivers/edac/edac_device_sysfs.c 		 idx, instance->name);
instance          666 drivers/edac/edac_device_sysfs.c 	kobject_put(&instance->kobj);
instance          679 drivers/edac/edac_device_sysfs.c 	struct edac_device_instance *instance;
instance          682 drivers/edac/edac_device_sysfs.c 	instance = &edac_dev->instances[idx];
instance          685 drivers/edac/edac_device_sysfs.c 	for (i = 0; i < instance->nr_blocks; i++)
instance          686 drivers/edac/edac_device_sysfs.c 		edac_device_delete_block(edac_dev, &instance->blocks[i]);
instance          691 drivers/edac/edac_device_sysfs.c 	kobject_put(&instance->kobj);
instance           37 drivers/firmware/dmi-sysfs.c 	int instance;
instance          166 drivers/firmware/dmi-sysfs.c 		.instance_countdown = entry->instance,
instance          498 drivers/firmware/dmi-sysfs.c 	return sprintf(buf, "%d\n", entry->instance);
instance          510 drivers/firmware/dmi-sysfs.c static DMI_SYSFS_ATTR(entry, instance);
instance          598 drivers/firmware/dmi-sysfs.c 	entry->instance = instance_counts[dh->type]++;
instance          603 drivers/firmware/dmi-sysfs.c 				    "%d-%d", dh->type, entry->instance);
instance          323 drivers/firmware/dmi_scan.c static void __init dmi_save_dev_pciaddr(int instance, int segment, int bus,
instance          337 drivers/firmware/dmi_scan.c 	dev->instance = instance;
instance          126 drivers/firmware/google/gsmi.c 	u32	instance;
instance          616 drivers/firmware/google/gsmi.c 		.instance = reason,
instance          688 drivers/gpu/drm/amd/amdgpu/amdgpu.h 	void (*sdma_doorbell_range)(struct amdgpu_device *adev, int instance,
instance          691 drivers/gpu/drm/amd/amdgpu/amdgpu.h 				   int doorbell_index, int instance);
instance          410 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 		return adev->sdma.instance[0].fw_version;
instance          413 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 		return adev->sdma.instance[1].fw_version;
instance          616 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 		ring = &adev->sdma.instance[0].ring;
instance          619 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 		ring = &adev->sdma.instance[1].ring;
instance          105 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c 		u32 instance, u32 offset)
instance          107 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_arcturus.c 	switch (instance) {
instance          167 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c 			fw_version = adev->sdma.instance[0].fw_version;
instance          170 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c 			fw_version = adev->sdma.instance[1].fw_version;
instance          141 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 				rings[j] = &adev->sdma.instance[j].ring;
instance          228 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c int amdgpu_ctx_get_entity(struct amdgpu_ctx *ctx, u32 hw_ip, u32 instance,
instance          237 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 	if (instance != 0) {
instance          238 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c 		DRM_DEBUG("invalid ip instance: %d\n", instance);
instance           68 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h int amdgpu_ctx_get_entity(struct amdgpu_ctx *ctx, u32 hw_ip, u32 instance,
instance          189 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h 			     u32 sh_num, u32 instance);
instance          333 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h #define amdgpu_gfx_select_se_sh(adev, se, sh, instance) (adev)->gfx.funcs->select_se_sh((adev), (se), (sh), (instance))
instance          281 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 		fw_info->ver = adev->sdma.instance[query_fw->index].fw_version;
instance          282 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 		fw_info->feature = adev->sdma.instance[query_fw->index].feature_version;
instance          335 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 			if (adev->sdma.instance[i].ring.sched.ready)
instance          630 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 		unsigned se_num = (info->read_mmr_reg.instance >>
instance          633 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 		unsigned sh_num = (info->read_mmr_reg.instance >>
instance          965 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c 			adev->sdma.instance[ucode->ucode_id - AMDGPU_UCODE_ID_SDMA0].fw->data;
instance          252 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 	else if (ring == &adev->sdma.instance[0].page)
instance           41 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c 		if (ring == &adev->sdma.instance[i].ring ||
instance           42 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c 		    ring == &adev->sdma.instance[i].page)
instance           43 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c 			return &adev->sdma.instance[i];
instance           54 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c 		if (ring == &adev->sdma.instance[i].ring ||
instance           55 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c 			ring == &adev->sdma.instance[i].page) {
instance           54 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h 	struct amdgpu_sdma_instance instance[AMDGPU_MAX_SDMA_INSTANCES];
instance          410 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c FW_VERSION_ATTR(sdma_fw_version, 0444, sdma.instance[0].fw_version);
instance          411 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c FW_VERSION_ATTR(sdma2_fw_version, 0444, sdma.instance[1].fw_version);
instance           35 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[GC_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i]));
instance           36 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[HDP_HWIP][i] = (uint32_t *)(&(HDP_BASE.instance[i]));
instance           37 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[MMHUB_HWIP][i] = (uint32_t *)(&(MMHUB_BASE.instance[i]));
instance           38 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[ATHUB_HWIP][i] = (uint32_t *)(&(ATHUB_BASE.instance[i]));
instance           39 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[NBIO_HWIP][i] = (uint32_t *)(&(NBIF0_BASE.instance[i]));
instance           40 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[MP0_HWIP][i] = (uint32_t *)(&(MP0_BASE.instance[i]));
instance           41 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[MP1_HWIP][i] = (uint32_t *)(&(MP1_BASE.instance[i]));
instance           42 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[UVD_HWIP][i] = (uint32_t *)(&(UVD_BASE.instance[i]));
instance           43 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[DF_HWIP][i] = (uint32_t *)(&(DF_BASE.instance[i]));
instance           44 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[OSSSYS_HWIP][i] = (uint32_t *)(&(OSSSYS_BASE.instance[i]));
instance           45 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[SDMA0_HWIP][i] = (uint32_t *)(&(SDMA0_BASE.instance[i]));
instance           46 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[SDMA1_HWIP][i] = (uint32_t *)(&(SDMA1_BASE.instance[i]));
instance           47 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[SDMA2_HWIP][i] = (uint32_t *)(&(SDMA2_BASE.instance[i]));
instance           48 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[SDMA3_HWIP][i] = (uint32_t *)(&(SDMA3_BASE.instance[i]));
instance           49 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[SDMA4_HWIP][i] = (uint32_t *)(&(SDMA4_BASE.instance[i]));
instance           50 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[SDMA5_HWIP][i] = (uint32_t *)(&(SDMA5_BASE.instance[i]));
instance           51 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[SDMA6_HWIP][i] = (uint32_t *)(&(SDMA6_BASE.instance[i]));
instance           52 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[SDMA7_HWIP][i] = (uint32_t *)(&(SDMA7_BASE.instance[i]));
instance           53 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[SMUIO_HWIP][i] = (uint32_t *)(&(SMUIO_BASE.instance[i]));
instance           54 drivers/gpu/drm/amd/amdgpu/arct_reg_init.c 		adev->reg_offset[THM_HWIP][i] = (uint32_t *)(&(THM_BASE.instance[i]));
instance           77 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 			release_firmware(adev->sdma.instance[i].fw);
instance           78 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 			adev->sdma.instance[i].fw = NULL;
instance          140 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		err = request_firmware(&adev->sdma.instance[i].fw, fw_name, adev->dev);
instance          143 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		err = amdgpu_ucode_validate(adev->sdma.instance[i].fw);
instance          149 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 			release_firmware(adev->sdma.instance[i].fw);
instance          150 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 			adev->sdma.instance[i].fw = NULL;
instance          308 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	struct amdgpu_ring *sdma0 = &adev->sdma.instance[0].ring;
instance          309 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	struct amdgpu_ring *sdma1 = &adev->sdma.instance[1].ring;
instance          441 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		ring = &adev->sdma.instance[i].ring;
instance          507 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		ring = &adev->sdma.instance[i].ring;
instance          552 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		if (!adev->sdma.instance[i].fw)
instance          554 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
instance          557 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
instance          558 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
instance          559 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		if (adev->sdma.instance[i].feature_version >= 20)
instance          560 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 			adev->sdma.instance[i].burst_nop = true;
instance          562 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 			(adev->sdma.instance[i].fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
instance          566 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		WREG32(mmSDMA0_UCODE_ADDR + sdma_offsets[i], adev->sdma.instance[i].fw_version);
instance          976 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		ring = &adev->sdma.instance[i].ring;
instance          997 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		amdgpu_ring_fini(&adev->sdma.instance[i].ring);
instance         1170 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 			amdgpu_fence_process(&adev->sdma.instance[0].ring);
instance         1183 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 			amdgpu_fence_process(&adev->sdma.instance[1].ring);
instance         1206 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	drm_sched_fault(&adev->sdma.instance[instance_id].ring.sched);
instance         1280 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		adev->sdma.instance[i].ring.funcs = &cik_sdma_ring_funcs;
instance         1281 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		adev->sdma.instance[i].ring.me = i;
instance         1362 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 	adev->mman.buffer_funcs_ring = &adev->sdma.instance[0].ring;
instance         1380 drivers/gpu/drm/amd/amdgpu/cik_sdma.c 		sched = &adev->sdma.instance[i].ring.sched;
instance           35 drivers/gpu/drm/amd/amdgpu/df_v3_6.c AMDGPU_PMU_ATTR(instance,	"config:8-15");
instance          368 drivers/gpu/drm/amd/amdgpu/df_v3_6.c 	uint32_t eventsel, instance, unitmask;
instance          381 drivers/gpu/drm/amd/amdgpu/df_v3_6.c 	instance = DF_V3_6_GET_INSTANCE(config);
instance          383 drivers/gpu/drm/amd/amdgpu/df_v3_6.c 	instance_10 = instance & 0x3;
instance          384 drivers/gpu/drm/amd/amdgpu/df_v3_6.c 	instance_5432 = (instance >> 2) & 0xf;
instance          385 drivers/gpu/drm/amd/amdgpu/df_v3_6.c 	instance_76 = (instance >> 6) & 0x3;
instance          246 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 				   u32 sh_num, u32 instance);
instance         1496 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 				   u32 sh_num, u32 instance)
instance         1500 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 	if (instance == 0xffffffff)
instance         1505 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 				     instance);
instance         2185 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 			adev->sdma.instance[i].fw->data;
instance         2186 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c 		fw_data = (const __le32 *) (adev->sdma.instance[i].fw->data +
instance         1302 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 				  u32 sh_num, u32 instance)
instance         1306 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 	if (instance == 0xffffffff)
instance         1309 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c 		data = REG_SET_FIELD(0, GRBM_GFX_INDEX, INSTANCE_INDEX, instance);
instance         1589 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 				  u32 se_num, u32 sh_num, u32 instance)
instance         1593 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 	if (instance == 0xffffffff)
instance         1596 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c 		data = REG_SET_FIELD(0, GRBM_GFX_INDEX, INSTANCE_INDEX, instance);
instance         3449 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 				  u32 se_num, u32 sh_num, u32 instance)
instance         3453 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 	if (instance == 0xffffffff)
instance         3456 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c 		data = REG_SET_FIELD(0, GRBM_GFX_INDEX, INSTANCE_INDEX, instance);
instance          732 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static void gfx_v9_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, u32 sh_num, u32 instance);
instance         2378 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static void gfx_v9_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, u32 sh_num, u32 instance)
instance         2382 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 	if (instance == 0xffffffff)
instance         2385 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 		data = REG_SET_FIELD(0, GRBM_GFX_INDEX, INSTANCE_INDEX, instance);
instance         4382 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c 			for (k = 0; k < sec_ded_counter_registers[i].instance; k++) {
instance           35 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[GC_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i]));
instance           36 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[HDP_HWIP][i] = (uint32_t *)(&(HDP_BASE.instance[i]));
instance           37 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[MMHUB_HWIP][i] = (uint32_t *)(&(MMHUB_BASE.instance[i]));
instance           38 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[ATHUB_HWIP][i] = (uint32_t *)(&(ATHUB_BASE.instance[i]));
instance           39 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[NBIO_HWIP][i] = (uint32_t *)(&(NBIO_BASE.instance[i]));
instance           40 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[MP0_HWIP][i] = (uint32_t *)(&(MP0_BASE.instance[i]));
instance           41 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[MP1_HWIP][i] = (uint32_t *)(&(MP1_BASE.instance[i]));
instance           42 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[VCN_HWIP][i] = (uint32_t *)(&(VCN_BASE.instance[i]));
instance           43 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[DF_HWIP][i] = (uint32_t *)(&(DF_BASE.instance[i]));
instance           44 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[DCE_HWIP][i] = (uint32_t *)(&(DCN_BASE.instance[i]));
instance           45 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[OSSSYS_HWIP][i] = (uint32_t *)(&(OSSSYS_BASE.instance[i]));
instance           46 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[SDMA0_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i]));
instance           47 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[SDMA1_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i]));
instance           48 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[SMUIO_HWIP][i] = (uint32_t *)(&(SMUIO_BASE.instance[i]));
instance           49 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[THM_HWIP][i] = (uint32_t *)(&(THM_BASE.instance[i]));
instance           50 drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c 		adev->reg_offset[CLK_HWIP][i] = (uint32_t *)(&(CLK_BASE.instance[i]));
instance           35 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[GC_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i]));
instance           36 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[HDP_HWIP][i] = (uint32_t *)(&(HDP_BASE.instance[i]));
instance           37 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[MMHUB_HWIP][i] = (uint32_t *)(&(MMHUB_BASE.instance[i]));
instance           38 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[ATHUB_HWIP][i] = (uint32_t *)(&(ATHUB_BASE.instance[i]));
instance           39 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[NBIO_HWIP][i] = (uint32_t *)(&(NBIF0_BASE.instance[i]));
instance           40 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[MP0_HWIP][i] = (uint32_t *)(&(MP0_BASE.instance[i]));
instance           41 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[MP1_HWIP][i] = (uint32_t *)(&(MP1_BASE.instance[i]));
instance           42 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[VCN_HWIP][i] = (uint32_t *)(&(UVD0_BASE.instance[i]));
instance           43 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[DF_HWIP][i] = (uint32_t *)(&(DF_BASE.instance[i]));
instance           44 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[DCE_HWIP][i] = (uint32_t *)(&(DMU_BASE.instance[i]));
instance           45 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[OSSSYS_HWIP][i] = (uint32_t *)(&(OSSSYS_BASE.instance[i]));
instance           46 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[SDMA0_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i]));
instance           47 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[SDMA1_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i]));
instance           48 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[SMUIO_HWIP][i] = (uint32_t *)(&(SMUIO_BASE.instance[i]));
instance           49 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[THM_HWIP][i] = (uint32_t *)(&(THM_BASE.instance[i]));
instance           50 drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c 		adev->reg_offset[CLK_HWIP][i] = (uint32_t *)(&(CLK_BASE.instance[i]));
instance           35 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[GC_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i]));
instance           36 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[HDP_HWIP][i] = (uint32_t *)(&(HDP_BASE.instance[i]));
instance           37 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[MMHUB_HWIP][i] = (uint32_t *)(&(MMHUB_BASE.instance[i]));
instance           38 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[ATHUB_HWIP][i] = (uint32_t *)(&(ATHUB_BASE.instance[i]));
instance           39 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[NBIO_HWIP][i] = (uint32_t *)(&(NBIF0_BASE.instance[i]));
instance           40 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[MP0_HWIP][i] = (uint32_t *)(&(MP0_BASE.instance[i]));
instance           41 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[MP1_HWIP][i] = (uint32_t *)(&(MP1_BASE.instance[i]));
instance           42 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[VCN_HWIP][i] = (uint32_t *)(&(UVD0_BASE.instance[i]));
instance           43 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[DF_HWIP][i] = (uint32_t *)(&(DF_BASE.instance[i]));
instance           44 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[DCE_HWIP][i] = (uint32_t *)(&(DMU_BASE.instance[i]));
instance           45 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[OSSSYS_HWIP][i] = (uint32_t *)(&(OSSSYS_BASE.instance[i]));
instance           46 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[SDMA0_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i]));
instance           47 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[SDMA1_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i]));
instance           48 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[SMUIO_HWIP][i] = (uint32_t *)(&(SMUIO_BASE.instance[i]));
instance           49 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[THM_HWIP][i] = (uint32_t *)(&(THM_BASE.instance[i]));
instance           50 drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c 		adev->reg_offset[CLK_HWIP][i] = (uint32_t *)(&(CLK_BASE.instance[i]));
instance           70 drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c static void nbio_v2_3_sdma_doorbell_range(struct amdgpu_device *adev, int instance,
instance           74 drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c 	u32 reg = instance == 0 ? SOC15_REG_OFFSET(NBIO, 0, mmBIF_SDMA0_DOORBELL_RANGE) :
instance           95 drivers/gpu/drm/amd/amdgpu/nbio_v2_3.c 					 int doorbell_index, int instance)
instance           70 drivers/gpu/drm/amd/amdgpu/nbio_v6_1.c static void nbio_v6_1_sdma_doorbell_range(struct amdgpu_device *adev, int instance,
instance           73 drivers/gpu/drm/amd/amdgpu/nbio_v6_1.c 	u32 reg = instance == 0 ? SOC15_REG_OFFSET(NBIO, 0, mmBIF_SDMA0_DOORBELL_RANGE) :
instance           77 drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c static void nbio_v7_0_sdma_doorbell_range(struct amdgpu_device *adev, int instance,
instance           80 drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c 	u32 reg = instance == 0 ? SOC15_REG_OFFSET(NBIO, 0, mmBIF_SDMA0_DOORBELL_RANGE) :
instance           95 drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c 					 int doorbell_index, int instance)
instance           94 drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c static void nbio_v7_4_sdma_doorbell_range(struct amdgpu_device *adev, int instance,
instance           99 drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c 	if (instance < 2)
instance          100 drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c 		reg = instance +
instance          111 drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c 		reg = instance + 0x4 +
instance          126 drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c 					 int doorbell_index, int instance)
instance          131 drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c 	if (instance)
instance          117 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		release_firmware(adev->sdma.instance[i].fw);
instance          118 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		adev->sdma.instance[i].fw = NULL;
instance          154 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		err = request_firmware(&adev->sdma.instance[i].fw, fw_name, adev->dev);
instance          157 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		err = amdgpu_ucode_validate(adev->sdma.instance[i].fw);
instance          160 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
instance          161 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
instance          162 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
instance          163 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		if (adev->sdma.instance[i].feature_version >= 20)
instance          164 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 			adev->sdma.instance[i].burst_nop = true;
instance          169 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 			info->fw = adev->sdma.instance[i].fw;
instance          180 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 			release_firmware(adev->sdma.instance[i].fw);
instance          181 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 			adev->sdma.instance[i].fw = NULL;
instance          341 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	struct amdgpu_ring *sdma0 = &adev->sdma.instance[0].ring;
instance          342 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	struct amdgpu_ring *sdma1 = &adev->sdma.instance[1].ring;
instance          419 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		ring = &adev->sdma.instance[i].ring;
instance          485 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		ring = &adev->sdma.instance[i].ring;
instance          869 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		ring = &adev->sdma.instance[i].ring;
instance          891 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		amdgpu_ring_fini(&adev->sdma.instance[i].ring);
instance         1063 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 			amdgpu_fence_process(&adev->sdma.instance[0].ring);
instance         1076 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 			amdgpu_fence_process(&adev->sdma.instance[1].ring);
instance         1101 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		drm_sched_fault(&adev->sdma.instance[instance_id].ring.sched);
instance         1167 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		adev->sdma.instance[i].ring.funcs = &sdma_v2_4_ring_funcs;
instance         1168 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		adev->sdma.instance[i].ring.me = i;
instance         1250 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 	adev->mman.buffer_funcs_ring = &adev->sdma.instance[0].ring;
instance         1268 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c 		sched = &adev->sdma.instance[i].ring.sched;
instance          254 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		release_firmware(adev->sdma.instance[i].fw);
instance          255 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		adev->sdma.instance[i].fw = NULL;
instance          312 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		err = request_firmware(&adev->sdma.instance[i].fw, fw_name, adev->dev);
instance          315 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		err = amdgpu_ucode_validate(adev->sdma.instance[i].fw);
instance          318 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
instance          319 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
instance          320 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
instance          321 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		if (adev->sdma.instance[i].feature_version >= 20)
instance          322 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 			adev->sdma.instance[i].burst_nop = true;
instance          326 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		info->fw = adev->sdma.instance[i].fw;
instance          336 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 			release_firmware(adev->sdma.instance[i].fw);
instance          337 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 			adev->sdma.instance[i].fw = NULL;
instance          515 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	struct amdgpu_ring *sdma0 = &adev->sdma.instance[0].ring;
instance          516 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	struct amdgpu_ring *sdma1 = &adev->sdma.instance[1].ring;
instance          656 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		ring = &adev->sdma.instance[i].ring;
instance          757 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		ring = &adev->sdma.instance[i].ring;
instance         1147 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		ring = &adev->sdma.instance[i].ring;
instance         1175 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		amdgpu_ring_fini(&adev->sdma.instance[i].ring);
instance         1397 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 			amdgpu_fence_process(&adev->sdma.instance[0].ring);
instance         1410 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 			amdgpu_fence_process(&adev->sdma.instance[1].ring);
instance         1435 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		drm_sched_fault(&adev->sdma.instance[instance_id].ring.sched);
instance         1605 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		adev->sdma.instance[i].ring.funcs = &sdma_v3_0_ring_funcs;
instance         1606 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		adev->sdma.instance[i].ring.me = i;
instance         1688 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 	adev->mman.buffer_funcs_ring = &adev->sdma.instance[0].ring;
instance         1706 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c 		sched = &adev->sdma.instance[i].ring.sched;
instance           76 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c #define WREG32_SDMA(instance, offset, value) \
instance           77 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	WREG32(sdma_v4_0_get_reg_offset(adev, (instance), (offset)), value)
instance           78 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c #define RREG32_SDMA(instance, offset) \
instance           79 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	RREG32(sdma_v4_0_get_reg_offset(adev, (instance), (offset)))
instance          261 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		u32 instance, u32 offset)
instance          263 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	switch (instance) {
instance          418 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		if (adev->sdma.instance[i].fw != NULL)
instance          419 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			release_firmware(adev->sdma.instance[i].fw);
instance          427 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	memset((void*)adev->sdma.instance, 0,
instance          483 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	err = request_firmware(&adev->sdma.instance[0].fw, fw_name, adev->dev);
instance          487 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	err = sdma_v4_0_init_inst_ctx(&adev->sdma.instance[0]);
instance          495 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			memcpy((void*)&adev->sdma.instance[i],
instance          496 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			       (void*)&adev->sdma.instance[0],
instance          502 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			err = request_firmware(&adev->sdma.instance[i].fw, fw_name, adev->dev);
instance          506 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			err = sdma_v4_0_init_inst_ctx(&adev->sdma.instance[i]);
instance          519 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			info->fw = adev->sdma.instance[i].fw;
instance          813 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		sdma[i] = &adev->sdma.instance[i].ring;
instance          858 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		sdma[i] = &adev->sdma.instance[i].page;
instance          985 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	struct amdgpu_ring *ring = &adev->sdma.instance[i].ring;
instance         1075 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	struct amdgpu_ring *ring = &adev->sdma.instance[i].page;
instance         1253 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		if (!adev->sdma.instance[i].fw)
instance         1256 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
instance         1261 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			(adev->sdma.instance[i].fw->data +
instance         1271 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			    adev->sdma.instance[i].fw_version);
instance         1339 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		ring = &adev->sdma.instance[i].ring;
instance         1346 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			struct amdgpu_ring *page = &adev->sdma.instance[i].page;
instance         1646 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	uint fw_version = adev->sdma.instance[0].fw_version;
instance         1817 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		ring = &adev->sdma.instance[i].ring;
instance         1834 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			ring = &adev->sdma.instance[i].page;
instance         1878 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		amdgpu_ring_fini(&adev->sdma.instance[i].ring);
instance         1880 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			amdgpu_ring_fini(&adev->sdma.instance[i].page);
instance         2004 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	uint32_t instance;
instance         2007 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	instance = sdma_v4_0_irq_id_to_seq(entry->client_id);
instance         2010 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		amdgpu_fence_process(&adev->sdma.instance[instance].ring);
instance         2014 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			amdgpu_fence_process(&adev->sdma.instance[instance].page);
instance         2021 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			amdgpu_fence_process(&adev->sdma.instance[instance].page);
instance         2032 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	int instance;
instance         2034 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	instance = sdma_v4_0_irq_id_to_seq(entry->client_id);
instance         2035 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	if (instance < 0)
instance         2078 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	int instance;
instance         2082 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	instance = sdma_v4_0_irq_id_to_seq(entry->client_id);
instance         2083 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 	if (instance < 0)
instance         2088 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		drm_sched_fault(&adev->sdma.instance[instance].ring.sched);
instance         2392 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			adev->sdma.instance[i].ring.funcs =
instance         2395 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			adev->sdma.instance[i].ring.funcs =
instance         2397 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		adev->sdma.instance[i].ring.me = i;
instance         2400 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 				adev->sdma.instance[i].page.funcs =
instance         2403 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 				adev->sdma.instance[i].page.funcs =
instance         2405 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			adev->sdma.instance[i].page.me = i;
instance         2511 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		adev->mman.buffer_funcs_ring = &adev->sdma.instance[0].page;
instance         2513 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 		adev->mman.buffer_funcs_ring = &adev->sdma.instance[0].ring;
instance         2532 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			sched = &adev->sdma.instance[i].page.sched;
instance         2534 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c 			sched = &adev->sdma.instance[i].ring.sched;
instance          106 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c static u32 sdma_v5_0_get_reg_offset(struct amdgpu_device *adev, u32 instance, u32 internal_offset)
instance          113 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		if (instance == 1)
instance          117 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		if (instance == 1)
instance          198 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		err = request_firmware(&adev->sdma.instance[i].fw, fw_name, adev->dev);
instance          201 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		err = amdgpu_ucode_validate(adev->sdma.instance[i].fw);
instance          204 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
instance          205 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
instance          206 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
instance          207 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		if (adev->sdma.instance[i].feature_version >= 20)
instance          208 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 			adev->sdma.instance[i].burst_nop = true;
instance          215 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 			info->fw = adev->sdma.instance[i].fw;
instance          225 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 			release_firmware(adev->sdma.instance[i].fw);
instance          226 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 			adev->sdma.instance[i].fw = NULL;
instance          500 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	struct amdgpu_ring *sdma0 = &adev->sdma.instance[0].ring;
instance          501 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 	struct amdgpu_ring *sdma1 = &adev->sdma.instance[1].ring;
instance          635 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		ring = &adev->sdma.instance[i].ring;
instance          806 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		if (!adev->sdma.instance[i].fw)
instance          809 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
instance          814 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 			(adev->sdma.instance[i].fw->data +
instance          825 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		WREG32(sdma_v5_0_get_reg_offset(adev, i, mmSDMA0_UCODE_ADDR), adev->sdma.instance[i].fw_version);
instance         1247 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		ring = &adev->sdma.instance[i].ring;
instance         1277 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		amdgpu_ring_fini(&adev->sdma.instance[i].ring);
instance         1435 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 			amdgpu_fence_process(&adev->sdma.instance[0].ring);
instance         1451 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 			amdgpu_fence_process(&adev->sdma.instance[1].ring);
instance         1645 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		adev->sdma.instance[i].ring.funcs = &sdma_v5_0_ring_funcs;
instance         1646 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		adev->sdma.instance[i].ring.me = i;
instance         1730 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 		adev->mman.buffer_funcs_ring = &adev->sdma.instance[0].ring;
instance         1749 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c 			sched = &adev->sdma.instance[i].ring.sched;
instance           49 drivers/gpu/drm/amd/amdgpu/si_dma.c 	u32 me = (ring == &adev->sdma.instance[0].ring) ? 0 : 1;
instance           57 drivers/gpu/drm/amd/amdgpu/si_dma.c 	u32 me = (ring == &adev->sdma.instance[0].ring) ? 0 : 1;
instance          119 drivers/gpu/drm/amd/amdgpu/si_dma.c 		ring = &adev->sdma.instance[i].ring;
instance          139 drivers/gpu/drm/amd/amdgpu/si_dma.c 		ring = &adev->sdma.instance[i].ring;
instance          499 drivers/gpu/drm/amd/amdgpu/si_dma.c 		ring = &adev->sdma.instance[i].ring;
instance          521 drivers/gpu/drm/amd/amdgpu/si_dma.c 		amdgpu_ring_fini(&adev->sdma.instance[i].ring);
instance          637 drivers/gpu/drm/amd/amdgpu/si_dma.c 		amdgpu_fence_process(&adev->sdma.instance[0].ring);
instance          639 drivers/gpu/drm/amd/amdgpu/si_dma.c 		amdgpu_fence_process(&adev->sdma.instance[1].ring);
instance          749 drivers/gpu/drm/amd/amdgpu/si_dma.c 		adev->sdma.instance[i].ring.funcs = &si_dma_ring_funcs;
instance          824 drivers/gpu/drm/amd/amdgpu/si_dma.c 	adev->mman.buffer_funcs_ring = &adev->sdma.instance[0].ring;
instance          842 drivers/gpu/drm/amd/amdgpu/si_dma.c 		sched = &adev->sdma.instance[i].ring.sched;
instance          446 drivers/gpu/drm/amd/amdgpu/soc15.c 		reg =  adev->reg_offset[entry->hwip][entry->instance][entry->segment] + entry->reg;
instance         1264 drivers/gpu/drm/amd/amdgpu/soc15.c 			ring = &adev->sdma.instance[i].ring;
instance           38 drivers/gpu/drm/amd/amdgpu/soc15.h 	u32	instance;
instance           52 drivers/gpu/drm/amd/amdgpu/soc15.h 	uint32_t instance;
instance           35 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[GC_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i]));
instance           36 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[HDP_HWIP][i] = (uint32_t *)(&(HDP_BASE.instance[i]));
instance           37 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[MMHUB_HWIP][i] = (uint32_t *)(&(MMHUB_BASE.instance[i]));
instance           38 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[ATHUB_HWIP][i] = (uint32_t *)(&(ATHUB_BASE.instance[i]));
instance           39 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[NBIO_HWIP][i] = (uint32_t *)(&(NBIO_BASE.instance[i]));
instance           40 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[MP0_HWIP][i] = (uint32_t *)(&(MP0_BASE.instance[i]));
instance           41 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[MP1_HWIP][i] = (uint32_t *)(&(MP1_BASE.instance[i]));
instance           42 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[UVD_HWIP][i] = (uint32_t *)(&(UVD_BASE.instance[i]));
instance           43 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[VCE_HWIP][i] = (uint32_t *)(&(VCE_BASE.instance[i]));
instance           44 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[VCN_HWIP][i] = (uint32_t *)(&(VCN_BASE.instance[i]));
instance           45 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[DF_HWIP][i] = (uint32_t *)(&(DF_BASE.instance[i]));
instance           46 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[DCE_HWIP][i] = (uint32_t *)(&(DCE_BASE.instance[i]));
instance           47 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[OSSSYS_HWIP][i] = (uint32_t *)(&(OSSSYS_BASE.instance[i]));
instance           48 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[SDMA0_HWIP][i] = (uint32_t *)(&(SDMA0_BASE.instance[i]));
instance           49 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[SDMA1_HWIP][i] = (uint32_t *)(&(SDMA1_BASE.instance[i]));
instance           50 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[SMUIO_HWIP][i] = (uint32_t *)(&(SMUIO_BASE.instance[i]));
instance           51 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[PWR_HWIP][i] = (uint32_t *)(&(PWR_BASE.instance[i]));
instance           52 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[NBIF_HWIP][i] = (uint32_t *)(&(NBIF_BASE.instance[i]));
instance           53 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[THM_HWIP][i] = (uint32_t *)(&(THM_BASE.instance[i]));
instance           54 drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c 		adev->reg_offset[CLK_HWIP][i] = (uint32_t *)(&(CLK_BASE.instance[i]));
instance           35 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[GC_HWIP][i] = (uint32_t *)(&(GC_BASE.instance[i]));
instance           36 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[HDP_HWIP][i] = (uint32_t *)(&(HDP_BASE.instance[i]));
instance           37 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[MMHUB_HWIP][i] = (uint32_t *)(&(MMHUB_BASE.instance[i]));
instance           38 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[ATHUB_HWIP][i] = (uint32_t *)(&(ATHUB_BASE.instance[i]));
instance           39 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[NBIO_HWIP][i] = (uint32_t *)(&(NBIO_BASE.instance[i]));
instance           40 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[MP0_HWIP][i] = (uint32_t *)(&(MP0_BASE.instance[i]));
instance           41 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[MP1_HWIP][i] = (uint32_t *)(&(MP1_BASE.instance[i]));
instance           42 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[UVD_HWIP][i] = (uint32_t *)(&(UVD_BASE.instance[i]));
instance           43 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[VCE_HWIP][i] = (uint32_t *)(&(VCE_BASE.instance[i]));
instance           44 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[DF_HWIP][i] = (uint32_t *)(&(DF_BASE.instance[i]));
instance           45 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[DCE_HWIP][i] = (uint32_t *)(&(DCE_BASE.instance[i]));
instance           46 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[OSSSYS_HWIP][i] = (uint32_t *)(&(OSSSYS_BASE.instance[i]));
instance           47 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[SDMA0_HWIP][i] = (uint32_t *)(&(SDMA0_BASE.instance[i]));
instance           48 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[SDMA1_HWIP][i] = (uint32_t *)(&(SDMA1_BASE.instance[i]));
instance           49 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[SMUIO_HWIP][i] = (uint32_t *)(&(SMUIO_BASE.instance[i]));
instance           50 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[NBIF_HWIP][i] = (uint32_t *)(&(NBIO_BASE.instance[i]));
instance           51 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[THM_HWIP][i] = (uint32_t *)(&(THM_BASE.instance[i]));
instance           52 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[CLK_HWIP][i] = (uint32_t *)(&(CLK_BASE.instance[i]));
instance           53 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[UMC_HWIP][i] = (uint32_t *)(&(UMC_BASE.instance[i]));
instance           54 drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c 		adev->reg_offset[RSMU_HWIP][i] = (uint32_t *)(&(RSMU_BASE.instance[i]));
instance           38 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c 	struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
instance           63 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_vbios_smu.c 	(MP1_BASE.instance[0].segment[mm ## reg_name ## _BASE_IDX] + mm ## reg_name)
instance           53 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c 	(CLK_BASE.instance[0].segment[mm ## reg_name ## _BASE_IDX] + mm ## reg_name)
instance           36 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c 	(MP0_BASE.instance[0].segment[mm ## reg_name ## _BASE_IDX] + mm ## reg_name)
instance          422 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c 		uint32_t instance,
instance          431 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c 	dce110_timing_generator_construct(tg110, ctx, instance, offsets);
instance          463 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c 		uint32_t instance,
instance          472 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c 	dce110_timing_generator_construct(tg110, ctx, instance, offsets);
instance         2247 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c 	uint32_t instance,
instance         2250 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c 	tg110->controller_id = CONTROLLER_ID_D0 + instance;
instance         2251 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c 	tg110->base.inst = instance;
instance          123 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.h 	uint32_t instance,
instance          441 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c 		uint32_t instance,
instance          450 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c 	dce110_timing_generator_construct(tg110, ctx, instance, offsets);
instance          529 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c 		uint32_t instance,
instance          538 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c 	dce120_timing_generator_construct(tg110, ctx, instance, offsets);
instance         1243 drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c 	uint32_t instance,
instance         1246 drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c 	tg110->controller_id = CONTROLLER_ID_D0 + instance;
instance         1247 drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c 	tg110->base.inst = instance;
instance           37 drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.h 	uint32_t instance,
instance          454 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c 		uint32_t instance,
instance          463 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c 	dce80_timing_generator_construct(tg110, ctx, instance, offsets);
instance          227 drivers/gpu/drm/amd/display/dc/dce80/dce80_timing_generator.c 	uint32_t instance,
instance          230 drivers/gpu/drm/amd/display/dc/dce80/dce80_timing_generator.c 	tg110->controller_id = CONTROLLER_ID_D0 + instance;
instance          231 drivers/gpu/drm/amd/display/dc/dce80/dce80_timing_generator.c 	tg110->base.inst = instance;
instance          233 drivers/gpu/drm/amd/display/dc/dce80/dce80_timing_generator.c 	tg110->derived_offsets = reg_offsets[instance];
instance           36 drivers/gpu/drm/amd/display/dc/dce80/dce80_timing_generator.h 	uint32_t instance,
instance          718 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c 		uint32_t instance)
instance          726 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c 	tgn10->base.inst = instance;
instance          729 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c 	tgn10->tg_regs = &tg_regs[instance];
instance         1120 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c 		uint32_t instance)
instance         1128 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c 	tgn10->base.inst = instance;
instance         1131 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c 	tgn10->tg_regs = &tg_regs[instance];
instance          106 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h 		uint32_t instance);
instance         1210 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c 		uint32_t instance)
instance         1218 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c 	tgn10->base.inst = instance;
instance         1221 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c 	tgn10->tg_regs = &tg_regs[instance];
instance          160 drivers/gpu/drm/amd/display/dc/dm_services.h 		dm_write_reg_func(ctx, reg + DCE_BASE.instance[0].segment[reg##_BASE_IDX] + inst_offset, value, __func__)
instance          163 drivers/gpu/drm/amd/display/dc/dm_services.h 		dm_read_reg_func(ctx, reg + DCE_BASE.instance[0].segment[reg##_BASE_IDX] + inst_offset, __func__)
instance          166 drivers/gpu/drm/amd/display/dc/dm_services.h 		generic_reg_update_ex(ctx, DCE_BASE.instance[0].segment[mm##reg_name##_BASE_IDX] +  mm##reg_name + inst_offset, \
instance          170 drivers/gpu/drm/amd/display/dc/dm_services.h 		generic_reg_set_ex(ctx, DCE_BASE.instance[0].segment[mm##reg_name##_BASE_IDX] + mm##reg_name + inst_offset, 0, \
instance           35 drivers/gpu/drm/amd/include/arct_ip_offset.h     struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
instance           33 drivers/gpu/drm/amd/include/navi10_ip_offset.h 	struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
instance           35 drivers/gpu/drm/amd/include/navi12_ip_offset.h     struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
instance           35 drivers/gpu/drm/amd/include/navi14_ip_offset.h     struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
instance           35 drivers/gpu/drm/amd/include/renoir_ip_offset.h     struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
instance           34 drivers/gpu/drm/amd/include/vega10_ip_offset.h     struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
instance           35 drivers/gpu/drm/amd/include/vega20_ip_offset.h     struct IP_BASE_INSTANCE instance[MAX_INSTANCE];
instance           62 drivers/gpu/drm/i915/gt/intel_engine_cs.c 	u8 instance;
instance           74 drivers/gpu/drm/i915/gt/intel_engine_cs.c 		.instance = 0,
instance           82 drivers/gpu/drm/i915/gt/intel_engine_cs.c 		.instance = 0,
instance           90 drivers/gpu/drm/i915/gt/intel_engine_cs.c 		.instance = 0,
instance          100 drivers/gpu/drm/i915/gt/intel_engine_cs.c 		.instance = 1,
instance          109 drivers/gpu/drm/i915/gt/intel_engine_cs.c 		.instance = 2,
instance          117 drivers/gpu/drm/i915/gt/intel_engine_cs.c 		.instance = 3,
instance          125 drivers/gpu/drm/i915/gt/intel_engine_cs.c 		.instance = 0,
instance          134 drivers/gpu/drm/i915/gt/intel_engine_cs.c 		.instance = 1,
instance          248 drivers/gpu/drm/i915/gt/intel_engine_cs.c 			     engine->instance) >= sizeof(engine->name));
instance          283 drivers/gpu/drm/i915/gt/intel_engine_cs.c 	if (GEM_DEBUG_WARN_ON(info->instance > MAX_ENGINE_INSTANCE))
instance          286 drivers/gpu/drm/i915/gt/intel_engine_cs.c 	if (GEM_DEBUG_WARN_ON(gt->engine_class[info->class][info->instance]))
instance          304 drivers/gpu/drm/i915/gt/intel_engine_cs.c 	engine->instance = info->instance;
instance          330 drivers/gpu/drm/i915/gt/intel_engine_cs.c 	gt->engine_class[info->class][info->instance] = engine;
instance          348 drivers/gpu/drm/i915/gt/intel_engine_cs.c 		    (INTEL_GEN(i915) >= 9 && engine->instance == 0))
instance          358 drivers/gpu/drm/i915/gt/intel_engine_cs.c 		    (INTEL_GEN(i915) >= 9 && engine->instance == 0))
instance          302 drivers/gpu/drm/i915/gt/intel_engine_types.h 	u8 instance;
instance           16 drivers/gpu/drm/i915/gt/intel_engine_user.c intel_engine_lookup_user(struct drm_i915_private *i915, u8 class, u8 instance)
instance           27 drivers/gpu/drm/i915/gt/intel_engine_user.c 			 instance > it->uabi_instance)
instance           29 drivers/gpu/drm/i915/gt/intel_engine_user.c 		else if (instance < it->uabi_instance)
instance           63 drivers/gpu/drm/i915/gt/intel_engine_user.c 	if (a->instance < b->instance)
instance           65 drivers/gpu/drm/i915/gt/intel_engine_user.c 	if (a->instance > b->instance)
instance          148 drivers/gpu/drm/i915/gt/intel_engine_user.c 	u8 instance;
instance          165 drivers/gpu/drm/i915/gt/intel_engine_user.c 	if (GEM_DEBUG_WARN_ON(ring->instance >= map[ring->class].max))
instance          168 drivers/gpu/drm/i915/gt/intel_engine_user.c 	return map[ring->class].base + ring->instance;
instance          179 drivers/gpu/drm/i915/gt/intel_engine_user.c 		ring->instance = 0;
instance          188 drivers/gpu/drm/i915/gt/intel_engine_user.c 	ring->instance++;
instance           16 drivers/gpu/drm/i915/gt/intel_engine_user.h intel_engine_lookup_user(struct drm_i915_private *i915, u8 class, u8 instance);
instance           73 drivers/gpu/drm/i915/gt/intel_gt_irq.c gen11_other_irq_handler(struct intel_gt *gt, const u8 instance,
instance           76 drivers/gpu/drm/i915/gt/intel_gt_irq.c 	if (instance == OTHER_GUC_INSTANCE)
instance           79 drivers/gpu/drm/i915/gt/intel_gt_irq.c 	if (instance == OTHER_GTPM_INSTANCE)
instance           83 drivers/gpu/drm/i915/gt/intel_gt_irq.c 		  instance, iir);
instance           88 drivers/gpu/drm/i915/gt/intel_gt_irq.c 			 const u8 instance, const u16 iir)
instance           92 drivers/gpu/drm/i915/gt/intel_gt_irq.c 	if (instance <= MAX_ENGINE_INSTANCE)
instance           93 drivers/gpu/drm/i915/gt/intel_gt_irq.c 		engine = gt->engine_class[class][instance];
instance          101 drivers/gpu/drm/i915/gt/intel_gt_irq.c 		  class, instance);
instance          108 drivers/gpu/drm/i915/gt/intel_gt_irq.c 	const u8 instance = GEN11_INTR_ENGINE_INSTANCE(identity);
instance          115 drivers/gpu/drm/i915/gt/intel_gt_irq.c 		return gen11_engine_irq_handler(gt, class, instance, intr);
instance          118 drivers/gpu/drm/i915/gt/intel_gt_irq.c 		return gen11_other_irq_handler(gt, instance, intr);
instance          121 drivers/gpu/drm/i915/gt/intel_gt_irq.c 		  class, instance, intr);
instance          459 drivers/gpu/drm/i915/gt/intel_lrc.c 		desc |= (u64)engine->instance << GEN11_ENGINE_INSTANCE_SHIFT;
instance         3731 drivers/gpu/drm/i915/gt/intel_lrc.c 	ve->base.instance = I915_ENGINE_CLASS_INVALID_VIRTUAL;
instance          322 drivers/gpu/drm/i915/gt/intel_reset.c 		if ((BIT(engine->instance) & vdbox_sfc_access) == 0)
instance          333 drivers/gpu/drm/i915/gt/intel_reset.c 		sfc_reset_bit = GEN11_VCS_SFC_RESET_BIT(engine->instance);
instance          345 drivers/gpu/drm/i915/gt/intel_reset.c 		sfc_reset_bit = GEN11_VECS_SFC_RESET_BIT(engine->instance);
instance          386 drivers/gpu/drm/i915/gt/intel_reset.c 		if ((BIT(engine->instance) & vdbox_sfc_access) == 0)
instance          254 drivers/gpu/drm/i915/gt/mock_engine.c 	engine->base.instance = id;
instance           25 drivers/gpu/drm/i915/gt/selftest_engine_cs.c 				       info->class, info->instance,
instance           37 drivers/gpu/drm/i915/gt/selftest_engine_cs.c 				       info->class, info->instance,
instance           48 drivers/gpu/drm/i915/gt/selftest_engine_cs.c 			 info->instance,
instance          400 drivers/gpu/drm/i915/i915_reg.h #define  GEN11_VCS_SFC_RESET_BIT(instance)	(GEN11_GRDOM_SFC0 << ((instance) >> 1))
instance          401 drivers/gpu/drm/i915/i915_reg.h #define  GEN11_VECS_SFC_RESET_BIT(instance)	(GEN11_GRDOM_SFC0 << (instance))
instance          671 drivers/gpu/drm/i915/i915_trace.h 			     __field(u16, instance)
instance          680 drivers/gpu/drm/i915/i915_trace.h 			   __entry->instance = rq->engine->uabi_instance;
instance          687 drivers/gpu/drm/i915/i915_trace.h 		      __entry->dev, __entry->class, __entry->instance,
instance          701 drivers/gpu/drm/i915/i915_trace.h 			     __field(u16, instance)
instance          709 drivers/gpu/drm/i915/i915_trace.h 			   __entry->instance = rq->engine->uabi_instance;
instance          715 drivers/gpu/drm/i915/i915_trace.h 		      __entry->dev, __entry->class, __entry->instance,
instance          744 drivers/gpu/drm/i915/i915_trace.h 			     __field(u16, instance)
instance          754 drivers/gpu/drm/i915/i915_trace.h 			   __entry->instance = rq->engine->uabi_instance;
instance          762 drivers/gpu/drm/i915/i915_trace.h 		      __entry->dev, __entry->class, __entry->instance,
instance          776 drivers/gpu/drm/i915/i915_trace.h 			     __field(u16, instance)
instance          785 drivers/gpu/drm/i915/i915_trace.h 			   __entry->instance = rq->engine->uabi_instance;
instance          792 drivers/gpu/drm/i915/i915_trace.h 			      __entry->dev, __entry->class, __entry->instance,
instance          835 drivers/gpu/drm/i915/i915_trace.h 			     __field(u16, instance)
instance          850 drivers/gpu/drm/i915/i915_trace.h 			   __entry->instance = rq->engine->uabi_instance;
instance          857 drivers/gpu/drm/i915/i915_trace.h 		      __entry->dev, __entry->class, __entry->instance,
instance         1658 drivers/gpu/drm/radeon/radeon.h 			     int instance);
instance           63 drivers/gpu/drm/radeon/radeon_dp_auxch.c 	int instance = chan->rec.i2c_id & 0xf;
instance          104 drivers/gpu/drm/radeon/radeon_dp_auxch.c 	tmp = RREG32(AUX_CONTROL + aux_offset[instance]);
instance          110 drivers/gpu/drm/radeon/radeon_dp_auxch.c 	WREG32(AUX_CONTROL + aux_offset[instance], tmp);
instance          113 drivers/gpu/drm/radeon/radeon_dp_auxch.c 	WREG32(AUX_SW_CONTROL + aux_offset[instance],
instance          115 drivers/gpu/drm/radeon/radeon_dp_auxch.c 	WREG32(AUX_SW_CONTROL + aux_offset[instance],
instance          121 drivers/gpu/drm/radeon/radeon_dp_auxch.c 	WREG32(AUX_SW_DATA + aux_offset[instance],
instance          125 drivers/gpu/drm/radeon/radeon_dp_auxch.c 	WREG32(AUX_SW_DATA + aux_offset[instance],
instance          129 drivers/gpu/drm/radeon/radeon_dp_auxch.c 	WREG32(AUX_SW_DATA + aux_offset[instance],
instance          133 drivers/gpu/drm/radeon/radeon_dp_auxch.c 	WREG32(AUX_SW_DATA + aux_offset[instance],
instance          139 drivers/gpu/drm/radeon/radeon_dp_auxch.c 			WREG32(AUX_SW_DATA + aux_offset[instance],
instance          145 drivers/gpu/drm/radeon/radeon_dp_auxch.c 	WREG32(AUX_SW_INTERRUPT_CONTROL + aux_offset[instance], AUX_SW_DONE_ACK);
instance          148 drivers/gpu/drm/radeon/radeon_dp_auxch.c 	WREG32(AUX_SW_CONTROL + aux_offset[instance],
instance          153 drivers/gpu/drm/radeon/radeon_dp_auxch.c 		tmp = RREG32(AUX_SW_STATUS + aux_offset[instance]);
instance          179 drivers/gpu/drm/radeon/radeon_dp_auxch.c 		WREG32(AUX_SW_DATA + aux_offset[instance],
instance          182 drivers/gpu/drm/radeon/radeon_dp_auxch.c 		tmp = RREG32(AUX_SW_DATA + aux_offset[instance]);
instance          186 drivers/gpu/drm/radeon/radeon_dp_auxch.c 			tmp = RREG32(AUX_SW_DATA + aux_offset[instance]);
instance          194 drivers/gpu/drm/radeon/radeon_dp_auxch.c 	WREG32(AUX_SW_INTERRUPT_CONTROL + aux_offset[instance], AUX_SW_DONE_ACK);
instance           58 drivers/gpu/drm/radeon/radeon_pm.c 			     int instance)
instance           66 drivers/gpu/drm/radeon/radeon_pm.c 			if (found_instance == instance)
instance          329 drivers/hv/hyperv_vmbus.h 				      const guid_t *instance,
instance         1804 drivers/hv/vmbus_drv.c 				      const guid_t *instance,
instance         1817 drivers/hv/vmbus_drv.c 	guid_copy(&child_device_obj->dev_instance, instance);
instance         1290 drivers/input/touchscreen/atmel_mxt_ts.c 	unsigned int type, instance, size, byte_offset;
instance         1300 drivers/input/touchscreen/atmel_mxt_ts.c 			     &type, &instance, &size, &offset);
instance         1348 drivers/input/touchscreen/atmel_mxt_ts.c 		if (instance >= mxt_obj_instances(object)) {
instance         1353 drivers/input/touchscreen/atmel_mxt_ts.c 		reg = object->start_address + mxt_obj_size(object) * instance;
instance         2687 drivers/input/touchscreen/atmel_mxt_ts.c 				 struct mxt_object *object, int instance,
instance         2694 drivers/input/touchscreen/atmel_mxt_ts.c 				   "Instance %u\n", instance);
instance           82 drivers/mailbox/mailbox-sti.c 	unsigned int		instance;
instance           90 drivers/mailbox/mailbox-sti.c 	unsigned int instance = chan_info->instance;
instance           93 drivers/mailbox/mailbox-sti.c 	return mdev->enabled[instance] & BIT(channel);
instance           98 drivers/mailbox/mailbox-sti.c 				      unsigned int instance,
instance          107 drivers/mailbox/mailbox-sti.c 		    chan_info->instance == instance &&
instance          114 drivers/mailbox/mailbox-sti.c 		instance, channel);
instance          123 drivers/mailbox/mailbox-sti.c 	unsigned int instance = chan_info->instance;
instance          126 drivers/mailbox/mailbox-sti.c 	void __iomem *base = MBOX_BASE(mdev, instance);
instance          129 drivers/mailbox/mailbox-sti.c 	mdev->enabled[instance] |= BIT(channel);
instance          138 drivers/mailbox/mailbox-sti.c 	unsigned int instance = chan_info->instance;
instance          141 drivers/mailbox/mailbox-sti.c 	void __iomem *base = MBOX_BASE(mdev, instance);
instance          144 drivers/mailbox/mailbox-sti.c 	mdev->enabled[instance] &= ~BIT(channel);
instance          153 drivers/mailbox/mailbox-sti.c 	unsigned int instance = chan_info->instance;
instance          155 drivers/mailbox/mailbox-sti.c 	void __iomem *base = MBOX_BASE(mdev, instance);
instance          161 drivers/mailbox/mailbox-sti.c 						 unsigned int instance)
instance          167 drivers/mailbox/mailbox-sti.c 	void __iomem *base = MBOX_BASE(mdev, instance);
instance          179 drivers/mailbox/mailbox-sti.c 		chan = sti_mbox_to_channel(mbox, instance, channel);
instance          183 drivers/mailbox/mailbox-sti.c 				instance, channel);
instance          196 drivers/mailbox/mailbox-sti.c 	unsigned int instance;
instance          198 drivers/mailbox/mailbox-sti.c 	for (instance = 0; instance < pdata->num_inst; instance++) {
instance          200 drivers/mailbox/mailbox-sti.c 		chan = sti_mbox_irq_to_channel(mdev, instance);
instance          219 drivers/mailbox/mailbox-sti.c 	unsigned int instance;
instance          222 drivers/mailbox/mailbox-sti.c 	for (instance = 0; instance < pdata->num_inst; instance++) {
instance          223 drivers/mailbox/mailbox-sti.c 		chan = sti_mbox_irq_to_channel(mdev, instance);
instance          232 drivers/mailbox/mailbox-sti.c 				 mdev->name, chan_info->instance,
instance          233 drivers/mailbox/mailbox-sti.c 				 chan_info->channel, mdev->enabled[instance]);
instance          255 drivers/mailbox/mailbox-sti.c 	unsigned int instance = chan_info->instance;
instance          257 drivers/mailbox/mailbox-sti.c 	void __iomem *base = MBOX_BASE(mdev, instance);
instance          261 drivers/mailbox/mailbox-sti.c 			mdev->name, instance, channel);
instance          267 drivers/mailbox/mailbox-sti.c 			mdev->name, instance, channel);
instance          278 drivers/mailbox/mailbox-sti.c 	unsigned int instance = chan_info->instance;
instance          280 drivers/mailbox/mailbox-sti.c 	void __iomem *base = MBOX_BASE(mdev, instance);
instance          287 drivers/mailbox/mailbox-sti.c 		mdev->name, instance, channel);
instance          328 drivers/mailbox/mailbox-sti.c 	unsigned int instance  = spec->args[0];
instance          333 drivers/mailbox/mailbox-sti.c 	if (instance >= pdata->num_inst || channel  >= pdata->num_chan) {
instance          336 drivers/mailbox/mailbox-sti.c 			instance, channel);
instance          346 drivers/mailbox/mailbox-sti.c 		    instance == chan_info->instance &&
instance          371 drivers/mailbox/mailbox-sti.c 	chan_info->instance	= instance;
instance          378 drivers/mailbox/mailbox-sti.c 		 mdev->name, instance, channel);
instance          678 drivers/media/dvb-frontends/au8522_decoder.c 	int instance;
instance          690 drivers/media/dvb-frontends/au8522_decoder.c 	instance = au8522_get_state(&state, client->adapter, client->addr);
instance          691 drivers/media/dvb-frontends/au8522_decoder.c 	switch (instance) {
instance          837 drivers/media/dvb-frontends/au8522_dig.c 	int instance;
instance          840 drivers/media/dvb-frontends/au8522_dig.c 	instance = au8522_get_state(&state, i2c, config->demod_address);
instance          841 drivers/media/dvb-frontends/au8522_dig.c 	switch (instance) {
instance          405 drivers/media/i2c/saa6588.c 		poll_wait(a->instance, &s->read_queue, a->event_list);
instance         3267 drivers/media/pci/bt8xx/bttv-driver.c 	cmd.instance = file;
instance         3289 drivers/media/pci/bt8xx/bttv-driver.c 	cmd.instance = file;
instance           72 drivers/media/pci/cobalt/cobalt-alsa-main.c 		 cobalt->instance, s->video_channel);
instance           77 drivers/media/pci/cobalt/cobalt-alsa-main.c 		 cobalt->instance, s->video_channel);
instance          669 drivers/media/pci/cobalt/cobalt-driver.c 	cobalt->instance = i;
instance          674 drivers/media/pci/cobalt/cobalt-driver.c 				cobalt->instance);
instance          679 drivers/media/pci/cobalt/cobalt-driver.c 		 "cobalt-%d", cobalt->instance);
instance          681 drivers/media/pci/cobalt/cobalt-driver.c 	cobalt_info("Initializing card %d\n", cobalt->instance);
instance          251 drivers/media/pci/cobalt/cobalt-driver.h 	int instance;
instance          356 drivers/media/pci/cobalt/cobalt-i2c.c 				" #%d-%d", cobalt->instance, i);
instance          110 drivers/media/pci/cx18/cx18-alsa-main.c 		 cx->instance);
instance          115 drivers/media/pci/cx18/cx18-alsa-main.c 		 cx->instance, cx->card_name);
instance          629 drivers/media/pci/cx18/cx18-driver.c 	cx->options.cardtype = cardtype[cx->instance];
instance          630 drivers/media/pci/cx18/cx18-driver.c 	cx->options.tuner = tuner[cx->instance];
instance          631 drivers/media/pci/cx18/cx18-driver.c 	cx->options.radio = radio[cx->instance];
instance          805 drivers/media/pci/cx18/cx18-driver.c 		CX18_ERR("Can't enable device %d!\n", cx->instance);
instance          809 drivers/media/pci/cx18/cx18-driver.c 		CX18_ERR("No suitable DMA available, card %d\n", cx->instance);
instance          814 drivers/media/pci/cx18/cx18-driver.c 			 cx->instance);
instance          908 drivers/media/pci/cx18/cx18-driver.c 	cx->instance = i;
instance          913 drivers/media/pci/cx18/cx18-driver.c 		       cx->instance);
instance          918 drivers/media/pci/cx18/cx18-driver.c 		 cx->instance);
instance          919 drivers/media/pci/cx18/cx18-driver.c 	CX18_INFO("Initializing card %d\n", cx->instance);
instance          563 drivers/media/pci/cx18/cx18-driver.h 	int instance;
instance          233 drivers/media/pci/cx18/cx18-i2c.c 				" #%d-%d", cx->instance, i);
instance          301 drivers/media/pci/cx18/cx18-streams.c 	int num = cx->instance + cx18_first_minor + num_offset;
instance          107 drivers/media/pci/ivtv/ivtv-alsa-main.c 		 itv->instance);
instance          112 drivers/media/pci/ivtv/ivtv-alsa-main.c 		 itv->instance, itv->card_name);
instance          131 drivers/media/pci/ivtv/ivtv-alsa-main.c 	idx = index[itv->instance] == -1 ? SNDRV_DEFAULT_IDX1 : index[itv->instance];
instance          176 drivers/media/pci/ivtv/ivtv-alsa-main.c 			 __func__, itv->instance, sc->number);
instance          654 drivers/media/pci/ivtv/ivtv-driver.c 	itv->options.cardtype = cardtype[itv->instance];
instance          655 drivers/media/pci/ivtv/ivtv-driver.c 	itv->options.tuner = tuner[itv->instance];
instance          656 drivers/media/pci/ivtv/ivtv-driver.c 	itv->options.radio = radio[itv->instance];
instance          658 drivers/media/pci/ivtv/ivtv-driver.c 	itv->options.i2c_clock_period = i2c_clock_period[itv->instance];
instance         1006 drivers/media/pci/ivtv/ivtv-driver.c 	itv->instance = v4l2_device_set_name(&itv->v4l2_dev, "ivtv",
instance         1014 drivers/media/pci/ivtv/ivtv-driver.c 	IVTV_INFO("Initializing card %d\n", itv->instance);
instance          648 drivers/media/pci/ivtv/ivtv-driver.h 	u16 instance;
instance          709 drivers/media/pci/ivtv/ivtv-i2c.c 		itv->instance);
instance          202 drivers/media/pci/ivtv/ivtv-streams.c 	int num = itv->instance + ivtv_first_minor + num_offset;
instance          117 drivers/media/pci/ivtv/ivtvfb.c 			printk(KERN_INFO "ivtvfb%d " type ": " fmt, itv->instance , ## args); \
instance          123 drivers/media/pci/ivtv/ivtvfb.c #define IVTVFB_ERR(fmt, args...)   printk(KERN_ERR  "ivtvfb%d: " fmt, itv->instance , ## args)
instance          124 drivers/media/pci/ivtv/ivtvfb.c #define IVTVFB_WARN(fmt, args...)  printk(KERN_WARNING  "ivtvfb%d: " fmt, itv->instance , ## args)
instance          125 drivers/media/pci/ivtv/ivtvfb.c #define IVTVFB_INFO(fmt, args...)  printk(KERN_INFO "ivtvfb%d: " fmt, itv->instance , ## args)
instance         1260 drivers/media/pci/ivtv/ivtvfb.c 		IVTVFB_INFO("Unregister framebuffer %d\n", itv->instance);
instance         1197 drivers/media/pci/saa7134/saa7134-video.c 	cmd.instance = file;
instance         1213 drivers/media/pci/saa7134/saa7134-video.c 	cmd.instance = file;
instance          222 drivers/media/pci/tw68/tw68-core.c 	dev->instance = v4l2_device_set_name(&dev->v4l2_dev, "tw68",
instance          312 drivers/media/pci/tw68/tw68-core.c 	if (dev->instance < TW68_MAXBOARDS)
instance          313 drivers/media/pci/tw68/tw68-core.c 		vidnr = video_nr[dev->instance];
instance          133 drivers/media/pci/tw68/tw68.h 	u16			instance;
instance         1428 drivers/media/radio/radio-si476x.c 	static atomic_t instance = ATOMIC_INIT(0);
instance         1436 drivers/media/radio/radio-si476x.c 	v4l2_device_set_name(&radio->v4l2dev, DRIVER_NAME, &instance);
instance          850 drivers/media/tuners/mxl5007t.c 	int instance, ret;
instance          853 drivers/media/tuners/mxl5007t.c 	instance = hybrid_tuner_request_state(struct mxl5007t_state, state,
instance          856 drivers/media/tuners/mxl5007t.c 	switch (instance) {
instance         2320 drivers/media/tuners/r820t.c 	int instance;
instance         2324 drivers/media/tuners/r820t.c 	instance = hybrid_tuner_request_state(struct r820t_priv, priv,
instance         2328 drivers/media/tuners/r820t.c 	switch (instance) {
instance         1251 drivers/media/tuners/tda18271-fe.c 	int instance, ret;
instance         1255 drivers/media/tuners/tda18271-fe.c 	instance = hybrid_tuner_request_state(struct tda18271_priv, priv,
instance         1258 drivers/media/tuners/tda18271-fe.c 	switch (instance) {
instance          680 drivers/media/tuners/tda9887.c 	int instance;
instance          684 drivers/media/tuners/tda9887.c 	instance = hybrid_tuner_request_state(struct tda9887_priv, priv,
instance          687 drivers/media/tuners/tda9887.c 	switch (instance) {
instance         1053 drivers/media/tuners/tuner-simple.c 	int instance;
instance         1086 drivers/media/tuners/tuner-simple.c 	instance = hybrid_tuner_request_state(struct tuner_simple_priv, priv,
instance         1090 drivers/media/tuners/tuner-simple.c 	switch (instance) {
instance         1460 drivers/media/tuners/tuner-xc2028.c 	int instance;
instance         1475 drivers/media/tuners/tuner-xc2028.c 	instance = hybrid_tuner_request_state(struct xc2028_data, priv,
instance         1479 drivers/media/tuners/tuner-xc2028.c 	switch (instance) {
instance         1651 drivers/media/tuners/xc4000.c 	int	instance;
instance         1660 drivers/media/tuners/xc4000.c 	instance = hybrid_tuner_request_state(struct xc4000_priv, priv,
instance         1663 drivers/media/tuners/xc4000.c 	switch (instance) {
instance         1695 drivers/media/tuners/xc4000.c 	if (instance == 1) {
instance         1731 drivers/media/tuners/xc4000.c 	if (instance == 1) {
instance         1369 drivers/media/tuners/xc5000.c 	int instance;
instance         1378 drivers/media/tuners/xc5000.c 	instance = hybrid_tuner_request_state(struct xc5000_priv, priv,
instance         1381 drivers/media/tuners/xc5000.c 	switch (instance) {
instance           61 drivers/media/v4l2-core/v4l2-device.c 						atomic_t *instance)
instance           63 drivers/media/v4l2-core/v4l2-device.c 	int num = atomic_inc_return(instance) - 1;
instance           37 drivers/mfd/sta2x11-mfd.c 	struct sta2x11_instance *instance;
instance           49 drivers/mfd/sta2x11-mfd.c 	struct sta2x11_instance *instance;
instance           59 drivers/mfd/sta2x11-mfd.c 	instance = sta2x11_get_instance(pdev);
instance           60 drivers/mfd/sta2x11-mfd.c 	if (!instance)
instance           63 drivers/mfd/sta2x11-mfd.c 		if (mfd->instance == instance)
instance           73 drivers/mfd/sta2x11-mfd.c 	struct sta2x11_instance *instance;
instance           77 drivers/mfd/sta2x11-mfd.c 	instance = sta2x11_get_instance(pdev);
instance           78 drivers/mfd/sta2x11-mfd.c 	if (!instance)
instance           86 drivers/mfd/sta2x11-mfd.c 	mfd->instance = instance;
instance          140 drivers/net/ethernet/broadcom/b44.c static int instance;
instance         2168 drivers/net/ethernet/broadcom/b44.c 	    instance > 1) {
instance         2275 drivers/net/ethernet/broadcom/b44.c 	snprintf(mii_bus->id, MII_BUS_ID_SIZE, "%x", instance);
instance         2351 drivers/net/ethernet/broadcom/b44.c 	instance++;
instance           26 drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.h 	__le32 instance;
instance         3159 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 			   int status, u32 duration, u32 instance)
instance         3180 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c 	seg_hdr->instance = cpu_to_le32(instance);
instance         7383 drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h 	__le16	instance;
instance         7403 drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h 	__le32	instance;
instance         7419 drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h 	__le16	instance;
instance         3065 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	msg->instance = flash->instance;
instance         3098 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	msg->instance = flash->instance;
instance         3294 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_nw_flash_update_part(struct bfa_flash *flash, u32 type, u8 instance,
instance         3317 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	flash->instance = instance;
instance         3343 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_nw_flash_read_part(struct bfa_flash *flash, u32 type, u8 instance,
instance         3363 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	flash->instance = instance;
instance          318 drivers/net/ethernet/brocade/bna/bfa_ioc.h 	u8		instance;	/* partition instance */
instance          338 drivers/net/ethernet/brocade/bna/bfa_ioc.h 			u32 type, u8 instance, void *buf, u32 len, u32 offset,
instance          341 drivers/net/ethernet/brocade/bna/bfa_ioc.h 			u32 type, u8 instance, void *buf, u32 len, u32 offset,
instance          499 drivers/net/ethernet/brocade/bna/bfi.h 	u8	instance; /* partition instance */
instance          512 drivers/net/ethernet/brocade/bna/bfi.h 	u8	instance;	/* partition instance */
instance          533 drivers/net/ethernet/brocade/bna/bfi.h 	u8	instance;	/* partition instance */
instance          545 drivers/net/ethernet/brocade/bna/bfi.h 	u8	instance;	/* partition instance */
instance          106 drivers/net/ethernet/chelsio/cxgb/cphy.h 	struct cphy_instance *instance;
instance          129 drivers/net/ethernet/chelsio/cxgb/gmac.h 	cmac_instance *instance;
instance          270 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		if (cmac->instance->fc & PAUSE_RX)
instance          272 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		if (cmac->instance->fc & PAUSE_TX)
instance          277 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	cmac->instance->enabled |= which;
instance          313 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	cmac->instance->enabled &= ~which;
instance          329 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	int enabled = cmac->instance->enabled;
instance          347 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	int enabled = cmac->instance->enabled & MAC_DIRECTION_RX;
instance          405 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		*fc = cmac->instance->fc;
instance          419 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	if (fc != cmac->instance->fc) {
instance          420 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		cmac->instance->fc = (u8) fc;
instance          421 drivers/net/ethernet/chelsio/cxgb/pm3393.c 		if (cmac->instance->enabled & MAC_DIRECTION_TX)
instance          495 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	memcpy(mac_addr, cmac->instance->mac_addr, ETH_ALEN);
instance          501 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	u32 val, lo, mid, hi, enabled = cmac->instance->enabled;
instance          522 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	memcpy(cmac->instance->mac_addr, ma, ETH_ALEN);
instance          596 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	cmac->instance = (cmac_instance *) (cmac + 1);
instance          598 drivers/net/ethernet/chelsio/cxgb/pm3393.c 	cmac->instance->fc = PAUSE_TX | PAUSE_RX;
instance          385 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	int port = mac->instance->index;
instance          408 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	int port = mac->instance->index;
instance          425 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	int index = mac->instance->index;
instance          436 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	int port = mac->instance->index;
instance          452 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	int port = mac->instance->index;
instance          463 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	int enable, port = mac->instance->index;
instance          531 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	int port = mac->instance->index;
instance          548 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	int i, port = mac->instance->index;
instance          618 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	unsigned int port = mac->instance->index;
instance          643 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	    mac->instance->ticks >= MAJOR_UPDATE_TICKS) {
instance          645 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 		mac->instance->ticks = 0;
instance          647 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 		int port = mac->instance->index;
instance          655 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 		mac->instance->ticks++;
instance          693 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	mac->instance = (cmac_instance *)(mac + 1);
instance          696 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	mac->instance->index = index;
instance          697 drivers/net/ethernet/chelsio/cxgb/vsc7326.c 	mac->instance->ticks = 0;
instance         2687 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c 	u32 instance = 0;
instance         2716 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c 			instance = t5_up_cim_reg_array[i][4];
instance         2724 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c 			instance = t6_up_cim_reg_array[i][4];
instance         2727 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c 		switch (instance) {
instance           90 drivers/net/ethernet/ibm/ibmvnic.c static irqreturn_t ibmvnic_interrupt_rx(int irq, void *instance);
instance         2975 drivers/net/ethernet/ibm/ibmvnic.c static irqreturn_t ibmvnic_interrupt_tx(int irq, void *instance)
instance         2977 drivers/net/ethernet/ibm/ibmvnic.c 	struct ibmvnic_sub_crq_queue *scrq = instance;
instance         2986 drivers/net/ethernet/ibm/ibmvnic.c static irqreturn_t ibmvnic_interrupt_rx(int irq, void *instance)
instance         2988 drivers/net/ethernet/ibm/ibmvnic.c 	struct ibmvnic_sub_crq_queue *scrq = instance;
instance         4632 drivers/net/ethernet/ibm/ibmvnic.c static irqreturn_t ibmvnic_interrupt(int irq, void *instance)
instance         4634 drivers/net/ethernet/ibm/ibmvnic.c 	struct ibmvnic_adapter *adapter = instance;
instance          609 drivers/net/ethernet/intel/i40e/i40e.h 	u16 instance; /* A unique number per i40e_pf instance in the system */
instance         14818 drivers/net/ethernet/intel/i40e/i40e_main.c 	pf->instance = pfs_found;
instance          202 drivers/net/ethernet/netronome/nfp/flower/cmsg.h 	u8 instance;
instance          179 drivers/net/ethernet/netronome/nfp/flower/lag_conf.c 	pre_act->instance = group->group_inst;
instance         1748 drivers/net/ethernet/ti/davinci_emac.c 				    int instance, u8 *mac_addr)
instance         1753 drivers/net/ethernet/ti/davinci_emac.c 	return ti_cm_get_macid(&pdev->dev, instance, mac_addr);
instance          440 drivers/nvme/host/core.c 	ida_simple_remove(&head->subsys->ns_ida, head->instance);
instance         2491 drivers/nvme/host/core.c 	if (subsys->instance >= 0)
instance         2492 drivers/nvme/host/core.c 		ida_simple_remove(&nvme_instance_ida, subsys->instance);
instance         2633 drivers/nvme/host/core.c 	subsys->instance = -1;
instance         2652 drivers/nvme/host/core.c 	dev_set_name(&subsys->dev, "nvme-subsys%d", ctrl->instance);
instance         2686 drivers/nvme/host/core.c 		subsys->instance = ctrl->instance;
instance         3343 drivers/nvme/host/core.c 	head->instance = ret;
instance         3375 drivers/nvme/host/core.c 	ida_simple_remove(&ctrl->subsys->ns_ida, head->instance);
instance         4006 drivers/nvme/host/core.c 	if (subsys && ctrl->instance != subsys->instance)
instance         4007 drivers/nvme/host/core.c 		ida_simple_remove(&nvme_instance_ida, ctrl->instance);
instance         4065 drivers/nvme/host/core.c 	ctrl->instance = ret;
instance         4069 drivers/nvme/host/core.c 	ctrl->device->devt = MKDEV(MAJOR(nvme_chr_devt), ctrl->instance);
instance         4075 drivers/nvme/host/core.c 	ret = dev_set_name(ctrl->device, "nvme%d", ctrl->instance);
instance         4099 drivers/nvme/host/core.c 	ida_simple_remove(&nvme_instance_ida, ctrl->instance);
instance         1113 drivers/nvme/host/fabrics.c 			ctrl->instance, ctrl->cntlid);
instance           56 drivers/nvme/host/multipath.c 		sprintf(disk_name, "nvme%dn%d", ctrl->instance, ns->head->instance);
instance           58 drivers/nvme/host/multipath.c 		sprintf(disk_name, "nvme%dc%dn%d", ctrl->subsys->instance,
instance           59 drivers/nvme/host/multipath.c 				ctrl->instance, ns->head->instance);
instance           62 drivers/nvme/host/multipath.c 		sprintf(disk_name, "nvme%dn%d", ctrl->subsys->instance,
instance           63 drivers/nvme/host/multipath.c 				ns->head->instance);
instance          403 drivers/nvme/host/multipath.c 			ctrl->subsys->instance, head->instance);
instance          191 drivers/nvme/host/nvme.h 	int instance;
instance          293 drivers/nvme/host/nvme.h 	int			instance;
instance          341 drivers/nvme/host/nvme.h 	int			instance;
instance          570 drivers/nvme/host/nvme.h 	sprintf(disk_name, "nvme%dn%d", ctrl->instance, ns->head->instance);
instance         1515 drivers/nvme/host/pci.c 	int nr = nvmeq->dev->ctrl.instance;
instance           63 drivers/nvme/host/trace.h 		__entry->ctrl_id = nvme_req(req)->ctrl->instance;
instance           99 drivers/nvme/host/trace.h 		__entry->ctrl_id = nvme_req(req)->ctrl->instance;
instance          125 drivers/nvme/host/trace.h 		__entry->ctrl_id = ctrl->instance;
instance          155 drivers/nvme/host/trace.h 		__entry->ctrl_id = nvme_req(req)->ctrl->instance;
instance           67 drivers/pci/pci-label.c 							 donboard->instance);
instance          319 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance)
instance          321 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u2phy_banks *u2_banks = &instance->u2_banks;
instance          329 drivers/phy/mediatek/phy-mtk-tphy.c 	if (instance->eye_src)
instance          348 drivers/phy/mediatek/phy-mtk-tphy.c 		tmp |= P2F_RG_MONCLK_SEL_VAL(instance->index >> 1);
instance          383 drivers/phy/mediatek/phy-mtk-tphy.c 		instance->index, fm_out, calibration_val,
instance          399 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance)
instance          401 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u3phy_banks *u3_banks = &instance->u3_banks;
instance          445 drivers/phy/mediatek/phy-mtk-tphy.c 	dev_dbg(tphy->dev, "%s(%d)\n", __func__, instance->index);
instance          449 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance)
instance          451 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u2phy_banks *u2_banks = &instance->u2_banks;
instance          453 drivers/phy/mediatek/phy-mtk-tphy.c 	u32 index = instance->index;
instance          511 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance)
instance          513 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u2phy_banks *u2_banks = &instance->u2_banks;
instance          515 drivers/phy/mediatek/phy-mtk-tphy.c 	u32 index = instance->index;
instance          545 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance)
instance          547 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u2phy_banks *u2_banks = &instance->u2_banks;
instance          549 drivers/phy/mediatek/phy-mtk-tphy.c 	u32 index = instance->index;
instance          580 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance)
instance          582 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u2phy_banks *u2_banks = &instance->u2_banks;
instance          584 drivers/phy/mediatek/phy-mtk-tphy.c 	u32 index = instance->index;
instance          599 drivers/phy/mediatek/phy-mtk-tphy.c 				     struct mtk_phy_instance *instance,
instance          602 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u2phy_banks *u2_banks = &instance->u2_banks;
instance          624 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance)
instance          626 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u3phy_banks *u3_banks = &instance->u3_banks;
instance          693 drivers/phy/mediatek/phy-mtk-tphy.c 	dev_dbg(tphy->dev, "%s(%d)\n", __func__, instance->index);
instance          697 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance)
instance          699 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u3phy_banks *bank = &instance->u3_banks;
instance          712 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance)
instance          715 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u3phy_banks *bank = &instance->u3_banks;
instance          728 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance)
instance          730 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u3phy_banks *u3_banks = &instance->u3_banks;
instance          782 drivers/phy/mediatek/phy-mtk-tphy.c 	dev_dbg(tphy->dev, "%s(%d)\n", __func__, instance->index);
instance          786 drivers/phy/mediatek/phy-mtk-tphy.c 			      struct mtk_phy_instance *instance)
instance          788 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u2phy_banks *u2_banks = &instance->u2_banks;
instance          789 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u3phy_banks *u3_banks = &instance->u3_banks;
instance          791 drivers/phy/mediatek/phy-mtk-tphy.c 	switch (instance->type) {
instance          795 drivers/phy/mediatek/phy-mtk-tphy.c 		u2_banks->com = instance->port_base + SSUSB_SIFSLV_V1_U2PHY_COM;
instance          801 drivers/phy/mediatek/phy-mtk-tphy.c 		u3_banks->phyd = instance->port_base + SSUSB_SIFSLV_V1_U3PHYD;
instance          802 drivers/phy/mediatek/phy-mtk-tphy.c 		u3_banks->phya = instance->port_base + SSUSB_SIFSLV_V1_U3PHYA;
instance          805 drivers/phy/mediatek/phy-mtk-tphy.c 		u3_banks->phyd = instance->port_base + SSUSB_SIFSLV_V1_U3PHYD;
instance          814 drivers/phy/mediatek/phy-mtk-tphy.c 			      struct mtk_phy_instance *instance)
instance          816 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u2phy_banks *u2_banks = &instance->u2_banks;
instance          817 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u3phy_banks *u3_banks = &instance->u3_banks;
instance          819 drivers/phy/mediatek/phy-mtk-tphy.c 	switch (instance->type) {
instance          821 drivers/phy/mediatek/phy-mtk-tphy.c 		u2_banks->misc = instance->port_base + SSUSB_SIFSLV_V2_MISC;
instance          822 drivers/phy/mediatek/phy-mtk-tphy.c 		u2_banks->fmreg = instance->port_base + SSUSB_SIFSLV_V2_U2FREQ;
instance          823 drivers/phy/mediatek/phy-mtk-tphy.c 		u2_banks->com = instance->port_base + SSUSB_SIFSLV_V2_U2PHY_COM;
instance          827 drivers/phy/mediatek/phy-mtk-tphy.c 		u3_banks->spllc = instance->port_base + SSUSB_SIFSLV_V2_SPLLC;
instance          828 drivers/phy/mediatek/phy-mtk-tphy.c 		u3_banks->chip = instance->port_base + SSUSB_SIFSLV_V2_CHIP;
instance          829 drivers/phy/mediatek/phy-mtk-tphy.c 		u3_banks->phyd = instance->port_base + SSUSB_SIFSLV_V2_U3PHYD;
instance          830 drivers/phy/mediatek/phy-mtk-tphy.c 		u3_banks->phya = instance->port_base + SSUSB_SIFSLV_V2_U3PHYA;
instance          839 drivers/phy/mediatek/phy-mtk-tphy.c 				struct mtk_phy_instance *instance)
instance          841 drivers/phy/mediatek/phy-mtk-tphy.c 	struct device *dev = &instance->phy->dev;
instance          843 drivers/phy/mediatek/phy-mtk-tphy.c 	if (instance->type != PHY_TYPE_USB2)
instance          846 drivers/phy/mediatek/phy-mtk-tphy.c 	instance->bc12_en = device_property_read_bool(dev, "mediatek,bc12");
instance          848 drivers/phy/mediatek/phy-mtk-tphy.c 				 &instance->eye_src);
instance          850 drivers/phy/mediatek/phy-mtk-tphy.c 				 &instance->eye_vrt);
instance          852 drivers/phy/mediatek/phy-mtk-tphy.c 				 &instance->eye_term);
instance          854 drivers/phy/mediatek/phy-mtk-tphy.c 		instance->bc12_en, instance->eye_src,
instance          855 drivers/phy/mediatek/phy-mtk-tphy.c 		instance->eye_vrt, instance->eye_term);
instance          859 drivers/phy/mediatek/phy-mtk-tphy.c 			     struct mtk_phy_instance *instance)
instance          861 drivers/phy/mediatek/phy-mtk-tphy.c 	struct u2phy_banks *u2_banks = &instance->u2_banks;
instance          865 drivers/phy/mediatek/phy-mtk-tphy.c 	if (instance->bc12_en) {
instance          871 drivers/phy/mediatek/phy-mtk-tphy.c 	if (instance->eye_src) {
instance          874 drivers/phy/mediatek/phy-mtk-tphy.c 		tmp |= PA5_RG_U2_HSTX_SRCTRL_VAL(instance->eye_src);
instance          878 drivers/phy/mediatek/phy-mtk-tphy.c 	if (instance->eye_vrt) {
instance          881 drivers/phy/mediatek/phy-mtk-tphy.c 		tmp |= PA1_RG_VRT_SEL_VAL(instance->eye_vrt);
instance          885 drivers/phy/mediatek/phy-mtk-tphy.c 	if (instance->eye_term) {
instance          888 drivers/phy/mediatek/phy-mtk-tphy.c 		tmp |= PA1_RG_TERM_SEL_VAL(instance->eye_term);
instance          895 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance = phy_get_drvdata(phy);
instance          905 drivers/phy/mediatek/phy-mtk-tphy.c 	ret = clk_prepare_enable(instance->ref_clk);
instance          911 drivers/phy/mediatek/phy-mtk-tphy.c 	switch (instance->type) {
instance          913 drivers/phy/mediatek/phy-mtk-tphy.c 		u2_phy_instance_init(tphy, instance);
instance          914 drivers/phy/mediatek/phy-mtk-tphy.c 		u2_phy_props_set(tphy, instance);
instance          917 drivers/phy/mediatek/phy-mtk-tphy.c 		u3_phy_instance_init(tphy, instance);
instance          920 drivers/phy/mediatek/phy-mtk-tphy.c 		pcie_phy_instance_init(tphy, instance);
instance          923 drivers/phy/mediatek/phy-mtk-tphy.c 		sata_phy_instance_init(tphy, instance);
instance          935 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance = phy_get_drvdata(phy);
instance          938 drivers/phy/mediatek/phy-mtk-tphy.c 	if (instance->type == PHY_TYPE_USB2) {
instance          939 drivers/phy/mediatek/phy-mtk-tphy.c 		u2_phy_instance_power_on(tphy, instance);
instance          940 drivers/phy/mediatek/phy-mtk-tphy.c 		hs_slew_rate_calibrate(tphy, instance);
instance          941 drivers/phy/mediatek/phy-mtk-tphy.c 	} else if (instance->type == PHY_TYPE_PCIE) {
instance          942 drivers/phy/mediatek/phy-mtk-tphy.c 		pcie_phy_instance_power_on(tphy, instance);
instance          950 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance = phy_get_drvdata(phy);
instance          953 drivers/phy/mediatek/phy-mtk-tphy.c 	if (instance->type == PHY_TYPE_USB2)
instance          954 drivers/phy/mediatek/phy-mtk-tphy.c 		u2_phy_instance_power_off(tphy, instance);
instance          955 drivers/phy/mediatek/phy-mtk-tphy.c 	else if (instance->type == PHY_TYPE_PCIE)
instance          956 drivers/phy/mediatek/phy-mtk-tphy.c 		pcie_phy_instance_power_off(tphy, instance);
instance          963 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance = phy_get_drvdata(phy);
instance          966 drivers/phy/mediatek/phy-mtk-tphy.c 	if (instance->type == PHY_TYPE_USB2)
instance          967 drivers/phy/mediatek/phy-mtk-tphy.c 		u2_phy_instance_exit(tphy, instance);
instance          969 drivers/phy/mediatek/phy-mtk-tphy.c 	clk_disable_unprepare(instance->ref_clk);
instance          976 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance = phy_get_drvdata(phy);
instance          979 drivers/phy/mediatek/phy-mtk-tphy.c 	if (instance->type == PHY_TYPE_USB2)
instance          980 drivers/phy/mediatek/phy-mtk-tphy.c 		u2_phy_instance_set_mode(tphy, instance, mode);
instance          989 drivers/phy/mediatek/phy-mtk-tphy.c 	struct mtk_phy_instance *instance = NULL;
instance         1000 drivers/phy/mediatek/phy-mtk-tphy.c 			instance = tphy->phys[index];
instance         1004 drivers/phy/mediatek/phy-mtk-tphy.c 	if (!instance) {
instance         1009 drivers/phy/mediatek/phy-mtk-tphy.c 	instance->type = args->args[0];
instance         1010 drivers/phy/mediatek/phy-mtk-tphy.c 	if (!(instance->type == PHY_TYPE_USB2 ||
instance         1011 drivers/phy/mediatek/phy-mtk-tphy.c 	      instance->type == PHY_TYPE_USB3 ||
instance         1012 drivers/phy/mediatek/phy-mtk-tphy.c 	      instance->type == PHY_TYPE_PCIE ||
instance         1013 drivers/phy/mediatek/phy-mtk-tphy.c 	      instance->type == PHY_TYPE_SATA)) {
instance         1014 drivers/phy/mediatek/phy-mtk-tphy.c 		dev_err(dev, "unsupported device type: %d\n", instance->type);
instance         1019 drivers/phy/mediatek/phy-mtk-tphy.c 		phy_v1_banks_init(tphy, instance);
instance         1021 drivers/phy/mediatek/phy-mtk-tphy.c 		phy_v2_banks_init(tphy, instance);
instance         1027 drivers/phy/mediatek/phy-mtk-tphy.c 	phy_parse_property(tphy, instance);
instance         1029 drivers/phy/mediatek/phy-mtk-tphy.c 	return instance->phy;
instance         1119 drivers/phy/mediatek/phy-mtk-tphy.c 		struct mtk_phy_instance *instance;
instance         1122 drivers/phy/mediatek/phy-mtk-tphy.c 		instance = devm_kzalloc(dev, sizeof(*instance), GFP_KERNEL);
instance         1123 drivers/phy/mediatek/phy-mtk-tphy.c 		if (!instance) {
instance         1128 drivers/phy/mediatek/phy-mtk-tphy.c 		tphy->phys[port] = instance;
instance         1144 drivers/phy/mediatek/phy-mtk-tphy.c 		instance->port_base = devm_ioremap_resource(&phy->dev, &res);
instance         1145 drivers/phy/mediatek/phy-mtk-tphy.c 		if (IS_ERR(instance->port_base)) {
instance         1147 drivers/phy/mediatek/phy-mtk-tphy.c 			retval = PTR_ERR(instance->port_base);
instance         1151 drivers/phy/mediatek/phy-mtk-tphy.c 		instance->phy = phy;
instance         1152 drivers/phy/mediatek/phy-mtk-tphy.c 		instance->index = port;
instance         1153 drivers/phy/mediatek/phy-mtk-tphy.c 		phy_set_drvdata(phy, instance);
instance         1160 drivers/phy/mediatek/phy-mtk-tphy.c 		instance->ref_clk = devm_clk_get(&phy->dev, "ref");
instance         1161 drivers/phy/mediatek/phy-mtk-tphy.c 		if (IS_ERR(instance->ref_clk)) {
instance         1163 drivers/phy/mediatek/phy-mtk-tphy.c 			retval = PTR_ERR(instance->ref_clk);
instance           55 drivers/phy/ti/phy-dm816x-usb.c 	unsigned int instance;
instance          127 drivers/phy/ti/phy-dm816x-usb.c 	mask = BIT(phy->instance);
instance          128 drivers/phy/ti/phy-dm816x-usb.c 	val = ~BIT(phy->instance);
instance          133 drivers/phy/ti/phy-dm816x-usb.c 			phy->instance);
instance          155 drivers/phy/ti/phy-dm816x-usb.c 	mask = BIT(phy->instance);
instance          156 drivers/phy/ti/phy-dm816x-usb.c 	val = BIT(phy->instance);
instance          161 drivers/phy/ti/phy-dm816x-usb.c 			phy->instance);
instance          221 drivers/phy/ti/phy-dm816x-usb.c 		phy->instance = 1;
instance          693 drivers/platform/chrome/chromeos_laptop.c 	return dev_data->instance;
instance           91 drivers/platform/x86/msi-wmi.c static int msi_wmi_query_block(int instance, int *ret)
instance           98 drivers/platform/x86/msi-wmi.c 	status = wmi_query_block(MSIWMI_BIOS_GUID, instance, &output);
instance          117 drivers/platform/x86/msi-wmi.c static int msi_wmi_set_block(int instance, int value)
instance          124 drivers/platform/x86/msi-wmi.c 		 instance, value);
instance          126 drivers/platform/x86/msi-wmi.c 	status = wmi_set_block(MSIWMI_BIOS_GUID, instance, &input);
instance           57 drivers/platform/x86/surface3-wmi.c static int s3_wmi_query_block(const char *guid, int instance, int *ret)
instance           65 drivers/platform/x86/surface3-wmi.c 	status = wmi_query_block(guid, instance, &output);
instance           46 drivers/platform/x86/tc1100-wmi.c static int get_state(u32 *out, u8 instance)
instance           56 drivers/platform/x86/tc1100-wmi.c 	if (instance > 2)
instance           59 drivers/platform/x86/tc1100-wmi.c 	status = wmi_query_block(GUID, instance, &result);
instance           73 drivers/platform/x86/tc1100-wmi.c 	switch (instance) {
instance           85 drivers/platform/x86/tc1100-wmi.c static int set_state(u32 *in, u8 instance)
instance           94 drivers/platform/x86/tc1100-wmi.c 	if (instance > 2)
instance           97 drivers/platform/x86/tc1100-wmi.c 	switch (instance) {
instance          111 drivers/platform/x86/tc1100-wmi.c 	status = wmi_set_block(GUID, instance, &input);
instance          125 drivers/platform/x86/tc1100-wmi.c #define show_set_bool(value, instance) \
instance          131 drivers/platform/x86/tc1100-wmi.c 	acpi_status status = get_state(&result, instance); \
instance          142 drivers/platform/x86/tc1100-wmi.c 	acpi_status status = set_state(&tmp, instance); \
instance          229 drivers/platform/x86/wmi.c acpi_status wmi_evaluate_method(const char *guid_string, u8 instance,
instance          236 drivers/platform/x86/wmi.c 	return wmidev_evaluate_method(&wblock->dev, instance, method_id,
instance          251 drivers/platform/x86/wmi.c acpi_status wmidev_evaluate_method(struct wmi_device *wdev, u8 instance,
instance          269 drivers/platform/x86/wmi.c 	if (block->instance_count <= instance)
instance          275 drivers/platform/x86/wmi.c 	params[0].integer.value = instance;
instance          299 drivers/platform/x86/wmi.c static acpi_status __query_block(struct wmi_block *wblock, u8 instance,
instance          316 drivers/platform/x86/wmi.c 	if (block->instance_count <= instance)
instance          326 drivers/platform/x86/wmi.c 	wq_params[0].integer.value = instance;
instance          328 drivers/platform/x86/wmi.c 	if (instance == 0 && wblock->read_takes_no_args)
instance          370 drivers/platform/x86/wmi.c acpi_status wmi_query_block(const char *guid_string, u8 instance,
instance          381 drivers/platform/x86/wmi.c 	return __query_block(wblock, instance, out);
instance          385 drivers/platform/x86/wmi.c union acpi_object *wmidev_block_query(struct wmi_device *wdev, u8 instance)
instance          390 drivers/platform/x86/wmi.c 	if (ACPI_FAILURE(__query_block(wblock, instance, &out)))
instance          405 drivers/platform/x86/wmi.c acpi_status wmi_set_block(const char *guid_string, u8 instance,
instance          424 drivers/platform/x86/wmi.c 	if (block->instance_count <= instance)
instance          434 drivers/platform/x86/wmi.c 	params[0].integer.value = instance;
instance          386 drivers/remoteproc/qcom_sysmon.c 		if (svc->instance != 0)
instance          392 drivers/remoteproc/qcom_sysmon.c 		if (svc->instance != sysmon->ssctl_instance)
instance          215 drivers/s390/cio/chsc.h 	u32 instance;
instance         1816 drivers/s390/cio/qdio_main.c 		if (!isfirstblock && (rr->naihdr.instance != prev_instance)) {
instance         1823 drivers/s390/cio/qdio_main.c 		prev_instance = rr->naihdr.instance;
instance          284 drivers/scsi/NCR5380.c static void NCR5380_print(struct Scsi_Host *instance)
instance          286 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          333 drivers/scsi/NCR5380.c static void NCR5380_print_phase(struct Scsi_Host *instance)
instance          335 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          341 drivers/scsi/NCR5380.c 		shost_printk(KERN_DEBUG, instance, "REQ not asserted, phase unknown.\n");
instance          346 drivers/scsi/NCR5380.c 		shost_printk(KERN_DEBUG, instance, "phase %s\n", phases[i].name);
instance          358 drivers/scsi/NCR5380.c static const char *NCR5380_info(struct Scsi_Host *instance)
instance          360 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          379 drivers/scsi/NCR5380.c static int NCR5380_init(struct Scsi_Host *instance, int flags)
instance          381 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          386 drivers/scsi/NCR5380.c 	instance->max_lun = 7;
instance          388 drivers/scsi/NCR5380.c 	hostdata->host = instance;
instance          389 drivers/scsi/NCR5380.c 	hostdata->id_mask = 1 << instance->this_id;
instance          410 drivers/scsi/NCR5380.c 	                        1, instance->host_no);
instance          416 drivers/scsi/NCR5380.c 		instance->hostt->name, instance->irq, hostdata->io_port,
instance          417 drivers/scsi/NCR5380.c 		hostdata->base, instance->can_queue, instance->cmd_per_lun,
instance          418 drivers/scsi/NCR5380.c 		instance->sg_tablesize, instance->this_id,
instance          460 drivers/scsi/NCR5380.c static int NCR5380_maybe_reset_bus(struct Scsi_Host *instance)
instance          462 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          470 drivers/scsi/NCR5380.c 			shost_printk(KERN_ERR, instance, "SCSI bus busy, waiting up to five seconds\n");
instance          475 drivers/scsi/NCR5380.c 			shost_printk(KERN_ERR, instance, "bus busy, attempting abort\n");
instance          476 drivers/scsi/NCR5380.c 			do_abort(instance);
instance          479 drivers/scsi/NCR5380.c 			shost_printk(KERN_ERR, instance, "bus busy, attempting reset\n");
instance          480 drivers/scsi/NCR5380.c 			do_reset(instance);
instance          491 drivers/scsi/NCR5380.c 			shost_printk(KERN_ERR, instance, "bus locked solid\n");
instance          505 drivers/scsi/NCR5380.c static void NCR5380_exit(struct Scsi_Host *instance)
instance          507 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          519 drivers/scsi/NCR5380.c static void complete_cmd(struct Scsi_Host *instance,
instance          522 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          524 drivers/scsi/NCR5380.c 	dsprintk(NDEBUG_QUEUES, instance, "complete_cmd: cmd %p\n", cmd);
instance          550 drivers/scsi/NCR5380.c static int NCR5380_queue_command(struct Scsi_Host *instance,
instance          553 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          561 drivers/scsi/NCR5380.c 		shost_printk(KERN_DEBUG, instance, "WRITE attempted with NDEBUG_NO_WRITE set\n");
instance          570 drivers/scsi/NCR5380.c 	if (!NCR5380_acquire_dma_irq(instance))
instance          589 drivers/scsi/NCR5380.c 	dsprintk(NDEBUG_QUEUES, instance, "command %p added to %s of queue\n",
instance          597 drivers/scsi/NCR5380.c static inline void maybe_release_dma_irq(struct Scsi_Host *instance)
instance          599 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          607 drivers/scsi/NCR5380.c 		NCR5380_release_dma_irq(instance);
instance          622 drivers/scsi/NCR5380.c static struct scsi_cmnd *dequeue_next_cmd(struct Scsi_Host *instance)
instance          624 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          631 drivers/scsi/NCR5380.c 			dsprintk(NDEBUG_QUEUES, instance, "dequeue: cmd=%p target=%d busy=0x%02x lun=%llu\n",
instance          636 drivers/scsi/NCR5380.c 				dsprintk(NDEBUG_QUEUES, instance,
instance          647 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_QUEUES, instance,
instance          656 drivers/scsi/NCR5380.c static void requeue_cmd(struct Scsi_Host *instance, struct scsi_cmnd *cmd)
instance          658 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          682 drivers/scsi/NCR5380.c 	struct Scsi_Host *instance = hostdata->host;
instance          690 drivers/scsi/NCR5380.c 			struct scsi_cmnd *cmd = dequeue_next_cmd(instance);
instance          695 drivers/scsi/NCR5380.c 			dsprintk(NDEBUG_MAIN, instance, "main: dequeued %p\n", cmd);
instance          710 drivers/scsi/NCR5380.c 			if (!NCR5380_select(instance, cmd)) {
instance          711 drivers/scsi/NCR5380.c 				dsprintk(NDEBUG_MAIN, instance, "main: select complete\n");
instance          712 drivers/scsi/NCR5380.c 				maybe_release_dma_irq(instance);
instance          714 drivers/scsi/NCR5380.c 				dsprintk(NDEBUG_MAIN | NDEBUG_QUEUES, instance,
instance          716 drivers/scsi/NCR5380.c 				requeue_cmd(instance, cmd);
instance          720 drivers/scsi/NCR5380.c 			dsprintk(NDEBUG_MAIN, instance, "main: performing information transfer\n");
instance          721 drivers/scsi/NCR5380.c 			NCR5380_information_transfer(instance);
instance          740 drivers/scsi/NCR5380.c static void NCR5380_dma_complete(struct Scsi_Host *instance)
instance          742 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          758 drivers/scsi/NCR5380.c 				dsprintk(NDEBUG_DMA, instance, "read overrun handled\n");
instance          766 drivers/scsi/NCR5380.c 		       instance->host_no);
instance          772 drivers/scsi/NCR5380.c 		pr_err("scsi%d: BASR %02x\n", instance->host_no,
instance          775 drivers/scsi/NCR5380.c 		       instance->host_no);
instance          798 drivers/scsi/NCR5380.c 				dsprintk(NDEBUG_DMA, instance,
instance          806 drivers/scsi/NCR5380.c 				dsprintk(NDEBUG_DMA, instance,
instance          808 drivers/scsi/NCR5380.c 				NCR5380_transfer_pio(instance, &p, &cnt, data);
instance          851 drivers/scsi/NCR5380.c 	struct Scsi_Host *instance = dev_id;
instance          852 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          864 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_INTR, instance, "IRQ %d, BASR 0x%02x, SR 0x%02x, MR 0x%02x\n",
instance          873 drivers/scsi/NCR5380.c 			dsprintk(NDEBUG_INTR, instance, "interrupt in DMA mode\n");
instance          876 drivers/scsi/NCR5380.c 				NCR5380_dma_complete(instance);
instance          888 drivers/scsi/NCR5380.c 			dsprintk(NDEBUG_INTR, instance, "interrupt with SEL and IO\n");
instance          891 drivers/scsi/NCR5380.c 				NCR5380_reselect(instance);
instance          902 drivers/scsi/NCR5380.c 				shost_printk(KERN_WARNING, instance,
instance          904 drivers/scsi/NCR5380.c 				bus_reset_cleanup(instance);
instance          906 drivers/scsi/NCR5380.c 				dsprintk(NDEBUG_INTR, instance, "unknown interrupt\n");
instance          914 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_INTR, instance, "interrupt without IRQ bit\n");
instance          950 drivers/scsi/NCR5380.c static bool NCR5380_select(struct Scsi_Host *instance, struct scsi_cmnd *cmd)
instance          953 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          959 drivers/scsi/NCR5380.c 	bool can_disconnect = instance->irq != NO_IRQ &&
instance          963 drivers/scsi/NCR5380.c 	NCR5380_dprint(NDEBUG_ARBITRATION, instance);
instance          964 drivers/scsi/NCR5380.c 	dsprintk(NDEBUG_ARBITRATION, instance, "starting arbitration, id = %d\n",
instance          965 drivers/scsi/NCR5380.c 	         instance->this_id);
instance         1010 drivers/scsi/NCR5380.c 		shost_printk(KERN_ERR, instance,
instance         1024 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_ARBITRATION, instance, "lost arbitration, deasserting MR_ARBITRATE\n");
instance         1058 drivers/scsi/NCR5380.c 	dsprintk(NDEBUG_ARBITRATION, instance, "won arbitration\n");
instance         1114 drivers/scsi/NCR5380.c 	dsprintk(NDEBUG_SELECTION, instance, "selecting target %d\n", scmd_id(cmd));
instance         1127 drivers/scsi/NCR5380.c 		NCR5380_reselect(instance);
instance         1128 drivers/scsi/NCR5380.c 		shost_printk(KERN_ERR, instance, "reselection after won arbitration?\n");
instance         1141 drivers/scsi/NCR5380.c 		complete_cmd(instance, cmd);
instance         1142 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_SELECTION, instance,
instance         1170 drivers/scsi/NCR5380.c 		shost_printk(KERN_ERR, instance, "select: REQ timeout\n");
instance         1175 drivers/scsi/NCR5380.c 		do_abort(instance);
instance         1179 drivers/scsi/NCR5380.c 	dsprintk(NDEBUG_SELECTION, instance, "target %d selected, going into MESSAGE OUT phase.\n",
instance         1186 drivers/scsi/NCR5380.c 	NCR5380_transfer_pio(instance, &phase, &len, &data);
instance         1190 drivers/scsi/NCR5380.c 		complete_cmd(instance, cmd);
instance         1191 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_SELECTION, instance, "IDENTIFY message transfer failed\n");
instance         1196 drivers/scsi/NCR5380.c 	dsprintk(NDEBUG_SELECTION, instance, "nexus established.\n");
instance         1241 drivers/scsi/NCR5380.c static int NCR5380_transfer_pio(struct Scsi_Host *instance,
instance         1245 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance         1267 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_HANDSHAKE, instance, "REQ asserted\n");
instance         1271 drivers/scsi/NCR5380.c 			dsprintk(NDEBUG_PIO, instance, "phase mismatch\n");
instance         1272 drivers/scsi/NCR5380.c 			NCR5380_dprint_phase(NDEBUG_PIO, instance);
instance         1294 drivers/scsi/NCR5380.c 				NCR5380_dprint(NDEBUG_PIO, instance);
instance         1300 drivers/scsi/NCR5380.c 				NCR5380_dprint(NDEBUG_PIO, instance);
instance         1305 drivers/scsi/NCR5380.c 			NCR5380_dprint(NDEBUG_PIO, instance);
instance         1313 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_HANDSHAKE, instance, "REQ negated, handshake complete\n");
instance         1334 drivers/scsi/NCR5380.c 	dsprintk(NDEBUG_PIO, instance, "residual %d\n", c);
instance         1366 drivers/scsi/NCR5380.c static void do_reset(struct Scsi_Host *instance)
instance         1368 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata __maybe_unused *hostdata = shost_priv(instance);
instance         1389 drivers/scsi/NCR5380.c static int do_abort(struct Scsi_Host *instance)
instance         1391 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance         1430 drivers/scsi/NCR5380.c 	NCR5380_transfer_pio(instance, &phase, &len, &msgptr);
instance         1463 drivers/scsi/NCR5380.c static int NCR5380_transfer_dma(struct Scsi_Host *instance,
instance         1467 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance         1488 drivers/scsi/NCR5380.c 	dsprintk(NDEBUG_DMA, instance, "initializing DMA %s: length %d, address %p\n",
instance         1611 drivers/scsi/NCR5380.c 				shost_printk(KERN_ERR, instance, "PDMA read: DRQ timeout\n");
instance         1616 drivers/scsi/NCR5380.c 				shost_printk(KERN_ERR, instance, "PDMA read: !REQ timeout\n");
instance         1628 drivers/scsi/NCR5380.c 				shost_printk(KERN_ERR, instance, "PDMA write: DRQ and phase timeout\n");
instance         1633 drivers/scsi/NCR5380.c 	NCR5380_dma_complete(instance);
instance         1654 drivers/scsi/NCR5380.c static void NCR5380_information_transfer(struct Scsi_Host *instance)
instance         1657 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance         1679 drivers/scsi/NCR5380.c 				NCR5380_dprint_phase(NDEBUG_INFORMATION, instance);
instance         1721 drivers/scsi/NCR5380.c 				shost_printk(KERN_DEBUG, instance, "NDEBUG_NO_DATAOUT set, attempted DATAOUT aborted\n");
instance         1723 drivers/scsi/NCR5380.c 				do_abort(instance);
instance         1725 drivers/scsi/NCR5380.c 				complete_cmd(instance, cmd);
instance         1737 drivers/scsi/NCR5380.c 				dsprintk(NDEBUG_INFORMATION, instance,
instance         1758 drivers/scsi/NCR5380.c 					if (NCR5380_transfer_dma(instance, &phase,
instance         1768 drivers/scsi/NCR5380.c 						do_reset(instance);
instance         1769 drivers/scsi/NCR5380.c 						bus_reset_cleanup(instance);
instance         1778 drivers/scsi/NCR5380.c 					NCR5380_transfer_pio(instance, &phase, &len,
instance         1790 drivers/scsi/NCR5380.c 				NCR5380_transfer_pio(instance, &phase, &len, &data);
instance         1799 drivers/scsi/NCR5380.c 					dsprintk(NDEBUG_QUEUES, instance,
instance         1811 drivers/scsi/NCR5380.c 						complete_cmd(instance, cmd);
instance         1815 drivers/scsi/NCR5380.c 							dsprintk(NDEBUG_QUEUES, instance, "autosense: adding cmd %p to tail of autosense queue\n",
instance         1820 drivers/scsi/NCR5380.c 							complete_cmd(instance, cmd);
instance         1829 drivers/scsi/NCR5380.c 					maybe_release_dma_irq(instance);
instance         1851 drivers/scsi/NCR5380.c 					         instance, "connected command %p for target %d lun %llu moved to disconnected queue\n",
instance         1890 drivers/scsi/NCR5380.c 					dsprintk(NDEBUG_EXTENDED, instance, "receiving extended message\n");
instance         1895 drivers/scsi/NCR5380.c 					NCR5380_transfer_pio(instance, &phase, &len, &data);
instance         1896 drivers/scsi/NCR5380.c 					dsprintk(NDEBUG_EXTENDED, instance, "length %d, code 0x%02x\n",
instance         1908 drivers/scsi/NCR5380.c 						NCR5380_transfer_pio(instance, &phase, &len, &data);
instance         1909 drivers/scsi/NCR5380.c 						dsprintk(NDEBUG_EXTENDED, instance, "message received, residual %d\n",
instance         1918 drivers/scsi/NCR5380.c 						shost_printk(KERN_ERR, instance, "error receiving extended message\n");
instance         1921 drivers/scsi/NCR5380.c 						shost_printk(KERN_NOTICE, instance, "extended message code %02x length %d is too long\n",
instance         1955 drivers/scsi/NCR5380.c 				NCR5380_transfer_pio(instance, &phase, &len, &data);
instance         1960 drivers/scsi/NCR5380.c 					complete_cmd(instance, cmd);
instance         1961 drivers/scsi/NCR5380.c 					maybe_release_dma_irq(instance);
instance         1974 drivers/scsi/NCR5380.c 				NCR5380_transfer_pio(instance, &phase, &len, &data);
instance         1979 drivers/scsi/NCR5380.c 				NCR5380_transfer_pio(instance, &phase, &len, &data);
instance         1983 drivers/scsi/NCR5380.c 				shost_printk(KERN_ERR, instance, "unknown phase\n");
instance         1984 drivers/scsi/NCR5380.c 				NCR5380_dprint(NDEBUG_ANY, instance);
instance         2004 drivers/scsi/NCR5380.c static void NCR5380_reselect(struct Scsi_Host *instance)
instance         2006 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance         2022 drivers/scsi/NCR5380.c 		shost_printk(KERN_WARNING, instance,
instance         2039 drivers/scsi/NCR5380.c 		shost_printk(KERN_ERR, instance, "reselect: !SEL timeout\n");
instance         2054 drivers/scsi/NCR5380.c 		shost_printk(KERN_ERR, instance, "reselect: REQ timeout\n");
instance         2055 drivers/scsi/NCR5380.c 		do_abort(instance);
instance         2071 drivers/scsi/NCR5380.c 		NCR5380_transfer_pio(instance, &phase, &len, &data);
instance         2074 drivers/scsi/NCR5380.c 			do_abort(instance);
instance         2081 drivers/scsi/NCR5380.c 		shost_printk(KERN_ERR, instance, "expecting IDENTIFY message, got ");
instance         2084 drivers/scsi/NCR5380.c 		do_abort(instance);
instance         2113 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_RESELECTION | NDEBUG_QUEUES, instance,
instance         2118 drivers/scsi/NCR5380.c 		shost_printk(KERN_ERR, instance, "target bitmask 0x%02x lun %d not in disconnected queue.\n",
instance         2124 drivers/scsi/NCR5380.c 		if (do_abort(instance) == 0)
instance         2155 drivers/scsi/NCR5380.c 	dsprintk(NDEBUG_RESELECTION, instance, "nexus established, target %d, lun %llu\n",
instance         2225 drivers/scsi/NCR5380.c 	struct Scsi_Host *instance = cmd->device->host;
instance         2226 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance         2235 drivers/scsi/NCR5380.c 	NCR5380_dprint(NDEBUG_ANY, instance);
instance         2236 drivers/scsi/NCR5380.c 	NCR5380_dprint_phase(NDEBUG_ANY, instance);
instance         2239 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_ABORT, instance,
instance         2247 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_ABORT, instance,
instance         2251 drivers/scsi/NCR5380.c 		complete_cmd(instance, cmd);
instance         2256 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_ABORT, instance,
instance         2262 drivers/scsi/NCR5380.c 		complete_cmd(instance, cmd);
instance         2268 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_ABORT, instance, "abort: cmd %p is connected\n", cmd);
instance         2271 drivers/scsi/NCR5380.c 		if (do_abort(instance)) {
instance         2273 drivers/scsi/NCR5380.c 			complete_cmd(instance, cmd);
instance         2278 drivers/scsi/NCR5380.c 		complete_cmd(instance, cmd);
instance         2283 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_ABORT, instance,
instance         2285 drivers/scsi/NCR5380.c 		complete_cmd(instance, cmd);
instance         2290 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_ABORT, instance, "abort: failed to abort %p\n", cmd);
instance         2293 drivers/scsi/NCR5380.c 		dsprintk(NDEBUG_ABORT, instance, "abort: successfully aborted %p\n", cmd);
instance         2297 drivers/scsi/NCR5380.c 	maybe_release_dma_irq(instance);
instance         2304 drivers/scsi/NCR5380.c static void bus_reset_cleanup(struct Scsi_Host *instance)
instance         2306 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance         2323 drivers/scsi/NCR5380.c 		complete_cmd(instance, hostdata->selecting);
instance         2331 drivers/scsi/NCR5380.c 		complete_cmd(instance, cmd);
instance         2344 drivers/scsi/NCR5380.c 		complete_cmd(instance, hostdata->connected);
instance         2353 drivers/scsi/NCR5380.c 	maybe_release_dma_irq(instance);
instance         2365 drivers/scsi/NCR5380.c 	struct Scsi_Host *instance = cmd->device->host;
instance         2366 drivers/scsi/NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance         2373 drivers/scsi/NCR5380.c 	shost_printk(KERN_INFO, instance, __func__);
instance         2375 drivers/scsi/NCR5380.c 	NCR5380_dprint(NDEBUG_ANY, instance);
instance         2376 drivers/scsi/NCR5380.c 	NCR5380_dprint_phase(NDEBUG_ANY, instance);
instance         2386 drivers/scsi/NCR5380.c 	do_reset(instance);
instance         2387 drivers/scsi/NCR5380.c 	bus_reset_cleanup(instance);
instance          263 drivers/scsi/NCR5380.h static void NCR5380_print_phase(struct Scsi_Host *instance);
instance          264 drivers/scsi/NCR5380.h static void NCR5380_print(struct Scsi_Host *instance);
instance          270 drivers/scsi/NCR5380.h static int NCR5380_init(struct Scsi_Host *instance, int flags);
instance          272 drivers/scsi/NCR5380.h static void NCR5380_exit(struct Scsi_Host *instance);
instance          273 drivers/scsi/NCR5380.h static void NCR5380_information_transfer(struct Scsi_Host *instance);
instance          276 drivers/scsi/NCR5380.h static const char *NCR5380_info(struct Scsi_Host *instance);
instance          277 drivers/scsi/NCR5380.h static void NCR5380_reselect(struct Scsi_Host *instance);
instance          279 drivers/scsi/NCR5380.h static int NCR5380_transfer_dma(struct Scsi_Host *instance, unsigned char *phase, int *count, unsigned char **data);
instance          280 drivers/scsi/NCR5380.h static int NCR5380_transfer_pio(struct Scsi_Host *instance, unsigned char *phase, int *count, unsigned char **data);
instance           28 drivers/scsi/a2091.c 	struct Scsi_Host *instance = data;
instance           29 drivers/scsi/a2091.c 	struct a2091_hostdata *hdata = shost_priv(instance);
instance           36 drivers/scsi/a2091.c 	spin_lock_irqsave(instance->host_lock, flags);
instance           37 drivers/scsi/a2091.c 	wd33c93_intr(instance);
instance           38 drivers/scsi/a2091.c 	spin_unlock_irqrestore(instance->host_lock, flags);
instance           44 drivers/scsi/a2091.c 	struct Scsi_Host *instance = cmd->device->host;
instance           45 drivers/scsi/a2091.c 	struct a2091_hostdata *hdata = shost_priv(instance);
instance          108 drivers/scsi/a2091.c static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
instance          111 drivers/scsi/a2091.c 	struct a2091_hostdata *hdata = shost_priv(instance);
instance          169 drivers/scsi/a2091.c 	struct Scsi_Host *instance;
instance          178 drivers/scsi/a2091.c 	instance = scsi_host_alloc(&a2091_scsi_template,
instance          180 drivers/scsi/a2091.c 	if (!instance) {
instance          185 drivers/scsi/a2091.c 	instance->irq = IRQ_AMIGA_PORTS;
instance          186 drivers/scsi/a2091.c 	instance->unique_id = z->slotaddr;
instance          194 drivers/scsi/a2091.c 	hdata = shost_priv(instance);
instance          200 drivers/scsi/a2091.c 	wd33c93_init(instance, wdregs, dma_setup, dma_stop, WD33C93_FS_8_10);
instance          202 drivers/scsi/a2091.c 			    "A2091 SCSI", instance);
instance          208 drivers/scsi/a2091.c 	error = scsi_add_host(instance, NULL);
instance          212 drivers/scsi/a2091.c 	zorro_set_drvdata(z, instance);
instance          214 drivers/scsi/a2091.c 	scsi_scan_host(instance);
instance          218 drivers/scsi/a2091.c 	free_irq(IRQ_AMIGA_PORTS, instance);
instance          220 drivers/scsi/a2091.c 	scsi_host_put(instance);
instance          228 drivers/scsi/a2091.c 	struct Scsi_Host *instance = zorro_get_drvdata(z);
instance          229 drivers/scsi/a2091.c 	struct a2091_hostdata *hdata = shost_priv(instance);
instance          232 drivers/scsi/a2091.c 	scsi_remove_host(instance);
instance          233 drivers/scsi/a2091.c 	free_irq(IRQ_AMIGA_PORTS, instance);
instance          234 drivers/scsi/a2091.c 	scsi_host_put(instance);
instance           29 drivers/scsi/a3000.c 	struct Scsi_Host *instance = data;
instance           30 drivers/scsi/a3000.c 	struct a3000_hostdata *hdata = shost_priv(instance);
instance           37 drivers/scsi/a3000.c 		spin_lock_irqsave(instance->host_lock, flags);
instance           38 drivers/scsi/a3000.c 		wd33c93_intr(instance);
instance           39 drivers/scsi/a3000.c 		spin_unlock_irqrestore(instance->host_lock, flags);
instance           48 drivers/scsi/a3000.c 	struct Scsi_Host *instance = cmd->device->host;
instance           49 drivers/scsi/a3000.c 	struct a3000_hostdata *hdata = shost_priv(instance);
instance          110 drivers/scsi/a3000.c static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
instance          113 drivers/scsi/a3000.c 	struct a3000_hostdata *hdata = shost_priv(instance);
instance          184 drivers/scsi/a3000.c 	struct Scsi_Host *instance;
instance          197 drivers/scsi/a3000.c 	instance = scsi_host_alloc(&amiga_a3000_scsi_template,
instance          199 drivers/scsi/a3000.c 	if (!instance) {
instance          204 drivers/scsi/a3000.c 	instance->irq = IRQ_AMIGA_PORTS;
instance          212 drivers/scsi/a3000.c 	hdata = shost_priv(instance);
instance          218 drivers/scsi/a3000.c 	wd33c93_init(instance, wdregs, dma_setup, dma_stop, WD33C93_FS_12_15);
instance          220 drivers/scsi/a3000.c 			    "A3000 SCSI", instance);
instance          226 drivers/scsi/a3000.c 	error = scsi_add_host(instance, NULL);
instance          230 drivers/scsi/a3000.c 	platform_set_drvdata(pdev, instance);
instance          232 drivers/scsi/a3000.c 	scsi_scan_host(instance);
instance          236 drivers/scsi/a3000.c 	free_irq(IRQ_AMIGA_PORTS, instance);
instance          238 drivers/scsi/a3000.c 	scsi_host_put(instance);
instance          246 drivers/scsi/a3000.c 	struct Scsi_Host *instance = platform_get_drvdata(pdev);
instance          247 drivers/scsi/a3000.c 	struct a3000_hostdata *hdata = shost_priv(instance);
instance          251 drivers/scsi/a3000.c 	scsi_remove_host(instance);
instance          252 drivers/scsi/a3000.c 	free_irq(IRQ_AMIGA_PORTS, instance);
instance          253 drivers/scsi/a3000.c 	scsi_host_put(instance);
instance         3366 drivers/scsi/aacraid/aachba.c 		qd.instance = dev->scsi_host_ptr->host_no;
instance         2320 drivers/scsi/aacraid/aacraid.h 	s32	instance;
instance          538 drivers/scsi/aacraid/rx.c 	int instance = dev->id;
instance          575 drivers/scsi/aacraid/rx.c 		printk(KERN_ERR "%s%d: adapter self-test failed.\n", dev->name, instance);
instance          582 drivers/scsi/aacraid/rx.c 		printk(KERN_ERR "%s%d: adapter monitor panic.\n", dev->name, instance);
instance          595 drivers/scsi/aacraid/rx.c 					dev->name, instance, status);
instance          643 drivers/scsi/aacraid/rx.c 			name, instance);
instance          312 drivers/scsi/aacraid/sa.c 	int instance;
instance          315 drivers/scsi/aacraid/sa.c 	instance = dev->id;
instance          343 drivers/scsi/aacraid/sa.c 		printk(KERN_WARNING "%s%d: adapter self-test failed.\n", name, instance);
instance          350 drivers/scsi/aacraid/sa.c 		printk(KERN_WARNING "%s%d: adapter kernel panic'd.\n", name, instance);
instance          361 drivers/scsi/aacraid/sa.c 					name, instance, status);
instance          380 drivers/scsi/aacraid/sa.c 			name, instance);
instance          867 drivers/scsi/aacraid/src.c 	int instance = dev->id;
instance          905 drivers/scsi/aacraid/src.c 			dev->name, instance);
instance          913 drivers/scsi/aacraid/src.c 			dev->name, instance);
instance          926 drivers/scsi/aacraid/src.c 					dev->name, instance, status);
instance          982 drivers/scsi/aacraid/src.c 			name, instance);
instance         1159 drivers/scsi/aacraid/src.c 	int instance = dev->id;
instance         1194 drivers/scsi/aacraid/src.c 					dev->name, instance);
instance         1220 drivers/scsi/aacraid/src.c 		printk(KERN_ERR "%s%d: adapter self-test failed.\n", dev->name, instance);
instance         1227 drivers/scsi/aacraid/src.c 		printk(KERN_ERR "%s%d: adapter monitor panic.\n", dev->name, instance);
instance         1244 drivers/scsi/aacraid/src.c 					dev->name, instance, status);
instance         1014 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_linux_setup_iocell_info(u_long index, int instance, int targ, int32_t value)
instance         1017 drivers/scsi/aic7xxx/aic79xx_osm.c 	if ((instance >= 0)
instance         1018 drivers/scsi/aic7xxx/aic79xx_osm.c 	 && (instance < ARRAY_SIZE(aic79xx_iocell_info))) {
instance         1021 drivers/scsi/aic7xxx/aic79xx_osm.c 		iocell_info = (uint8_t*)&aic79xx_iocell_info[instance];
instance         1024 drivers/scsi/aic7xxx/aic79xx_osm.c 			printk("iocell[%d:%ld] = %d\n", instance, index, value);
instance         1044 drivers/scsi/aic7xxx/aic79xx_osm.c ahd_linux_setup_tag_info(u_long arg, int instance, int targ, int32_t value)
instance         1047 drivers/scsi/aic7xxx/aic79xx_osm.c 	if ((instance >= 0) && (targ >= 0)
instance         1048 drivers/scsi/aic7xxx/aic79xx_osm.c 	 && (instance < ARRAY_SIZE(aic79xx_tag_info))
instance         1050 drivers/scsi/aic7xxx/aic79xx_osm.c 		aic79xx_tag_info[instance].tag_commands[targ] = value & 0x1FF;
instance         1052 drivers/scsi/aic7xxx/aic79xx_osm.c 			printk("tag_info[%d:%d] = %d\n", instance, targ, value);
instance         1064 drivers/scsi/aic7xxx/aic79xx_osm.c 	int      instance;
instance         1073 drivers/scsi/aic7xxx/aic79xx_osm.c 	instance = -1;
instance         1086 drivers/scsi/aic7xxx/aic79xx_osm.c 			if (instance == -1) {
instance         1087 drivers/scsi/aic7xxx/aic79xx_osm.c 				instance = 0;
instance         1103 drivers/scsi/aic7xxx/aic79xx_osm.c 			else if (instance != -1)
instance         1104 drivers/scsi/aic7xxx/aic79xx_osm.c 				instance = -1;
instance         1109 drivers/scsi/aic7xxx/aic79xx_osm.c 			if (instance == -1)
instance         1113 drivers/scsi/aic7xxx/aic79xx_osm.c 			else if (instance >= 0)
instance         1114 drivers/scsi/aic7xxx/aic79xx_osm.c 				instance++;
instance         1127 drivers/scsi/aic7xxx/aic79xx_osm.c 			callback(callback_arg, instance, targ,
instance          922 drivers/scsi/aic7xxx/aic7xxx_osm.c ahc_linux_setup_tag_info(u_long arg, int instance, int targ, int32_t value)
instance          925 drivers/scsi/aic7xxx/aic7xxx_osm.c 	if ((instance >= 0) && (targ >= 0)
instance          926 drivers/scsi/aic7xxx/aic7xxx_osm.c 	 && (instance < ARRAY_SIZE(aic7xxx_tag_info))
instance          928 drivers/scsi/aic7xxx/aic7xxx_osm.c 		aic7xxx_tag_info[instance].tag_commands[targ] = value & 0xff;
instance          930 drivers/scsi/aic7xxx/aic7xxx_osm.c 			printk("tag_info[%d:%d] = %d\n", instance, targ, value);
instance          942 drivers/scsi/aic7xxx/aic7xxx_osm.c 	int      instance;
instance          951 drivers/scsi/aic7xxx/aic7xxx_osm.c 	instance = -1;
instance          964 drivers/scsi/aic7xxx/aic7xxx_osm.c 			if (instance == -1) {
instance          965 drivers/scsi/aic7xxx/aic7xxx_osm.c 				instance = 0;
instance          981 drivers/scsi/aic7xxx/aic7xxx_osm.c 			else if (instance != -1)
instance          982 drivers/scsi/aic7xxx/aic7xxx_osm.c 				instance = -1;
instance          987 drivers/scsi/aic7xxx/aic7xxx_osm.c 			if (instance == -1)
instance          991 drivers/scsi/aic7xxx/aic7xxx_osm.c 			else if (instance >= 0)
instance          992 drivers/scsi/aic7xxx/aic7xxx_osm.c 				instance++;
instance         1005 drivers/scsi/aic7xxx/aic7xxx_osm.c 			callback(callback_arg, instance, targ,
instance         2792 drivers/scsi/arm/acornscsi.c static int acornscsi_show_info(struct seq_file *m, struct Scsi_Host *instance)
instance         2798 drivers/scsi/arm/acornscsi.c     host  = (AS_Host *)instance->hostdata;
instance         2857 drivers/scsi/arm/acornscsi.c     shost_for_each_device(scd, instance) {
instance          318 drivers/scsi/arm/fas216.h extern int fas216_init (struct Scsi_Host *instance);
instance          325 drivers/scsi/arm/fas216.h extern int fas216_add (struct Scsi_Host *instance, struct device *dev);
instance          349 drivers/scsi/arm/fas216.h extern void fas216_remove (struct Scsi_Host *instance);
instance          356 drivers/scsi/arm/fas216.h extern void fas216_release (struct Scsi_Host *instance);
instance           75 drivers/scsi/atari_scsi.c #define NCR5380_acquire_dma_irq(instance)      falcon_get_lock(instance)
instance           76 drivers/scsi/atari_scsi.c #define NCR5380_release_dma_irq(instance)      falcon_release_lock()
instance          183 drivers/scsi/atari_scsi.c 	struct Scsi_Host *instance = dev;
instance          184 drivers/scsi/atari_scsi.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          189 drivers/scsi/atari_scsi.c 	dsprintk(NDEBUG_INTR, instance, "NCR5380 interrupt, DMA status = %02x\n",
instance          272 drivers/scsi/atari_scsi.c 	struct Scsi_Host *instance = dev;
instance          273 drivers/scsi/atari_scsi.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          374 drivers/scsi/atari_scsi.c static int falcon_get_lock(struct Scsi_Host *instance)
instance          380 drivers/scsi/atari_scsi.c 	    instance->hostt->can_queue > 1)
instance          384 drivers/scsi/atari_scsi.c 		return stdma_try_lock(scsi_falcon_intr, instance);
instance          386 drivers/scsi/atari_scsi.c 	stdma_lock(scsi_falcon_intr, instance);
instance          723 drivers/scsi/atari_scsi.c 	struct Scsi_Host *instance;
instance          791 drivers/scsi/atari_scsi.c 	instance = scsi_host_alloc(&atari_scsi_template,
instance          793 drivers/scsi/atari_scsi.c 	if (!instance) {
instance          798 drivers/scsi/atari_scsi.c 	instance->irq = irq->start;
instance          803 drivers/scsi/atari_scsi.c 	error = NCR5380_init(instance, host_flags);
instance          808 drivers/scsi/atari_scsi.c 		error = request_irq(instance->irq, scsi_tt_intr, 0,
instance          809 drivers/scsi/atari_scsi.c 		                    "NCR5380", instance);
instance          812 drivers/scsi/atari_scsi.c 			       instance->irq);
instance          834 drivers/scsi/atari_scsi.c 				shost_priv(instance);
instance          848 drivers/scsi/atari_scsi.c 	NCR5380_maybe_reset_bus(instance);
instance          850 drivers/scsi/atari_scsi.c 	error = scsi_add_host(instance, NULL);
instance          854 drivers/scsi/atari_scsi.c 	platform_set_drvdata(pdev, instance);
instance          856 drivers/scsi/atari_scsi.c 	scsi_scan_host(instance);
instance          861 drivers/scsi/atari_scsi.c 		free_irq(instance->irq, instance);
instance          863 drivers/scsi/atari_scsi.c 	NCR5380_exit(instance);
instance          865 drivers/scsi/atari_scsi.c 	scsi_host_put(instance);
instance          874 drivers/scsi/atari_scsi.c 	struct Scsi_Host *instance = platform_get_drvdata(pdev);
instance          876 drivers/scsi/atari_scsi.c 	scsi_remove_host(instance);
instance          878 drivers/scsi/atari_scsi.c 		free_irq(instance->irq, instance);
instance          879 drivers/scsi/atari_scsi.c 	NCR5380_exit(instance);
instance          880 drivers/scsi/atari_scsi.c 	scsi_host_put(instance);
instance         4273 drivers/scsi/bfa/bfa_ioc.c 	msg->instance = flash->instance;
instance         4306 drivers/scsi/bfa/bfa_ioc.c 	msg->instance = flash->instance;
instance         4330 drivers/scsi/bfa/bfa_ioc.c 	msg->instance = flash->instance;
instance         4570 drivers/scsi/bfa/bfa_ioc.c 		u8 instance, bfa_cb_flash_t cbfn, void *cbarg)
instance         4574 drivers/scsi/bfa/bfa_ioc.c 	bfa_trc(flash, instance);
instance         4588 drivers/scsi/bfa/bfa_ioc.c 	flash->instance = instance;
instance         4592 drivers/scsi/bfa/bfa_ioc.c 				instance, type);
instance         4612 drivers/scsi/bfa/bfa_ioc.c 		u8 instance, void *buf, u32 len, u32 offset,
instance         4617 drivers/scsi/bfa/bfa_ioc.c 	bfa_trc(flash, instance);
instance         4643 drivers/scsi/bfa/bfa_ioc.c 	flash->instance = instance;
instance         4669 drivers/scsi/bfa/bfa_ioc.c 		u8 instance, void *buf, u32 len, u32 offset,
instance         4674 drivers/scsi/bfa/bfa_ioc.c 	bfa_trc(flash, instance);
instance         4697 drivers/scsi/bfa/bfa_ioc.c 	flash->instance = instance;
instance         5350 drivers/scsi/bfa/bfa_ioc.c 	msg->instance = phy->instance;
instance         5372 drivers/scsi/bfa/bfa_ioc.c 	msg->instance = phy->instance;
instance         5410 drivers/scsi/bfa/bfa_ioc.c 	msg->instance = phy->instance;
instance         5433 drivers/scsi/bfa/bfa_ioc.c 	msg->instance = phy->instance;
instance         5528 drivers/scsi/bfa/bfa_ioc.c bfa_phy_get_attr(struct bfa_phy_s *phy, u8 instance,
instance         5532 drivers/scsi/bfa/bfa_ioc.c 	bfa_trc(phy, instance);
instance         5548 drivers/scsi/bfa/bfa_ioc.c 	phy->instance = instance;
instance         5567 drivers/scsi/bfa/bfa_ioc.c bfa_phy_get_stats(struct bfa_phy_s *phy, u8 instance,
instance         5572 drivers/scsi/bfa/bfa_ioc.c 	bfa_trc(phy, instance);
instance         5588 drivers/scsi/bfa/bfa_ioc.c 	phy->instance = instance;
instance         5609 drivers/scsi/bfa/bfa_ioc.c bfa_phy_update(struct bfa_phy_s *phy, u8 instance,
instance         5614 drivers/scsi/bfa/bfa_ioc.c 	bfa_trc(phy, instance);
instance         5636 drivers/scsi/bfa/bfa_ioc.c 	phy->instance = instance;
instance         5660 drivers/scsi/bfa/bfa_ioc.c bfa_phy_read(struct bfa_phy_s *phy, u8 instance,
instance         5665 drivers/scsi/bfa/bfa_ioc.c 	bfa_trc(phy, instance);
instance         5687 drivers/scsi/bfa/bfa_ioc.c 	phy->instance = instance;
instance         5868 drivers/scsi/bfa/bfa_ioc.c 					BFA_FLASH_PART_DRV, dconf->instance,
instance         6082 drivers/scsi/bfa/bfa_ioc.c 	dconf->instance = bfa->ioc.port_id;
instance         6083 drivers/scsi/bfa/bfa_ioc.c 	bfa_trc(bfa, dconf->instance);
instance         6142 drivers/scsi/bfa/bfa_ioc.c 				BFA_FLASH_PART_DRV, dconf->instance,
instance          475 drivers/scsi/bfa/bfa_ioc.h 	u8		instance;       /* partition instance */
instance          501 drivers/scsi/bfa/bfa_ioc.h 			enum bfa_flash_part_type type, u8 instance,
instance          504 drivers/scsi/bfa/bfa_ioc.h 			enum bfa_flash_part_type type, u8 instance,
instance          508 drivers/scsi/bfa/bfa_ioc.h 			enum bfa_flash_part_type type, u8 instance, void *buf,
instance          667 drivers/scsi/bfa/bfa_ioc.h 	u8	instance;       /* port instance */
instance          689 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_phy_get_attr(struct bfa_phy_s *phy, u8 instance,
instance          692 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_phy_get_stats(struct bfa_phy_s *phy, u8 instance,
instance          695 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_phy_update(struct bfa_phy_s *phy, u8 instance,
instance          698 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_phy_read(struct bfa_phy_s *phy, u8 instance,
instance          780 drivers/scsi/bfa/bfa_ioc.h 	u8			instance;
instance         1314 drivers/scsi/bfa/bfad_bsg.c 				iocmd->instance, iocmd->cfg.mode,
instance         1537 drivers/scsi/bfa/bfad_bsg.c 				iocmd->instance, bfad_hcb_comp, &fcomp);
instance         1568 drivers/scsi/bfa/bfad_bsg.c 				iocmd->type, iocmd->instance, iocmd_bufptr,
instance         1600 drivers/scsi/bfa/bfad_bsg.c 				iocmd->instance, iocmd_bufptr, iocmd->bufsz, 0,
instance         1882 drivers/scsi/bfa/bfad_bsg.c 	iocmd->status = bfa_phy_get_attr(BFA_PHY(&bfad->bfa), iocmd->instance,
instance         1903 drivers/scsi/bfa/bfad_bsg.c 	iocmd->status = bfa_phy_get_stats(BFA_PHY(&bfad->bfa), iocmd->instance,
instance         1933 drivers/scsi/bfa/bfad_bsg.c 				iocmd->instance, iocmd_bufptr, iocmd->bufsz,
instance         1984 drivers/scsi/bfa/bfad_bsg.c 				iocmd->instance, iocmd_bufptr, iocmd->bufsz,
instance          490 drivers/scsi/bfa/bfad_bsg.h 	u16		instance;
instance          557 drivers/scsi/bfa/bfad_bsg.h 	u8		instance;
instance          656 drivers/scsi/bfa/bfad_bsg.h 	u16	instance;
instance          663 drivers/scsi/bfa/bfad_bsg.h 	u16	instance;
instance          681 drivers/scsi/bfa/bfad_bsg.h 	u16	instance;
instance          906 drivers/scsi/bfa/bfi.h 	u8	instance; /* partition instance */
instance          917 drivers/scsi/bfa/bfi.h 	u8	instance; /* partition instance */
instance          930 drivers/scsi/bfa/bfi.h 	u8	instance;	/* partition instance */
instance          951 drivers/scsi/bfa/bfi.h 	u8	instance;   /* partition instance */
instance          963 drivers/scsi/bfa/bfi.h 	u8	instance;   /* partition instance */
instance          975 drivers/scsi/bfa/bfi.h 	u8	instance;	/* partition instance */
instance         1195 drivers/scsi/bfa/bfi.h 	u8			instance;
instance         1205 drivers/scsi/bfa/bfi.h 	u8			instance;
instance         1215 drivers/scsi/bfa/bfi.h 	u8		instance;
instance         1228 drivers/scsi/bfa/bfi.h 	u8		instance;
instance         2386 drivers/scsi/esp_scsi.c 	static int instance;
instance         2394 drivers/scsi/esp_scsi.c 	esp->host->unique_id = instance;
instance         2419 drivers/scsi/esp_scsi.c 	instance++;
instance          115 drivers/scsi/g_NCR5380.c static void g_NCR5380_trigger_irq(struct Scsi_Host *instance)
instance          117 drivers/scsi/g_NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          149 drivers/scsi/g_NCR5380.c static int g_NCR5380_probe_irq(struct Scsi_Host *instance)
instance          151 drivers/scsi/g_NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          156 drivers/scsi/g_NCR5380.c 	g_NCR5380_trigger_irq(instance);
instance          233 drivers/scsi/g_NCR5380.c 	struct Scsi_Host *instance;
instance          314 drivers/scsi/g_NCR5380.c 	instance = scsi_host_alloc(tpnt, sizeof(struct NCR5380_hostdata));
instance          315 drivers/scsi/g_NCR5380.c 	if (instance == NULL) {
instance          319 drivers/scsi/g_NCR5380.c 	hostdata = shost_priv(instance);
instance          376 drivers/scsi/g_NCR5380.c 	ret = NCR5380_init(instance, flags | FLAG_LATE_DMA_SETUP);
instance          388 drivers/scsi/g_NCR5380.c 	NCR5380_maybe_reset_bus(instance);
instance          422 drivers/scsi/g_NCR5380.c 		instance->irq = g_NCR5380_probe_irq(instance);
instance          423 drivers/scsi/g_NCR5380.c 		if (instance->irq == NO_IRQ)
instance          424 drivers/scsi/g_NCR5380.c 			shost_printk(KERN_INFO, instance, "no irq detected\n");
instance          426 drivers/scsi/g_NCR5380.c 		instance->irq = irq;
instance          427 drivers/scsi/g_NCR5380.c 		if (instance->irq == NO_IRQ)
instance          428 drivers/scsi/g_NCR5380.c 			shost_printk(KERN_INFO, instance, "no irq provided\n");
instance          431 drivers/scsi/g_NCR5380.c 	if (instance->irq != NO_IRQ) {
instance          432 drivers/scsi/g_NCR5380.c 		if (request_irq(instance->irq, generic_NCR5380_intr,
instance          433 drivers/scsi/g_NCR5380.c 				0, "NCR5380", instance)) {
instance          434 drivers/scsi/g_NCR5380.c 			instance->irq = NO_IRQ;
instance          435 drivers/scsi/g_NCR5380.c 			shost_printk(KERN_INFO, instance,
instance          436 drivers/scsi/g_NCR5380.c 			             "irq %d denied\n", instance->irq);
instance          438 drivers/scsi/g_NCR5380.c 			shost_printk(KERN_INFO, instance,
instance          439 drivers/scsi/g_NCR5380.c 			             "irq %d acquired\n", instance->irq);
instance          443 drivers/scsi/g_NCR5380.c 	ret = scsi_add_host(instance, pdev);
instance          446 drivers/scsi/g_NCR5380.c 	scsi_scan_host(instance);
instance          447 drivers/scsi/g_NCR5380.c 	dev_set_drvdata(pdev, instance);
instance          451 drivers/scsi/g_NCR5380.c 	if (instance->irq != NO_IRQ)
instance          452 drivers/scsi/g_NCR5380.c 		free_irq(instance->irq, instance);
instance          453 drivers/scsi/g_NCR5380.c 	NCR5380_exit(instance);
instance          455 drivers/scsi/g_NCR5380.c 	scsi_host_put(instance);
instance          466 drivers/scsi/g_NCR5380.c static void generic_NCR5380_release_resources(struct Scsi_Host *instance)
instance          468 drivers/scsi/g_NCR5380.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          474 drivers/scsi/g_NCR5380.c 	scsi_remove_host(instance);
instance          475 drivers/scsi/g_NCR5380.c 	if (instance->irq != NO_IRQ)
instance          476 drivers/scsi/g_NCR5380.c 		free_irq(instance->irq, instance);
instance          477 drivers/scsi/g_NCR5380.c 	NCR5380_exit(instance);
instance          478 drivers/scsi/g_NCR5380.c 	scsi_host_put(instance);
instance           30 drivers/scsi/gvp11.c 	struct Scsi_Host *instance = data;
instance           31 drivers/scsi/gvp11.c 	struct gvp11_hostdata *hdata = shost_priv(instance);
instance           38 drivers/scsi/gvp11.c 	spin_lock_irqsave(instance->host_lock, flags);
instance           39 drivers/scsi/gvp11.c 	wd33c93_intr(instance);
instance           40 drivers/scsi/gvp11.c 	spin_unlock_irqrestore(instance->host_lock, flags);
instance           53 drivers/scsi/gvp11.c 	struct Scsi_Host *instance = cmd->device->host;
instance           54 drivers/scsi/gvp11.c 	struct gvp11_hostdata *hdata = shost_priv(instance);
instance          147 drivers/scsi/gvp11.c static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
instance          150 drivers/scsi/gvp11.c 	struct gvp11_hostdata *hdata = shost_priv(instance);
instance          273 drivers/scsi/gvp11.c 	struct Scsi_Host *instance;
instance          302 drivers/scsi/gvp11.c 	instance = scsi_host_alloc(&gvp11_scsi_template,
instance          304 drivers/scsi/gvp11.c 	if (!instance) {
instance          309 drivers/scsi/gvp11.c 	instance->irq = IRQ_AMIGA_PORTS;
instance          310 drivers/scsi/gvp11.c 	instance->unique_id = z->slotaddr;
instance          323 drivers/scsi/gvp11.c 	hdata = shost_priv(instance);
instance          338 drivers/scsi/gvp11.c 	wd33c93_init(instance, wdregs, dma_setup, dma_stop,
instance          343 drivers/scsi/gvp11.c 			    "GVP11 SCSI", instance);
instance          349 drivers/scsi/gvp11.c 	error = scsi_add_host(instance, NULL);
instance          353 drivers/scsi/gvp11.c 	zorro_set_drvdata(z, instance);
instance          354 drivers/scsi/gvp11.c 	scsi_scan_host(instance);
instance          358 drivers/scsi/gvp11.c 	free_irq(IRQ_AMIGA_PORTS, instance);
instance          360 drivers/scsi/gvp11.c 	scsi_host_put(instance);
instance          368 drivers/scsi/gvp11.c 	struct Scsi_Host *instance = zorro_get_drvdata(z);
instance          369 drivers/scsi/gvp11.c 	struct gvp11_hostdata *hdata = shost_priv(instance);
instance          372 drivers/scsi/gvp11.c 	scsi_remove_host(instance);
instance          373 drivers/scsi/gvp11.c 	free_irq(IRQ_AMIGA_PORTS, instance);
instance          374 drivers/scsi/gvp11.c 	scsi_host_put(instance);
instance         4241 drivers/scsi/lpfc/lpfc_init.c lpfc_create_port(struct lpfc_hba *phba, int instance, struct device *dev)
instance         4302 drivers/scsi/lpfc/lpfc_init.c 	shost->unique_id = instance;
instance          302 drivers/scsi/lpfc/lpfc_vport.c 	int instance;
instance          336 drivers/scsi/lpfc/lpfc_vport.c 	if ((instance = lpfc_get_instance()) < 0) {
instance          345 drivers/scsi/lpfc/lpfc_vport.c 	vport = lpfc_create_port(phba, instance, &fc_vport->dev);
instance          443 drivers/scsi/mac_scsi.c 	struct Scsi_Host *instance;
instance          472 drivers/scsi/mac_scsi.c 	instance = scsi_host_alloc(&mac_scsi_template,
instance          474 drivers/scsi/mac_scsi.c 	if (!instance)
instance          478 drivers/scsi/mac_scsi.c 		instance->irq = irq->start;
instance          480 drivers/scsi/mac_scsi.c 		instance->irq = NO_IRQ;
instance          482 drivers/scsi/mac_scsi.c 	hostdata = shost_priv(instance);
instance          493 drivers/scsi/mac_scsi.c 	error = NCR5380_init(instance, host_flags | FLAG_LATE_DMA_SETUP);
instance          497 drivers/scsi/mac_scsi.c 	if (instance->irq != NO_IRQ) {
instance          498 drivers/scsi/mac_scsi.c 		error = request_irq(instance->irq, macscsi_intr, IRQF_SHARED,
instance          499 drivers/scsi/mac_scsi.c 		                    "NCR5380", instance);
instance          504 drivers/scsi/mac_scsi.c 	NCR5380_maybe_reset_bus(instance);
instance          506 drivers/scsi/mac_scsi.c 	error = scsi_add_host(instance, NULL);
instance          510 drivers/scsi/mac_scsi.c 	platform_set_drvdata(pdev, instance);
instance          512 drivers/scsi/mac_scsi.c 	scsi_scan_host(instance);
instance          516 drivers/scsi/mac_scsi.c 	if (instance->irq != NO_IRQ)
instance          517 drivers/scsi/mac_scsi.c 		free_irq(instance->irq, instance);
instance          519 drivers/scsi/mac_scsi.c 	NCR5380_exit(instance);
instance          521 drivers/scsi/mac_scsi.c 	scsi_host_put(instance);
instance          527 drivers/scsi/mac_scsi.c 	struct Scsi_Host *instance = platform_get_drvdata(pdev);
instance          529 drivers/scsi/mac_scsi.c 	scsi_remove_host(instance);
instance          530 drivers/scsi/mac_scsi.c 	if (instance->irq != NO_IRQ)
instance          531 drivers/scsi/mac_scsi.c 		free_irq(instance->irq, instance);
instance          532 drivers/scsi/mac_scsi.c 	NCR5380_exit(instance);
instance          533 drivers/scsi/mac_scsi.c 	scsi_host_put(instance);
instance          233 drivers/scsi/megaraid/megaraid_sas.h extern u8 MR_ValidateMapInfo(struct megasas_instance *instance, u64 map_id);
instance         2202 drivers/scsi/megaraid/megaraid_sas.h 	struct megasas_instance *instance;
instance         2206 drivers/scsi/megaraid/megaraid_sas.h 	struct megasas_instance *instance;
instance         2535 drivers/scsi/megaraid/megaraid_sas.h 	void (*issue_dcmd)(struct megasas_instance *instance,
instance         2568 drivers/scsi/megaraid/megaraid_sas.h 	struct megasas_instance *instance;
instance         2629 drivers/scsi/megaraid/megaraid_sas.h 	struct megasas_instance *instance[MAX_MGMT_ADAPTERS];
instance         2647 drivers/scsi/megaraid/megaraid_sas.h MR_BuildRaidContext(struct megasas_instance *instance,
instance         2658 drivers/scsi/megaraid/megaraid_sas.h __le16 get_updated_dev_handle(struct megasas_instance *instance,
instance         2664 drivers/scsi/megaraid/megaraid_sas.h int megasas_get_ctrl_info(struct megasas_instance *instance);
instance         2667 drivers/scsi/megaraid/megaraid_sas.h megasas_sync_pd_seq_num(struct megasas_instance *instance, bool pend);
instance         2670 drivers/scsi/megaraid/megaraid_sas.h int megasas_get_target_prop(struct megasas_instance *instance,
instance         2672 drivers/scsi/megaraid/megaraid_sas.h void megasas_get_snapdump_properties(struct megasas_instance *instance);
instance         2674 drivers/scsi/megaraid/megaraid_sas.h int megasas_set_crash_dump_params(struct megasas_instance *instance,
instance         2676 drivers/scsi/megaraid/megaraid_sas.h void megasas_free_host_crash_buffer(struct megasas_instance *instance);
instance         2678 drivers/scsi/megaraid/megaraid_sas.h void megasas_return_cmd_fusion(struct megasas_instance *instance,
instance         2680 drivers/scsi/megaraid/megaraid_sas.h int megasas_issue_blocked_cmd(struct megasas_instance *instance,
instance         2682 drivers/scsi/megaraid/megaraid_sas.h void __megasas_return_cmd(struct megasas_instance *instance,
instance         2685 drivers/scsi/megaraid/megaraid_sas.h void megasas_return_mfi_mpt_pthr(struct megasas_instance *instance,
instance         2688 drivers/scsi/megaraid/megaraid_sas.h void megasas_setup_jbod_map(struct megasas_instance *instance);
instance         2695 drivers/scsi/megaraid/megaraid_sas.h int megasas_alloc_fusion_context(struct megasas_instance *instance);
instance         2696 drivers/scsi/megaraid/megaraid_sas.h void megasas_free_fusion_context(struct megasas_instance *instance);
instance         2697 drivers/scsi/megaraid/megaraid_sas.h int megasas_fusion_start_watchdog(struct megasas_instance *instance);
instance         2698 drivers/scsi/megaraid/megaraid_sas.h void megasas_fusion_stop_watchdog(struct megasas_instance *instance);
instance         2700 drivers/scsi/megaraid/megaraid_sas.h void megasas_set_dma_settings(struct megasas_instance *instance,
instance         2703 drivers/scsi/megaraid/megaraid_sas.h int megasas_adp_reset_wait_for_ready(struct megasas_instance *instance,
instance          121 drivers/scsi/megaraid/megaraid_sas_base.c int megasas_transition_to_ready(struct megasas_instance *instance, int ocr);
instance          122 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_get_pd_list(struct megasas_instance *instance);
instance          123 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_ld_list_query(struct megasas_instance *instance,
instance          125 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_issue_init_mfi(struct megasas_instance *instance);
instance          126 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_register_aen(struct megasas_instance *instance,
instance          128 drivers/scsi/megaraid/megaraid_sas_base.c static void megasas_get_pd_info(struct megasas_instance *instance,
instance          207 drivers/scsi/megaraid/megaraid_sas_base.c extern void megasas_setup_debugfs(struct megasas_instance *instance);
instance          208 drivers/scsi/megaraid/megaraid_sas_base.c extern void megasas_destroy_debugfs(struct megasas_instance *instance);
instance          211 drivers/scsi/megaraid/megaraid_sas_base.c megasas_complete_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd,
instance          214 drivers/scsi/megaraid/megaraid_sas_base.c megasas_read_fw_status_reg_gen2(struct megasas_instance *instance);
instance          216 drivers/scsi/megaraid/megaraid_sas_base.c megasas_adp_reset_gen2(struct megasas_instance *instance,
instance          220 drivers/scsi/megaraid/megaraid_sas_base.c megasas_init_adapter_mfi(struct megasas_instance *instance);
instance          222 drivers/scsi/megaraid/megaraid_sas_base.c megasas_build_and_issue_cmd(struct megasas_instance *instance,
instance          226 drivers/scsi/megaraid/megaraid_sas_base.c wait_and_poll(struct megasas_instance *instance, struct megasas_cmd *cmd,
instance          229 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_get_ld_vf_affiliation(struct megasas_instance *instance,
instance          232 drivers/scsi/megaraid/megaraid_sas_base.c megasas_set_dma_mask(struct megasas_instance *instance);
instance          234 drivers/scsi/megaraid/megaraid_sas_base.c megasas_alloc_ctrl_mem(struct megasas_instance *instance);
instance          236 drivers/scsi/megaraid/megaraid_sas_base.c megasas_free_ctrl_mem(struct megasas_instance *instance);
instance          238 drivers/scsi/megaraid/megaraid_sas_base.c megasas_alloc_ctrl_dma_buffers(struct megasas_instance *instance);
instance          240 drivers/scsi/megaraid/megaraid_sas_base.c megasas_free_ctrl_dma_buffers(struct megasas_instance *instance);
instance          242 drivers/scsi/megaraid/megaraid_sas_base.c megasas_init_ctrl_params(struct megasas_instance *instance);
instance          244 drivers/scsi/megaraid/megaraid_sas_base.c u32 megasas_readl(struct megasas_instance *instance,
instance          255 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type == AERO_SERIES) {
instance          274 drivers/scsi/megaraid/megaraid_sas_base.c void megasas_set_dma_settings(struct megasas_instance *instance,
instance          278 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->consistent_mask_64bit) {
instance          292 drivers/scsi/megaraid/megaraid_sas_base.c megasas_issue_dcmd(struct megasas_instance *instance, struct megasas_cmd *cmd)
instance          294 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->fire_cmd(instance,
instance          295 drivers/scsi/megaraid/megaraid_sas_base.c 		cmd->frame_phys_addr, 0, instance->reg_set);
instance          306 drivers/scsi/megaraid/megaraid_sas_base.c 						  *instance)
instance          311 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_irqsave(&instance->mfi_pool_lock, flags);
instance          313 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!list_empty(&instance->cmd_pool)) {
instance          314 drivers/scsi/megaraid/megaraid_sas_base.c 		cmd = list_entry((&instance->cmd_pool)->next,
instance          318 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "Command pool empty!\n");
instance          321 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_unlock_irqrestore(&instance->mfi_pool_lock, flags);
instance          331 drivers/scsi/megaraid/megaraid_sas_base.c megasas_return_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd)
instance          336 drivers/scsi/megaraid/megaraid_sas_base.c 	struct fusion_context *fusion = instance->ctrl_context;
instance          344 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_irqsave(&instance->mfi_pool_lock, flags);
instance          347 drivers/scsi/megaraid/megaraid_sas_base.c 		blk_tags = instance->max_scsi_cmds + cmd->index;
instance          349 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd_fusion(instance, cmd_fusion);
instance          354 drivers/scsi/megaraid/megaraid_sas_base.c 	memset(cmd->frame, 0, instance->mfi_frame_size);
instance          358 drivers/scsi/megaraid/megaraid_sas_base.c 	list_add(&cmd->list, (&instance->cmd_pool)->next);
instance          360 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_unlock_irqrestore(&instance->mfi_pool_lock, flags);
instance          409 drivers/scsi/megaraid/megaraid_sas_base.c megasas_decode_evt(struct megasas_instance *instance)
instance          411 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_evt_detail *evt_detail = instance->evt_detail;
instance          422 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "%d (%s/0x%04x/%s) - %s\n",
instance          440 drivers/scsi/megaraid/megaraid_sas_base.c megasas_enable_intr_xscale(struct megasas_instance *instance)
instance          444 drivers/scsi/megaraid/megaraid_sas_base.c 	regs = instance->reg_set;
instance          456 drivers/scsi/megaraid/megaraid_sas_base.c megasas_disable_intr_xscale(struct megasas_instance *instance)
instance          461 drivers/scsi/megaraid/megaraid_sas_base.c 	regs = instance->reg_set;
instance          472 drivers/scsi/megaraid/megaraid_sas_base.c megasas_read_fw_status_reg_xscale(struct megasas_instance *instance)
instance          474 drivers/scsi/megaraid/megaraid_sas_base.c 	return readl(&instance->reg_set->outbound_msg_0);
instance          481 drivers/scsi/megaraid/megaraid_sas_base.c megasas_clear_intr_xscale(struct megasas_instance *instance)
instance          486 drivers/scsi/megaraid/megaraid_sas_base.c 	regs = instance->reg_set;
instance          517 drivers/scsi/megaraid/megaraid_sas_base.c megasas_fire_cmd_xscale(struct megasas_instance *instance,
instance          524 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_irqsave(&instance->hba_lock, flags);
instance          527 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_unlock_irqrestore(&instance->hba_lock, flags);
instance          535 drivers/scsi/megaraid/megaraid_sas_base.c megasas_adp_reset_xscale(struct megasas_instance *instance,
instance          546 drivers/scsi/megaraid/megaraid_sas_base.c 	pci_read_config_dword(instance->pdev, MFI_1068_PCSR_OFFSET, &pcidata);
instance          547 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_notice(&instance->pdev->dev, "pcidata = %x\n", pcidata);
instance          549 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_notice(&instance->pdev->dev, "mfi 1068 offset read=%x\n", pcidata);
instance          551 drivers/scsi/megaraid/megaraid_sas_base.c 		pci_write_config_dword(instance->pdev,
instance          558 drivers/scsi/megaraid/megaraid_sas_base.c 		pci_read_config_dword(instance->pdev,
instance          560 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_notice(&instance->pdev->dev, "1068 offset handshake read=%x\n", pcidata);
instance          562 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "1068 offset pcidt=%x\n", pcidata);
instance          564 drivers/scsi/megaraid/megaraid_sas_base.c 			pci_write_config_dword(instance->pdev,
instance          576 drivers/scsi/megaraid/megaraid_sas_base.c megasas_check_reset_xscale(struct megasas_instance *instance,
instance          579 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((atomic_read(&instance->adprecovery) != MEGASAS_HBA_OPERATIONAL) &&
instance          580 drivers/scsi/megaraid/megaraid_sas_base.c 	    (le32_to_cpu(*instance->consumer) ==
instance          617 drivers/scsi/megaraid/megaraid_sas_base.c megasas_enable_intr_ppc(struct megasas_instance *instance)
instance          621 drivers/scsi/megaraid/megaraid_sas_base.c 	regs = instance->reg_set;
instance          635 drivers/scsi/megaraid/megaraid_sas_base.c megasas_disable_intr_ppc(struct megasas_instance *instance)
instance          640 drivers/scsi/megaraid/megaraid_sas_base.c 	regs = instance->reg_set;
instance          651 drivers/scsi/megaraid/megaraid_sas_base.c megasas_read_fw_status_reg_ppc(struct megasas_instance *instance)
instance          653 drivers/scsi/megaraid/megaraid_sas_base.c 	return readl(&instance->reg_set->outbound_scratch_pad_0);
instance          661 drivers/scsi/megaraid/megaraid_sas_base.c megasas_clear_intr_ppc(struct megasas_instance *instance)
instance          665 drivers/scsi/megaraid/megaraid_sas_base.c 	regs = instance->reg_set;
instance          696 drivers/scsi/megaraid/megaraid_sas_base.c megasas_fire_cmd_ppc(struct megasas_instance *instance,
instance          703 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_irqsave(&instance->hba_lock, flags);
instance          706 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_unlock_irqrestore(&instance->hba_lock, flags);
instance          714 drivers/scsi/megaraid/megaraid_sas_base.c megasas_check_reset_ppc(struct megasas_instance *instance,
instance          717 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) != MEGASAS_HBA_OPERATIONAL)
instance          744 drivers/scsi/megaraid/megaraid_sas_base.c megasas_enable_intr_skinny(struct megasas_instance *instance)
instance          748 drivers/scsi/megaraid/megaraid_sas_base.c 	regs = instance->reg_set;
instance          762 drivers/scsi/megaraid/megaraid_sas_base.c megasas_disable_intr_skinny(struct megasas_instance *instance)
instance          767 drivers/scsi/megaraid/megaraid_sas_base.c 	regs = instance->reg_set;
instance          778 drivers/scsi/megaraid/megaraid_sas_base.c megasas_read_fw_status_reg_skinny(struct megasas_instance *instance)
instance          780 drivers/scsi/megaraid/megaraid_sas_base.c 	return readl(&instance->reg_set->outbound_scratch_pad_0);
instance          788 drivers/scsi/megaraid/megaraid_sas_base.c megasas_clear_intr_skinny(struct megasas_instance *instance)
instance          793 drivers/scsi/megaraid/megaraid_sas_base.c 	regs = instance->reg_set;
instance          807 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((megasas_read_fw_status_reg_skinny(instance) & MFI_STATE_MASK) ==
instance          833 drivers/scsi/megaraid/megaraid_sas_base.c megasas_fire_cmd_skinny(struct megasas_instance *instance,
instance          840 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_irqsave(&instance->hba_lock, flags);
instance          845 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_unlock_irqrestore(&instance->hba_lock, flags);
instance          853 drivers/scsi/megaraid/megaraid_sas_base.c megasas_check_reset_skinny(struct megasas_instance *instance,
instance          856 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) != MEGASAS_HBA_OPERATIONAL)
instance          889 drivers/scsi/megaraid/megaraid_sas_base.c megasas_enable_intr_gen2(struct megasas_instance *instance)
instance          893 drivers/scsi/megaraid/megaraid_sas_base.c 	regs = instance->reg_set;
instance          908 drivers/scsi/megaraid/megaraid_sas_base.c megasas_disable_intr_gen2(struct megasas_instance *instance)
instance          913 drivers/scsi/megaraid/megaraid_sas_base.c 	regs = instance->reg_set;
instance          924 drivers/scsi/megaraid/megaraid_sas_base.c megasas_read_fw_status_reg_gen2(struct megasas_instance *instance)
instance          926 drivers/scsi/megaraid/megaraid_sas_base.c 	return readl(&instance->reg_set->outbound_scratch_pad_0);
instance          934 drivers/scsi/megaraid/megaraid_sas_base.c megasas_clear_intr_gen2(struct megasas_instance *instance)
instance          939 drivers/scsi/megaraid/megaraid_sas_base.c 	regs = instance->reg_set;
instance          971 drivers/scsi/megaraid/megaraid_sas_base.c megasas_fire_cmd_gen2(struct megasas_instance *instance,
instance          978 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_irqsave(&instance->hba_lock, flags);
instance          981 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_unlock_irqrestore(&instance->hba_lock, flags);
instance          989 drivers/scsi/megaraid/megaraid_sas_base.c megasas_adp_reset_gen2(struct megasas_instance *instance,
instance          997 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->instancet == &megasas_instance_template_skinny) {
instance         1016 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_notice(&instance->pdev->dev, "RESETGEN2: retry=%x, hostdiag=%x\n",
instance         1024 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_notice(&instance->pdev->dev, "ADP_RESET_GEN2: HostDiag=%x\n", HostDiag);
instance         1034 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_notice(&instance->pdev->dev, "RESET_GEN2: retry=%x, hostdiag=%x\n",
instance         1049 drivers/scsi/megaraid/megaraid_sas_base.c megasas_check_reset_gen2(struct megasas_instance *instance,
instance         1052 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) != MEGASAS_HBA_OPERATIONAL)
instance         1092 drivers/scsi/megaraid/megaraid_sas_base.c megasas_issue_polled(struct megasas_instance *instance, struct megasas_cmd *cmd)
instance         1099 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR) {
instance         1100 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "Failed from %s %d\n",
instance         1105 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->issue_dcmd(instance, cmd);
instance         1107 drivers/scsi/megaraid/megaraid_sas_base.c 	return wait_and_poll(instance, cmd, instance->requestorId ?
instance         1122 drivers/scsi/megaraid/megaraid_sas_base.c megasas_issue_blocked_cmd(struct megasas_instance *instance,
instance         1128 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR) {
instance         1129 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "Failed from %s %d\n",
instance         1134 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->issue_dcmd(instance, cmd);
instance         1137 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = wait_event_timeout(instance->int_cmd_wait_q,
instance         1140 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev,
instance         1146 drivers/scsi/megaraid/megaraid_sas_base.c 		wait_event(instance->int_cmd_wait_q,
instance         1165 drivers/scsi/megaraid/megaraid_sas_base.c megasas_issue_blocked_abort_cmd(struct megasas_instance *instance,
instance         1173 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         1195 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR) {
instance         1196 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "Failed from %s %d\n",
instance         1201 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->issue_dcmd(instance, cmd);
instance         1204 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = wait_event_timeout(instance->abort_cmd_wait_q,
instance         1208 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev,
instance         1214 drivers/scsi/megaraid/megaraid_sas_base.c 		wait_event(instance->abort_cmd_wait_q,
instance         1219 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_return_cmd(instance, cmd);
instance         1234 drivers/scsi/megaraid/megaraid_sas_base.c megasas_make_sgl32(struct megasas_instance *instance, struct scsi_cmnd *scp,
instance         1263 drivers/scsi/megaraid/megaraid_sas_base.c megasas_make_sgl64(struct megasas_instance *instance, struct scsi_cmnd *scp,
instance         1292 drivers/scsi/megaraid/megaraid_sas_base.c megasas_make_sgl_skinny(struct megasas_instance *instance,
instance         1321 drivers/scsi/megaraid/megaraid_sas_base.c static u32 megasas_get_frame_count(struct megasas_instance *instance,
instance         1332 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->flag_ieee) {
instance         1343 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->flag_ieee == 1) {
instance         1350 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->flag_ieee == 1) {
instance         1382 drivers/scsi/megaraid/megaraid_sas_base.c megasas_build_dcdb(struct megasas_instance *instance, struct scsi_cmnd *scp,
instance         1401 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->flag_ieee == 1) {
instance         1435 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->flag_ieee == 1) {
instance         1437 drivers/scsi/megaraid/megaraid_sas_base.c 		pthru->sge_count = megasas_make_sgl_skinny(instance, scp,
instance         1441 drivers/scsi/megaraid/megaraid_sas_base.c 		pthru->sge_count = megasas_make_sgl64(instance, scp,
instance         1444 drivers/scsi/megaraid/megaraid_sas_base.c 		pthru->sge_count = megasas_make_sgl32(instance, scp,
instance         1447 drivers/scsi/megaraid/megaraid_sas_base.c 	if (pthru->sge_count > instance->max_num_sge) {
instance         1448 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "DCDB too many SGE NUM=%x\n",
instance         1466 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd->frame_count = megasas_get_frame_count(instance, pthru->sge_count,
instance         1481 drivers/scsi/megaraid/megaraid_sas_base.c megasas_build_ldio(struct megasas_instance *instance, struct scsi_cmnd *scp,
instance         1497 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->flag_ieee == 1) {
instance         1578 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->flag_ieee) {
instance         1580 drivers/scsi/megaraid/megaraid_sas_base.c 		ldio->sge_count = megasas_make_sgl_skinny(instance, scp,
instance         1584 drivers/scsi/megaraid/megaraid_sas_base.c 		ldio->sge_count = megasas_make_sgl64(instance, scp, &ldio->sgl);
instance         1586 drivers/scsi/megaraid/megaraid_sas_base.c 		ldio->sge_count = megasas_make_sgl32(instance, scp, &ldio->sgl);
instance         1588 drivers/scsi/megaraid/megaraid_sas_base.c 	if (ldio->sge_count > instance->max_num_sge) {
instance         1589 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "build_ld_io: sge_count = %x\n",
instance         1605 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd->frame_count = megasas_get_frame_count(instance,
instance         1646 drivers/scsi/megaraid/megaraid_sas_base.c megasas_dump_pending_frames(struct megasas_instance *instance)
instance         1654 drivers/scsi/megaraid/megaraid_sas_base.c 	u16 max_cmd = instance->max_fw_cmds;
instance         1656 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_err(&instance->pdev->dev, "[%d]: Dumping Frame Phys Address of all pending cmds in FW\n",instance->host->host_no);
instance         1657 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_err(&instance->pdev->dev, "[%d]: Total OS Pending cmds : %d\n",instance->host->host_no,atomic_read(&instance->fw_outstanding));
instance         1659 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "[%d]: 64 bit SGLs were sent to FW\n",instance->host->host_no);
instance         1661 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "[%d]: 32 bit SGLs were sent to FW\n",instance->host->host_no);
instance         1663 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_err(&instance->pdev->dev, "[%d]: Pending OS cmds in FW : \n",instance->host->host_no);
instance         1665 drivers/scsi/megaraid/megaraid_sas_base.c 		cmd = instance->cmd_list[i];
instance         1668 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "[%d]: Frame addr :0x%08lx : ",instance->host->host_no,(unsigned long)cmd->frame_phys_addr);
instance         1673 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev, "[%d]: frame count : 0x%x, Cmd : 0x%x, Tgt id : 0x%x,"
instance         1675 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->host->host_no, cmd->frame_count, ldio->cmd, ldio->target_id,
instance         1682 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev, "[%d]: frame count : 0x%x, Cmd : 0x%x, Tgt id : 0x%x, "
instance         1684 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->host->host_no, cmd->frame_count, pthru->cmd, pthru->target_id,
instance         1691 drivers/scsi/megaraid/megaraid_sas_base.c 					dev_err(&instance->pdev->dev, "sgl len : 0x%x, sgl addr : 0x%llx\n",
instance         1695 drivers/scsi/megaraid/megaraid_sas_base.c 					dev_err(&instance->pdev->dev, "sgl len : 0x%x, sgl addr : 0x%x\n",
instance         1701 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_err(&instance->pdev->dev, "[%d]: Pending Internal cmds in FW : \n",instance->host->host_no);
instance         1704 drivers/scsi/megaraid/megaraid_sas_base.c 		cmd = instance->cmd_list[i];
instance         1707 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev, "0x%08lx : ", (unsigned long)cmd->frame_phys_addr);
instance         1709 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_err(&instance->pdev->dev, "[%d]: Dumping Done\n\n",instance->host->host_no);
instance         1713 drivers/scsi/megaraid/megaraid_sas_base.c megasas_build_and_issue_cmd(struct megasas_instance *instance,
instance         1719 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         1727 drivers/scsi/megaraid/megaraid_sas_base.c 		frame_count = megasas_build_ldio(instance, scmd, cmd);
instance         1729 drivers/scsi/megaraid/megaraid_sas_base.c 		frame_count = megasas_build_dcdb(instance, scmd, cmd);
instance         1740 drivers/scsi/megaraid/megaraid_sas_base.c 	atomic_inc(&instance->fw_outstanding);
instance         1742 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->fire_cmd(instance, cmd->frame_phys_addr,
instance         1743 drivers/scsi/megaraid/megaraid_sas_base.c 				cmd->frame_count-1, instance->reg_set);
instance         1747 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_return_cmd(instance, cmd);
instance         1760 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         1763 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = (struct megasas_instance *)
instance         1766 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->unload == 1) {
instance         1772 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->issuepend_done == 0)
instance         1777 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_ADPRESET_SM_INFAULT) {
instance         1778 drivers/scsi/megaraid/megaraid_sas_base.c 		if (megasas_check_mpio_paths(instance, scmd) ==
instance         1788 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR) {
instance         1801 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) != MEGASAS_HBA_OPERATIONAL)
instance         1811 drivers/scsi/megaraid/megaraid_sas_base.c 	    (scmd->device->id >= instance->fw_supported_vd_count ||
instance         1819 drivers/scsi/megaraid/megaraid_sas_base.c 	    (!instance->fw_sync_cache_support)) {
instance         1824 drivers/scsi/megaraid/megaraid_sas_base.c 	return instance->instancet->build_and_issue_cmd(instance, scmd);
instance         1837 drivers/scsi/megaraid/megaraid_sas_base.c 		if ((megasas_mgmt_info.instance[i]) &&
instance         1838 drivers/scsi/megaraid/megaraid_sas_base.c 		    (megasas_mgmt_info.instance[i]->host->host_no == host_no))
instance         1839 drivers/scsi/megaraid/megaraid_sas_base.c 			return megasas_mgmt_info.instance[i];
instance         1862 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         1869 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = megasas_lookup_instance(sdev->host->host_no);
instance         1870 drivers/scsi/megaraid/megaraid_sas_base.c 	fusion = instance->ctrl_context;
instance         1879 drivers/scsi/megaraid/megaraid_sas_base.c 		local_map_ptr = fusion->ld_drv_map[(instance->map_id & 1)];
instance         1881 drivers/scsi/megaraid/megaraid_sas_base.c 		if (ld >= instance->fw_supported_vd_count)
instance         1890 drivers/scsi/megaraid/megaraid_sas_base.c 	} else if (instance->use_seqnum_jbod_fp) {
instance         1894 drivers/scsi/megaraid/megaraid_sas_base.c 				[(instance->pd_seq_map_id - 1) & 1];
instance         1899 drivers/scsi/megaraid/megaraid_sas_base.c 	if (is_target_prop && instance->tgt_prop->reset_tmo) {
instance         1905 drivers/scsi/megaraid/megaraid_sas_base.c 			min_t(u8, instance->max_reset_tmo,
instance         1906 drivers/scsi/megaraid/megaraid_sas_base.c 			      instance->tgt_prop->reset_tmo);
instance         1907 drivers/scsi/megaraid/megaraid_sas_base.c 		mr_device_priv_data->task_abort_tmo = instance->task_abort_tmo;
instance         1935 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         1938 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = (struct megasas_instance *)sdev->host->hostdata;
instance         1939 drivers/scsi/megaraid/megaraid_sas_base.c 	mr_nvme_pg_size = max_t(u32, instance->nvme_page_size,
instance         1962 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         1965 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = megasas_lookup_instance(sdev->host->host_no);
instance         1982 drivers/scsi/megaraid/megaraid_sas_base.c 		tgt_device_qd = le32_to_cpu(instance->tgt_prop->device_qdepth);
instance         1984 drivers/scsi/megaraid/megaraid_sas_base.c 		    (tgt_device_qd <= instance->host->can_queue))
instance         1988 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->enable_sdev_max_qd && interface_type != UNKNOWN_DRIVE)
instance         1989 drivers/scsi/megaraid/megaraid_sas_base.c 		device_qd = instance->host->can_queue;
instance         2010 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         2012 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = megasas_lookup_instance(sdev->host->host_no);
instance         2023 drivers/scsi/megaraid/megaraid_sas_base.c 		max_io_size_kb = le32_to_cpu(instance->tgt_prop->max_io_size_kb);
instance         2025 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->nvme_page_size && max_io_size_kb)
instance         2035 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         2039 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = megasas_lookup_instance(sdev->host->host_no);
instance         2040 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->pd_list_not_supported) {
instance         2044 drivers/scsi/megaraid/megaraid_sas_base.c 			if (instance->pd_list[pd_index].driveState !=
instance         2050 drivers/scsi/megaraid/megaraid_sas_base.c 	mutex_lock(&instance->reset_mutex);
instance         2052 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->pd_info) && !MEGASAS_IS_LOGICAL(sdev))
instance         2053 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_get_pd_info(instance, sdev);
instance         2058 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->tgt_prop) && (instance->nvme_page_size))
instance         2059 drivers/scsi/megaraid/megaraid_sas_base.c 		ret_target_prop = megasas_get_target_prop(instance, sdev);
instance         2067 drivers/scsi/megaraid/megaraid_sas_base.c 	mutex_unlock(&instance->reset_mutex);
instance         2075 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance ;
instance         2078 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = megasas_lookup_instance(sdev->host->host_no);
instance         2086 drivers/scsi/megaraid/megaraid_sas_base.c 		if ((instance->pd_list_not_supported ||
instance         2087 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->pd_list[pd_index].driveState ==
instance         2102 drivers/scsi/megaraid/megaraid_sas_base.c 		   instance->r1_ldio_hint_default);
instance         2118 drivers/scsi/megaraid/megaraid_sas_base.c static void megasas_complete_outstanding_ioctls(struct megasas_instance *instance)
instance         2123 drivers/scsi/megaraid/megaraid_sas_base.c 	struct fusion_context *fusion = instance->ctrl_context;
instance         2127 drivers/scsi/megaraid/megaraid_sas_base.c 		for (i = 0; i < instance->max_fw_cmds; i++) {
instance         2130 drivers/scsi/megaraid/megaraid_sas_base.c 				cmd_mfi = instance->cmd_list[cmd_fusion->sync_cmd_idx];
instance         2135 drivers/scsi/megaraid/megaraid_sas_base.c 					megasas_complete_cmd(instance,
instance         2141 drivers/scsi/megaraid/megaraid_sas_base.c 		for (i = 0; i < instance->max_fw_cmds; i++) {
instance         2142 drivers/scsi/megaraid/megaraid_sas_base.c 			cmd_mfi = instance->cmd_list[i];
instance         2145 drivers/scsi/megaraid/megaraid_sas_base.c 				megasas_complete_cmd(instance, cmd_mfi, DID_OK);
instance         2151 drivers/scsi/megaraid/megaraid_sas_base.c void megaraid_sas_kill_hba(struct megasas_instance *instance)
instance         2154 drivers/scsi/megaraid/megaraid_sas_base.c 	atomic_set(&instance->adprecovery, MEGASAS_HW_CRITICAL_ERROR);
instance         2157 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->pdev->device == PCI_DEVICE_ID_LSI_SAS0073SKINNY) ||
instance         2158 drivers/scsi/megaraid/megaraid_sas_base.c 		(instance->pdev->device == PCI_DEVICE_ID_LSI_SAS0071SKINNY) ||
instance         2159 drivers/scsi/megaraid/megaraid_sas_base.c 		(instance->adapter_type != MFI_SERIES)) {
instance         2160 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!instance->requestorId) {
instance         2161 drivers/scsi/megaraid/megaraid_sas_base.c 			writel(MFI_STOP_ADP, &instance->reg_set->doorbell);
instance         2163 drivers/scsi/megaraid/megaraid_sas_base.c 			readl(&instance->reg_set->doorbell);
instance         2165 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->requestorId && instance->peerIsPresent)
instance         2166 drivers/scsi/megaraid/megaraid_sas_base.c 			memset(instance->ld_ids, 0xff, MEGASAS_MAX_LD_IDS);
instance         2169 drivers/scsi/megaraid/megaraid_sas_base.c 			&instance->reg_set->inbound_doorbell);
instance         2172 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_complete_outstanding_ioctls(instance);
instance         2182 drivers/scsi/megaraid/megaraid_sas_base.c megasas_check_and_restore_queue_depth(struct megasas_instance *instance)
instance         2186 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->flag & MEGASAS_FW_BUSY
instance         2187 drivers/scsi/megaraid/megaraid_sas_base.c 	    && time_after(jiffies, instance->last_time + 5 * HZ)
instance         2188 drivers/scsi/megaraid/megaraid_sas_base.c 	    && atomic_read(&instance->fw_outstanding) <
instance         2189 drivers/scsi/megaraid/megaraid_sas_base.c 	    instance->throttlequeuedepth + 1) {
instance         2191 drivers/scsi/megaraid/megaraid_sas_base.c 		spin_lock_irqsave(instance->host->host_lock, flags);
instance         2192 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->flag &= ~MEGASAS_FW_BUSY;
instance         2194 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->host->can_queue = instance->cur_can_queue;
instance         2195 drivers/scsi/megaraid/megaraid_sas_base.c 		spin_unlock_irqrestore(instance->host->host_lock, flags);
instance         2211 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance =
instance         2216 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR)
instance         2219 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_irqsave(&instance->completion_lock, flags);
instance         2221 drivers/scsi/megaraid/megaraid_sas_base.c 	producer = le32_to_cpu(*instance->producer);
instance         2222 drivers/scsi/megaraid/megaraid_sas_base.c 	consumer = le32_to_cpu(*instance->consumer);
instance         2225 drivers/scsi/megaraid/megaraid_sas_base.c 		context = le32_to_cpu(instance->reply_queue[consumer]);
instance         2226 drivers/scsi/megaraid/megaraid_sas_base.c 		if (context >= instance->max_fw_cmds) {
instance         2227 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev, "Unexpected context value %x\n",
instance         2232 drivers/scsi/megaraid/megaraid_sas_base.c 		cmd = instance->cmd_list[context];
instance         2234 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_complete_cmd(instance, cmd, DID_OK);
instance         2237 drivers/scsi/megaraid/megaraid_sas_base.c 		if (consumer == (instance->max_fw_cmds + 1)) {
instance         2242 drivers/scsi/megaraid/megaraid_sas_base.c 	*instance->consumer = cpu_to_le32(producer);
instance         2244 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_unlock_irqrestore(&instance->completion_lock, flags);
instance         2249 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_check_and_restore_queue_depth(instance);
instance         2259 drivers/scsi/megaraid/megaraid_sas_base.c void megasas_start_timer(struct megasas_instance *instance)
instance         2261 drivers/scsi/megaraid/megaraid_sas_base.c 	struct timer_list *timer = &instance->sriov_heartbeat_timer;
instance         2269 drivers/scsi/megaraid/megaraid_sas_base.c megasas_internal_reset_defer_cmds(struct megasas_instance *instance);
instance         2274 drivers/scsi/megaraid/megaraid_sas_base.c static void megasas_do_ocr(struct megasas_instance *instance)
instance         2276 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->pdev->device == PCI_DEVICE_ID_LSI_SAS1064R) ||
instance         2277 drivers/scsi/megaraid/megaraid_sas_base.c 	(instance->pdev->device == PCI_DEVICE_ID_DELL_PERC5) ||
instance         2278 drivers/scsi/megaraid/megaraid_sas_base.c 	(instance->pdev->device == PCI_DEVICE_ID_LSI_VERDE_ZCR)) {
instance         2279 drivers/scsi/megaraid/megaraid_sas_base.c 		*instance->consumer = cpu_to_le32(MEGASAS_ADPRESET_INPROG_SIGN);
instance         2281 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->disable_intr(instance);
instance         2282 drivers/scsi/megaraid/megaraid_sas_base.c 	atomic_set(&instance->adprecovery, MEGASAS_ADPRESET_SM_INFAULT);
instance         2283 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->issuepend_done = 0;
instance         2285 drivers/scsi/megaraid/megaraid_sas_base.c 	atomic_set(&instance->fw_outstanding, 0);
instance         2286 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_internal_reset_defer_cmds(instance);
instance         2287 drivers/scsi/megaraid/megaraid_sas_base.c 	process_fw_state_change_wq(&instance->work_init);
instance         2290 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_get_ld_vf_affiliation_111(struct megasas_instance *instance,
instance         2300 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         2303 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "megasas_get_ld_vf_affiliation_111:"
instance         2305 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->host->host_no);
instance         2311 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->vf_affiliation_111) {
instance         2312 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_warn(&instance->pdev->dev, "SR-IOV: Couldn't get LD/VF "
instance         2313 drivers/scsi/megaraid/megaraid_sas_base.c 		       "affiliation for scsi%d\n", instance->host->host_no);
instance         2314 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         2319 drivers/scsi/megaraid/megaraid_sas_base.c 			memset(instance->vf_affiliation_111, 0,
instance         2323 drivers/scsi/megaraid/megaraid_sas_base.c 			dma_alloc_coherent(&instance->pdev->dev,
instance         2327 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_printk(KERN_DEBUG, &instance->pdev->dev, "SR-IOV: Couldn't allocate "
instance         2329 drivers/scsi/megaraid/megaraid_sas_base.c 			       instance->host->host_no);
instance         2330 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_return_cmd(instance, cmd);
instance         2349 drivers/scsi/megaraid/megaraid_sas_base.c 			cpu_to_le32(instance->vf_affiliation_111_h);
instance         2357 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_warn(&instance->pdev->dev, "SR-IOV: Getting LD/VF affiliation for "
instance         2358 drivers/scsi/megaraid/megaraid_sas_base.c 	       "scsi%d\n", instance->host->host_no);
instance         2360 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_issue_blocked_cmd(instance, cmd, 0) != DCMD_SUCCESS) {
instance         2361 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_warn(&instance->pdev->dev, "SR-IOV: LD/VF affiliation DCMD"
instance         2363 drivers/scsi/megaraid/megaraid_sas_base.c 		       dcmd->cmd_status, instance->host->host_no);
instance         2371 drivers/scsi/megaraid/megaraid_sas_base.c 			if (instance->vf_affiliation_111->map[ld].policy[thisVf] !=
instance         2373 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_warn(&instance->pdev->dev, "SR-IOV: "
instance         2375 drivers/scsi/megaraid/megaraid_sas_base.c 				       instance->host->host_no);
instance         2376 drivers/scsi/megaraid/megaraid_sas_base.c 				memcpy(instance->vf_affiliation_111,
instance         2385 drivers/scsi/megaraid/megaraid_sas_base.c 		dma_free_coherent(&instance->pdev->dev,
instance         2391 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_return_cmd(instance, cmd);
instance         2396 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_get_ld_vf_affiliation_12(struct megasas_instance *instance,
instance         2407 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         2410 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "megasas_get_ld_vf_affiliation12: "
instance         2412 drivers/scsi/megaraid/megaraid_sas_base.c 		       instance->host->host_no);
instance         2418 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->vf_affiliation) {
instance         2419 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_warn(&instance->pdev->dev, "SR-IOV: Couldn't get LD/VF "
instance         2420 drivers/scsi/megaraid/megaraid_sas_base.c 		       "affiliation for scsi%d\n", instance->host->host_no);
instance         2421 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         2426 drivers/scsi/megaraid/megaraid_sas_base.c 		memset(instance->vf_affiliation, 0, (MAX_LOGICAL_DRIVES + 1) *
instance         2430 drivers/scsi/megaraid/megaraid_sas_base.c 			dma_alloc_coherent(&instance->pdev->dev,
instance         2434 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_printk(KERN_DEBUG, &instance->pdev->dev, "SR-IOV: Couldn't allocate "
instance         2436 drivers/scsi/megaraid/megaraid_sas_base.c 			       instance->host->host_no);
instance         2437 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_return_cmd(instance, cmd);
instance         2456 drivers/scsi/megaraid/megaraid_sas_base.c 			cpu_to_le32(instance->vf_affiliation_h);
instance         2464 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_warn(&instance->pdev->dev, "SR-IOV: Getting LD/VF affiliation for "
instance         2465 drivers/scsi/megaraid/megaraid_sas_base.c 	       "scsi%d\n", instance->host->host_no);
instance         2468 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_issue_blocked_cmd(instance, cmd, 0) != DCMD_SUCCESS) {
instance         2469 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_warn(&instance->pdev->dev, "SR-IOV: LD/VF affiliation DCMD"
instance         2471 drivers/scsi/megaraid/megaraid_sas_base.c 		       dcmd->cmd_status, instance->host->host_no);
instance         2478 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_warn(&instance->pdev->dev, "SR-IOV: Got new LD/VF "
instance         2480 drivers/scsi/megaraid/megaraid_sas_base.c 			       instance->host->host_no);
instance         2485 drivers/scsi/megaraid/megaraid_sas_base.c 		savedmap = instance->vf_affiliation->map;
instance         2489 drivers/scsi/megaraid/megaraid_sas_base.c 			for (j = 0; j < instance->vf_affiliation->ldCount;
instance         2514 drivers/scsi/megaraid/megaraid_sas_base.c 		savedmap = instance->vf_affiliation->map;
instance         2516 drivers/scsi/megaraid/megaraid_sas_base.c 		for (i = 0 ; i < instance->vf_affiliation->ldCount; i++) {
instance         2544 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_warn(&instance->pdev->dev, "SR-IOV: Got new LD/VF "
instance         2545 drivers/scsi/megaraid/megaraid_sas_base.c 		       "affiliation for scsi%d\n", instance->host->host_no);
instance         2546 drivers/scsi/megaraid/megaraid_sas_base.c 		memcpy(instance->vf_affiliation, new_affiliation,
instance         2552 drivers/scsi/megaraid/megaraid_sas_base.c 		dma_free_coherent(&instance->pdev->dev,
instance         2556 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_return_cmd(instance, cmd);
instance         2562 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_get_ld_vf_affiliation(struct megasas_instance *instance,
instance         2567 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->PlasmaFW111)
instance         2568 drivers/scsi/megaraid/megaraid_sas_base.c 		retval = megasas_get_ld_vf_affiliation_111(instance, initial);
instance         2570 drivers/scsi/megaraid/megaraid_sas_base.c 		retval = megasas_get_ld_vf_affiliation_12(instance, initial);
instance         2575 drivers/scsi/megaraid/megaraid_sas_base.c int megasas_sriov_start_heartbeat(struct megasas_instance *instance,
instance         2582 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         2585 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "megasas_sriov_start_heartbeat: "
instance         2587 drivers/scsi/megaraid/megaraid_sas_base.c 		       instance->host->host_no);
instance         2594 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->hb_host_mem =
instance         2595 drivers/scsi/megaraid/megaraid_sas_base.c 			dma_alloc_coherent(&instance->pdev->dev,
instance         2597 drivers/scsi/megaraid/megaraid_sas_base.c 					   &instance->hb_host_mem_h,
instance         2599 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!instance->hb_host_mem) {
instance         2600 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_printk(KERN_DEBUG, &instance->pdev->dev, "SR-IOV: Couldn't allocate"
instance         2602 drivers/scsi/megaraid/megaraid_sas_base.c 			       instance->host->host_no);
instance         2620 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_dma_settings(instance, dcmd, instance->hb_host_mem_h,
instance         2623 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_warn(&instance->pdev->dev, "SR-IOV: Starting heartbeat for scsi%d\n",
instance         2624 drivers/scsi/megaraid/megaraid_sas_base.c 	       instance->host->host_no);
instance         2626 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->adapter_type != MFI_SERIES) &&
instance         2627 drivers/scsi/megaraid/megaraid_sas_base.c 	    !instance->mask_interrupts)
instance         2628 drivers/scsi/megaraid/megaraid_sas_base.c 		retval = megasas_issue_blocked_cmd(instance, cmd,
instance         2631 drivers/scsi/megaraid/megaraid_sas_base.c 		retval = megasas_issue_polled(instance, cmd);
instance         2634 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_warn(&instance->pdev->dev, "SR-IOV: MR_DCMD_CTRL_SHARED_HOST"
instance         2637 drivers/scsi/megaraid/megaraid_sas_base.c 			"timed out" : "failed", instance->host->host_no);
instance         2642 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_return_cmd(instance, cmd);
instance         2650 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance =
instance         2651 drivers/scsi/megaraid/megaraid_sas_base.c 		from_timer(instance, t, sriov_heartbeat_timer);
instance         2653 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->hb_host_mem->HB.fwCounter !=
instance         2654 drivers/scsi/megaraid/megaraid_sas_base.c 	    instance->hb_host_mem->HB.driverCounter) {
instance         2655 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->hb_host_mem->HB.driverCounter =
instance         2656 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->hb_host_mem->HB.fwCounter;
instance         2657 drivers/scsi/megaraid/megaraid_sas_base.c 		mod_timer(&instance->sriov_heartbeat_timer,
instance         2660 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_warn(&instance->pdev->dev, "SR-IOV: Heartbeat never "
instance         2661 drivers/scsi/megaraid/megaraid_sas_base.c 		       "completed for scsi%d\n", instance->host->host_no);
instance         2662 drivers/scsi/megaraid/megaraid_sas_base.c 		schedule_work(&instance->work_init);
instance         2674 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_wait_for_outstanding(struct megasas_instance *instance)
instance         2684 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR) {
instance         2685 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "%s:%d HBA is killed.\n",
instance         2690 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) != MEGASAS_HBA_OPERATIONAL) {
instance         2693 drivers/scsi/megaraid/megaraid_sas_base.c 		spin_lock_irqsave(&instance->hba_lock, flags);
instance         2694 drivers/scsi/megaraid/megaraid_sas_base.c 		list_splice_init(&instance->internal_reset_pending_q,
instance         2696 drivers/scsi/megaraid/megaraid_sas_base.c 		spin_unlock_irqrestore(&instance->hba_lock, flags);
instance         2698 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_notice(&instance->pdev->dev, "HBA reset wait ...\n");
instance         2701 drivers/scsi/megaraid/megaraid_sas_base.c 			if (atomic_read(&instance->adprecovery) == MEGASAS_HBA_OPERATIONAL)
instance         2705 drivers/scsi/megaraid/megaraid_sas_base.c 		if (atomic_read(&instance->adprecovery) != MEGASAS_HBA_OPERATIONAL) {
instance         2706 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "reset: Stopping HBA.\n");
instance         2707 drivers/scsi/megaraid/megaraid_sas_base.c 			atomic_set(&instance->adprecovery, MEGASAS_HW_CRITICAL_ERROR);
instance         2718 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_notice(&instance->pdev->dev, "%d:%p reset [%02x]\n",
instance         2723 drivers/scsi/megaraid/megaraid_sas_base.c 				megasas_return_cmd(instance, reset_cmd);
instance         2725 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_notice(&instance->pdev->dev, "%p synch cmds"
instance         2730 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->instancet->fire_cmd(instance,
instance         2732 drivers/scsi/megaraid/megaraid_sas_base.c 						0, instance->reg_set);
instance         2734 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_notice(&instance->pdev->dev, "%p unexpected"
instance         2745 drivers/scsi/megaraid/megaraid_sas_base.c 		outstanding = atomic_read(&instance->fw_outstanding);
instance         2751 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "[%2d]waiting for %d "
instance         2757 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_complete_cmd_dpc((unsigned long)instance);
instance         2764 drivers/scsi/megaraid/megaraid_sas_base.c 	outstanding = atomic_read(&instance->fw_outstanding);
instance         2765 drivers/scsi/megaraid/megaraid_sas_base.c 	fw_state = instance->instancet->read_fw_status_reg(instance) & MFI_STATE_MASK;
instance         2770 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->disableOnlineCtrlReset)
instance         2773 drivers/scsi/megaraid/megaraid_sas_base.c 		if ((fw_state == MFI_STATE_FAULT) || atomic_read(&instance->fw_outstanding)) {
instance         2774 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev,
instance         2776 drivers/scsi/megaraid/megaraid_sas_base.c 				__func__, __LINE__, fw_state, atomic_read(&instance->fw_outstanding));
instance         2779 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_do_ocr(instance);
instance         2781 drivers/scsi/megaraid/megaraid_sas_base.c 			if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR) {
instance         2782 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_info(&instance->pdev->dev, "%s:%d OCR failed and HBA is killed.\n",
instance         2786 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "%s:%d waiting_for_outstanding: after issue OCR.\n",
instance         2792 drivers/scsi/megaraid/megaraid_sas_base.c 			outstanding = atomic_read(&instance->fw_outstanding);
instance         2794 drivers/scsi/megaraid/megaraid_sas_base.c 			fw_state = instance->instancet->read_fw_status_reg(instance) & MFI_STATE_MASK;
instance         2803 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_info(&instance->pdev->dev, "%s:%d no more pending commands remain after reset handling.\n",
instance         2810 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_info(&instance->pdev->dev, "%s:%d killing adapter scsi%d"
instance         2812 drivers/scsi/megaraid/megaraid_sas_base.c 		__func__, __LINE__, instance->host->host_no, instance->disableOnlineCtrlReset,
instance         2813 drivers/scsi/megaraid/megaraid_sas_base.c 		atomic_read(&instance->fw_outstanding));
instance         2814 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_dump_pending_frames(instance);
instance         2815 drivers/scsi/megaraid/megaraid_sas_base.c 	megaraid_sas_kill_hba(instance);
instance         2831 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         2833 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = (struct megasas_instance *)scmd->device->host->hostdata;
instance         2838 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR) {
instance         2839 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "cannot recover from previous reset failures\n");
instance         2843 drivers/scsi/megaraid/megaraid_sas_base.c 	ret_val = megasas_wait_for_outstanding(instance);
instance         2845 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_notice(&instance->pdev->dev, "reset successful\n");
instance         2847 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "failed to do reset\n");
instance         2862 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         2870 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = (struct megasas_instance *)scmd->device->host->hostdata;
instance         2871 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!(instance->flag & MEGASAS_FW_BUSY)) {
instance         2873 drivers/scsi/megaraid/megaraid_sas_base.c 		spin_lock_irqsave(instance->host->host_lock, flags);
instance         2875 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->host->can_queue = instance->throttlequeuedepth;
instance         2876 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->last_time = jiffies;
instance         2877 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->flag |= MEGASAS_FW_BUSY;
instance         2879 drivers/scsi/megaraid/megaraid_sas_base.c 		spin_unlock_irqrestore(instance->host->host_lock, flags);
instance         2937 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         2940 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = (struct megasas_instance *)scmd->device->host->hostdata;
instance         2961 drivers/scsi/megaraid/megaraid_sas_base.c 			     instance->max_chain_frame_sz, 8);
instance         2995 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         2997 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = (struct megasas_instance *)scmd->device->host->hostdata;
instance         3006 drivers/scsi/megaraid/megaraid_sas_base.c 		atomic_read(&instance->fw_outstanding));
instance         3010 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type == MFI_SERIES) {
instance         3029 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         3031 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = (struct megasas_instance *)scmd->device->host->hostdata;
instance         3033 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES)
instance         3051 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         3053 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = (struct megasas_instance *)scmd->device->host->hostdata;
instance         3055 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES)
instance         3124 drivers/scsi/megaraid/megaraid_sas_base.c megasas_service_aen(struct megasas_instance *instance, struct megasas_cmd *cmd)
instance         3131 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((!cmd->abort_aen) && (instance->unload == 0)) {
instance         3141 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->aen_cmd = NULL;
instance         3143 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_return_cmd(instance, cmd);
instance         3145 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->unload == 0) &&
instance         3146 drivers/scsi/megaraid/megaraid_sas_base.c 		((instance->issuepend_done == 1))) {
instance         3151 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev, "megasas_service_aen: out of memory\n");
instance         3153 drivers/scsi/megaraid/megaraid_sas_base.c 			ev->instance = instance;
instance         3154 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->ev = ev;
instance         3167 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance =
instance         3175 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_irqsave(&instance->crashdump_lock, flags);
instance         3176 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->fw_crash_buffer_offset = val;
instance         3177 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_unlock_irqrestore(&instance->crashdump_lock, flags);
instance         3186 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance =
instance         3195 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_irqsave(&instance->crashdump_lock, flags);
instance         3196 drivers/scsi/megaraid/megaraid_sas_base.c 	buff_offset = instance->fw_crash_buffer_offset;
instance         3197 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->crash_dump_buf &&
instance         3198 drivers/scsi/megaraid/megaraid_sas_base.c 		!((instance->fw_crash_state == AVAILABLE) ||
instance         3199 drivers/scsi/megaraid/megaraid_sas_base.c 		(instance->fw_crash_state == COPYING))) {
instance         3200 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         3202 drivers/scsi/megaraid/megaraid_sas_base.c 		spin_unlock_irqrestore(&instance->crashdump_lock, flags);
instance         3206 drivers/scsi/megaraid/megaraid_sas_base.c 	if (buff_offset > (instance->fw_crash_buffer_size * dmachunk)) {
instance         3207 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         3209 drivers/scsi/megaraid/megaraid_sas_base.c 		spin_unlock_irqrestore(&instance->crashdump_lock, flags);
instance         3213 drivers/scsi/megaraid/megaraid_sas_base.c 	size = (instance->fw_crash_buffer_size * dmachunk) - buff_offset;
instance         3218 drivers/scsi/megaraid/megaraid_sas_base.c 	src_addr = (unsigned long)instance->crash_buf[buff_offset / dmachunk] +
instance         3221 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_unlock_irqrestore(&instance->crashdump_lock, flags);
instance         3231 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance =
instance         3235 drivers/scsi/megaraid/megaraid_sas_base.c 		((instance->fw_crash_buffer_size) * 1024 * 1024)/PAGE_SIZE);
instance         3243 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance =
instance         3252 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "application updates invalid "
instance         3257 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->fw_crash_state = val;
instance         3260 drivers/scsi/megaraid/megaraid_sas_base.c 		spin_lock_irqsave(&instance->crashdump_lock, flags);
instance         3261 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_free_host_crash_buffer(instance);
instance         3262 drivers/scsi/megaraid/megaraid_sas_base.c 		spin_unlock_irqrestore(&instance->crashdump_lock, flags);
instance         3264 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "application failed to "
instance         3267 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "Firmware crash dump "
instance         3278 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance =
instance         3281 drivers/scsi/megaraid/megaraid_sas_base.c 	return snprintf(buf, PAGE_SIZE, "%d\n", instance->fw_crash_state);
instance         3296 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata;
instance         3298 drivers/scsi/megaraid/megaraid_sas_base.c 	return snprintf(buf, PAGE_SIZE, "%d\n", atomic_read(&instance->ldio_outstanding));
instance         3306 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata;
instance         3308 drivers/scsi/megaraid/megaraid_sas_base.c 	return snprintf(buf, PAGE_SIZE, "%d\n", atomic_read(&instance->fw_outstanding));
instance         3316 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata;
instance         3318 drivers/scsi/megaraid/megaraid_sas_base.c 	return snprintf(buf, PAGE_SIZE, "%d\n", instance->enable_sdev_max_qd);
instance         3326 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance = (struct megasas_instance *)shost->hostdata;
instance         3337 drivers/scsi/megaraid/megaraid_sas_base.c 	mutex_lock(&instance->reset_mutex);
instance         3339 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->enable_sdev_max_qd = true;
instance         3341 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->enable_sdev_max_qd = false;
instance         3344 drivers/scsi/megaraid/megaraid_sas_base.c 		ret_target_prop = megasas_get_target_prop(instance, sdev);
instance         3348 drivers/scsi/megaraid/megaraid_sas_base.c 	mutex_unlock(&instance->reset_mutex);
instance         3358 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance =
instance         3361 drivers/scsi/megaraid/megaraid_sas_base.c 	return megasas_dump_sys_regs(instance->reg_set, buf);
instance         3369 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance =
instance         3373 drivers/scsi/megaraid/megaraid_sas_base.c 			(unsigned long)instance->map_id);
instance         3432 drivers/scsi/megaraid/megaraid_sas_base.c megasas_complete_int_cmd(struct megasas_instance *instance,
instance         3436 drivers/scsi/megaraid/megaraid_sas_base.c 	wake_up(&instance->int_cmd_wait_q);
instance         3449 drivers/scsi/megaraid/megaraid_sas_base.c megasas_complete_abort(struct megasas_instance *instance,
instance         3455 drivers/scsi/megaraid/megaraid_sas_base.c 		wake_up(&instance->abort_cmd_wait_q);
instance         3470 drivers/scsi/megaraid/megaraid_sas_base.c megasas_complete_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd,
instance         3476 drivers/scsi/megaraid/megaraid_sas_base.c 	struct fusion_context *fusion = instance->ctrl_context;
instance         3491 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_warn(&instance->pdev->dev, "MFI_CMD_INVALID command "
instance         3493 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_warn(&instance->pdev->dev, "If you have a controller "
instance         3506 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_complete_int_cmd(instance, cmd);
instance         3521 drivers/scsi/megaraid/megaraid_sas_base.c 			atomic_dec(&instance->fw_outstanding);
instance         3525 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_return_cmd(instance, cmd);
instance         3563 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_printk(KERN_DEBUG, &instance->pdev->dev, "MFI FW status %#x\n",
instance         3569 drivers/scsi/megaraid/megaraid_sas_base.c 		atomic_dec(&instance->fw_outstanding);
instance         3573 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         3581 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_complete_int_cmd(instance, cmd);
instance         3590 drivers/scsi/megaraid/megaraid_sas_base.c 			spin_lock_irqsave(instance->host->host_lock, flags);
instance         3592 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->map_update_cmd = NULL;
instance         3595 drivers/scsi/megaraid/megaraid_sas_base.c 					dev_warn(&instance->pdev->dev, "map syncfailed, status = 0x%x\n",
instance         3598 drivers/scsi/megaraid/megaraid_sas_base.c 					megasas_return_cmd(instance, cmd);
instance         3600 drivers/scsi/megaraid/megaraid_sas_base.c 						instance->host->host_lock,
instance         3606 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_return_cmd(instance, cmd);
instance         3614 drivers/scsi/megaraid/megaraid_sas_base.c 			    (MR_ValidateMapInfo(instance, (instance->map_id + 1)))) {
instance         3615 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->map_id++;
instance         3621 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_sync_map_info(instance);
instance         3622 drivers/scsi/megaraid/megaraid_sas_base.c 			spin_unlock_irqrestore(instance->host->host_lock,
instance         3637 drivers/scsi/megaraid/megaraid_sas_base.c 			spin_lock_irqsave(instance->host->host_lock, flags);
instance         3639 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->jbod_seq_cmd = NULL;
instance         3640 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_return_cmd(instance, cmd);
instance         3643 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->pd_seq_map_id++;
instance         3645 drivers/scsi/megaraid/megaraid_sas_base.c 				if (megasas_sync_pd_seq_num(instance, true))
instance         3646 drivers/scsi/megaraid/megaraid_sas_base.c 					instance->use_seqnum_jbod_fp = false;
instance         3648 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->use_seqnum_jbod_fp = false;
instance         3650 drivers/scsi/megaraid/megaraid_sas_base.c 			spin_unlock_irqrestore(instance->host->host_lock, flags);
instance         3658 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_service_aen(instance, cmd);
instance         3660 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_complete_int_cmd(instance, cmd);
instance         3668 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_complete_abort(instance, cmd);
instance         3672 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "Unknown command completed! [0x%X]\n",
instance         3674 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_complete_int_cmd(instance, cmd);
instance         3685 drivers/scsi/megaraid/megaraid_sas_base.c megasas_issue_pending_cmds_again(struct megasas_instance *instance)
instance         3694 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_irqsave(&instance->hba_lock, flags);
instance         3695 drivers/scsi/megaraid/megaraid_sas_base.c 	list_splice_init(&instance->internal_reset_pending_q, &clist_local);
instance         3696 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_unlock_irqrestore(&instance->hba_lock, flags);
instance         3704 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "command %p, %p:%d"
instance         3711 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_notice(&instance->pdev->dev, "cmd %p, %p:%d"
instance         3715 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->instancet->disable_intr(instance);
instance         3716 drivers/scsi/megaraid/megaraid_sas_base.c 				atomic_set(&instance->fw_reset_no_pci_access, 1);
instance         3717 drivers/scsi/megaraid/megaraid_sas_base.c 				megaraid_sas_kill_hba(instance);
instance         3724 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_notice(&instance->pdev->dev, "unexpected"
instance         3727 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "%p synchronous cmd"
instance         3731 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->instancet->fire_cmd(instance,
instance         3733 drivers/scsi/megaraid/megaraid_sas_base.c 							0, instance->reg_set);
instance         3735 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "%p scsi cmd [%02x]"
instance         3739 drivers/scsi/megaraid/megaraid_sas_base.c 			atomic_inc(&instance->fw_outstanding);
instance         3740 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->instancet->fire_cmd(instance,
instance         3742 drivers/scsi/megaraid/megaraid_sas_base.c 					cmd->frame_count-1, instance->reg_set);
instance         3744 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "%p unexpected cmd on the"
instance         3750 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->aen_cmd) {
instance         3751 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_notice(&instance->pdev->dev, "aen_cmd in def process\n");
instance         3752 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, instance->aen_cmd);
instance         3754 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->aen_cmd = NULL;
instance         3760 drivers/scsi/megaraid/megaraid_sas_base.c 	seq_num = instance->last_seq_num;
instance         3765 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_register_aen(instance, seq_num, class_locale.word);
instance         3778 drivers/scsi/megaraid/megaraid_sas_base.c megasas_internal_reset_defer_cmds(struct megasas_instance *instance)
instance         3782 drivers/scsi/megaraid/megaraid_sas_base.c 	u16 max_cmd = instance->max_fw_cmds;
instance         3787 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_irqsave(&instance->mfi_pool_lock, flags);
instance         3789 drivers/scsi/megaraid/megaraid_sas_base.c 		cmd = instance->cmd_list[i];
instance         3791 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "moving cmd[%d]:%p:%d:%p"
instance         3796 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_notice(&instance->pdev->dev, "ERROR while"
instance         3805 drivers/scsi/megaraid/megaraid_sas_base.c 				&instance->internal_reset_pending_q);
instance         3808 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_unlock_irqrestore(&instance->mfi_pool_lock, flags);
instance         3815 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance =
instance         3820 drivers/scsi/megaraid/megaraid_sas_base.c     if (atomic_read(&instance->adprecovery) != MEGASAS_ADPRESET_SM_INFAULT) {
instance         3821 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_notice(&instance->pdev->dev, "error, recovery st %x\n",
instance         3822 drivers/scsi/megaraid/megaraid_sas_base.c 				atomic_read(&instance->adprecovery));
instance         3826 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_ADPRESET_SM_INFAULT) {
instance         3827 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_notice(&instance->pdev->dev, "FW detected to be in fault"
instance         3830 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->instancet->disable_intr(instance);
instance         3831 drivers/scsi/megaraid/megaraid_sas_base.c 		atomic_set(&instance->fw_outstanding, 0);
instance         3833 drivers/scsi/megaraid/megaraid_sas_base.c 		atomic_set(&instance->fw_reset_no_pci_access, 1);
instance         3834 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->instancet->adp_reset(instance, instance->reg_set);
instance         3835 drivers/scsi/megaraid/megaraid_sas_base.c 		atomic_set(&instance->fw_reset_no_pci_access, 0);
instance         3837 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_notice(&instance->pdev->dev, "FW restarted successfully,"
instance         3840 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_notice(&instance->pdev->dev, "HBA recovery state machine,"
instance         3848 drivers/scsi/megaraid/megaraid_sas_base.c 		if (megasas_transition_to_ready(instance, 1)) {
instance         3849 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "adapter not ready\n");
instance         3851 drivers/scsi/megaraid/megaraid_sas_base.c 			atomic_set(&instance->fw_reset_no_pci_access, 1);
instance         3852 drivers/scsi/megaraid/megaraid_sas_base.c 			megaraid_sas_kill_hba(instance);
instance         3856 drivers/scsi/megaraid/megaraid_sas_base.c 		if ((instance->pdev->device == PCI_DEVICE_ID_LSI_SAS1064R) ||
instance         3857 drivers/scsi/megaraid/megaraid_sas_base.c 			(instance->pdev->device == PCI_DEVICE_ID_DELL_PERC5) ||
instance         3858 drivers/scsi/megaraid/megaraid_sas_base.c 			(instance->pdev->device == PCI_DEVICE_ID_LSI_VERDE_ZCR)
instance         3860 drivers/scsi/megaraid/megaraid_sas_base.c 			*instance->consumer = *instance->producer;
instance         3862 drivers/scsi/megaraid/megaraid_sas_base.c 			*instance->consumer = 0;
instance         3863 drivers/scsi/megaraid/megaraid_sas_base.c 			*instance->producer = 0;
instance         3866 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_issue_init_mfi(instance);
instance         3868 drivers/scsi/megaraid/megaraid_sas_base.c 		spin_lock_irqsave(&instance->hba_lock, flags);
instance         3869 drivers/scsi/megaraid/megaraid_sas_base.c 		atomic_set(&instance->adprecovery, MEGASAS_HBA_OPERATIONAL);
instance         3870 drivers/scsi/megaraid/megaraid_sas_base.c 		spin_unlock_irqrestore(&instance->hba_lock, flags);
instance         3871 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->instancet->enable_intr(instance);
instance         3873 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_issue_pending_cmds_again(instance);
instance         3874 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->issuepend_done = 1;
instance         3887 drivers/scsi/megaraid/megaraid_sas_base.c megasas_deplete_reply_queue(struct megasas_instance *instance,
instance         3893 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((mfiStatus = instance->instancet->check_reset(instance,
instance         3894 drivers/scsi/megaraid/megaraid_sas_base.c 					instance->reg_set)) == 1) {
instance         3898 drivers/scsi/megaraid/megaraid_sas_base.c 	mfiStatus = instance->instancet->clear_intr(instance);
instance         3901 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!instance->msix_vectors)
instance         3905 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->mfiStatus = mfiStatus;
instance         3908 drivers/scsi/megaraid/megaraid_sas_base.c 		fw_state = instance->instancet->read_fw_status_reg(
instance         3909 drivers/scsi/megaraid/megaraid_sas_base.c 				instance) & MFI_STATE_MASK;
instance         3912 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "fw state:%x\n",
instance         3917 drivers/scsi/megaraid/megaraid_sas_base.c 				(instance->disableOnlineCtrlReset == 0)) {
instance         3918 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "wait adp restart\n");
instance         3920 drivers/scsi/megaraid/megaraid_sas_base.c 			if ((instance->pdev->device ==
instance         3922 drivers/scsi/megaraid/megaraid_sas_base.c 				(instance->pdev->device ==
instance         3924 drivers/scsi/megaraid/megaraid_sas_base.c 				(instance->pdev->device ==
instance         3927 drivers/scsi/megaraid/megaraid_sas_base.c 				*instance->consumer =
instance         3932 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->instancet->disable_intr(instance);
instance         3933 drivers/scsi/megaraid/megaraid_sas_base.c 			atomic_set(&instance->adprecovery, MEGASAS_ADPRESET_SM_INFAULT);
instance         3934 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->issuepend_done = 0;
instance         3936 drivers/scsi/megaraid/megaraid_sas_base.c 			atomic_set(&instance->fw_outstanding, 0);
instance         3937 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_internal_reset_defer_cmds(instance);
instance         3939 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "fwState=%x, stage:%d\n",
instance         3940 drivers/scsi/megaraid/megaraid_sas_base.c 					fw_state, atomic_read(&instance->adprecovery));
instance         3942 drivers/scsi/megaraid/megaraid_sas_base.c 			schedule_work(&instance->work_init);
instance         3946 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "fwstate:%x, dis_OCR=%x\n",
instance         3947 drivers/scsi/megaraid/megaraid_sas_base.c 				fw_state, instance->disableOnlineCtrlReset);
instance         3951 drivers/scsi/megaraid/megaraid_sas_base.c 	tasklet_schedule(&instance->isr_tasklet);
instance         3960 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance = irq_context->instance;
instance         3964 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->fw_reset_no_pci_access))
instance         3967 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_irqsave(&instance->hba_lock, flags);
instance         3968 drivers/scsi/megaraid/megaraid_sas_base.c 	rc = megasas_deplete_reply_queue(instance, DID_OK);
instance         3969 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_unlock_irqrestore(&instance->hba_lock, flags);
instance         3984 drivers/scsi/megaraid/megaraid_sas_base.c megasas_transition_to_ready(struct megasas_instance *instance, int ocr)
instance         3991 drivers/scsi/megaraid/megaraid_sas_base.c 	abs_state = instance->instancet->read_fw_status_reg(instance);
instance         3995 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "Waiting for FW to come to ready"
instance         4003 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_printk(KERN_ERR, &instance->pdev->dev,
instance         4011 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_printk(KERN_DEBUG, &instance->pdev->dev, "System Register set:\n");
instance         4012 drivers/scsi/megaraid/megaraid_sas_base.c 				megasas_dump_reg_set(instance->reg_set);
instance         4020 drivers/scsi/megaraid/megaraid_sas_base.c 			if ((instance->pdev->device ==
instance         4022 drivers/scsi/megaraid/megaraid_sas_base.c 				(instance->pdev->device ==
instance         4024 drivers/scsi/megaraid/megaraid_sas_base.c 				(instance->adapter_type != MFI_SERIES))
instance         4027 drivers/scsi/megaraid/megaraid_sas_base.c 				  &instance->reg_set->doorbell);
instance         4031 drivers/scsi/megaraid/megaraid_sas_base.c 					&instance->reg_set->inbound_doorbell);
instance         4037 drivers/scsi/megaraid/megaraid_sas_base.c 			if ((instance->pdev->device ==
instance         4039 drivers/scsi/megaraid/megaraid_sas_base.c 				(instance->pdev->device ==
instance         4041 drivers/scsi/megaraid/megaraid_sas_base.c 				(instance->adapter_type != MFI_SERIES))
instance         4043 drivers/scsi/megaraid/megaraid_sas_base.c 				       &instance->reg_set->doorbell);
instance         4046 drivers/scsi/megaraid/megaraid_sas_base.c 					&instance->reg_set->inbound_doorbell);
instance         4055 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->instancet->disable_intr(instance);
instance         4056 drivers/scsi/megaraid/megaraid_sas_base.c 			if ((instance->pdev->device ==
instance         4058 drivers/scsi/megaraid/megaraid_sas_base.c 				(instance->pdev->device ==
instance         4060 drivers/scsi/megaraid/megaraid_sas_base.c 				(instance->adapter_type != MFI_SERIES)) {
instance         4062 drivers/scsi/megaraid/megaraid_sas_base.c 					&instance->reg_set->doorbell);
instance         4064 drivers/scsi/megaraid/megaraid_sas_base.c 				if (instance->adapter_type != MFI_SERIES) {
instance         4067 drivers/scsi/megaraid/megaraid_sas_base.c 							    instance,
instance         4068 drivers/scsi/megaraid/megaraid_sas_base.c 							    &instance->
instance         4078 drivers/scsi/megaraid/megaraid_sas_base.c 					&instance->reg_set->inbound_doorbell);
instance         4111 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_printk(KERN_DEBUG, &instance->pdev->dev, "Unknown state 0x%x\n",
instance         4113 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_printk(KERN_DEBUG, &instance->pdev->dev, "System Register set:\n");
instance         4114 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_dump_reg_set(instance->reg_set);
instance         4122 drivers/scsi/megaraid/megaraid_sas_base.c 			curr_abs_state = instance->instancet->
instance         4123 drivers/scsi/megaraid/megaraid_sas_base.c 				read_fw_status_reg(instance);
instance         4135 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_printk(KERN_DEBUG, &instance->pdev->dev, "FW state [%d] hasn't changed "
instance         4137 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_printk(KERN_DEBUG, &instance->pdev->dev, "System Register set:\n");
instance         4138 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_dump_reg_set(instance->reg_set);
instance         4145 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_info(&instance->pdev->dev, "FW now in Ready state\n");
instance         4154 drivers/scsi/megaraid/megaraid_sas_base.c static void megasas_teardown_frame_pool(struct megasas_instance *instance)
instance         4157 drivers/scsi/megaraid/megaraid_sas_base.c 	u16 max_cmd = instance->max_mfi_cmds;
instance         4160 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->frame_dma_pool)
instance         4168 drivers/scsi/megaraid/megaraid_sas_base.c 		cmd = instance->cmd_list[i];
instance         4171 drivers/scsi/megaraid/megaraid_sas_base.c 			dma_pool_free(instance->frame_dma_pool, cmd->frame,
instance         4175 drivers/scsi/megaraid/megaraid_sas_base.c 			dma_pool_free(instance->sense_dma_pool, cmd->sense,
instance         4182 drivers/scsi/megaraid/megaraid_sas_base.c 	dma_pool_destroy(instance->frame_dma_pool);
instance         4183 drivers/scsi/megaraid/megaraid_sas_base.c 	dma_pool_destroy(instance->sense_dma_pool);
instance         4185 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->frame_dma_pool = NULL;
instance         4186 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->sense_dma_pool = NULL;
instance         4198 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_create_frame_pool(struct megasas_instance *instance)
instance         4205 drivers/scsi/megaraid/megaraid_sas_base.c 	max_cmd = instance->max_mfi_cmds;
instance         4218 drivers/scsi/megaraid/megaraid_sas_base.c 	frame_count = (instance->adapter_type == MFI_SERIES) ?
instance         4220 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->mfi_frame_size = MEGAMFI_FRAME_SIZE * frame_count;
instance         4224 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->frame_dma_pool = dma_pool_create("megasas frame pool",
instance         4225 drivers/scsi/megaraid/megaraid_sas_base.c 					&instance->pdev->dev,
instance         4226 drivers/scsi/megaraid/megaraid_sas_base.c 					instance->mfi_frame_size, 256, 0);
instance         4228 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->frame_dma_pool) {
instance         4229 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "failed to setup frame pool\n");
instance         4233 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->sense_dma_pool = dma_pool_create("megasas sense pool",
instance         4234 drivers/scsi/megaraid/megaraid_sas_base.c 						   &instance->pdev->dev, 128,
instance         4237 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->sense_dma_pool) {
instance         4238 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "failed to setup sense pool\n");
instance         4240 drivers/scsi/megaraid/megaraid_sas_base.c 		dma_pool_destroy(instance->frame_dma_pool);
instance         4241 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->frame_dma_pool = NULL;
instance         4253 drivers/scsi/megaraid/megaraid_sas_base.c 		cmd = instance->cmd_list[i];
instance         4255 drivers/scsi/megaraid/megaraid_sas_base.c 		cmd->frame = dma_pool_zalloc(instance->frame_dma_pool,
instance         4258 drivers/scsi/megaraid/megaraid_sas_base.c 		cmd->sense = dma_pool_alloc(instance->sense_dma_pool,
instance         4266 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_printk(KERN_DEBUG, &instance->pdev->dev, "dma_pool_alloc failed\n");
instance         4267 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_teardown_frame_pool(instance);
instance         4273 drivers/scsi/megaraid/megaraid_sas_base.c 		if ((instance->adapter_type == MFI_SERIES) && reset_devices)
instance         4284 drivers/scsi/megaraid/megaraid_sas_base.c void megasas_free_cmds(struct megasas_instance *instance)
instance         4289 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_teardown_frame_pool(instance);
instance         4292 drivers/scsi/megaraid/megaraid_sas_base.c 	for (i = 0; i < instance->max_mfi_cmds; i++)
instance         4294 drivers/scsi/megaraid/megaraid_sas_base.c 		kfree(instance->cmd_list[i]);
instance         4297 drivers/scsi/megaraid/megaraid_sas_base.c 	kfree(instance->cmd_list);
instance         4298 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->cmd_list = NULL;
instance         4300 drivers/scsi/megaraid/megaraid_sas_base.c 	INIT_LIST_HEAD(&instance->cmd_pool);
instance         4321 drivers/scsi/megaraid/megaraid_sas_base.c int megasas_alloc_cmds(struct megasas_instance *instance)
instance         4328 drivers/scsi/megaraid/megaraid_sas_base.c 	max_cmd = instance->max_mfi_cmds;
instance         4335 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->cmd_list = kcalloc(max_cmd, sizeof(struct megasas_cmd*), GFP_KERNEL);
instance         4337 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->cmd_list) {
instance         4338 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "out of memory\n");
instance         4342 drivers/scsi/megaraid/megaraid_sas_base.c 	memset(instance->cmd_list, 0, sizeof(struct megasas_cmd *) *max_cmd);
instance         4345 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->cmd_list[i] = kmalloc(sizeof(struct megasas_cmd),
instance         4348 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!instance->cmd_list[i]) {
instance         4351 drivers/scsi/megaraid/megaraid_sas_base.c 				kfree(instance->cmd_list[j]);
instance         4353 drivers/scsi/megaraid/megaraid_sas_base.c 			kfree(instance->cmd_list);
instance         4354 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->cmd_list = NULL;
instance         4361 drivers/scsi/megaraid/megaraid_sas_base.c 		cmd = instance->cmd_list[i];
instance         4365 drivers/scsi/megaraid/megaraid_sas_base.c 		cmd->instance = instance;
instance         4367 drivers/scsi/megaraid/megaraid_sas_base.c 		list_add_tail(&cmd->list, &instance->cmd_pool);
instance         4373 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_create_frame_pool(instance)) {
instance         4374 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "Error creating frame DMA pool\n");
instance         4375 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_free_cmds(instance);
instance         4390 drivers/scsi/megaraid/megaraid_sas_base.c dcmd_timeout_ocr_possible(struct megasas_instance *instance) {
instance         4392 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type == MFI_SERIES)
instance         4394 drivers/scsi/megaraid/megaraid_sas_base.c 	else if (instance->unload ||
instance         4396 drivers/scsi/megaraid/megaraid_sas_base.c 				 &instance->reset_flags))
instance         4403 drivers/scsi/megaraid/megaraid_sas_base.c megasas_get_pd_info(struct megasas_instance *instance, struct scsi_device *sdev)
instance         4413 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         4416 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "Failed to get cmd %s\n", __func__);
instance         4422 drivers/scsi/megaraid/megaraid_sas_base.c 	memset(instance->pd_info, 0, sizeof(*instance->pd_info));
instance         4435 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_dma_settings(instance, dcmd, instance->pd_info_h,
instance         4438 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->adapter_type != MFI_SERIES) &&
instance         4439 drivers/scsi/megaraid/megaraid_sas_base.c 	    !instance->mask_interrupts)
instance         4440 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_blocked_cmd(instance, cmd, MFI_IO_TIMEOUT_SECS);
instance         4442 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_polled(instance, cmd);
instance         4447 drivers/scsi/megaraid/megaraid_sas_base.c 		le16_to_cpus((u16 *)&instance->pd_info->state.ddf.pdType);
instance         4449 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->pd_info->state.ddf.pdType.intf;
instance         4454 drivers/scsi/megaraid/megaraid_sas_base.c 		switch (dcmd_timeout_ocr_possible(instance)) {
instance         4457 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_unlock(&instance->reset_mutex);
instance         4458 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_reset_fusion(instance->host,
instance         4460 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_lock(&instance->reset_mutex);
instance         4463 drivers/scsi/megaraid/megaraid_sas_base.c 			megaraid_sas_kill_hba(instance);
instance         4466 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "Ignore DCMD timeout: %s %d\n",
instance         4475 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         4489 drivers/scsi/megaraid/megaraid_sas_base.c megasas_get_pd_list(struct megasas_instance *instance)
instance         4497 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->pd_list_not_supported) {
instance         4498 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "MR_DCMD_PD_LIST_QUERY "
instance         4503 drivers/scsi/megaraid/megaraid_sas_base.c 	ci = instance->pd_list_buf;
instance         4505 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         4508 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "(get_pd_list): Failed to get cmd\n");
instance         4528 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_dma_settings(instance, dcmd, instance->pd_list_buf_h,
instance         4531 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->adapter_type != MFI_SERIES) &&
instance         4532 drivers/scsi/megaraid/megaraid_sas_base.c 	    !instance->mask_interrupts)
instance         4533 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_blocked_cmd(instance, cmd,
instance         4536 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_polled(instance, cmd);
instance         4540 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "MR_DCMD_PD_LIST_QUERY "
instance         4543 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->adapter_type != MFI_SERIES)
instance         4544 drivers/scsi/megaraid/megaraid_sas_base.c 			megaraid_sas_kill_hba(instance);
instance         4546 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->pd_list_not_supported = 1;
instance         4550 drivers/scsi/megaraid/megaraid_sas_base.c 		switch (dcmd_timeout_ocr_possible(instance)) {
instance         4558 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_unlock(&instance->reset_mutex);
instance         4559 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_reset_fusion(instance->host,
instance         4561 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_lock(&instance->reset_mutex);
instance         4564 drivers/scsi/megaraid/megaraid_sas_base.c 			megaraid_sas_kill_hba(instance);
instance         4567 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "Ignore DCMD timeout: %s %d \n",
instance         4577 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "%s, sysPD count: 0x%x\n",
instance         4584 drivers/scsi/megaraid/megaraid_sas_base.c 		memset(instance->local_pd_list, 0,
instance         4588 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->local_pd_list[le16_to_cpu(pd_addr->deviceId)].tid	=
instance         4590 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->local_pd_list[le16_to_cpu(pd_addr->deviceId)].driveType	=
instance         4592 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->local_pd_list[le16_to_cpu(pd_addr->deviceId)].driveState	=
instance         4595 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_info(&instance->pdev->dev,
instance         4602 drivers/scsi/megaraid/megaraid_sas_base.c 		memcpy(instance->pd_list, instance->local_pd_list,
instance         4603 drivers/scsi/megaraid/megaraid_sas_base.c 			sizeof(instance->pd_list));
instance         4609 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         4624 drivers/scsi/megaraid/megaraid_sas_base.c megasas_get_ld_list(struct megasas_instance *instance)
instance         4633 drivers/scsi/megaraid/megaraid_sas_base.c 	ci = instance->ld_list_buf;
instance         4634 drivers/scsi/megaraid/megaraid_sas_base.c 	ci_h = instance->ld_list_buf_h;
instance         4636 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         4639 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "megasas_get_ld_list: Failed to get cmd\n");
instance         4648 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->supportmax256vd)
instance         4659 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_dma_settings(instance, dcmd, ci_h,
instance         4662 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->adapter_type != MFI_SERIES) &&
instance         4663 drivers/scsi/megaraid/megaraid_sas_base.c 	    !instance->mask_interrupts)
instance         4664 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_blocked_cmd(instance, cmd,
instance         4667 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_polled(instance, cmd);
instance         4673 drivers/scsi/megaraid/megaraid_sas_base.c 		megaraid_sas_kill_hba(instance);
instance         4677 drivers/scsi/megaraid/megaraid_sas_base.c 		switch (dcmd_timeout_ocr_possible(instance)) {
instance         4685 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_unlock(&instance->reset_mutex);
instance         4686 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_reset_fusion(instance->host,
instance         4688 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_lock(&instance->reset_mutex);
instance         4691 drivers/scsi/megaraid/megaraid_sas_base.c 			megaraid_sas_kill_hba(instance);
instance         4694 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "Ignore DCMD timeout: %s %d\n",
instance         4703 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "%s, LD count: 0x%x\n",
instance         4706 drivers/scsi/megaraid/megaraid_sas_base.c 		if (ld_count > instance->fw_supported_vd_count)
instance         4709 drivers/scsi/megaraid/megaraid_sas_base.c 		memset(instance->ld_ids, 0xff, MAX_LOGICAL_DRIVES_EXT);
instance         4714 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->ld_ids[ids] = ci->ldList[ld_index].ref.targetId;
instance         4716 drivers/scsi/megaraid/megaraid_sas_base.c 					dev_info(&instance->pdev->dev,
instance         4726 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         4741 drivers/scsi/megaraid/megaraid_sas_base.c megasas_ld_list_query(struct megasas_instance *instance, u8 query_type)
instance         4750 drivers/scsi/megaraid/megaraid_sas_base.c 	ci = instance->ld_targetid_list_buf;
instance         4751 drivers/scsi/megaraid/megaraid_sas_base.c 	ci_h = instance->ld_targetid_list_buf_h;
instance         4753 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         4756 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_warn(&instance->pdev->dev,
instance         4767 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->supportmax256vd)
instance         4779 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_dma_settings(instance, dcmd, ci_h,
instance         4782 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->adapter_type != MFI_SERIES) &&
instance         4783 drivers/scsi/megaraid/megaraid_sas_base.c 	    !instance->mask_interrupts)
instance         4784 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_blocked_cmd(instance, cmd, MFI_IO_TIMEOUT_SECS);
instance         4786 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_polled(instance, cmd);
instance         4790 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev,
instance         4793 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_get_ld_list(instance);
instance         4796 drivers/scsi/megaraid/megaraid_sas_base.c 		switch (dcmd_timeout_ocr_possible(instance)) {
instance         4804 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_unlock(&instance->reset_mutex);
instance         4805 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_reset_fusion(instance->host,
instance         4807 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_lock(&instance->reset_mutex);
instance         4810 drivers/scsi/megaraid/megaraid_sas_base.c 			megaraid_sas_kill_hba(instance);
instance         4813 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "Ignore DCMD timeout: %s %d\n",
instance         4823 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "%s, LD count: 0x%x\n",
instance         4826 drivers/scsi/megaraid/megaraid_sas_base.c 		if ((tgtid_count > (instance->fw_supported_vd_count)))
instance         4829 drivers/scsi/megaraid/megaraid_sas_base.c 		memset(instance->ld_ids, 0xff, MEGASAS_MAX_LD_IDS);
instance         4832 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->ld_ids[ids] = ci->targetId[ld_index];
instance         4834 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_info(&instance->pdev->dev, "LD%d: targetID: 0x%03x\n",
instance         4842 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         4861 drivers/scsi/megaraid/megaraid_sas_base.c megasas_host_device_list_query(struct megasas_instance *instance,
instance         4871 drivers/scsi/megaraid/megaraid_sas_base.c 	ci = instance->host_device_list_buf;
instance         4872 drivers/scsi/megaraid/megaraid_sas_base.c 	ci_h = instance->host_device_list_buf_h;
instance         4874 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         4877 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_warn(&instance->pdev->dev,
instance         4898 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_dma_settings(instance, dcmd, ci_h, HOST_DEVICE_LIST_SZ);
instance         4900 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->mask_interrupts) {
instance         4901 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_blocked_cmd(instance, cmd,
instance         4904 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_polled(instance, cmd);
instance         4919 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "%s, Device count: 0x%x\n",
instance         4922 drivers/scsi/megaraid/megaraid_sas_base.c 		memset(instance->local_pd_list, 0,
instance         4924 drivers/scsi/megaraid/megaraid_sas_base.c 		memset(instance->ld_ids, 0xff, MAX_LOGICAL_DRIVES_EXT);
instance         4928 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->local_pd_list[target_id].tid = target_id;
instance         4929 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->local_pd_list[target_id].driveType =
instance         4931 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->local_pd_list[target_id].driveState =
instance         4934 drivers/scsi/megaraid/megaraid_sas_base.c 					dev_info(&instance->pdev->dev,
instance         4938 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->ld_ids[target_id] = target_id;
instance         4940 drivers/scsi/megaraid/megaraid_sas_base.c 					dev_info(&instance->pdev->dev,
instance         4946 drivers/scsi/megaraid/megaraid_sas_base.c 		memcpy(instance->pd_list, instance->local_pd_list,
instance         4947 drivers/scsi/megaraid/megaraid_sas_base.c 		       sizeof(instance->pd_list));
instance         4951 drivers/scsi/megaraid/megaraid_sas_base.c 		switch (dcmd_timeout_ocr_possible(instance)) {
instance         4954 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_unlock(&instance->reset_mutex);
instance         4955 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_reset_fusion(instance->host,
instance         4957 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_lock(&instance->reset_mutex);
instance         4960 drivers/scsi/megaraid/megaraid_sas_base.c 			megaraid_sas_kill_hba(instance);
instance         4963 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "Ignore DCMD timeout: %s %d\n",
instance         4969 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         4976 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         4985 drivers/scsi/megaraid/megaraid_sas_base.c static void megasas_update_ext_vd_details(struct megasas_instance *instance)
instance         4990 drivers/scsi/megaraid/megaraid_sas_base.c 	fusion = instance->ctrl_context;
instance         4995 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->supportmax256vd =
instance         4996 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->ctrl_info_buf->adapterOperations3.supportMaxExtLDs;
instance         4998 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->ctrl_info_buf->max_lds > 64)
instance         4999 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->supportmax256vd = 1;
instance         5001 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->drv_supported_vd_count = MEGASAS_MAX_LD_CHANNELS
instance         5003 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->drv_supported_pd_count = MEGASAS_MAX_PD_CHANNELS
instance         5005 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->supportmax256vd) {
instance         5006 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->fw_supported_vd_count = MAX_LOGICAL_DRIVES_EXT;
instance         5007 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->fw_supported_pd_count = MAX_PHYSICAL_DEVICES;
instance         5009 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->fw_supported_vd_count = MAX_LOGICAL_DRIVES;
instance         5010 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->fw_supported_pd_count = MAX_PHYSICAL_DEVICES;
instance         5013 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_info(&instance->pdev->dev,
instance         5015 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->ctrl_info_buf->adapterOperations3.supportMaxExtLDs ? 1 : 0,
instance         5016 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->ctrl_info_buf->max_lds);
instance         5018 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->max_raid_mapsize) {
instance         5019 drivers/scsi/megaraid/megaraid_sas_base.c 		ventura_map_sz = instance->max_raid_mapsize *
instance         5026 drivers/scsi/megaraid/megaraid_sas_base.c 					(instance->fw_supported_vd_count - 1));
instance         5032 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->supportmax256vd)
instance         5048 drivers/scsi/megaraid/megaraid_sas_base.c void megasas_get_snapdump_properties(struct megasas_instance *instance)
instance         5056 drivers/scsi/megaraid/megaraid_sas_base.c 	ci = instance->snapdump_prop;
instance         5057 drivers/scsi/megaraid/megaraid_sas_base.c 	ci_h = instance->snapdump_prop_h;
instance         5062 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         5065 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_dbg(&instance->pdev->dev, "Failed to get a free cmd\n");
instance         5083 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_dma_settings(instance, dcmd, ci_h,
instance         5086 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->mask_interrupts) {
instance         5087 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_blocked_cmd(instance, cmd,
instance         5090 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_polled(instance, cmd);
instance         5096 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->snapdump_wait_time =
instance         5102 drivers/scsi/megaraid/megaraid_sas_base.c 		switch (dcmd_timeout_ocr_possible(instance)) {
instance         5105 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_unlock(&instance->reset_mutex);
instance         5106 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_reset_fusion(instance->host,
instance         5108 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_lock(&instance->reset_mutex);
instance         5111 drivers/scsi/megaraid/megaraid_sas_base.c 			megaraid_sas_kill_hba(instance);
instance         5114 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "Ignore DCMD timeout: %s %d\n",
instance         5121 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         5133 drivers/scsi/megaraid/megaraid_sas_base.c megasas_get_ctrl_info(struct megasas_instance *instance)
instance         5141 drivers/scsi/megaraid/megaraid_sas_base.c 	ci = instance->ctrl_info_buf;
instance         5142 drivers/scsi/megaraid/megaraid_sas_base.c 	ci_h = instance->ctrl_info_buf_h;
instance         5144 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         5147 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "Failed to get a free cmd\n");
instance         5166 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_dma_settings(instance, dcmd, ci_h,
instance         5169 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->adapter_type != MFI_SERIES) &&
instance         5170 drivers/scsi/megaraid/megaraid_sas_base.c 	    !instance->mask_interrupts) {
instance         5171 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_blocked_cmd(instance, cmd, MFI_IO_TIMEOUT_SECS);
instance         5173 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_polled(instance, cmd);
instance         5194 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_update_ext_vd_details(instance);
instance         5195 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->support_seqnum_jbod_fp =
instance         5197 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->support_morethan256jbod =
instance         5199 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->support_nvme_passthru =
instance         5201 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->support_pci_lane_margining =
instance         5203 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->task_abort_tmo = ci->TaskAbortTO;
instance         5204 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->max_reset_tmo = ci->MaxResetTO;
instance         5207 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->is_imr = (ci->memory_size ? 0 : 1);
instance         5209 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->snapdump_wait_time =
instance         5213 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->enable_fw_dev_list =
instance         5216 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev,
instance         5218 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->is_imr ? "iMR" : "MR",
instance         5221 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->disableOnlineCtrlReset =
instance         5223 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->secure_jbod_support =
instance         5225 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "Online Controller Reset(OCR)\t: %s\n",
instance         5226 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->disableOnlineCtrlReset ? "Disabled" : "Enabled");
instance         5227 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "Secure JBOD support\t: %s\n",
instance         5228 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->secure_jbod_support ? "Yes" : "No");
instance         5229 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "NVMe passthru support\t: %s\n",
instance         5230 drivers/scsi/megaraid/megaraid_sas_base.c 			 instance->support_nvme_passthru ? "Yes" : "No");
instance         5231 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev,
instance         5233 drivers/scsi/megaraid/megaraid_sas_base.c 			 instance->task_abort_tmo, instance->max_reset_tmo);
instance         5234 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "JBOD sequence map support\t: %s\n",
instance         5235 drivers/scsi/megaraid/megaraid_sas_base.c 			 instance->support_seqnum_jbod_fp ? "Yes" : "No");
instance         5236 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "PCI Lane Margining support\t: %s\n",
instance         5237 drivers/scsi/megaraid/megaraid_sas_base.c 			 instance->support_pci_lane_margining ? "Yes" : "No");
instance         5242 drivers/scsi/megaraid/megaraid_sas_base.c 		switch (dcmd_timeout_ocr_possible(instance)) {
instance         5245 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_unlock(&instance->reset_mutex);
instance         5246 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_reset_fusion(instance->host,
instance         5248 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_lock(&instance->reset_mutex);
instance         5251 drivers/scsi/megaraid/megaraid_sas_base.c 			megaraid_sas_kill_hba(instance);
instance         5254 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "Ignore DCMD timeout: %s %d\n",
instance         5260 drivers/scsi/megaraid/megaraid_sas_base.c 		megaraid_sas_kill_hba(instance);
instance         5266 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         5286 drivers/scsi/megaraid/megaraid_sas_base.c int megasas_set_crash_dump_params(struct megasas_instance *instance,
instance         5293 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         5296 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "Failed to get a free cmd\n");
instance         5314 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_dma_settings(instance, dcmd, instance->crash_dump_h,
instance         5317 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->adapter_type != MFI_SERIES) &&
instance         5318 drivers/scsi/megaraid/megaraid_sas_base.c 	    !instance->mask_interrupts)
instance         5319 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_blocked_cmd(instance, cmd, MFI_IO_TIMEOUT_SECS);
instance         5321 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_polled(instance, cmd);
instance         5324 drivers/scsi/megaraid/megaraid_sas_base.c 		switch (dcmd_timeout_ocr_possible(instance)) {
instance         5327 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_reset_fusion(instance->host,
instance         5331 drivers/scsi/megaraid/megaraid_sas_base.c 			megaraid_sas_kill_hba(instance);
instance         5334 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "Ignore DCMD timeout: %s %d\n",
instance         5339 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         5351 drivers/scsi/megaraid/megaraid_sas_base.c megasas_issue_init_mfi(struct megasas_instance *instance)
instance         5368 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         5382 drivers/scsi/megaraid/megaraid_sas_base.c 	initq_info->reply_queue_entries = cpu_to_le32(instance->max_fw_cmds + 1);
instance         5383 drivers/scsi/megaraid/megaraid_sas_base.c 	initq_info->reply_queue_start_phys_addr_lo = cpu_to_le32(instance->reply_queue_h);
instance         5385 drivers/scsi/megaraid/megaraid_sas_base.c 	initq_info->producer_index_phys_addr_lo = cpu_to_le32(instance->producer_h);
instance         5386 drivers/scsi/megaraid/megaraid_sas_base.c 	initq_info->consumer_index_phys_addr_lo = cpu_to_le32(instance->consumer_h);
instance         5400 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->disable_intr(instance);
instance         5406 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_issue_polled(instance, cmd)) {
instance         5407 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "Failed to init firmware\n");
instance         5408 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         5412 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_return_cmd(instance, cmd);
instance         5421 drivers/scsi/megaraid/megaraid_sas_base.c megasas_init_adapter_mfi(struct megasas_instance *instance)
instance         5429 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->max_fw_cmds = instance->instancet->read_fw_status_reg(instance) & 0x00FFFF;
instance         5435 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->max_fw_cmds = instance->max_fw_cmds-1;
instance         5436 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->max_mfi_cmds = instance->max_fw_cmds;
instance         5437 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->max_num_sge = (instance->instancet->read_fw_status_reg(instance) & 0xFF0000) >>
instance         5443 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->pdev->device == PCI_DEVICE_ID_LSI_SAS0073SKINNY) ||
instance         5444 drivers/scsi/megaraid/megaraid_sas_base.c 		(instance->pdev->device == PCI_DEVICE_ID_LSI_SAS0071SKINNY)) {
instance         5445 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->max_scsi_cmds = (instance->max_fw_cmds -
instance         5447 drivers/scsi/megaraid/megaraid_sas_base.c 		sema_init(&instance->ioctl_sem, MEGASAS_SKINNY_INT_CMDS);
instance         5449 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->max_scsi_cmds = (instance->max_fw_cmds -
instance         5451 drivers/scsi/megaraid/megaraid_sas_base.c 		sema_init(&instance->ioctl_sem, (MEGASAS_MFI_IOCTL_CMDS));
instance         5454 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->cur_can_queue = instance->max_scsi_cmds;
instance         5458 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_alloc_cmds(instance))
instance         5471 drivers/scsi/megaraid/megaraid_sas_base.c 	reply_q_sz = context_sz * (instance->max_fw_cmds + 1);
instance         5473 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->reply_queue = dma_alloc_coherent(&instance->pdev->dev,
instance         5474 drivers/scsi/megaraid/megaraid_sas_base.c 			reply_q_sz, &instance->reply_queue_h, GFP_KERNEL);
instance         5476 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->reply_queue) {
instance         5477 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "Out of DMA mem for reply queue\n");
instance         5481 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_issue_init_mfi(instance))
instance         5484 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_get_ctrl_info(instance)) {
instance         5485 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "(%d): Could get controller info "
instance         5486 drivers/scsi/megaraid/megaraid_sas_base.c 			"Fail from %s %d\n", instance->unique_id,
instance         5491 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->fw_support_ieee = 0;
instance         5492 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->fw_support_ieee =
instance         5493 drivers/scsi/megaraid/megaraid_sas_base.c 		(instance->instancet->read_fw_status_reg(instance) &
instance         5496 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_notice(&instance->pdev->dev, "megasas_init_mfi: fw_support_ieee=%d",
instance         5497 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->fw_support_ieee);
instance         5499 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->fw_support_ieee)
instance         5500 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->flag_ieee = 1;
instance         5506 drivers/scsi/megaraid/megaraid_sas_base.c 	dma_free_coherent(&instance->pdev->dev, reply_q_sz,
instance         5507 drivers/scsi/megaraid/megaraid_sas_base.c 			    instance->reply_queue, instance->reply_queue_h);
instance         5509 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_free_cmds(instance);
instance         5516 drivers/scsi/megaraid/megaraid_sas_base.c void megasas_setup_irq_poll(struct megasas_instance *instance)
instance         5521 drivers/scsi/megaraid/megaraid_sas_base.c 	count = instance->msix_vectors > 0 ? instance->msix_vectors : 1;
instance         5525 drivers/scsi/megaraid/megaraid_sas_base.c 		irq_ctx = &instance->irq_context[i];
instance         5526 drivers/scsi/megaraid/megaraid_sas_base.c 		irq_ctx->os_irq = pci_irq_vector(instance->pdev, i);
instance         5529 drivers/scsi/megaraid/megaraid_sas_base.c 			      instance->threshold_reply_count,
instance         5543 drivers/scsi/megaraid/megaraid_sas_base.c megasas_setup_irqs_ioapic(struct megasas_instance *instance)
instance         5547 drivers/scsi/megaraid/megaraid_sas_base.c 	pdev = instance->pdev;
instance         5548 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->irq_context[0].instance = instance;
instance         5549 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->irq_context[0].MSIxIndex = 0;
instance         5551 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->instancet->service_isr, IRQF_SHARED,
instance         5552 drivers/scsi/megaraid/megaraid_sas_base.c 			"megasas", &instance->irq_context[0])) {
instance         5553 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         5558 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->perf_mode = MR_LATENCY_PERF_MODE;
instance         5559 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->low_latency_index_start = 0;
instance         5573 drivers/scsi/megaraid/megaraid_sas_base.c megasas_setup_irqs_msix(struct megasas_instance *instance, u8 is_probe)
instance         5578 drivers/scsi/megaraid/megaraid_sas_base.c 	pdev = instance->pdev;
instance         5581 drivers/scsi/megaraid/megaraid_sas_base.c 	for (i = 0; i < instance->msix_vectors; i++) {
instance         5582 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->irq_context[i].instance = instance;
instance         5583 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->irq_context[i].MSIxIndex = i;
instance         5585 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->instancet->service_isr, 0, "megasas",
instance         5586 drivers/scsi/megaraid/megaraid_sas_base.c 			&instance->irq_context[i])) {
instance         5587 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev,
instance         5591 drivers/scsi/megaraid/megaraid_sas_base.c 					 &instance->irq_context[j]);
instance         5593 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->msix_vectors = 0;
instance         5594 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->msix_load_balance = false;
instance         5596 drivers/scsi/megaraid/megaraid_sas_base.c 				pci_free_irq_vectors(instance->pdev);
instance         5597 drivers/scsi/megaraid/megaraid_sas_base.c 				return megasas_setup_irqs_ioapic(instance);
instance         5613 drivers/scsi/megaraid/megaraid_sas_base.c megasas_destroy_irqs(struct megasas_instance *instance) {
instance         5619 drivers/scsi/megaraid/megaraid_sas_base.c 	count = instance->msix_vectors > 0 ? instance->msix_vectors : 1;
instance         5620 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES) {
instance         5622 drivers/scsi/megaraid/megaraid_sas_base.c 			irq_ctx = &instance->irq_context[i];
instance         5627 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->msix_vectors)
instance         5628 drivers/scsi/megaraid/megaraid_sas_base.c 		for (i = 0; i < instance->msix_vectors; i++) {
instance         5629 drivers/scsi/megaraid/megaraid_sas_base.c 			free_irq(pci_irq_vector(instance->pdev, i),
instance         5630 drivers/scsi/megaraid/megaraid_sas_base.c 				 &instance->irq_context[i]);
instance         5633 drivers/scsi/megaraid/megaraid_sas_base.c 		free_irq(pci_irq_vector(instance->pdev, 0),
instance         5634 drivers/scsi/megaraid/megaraid_sas_base.c 			 &instance->irq_context[0]);
instance         5645 drivers/scsi/megaraid/megaraid_sas_base.c megasas_setup_jbod_map(struct megasas_instance *instance)
instance         5648 drivers/scsi/megaraid/megaraid_sas_base.c 	struct fusion_context *fusion = instance->ctrl_context;
instance         5654 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->use_seqnum_jbod_fp =
instance         5655 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->support_seqnum_jbod_fp;
instance         5657 drivers/scsi/megaraid/megaraid_sas_base.c 		!instance->support_seqnum_jbod_fp) {
instance         5658 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev,
instance         5661 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->use_seqnum_jbod_fp = false;
instance         5670 drivers/scsi/megaraid/megaraid_sas_base.c 			(&instance->pdev->dev, pd_seq_map_sz,
instance         5673 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev,
instance         5677 drivers/scsi/megaraid/megaraid_sas_base.c 				dma_free_coherent(&instance->pdev->dev,
instance         5682 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->use_seqnum_jbod_fp = false;
instance         5688 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!megasas_sync_pd_seq_num(instance, false) &&
instance         5689 drivers/scsi/megaraid/megaraid_sas_base.c 		!megasas_sync_pd_seq_num(instance, true))
instance         5690 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->use_seqnum_jbod_fp = true;
instance         5692 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->use_seqnum_jbod_fp = false;
instance         5695 drivers/scsi/megaraid/megaraid_sas_base.c static void megasas_setup_reply_map(struct megasas_instance *instance)
instance         5700 drivers/scsi/megaraid/megaraid_sas_base.c 	low_latency_index_start = instance->low_latency_index_start;
instance         5702 drivers/scsi/megaraid/megaraid_sas_base.c 	for (queue = low_latency_index_start; queue < instance->msix_vectors; queue++) {
instance         5703 drivers/scsi/megaraid/megaraid_sas_base.c 		mask = pci_irq_get_affinity(instance->pdev, queue);
instance         5708 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->reply_map[cpu] = queue;
instance         5715 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->reply_map[cpu] = queue;
instance         5716 drivers/scsi/megaraid/megaraid_sas_base.c 		if (queue == (instance->msix_vectors - 1))
instance         5733 drivers/scsi/megaraid/megaraid_sas_base.c int megasas_get_device_list(struct megasas_instance *instance)
instance         5735 drivers/scsi/megaraid/megaraid_sas_base.c 	memset(instance->pd_list, 0,
instance         5737 drivers/scsi/megaraid/megaraid_sas_base.c 	memset(instance->ld_ids, 0xff, MEGASAS_MAX_LD_IDS);
instance         5739 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->enable_fw_dev_list) {
instance         5740 drivers/scsi/megaraid/megaraid_sas_base.c 		if (megasas_host_device_list_query(instance, true))
instance         5743 drivers/scsi/megaraid/megaraid_sas_base.c 		if (megasas_get_pd_list(instance) < 0) {
instance         5744 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev, "failed to get PD list\n");
instance         5748 drivers/scsi/megaraid/megaraid_sas_base.c 		if (megasas_ld_list_query(instance,
instance         5750 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev, "failed to get LD list\n");
instance         5764 drivers/scsi/megaraid/megaraid_sas_base.c megasas_set_high_iops_queue_affinity_hint(struct megasas_instance *instance)
instance         5769 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->perf_mode == MR_BALANCED_PERF_MODE) {
instance         5770 drivers/scsi/megaraid/megaraid_sas_base.c 		local_numa_node = dev_to_node(&instance->pdev->dev);
instance         5772 drivers/scsi/megaraid/megaraid_sas_base.c 		for (i = 0; i < instance->low_latency_index_start; i++)
instance         5773 drivers/scsi/megaraid/megaraid_sas_base.c 			irq_set_affinity_hint(pci_irq_vector(instance->pdev, i),
instance         5779 drivers/scsi/megaraid/megaraid_sas_base.c __megasas_alloc_irq_vectors(struct megasas_instance *instance)
instance         5782 drivers/scsi/megaraid/megaraid_sas_base.c 	struct irq_affinity desc = { .pre_vectors = instance->low_latency_index_start };
instance         5787 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->smp_affinity_enable)
instance         5792 drivers/scsi/megaraid/megaraid_sas_base.c 	i = pci_alloc_irq_vectors_affinity(instance->pdev,
instance         5793 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->low_latency_index_start,
instance         5794 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->msix_vectors, irq_flags, descp);
instance         5805 drivers/scsi/megaraid/megaraid_sas_base.c megasas_alloc_irq_vectors(struct megasas_instance *instance)
instance         5810 drivers/scsi/megaraid/megaraid_sas_base.c 	i = __megasas_alloc_irq_vectors(instance);
instance         5812 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->perf_mode == MR_BALANCED_PERF_MODE) &&
instance         5813 drivers/scsi/megaraid/megaraid_sas_base.c 	    (i != instance->msix_vectors)) {
instance         5814 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->msix_vectors)
instance         5815 drivers/scsi/megaraid/megaraid_sas_base.c 			pci_free_irq_vectors(instance->pdev);
instance         5817 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->perf_mode = MR_LATENCY_PERF_MODE;
instance         5818 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->low_latency_index_start = 1;
instance         5819 drivers/scsi/megaraid/megaraid_sas_base.c 		num_msix_req = num_online_cpus() + instance->low_latency_index_start;
instance         5821 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->msix_vectors = min(num_msix_req,
instance         5822 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->msix_vectors);
instance         5824 drivers/scsi/megaraid/megaraid_sas_base.c 		i = __megasas_alloc_irq_vectors(instance);
instance         5828 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_info(&instance->pdev->dev,
instance         5829 drivers/scsi/megaraid/megaraid_sas_base.c 		"requested/available msix %d/%d\n", instance->msix_vectors, i);
instance         5832 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->msix_vectors = i;
instance         5834 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->msix_vectors = 0;
instance         5836 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->smp_affinity_enable)
instance         5837 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_set_high_iops_queue_affinity_hint(instance);
instance         5847 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_init_fw(struct megasas_instance *instance)
instance         5863 drivers/scsi/megaraid/megaraid_sas_base.c 	fusion = instance->ctrl_context;
instance         5866 drivers/scsi/megaraid/megaraid_sas_base.c 	bar_list = pci_select_bars(instance->pdev, IORESOURCE_MEM);
instance         5867 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->bar = find_first_bit(&bar_list, BITS_PER_LONG);
instance         5868 drivers/scsi/megaraid/megaraid_sas_base.c 	if (pci_request_selected_regions(instance->pdev, 1<<instance->bar,
instance         5870 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "IO memory region busy!\n");
instance         5874 drivers/scsi/megaraid/megaraid_sas_base.c 	base_addr = pci_resource_start(instance->pdev, instance->bar);
instance         5875 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->reg_set = ioremap_nocache(base_addr, 8192);
instance         5877 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->reg_set) {
instance         5878 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "Failed to map IO mem\n");
instance         5883 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_printk(KERN_DEBUG, &instance->pdev->dev,
instance         5885 drivers/scsi/megaraid/megaraid_sas_base.c 		   instance->bar, base_addr_phys, instance->reg_set);
instance         5887 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES)
instance         5888 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->instancet = &megasas_instance_template_fusion;
instance         5890 drivers/scsi/megaraid/megaraid_sas_base.c 		switch (instance->pdev->device) {
instance         5893 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->instancet = &megasas_instance_template_ppc;
instance         5897 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->instancet = &megasas_instance_template_gen2;
instance         5901 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->instancet = &megasas_instance_template_skinny;
instance         5906 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->instancet = &megasas_instance_template_xscale;
instance         5907 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->pd_list_not_supported = 1;
instance         5912 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_transition_to_ready(instance, 0)) {
instance         5913 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev,
instance         5916 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->adapter_type != MFI_SERIES) {
instance         5917 drivers/scsi/megaraid/megaraid_sas_base.c 			status_reg = instance->instancet->read_fw_status_reg(
instance         5918 drivers/scsi/megaraid/megaraid_sas_base.c 					instance);
instance         5921 drivers/scsi/megaraid/megaraid_sas_base.c 					(instance, true, 0) == FAILED)
instance         5927 drivers/scsi/megaraid/megaraid_sas_base.c 			atomic_set(&instance->fw_reset_no_pci_access, 1);
instance         5928 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->instancet->adp_reset
instance         5929 drivers/scsi/megaraid/megaraid_sas_base.c 				(instance, instance->reg_set);
instance         5930 drivers/scsi/megaraid/megaraid_sas_base.c 			atomic_set(&instance->fw_reset_no_pci_access, 0);
instance         5935 drivers/scsi/megaraid/megaraid_sas_base.c 			if (megasas_transition_to_ready(instance, 0))
instance         5939 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev,
instance         5944 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_init_ctrl_params(instance);
instance         5946 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_set_dma_mask(instance))
instance         5949 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_alloc_ctrl_mem(instance))
instance         5952 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_alloc_ctrl_dma_buffers(instance))
instance         5955 drivers/scsi/megaraid/megaraid_sas_base.c 	fusion = instance->ctrl_context;
instance         5957 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type >= VENTURA_SERIES) {
instance         5959 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_readl(instance,
instance         5960 drivers/scsi/megaraid/megaraid_sas_base.c 				      &instance->reg_set->outbound_scratch_pad_2);
instance         5961 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->max_raid_mapsize = ((scratch_pad_2 >>
instance         5966 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->enable_sdev_max_qd = enable_sdev_max_qd;
instance         5968 drivers/scsi/megaraid/megaraid_sas_base.c 	switch (instance->adapter_type) {
instance         5980 drivers/scsi/megaraid/megaraid_sas_base.c 	msix_enable = (instance->instancet->read_fw_status_reg(instance) &
instance         5985 drivers/scsi/megaraid/megaraid_sas_base.c 			(instance, &instance->reg_set->outbound_scratch_pad_1);
instance         5988 drivers/scsi/megaraid/megaraid_sas_base.c 			if (instance->adapter_type == THUNDERBOLT_SERIES) {
instance         5990 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->msix_vectors = (scratch_pad_1
instance         5993 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->msix_vectors = ((scratch_pad_1
instance         6005 drivers/scsi/megaraid/megaraid_sas_base.c 				switch (instance->adapter_type) {
instance         6007 drivers/scsi/megaraid/megaraid_sas_base.c 					if (instance->msix_vectors > 8)
instance         6008 drivers/scsi/megaraid/megaraid_sas_base.c 						instance->msix_combined = true;
instance         6012 drivers/scsi/megaraid/megaraid_sas_base.c 					if (instance->msix_vectors > 16)
instance         6013 drivers/scsi/megaraid/megaraid_sas_base.c 						instance->msix_combined = true;
instance         6018 drivers/scsi/megaraid/megaraid_sas_base.c 					instance->is_rdpq = (scratch_pad_1 & MR_RDPQ_MODE_OFFSET) ?
instance         6021 drivers/scsi/megaraid/megaraid_sas_base.c 				if (instance->adapter_type >= INVADER_SERIES &&
instance         6022 drivers/scsi/megaraid/megaraid_sas_base.c 				    !instance->msix_combined) {
instance         6023 drivers/scsi/megaraid/megaraid_sas_base.c 					instance->msix_load_balance = true;
instance         6024 drivers/scsi/megaraid/megaraid_sas_base.c 					instance->smp_affinity_enable = false;
instance         6032 drivers/scsi/megaraid/megaraid_sas_base.c 					instance->reply_post_host_index_addr[loop] =
instance         6034 drivers/scsi/megaraid/megaraid_sas_base.c 						((u8 __iomem *)instance->reg_set +
instance         6040 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev,
instance         6042 drivers/scsi/megaraid/megaraid_sas_base.c 				 instance->msix_vectors);
instance         6044 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->msix_vectors = min(msix_vectors,
instance         6045 drivers/scsi/megaraid/megaraid_sas_base.c 					instance->msix_vectors);
instance         6047 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->msix_vectors = 1;
instance         6073 drivers/scsi/megaraid/megaraid_sas_base.c 			(instance->msix_vectors == MEGASAS_MAX_MSIX_QUEUES))
instance         6074 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->perf_mode = MR_BALANCED_PERF_MODE;
instance         6076 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->perf_mode = MR_LATENCY_PERF_MODE;
instance         6079 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->adapter_type == AERO_SERIES) {
instance         6080 drivers/scsi/megaraid/megaraid_sas_base.c 			pcie_capability_read_word(instance->pdev, PCI_EXP_LNKSTA, &lnksta);
instance         6088 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->perf_mode = MR_LATENCY_PERF_MODE;
instance         6100 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->perf_mode = perf_mode;
instance         6106 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->perf_mode = MR_LATENCY_PERF_MODE;
instance         6110 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->perf_mode == MR_BALANCED_PERF_MODE)
instance         6111 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->low_latency_index_start =
instance         6114 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->low_latency_index_start = 1;
instance         6116 drivers/scsi/megaraid/megaraid_sas_base.c 		num_msix_req = num_online_cpus() + instance->low_latency_index_start;
instance         6118 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->msix_vectors = min(num_msix_req,
instance         6119 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->msix_vectors);
instance         6121 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_alloc_irq_vectors(instance);
instance         6122 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!instance->msix_vectors)
instance         6123 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->msix_load_balance = false;
instance         6129 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->msix_combined) {
instance         6130 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->reply_post_host_index_addr[0] =
instance         6131 drivers/scsi/megaraid/megaraid_sas_base.c 				(u32 *)((u8 *)instance->reg_set +
instance         6134 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->reply_post_host_index_addr[0] =
instance         6135 drivers/scsi/megaraid/megaraid_sas_base.c 			(u32 *)((u8 *)instance->reg_set +
instance         6139 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->msix_vectors) {
instance         6140 drivers/scsi/megaraid/megaraid_sas_base.c 		i = pci_alloc_irq_vectors(instance->pdev, 1, 1, PCI_IRQ_LEGACY);
instance         6145 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_setup_reply_map(instance);
instance         6147 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_info(&instance->pdev->dev,
instance         6149 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->msix_vectors, (unsigned int)num_online_cpus());
instance         6150 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_info(&instance->pdev->dev,
instance         6151 drivers/scsi/megaraid/megaraid_sas_base.c 		"RDPQ mode\t: (%s)\n", instance->is_rdpq ? "enabled" : "disabled");
instance         6153 drivers/scsi/megaraid/megaraid_sas_base.c 	tasklet_init(&instance->isr_tasklet, instance->instancet->tasklet,
instance         6154 drivers/scsi/megaraid/megaraid_sas_base.c 		(unsigned long)instance);
instance         6160 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->fw_supported_vd_count = MAX_LOGICAL_DRIVES;
instance         6161 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->fw_supported_pd_count = MAX_PHYSICAL_DEVICES;
instance         6163 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->instancet->init_adapter(instance))
instance         6166 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type >= VENTURA_SERIES) {
instance         6168 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_readl(instance,
instance         6169 drivers/scsi/megaraid/megaraid_sas_base.c 				      &instance->reg_set->outbound_scratch_pad_3);
instance         6172 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->nvme_page_size =
instance         6175 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev,
instance         6176 drivers/scsi/megaraid/megaraid_sas_base.c 			 "NVME page size\t: (%d)\n", instance->nvme_page_size);
instance         6179 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->msix_vectors ?
instance         6180 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_setup_irqs_msix(instance, 1) :
instance         6181 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_setup_irqs_ioapic(instance))
instance         6184 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES)
instance         6185 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_setup_irq_poll(instance);
instance         6187 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->enable_intr(instance);
instance         6189 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_info(&instance->pdev->dev, "INIT adapter done\n");
instance         6191 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_setup_jbod_map(instance);
instance         6193 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_get_device_list(instance) != SUCCESS) {
instance         6194 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         6201 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type >= VENTURA_SERIES) {
instance         6207 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev,
instance         6216 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_err(&instance->pdev->dev,
instance         6239 drivers/scsi/megaraid/megaraid_sas_base.c 	ctrl_info = instance->ctrl_info_buf;
instance         6247 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->peerIsPresent = ctrl_info->cluster.peerIsPresent;
instance         6248 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->passive = ctrl_info->cluster.passive;
instance         6249 drivers/scsi/megaraid/megaraid_sas_base.c 	memcpy(instance->clusterId, ctrl_info->clusterId, sizeof(instance->clusterId));
instance         6250 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->UnevenSpanSupport =
instance         6252 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->UnevenSpanSupport) {
instance         6253 drivers/scsi/megaraid/megaraid_sas_base.c 		struct fusion_context *fusion = instance->ctrl_context;
instance         6254 drivers/scsi/megaraid/megaraid_sas_base.c 		if (MR_ValidateMapInfo(instance, instance->map_id))
instance         6261 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->requestorId = ctrl_info->iov.requestorId;
instance         6262 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->pdev->device == PCI_DEVICE_ID_LSI_PLASMA) {
instance         6264 drivers/scsi/megaraid/megaraid_sas_base.c 			    instance->PlasmaFW111 = 1;
instance         6266 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "SR-IOV: firmware type: %s\n",
instance         6267 drivers/scsi/megaraid/megaraid_sas_base.c 			    instance->PlasmaFW111 ? "1.11" : "new");
instance         6269 drivers/scsi/megaraid/megaraid_sas_base.c 			if (instance->PlasmaFW111) {
instance         6272 drivers/scsi/megaraid/megaraid_sas_base.c 			    instance->requestorId = iovPtr->requestorId;
instance         6275 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "SRIOV: VF requestorId %d\n",
instance         6276 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->requestorId);
instance         6279 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->crash_dump_fw_support =
instance         6281 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->crash_dump_drv_support =
instance         6282 drivers/scsi/megaraid/megaraid_sas_base.c 		(instance->crash_dump_fw_support &&
instance         6283 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->crash_dump_buf);
instance         6284 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->crash_dump_drv_support)
instance         6285 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_set_crash_dump_params(instance,
instance         6289 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->crash_dump_buf)
instance         6290 drivers/scsi/megaraid/megaraid_sas_base.c 			dma_free_coherent(&instance->pdev->dev,
instance         6292 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->crash_dump_buf,
instance         6293 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->crash_dump_h);
instance         6294 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->crash_dump_buf = NULL;
instance         6297 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->snapdump_wait_time) {
instance         6298 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_get_snapdump_properties(instance);
instance         6299 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "Snap dump wait time\t: %d\n",
instance         6300 drivers/scsi/megaraid/megaraid_sas_base.c 			 instance->snapdump_wait_time);
instance         6303 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_info(&instance->pdev->dev,
instance         6309 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_info(&instance->pdev->dev, "unevenspan support	: %s\n",
instance         6310 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->UnevenSpanSupport ? "yes" : "no");
instance         6311 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_info(&instance->pdev->dev, "firmware crash dump	: %s\n",
instance         6312 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->crash_dump_drv_support ? "yes" : "no");
instance         6313 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_info(&instance->pdev->dev, "JBOD sequence map	: %s\n",
instance         6314 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->use_seqnum_jbod_fp ? "enabled" : "disabled");
instance         6316 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->max_sectors_per_req = instance->max_num_sge *
instance         6318 drivers/scsi/megaraid/megaraid_sas_base.c 	if (tmp_sectors && (instance->max_sectors_per_req > tmp_sectors))
instance         6319 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->max_sectors_per_req = tmp_sectors;
instance         6323 drivers/scsi/megaraid/megaraid_sas_base.c 			throttlequeuedepth <= instance->max_scsi_cmds)
instance         6324 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->throttlequeuedepth = throttlequeuedepth;
instance         6326 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->throttlequeuedepth =
instance         6337 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->requestorId) {
instance         6338 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!megasas_sriov_start_heartbeat(instance, 1)) {
instance         6339 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_start_timer(instance);
instance         6341 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->skip_heartbeat_timer_del = 1;
instance         6351 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES)
instance         6352 drivers/scsi/megaraid/megaraid_sas_base.c 		if (megasas_fusion_start_watchdog(instance) != SUCCESS)
instance         6358 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->requestorId && !instance->skip_heartbeat_timer_del)
instance         6359 drivers/scsi/megaraid/megaraid_sas_base.c 		del_timer_sync(&instance->sriov_heartbeat_timer);
instance         6361 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->disable_intr(instance);
instance         6362 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_destroy_irqs(instance);
instance         6364 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->msix_vectors)
instance         6365 drivers/scsi/megaraid/megaraid_sas_base.c 		pci_free_irq_vectors(instance->pdev);
instance         6366 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->msix_vectors = 0;
instance         6368 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_free_ctrl_dma_buffers(instance);
instance         6369 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_free_ctrl_mem(instance);
instance         6371 drivers/scsi/megaraid/megaraid_sas_base.c 	iounmap(instance->reg_set);
instance         6374 drivers/scsi/megaraid/megaraid_sas_base.c 	pci_release_selected_regions(instance->pdev, 1<<instance->bar);
instance         6376 drivers/scsi/megaraid/megaraid_sas_base.c 	dev_err(&instance->pdev->dev, "Failed from %s %d\n",
instance         6385 drivers/scsi/megaraid/megaraid_sas_base.c static void megasas_release_mfi(struct megasas_instance *instance)
instance         6387 drivers/scsi/megaraid/megaraid_sas_base.c 	u32 reply_q_sz = sizeof(u32) *(instance->max_mfi_cmds + 1);
instance         6389 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->reply_queue)
instance         6390 drivers/scsi/megaraid/megaraid_sas_base.c 		dma_free_coherent(&instance->pdev->dev, reply_q_sz,
instance         6391 drivers/scsi/megaraid/megaraid_sas_base.c 			    instance->reply_queue, instance->reply_queue_h);
instance         6393 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_free_cmds(instance);
instance         6395 drivers/scsi/megaraid/megaraid_sas_base.c 	iounmap(instance->reg_set);
instance         6397 drivers/scsi/megaraid/megaraid_sas_base.c 	pci_release_selected_regions(instance->pdev, 1<<instance->bar);
instance         6413 drivers/scsi/megaraid/megaraid_sas_base.c megasas_get_seq_num(struct megasas_instance *instance,
instance         6422 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         6429 drivers/scsi/megaraid/megaraid_sas_base.c 	el_info = dma_alloc_coherent(&instance->pdev->dev,
instance         6433 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         6448 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_dma_settings(instance, dcmd, el_info_h,
instance         6451 drivers/scsi/megaraid/megaraid_sas_base.c 	ret = megasas_issue_blocked_cmd(instance, cmd, MFI_IO_TIMEOUT_SECS);
instance         6453 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "Failed from %s %d\n",
instance         6468 drivers/scsi/megaraid/megaraid_sas_base.c 	dma_free_coherent(&instance->pdev->dev,
instance         6472 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_return_cmd(instance, cmd);
instance         6487 drivers/scsi/megaraid/megaraid_sas_base.c megasas_register_aen(struct megasas_instance *instance, u32 seq_num,
instance         6511 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->aen_cmd) {
instance         6514 drivers/scsi/megaraid/megaraid_sas_base.c 			le32_to_cpu(instance->aen_cmd->frame->dcmd.mbox.w[1]);
instance         6518 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev,
instance         6548 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->aen_cmd->abort_aen = 1;
instance         6549 drivers/scsi/megaraid/megaraid_sas_base.c 			ret_val = megasas_issue_blocked_abort_cmd(instance,
instance         6550 drivers/scsi/megaraid/megaraid_sas_base.c 								  instance->
instance         6554 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_printk(KERN_DEBUG, &instance->pdev->dev, "Failed to abort "
instance         6561 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         6568 drivers/scsi/megaraid/megaraid_sas_base.c 	memset(instance->evt_detail, 0, sizeof(struct megasas_evt_detail));
instance         6584 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->last_seq_num = seq_num;
instance         6587 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_dma_settings(instance, dcmd, instance->evt_detail_h,
instance         6590 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->aen_cmd != NULL) {
instance         6591 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         6600 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->aen_cmd = cmd;
instance         6605 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->issue_dcmd(instance, cmd);
instance         6629 drivers/scsi/megaraid/megaraid_sas_base.c megasas_get_target_prop(struct megasas_instance *instance,
instance         6638 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         6641 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         6648 drivers/scsi/megaraid/megaraid_sas_base.c 	memset(instance->tgt_prop, 0, sizeof(*instance->tgt_prop));
instance         6663 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_dma_settings(instance, dcmd, instance->tgt_prop_h,
instance         6666 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->adapter_type != MFI_SERIES) &&
instance         6667 drivers/scsi/megaraid/megaraid_sas_base.c 	    !instance->mask_interrupts)
instance         6668 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_blocked_cmd(instance,
instance         6671 drivers/scsi/megaraid/megaraid_sas_base.c 		ret = megasas_issue_polled(instance, cmd);
instance         6675 drivers/scsi/megaraid/megaraid_sas_base.c 		switch (dcmd_timeout_ocr_possible(instance)) {
instance         6678 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_unlock(&instance->reset_mutex);
instance         6679 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_reset_fusion(instance->host,
instance         6681 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_lock(&instance->reset_mutex);
instance         6684 drivers/scsi/megaraid/megaraid_sas_base.c 			megaraid_sas_kill_hba(instance);
instance         6687 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev,
instance         6695 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         6698 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         6709 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_start_aen(struct megasas_instance *instance)
instance         6719 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_get_seq_num(instance, &eli))
instance         6729 drivers/scsi/megaraid/megaraid_sas_base.c 	return megasas_register_aen(instance,
instance         6738 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_io_attach(struct megasas_instance *instance)
instance         6740 drivers/scsi/megaraid/megaraid_sas_base.c 	struct Scsi_Host *host = instance->host;
instance         6745 drivers/scsi/megaraid/megaraid_sas_base.c 	host->unique_id = instance->unique_id;
instance         6746 drivers/scsi/megaraid/megaraid_sas_base.c 	host->can_queue = instance->max_scsi_cmds;
instance         6747 drivers/scsi/megaraid/megaraid_sas_base.c 	host->this_id = instance->init_id;
instance         6748 drivers/scsi/megaraid/megaraid_sas_base.c 	host->sg_tablesize = instance->max_num_sge;
instance         6750 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->fw_support_ieee)
instance         6751 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->max_sectors_per_req = MEGASAS_MAX_SECTORS_IEEE;
instance         6756 drivers/scsi/megaraid/megaraid_sas_base.c 	if (max_sectors && max_sectors < instance->max_sectors_per_req)
instance         6757 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->max_sectors_per_req = max_sectors;
instance         6760 drivers/scsi/megaraid/megaraid_sas_base.c 			if (((instance->pdev->device ==
instance         6762 drivers/scsi/megaraid/megaraid_sas_base.c 				(instance->pdev->device ==
instance         6765 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->max_sectors_per_req = max_sectors;
instance         6767 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "max_sectors should be > 0"
instance         6769 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->max_sectors_per_req);
instance         6774 drivers/scsi/megaraid/megaraid_sas_base.c 	host->max_sectors = instance->max_sectors_per_req;
instance         6784 drivers/scsi/megaraid/megaraid_sas_base.c 	if (scsi_add_host(host, &instance->pdev->dev)) {
instance         6785 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         6812 drivers/scsi/megaraid/megaraid_sas_base.c megasas_set_dma_mask(struct megasas_instance *instance)
instance         6818 drivers/scsi/megaraid/megaraid_sas_base.c 	pdev = instance->pdev;
instance         6819 drivers/scsi/megaraid/megaraid_sas_base.c 	consistent_mask = (instance->adapter_type >= VENTURA_SERIES) ?
instance         6835 drivers/scsi/megaraid/megaraid_sas_base.c 				(instance, &instance->reg_set->outbound_scratch_pad_1);
instance         6847 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->consistent_mask_64bit = false;
instance         6849 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->consistent_mask_64bit = true;
instance         6853 drivers/scsi/megaraid/megaraid_sas_base.c 		 (instance->consistent_mask_64bit ? "63" : "32"));
instance         6877 drivers/scsi/megaraid/megaraid_sas_base.c static inline void megasas_set_adapter_type(struct megasas_instance *instance)
instance         6879 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->pdev->vendor == PCI_VENDOR_ID_DELL) &&
instance         6880 drivers/scsi/megaraid/megaraid_sas_base.c 	    (instance->pdev->device == PCI_DEVICE_ID_DELL_PERC5)) {
instance         6881 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->adapter_type = MFI_SERIES;
instance         6883 drivers/scsi/megaraid/megaraid_sas_base.c 		switch (instance->pdev->device) {
instance         6888 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->adapter_type = AERO_SERIES;
instance         6896 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->adapter_type = VENTURA_SERIES;
instance         6900 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->adapter_type = THUNDERBOLT_SERIES;
instance         6908 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->adapter_type = INVADER_SERIES;
instance         6911 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->adapter_type = MFI_SERIES;
instance         6917 drivers/scsi/megaraid/megaraid_sas_base.c static inline int megasas_alloc_mfi_ctrl_mem(struct megasas_instance *instance)
instance         6919 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->producer = dma_alloc_coherent(&instance->pdev->dev,
instance         6920 drivers/scsi/megaraid/megaraid_sas_base.c 			sizeof(u32), &instance->producer_h, GFP_KERNEL);
instance         6921 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->consumer = dma_alloc_coherent(&instance->pdev->dev,
instance         6922 drivers/scsi/megaraid/megaraid_sas_base.c 			sizeof(u32), &instance->consumer_h, GFP_KERNEL);
instance         6924 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->producer || !instance->consumer) {
instance         6925 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         6930 drivers/scsi/megaraid/megaraid_sas_base.c 	*instance->producer = 0;
instance         6931 drivers/scsi/megaraid/megaraid_sas_base.c 	*instance->consumer = 0;
instance         6945 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_alloc_ctrl_mem(struct megasas_instance *instance)
instance         6947 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->reply_map = kcalloc(nr_cpu_ids, sizeof(unsigned int),
instance         6949 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->reply_map)
instance         6952 drivers/scsi/megaraid/megaraid_sas_base.c 	switch (instance->adapter_type) {
instance         6954 drivers/scsi/megaraid/megaraid_sas_base.c 		if (megasas_alloc_mfi_ctrl_mem(instance))
instance         6961 drivers/scsi/megaraid/megaraid_sas_base.c 		if (megasas_alloc_fusion_context(instance))
instance         6968 drivers/scsi/megaraid/megaraid_sas_base.c 	kfree(instance->reply_map);
instance         6969 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->reply_map = NULL;
instance         6980 drivers/scsi/megaraid/megaraid_sas_base.c static inline void megasas_free_ctrl_mem(struct megasas_instance *instance)
instance         6982 drivers/scsi/megaraid/megaraid_sas_base.c 	kfree(instance->reply_map);
instance         6983 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type == MFI_SERIES) {
instance         6984 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->producer)
instance         6985 drivers/scsi/megaraid/megaraid_sas_base.c 			dma_free_coherent(&instance->pdev->dev, sizeof(u32),
instance         6986 drivers/scsi/megaraid/megaraid_sas_base.c 					    instance->producer,
instance         6987 drivers/scsi/megaraid/megaraid_sas_base.c 					    instance->producer_h);
instance         6988 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->consumer)
instance         6989 drivers/scsi/megaraid/megaraid_sas_base.c 			dma_free_coherent(&instance->pdev->dev, sizeof(u32),
instance         6990 drivers/scsi/megaraid/megaraid_sas_base.c 					    instance->consumer,
instance         6991 drivers/scsi/megaraid/megaraid_sas_base.c 					    instance->consumer_h);
instance         6993 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_free_fusion_context(instance);
instance         7005 drivers/scsi/megaraid/megaraid_sas_base.c int megasas_alloc_ctrl_dma_buffers(struct megasas_instance *instance)
instance         7007 drivers/scsi/megaraid/megaraid_sas_base.c 	struct pci_dev *pdev = instance->pdev;
instance         7008 drivers/scsi/megaraid/megaraid_sas_base.c 	struct fusion_context *fusion = instance->ctrl_context;
instance         7010 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->evt_detail = dma_alloc_coherent(&pdev->dev,
instance         7012 drivers/scsi/megaraid/megaraid_sas_base.c 			&instance->evt_detail_h, GFP_KERNEL);
instance         7014 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->evt_detail) {
instance         7015 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         7033 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->snapdump_prop = dma_alloc_coherent(&pdev->dev,
instance         7035 drivers/scsi/megaraid/megaraid_sas_base.c 				&instance->snapdump_prop_h, GFP_KERNEL);
instance         7037 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!instance->snapdump_prop)
instance         7041 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->host_device_list_buf = dma_alloc_coherent(&pdev->dev,
instance         7043 drivers/scsi/megaraid/megaraid_sas_base.c 							&instance->host_device_list_buf_h,
instance         7046 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!instance->host_device_list_buf) {
instance         7054 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->pd_list_buf =
instance         7057 drivers/scsi/megaraid/megaraid_sas_base.c 				     &instance->pd_list_buf_h, GFP_KERNEL);
instance         7059 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->pd_list_buf) {
instance         7064 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->ctrl_info_buf =
instance         7067 drivers/scsi/megaraid/megaraid_sas_base.c 				     &instance->ctrl_info_buf_h, GFP_KERNEL);
instance         7069 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->ctrl_info_buf) {
instance         7075 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->ld_list_buf =
instance         7078 drivers/scsi/megaraid/megaraid_sas_base.c 				     &instance->ld_list_buf_h, GFP_KERNEL);
instance         7080 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->ld_list_buf) {
instance         7085 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->ld_targetid_list_buf =
instance         7088 drivers/scsi/megaraid/megaraid_sas_base.c 				&instance->ld_targetid_list_buf_h, GFP_KERNEL);
instance         7090 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->ld_targetid_list_buf) {
instance         7097 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->system_info_buf =
instance         7100 drivers/scsi/megaraid/megaraid_sas_base.c 					&instance->system_info_h, GFP_KERNEL);
instance         7101 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->pd_info =
instance         7104 drivers/scsi/megaraid/megaraid_sas_base.c 					&instance->pd_info_h, GFP_KERNEL);
instance         7105 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->tgt_prop =
instance         7108 drivers/scsi/megaraid/megaraid_sas_base.c 					&instance->tgt_prop_h, GFP_KERNEL);
instance         7109 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->crash_dump_buf =
instance         7111 drivers/scsi/megaraid/megaraid_sas_base.c 					&instance->crash_dump_h, GFP_KERNEL);
instance         7113 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!instance->system_info_buf)
instance         7114 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev,
instance         7117 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!instance->pd_info)
instance         7118 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev,
instance         7121 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!instance->tgt_prop)
instance         7122 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev,
instance         7125 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!instance->crash_dump_buf)
instance         7126 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev,
instance         7141 drivers/scsi/megaraid/megaraid_sas_base.c void megasas_free_ctrl_dma_buffers(struct megasas_instance *instance)
instance         7143 drivers/scsi/megaraid/megaraid_sas_base.c 	struct pci_dev *pdev = instance->pdev;
instance         7144 drivers/scsi/megaraid/megaraid_sas_base.c 	struct fusion_context *fusion = instance->ctrl_context;
instance         7146 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->evt_detail)
instance         7148 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->evt_detail,
instance         7149 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->evt_detail_h);
instance         7157 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->pd_list_buf)
instance         7160 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->pd_list_buf,
instance         7161 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->pd_list_buf_h);
instance         7163 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->ld_list_buf)
instance         7165 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->ld_list_buf,
instance         7166 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->ld_list_buf_h);
instance         7168 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->ld_targetid_list_buf)
instance         7170 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->ld_targetid_list_buf,
instance         7171 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->ld_targetid_list_buf_h);
instance         7173 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->ctrl_info_buf)
instance         7175 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->ctrl_info_buf,
instance         7176 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->ctrl_info_buf_h);
instance         7178 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->system_info_buf)
instance         7180 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->system_info_buf,
instance         7181 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->system_info_h);
instance         7183 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->pd_info)
instance         7185 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->pd_info, instance->pd_info_h);
instance         7187 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->tgt_prop)
instance         7189 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->tgt_prop, instance->tgt_prop_h);
instance         7191 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->crash_dump_buf)
instance         7193 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->crash_dump_buf,
instance         7194 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->crash_dump_h);
instance         7196 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->snapdump_prop)
instance         7199 drivers/scsi/megaraid/megaraid_sas_base.c 				  instance->snapdump_prop,
instance         7200 drivers/scsi/megaraid/megaraid_sas_base.c 				  instance->snapdump_prop_h);
instance         7202 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->host_device_list_buf)
instance         7205 drivers/scsi/megaraid/megaraid_sas_base.c 				  instance->host_device_list_buf,
instance         7206 drivers/scsi/megaraid/megaraid_sas_base.c 				  instance->host_device_list_buf_h);
instance         7216 drivers/scsi/megaraid/megaraid_sas_base.c static inline void megasas_init_ctrl_params(struct megasas_instance *instance)
instance         7218 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->fw_crash_state = UNAVAILABLE;
instance         7221 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->issuepend_done = 1;
instance         7222 drivers/scsi/megaraid/megaraid_sas_base.c 	atomic_set(&instance->adprecovery, MEGASAS_HBA_OPERATIONAL);
instance         7227 drivers/scsi/megaraid/megaraid_sas_base.c 	INIT_LIST_HEAD(&instance->cmd_pool);
instance         7228 drivers/scsi/megaraid/megaraid_sas_base.c 	INIT_LIST_HEAD(&instance->internal_reset_pending_q);
instance         7230 drivers/scsi/megaraid/megaraid_sas_base.c 	atomic_set(&instance->fw_outstanding, 0);
instance         7231 drivers/scsi/megaraid/megaraid_sas_base.c 	atomic64_set(&instance->total_io_count, 0);
instance         7233 drivers/scsi/megaraid/megaraid_sas_base.c 	init_waitqueue_head(&instance->int_cmd_wait_q);
instance         7234 drivers/scsi/megaraid/megaraid_sas_base.c 	init_waitqueue_head(&instance->abort_cmd_wait_q);
instance         7236 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_init(&instance->crashdump_lock);
instance         7237 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_init(&instance->mfi_pool_lock);
instance         7238 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_init(&instance->hba_lock);
instance         7239 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_init(&instance->stream_lock);
instance         7240 drivers/scsi/megaraid/megaraid_sas_base.c 	spin_lock_init(&instance->completion_lock);
instance         7242 drivers/scsi/megaraid/megaraid_sas_base.c 	mutex_init(&instance->reset_mutex);
instance         7244 drivers/scsi/megaraid/megaraid_sas_base.c 	if ((instance->pdev->device == PCI_DEVICE_ID_LSI_SAS0073SKINNY) ||
instance         7245 drivers/scsi/megaraid/megaraid_sas_base.c 	    (instance->pdev->device == PCI_DEVICE_ID_LSI_SAS0071SKINNY))
instance         7246 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->flag_ieee = 1;
instance         7249 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->flag = 0;
instance         7250 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->unload = 1;
instance         7251 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->last_time = 0;
instance         7252 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->disableOnlineCtrlReset = 1;
instance         7253 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->UnevenSpanSupport = 0;
instance         7254 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->smp_affinity_enable = smp_affinity_enable ? true : false;
instance         7255 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->msix_load_balance = false;
instance         7257 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES)
instance         7258 drivers/scsi/megaraid/megaraid_sas_base.c 		INIT_WORK(&instance->work_init, megasas_fusion_ocr_wq);
instance         7260 drivers/scsi/megaraid/megaraid_sas_base.c 		INIT_WORK(&instance->work_init, process_fw_state_change_wq);
instance         7273 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         7324 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = (struct megasas_instance *)host->hostdata;
instance         7325 drivers/scsi/megaraid/megaraid_sas_base.c 	memset(instance, 0, sizeof(*instance));
instance         7326 drivers/scsi/megaraid/megaraid_sas_base.c 	atomic_set(&instance->fw_reset_no_pci_access, 0);
instance         7331 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->pdev = pdev;
instance         7332 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->host = host;
instance         7333 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->unique_id = pdev->bus->number << 8 | pdev->devfn;
instance         7334 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->init_id = MEGASAS_DEFAULT_INIT_ID;
instance         7336 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_set_adapter_type(instance);
instance         7341 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_init_fw(instance))
instance         7344 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->requestorId) {
instance         7345 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->PlasmaFW111) {
instance         7346 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->vf_affiliation_111 =
instance         7349 drivers/scsi/megaraid/megaraid_sas_base.c 					&instance->vf_affiliation_111_h,
instance         7351 drivers/scsi/megaraid/megaraid_sas_base.c 			if (!instance->vf_affiliation_111)
instance         7355 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->vf_affiliation =
instance         7359 drivers/scsi/megaraid/megaraid_sas_base.c 					&instance->vf_affiliation_h,
instance         7361 drivers/scsi/megaraid/megaraid_sas_base.c 			if (!instance->vf_affiliation)
instance         7370 drivers/scsi/megaraid/megaraid_sas_base.c 	pci_set_drvdata(pdev, instance);
instance         7377 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_mgmt_info.instance[megasas_mgmt_info.max_index] = instance;
instance         7383 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_io_attach(instance))
instance         7386 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->unload = 0;
instance         7390 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance->enable_fw_dev_list ||
instance         7391 drivers/scsi/megaraid/megaraid_sas_base.c 	    (instance->host_device_list_buf->count > 0))
instance         7397 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_start_aen(instance)) {
instance         7402 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_setup_debugfs(instance);
instance         7405 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->requestorId)
instance         7406 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_get_ld_vf_affiliation(instance, 1);
instance         7414 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_mgmt_info.instance[megasas_mgmt_info.max_index] = NULL;
instance         7416 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->disable_intr(instance);
instance         7417 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_destroy_irqs(instance);
instance         7419 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES)
instance         7420 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_release_fusion(instance);
instance         7422 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_release_mfi(instance);
instance         7423 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->msix_vectors)
instance         7424 drivers/scsi/megaraid/megaraid_sas_base.c 		pci_free_irq_vectors(instance->pdev);
instance         7437 drivers/scsi/megaraid/megaraid_sas_base.c static void megasas_flush_cache(struct megasas_instance *instance)
instance         7442 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR)
instance         7445 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         7464 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_issue_blocked_cmd(instance, cmd, MFI_IO_TIMEOUT_SECS)
instance         7466 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         7471 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_return_cmd(instance, cmd);
instance         7479 drivers/scsi/megaraid/megaraid_sas_base.c static void megasas_shutdown_controller(struct megasas_instance *instance,
instance         7485 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR)
instance         7488 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         7493 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->aen_cmd)
instance         7494 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_issue_blocked_abort_cmd(instance,
instance         7495 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->aen_cmd, MFI_IO_TIMEOUT_SECS);
instance         7496 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->map_update_cmd)
instance         7497 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_issue_blocked_abort_cmd(instance,
instance         7498 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->map_update_cmd, MFI_IO_TIMEOUT_SECS);
instance         7499 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->jbod_seq_cmd)
instance         7500 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_issue_blocked_abort_cmd(instance,
instance         7501 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->jbod_seq_cmd, MFI_IO_TIMEOUT_SECS);
instance         7516 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_issue_blocked_cmd(instance, cmd, MFI_IO_TIMEOUT_SECS)
instance         7518 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         7523 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_return_cmd(instance, cmd);
instance         7535 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         7537 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = pci_get_drvdata(pdev);
instance         7539 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance)
instance         7542 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->unload = 1;
instance         7547 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->requestorId && !instance->skip_heartbeat_timer_del)
instance         7548 drivers/scsi/megaraid/megaraid_sas_base.c 		del_timer_sync(&instance->sriov_heartbeat_timer);
instance         7551 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES)
instance         7552 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_fusion_stop_watchdog(instance);
instance         7554 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_flush_cache(instance);
instance         7555 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_shutdown_controller(instance, MR_DCMD_HIBERNATE_SHUTDOWN);
instance         7558 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->ev != NULL) {
instance         7559 drivers/scsi/megaraid/megaraid_sas_base.c 		struct megasas_aen_event *ev = instance->ev;
instance         7561 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->ev = NULL;
instance         7564 drivers/scsi/megaraid/megaraid_sas_base.c 	tasklet_kill(&instance->isr_tasklet);
instance         7566 drivers/scsi/megaraid/megaraid_sas_base.c 	pci_set_drvdata(instance->pdev, instance);
instance         7567 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->disable_intr(instance);
instance         7569 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_destroy_irqs(instance);
instance         7571 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->msix_vectors)
instance         7572 drivers/scsi/megaraid/megaraid_sas_base.c 		pci_free_irq_vectors(instance->pdev);
instance         7591 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         7594 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = pci_get_drvdata(pdev);
instance         7596 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance)
instance         7599 drivers/scsi/megaraid/megaraid_sas_base.c 	host = instance->host;
instance         7620 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_transition_to_ready(instance, 0))
instance         7623 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_set_dma_mask(instance))
instance         7630 drivers/scsi/megaraid/megaraid_sas_base.c 	atomic_set(&instance->fw_outstanding, 0);
instance         7631 drivers/scsi/megaraid/megaraid_sas_base.c 	atomic_set(&instance->ldio_outstanding, 0);
instance         7634 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->msix_vectors) {
instance         7636 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->smp_affinity_enable)
instance         7639 drivers/scsi/megaraid/megaraid_sas_base.c 	rval = pci_alloc_irq_vectors(instance->pdev, 1,
instance         7640 drivers/scsi/megaraid/megaraid_sas_base.c 				     instance->msix_vectors ?
instance         7641 drivers/scsi/megaraid/megaraid_sas_base.c 				     instance->msix_vectors : 1, irq_flags);
instance         7645 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_setup_reply_map(instance);
instance         7647 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES) {
instance         7648 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_reset_reply_desc(instance);
instance         7649 drivers/scsi/megaraid/megaraid_sas_base.c 		if (megasas_ioc_init_fusion(instance)) {
instance         7650 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_free_cmds(instance);
instance         7651 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_free_cmds_fusion(instance);
instance         7654 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!megasas_get_map_info(instance))
instance         7655 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_sync_map_info(instance);
instance         7657 drivers/scsi/megaraid/megaraid_sas_base.c 		*instance->producer = 0;
instance         7658 drivers/scsi/megaraid/megaraid_sas_base.c 		*instance->consumer = 0;
instance         7659 drivers/scsi/megaraid/megaraid_sas_base.c 		if (megasas_issue_init_mfi(instance))
instance         7663 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_get_ctrl_info(instance) != DCMD_SUCCESS)
instance         7666 drivers/scsi/megaraid/megaraid_sas_base.c 	tasklet_init(&instance->isr_tasklet, instance->instancet->tasklet,
instance         7667 drivers/scsi/megaraid/megaraid_sas_base.c 		     (unsigned long)instance);
instance         7669 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->msix_vectors ?
instance         7670 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_setup_irqs_msix(instance, 0) :
instance         7671 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_setup_irqs_ioapic(instance))
instance         7674 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES)
instance         7675 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_setup_irq_poll(instance);
instance         7678 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->requestorId) {
instance         7679 drivers/scsi/megaraid/megaraid_sas_base.c 		if (!megasas_sriov_start_heartbeat(instance, 0))
instance         7680 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_start_timer(instance);
instance         7682 drivers/scsi/megaraid/megaraid_sas_base.c 			instance->skip_heartbeat_timer_del = 1;
instance         7687 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->enable_intr(instance);
instance         7688 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_setup_jbod_map(instance);
instance         7689 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->unload = 0;
instance         7694 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_start_aen(instance))
instance         7695 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "Start AEN failed\n");
instance         7698 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES)
instance         7699 drivers/scsi/megaraid/megaraid_sas_base.c 		if (megasas_fusion_start_watchdog(instance) != SUCCESS)
instance         7705 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->requestorId && !instance->skip_heartbeat_timer_del)
instance         7706 drivers/scsi/megaraid/megaraid_sas_base.c 		del_timer_sync(&instance->sriov_heartbeat_timer);
instance         7708 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_free_ctrl_dma_buffers(instance);
instance         7709 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_free_ctrl_mem(instance);
instance         7726 drivers/scsi/megaraid/megaraid_sas_base.c megasas_wait_for_adapter_operational(struct megasas_instance *instance)
instance         7733 drivers/scsi/megaraid/megaraid_sas_base.c 		adp_state = atomic_read(&instance->adprecovery);
instance         7739 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_notice(&instance->pdev->dev, "waiting for controller reset to finish\n");
instance         7745 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev,
instance         7762 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         7766 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = pci_get_drvdata(pdev);
instance         7768 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance)
instance         7771 drivers/scsi/megaraid/megaraid_sas_base.c 	host = instance->host;
instance         7772 drivers/scsi/megaraid/megaraid_sas_base.c 	fusion = instance->ctrl_context;
instance         7775 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->requestorId && !instance->skip_heartbeat_timer_del)
instance         7776 drivers/scsi/megaraid/megaraid_sas_base.c 		del_timer_sync(&instance->sriov_heartbeat_timer);
instance         7779 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES)
instance         7780 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_fusion_stop_watchdog(instance);
instance         7782 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->fw_crash_state != UNAVAILABLE)
instance         7783 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_free_host_crash_buffer(instance);
instance         7784 drivers/scsi/megaraid/megaraid_sas_base.c 	scsi_remove_host(instance->host);
instance         7785 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->unload = 1;
instance         7787 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_wait_for_adapter_operational(instance))
instance         7790 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_flush_cache(instance);
instance         7791 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_shutdown_controller(instance, MR_DCMD_CTRL_SHUTDOWN);
instance         7795 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->ev != NULL) {
instance         7796 drivers/scsi/megaraid/megaraid_sas_base.c 		struct megasas_aen_event *ev = instance->ev;
instance         7798 drivers/scsi/megaraid/megaraid_sas_base.c 		instance->ev = NULL;
instance         7802 drivers/scsi/megaraid/megaraid_sas_base.c 	wake_up_all(&instance->int_cmd_wait_q);
instance         7804 drivers/scsi/megaraid/megaraid_sas_base.c 	tasklet_kill(&instance->isr_tasklet);
instance         7811 drivers/scsi/megaraid/megaraid_sas_base.c 		if (megasas_mgmt_info.instance[i] == instance) {
instance         7813 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_mgmt_info.instance[i] = NULL;
instance         7819 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->disable_intr(instance);
instance         7821 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_destroy_irqs(instance);
instance         7823 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->msix_vectors)
instance         7824 drivers/scsi/megaraid/megaraid_sas_base.c 		pci_free_irq_vectors(instance->pdev);
instance         7826 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type >= VENTURA_SERIES) {
instance         7834 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->adapter_type != MFI_SERIES) {
instance         7835 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_release_fusion(instance);
instance         7841 drivers/scsi/megaraid/megaraid_sas_base.c 				dma_free_coherent(&instance->pdev->dev,
instance         7854 drivers/scsi/megaraid/megaraid_sas_base.c 				dma_free_coherent(&instance->pdev->dev,
instance         7860 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_release_mfi(instance);
instance         7863 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->vf_affiliation)
instance         7866 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->vf_affiliation,
instance         7867 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->vf_affiliation_h);
instance         7869 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->vf_affiliation_111)
instance         7872 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->vf_affiliation_111,
instance         7873 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->vf_affiliation_111_h);
instance         7875 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->hb_host_mem)
instance         7877 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->hb_host_mem,
instance         7878 drivers/scsi/megaraid/megaraid_sas_base.c 				    instance->hb_host_mem_h);
instance         7880 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_free_ctrl_dma_buffers(instance);
instance         7882 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_free_ctrl_mem(instance);
instance         7884 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_destroy_debugfs(instance);
instance         7897 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance = pci_get_drvdata(pdev);
instance         7899 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance)
instance         7902 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->unload = 1;
instance         7904 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_wait_for_adapter_operational(instance))
instance         7907 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_flush_cache(instance);
instance         7908 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_shutdown_controller(instance, MR_DCMD_CTRL_SHUTDOWN);
instance         7911 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->instancet->disable_intr(instance);
instance         7912 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_destroy_irqs(instance);
instance         7914 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->msix_vectors)
instance         7915 drivers/scsi/megaraid/megaraid_sas_base.c 		pci_free_irq_vectors(instance->pdev);
instance         7993 drivers/scsi/megaraid/megaraid_sas_base.c 		local_instance = megasas_mgmt_info.instance[i];
instance         8022 drivers/scsi/megaraid/megaraid_sas_base.c megasas_mgmt_fw_ioctl(struct megasas_instance *instance,
instance         8040 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "SGE count [%d] >  max limit [%d]\n",
instance         8047 drivers/scsi/megaraid/megaraid_sas_base.c 	    !instance->support_nvme_passthru) ||
instance         8049 drivers/scsi/megaraid/megaraid_sas_base.c 	    !instance->support_pci_lane_margining)) {
instance         8050 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         8056 drivers/scsi/megaraid/megaraid_sas_base.c 	cmd = megasas_get_cmd(instance);
instance         8058 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "Failed to get a cmd packet\n");
instance         8074 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->consistent_mask_64bit)
instance         8085 drivers/scsi/megaraid/megaraid_sas_base.c 		mutex_lock(&instance->reset_mutex);
instance         8086 drivers/scsi/megaraid/megaraid_sas_base.c 		if (megasas_get_ctrl_info(instance) != DCMD_SUCCESS) {
instance         8087 drivers/scsi/megaraid/megaraid_sas_base.c 			megasas_return_cmd(instance, cmd);
instance         8088 drivers/scsi/megaraid/megaraid_sas_base.c 			mutex_unlock(&instance->reset_mutex);
instance         8091 drivers/scsi/megaraid/megaraid_sas_base.c 		mutex_unlock(&instance->reset_mutex);
instance         8096 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_return_cmd(instance, cmd);
instance         8108 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->consistent_mask_64bit)
instance         8122 drivers/scsi/megaraid/megaraid_sas_base.c 		kbuff_arr[i] = dma_alloc_coherent(&instance->pdev->dev,
instance         8126 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_printk(KERN_DEBUG, &instance->pdev->dev, "Failed to alloc "
instance         8136 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->consistent_mask_64bit) {
instance         8156 drivers/scsi/megaraid/megaraid_sas_base.c 		sense = dma_alloc_coherent(&instance->pdev->dev, ioc->sense_len,
instance         8165 drivers/scsi/megaraid/megaraid_sas_base.c 		if (instance->consistent_mask_64bit)
instance         8176 drivers/scsi/megaraid/megaraid_sas_base.c 	if (megasas_issue_blocked_cmd(instance, cmd, 0) == DCMD_NOT_FIRED) {
instance         8178 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         8187 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->unload == 1) {
instance         8188 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_info(&instance->pdev->dev, "Driver unload is in progress "
instance         8217 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_err(&instance->pdev->dev, "Failed to copy out to user "
instance         8229 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "Error copying out cmd_status\n");
instance         8235 drivers/scsi/megaraid/megaraid_sas_base.c 		dma_free_coherent(&instance->pdev->dev, ioc->sense_len,
instance         8241 drivers/scsi/megaraid/megaraid_sas_base.c 			if (instance->consistent_mask_64bit)
instance         8242 drivers/scsi/megaraid/megaraid_sas_base.c 				dma_free_coherent(&instance->pdev->dev,
instance         8247 drivers/scsi/megaraid/megaraid_sas_base.c 				dma_free_coherent(&instance->pdev->dev,
instance         8255 drivers/scsi/megaraid/megaraid_sas_base.c 	megasas_return_cmd(instance, cmd);
instance         8264 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         8271 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = megasas_lookup_instance(ioc->host_no);
instance         8272 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance) {
instance         8278 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->requestorId && !allow_vf_ioctls) {
instance         8283 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR) {
instance         8284 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "Controller in crit error\n");
instance         8289 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->unload == 1) {
instance         8294 drivers/scsi/megaraid/megaraid_sas_base.c 	if (down_interruptible(&instance->ioctl_sem)) {
instance         8299 drivers/scsi/megaraid/megaraid_sas_base.c 	if  (megasas_wait_for_adapter_operational(instance)) {
instance         8304 drivers/scsi/megaraid/megaraid_sas_base.c 	error = megasas_mgmt_fw_ioctl(instance, user_ioc, ioc);
instance         8306 drivers/scsi/megaraid/megaraid_sas_base.c 	up(&instance->ioctl_sem);
instance         8315 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance;
instance         8328 drivers/scsi/megaraid/megaraid_sas_base.c 	instance = megasas_lookup_instance(aen.host_no);
instance         8330 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance)
instance         8333 drivers/scsi/megaraid/megaraid_sas_base.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR) {
instance         8337 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->unload == 1) {
instance         8341 drivers/scsi/megaraid/megaraid_sas_base.c 	if  (megasas_wait_for_adapter_operational(instance))
instance         8344 drivers/scsi/megaraid/megaraid_sas_base.c 	mutex_lock(&instance->reset_mutex);
instance         8345 drivers/scsi/megaraid/megaraid_sas_base.c 	error = megasas_register_aen(instance, aen.seq_num,
instance         8347 drivers/scsi/megaraid/megaraid_sas_base.c 	mutex_unlock(&instance->reset_mutex);
instance         8561 drivers/scsi/megaraid/megaraid_sas_base.c int megasas_update_device_list(struct megasas_instance *instance,
instance         8566 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->enable_fw_dev_list) {
instance         8567 drivers/scsi/megaraid/megaraid_sas_base.c 		dcmd_ret = megasas_host_device_list_query(instance, false);
instance         8572 drivers/scsi/megaraid/megaraid_sas_base.c 			dcmd_ret = megasas_get_pd_list(instance);
instance         8579 drivers/scsi/megaraid/megaraid_sas_base.c 			if (!instance->requestorId ||
instance         8580 drivers/scsi/megaraid/megaraid_sas_base.c 			    (instance->requestorId &&
instance         8581 drivers/scsi/megaraid/megaraid_sas_base.c 			     megasas_get_ld_vf_affiliation(instance, 0))) {
instance         8582 drivers/scsi/megaraid/megaraid_sas_base.c 				dcmd_ret = megasas_ld_list_query(instance,
instance         8602 drivers/scsi/megaraid/megaraid_sas_base.c void megasas_add_remove_devices(struct megasas_instance *instance,
instance         8614 drivers/scsi/megaraid/megaraid_sas_base.c 	host = instance->host;
instance         8616 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->enable_fw_dev_list) {
instance         8617 drivers/scsi/megaraid/megaraid_sas_base.c 		targetid_list = instance->host_device_list_buf;
instance         8646 drivers/scsi/megaraid/megaraid_sas_base.c 				if (instance->pd_list[pd_index].driveState ==
instance         8666 drivers/scsi/megaraid/megaraid_sas_base.c 				if (instance->ld_ids[ld_index] != 0xff) {
instance         8686 drivers/scsi/megaraid/megaraid_sas_base.c 	struct megasas_instance *instance = ev->instance;
instance         8693 drivers/scsi/megaraid/megaraid_sas_base.c 	if (!instance) {
instance         8700 drivers/scsi/megaraid/megaraid_sas_base.c 	mutex_lock(&instance->reset_mutex);
instance         8702 drivers/scsi/megaraid/megaraid_sas_base.c 	instance->ev = NULL;
instance         8703 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->evt_detail) {
instance         8704 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_decode_evt(instance);
instance         8706 drivers/scsi/megaraid/megaraid_sas_base.c 		switch (le32_to_cpu(instance->evt_detail->code)) {
instance         8724 drivers/scsi/megaraid/megaraid_sas_base.c 			dev_info(&instance->pdev->dev, "scanning for scsi%d...\n",
instance         8725 drivers/scsi/megaraid/megaraid_sas_base.c 				instance->host->host_no);
instance         8729 drivers/scsi/megaraid/megaraid_sas_base.c 			dcmd_ret = megasas_get_ctrl_info(instance);
instance         8731 drivers/scsi/megaraid/megaraid_sas_base.c 			    instance->snapdump_wait_time) {
instance         8732 drivers/scsi/megaraid/megaraid_sas_base.c 				megasas_get_snapdump_properties(instance);
instance         8733 drivers/scsi/megaraid/megaraid_sas_base.c 				dev_info(&instance->pdev->dev,
instance         8735 drivers/scsi/megaraid/megaraid_sas_base.c 					 instance->snapdump_wait_time);
instance         8743 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev, "invalid evt_detail!\n");
instance         8744 drivers/scsi/megaraid/megaraid_sas_base.c 		mutex_unlock(&instance->reset_mutex);
instance         8750 drivers/scsi/megaraid/megaraid_sas_base.c 		dcmd_ret = megasas_update_device_list(instance, event_type);
instance         8752 drivers/scsi/megaraid/megaraid_sas_base.c 	mutex_unlock(&instance->reset_mutex);
instance         8755 drivers/scsi/megaraid/megaraid_sas_base.c 		megasas_add_remove_devices(instance, event_type);
instance         8758 drivers/scsi/megaraid/megaraid_sas_base.c 		seq_num = le32_to_cpu(instance->evt_detail->seq_num) + 1;
instance         8760 drivers/scsi/megaraid/megaraid_sas_base.c 		seq_num = instance->last_seq_num;
instance         8767 drivers/scsi/megaraid/megaraid_sas_base.c 	if (instance->aen_cmd != NULL) {
instance         8772 drivers/scsi/megaraid/megaraid_sas_base.c 	mutex_lock(&instance->reset_mutex);
instance         8773 drivers/scsi/megaraid/megaraid_sas_base.c 	error = megasas_register_aen(instance, seq_num,
instance         8776 drivers/scsi/megaraid/megaraid_sas_base.c 		dev_err(&instance->pdev->dev,
instance         8779 drivers/scsi/megaraid/megaraid_sas_base.c 	mutex_unlock(&instance->reset_mutex);
instance           62 drivers/scsi/megaraid/megaraid_sas_debugfs.c 	struct megasas_instance *instance = inode->i_private;
instance           66 drivers/scsi/megaraid/megaraid_sas_debugfs.c 	fusion = instance->ctrl_context;
instance           72 drivers/scsi/megaraid/megaraid_sas_debugfs.c 	debug->buf = (void *)fusion->ld_drv_map[(instance->map_id & 1)];
instance          122 drivers/scsi/megaraid/megaraid_sas_debugfs.c megasas_setup_debugfs(struct megasas_instance *instance)
instance          127 drivers/scsi/megaraid/megaraid_sas_debugfs.c 	fusion = instance->ctrl_context;
instance          131 drivers/scsi/megaraid/megaraid_sas_debugfs.c 			 "scsi_host%d", instance->host->host_no);
instance          132 drivers/scsi/megaraid/megaraid_sas_debugfs.c 		if (!instance->debugfs_root) {
instance          133 drivers/scsi/megaraid/megaraid_sas_debugfs.c 			instance->debugfs_root =
instance          135 drivers/scsi/megaraid/megaraid_sas_debugfs.c 			if (!instance->debugfs_root) {
instance          136 drivers/scsi/megaraid/megaraid_sas_debugfs.c 				dev_err(&instance->pdev->dev,
instance          143 drivers/scsi/megaraid/megaraid_sas_debugfs.c 		instance->raidmap_dump =
instance          145 drivers/scsi/megaraid/megaraid_sas_debugfs.c 					    instance->debugfs_root, instance,
instance          147 drivers/scsi/megaraid/megaraid_sas_debugfs.c 		if (!instance->raidmap_dump) {
instance          148 drivers/scsi/megaraid/megaraid_sas_debugfs.c 			dev_err(&instance->pdev->dev,
instance          150 drivers/scsi/megaraid/megaraid_sas_debugfs.c 			debugfs_remove(instance->debugfs_root);
instance          161 drivers/scsi/megaraid/megaraid_sas_debugfs.c void megasas_destroy_debugfs(struct megasas_instance *instance)
instance          163 drivers/scsi/megaraid/megaraid_sas_debugfs.c 	debugfs_remove_recursive(instance->debugfs_root);
instance          173 drivers/scsi/megaraid/megaraid_sas_debugfs.c void megasas_setup_debugfs(struct megasas_instance *instance)
instance          176 drivers/scsi/megaraid/megaraid_sas_debugfs.c void megasas_destroy_debugfs(struct megasas_instance *instance)
instance           64 drivers/scsi/megaraid/megaraid_sas_fp.c static u8 mr_spanset_get_phy_params(struct megasas_instance *instance, u32 ld,
instance           67 drivers/scsi/megaraid/megaraid_sas_fp.c static u64 get_row_from_strip(struct megasas_instance *instance, u32 ld,
instance          158 drivers/scsi/megaraid/megaraid_sas_fp.c static int MR_PopulateDrvRaidMap(struct megasas_instance *instance, u64 map_id)
instance          160 drivers/scsi/megaraid/megaraid_sas_fp.c 	struct fusion_context *fusion = instance->ctrl_context;
instance          179 drivers/scsi/megaraid/megaraid_sas_fp.c 	if (instance->max_raid_mapsize) {
instance          184 drivers/scsi/megaraid/megaraid_sas_fp.c 			dev_dbg(&instance->pdev->dev, "offsets of desc table are not matching desc %p original %p\n",
instance          237 drivers/scsi/megaraid/megaraid_sas_fp.c 				dev_dbg(&instance->pdev->dev, "wrong number of desctableElements %d\n",
instance          243 drivers/scsi/megaraid/megaraid_sas_fp.c 	} else if (instance->supportmax256vd) {
instance          248 drivers/scsi/megaraid/megaraid_sas_fp.c 			dev_dbg(&instance->pdev->dev, "megaraid_sas: LD count exposed in RAID map in not valid\n");
instance          276 drivers/scsi/megaraid/megaraid_sas_fp.c 			dev_dbg(&instance->pdev->dev,
instance          303 drivers/scsi/megaraid/megaraid_sas_fp.c u8 MR_ValidateMapInfo(struct megasas_instance *instance, u64 map_id)
instance          315 drivers/scsi/megaraid/megaraid_sas_fp.c 	if (MR_PopulateDrvRaidMap(instance, map_id))
instance          318 drivers/scsi/megaraid/megaraid_sas_fp.c 	fusion = instance->ctrl_context;
instance          325 drivers/scsi/megaraid/megaraid_sas_fp.c 	if (instance->max_raid_mapsize)
instance          327 drivers/scsi/megaraid/megaraid_sas_fp.c 	else if (instance->supportmax256vd)
instance          335 drivers/scsi/megaraid/megaraid_sas_fp.c 		dev_dbg(&instance->pdev->dev, "megasas: map info structure size 0x%x",
instance          337 drivers/scsi/megaraid/megaraid_sas_fp.c 		dev_dbg(&instance->pdev->dev, "is not matching expected size 0x%x\n",
instance          339 drivers/scsi/megaraid/megaraid_sas_fp.c 		dev_err(&instance->pdev->dev, "megasas: span map %x, pDrvRaidMap->totalSize : %x\n",
instance          345 drivers/scsi/megaraid/megaraid_sas_fp.c 	if (instance->UnevenSpanSupport)
instance          421 drivers/scsi/megaraid/megaraid_sas_fp.c u32 mr_spanset_get_span_block(struct megasas_instance *instance,
instance          424 drivers/scsi/megaraid/megaraid_sas_fp.c 	struct fusion_context *fusion = instance->ctrl_context;
instance          484 drivers/scsi/megaraid/megaraid_sas_fp.c static u64  get_row_from_strip(struct megasas_instance *instance,
instance          487 drivers/scsi/megaraid/megaraid_sas_fp.c 	struct fusion_context *fusion = instance->ctrl_context;
instance          541 drivers/scsi/megaraid/megaraid_sas_fp.c static u64 get_strip_from_row(struct megasas_instance *instance,
instance          544 drivers/scsi/megaraid/megaraid_sas_fp.c 	struct fusion_context *fusion = instance->ctrl_context;
instance          580 drivers/scsi/megaraid/megaraid_sas_fp.c 	dev_err(&instance->pdev->dev, "get_strip_from_row"
instance          602 drivers/scsi/megaraid/megaraid_sas_fp.c static u32 get_arm_from_strip(struct megasas_instance *instance,
instance          605 drivers/scsi/megaraid/megaraid_sas_fp.c 	struct fusion_context *fusion = instance->ctrl_context;
instance          638 drivers/scsi/megaraid/megaraid_sas_fp.c 	dev_err(&instance->pdev->dev, "get_arm_from_strip"
instance          646 drivers/scsi/megaraid/megaraid_sas_fp.c u8 get_arm(struct megasas_instance *instance, u32 ld, u8 span, u64 stripe,
instance          661 drivers/scsi/megaraid/megaraid_sas_fp.c 		arm = get_arm_from_strip(instance, ld, stripe, map);
instance          688 drivers/scsi/megaraid/megaraid_sas_fp.c static u8 mr_spanset_get_phy_params(struct megasas_instance *instance, u32 ld,
instance          704 drivers/scsi/megaraid/megaraid_sas_fp.c 	fusion = instance->ctrl_context;
instance          713 drivers/scsi/megaraid/megaraid_sas_fp.c 		logArm = get_arm_from_strip(instance, ld, stripRow, map);
instance          724 drivers/scsi/megaraid/megaraid_sas_fp.c 		physArm = get_arm(instance, ld, span, stripRow, map);
instance          735 drivers/scsi/megaraid/megaraid_sas_fp.c 		if ((instance->adapter_type >= VENTURA_SERIES) &&
instance          745 drivers/scsi/megaraid/megaraid_sas_fp.c 			((instance->adapter_type == THUNDERBOLT_SERIES)  ||
instance          746 drivers/scsi/megaraid/megaraid_sas_fp.c 			((instance->adapter_type == INVADER_SERIES) &&
instance          760 drivers/scsi/megaraid/megaraid_sas_fp.c 	if (instance->adapter_type >= VENTURA_SERIES) {
instance          791 drivers/scsi/megaraid/megaraid_sas_fp.c u8 MR_GetPhyParams(struct megasas_instance *instance, u32 ld, u64 stripRow,
instance          806 drivers/scsi/megaraid/megaraid_sas_fp.c 	fusion = instance->ctrl_context;
instance          851 drivers/scsi/megaraid/megaraid_sas_fp.c 		if ((instance->adapter_type >= VENTURA_SERIES) &&
instance          861 drivers/scsi/megaraid/megaraid_sas_fp.c 			((instance->adapter_type == THUNDERBOLT_SERIES)  ||
instance          862 drivers/scsi/megaraid/megaraid_sas_fp.c 			((instance->adapter_type == INVADER_SERIES) &&
instance          878 drivers/scsi/megaraid/megaraid_sas_fp.c 	if (instance->adapter_type >= VENTURA_SERIES) {
instance          904 drivers/scsi/megaraid/megaraid_sas_fp.c static void mr_get_phy_params_r56_rmw(struct megasas_instance *instance,
instance          973 drivers/scsi/megaraid/megaraid_sas_fp.c MR_BuildRaidContext(struct megasas_instance *instance,
instance         1000 drivers/scsi/megaraid/megaraid_sas_fp.c 	fusion = instance->ctrl_context;
instance         1014 drivers/scsi/megaraid/megaraid_sas_fp.c 		else if (instance->UnevenSpanSupport) {
instance         1017 drivers/scsi/megaraid/megaraid_sas_fp.c 			dev_info(&instance->pdev->dev,
instance         1042 drivers/scsi/megaraid/megaraid_sas_fp.c 		start_row = get_row_from_strip(instance, ld, start_strip, map);
instance         1043 drivers/scsi/megaraid/megaraid_sas_fp.c 		endRow	  = get_row_from_strip(instance, ld, endStrip, map);
instance         1045 drivers/scsi/megaraid/megaraid_sas_fp.c 			dev_info(&instance->pdev->dev, "return from %s %d."
instance         1055 drivers/scsi/megaraid/megaraid_sas_fp.c 			startlba_span = (u8)mr_spanset_get_span_block(instance,
instance         1058 drivers/scsi/megaraid/megaraid_sas_fp.c 			dev_info(&instance->pdev->dev, "return from %s %d"
instance         1133 drivers/scsi/megaraid/megaraid_sas_fp.c 		if (start_strip == (get_strip_from_row(instance, ld, start_row, map) +
instance         1148 drivers/scsi/megaraid/megaraid_sas_fp.c 		if (endStrip == get_strip_from_row(instance, ld, endRow, map))
instance         1158 drivers/scsi/megaraid/megaraid_sas_fp.c 	if (instance->adapter_type == INVADER_SERIES)
instance         1161 drivers/scsi/megaraid/megaraid_sas_fp.c 	else if (instance->adapter_type == THUNDERBOLT_SERIES)
instance         1173 drivers/scsi/megaraid/megaraid_sas_fp.c 		mr_get_phy_params_r56_rmw(instance, ld, start_strip, io_info,
instance         1183 drivers/scsi/megaraid/megaraid_sas_fp.c 				mr_spanset_get_phy_params(instance, ld,
instance         1186 drivers/scsi/megaraid/megaraid_sas_fp.c 				MR_GetPhyParams(instance, ld, start_strip,
instance         1197 drivers/scsi/megaraid/megaraid_sas_fp.c 				mr_spanset_get_phy_params(instance, ld,
instance         1201 drivers/scsi/megaraid/megaraid_sas_fp.c 				MR_GetPhyParams(instance, ld,
instance         1350 drivers/scsi/megaraid/megaraid_sas_fp.c u8 megasas_get_best_arm_pd(struct megasas_instance *instance,
instance         1371 drivers/scsi/megaraid/megaraid_sas_fp.c 	span_row_size = instance->UnevenSpanSupport ?
instance         1412 drivers/scsi/megaraid/megaraid_sas_fp.c __le16 get_updated_dev_handle(struct megasas_instance *instance,
instance         1421 drivers/scsi/megaraid/megaraid_sas_fp.c 	arm_pd  = megasas_get_best_arm_pd(instance, lbInfo, io_info, drv_map);
instance           51 drivers/scsi/megaraid/megaraid_sas_fusion.c extern void megasas_free_cmds(struct megasas_instance *instance);
instance           53 drivers/scsi/megaraid/megaraid_sas_fusion.c 					   *instance);
instance           55 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_complete_cmd(struct megasas_instance *instance,
instance           58 drivers/scsi/megaraid/megaraid_sas_fusion.c wait_and_poll(struct megasas_instance *instance, struct megasas_cmd *cmd,
instance           62 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_return_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd);
instance           63 drivers/scsi/megaraid/megaraid_sas_fusion.c int megasas_alloc_cmds(struct megasas_instance *instance);
instance           65 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_clear_intr_fusion(struct megasas_instance *instance);
instance           67 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_issue_polled(struct megasas_instance *instance,
instance           70 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_check_and_restore_queue_depth(struct megasas_instance *instance);
instance           72 drivers/scsi/megaraid/megaraid_sas_fusion.c int megasas_transition_to_ready(struct megasas_instance *instance, int ocr);
instance           73 drivers/scsi/megaraid/megaraid_sas_fusion.c void megaraid_sas_kill_hba(struct megasas_instance *instance);
instance           76 drivers/scsi/megaraid/megaraid_sas_fusion.c int megasas_sriov_start_heartbeat(struct megasas_instance *instance,
instance           78 drivers/scsi/megaraid/megaraid_sas_fusion.c void megasas_start_timer(struct megasas_instance *instance);
instance           82 drivers/scsi/megaraid/megaraid_sas_fusion.c static void megasas_free_rdpq_fusion(struct megasas_instance *instance);
instance           83 drivers/scsi/megaraid/megaraid_sas_fusion.c static void megasas_free_reply_fusion(struct megasas_instance *instance);
instance           85 drivers/scsi/megaraid/megaraid_sas_fusion.c void megasas_configure_queue_sizes(struct megasas_instance *instance);
instance           86 drivers/scsi/megaraid/megaraid_sas_fusion.c static void megasas_fusion_crash_dump(struct megasas_instance *instance);
instance           87 drivers/scsi/megaraid/megaraid_sas_fusion.c extern u32 megasas_readl(struct megasas_instance *instance,
instance          103 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_adp_reset_wait_for_ready(struct megasas_instance *instance,
instance          114 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_info(&instance->pdev->dev,
instance          118 drivers/scsi/megaraid/megaraid_sas_fusion.c 	pci_cfg_access_lock(instance->pdev);
instance          121 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->instancet->adp_reset
instance          122 drivers/scsi/megaraid/megaraid_sas_fusion.c 			(instance, instance->reg_set))
instance          127 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (megasas_transition_to_ready(instance, ocr_context)) {
instance          128 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_warn(&instance->pdev->dev,
instance          130 drivers/scsi/megaraid/megaraid_sas_fusion.c 			 instance->host->host_no);
instance          137 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_info(&instance->pdev->dev,
instance          141 drivers/scsi/megaraid/megaraid_sas_fusion.c 	pci_cfg_access_unlock(instance->pdev);
instance          158 drivers/scsi/megaraid/megaraid_sas_fusion.c 	(struct megasas_instance *instance, dma_addr_t start_addr, size_t size)
instance          165 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance          180 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_enable_intr_fusion(struct megasas_instance *instance)
instance          183 drivers/scsi/megaraid/megaraid_sas_fusion.c 	regs = instance->reg_set;
instance          185 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->mask_interrupts = 0;
instance          193 drivers/scsi/megaraid/megaraid_sas_fusion.c 	dev_info(&instance->pdev->dev, "%s is called outbound_intr_mask:0x%08x\n",
instance          202 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_disable_intr_fusion(struct megasas_instance *instance)
instance          206 drivers/scsi/megaraid/megaraid_sas_fusion.c 	regs = instance->reg_set;
instance          207 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->mask_interrupts = 1;
instance          211 drivers/scsi/megaraid/megaraid_sas_fusion.c 	dev_info(&instance->pdev->dev, "%s is called outbound_intr_mask:0x%08x\n",
instance          216 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_clear_intr_fusion(struct megasas_instance *instance)
instance          220 drivers/scsi/megaraid/megaraid_sas_fusion.c 	regs = instance->reg_set;
instance          224 drivers/scsi/megaraid/megaraid_sas_fusion.c 	status = megasas_readl(instance,
instance          245 drivers/scsi/megaraid/megaraid_sas_fusion.c 						  *instance, u32 blk_tag)
instance          249 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance          258 drivers/scsi/megaraid/megaraid_sas_fusion.c inline void megasas_return_cmd_fusion(struct megasas_instance *instance,
instance          273 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_write_64bit_req_desc(struct megasas_instance *instance,
instance          279 drivers/scsi/megaraid/megaraid_sas_fusion.c 	writeq(req_data, &instance->reg_set->inbound_low_queue_port);
instance          282 drivers/scsi/megaraid/megaraid_sas_fusion.c 	spin_lock_irqsave(&instance->hba_lock, flags);
instance          284 drivers/scsi/megaraid/megaraid_sas_fusion.c 		&instance->reg_set->inbound_low_queue_port);
instance          286 drivers/scsi/megaraid/megaraid_sas_fusion.c 		&instance->reg_set->inbound_high_queue_port);
instance          287 drivers/scsi/megaraid/megaraid_sas_fusion.c 	spin_unlock_irqrestore(&instance->hba_lock, flags);
instance          300 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_fire_cmd_fusion(struct megasas_instance *instance,
instance          303 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->atomic_desc_support)
instance          305 drivers/scsi/megaraid/megaraid_sas_fusion.c 			&instance->reg_set->inbound_single_queue_port);
instance          307 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_write_64bit_req_desc(instance, req_desc);
instance          322 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_fusion_update_can_queue(struct megasas_instance *instance, int fw_boot_context)
instance          328 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->adapter_type < VENTURA_SERIES)
instance          330 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_readl(instance,
instance          331 drivers/scsi/megaraid/megaraid_sas_fusion.c 			      &instance->reg_set->outbound_scratch_pad_2) & 0x00FFFF;
instance          334 drivers/scsi/megaraid/megaraid_sas_fusion.c 		cur_max_fw_cmds = instance->instancet->read_fw_status_reg(instance) & 0x00FFFF;
instance          337 drivers/scsi/megaraid/megaraid_sas_fusion.c 			(instance->instancet->read_fw_status_reg(instance) & 0x00FFFF) - MEGASAS_FUSION_IOCTL_CMDS;
instance          339 drivers/scsi/megaraid/megaraid_sas_fusion.c 	dev_info(&instance->pdev->dev,
instance          345 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (cur_max_fw_cmds < instance->max_fw_cmds) {
instance          346 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->cur_can_queue =
instance          349 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->host->can_queue = instance->cur_can_queue;
instance          350 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->ldio_threshold = ldio_threshold;
instance          353 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->max_fw_cmds = cur_max_fw_cmds;
instance          354 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->ldio_threshold = ldio_threshold;
instance          357 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->max_fw_cmds = min(instance->max_fw_cmds,
instance          364 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->max_fw_cmds = instance->max_fw_cmds-1;
instance          372 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_free_cmds_fusion(struct megasas_instance *instance)
instance          375 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct fusion_context *fusion = instance->ctrl_context;
instance          384 drivers/scsi/megaraid/megaraid_sas_fusion.c 		for (i = 0; i < instance->max_mpt_cmds; i++) {
instance          408 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->is_rdpq)
instance          409 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_free_rdpq_fusion(instance);
instance          411 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_free_reply_fusion(instance);
instance          415 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dma_free_coherent(&instance->pdev->dev,
instance          433 drivers/scsi/megaraid/megaraid_sas_fusion.c static int megasas_create_sg_sense_fusion(struct megasas_instance *instance)
instance          442 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance          443 drivers/scsi/megaraid/megaraid_sas_fusion.c 	max_cmd = instance->max_fw_cmds;
instance          444 drivers/scsi/megaraid/megaraid_sas_fusion.c 	sense_sz = instance->max_mpt_cmds * SCSI_SENSE_BUFFERSIZE;
instance          447 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dma_pool_create("mr_sg", &instance->pdev->dev,
instance          448 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->max_chain_frame_sz,
instance          452 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dma_pool_create("mr_sense", &instance->pdev->dev,
instance          456 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance          464 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance          480 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (!megasas_check_same_4gb_region(instance, fusion->sense_phys_addr,
instance          488 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dma_pool_create("mr_sense_align", &instance->pdev->dev,
instance          492 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev,
instance          500 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev,
instance          519 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev,
instance          526 drivers/scsi/megaraid/megaraid_sas_fusion.c 	for (i = max_cmd; i < instance->max_mpt_cmds; i++) {
instance          538 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_alloc_cmdlist_fusion(struct megasas_instance *instance)
instance          543 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance          545 drivers/scsi/megaraid/megaraid_sas_fusion.c 	max_mpt_cmd = instance->max_mpt_cmds;
instance          556 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance          568 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev,
instance          578 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_alloc_request_fusion(struct megasas_instance *instance)
instance          582 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance          586 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dma_pool_create("mr_ioreq", &instance->pdev->dev,
instance          590 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance          600 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->max_fw_cmds >= (MEGASAS_REDUCE_QD_COUNT * 2)) {
instance          601 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->max_fw_cmds -= MEGASAS_REDUCE_QD_COUNT;
instance          603 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_configure_queue_sizes(instance);
instance          606 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev,
instance          612 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (!megasas_check_same_4gb_region(instance,
instance          623 drivers/scsi/megaraid/megaraid_sas_fusion.c 					&instance->pdev->dev,
instance          629 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev,
instance          640 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev,
instance          647 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dma_alloc_coherent(&instance->pdev->dev,
instance          651 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance          660 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_alloc_reply_fusion(struct megasas_instance *instance)
instance          665 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance          667 drivers/scsi/megaraid/megaraid_sas_fusion.c 	count = instance->msix_vectors > 0 ? instance->msix_vectors : 1;
instance          669 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dma_pool_create("mr_reply", &instance->pdev->dev,
instance          673 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance          682 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance          687 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (!megasas_check_same_4gb_region(instance,
instance          698 drivers/scsi/megaraid/megaraid_sas_fusion.c 					&instance->pdev->dev,
instance          704 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev,
instance          715 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev,
instance          737 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_alloc_rdpq_fusion(struct megasas_instance *instance)
instance          747 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance          752 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion->rdpq_virt = dma_alloc_coherent(&instance->pdev->dev,
instance          756 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance          761 drivers/scsi/megaraid/megaraid_sas_fusion.c 	msix_count = instance->msix_vectors > 0 ? instance->msix_vectors : 1;
instance          764 drivers/scsi/megaraid/megaraid_sas_fusion.c 							 &instance->pdev->dev,
instance          768 drivers/scsi/megaraid/megaraid_sas_fusion.c 						&instance->pdev->dev,
instance          775 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance          795 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev,
instance          811 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (!megasas_check_same_4gb_region(instance, rdpq_chunk_phys[i],
instance          821 drivers/scsi/megaraid/megaraid_sas_fusion.c 				dev_err(&instance->pdev->dev,
instance          861 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_free_rdpq_fusion(struct megasas_instance *instance) {
instance          866 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance          880 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dma_free_coherent(&instance->pdev->dev,
instance          886 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_free_reply_fusion(struct megasas_instance *instance) {
instance          890 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance          919 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_alloc_cmds_fusion(struct megasas_instance *instance)
instance          929 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance          931 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (megasas_alloc_request_fusion(instance))
instance          934 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->is_rdpq) {
instance          935 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (megasas_alloc_rdpq_fusion(instance))
instance          938 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (megasas_alloc_reply_fusion(instance))
instance          941 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (megasas_alloc_cmdlist_fusion(instance))
instance          944 drivers/scsi/megaraid/megaraid_sas_fusion.c 	dev_info(&instance->pdev->dev, "Configured max firmware commands: %d\n",
instance          945 drivers/scsi/megaraid/megaraid_sas_fusion.c 		 instance->max_fw_cmds);
instance          956 drivers/scsi/megaraid/megaraid_sas_fusion.c 	for (i = 0; i < instance->max_mpt_cmds; i++) {
instance          963 drivers/scsi/megaraid/megaraid_sas_fusion.c 		(i >= instance->max_scsi_cmds && i < instance->max_fw_cmds) ?
instance          964 drivers/scsi/megaraid/megaraid_sas_fusion.c 				(i - instance->max_scsi_cmds) :
instance          966 drivers/scsi/megaraid/megaraid_sas_fusion.c 		cmd->instance = instance;
instance          976 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (megasas_create_sg_sense_fusion(instance))
instance          982 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_free_cmds_fusion(instance);
instance          994 drivers/scsi/megaraid/megaraid_sas_fusion.c wait_and_poll(struct megasas_instance *instance, struct megasas_cmd *cmd,
instance         1010 drivers/scsi/megaraid/megaraid_sas_fusion.c 			status_reg = instance->instancet->read_fw_status_reg(instance)
instance         1032 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_ioc_init_fusion(struct megasas_instance *instance)
instance         1050 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         1058 drivers/scsi/megaraid/megaraid_sas_fusion.c 		(instance, &instance->reg_set->outbound_scratch_pad_1);
instance         1062 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->adapter_type == INVADER_SERIES) {
instance         1066 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->consistent_mask_64bit && !cur_fw_64bit_dma_capable) {
instance         1067 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev, "Driver was operating on 64bit "
instance         1069 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megaraid_sas_kill_hba(instance);
instance         1075 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->is_rdpq && !cur_rdpq_mode) {
instance         1076 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev, "Firmware downgrade *NOT SUPPORTED*"
instance         1085 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if ((instance->low_latency_index_start ==
instance         1087 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->perf_mode = MR_BALANCED_PERF_MODE;
instance         1089 drivers/scsi/megaraid/megaraid_sas_fusion.c 	dev_info(&instance->pdev->dev, "Performance mode :%s\n",
instance         1090 drivers/scsi/megaraid/megaraid_sas_fusion.c 		MEGASAS_PERF_MODE_2STR(instance->perf_mode));
instance         1092 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->fw_sync_cache_support = (scratch_pad_1 &
instance         1094 drivers/scsi/megaraid/megaraid_sas_fusion.c 	dev_info(&instance->pdev->dev, "FW supports sync cache\t: %s\n",
instance         1095 drivers/scsi/megaraid/megaraid_sas_fusion.c 		 instance->fw_sync_cache_support ? "Yes" : "No");
instance         1106 drivers/scsi/megaraid/megaraid_sas_fusion.c 	IOCInitMessage->ReplyDescriptorPostQueueAddress = instance->is_rdpq ?
instance         1109 drivers/scsi/megaraid/megaraid_sas_fusion.c 	IOCInitMessage->MsgFlags = instance->is_rdpq ?
instance         1113 drivers/scsi/megaraid/megaraid_sas_fusion.c 	IOCInitMessage->HostMSIxVectors = instance->msix_vectors;
instance         1133 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->adapter_type >= INVADER_SERIES)
instance         1142 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->max_chain_frame_sz > MEGASAS_CHAIN_FRAME_SZ_MIN)
instance         1154 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->consistent_mask_64bit)
instance         1161 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->system_info_buf && sys_info) {
instance         1162 drivers/scsi/megaraid/megaraid_sas_fusion.c 		memcpy(instance->system_info_buf->systemId, sys_info,
instance         1164 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->system_info_buf->systemIdLength =
instance         1166 drivers/scsi/megaraid/megaraid_sas_fusion.c 		init_frame->system_info_lo = cpu_to_le32(lower_32_bits(instance->system_info_h));
instance         1167 drivers/scsi/megaraid/megaraid_sas_fusion.c 		init_frame->system_info_hi = cpu_to_le32(upper_32_bits(instance->system_info_h));
instance         1180 drivers/scsi/megaraid/megaraid_sas_fusion.c 	switch (instance->perf_mode) {
instance         1183 drivers/scsi/megaraid/megaraid_sas_fusion.c 		       cpu_to_le16(~(~0 << instance->low_latency_index_start/8));
instance         1187 drivers/scsi/megaraid/megaraid_sas_fusion.c 		       cpu_to_le16(~(~0 << instance->msix_vectors/8));
instance         1201 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->instancet->disable_intr(instance);
instance         1204 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (megasas_readl(instance, &instance->reg_set->doorbell) & 1)
instance         1211 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_write_64bit_req_desc(instance, &req_desc);
instance         1213 drivers/scsi/megaraid/megaraid_sas_fusion.c 	wait_and_poll(instance, cmd, MFI_IO_TIMEOUT_SECS);
instance         1221 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->adapter_type >= AERO_SERIES) {
instance         1223 drivers/scsi/megaraid/megaraid_sas_fusion.c 			(instance, &instance->reg_set->outbound_scratch_pad_1);
instance         1225 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->atomic_desc_support =
instance         1228 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_info(&instance->pdev->dev, "FW supports atomic descriptor\t: %s\n",
instance         1229 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->atomic_desc_support ? "Yes" : "No");
instance         1235 drivers/scsi/megaraid/megaraid_sas_fusion.c 	dev_err(&instance->pdev->dev,
instance         1237 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->host->host_no);
instance         1252 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_sync_pd_seq_num(struct megasas_instance *instance, bool pend) {
instance         1257 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct fusion_context *fusion = instance->ctrl_context;
instance         1261 drivers/scsi/megaraid/megaraid_sas_fusion.c 	pd_sync = (void *)fusion->pd_seq_sync[(instance->pd_seq_map_id & 1)];
instance         1262 drivers/scsi/megaraid/megaraid_sas_fusion.c 	pd_seq_h = fusion->pd_seq_phys[(instance->pd_seq_map_id & 1)];
instance         1265 drivers/scsi/megaraid/megaraid_sas_fusion.c 	cmd = megasas_get_cmd(instance);
instance         1267 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance         1281 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->jbod_seq_cmd = cmd;
instance         1294 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_set_dma_settings(instance, dcmd, pd_seq_h, pd_seq_map_sz);
instance         1297 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->instancet->issue_dcmd(instance, cmd);
instance         1302 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (!instance->mask_interrupts)
instance         1303 drivers/scsi/megaraid/megaraid_sas_fusion.c 		ret = megasas_issue_blocked_cmd(instance, cmd,
instance         1306 drivers/scsi/megaraid/megaraid_sas_fusion.c 		ret = megasas_issue_polled(instance, cmd);
instance         1309 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_warn(&instance->pdev->dev,
instance         1316 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megaraid_sas_kill_hba(instance);
instance         1319 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->pd_seq_map_id++;
instance         1321 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_return_cmd(instance, cmd);
instance         1341 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_get_ld_map_info(struct megasas_instance *instance)
instance         1351 drivers/scsi/megaraid/megaraid_sas_fusion.c 	cmd = megasas_get_cmd(instance);
instance         1354 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "Failed to get cmd for map info\n");
instance         1358 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         1361 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_return_cmd(instance, cmd);
instance         1369 drivers/scsi/megaraid/megaraid_sas_fusion.c 	ci = (void *) fusion->ld_map[(instance->map_id & 1)];
instance         1370 drivers/scsi/megaraid/megaraid_sas_fusion.c 	ci_h = fusion->ld_map_phys[(instance->map_id & 1)];
instance         1373 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "Failed to alloc mem for ld_map_info\n");
instance         1374 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_return_cmd(instance, cmd);
instance         1389 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_set_dma_settings(instance, dcmd, ci_h, size_map_info);
instance         1391 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (!instance->mask_interrupts)
instance         1392 drivers/scsi/megaraid/megaraid_sas_fusion.c 		ret = megasas_issue_blocked_cmd(instance, cmd,
instance         1395 drivers/scsi/megaraid/megaraid_sas_fusion.c 		ret = megasas_issue_polled(instance, cmd);
instance         1398 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megaraid_sas_kill_hba(instance);
instance         1400 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_return_cmd(instance, cmd);
instance         1406 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_get_map_info(struct megasas_instance *instance)
instance         1408 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct fusion_context *fusion = instance->ctrl_context;
instance         1411 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (!megasas_get_ld_map_info(instance)) {
instance         1412 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (MR_ValidateMapInfo(instance, instance->map_id)) {
instance         1429 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_sync_map_info(struct megasas_instance *instance)
instance         1443 drivers/scsi/megaraid/megaraid_sas_fusion.c 	cmd = megasas_get_cmd(instance);
instance         1446 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_printk(KERN_DEBUG, &instance->pdev->dev, "Failed to get cmd for sync info\n");
instance         1450 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         1453 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_return_cmd(instance, cmd);
instance         1457 drivers/scsi/megaraid/megaraid_sas_fusion.c 	map = fusion->ld_drv_map[instance->map_id & 1];
instance         1466 drivers/scsi/megaraid/megaraid_sas_fusion.c 	  fusion->ld_map[(instance->map_id - 1) & 1];
instance         1469 drivers/scsi/megaraid/megaraid_sas_fusion.c 	ci_h = fusion->ld_map_phys[(instance->map_id - 1) & 1];
instance         1492 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_set_dma_settings(instance, dcmd, ci_h, size_map_info);
instance         1494 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->map_update_cmd = cmd;
instance         1496 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->instancet->issue_dcmd(instance, cmd);
instance         1508 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_display_intel_branding(struct megasas_instance *instance)
instance         1510 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->pdev->subsystem_vendor != PCI_VENDOR_ID_INTEL)
instance         1513 drivers/scsi/megaraid/megaraid_sas_fusion.c 	switch (instance->pdev->device) {
instance         1515 drivers/scsi/megaraid/megaraid_sas_fusion.c 		switch (instance->pdev->subsystem_device) {
instance         1517 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev, "scsi host %d: %s\n",
instance         1518 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->host->host_no,
instance         1522 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev, "scsi host %d: %s\n",
instance         1523 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->host->host_no,
instance         1527 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev, "scsi host %d: %s\n",
instance         1528 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->host->host_no,
instance         1532 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev, "scsi host %d: %s\n",
instance         1533 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->host->host_no,
instance         1541 drivers/scsi/megaraid/megaraid_sas_fusion.c 		switch (instance->pdev->subsystem_device) {
instance         1543 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev, "scsi host %d: %s\n",
instance         1544 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->host->host_no,
instance         1548 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev, "scsi host %d: %s\n",
instance         1549 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->host->host_no,
instance         1558 drivers/scsi/megaraid/megaraid_sas_fusion.c 		switch (instance->pdev->subsystem_device) {
instance         1560 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev, "scsi host %d: %s\n",
instance         1561 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->host->host_no,
instance         1580 drivers/scsi/megaraid/megaraid_sas_fusion.c static inline int megasas_allocate_raid_maps(struct megasas_instance *instance)
instance         1585 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         1600 drivers/scsi/megaraid/megaraid_sas_fusion.c 				dev_err(&instance->pdev->dev,
instance         1610 drivers/scsi/megaraid/megaraid_sas_fusion.c 		fusion->ld_map[i] = dma_alloc_coherent(&instance->pdev->dev,
instance         1615 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev,
instance         1627 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dma_free_coherent(&instance->pdev->dev,
instance         1655 drivers/scsi/megaraid/megaraid_sas_fusion.c void megasas_configure_queue_sizes(struct megasas_instance *instance)
instance         1660 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         1661 drivers/scsi/megaraid/megaraid_sas_fusion.c 	max_cmd = instance->max_fw_cmds;
instance         1663 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->adapter_type >= VENTURA_SERIES)
instance         1664 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->max_mpt_cmds = instance->max_fw_cmds * RAID_1_PEER_CMDS;
instance         1666 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->max_mpt_cmds = instance->max_fw_cmds;
instance         1668 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->max_scsi_cmds = instance->max_fw_cmds - instance->max_mfi_cmds;
instance         1669 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->cur_can_queue = instance->max_scsi_cmds;
instance         1670 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->host->can_queue = instance->cur_can_queue;
instance         1675 drivers/scsi/megaraid/megaraid_sas_fusion.c 					  instance->max_mpt_cmds;
instance         1680 drivers/scsi/megaraid/megaraid_sas_fusion.c 		 * (instance->max_mpt_cmds + 1)); /* Extra 1 for SMID 0 */
instance         1683 drivers/scsi/megaraid/megaraid_sas_fusion.c static int megasas_alloc_ioc_init_frame(struct megasas_instance *instance)
instance         1688 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         1693 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev, "Failed from func: %s line: %d\n",
instance         1698 drivers/scsi/megaraid/megaraid_sas_fusion.c 	cmd->frame = dma_alloc_coherent(&instance->pdev->dev,
instance         1703 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev, "Failed from func: %s line: %d\n",
instance         1717 drivers/scsi/megaraid/megaraid_sas_fusion.c static inline void megasas_free_ioc_init_cmd(struct megasas_instance *instance)
instance         1721 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         1724 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dma_free_coherent(&instance->pdev->dev,
instance         1739 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_init_adapter_fusion(struct megasas_instance *instance)
instance         1746 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         1748 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_fusion_update_can_queue(instance, PROBE_CONTEXT);
instance         1753 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->max_mfi_cmds =
instance         1756 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_configure_queue_sizes(instance);
instance         1758 drivers/scsi/megaraid/megaraid_sas_fusion.c 	scratch_pad_1 = megasas_readl(instance,
instance         1759 drivers/scsi/megaraid/megaraid_sas_fusion.c 				      &instance->reg_set->outbound_scratch_pad_1);
instance         1767 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->max_chain_frame_sz =
instance         1771 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->max_chain_frame_sz =
instance         1775 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->max_chain_frame_sz < MEGASAS_CHAIN_FRAME_SZ_MIN) {
instance         1776 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_warn(&instance->pdev->dev, "frame size %d invalid, fall back to legacy max frame size %d\n",
instance         1777 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->max_chain_frame_sz,
instance         1779 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->max_chain_frame_sz = MEGASAS_CHAIN_FRAME_SZ_MIN;
instance         1787 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->max_chain_frame_sz
instance         1790 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->max_num_sge =
instance         1802 drivers/scsi/megaraid/megaraid_sas_fusion.c 	count = instance->msix_vectors > 0 ? instance->msix_vectors : 1;
instance         1810 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->max_scsi_cmds = instance->max_fw_cmds -
instance         1813 drivers/scsi/megaraid/megaraid_sas_fusion.c 	sema_init(&instance->ioctl_sem, MEGASAS_FUSION_IOCTL_CMDS);
instance         1815 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (megasas_alloc_ioc_init_frame(instance))
instance         1822 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (megasas_alloc_cmds(instance))
instance         1824 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (megasas_alloc_cmds_fusion(instance))
instance         1827 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (megasas_ioc_init_fusion(instance)) {
instance         1828 drivers/scsi/megaraid/megaraid_sas_fusion.c 		status_reg = instance->instancet->read_fw_status_reg(instance);
instance         1833 drivers/scsi/megaraid/megaraid_sas_fusion.c 				(instance, true, 0) == FAILED)
instance         1836 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (megasas_ioc_init_fusion(instance))
instance         1843 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_display_intel_branding(instance);
instance         1844 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (megasas_get_ctrl_info(instance)) {
instance         1845 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance         1851 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->flag_ieee = 1;
instance         1852 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->r1_ldio_hint_default =  MR_R1_LDIO_PIGGYBACK_DEFAULT;
instance         1853 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->threshold_reply_count = instance->max_fw_cmds / 4;
instance         1856 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (megasas_allocate_raid_maps(instance))
instance         1859 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (!megasas_get_map_info(instance))
instance         1860 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_sync_map_info(instance);
instance         1865 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_free_cmds_fusion(instance);
instance         1867 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_free_cmds(instance);
instance         1869 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_free_ioc_init_cmd(instance);
instance         1880 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct megasas_instance *instance =
instance         1886 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fw_state = instance->instancet->read_fw_status_reg(instance) &
instance         1890 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dma_state = instance->instancet->read_fw_status_reg(instance) &
instance         1893 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->crash_dump_drv_support &&
instance         1894 drivers/scsi/megaraid/megaraid_sas_fusion.c 		    instance->crash_dump_app_support && dma_state) {
instance         1895 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_fusion_crash_dump(instance);
instance         1897 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->unload == 0) {
instance         1898 drivers/scsi/megaraid/megaraid_sas_fusion.c 				status = megasas_reset_fusion(instance->host, 0);
instance         1900 drivers/scsi/megaraid/megaraid_sas_fusion.c 					dev_err(&instance->pdev->dev,
instance         1909 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->fw_fault_work_q)
instance         1910 drivers/scsi/megaraid/megaraid_sas_fusion.c 		queue_delayed_work(instance->fw_fault_work_q,
instance         1911 drivers/scsi/megaraid/megaraid_sas_fusion.c 			&instance->fw_fault_work,
instance         1916 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_fusion_start_watchdog(struct megasas_instance *instance)
instance         1919 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->fw_fault_work_q)
instance         1922 drivers/scsi/megaraid/megaraid_sas_fusion.c 	INIT_DELAYED_WORK(&instance->fw_fault_work, megasas_fault_detect_work);
instance         1924 drivers/scsi/megaraid/megaraid_sas_fusion.c 	snprintf(instance->fault_handler_work_q_name,
instance         1925 drivers/scsi/megaraid/megaraid_sas_fusion.c 		 sizeof(instance->fault_handler_work_q_name),
instance         1926 drivers/scsi/megaraid/megaraid_sas_fusion.c 		 "poll_megasas%d_status", instance->host->host_no);
instance         1928 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->fw_fault_work_q =
instance         1929 drivers/scsi/megaraid/megaraid_sas_fusion.c 		create_singlethread_workqueue(instance->fault_handler_work_q_name);
instance         1930 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (!instance->fw_fault_work_q) {
instance         1931 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev, "Failed from %s %d\n",
instance         1936 drivers/scsi/megaraid/megaraid_sas_fusion.c 	queue_delayed_work(instance->fw_fault_work_q,
instance         1937 drivers/scsi/megaraid/megaraid_sas_fusion.c 			   &instance->fw_fault_work,
instance         1944 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_fusion_stop_watchdog(struct megasas_instance *instance)
instance         1948 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->fw_fault_work_q) {
instance         1949 drivers/scsi/megaraid/megaraid_sas_fusion.c 		wq = instance->fw_fault_work_q;
instance         1950 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->fw_fault_work_q = NULL;
instance         1951 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (!cancel_delayed_work_sync(&instance->fw_fault_work))
instance         2037 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_is_prp_possible(struct megasas_instance *instance,
instance         2046 drivers/scsi/megaraid/megaraid_sas_fusion.c 	mr_nvme_pg_size = max_t(u32, instance->nvme_page_size,
instance         2143 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_make_prp_nvme(struct megasas_instance *instance, struct scsi_cmnd *scmd,
instance         2157 drivers/scsi/megaraid/megaraid_sas_fusion.c 	u32 mr_nvme_pg_size = max_t(u32, instance->nvme_page_size,
instance         2160 drivers/scsi/megaraid/megaraid_sas_fusion.c 	build_prp = megasas_is_prp_possible(instance, scmd, sge_count);
instance         2180 drivers/scsi/megaraid/megaraid_sas_fusion.c 	memset(ptr_sgl, 0, instance->max_chain_frame_sz);
instance         2266 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_make_sgl_fusion(struct megasas_instance *instance,
instance         2275 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         2277 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->adapter_type >= INVADER_SERIES) {
instance         2287 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->adapter_type >= INVADER_SERIES)
instance         2297 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->adapter_type >= INVADER_SERIES) {
instance         2313 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->adapter_type >= INVADER_SERIES)
instance         2324 drivers/scsi/megaraid/megaraid_sas_fusion.c 			memset(sgl_ptr, 0, instance->max_chain_frame_sz);
instance         2343 drivers/scsi/megaraid/megaraid_sas_fusion.c int megasas_make_sgl(struct megasas_instance *instance, struct scsi_cmnd *scp,
instance         2352 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if ((sge_count > instance->max_num_sge) || (sge_count <= 0))
instance         2359 drivers/scsi/megaraid/megaraid_sas_fusion.c 		build_prp = megasas_make_prp_nvme(instance, scp, sgl_chain64,
instance         2363 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_make_sgl_fusion(instance, scp, sgl_chain64,
instance         2555 drivers/scsi/megaraid/megaraid_sas_fusion.c static void megasas_stream_detect(struct megasas_instance *instance,
instance         2559 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct fusion_context *fusion = instance->ctrl_context;
instance         2717 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_build_ldio_fusion(struct megasas_instance *instance,
instance         2738 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         2814 drivers/scsi/megaraid/megaraid_sas_fusion.c 	local_map_ptr = fusion->ld_drv_map[(instance->map_id & 1)];
instance         2817 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (ld < instance->fw_supported_vd_count)
instance         2824 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (MR_BuildRaidContext(instance, &io_info, rctx,
instance         2829 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if ((instance->perf_mode == MR_BALANCED_PERF_MODE) &&
instance         2833 drivers/scsi/megaraid/megaraid_sas_fusion.c 			mega_mod64((atomic64_add_return(1, &instance->high_iops_outstanding) /
instance         2834 drivers/scsi/megaraid/megaraid_sas_fusion.c 				MR_HIGH_IOPS_BATCH_COUNT), instance->low_latency_index_start);
instance         2835 drivers/scsi/megaraid/megaraid_sas_fusion.c 	else if (instance->msix_load_balance)
instance         2837 drivers/scsi/megaraid/megaraid_sas_fusion.c 			(mega_mod64(atomic64_add_return(1, &instance->total_io_count),
instance         2838 drivers/scsi/megaraid/megaraid_sas_fusion.c 				    instance->msix_vectors));
instance         2841 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->reply_map[raw_smp_processor_id()];
instance         2843 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->adapter_type >= VENTURA_SERIES) {
instance         2855 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (atomic_inc_return(&instance->fw_outstanding) >
instance         2856 drivers/scsi/megaraid/megaraid_sas_fusion.c 				(instance->host->can_queue)) {
instance         2858 drivers/scsi/megaraid/megaraid_sas_fusion.c 				atomic_dec(&instance->fw_outstanding);
instance         2863 drivers/scsi/megaraid/megaraid_sas_fusion.c 				atomic_dec(&instance->fw_outstanding);
instance         2866 drivers/scsi/megaraid/megaraid_sas_fusion.c 						   instance->r1_ldio_hint_default);
instance         2872 drivers/scsi/megaraid/megaraid_sas_fusion.c 			spin_lock_irqsave(&instance->stream_lock,
instance         2874 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_stream_detect(instance, cmd, &io_info);
instance         2875 drivers/scsi/megaraid/megaraid_sas_fusion.c 			spin_unlock_irqrestore(&instance->stream_lock,
instance         2901 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->adapter_type == INVADER_SERIES) {
instance         2908 drivers/scsi/megaraid/megaraid_sas_fusion.c 		} else if (instance->adapter_type >= VENTURA_SERIES) {
instance         2919 drivers/scsi/megaraid/megaraid_sas_fusion.c 				get_updated_dev_handle(instance,
instance         2924 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->adapter_type >= VENTURA_SERIES)
instance         2932 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->adapter_type >= VENTURA_SERIES)
instance         2939 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->dev_handle = !(instance->dev_handle);
instance         2941 drivers/scsi/megaraid/megaraid_sas_fusion.c 				local_map_ptr->raidMap.devHndlInfo[io_info.pd_after_lb].devHandle[instance->dev_handle];
instance         2955 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->adapter_type == INVADER_SERIES) {
instance         2966 drivers/scsi/megaraid/megaraid_sas_fusion.c 		} else if (instance->adapter_type >= VENTURA_SERIES) {
instance         2985 drivers/scsi/megaraid/megaraid_sas_fusion.c static void megasas_build_ld_nonrw_fusion(struct megasas_instance *instance,
instance         2992 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct fusion_context *fusion = instance->ctrl_context;
instance         3002 drivers/scsi/megaraid/megaraid_sas_fusion.c 	local_map_ptr = fusion->ld_drv_map[(instance->map_id & 1)];
instance         3012 drivers/scsi/megaraid/megaraid_sas_fusion.c 		device_id < instance->fw_supported_vd_count)) {
instance         3015 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (ld >= instance->fw_supported_vd_count - 1)
instance         3038 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->adapter_type < VENTURA_SERIES)
instance         3075 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_build_syspd_fusion(struct megasas_instance *instance,
instance         3088 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct fusion_context *fusion = instance->ctrl_context;
instance         3089 drivers/scsi/megaraid/megaraid_sas_fusion.c 	pd_sync = (void *)fusion->pd_seq_sync[(instance->pd_seq_map_id - 1) & 1];
instance         3109 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->support_seqnum_jbod_fp) {
instance         3110 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->use_seqnum_jbod_fp &&
instance         3111 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->pd_list[pd_index].driveType == TYPE_DISK) {
instance         3114 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->support_morethan256jbod)
instance         3125 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->adapter_type >= VENTURA_SERIES) {
instance         3152 drivers/scsi/megaraid/megaraid_sas_fusion.c 				fusion->ld_drv_map[(instance->map_id & 1)];
instance         3162 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if ((instance->perf_mode == MR_BALANCED_PERF_MODE) &&
instance         3165 drivers/scsi/megaraid/megaraid_sas_fusion.c 			mega_mod64((atomic64_add_return(1, &instance->high_iops_outstanding) /
instance         3166 drivers/scsi/megaraid/megaraid_sas_fusion.c 				MR_HIGH_IOPS_BATCH_COUNT), instance->low_latency_index_start);
instance         3167 drivers/scsi/megaraid/megaraid_sas_fusion.c 	else if (instance->msix_load_balance)
instance         3169 drivers/scsi/megaraid/megaraid_sas_fusion.c 			(mega_mod64(atomic64_add_return(1, &instance->total_io_count),
instance         3170 drivers/scsi/megaraid/megaraid_sas_fusion.c 				    instance->msix_vectors));
instance         3173 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->reply_map[raw_smp_processor_id()];
instance         3194 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->adapter_type >= INVADER_SERIES)
instance         3214 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_build_io_fusion(struct megasas_instance *instance,
instance         3245 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_build_ldio_fusion(instance, scp, cmd);
instance         3248 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_build_ld_nonrw_fusion(instance, scp, cmd);
instance         3251 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_build_syspd_fusion(instance, scp, cmd, true);
instance         3254 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->secure_jbod_support ||
instance         3256 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_build_syspd_fusion(instance, scp, cmd, false);
instance         3258 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_build_syspd_fusion(instance, scp, cmd, true);
instance         3268 drivers/scsi/megaraid/megaraid_sas_fusion.c 	sge_count = megasas_make_sgl(instance, scp, cmd);
instance         3270 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (sge_count > instance->max_num_sge || (sge_count < 0)) {
instance         3271 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance         3273 drivers/scsi/megaraid/megaraid_sas_fusion.c 			__func__, __LINE__, sge_count, instance->max_num_sge);
instance         3277 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->adapter_type >= VENTURA_SERIES) {
instance         3311 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_get_request_descriptor(struct megasas_instance *instance, u16 index)
instance         3316 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         3327 drivers/scsi/megaraid/megaraid_sas_fusion.c static void megasas_prepare_secondRaid1_IO(struct megasas_instance *instance,
instance         3333 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         3344 drivers/scsi/megaraid/megaraid_sas_fusion.c 	req_desc2 = megasas_get_request_descriptor(instance,
instance         3372 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_build_and_issue_cmd_fusion(struct megasas_instance *instance,
instance         3380 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->ldio_threshold &&
instance         3381 drivers/scsi/megaraid/megaraid_sas_fusion.c 		(atomic_inc_return(&instance->ldio_outstanding) >
instance         3382 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->ldio_threshold)) {
instance         3383 drivers/scsi/megaraid/megaraid_sas_fusion.c 		atomic_dec(&instance->ldio_outstanding);
instance         3387 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (atomic_inc_return(&instance->fw_outstanding) >
instance         3388 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->host->can_queue) {
instance         3389 drivers/scsi/megaraid/megaraid_sas_fusion.c 		atomic_dec(&instance->fw_outstanding);
instance         3393 drivers/scsi/megaraid/megaraid_sas_fusion.c 	cmd = megasas_get_cmd_fusion(instance, scmd->request->tag);
instance         3396 drivers/scsi/megaraid/megaraid_sas_fusion.c 		atomic_dec(&instance->fw_outstanding);
instance         3402 drivers/scsi/megaraid/megaraid_sas_fusion.c 	req_desc = megasas_get_request_descriptor(instance, index-1);
instance         3407 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (megasas_build_io_fusion(instance, scmd, cmd)) {
instance         3408 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_return_cmd_fusion(instance, cmd);
instance         3409 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev, "Error building command\n");
instance         3411 drivers/scsi/megaraid/megaraid_sas_fusion.c 		atomic_dec(&instance->fw_outstanding);
instance         3420 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev, "The chain offset value is not "
instance         3433 drivers/scsi/megaraid/megaraid_sas_fusion.c 		r1_cmd = megasas_get_cmd_fusion(instance,
instance         3434 drivers/scsi/megaraid/megaraid_sas_fusion.c 				(scmd->request->tag + instance->max_fw_cmds));
instance         3435 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_prepare_secondRaid1_IO(instance, cmd, r1_cmd);
instance         3443 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_fire_cmd_fusion(instance, req_desc);
instance         3446 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_fire_cmd_fusion(instance, r1_cmd->request_desc);
instance         3460 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_complete_r1_command(struct megasas_instance *instance,
instance         3472 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         3494 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_return_cmd_fusion(instance, r1_cmd);
instance         3497 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->ldio_threshold &&
instance         3499 drivers/scsi/megaraid/megaraid_sas_fusion.c 			atomic_dec(&instance->ldio_outstanding);
instance         3501 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_return_cmd_fusion(instance, cmd);
instance         3513 drivers/scsi/megaraid/megaraid_sas_fusion.c complete_cmd_fusion(struct megasas_instance *instance, u32 MSIxIndex,
instance         3532 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         3534 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR)
instance         3572 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_dbg(&instance->pdev->dev, "TM completion:"
instance         3589 drivers/scsi/megaraid/megaraid_sas_fusion.c 			atomic_dec(&instance->fw_outstanding);
instance         3594 drivers/scsi/megaraid/megaraid_sas_fusion.c 				if (instance->ldio_threshold &&
instance         3596 drivers/scsi/megaraid/megaraid_sas_fusion.c 					atomic_dec(&instance->ldio_outstanding);
instance         3598 drivers/scsi/megaraid/megaraid_sas_fusion.c 				megasas_return_cmd_fusion(instance, cmd_fusion);
instance         3602 drivers/scsi/megaraid/megaraid_sas_fusion.c 				megasas_complete_r1_command(instance, cmd_fusion);
instance         3605 drivers/scsi/megaraid/megaraid_sas_fusion.c 			cmd_mfi = instance->cmd_list[cmd_fusion->sync_cmd_idx];
instance         3611 drivers/scsi/megaraid/megaraid_sas_fusion.c 				megasas_return_cmd(instance, cmd_mfi);
instance         3613 drivers/scsi/megaraid/megaraid_sas_fusion.c 				megasas_complete_cmd(instance, cmd_mfi, DID_OK);
instance         3647 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (threshold_reply_count >= instance->threshold_reply_count) {
instance         3648 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->msix_combined)
instance         3651 drivers/scsi/megaraid/megaraid_sas_fusion.c 					instance->reply_post_host_index_addr[MSIxIndex/8]);
instance         3655 drivers/scsi/megaraid/megaraid_sas_fusion.c 					instance->reply_post_host_index_addr[0]);
instance         3670 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->msix_combined)
instance         3673 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->reply_post_host_index_addr[MSIxIndex/8]);
instance         3677 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->reply_post_host_index_addr[0]);
instance         3678 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_check_and_restore_queue_depth(instance);
instance         3686 drivers/scsi/megaraid/megaraid_sas_fusion.c static void megasas_enable_irq_poll(struct megasas_instance *instance)
instance         3691 drivers/scsi/megaraid/megaraid_sas_fusion.c 	count = instance->msix_vectors > 0 ? instance->msix_vectors : 1;
instance         3694 drivers/scsi/megaraid/megaraid_sas_fusion.c 		irq_ctx = &instance->irq_context[i];
instance         3706 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct megasas_instance *instance =
instance         3710 drivers/scsi/megaraid/megaraid_sas_fusion.c 	count = instance->msix_vectors > 0 ? instance->msix_vectors : 1;
instance         3713 drivers/scsi/megaraid/megaraid_sas_fusion.c 		synchronize_irq(pci_irq_vector(instance->pdev, i));
instance         3714 drivers/scsi/megaraid/megaraid_sas_fusion.c 		irq_ctx = &instance->irq_context[i];
instance         3734 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct megasas_instance *instance;
instance         3738 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance = irq_ctx->instance;
instance         3745 drivers/scsi/megaraid/megaraid_sas_fusion.c 	num_entries = complete_cmd_fusion(instance, irq_ctx->MSIxIndex, irq_ctx);
instance         3764 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct megasas_instance *instance =
instance         3768 drivers/scsi/megaraid/megaraid_sas_fusion.c 	count = instance->msix_vectors > 0 ? instance->msix_vectors : 1;
instance         3771 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR)
instance         3775 drivers/scsi/megaraid/megaraid_sas_fusion.c 		complete_cmd_fusion(instance, MSIxIndex, NULL);
instance         3784 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct megasas_instance *instance = irq_context->instance;
instance         3787 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->mask_interrupts)
instance         3795 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (!instance->msix_vectors) {
instance         3796 drivers/scsi/megaraid/megaraid_sas_fusion.c 		mfiStatus = instance->instancet->clear_intr(instance);
instance         3802 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (test_bit(MEGASAS_FUSION_IN_RESET, &instance->reset_flags)) {
instance         3803 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->instancet->clear_intr(instance);
instance         3807 drivers/scsi/megaraid/megaraid_sas_fusion.c 	return complete_cmd_fusion(instance, irq_context->MSIxIndex, irq_context)
instance         3818 drivers/scsi/megaraid/megaraid_sas_fusion.c build_mpt_mfi_pass_thru(struct megasas_instance *instance,
instance         3827 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         3829 drivers/scsi/megaraid/megaraid_sas_fusion.c 	cmd = megasas_get_cmd_fusion(instance,
instance         3830 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->max_scsi_cmds + mfi_cmd->index);
instance         3846 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->adapter_type >= INVADER_SERIES) {
instance         3866 drivers/scsi/megaraid/megaraid_sas_fusion.c 	mpi25_ieee_chain->Length = cpu_to_le32(instance->mfi_frame_size);
instance         3876 drivers/scsi/megaraid/megaraid_sas_fusion.c build_mpt_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd)
instance         3881 drivers/scsi/megaraid/megaraid_sas_fusion.c 	build_mpt_mfi_pass_thru(instance, cmd);
instance         3884 drivers/scsi/megaraid/megaraid_sas_fusion.c 	req_desc = megasas_get_request_descriptor(instance, index - 1);
instance         3902 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_issue_dcmd_fusion(struct megasas_instance *instance,
instance         3907 drivers/scsi/megaraid/megaraid_sas_fusion.c 	req_desc = build_mpt_cmd(instance, cmd);
instance         3909 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_fire_cmd_fusion(instance, req_desc);
instance         3918 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_release_fusion(struct megasas_instance *instance)
instance         3920 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_free_ioc_init_cmd(instance);
instance         3921 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_free_cmds(instance);
instance         3922 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_free_cmds_fusion(instance);
instance         3924 drivers/scsi/megaraid/megaraid_sas_fusion.c 	iounmap(instance->reg_set);
instance         3926 drivers/scsi/megaraid/megaraid_sas_fusion.c 	pci_release_selected_regions(instance->pdev, 1<<instance->bar);
instance         3934 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_read_fw_status_reg_fusion(struct megasas_instance *instance)
instance         3936 drivers/scsi/megaraid/megaraid_sas_fusion.c 	return megasas_readl(instance, &instance->reg_set->outbound_scratch_pad_0);
instance         3945 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_alloc_host_crash_buffer(struct megasas_instance *instance)
instance         3950 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->crash_buf[i] = vzalloc(CRASH_DMA_BUF_SIZE);
instance         3951 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (!instance->crash_buf[i]) {
instance         3952 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev, "Firmware crash dump "
instance         3957 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->drv_buf_alloc = i;
instance         3965 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_free_host_crash_buffer(struct megasas_instance *instance)
instance         3968 drivers/scsi/megaraid/megaraid_sas_fusion.c 	for (i = 0; i < instance->drv_buf_alloc; i++) {
instance         3969 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->crash_buf[i])
instance         3970 drivers/scsi/megaraid/megaraid_sas_fusion.c 			vfree(instance->crash_buf[i]);
instance         3972 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->drv_buf_index = 0;
instance         3973 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->drv_buf_alloc = 0;
instance         3974 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->fw_crash_state = UNAVAILABLE;
instance         3975 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->fw_crash_buffer_size = 0;
instance         3983 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_adp_reset_fusion(struct megasas_instance *instance,
instance         3989 drivers/scsi/megaraid/megaraid_sas_fusion.c 	writel(MPI2_WRSEQ_FLUSH_KEY_VALUE, &instance->reg_set->fusion_seq_offset);
instance         3990 drivers/scsi/megaraid/megaraid_sas_fusion.c 	writel(MPI2_WRSEQ_1ST_KEY_VALUE, &instance->reg_set->fusion_seq_offset);
instance         3991 drivers/scsi/megaraid/megaraid_sas_fusion.c 	writel(MPI2_WRSEQ_2ND_KEY_VALUE, &instance->reg_set->fusion_seq_offset);
instance         3992 drivers/scsi/megaraid/megaraid_sas_fusion.c 	writel(MPI2_WRSEQ_3RD_KEY_VALUE, &instance->reg_set->fusion_seq_offset);
instance         3993 drivers/scsi/megaraid/megaraid_sas_fusion.c 	writel(MPI2_WRSEQ_4TH_KEY_VALUE, &instance->reg_set->fusion_seq_offset);
instance         3994 drivers/scsi/megaraid/megaraid_sas_fusion.c 	writel(MPI2_WRSEQ_5TH_KEY_VALUE, &instance->reg_set->fusion_seq_offset);
instance         3995 drivers/scsi/megaraid/megaraid_sas_fusion.c 	writel(MPI2_WRSEQ_6TH_KEY_VALUE, &instance->reg_set->fusion_seq_offset);
instance         3998 drivers/scsi/megaraid/megaraid_sas_fusion.c 	host_diag = megasas_readl(instance, &instance->reg_set->fusion_host_diag);
instance         4002 drivers/scsi/megaraid/megaraid_sas_fusion.c 		host_diag = megasas_readl(instance,
instance         4003 drivers/scsi/megaraid/megaraid_sas_fusion.c 					  &instance->reg_set->fusion_host_diag);
instance         4005 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_warn(&instance->pdev->dev,
instance         4016 drivers/scsi/megaraid/megaraid_sas_fusion.c 		&instance->reg_set->fusion_host_diag);
instance         4020 drivers/scsi/megaraid/megaraid_sas_fusion.c 	host_diag = megasas_readl(instance, &instance->reg_set->fusion_host_diag);
instance         4024 drivers/scsi/megaraid/megaraid_sas_fusion.c 		host_diag = megasas_readl(instance,
instance         4025 drivers/scsi/megaraid/megaraid_sas_fusion.c 					  &instance->reg_set->fusion_host_diag);
instance         4027 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_warn(&instance->pdev->dev,
instance         4036 drivers/scsi/megaraid/megaraid_sas_fusion.c 	abs_state = instance->instancet->read_fw_status_reg(instance)
instance         4042 drivers/scsi/megaraid/megaraid_sas_fusion.c 		abs_state = instance->instancet->
instance         4043 drivers/scsi/megaraid/megaraid_sas_fusion.c 			read_fw_status_reg(instance) & MFI_STATE_MASK;
instance         4046 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_warn(&instance->pdev->dev,
instance         4060 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_check_reset_fusion(struct megasas_instance *instance,
instance         4070 drivers/scsi/megaraid/megaraid_sas_fusion.c static inline void megasas_trigger_snap_dump(struct megasas_instance *instance)
instance         4075 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (!instance->disableOnlineCtrlReset) {
instance         4076 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_info(&instance->pdev->dev, "Trigger snap dump\n");
instance         4078 drivers/scsi/megaraid/megaraid_sas_fusion.c 		       &instance->reg_set->doorbell);
instance         4079 drivers/scsi/megaraid/megaraid_sas_fusion.c 		readl(&instance->reg_set->doorbell);
instance         4082 drivers/scsi/megaraid/megaraid_sas_fusion.c 	for (j = 0; j < instance->snapdump_wait_time; j++) {
instance         4083 drivers/scsi/megaraid/megaraid_sas_fusion.c 		abs_state = instance->instancet->read_fw_status_reg(instance);
instance         4086 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_printk(KERN_ERR, &instance->pdev->dev,
instance         4098 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_wait_for_outstanding_fusion(struct megasas_instance *instance,
instance         4107 drivers/scsi/megaraid/megaraid_sas_fusion.c 			(resetwaittime - instance->snapdump_wait_time));
instance         4110 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_info(&instance->pdev->dev,
instance         4112 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_complete_cmd_dpc_fusion((unsigned long)instance);
instance         4113 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->snapdump_wait_time)
instance         4114 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_trigger_snap_dump(instance);
instance         4121 drivers/scsi/megaraid/megaraid_sas_fusion.c 		abs_state = instance->instancet->read_fw_status_reg(instance);
instance         4124 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_printk(KERN_ERR, &instance->pdev->dev,
instance         4128 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_complete_cmd_dpc_fusion((unsigned long)instance);
instance         4129 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->requestorId && reason) {
instance         4130 drivers/scsi/megaraid/megaraid_sas_fusion.c 				dev_warn(&instance->pdev->dev, "SR-IOV Found FW in FAULT"
instance         4133 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->host->host_no);
instance         4143 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->requestorId && !reason) {
instance         4149 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->requestorId && (reason == SCSIIO_TIMEOUT_OCR)) {
instance         4150 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->hb_host_mem->HB.fwCounter !=
instance         4151 drivers/scsi/megaraid/megaraid_sas_fusion.c 			    instance->hb_host_mem->HB.driverCounter) {
instance         4152 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->hb_host_mem->HB.driverCounter =
instance         4153 drivers/scsi/megaraid/megaraid_sas_fusion.c 					instance->hb_host_mem->HB.fwCounter;
instance         4159 drivers/scsi/megaraid/megaraid_sas_fusion.c 					dev_warn(&instance->pdev->dev, "SR-IOV:"
instance         4164 drivers/scsi/megaraid/megaraid_sas_fusion.c 					       instance->host->host_no);
instance         4172 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_complete_cmd_dpc_fusion((unsigned long)instance);
instance         4173 drivers/scsi/megaraid/megaraid_sas_fusion.c 		outstanding = atomic_read(&instance->fw_outstanding);
instance         4178 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_notice(&instance->pdev->dev, "[%2d]waiting for %d "
instance         4180 drivers/scsi/megaraid/megaraid_sas_fusion.c 			       outstanding, instance->host->host_no);
instance         4185 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->snapdump_wait_time) {
instance         4186 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_trigger_snap_dump(instance);
instance         4191 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (atomic_read(&instance->fw_outstanding)) {
instance         4192 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev, "pending commands remain after waiting, "
instance         4194 drivers/scsi/megaraid/megaraid_sas_fusion.c 		       instance->host->host_no);
instance         4203 drivers/scsi/megaraid/megaraid_sas_fusion.c void  megasas_reset_reply_desc(struct megasas_instance *instance)
instance         4209 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         4210 drivers/scsi/megaraid/megaraid_sas_fusion.c 	count = instance->msix_vectors > 0 ? instance->msix_vectors : 1;
instance         4223 drivers/scsi/megaraid/megaraid_sas_fusion.c static void megasas_refire_mgmt_cmd(struct megasas_instance *instance)
instance         4236 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         4241 drivers/scsi/megaraid/megaraid_sas_fusion.c 	for (j = instance->max_scsi_cmds ; j < instance->max_fw_cmds; j++) {
instance         4243 drivers/scsi/megaraid/megaraid_sas_fusion.c 		cmd_mfi = instance->cmd_list[cmd_fusion->sync_cmd_idx];
instance         4250 drivers/scsi/megaraid/megaraid_sas_fusion.c 		req_desc = megasas_get_request_descriptor(instance, smid - 1);
instance         4271 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (!instance->support_nvme_passthru) {
instance         4278 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (!instance->support_pci_lane_margining) {
instance         4295 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_fire_cmd_fusion(instance, req_desc);
instance         4298 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_return_cmd(instance, cmd_mfi);
instance         4301 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_complete_cmd(instance, cmd_mfi, DID_OK);
instance         4316 drivers/scsi/megaraid/megaraid_sas_fusion.c static int megasas_track_scsiio(struct megasas_instance *instance,
instance         4322 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         4324 drivers/scsi/megaraid/megaraid_sas_fusion.c 	for (i = 0 ; i < instance->max_scsi_cmds; i++) {
instance         4329 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev,
instance         4350 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_tm_response_code(struct megasas_instance *instance,
instance         4384 drivers/scsi/megaraid/megaraid_sas_fusion.c 	dev_dbg(&instance->pdev->dev, "response_code(%01x): %s\n",
instance         4386 drivers/scsi/megaraid/megaraid_sas_fusion.c 	dev_dbg(&instance->pdev->dev,
instance         4411 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_issue_tm(struct megasas_instance *instance, u16 device_handle,
instance         4427 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         4429 drivers/scsi/megaraid/megaraid_sas_fusion.c 	cmd_mfi = megasas_get_cmd(instance);
instance         4432 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev, "Failed from %s %d\n",
instance         4437 drivers/scsi/megaraid/megaraid_sas_fusion.c 	cmd_fusion = megasas_get_cmd_fusion(instance,
instance         4438 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->max_scsi_cmds + cmd_mfi->index);
instance         4443 drivers/scsi/megaraid/megaraid_sas_fusion.c 	req_desc = megasas_get_request_descriptor(instance,
instance         4474 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_fire_cmd_fusion(instance, req_desc);
instance         4488 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev,
instance         4490 drivers/scsi/megaraid/megaraid_sas_fusion.c 		mutex_unlock(&instance->reset_mutex);
instance         4491 drivers/scsi/megaraid/megaraid_sas_fusion.c 		rc = megasas_reset_fusion(instance->host, MFI_IO_TIMEOUT_OCR);
instance         4492 drivers/scsi/megaraid/megaraid_sas_fusion.c 		mutex_lock(&instance->reset_mutex);
instance         4497 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_tm_response_code(instance, mpi_reply);
instance         4499 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_return_cmd(instance, cmd_mfi);
instance         4508 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->instancet->disable_intr(instance);
instance         4509 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_sync_irqs((unsigned long)instance);
instance         4510 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->instancet->enable_intr(instance);
instance         4511 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_enable_irq_poll(instance);
instance         4521 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->instancet->disable_intr(instance);
instance         4522 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_sync_irqs((unsigned long)instance);
instance         4523 drivers/scsi/megaraid/megaraid_sas_fusion.c 		rc = megasas_track_scsiio(instance, id, channel);
instance         4524 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->instancet->enable_intr(instance);
instance         4525 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_enable_irq_poll(instance);
instance         4549 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct megasas_instance *instance;
instance         4553 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance = (struct megasas_instance *)scmd->device->host->hostdata;
instance         4555 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         4557 drivers/scsi/megaraid/megaraid_sas_fusion.c 	for (i = 0; i < instance->max_scsi_cmds; i++) {
instance         4580 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct megasas_instance *instance;
instance         4585 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance = (struct megasas_instance *)sdev->host->hostdata;
instance         4586 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         4589 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->use_seqnum_jbod_fp) {
instance         4593 drivers/scsi/megaraid/megaraid_sas_fusion.c 					[(instance->pd_seq_map_id - 1) & 1];
instance         4616 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct megasas_instance *instance;
instance         4622 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance = (struct megasas_instance *)scmd->device->host->hostdata;
instance         4624 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (atomic_read(&instance->adprecovery) != MEGASAS_HBA_OPERATIONAL) {
instance         4625 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev, "Controller is not OPERATIONAL,"
instance         4626 drivers/scsi/megaraid/megaraid_sas_fusion.c 		"SCSI host:%d\n", instance->host->host_no);
instance         4644 drivers/scsi/megaraid/megaraid_sas_fusion.c 	mutex_lock(&instance->reset_mutex);
instance         4652 drivers/scsi/megaraid/megaraid_sas_fusion.c 		mutex_unlock(&instance->reset_mutex);
instance         4662 drivers/scsi/megaraid/megaraid_sas_fusion.c 		mutex_unlock(&instance->reset_mutex);
instance         4670 drivers/scsi/megaraid/megaraid_sas_fusion.c 	ret = megasas_issue_tm(instance, devhandle,
instance         4676 drivers/scsi/megaraid/megaraid_sas_fusion.c 	mutex_unlock(&instance->reset_mutex);
instance         4697 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct megasas_instance *instance;
instance         4703 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance = (struct megasas_instance *)scmd->device->host->hostdata;
instance         4705 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (atomic_read(&instance->adprecovery) != MEGASAS_HBA_OPERATIONAL) {
instance         4706 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev, "Controller is not OPERATIONAL,"
instance         4707 drivers/scsi/megaraid/megaraid_sas_fusion.c 		"SCSI host:%d\n", instance->host->host_no);
instance         4725 drivers/scsi/megaraid/megaraid_sas_fusion.c 	mutex_lock(&instance->reset_mutex);
instance         4732 drivers/scsi/megaraid/megaraid_sas_fusion.c 		mutex_unlock(&instance->reset_mutex);
instance         4740 drivers/scsi/megaraid/megaraid_sas_fusion.c 	ret = megasas_issue_tm(instance, devhandle,
instance         4745 drivers/scsi/megaraid/megaraid_sas_fusion.c 	mutex_unlock(&instance->reset_mutex);
instance         4755 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_instance *megasas_get_peer_instance(struct megasas_instance *instance)
instance         4760 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (megasas_mgmt_info.instance[i] &&
instance         4761 drivers/scsi/megaraid/megaraid_sas_fusion.c 			(megasas_mgmt_info.instance[i] != instance) &&
instance         4762 drivers/scsi/megaraid/megaraid_sas_fusion.c 			 megasas_mgmt_info.instance[i]->requestorId &&
instance         4763 drivers/scsi/megaraid/megaraid_sas_fusion.c 			 megasas_mgmt_info.instance[i]->peerIsPresent &&
instance         4764 drivers/scsi/megaraid/megaraid_sas_fusion.c 			(memcmp((megasas_mgmt_info.instance[i]->clusterId),
instance         4765 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->clusterId, MEGASAS_CLUSTER_ID_SIZE) == 0))
instance         4766 drivers/scsi/megaraid/megaraid_sas_fusion.c 			return megasas_mgmt_info.instance[i];
instance         4772 drivers/scsi/megaraid/megaraid_sas_fusion.c int megasas_check_mpio_paths(struct megasas_instance *instance,
instance         4778 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->peerIsPresent) {
instance         4779 drivers/scsi/megaraid/megaraid_sas_fusion.c 		peer_instance = megasas_get_peer_instance(instance);
instance         4792 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct megasas_instance *instance;
instance         4804 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance = (struct megasas_instance *)shost->hostdata;
instance         4805 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         4807 drivers/scsi/megaraid/megaraid_sas_fusion.c 	mutex_lock(&instance->reset_mutex);
instance         4809 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (atomic_read(&instance->adprecovery) == MEGASAS_HW_CRITICAL_ERROR) {
instance         4810 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_warn(&instance->pdev->dev, "Hardware critical error, "
instance         4812 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->host->host_no);
instance         4813 drivers/scsi/megaraid/megaraid_sas_fusion.c 		mutex_unlock(&instance->reset_mutex);
instance         4816 drivers/scsi/megaraid/megaraid_sas_fusion.c 	status_reg = instance->instancet->read_fw_status_reg(instance);
instance         4820 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (abs_state != MFI_STATE_FAULT && instance->crash_dump_buf &&
instance         4821 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->crash_dump_app_support && reason) {
instance         4822 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_info(&instance->pdev->dev, "IO/DCMD timeout is detected, "
instance         4824 drivers/scsi/megaraid/megaraid_sas_fusion.c 		atomic_set(&instance->adprecovery, MEGASAS_ADPRESET_SM_INFAULT);
instance         4825 drivers/scsi/megaraid/megaraid_sas_fusion.c 		status_reg = megasas_readl(instance, &instance->reg_set->doorbell);
instance         4827 drivers/scsi/megaraid/megaraid_sas_fusion.c 			&instance->reg_set->doorbell);
instance         4828 drivers/scsi/megaraid/megaraid_sas_fusion.c 		readl(&instance->reg_set->doorbell);
instance         4829 drivers/scsi/megaraid/megaraid_sas_fusion.c 		mutex_unlock(&instance->reset_mutex);
instance         4833 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_dbg(&instance->pdev->dev, "waiting for [%d] "
instance         4836 drivers/scsi/megaraid/megaraid_sas_fusion.c 		} while ((atomic_read(&instance->adprecovery) != MEGASAS_HBA_OPERATIONAL) &&
instance         4839 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (atomic_read(&instance->adprecovery) == MEGASAS_HBA_OPERATIONAL) {
instance         4840 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev, "OCR done for IO "
instance         4844 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev, "Controller is not "
instance         4853 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->requestorId && !instance->skip_heartbeat_timer_del)
instance         4854 drivers/scsi/megaraid/megaraid_sas_fusion.c 		del_timer_sync(&instance->sriov_heartbeat_timer);
instance         4855 drivers/scsi/megaraid/megaraid_sas_fusion.c 	set_bit(MEGASAS_FUSION_IN_RESET, &instance->reset_flags);
instance         4856 drivers/scsi/megaraid/megaraid_sas_fusion.c 	set_bit(MEGASAS_FUSION_OCR_NOT_POSSIBLE, &instance->reset_flags);
instance         4857 drivers/scsi/megaraid/megaraid_sas_fusion.c 	atomic_set(&instance->adprecovery, MEGASAS_ADPRESET_SM_POLLING);
instance         4858 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->instancet->disable_intr(instance);
instance         4859 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_sync_irqs((unsigned long)instance);
instance         4862 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (megasas_wait_for_outstanding_fusion(instance, reason,
instance         4864 drivers/scsi/megaraid/megaraid_sas_fusion.c 		atomic_set(&instance->adprecovery, MEGASAS_ADPRESET_SM_INFAULT);
instance         4865 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_warn(&instance->pdev->dev, "resetting fusion "
instance         4866 drivers/scsi/megaraid/megaraid_sas_fusion.c 		       "adapter scsi%d.\n", instance->host->host_no);
instance         4871 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev, "\nPending SCSI commands:\n");
instance         4874 drivers/scsi/megaraid/megaraid_sas_fusion.c 		for (i = 0 ; i < instance->max_scsi_cmds; i++) {
instance         4877 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->adapter_type >= VENTURA_SERIES) {
instance         4878 drivers/scsi/megaraid/megaraid_sas_fusion.c 				r1_cmd = fusion->cmd_list[i + instance->max_fw_cmds];
instance         4879 drivers/scsi/megaraid/megaraid_sas_fusion.c 				megasas_return_cmd_fusion(instance, r1_cmd);
instance         4895 drivers/scsi/megaraid/megaraid_sas_fusion.c 					megasas_check_mpio_paths(instance,
instance         4897 drivers/scsi/megaraid/megaraid_sas_fusion.c 				if (instance->ldio_threshold &&
instance         4899 drivers/scsi/megaraid/megaraid_sas_fusion.c 					atomic_dec(&instance->ldio_outstanding);
instance         4900 drivers/scsi/megaraid/megaraid_sas_fusion.c 				megasas_return_cmd_fusion(instance, cmd_fusion);
instance         4906 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_info(&instance->pdev->dev, "Outstanding fastpath IOs: %d\n",
instance         4909 drivers/scsi/megaraid/megaraid_sas_fusion.c 		atomic_set(&instance->fw_outstanding, 0);
instance         4911 drivers/scsi/megaraid/megaraid_sas_fusion.c 		status_reg = instance->instancet->read_fw_status_reg(instance);
instance         4914 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->disableOnlineCtrlReset ||
instance         4917 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_warn(&instance->pdev->dev, "Reset not supported"
instance         4919 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->host->host_no);
instance         4924 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->requestorId && !reason) {
instance         4936 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (megasas_adp_reset_wait_for_ready(instance,
instance         4941 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (megasas_transition_to_ready(instance, 1)) {
instance         4942 drivers/scsi/megaraid/megaraid_sas_fusion.c 				dev_warn(&instance->pdev->dev,
instance         4944 drivers/scsi/megaraid/megaraid_sas_fusion.c 					"scsi%d.\n", instance->host->host_no);
instance         4947 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_reset_reply_desc(instance);
instance         4948 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_fusion_update_can_queue(instance, OCR_CONTEXT);
instance         4950 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (megasas_ioc_init_fusion(instance)) {
instance         4954 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (megasas_get_ctrl_info(instance)) {
instance         4955 drivers/scsi/megaraid/megaraid_sas_fusion.c 				dev_info(&instance->pdev->dev,
instance         4961 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_refire_mgmt_cmd(instance);
instance         4969 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (!megasas_get_map_info(instance))
instance         4970 drivers/scsi/megaraid/megaraid_sas_fusion.c 				megasas_sync_map_info(instance);
instance         4972 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_setup_jbod_map(instance);
instance         4975 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->adapter_type >= VENTURA_SERIES) {
instance         4985 drivers/scsi/megaraid/megaraid_sas_fusion.c 				  &instance->reset_flags);
instance         4986 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->instancet->enable_intr(instance);
instance         4987 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_enable_irq_poll(instance);
instance         4989 drivers/scsi/megaraid/megaraid_sas_fusion.c 				if ((instance->tgt_prop) &&
instance         4990 drivers/scsi/megaraid/megaraid_sas_fusion.c 				    (instance->nvme_page_size))
instance         4991 drivers/scsi/megaraid/megaraid_sas_fusion.c 					ret_target_prop = megasas_get_target_prop(instance, sdev);
instance         4997 drivers/scsi/megaraid/megaraid_sas_fusion.c 			atomic_set(&instance->adprecovery, MEGASAS_HBA_OPERATIONAL);
instance         4999 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev,
instance         5001 drivers/scsi/megaraid/megaraid_sas_fusion.c 				 instance->host->host_no);
instance         5004 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->requestorId) {
instance         5005 drivers/scsi/megaraid/megaraid_sas_fusion.c 				if (!megasas_sriov_start_heartbeat(instance, 0))
instance         5006 drivers/scsi/megaraid/megaraid_sas_fusion.c 					megasas_start_timer(instance);
instance         5008 drivers/scsi/megaraid/megaraid_sas_fusion.c 					instance->skip_heartbeat_timer_del = 1;
instance         5011 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->crash_dump_drv_support &&
instance         5012 drivers/scsi/megaraid/megaraid_sas_fusion.c 				instance->crash_dump_app_support)
instance         5013 drivers/scsi/megaraid/megaraid_sas_fusion.c 				megasas_set_crash_dump_params(instance,
instance         5016 drivers/scsi/megaraid/megaraid_sas_fusion.c 				megasas_set_crash_dump_params(instance,
instance         5019 drivers/scsi/megaraid/megaraid_sas_fusion.c 			if (instance->snapdump_wait_time) {
instance         5020 drivers/scsi/megaraid/megaraid_sas_fusion.c 				megasas_get_snapdump_properties(instance);
instance         5021 drivers/scsi/megaraid/megaraid_sas_fusion.c 				dev_info(&instance->pdev->dev,
instance         5023 drivers/scsi/megaraid/megaraid_sas_fusion.c 					 instance->snapdump_wait_time);
instance         5029 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_warn(&instance->pdev->dev,
instance         5031 drivers/scsi/megaraid/megaraid_sas_fusion.c 				 instance->host->host_no);
instance         5036 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_warn(&instance->pdev->dev, "Reset failed, killing "
instance         5037 drivers/scsi/megaraid/megaraid_sas_fusion.c 		       "adapter scsi%d.\n", instance->host->host_no);
instance         5041 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->requestorId) {
instance         5042 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_start_timer(instance);
instance         5044 drivers/scsi/megaraid/megaraid_sas_fusion.c 		clear_bit(MEGASAS_FUSION_IN_RESET, &instance->reset_flags);
instance         5045 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->instancet->enable_intr(instance);
instance         5046 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_enable_irq_poll(instance);
instance         5047 drivers/scsi/megaraid/megaraid_sas_fusion.c 		atomic_set(&instance->adprecovery, MEGASAS_HBA_OPERATIONAL);
instance         5051 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megaraid_sas_kill_hba(instance);
instance         5052 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_enable_irq_poll(instance);
instance         5053 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->skip_heartbeat_timer_del = 1;
instance         5056 drivers/scsi/megaraid/megaraid_sas_fusion.c 	clear_bit(MEGASAS_FUSION_OCR_NOT_POSSIBLE, &instance->reset_flags);
instance         5057 drivers/scsi/megaraid/megaraid_sas_fusion.c 	mutex_unlock(&instance->reset_mutex);
instance         5062 drivers/scsi/megaraid/megaraid_sas_fusion.c static void  megasas_fusion_crash_dump(struct megasas_instance *instance)
instance         5069 drivers/scsi/megaraid/megaraid_sas_fusion.c 	status_reg = instance->instancet->read_fw_status_reg(instance);
instance         5075 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (instance->drv_buf_index == 0) {
instance         5079 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->drv_buf_alloc) {
instance         5080 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev, "earlier crash dump is "
instance         5085 drivers/scsi/megaraid/megaraid_sas_fusion.c 				&instance->reg_set->outbound_scratch_pad_0);
instance         5086 drivers/scsi/megaraid/megaraid_sas_fusion.c 			readl(&instance->reg_set->outbound_scratch_pad_0);
instance         5089 drivers/scsi/megaraid/megaraid_sas_fusion.c 		megasas_alloc_host_crash_buffer(instance);
instance         5090 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_info(&instance->pdev->dev, "Number of host crash buffers "
instance         5091 drivers/scsi/megaraid/megaraid_sas_fusion.c 			"allocated: %d\n", instance->drv_buf_alloc);
instance         5104 drivers/scsi/megaraid/megaraid_sas_fusion.c 			status_reg = instance->instancet->read_fw_status_reg(
instance         5105 drivers/scsi/megaraid/megaraid_sas_fusion.c 					instance);
instance         5110 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (instance->drv_buf_index >= instance->drv_buf_alloc) {
instance         5111 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_info(&instance->pdev->dev,
instance         5113 drivers/scsi/megaraid/megaraid_sas_fusion.c 				 instance->drv_buf_alloc);
instance         5118 drivers/scsi/megaraid/megaraid_sas_fusion.c 			memcpy(instance->crash_buf[instance->drv_buf_index],
instance         5119 drivers/scsi/megaraid/megaraid_sas_fusion.c 			       instance->crash_dump_buf, CRASH_DMA_BUF_SIZE);
instance         5120 drivers/scsi/megaraid/megaraid_sas_fusion.c 			instance->drv_buf_index++;
instance         5124 drivers/scsi/megaraid/megaraid_sas_fusion.c 		writel(status_reg, &instance->reg_set->outbound_scratch_pad_0);
instance         5125 drivers/scsi/megaraid/megaraid_sas_fusion.c 		readl(&instance->reg_set->outbound_scratch_pad_0);
instance         5128 drivers/scsi/megaraid/megaraid_sas_fusion.c 		status_reg = instance->instancet->read_fw_status_reg(instance);
instance         5132 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_info(&instance->pdev->dev, "Crash Dump is available,number "
instance         5133 drivers/scsi/megaraid/megaraid_sas_fusion.c 			"of copied buffers: %d\n", instance->drv_buf_index);
instance         5134 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->fw_crash_buffer_size =  instance->drv_buf_index;
instance         5135 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->fw_crash_state = AVAILABLE;
instance         5136 drivers/scsi/megaraid/megaraid_sas_fusion.c 		instance->drv_buf_index = 0;
instance         5137 drivers/scsi/megaraid/megaraid_sas_fusion.c 		writel(status_reg, &instance->reg_set->outbound_scratch_pad_0);
instance         5138 drivers/scsi/megaraid/megaraid_sas_fusion.c 		readl(&instance->reg_set->outbound_scratch_pad_0);
instance         5140 drivers/scsi/megaraid/megaraid_sas_fusion.c 			megasas_reset_fusion(instance->host, 0);
instance         5148 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct megasas_instance *instance =
instance         5151 drivers/scsi/megaraid/megaraid_sas_fusion.c 	megasas_reset_fusion(instance->host, 0);
instance         5156 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_alloc_fusion_context(struct megasas_instance *instance)
instance         5160 drivers/scsi/megaraid/megaraid_sas_fusion.c 	instance->ctrl_context = kzalloc(sizeof(struct fusion_context),
instance         5162 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (!instance->ctrl_context) {
instance         5163 drivers/scsi/megaraid/megaraid_sas_fusion.c 		dev_err(&instance->pdev->dev, "Failed from %s %d\n",
instance         5168 drivers/scsi/megaraid/megaraid_sas_fusion.c 	fusion = instance->ctrl_context;
instance         5180 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev, "Failed from %s %d\n",
instance         5196 drivers/scsi/megaraid/megaraid_sas_fusion.c 			dev_err(&instance->pdev->dev, "Failed to allocate load_balance_info, "
instance         5204 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_free_fusion_context(struct megasas_instance *instance)
instance         5206 drivers/scsi/megaraid/megaraid_sas_fusion.c 	struct fusion_context *fusion = instance->ctrl_context;
instance         1092 drivers/scsi/megaraid/megaraid_sas_fusion.h 	struct megasas_instance *instance;
instance         1370 drivers/scsi/megaraid/megaraid_sas_fusion.h void megasas_free_cmds_fusion(struct megasas_instance *instance);
instance         1371 drivers/scsi/megaraid/megaraid_sas_fusion.h int megasas_ioc_init_fusion(struct megasas_instance *instance);
instance         1372 drivers/scsi/megaraid/megaraid_sas_fusion.h u8 megasas_get_map_info(struct megasas_instance *instance);
instance         1373 drivers/scsi/megaraid/megaraid_sas_fusion.h int megasas_sync_map_info(struct megasas_instance *instance);
instance         1374 drivers/scsi/megaraid/megaraid_sas_fusion.h void megasas_release_fusion(struct megasas_instance *instance);
instance         1375 drivers/scsi/megaraid/megaraid_sas_fusion.h void megasas_reset_reply_desc(struct megasas_instance *instance);
instance         1376 drivers/scsi/megaraid/megaraid_sas_fusion.h int megasas_check_mpio_paths(struct megasas_instance *instance,
instance           22 drivers/scsi/mvme147.c 	struct Scsi_Host *instance = data;
instance           25 drivers/scsi/mvme147.c 		wd33c93_intr(instance);
instance           33 drivers/scsi/mvme147.c 	struct Scsi_Host *instance = cmd->device->host;
instance           34 drivers/scsi/mvme147.c 	struct WD33C93_hostdata *hdata = shost_priv(instance);
instance           62 drivers/scsi/mvme147.c static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
instance          553 drivers/scsi/mvsas/mv_init.c 		mvi->instance = nhost;
instance          383 drivers/scsi/mvsas/mv_sas.h 	unsigned long instance;
instance         8291 drivers/scsi/ncr53c8xx.c 	struct Scsi_Host *instance = NULL;
instance         8315 drivers/scsi/ncr53c8xx.c 	instance = scsi_host_alloc(tpnt, sizeof(*host_data));
instance         8316 drivers/scsi/ncr53c8xx.c 	if (!instance)
instance         8318 drivers/scsi/ncr53c8xx.c 	host_data = (struct host_data *) instance->hostdata;
instance         8388 drivers/scsi/ncr53c8xx.c 	instance->max_channel	= 0;
instance         8389 drivers/scsi/ncr53c8xx.c 	instance->this_id       = np->myaddr;
instance         8390 drivers/scsi/ncr53c8xx.c 	instance->max_id	= np->maxwide ? 16 : 8;
instance         8391 drivers/scsi/ncr53c8xx.c 	instance->max_lun	= SCSI_NCR_MAX_LUN;
instance         8392 drivers/scsi/ncr53c8xx.c 	instance->base		= (unsigned long) np->reg;
instance         8393 drivers/scsi/ncr53c8xx.c 	instance->irq		= device->slot.irq;
instance         8394 drivers/scsi/ncr53c8xx.c 	instance->unique_id	= device->slot.base;
instance         8395 drivers/scsi/ncr53c8xx.c 	instance->dma_channel	= 0;
instance         8396 drivers/scsi/ncr53c8xx.c 	instance->cmd_per_lun	= MAX_TAGS;
instance         8397 drivers/scsi/ncr53c8xx.c 	instance->can_queue	= (MAX_START-4);
instance         8401 drivers/scsi/ncr53c8xx.c 	instance->transportt	= ncr53c8xx_transport_template;
instance         8492 drivers/scsi/ncr53c8xx.c 	return instance;
instance         8495 drivers/scsi/ncr53c8xx.c 	if (!instance)
instance         8510 drivers/scsi/ncr53c8xx.c 	scsi_host_put(instance);
instance         4385 drivers/scsi/pmcraid.c static void pmcraid_tasklet_function(unsigned long instance)
instance         4396 drivers/scsi/pmcraid.c 	hrrq_vector = (struct pmcraid_isr_param *)instance;
instance          136 drivers/scsi/sgiwd93.c static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
instance          139 drivers/scsi/sgiwd93.c 	struct ip22_hostdata *hdata = host_to_hostdata(instance);
instance          195 drivers/scsi/sun3_scsi.c 	struct Scsi_Host *instance = dev;
instance          205 drivers/scsi/sun3_scsi.c 			shost_printk(KERN_ERR, instance, "bus error in DMA\n");
instance          207 drivers/scsi/sun3_scsi.c 			shost_printk(KERN_ERR, instance, "DMA conflict\n");
instance          512 drivers/scsi/sun3_scsi.c 	struct Scsi_Host *instance;
instance          579 drivers/scsi/sun3_scsi.c 	instance = scsi_host_alloc(&sun3_scsi_template,
instance          581 drivers/scsi/sun3_scsi.c 	if (!instance) {
instance          586 drivers/scsi/sun3_scsi.c 	instance->irq = irq->start;
instance          588 drivers/scsi/sun3_scsi.c 	hostdata = shost_priv(instance);
instance          592 drivers/scsi/sun3_scsi.c 	error = NCR5380_init(instance, host_flags);
instance          596 drivers/scsi/sun3_scsi.c 	error = request_irq(instance->irq, scsi_sun3_intr, 0,
instance          597 drivers/scsi/sun3_scsi.c 	                    "NCR5380", instance);
instance          600 drivers/scsi/sun3_scsi.c 		       instance->host_no, instance->irq);
instance          616 drivers/scsi/sun3_scsi.c 	dregs->ivect = VME_DATA24 | (instance->irq & 0xff);
instance          619 drivers/scsi/sun3_scsi.c 	NCR5380_maybe_reset_bus(instance);
instance          621 drivers/scsi/sun3_scsi.c 	error = scsi_add_host(instance, NULL);
instance          625 drivers/scsi/sun3_scsi.c 	platform_set_drvdata(pdev, instance);
instance          627 drivers/scsi/sun3_scsi.c 	scsi_scan_host(instance);
instance          631 drivers/scsi/sun3_scsi.c 	free_irq(instance->irq, instance);
instance          633 drivers/scsi/sun3_scsi.c 	NCR5380_exit(instance);
instance          635 drivers/scsi/sun3_scsi.c 	scsi_host_put(instance);
instance          645 drivers/scsi/sun3_scsi.c 	struct Scsi_Host *instance = platform_get_drvdata(pdev);
instance          646 drivers/scsi/sun3_scsi.c 	struct NCR5380_hostdata *hostdata = shost_priv(instance);
instance          649 drivers/scsi/sun3_scsi.c 	scsi_remove_host(instance);
instance          650 drivers/scsi/sun3_scsi.c 	free_irq(instance->irq, instance);
instance          651 drivers/scsi/sun3_scsi.c 	NCR5380_exit(instance);
instance          652 drivers/scsi/sun3_scsi.c 	scsi_host_put(instance);
instance          163 drivers/scsi/wd33c93.c static void wd33c93_execute(struct Scsi_Host *instance);
instance          475 drivers/scsi/wd33c93.c wd33c93_execute(struct Scsi_Host *instance)
instance          478 drivers/scsi/wd33c93.c 	    (struct WD33C93_hostdata *) instance->hostdata;
instance          793 drivers/scsi/wd33c93.c wd33c93_intr(struct Scsi_Host *instance)
instance          796 drivers/scsi/wd33c93.c 	    (struct WD33C93_hostdata *) instance->hostdata;
instance          877 drivers/scsi/wd33c93.c 		wd33c93_execute(instance);
instance         1192 drivers/scsi/wd33c93.c 			wd33c93_execute(instance);
instance         1277 drivers/scsi/wd33c93.c 		wd33c93_execute(instance);
instance         1329 drivers/scsi/wd33c93.c 		wd33c93_execute(instance);
instance         1499 drivers/scsi/wd33c93.c reset_wd33c93(struct Scsi_Host *instance)
instance         1502 drivers/scsi/wd33c93.c 	    (struct WD33C93_hostdata *) instance->hostdata;
instance         1522 drivers/scsi/wd33c93.c 		sgiwd93_reset(instance->base); /* yeah, give it the hard one */
instance         1527 drivers/scsi/wd33c93.c 		      instance->this_id | hostdata->clock_freq);
instance         1567 drivers/scsi/wd33c93.c 	struct Scsi_Host *instance;
instance         1571 drivers/scsi/wd33c93.c 	instance = SCpnt->device->host;
instance         1572 drivers/scsi/wd33c93.c 	spin_lock_irq(instance->host_lock);
instance         1573 drivers/scsi/wd33c93.c 	hostdata = (struct WD33C93_hostdata *) instance->hostdata;
instance         1575 drivers/scsi/wd33c93.c 	printk("scsi%d: reset. ", instance->host_no);
instance         1576 drivers/scsi/wd33c93.c 	disable_irq(instance->irq);
instance         1578 drivers/scsi/wd33c93.c 	hostdata->dma_stop(instance, NULL, 0);
instance         1595 drivers/scsi/wd33c93.c 	reset_wd33c93(instance);
instance         1597 drivers/scsi/wd33c93.c 	enable_irq(instance->irq);
instance         1598 drivers/scsi/wd33c93.c 	spin_unlock_irq(instance->host_lock);
instance         1605 drivers/scsi/wd33c93.c 	struct Scsi_Host *instance;
instance         1612 drivers/scsi/wd33c93.c 	instance = cmd->device->host;
instance         1613 drivers/scsi/wd33c93.c 	hostdata = (struct WD33C93_hostdata *) instance->hostdata;
instance         1634 drivers/scsi/wd33c93.c 			     instance->host_no);
instance         1659 drivers/scsi/wd33c93.c 		       instance->host_no);
instance         1663 drivers/scsi/wd33c93.c 			hostdata->dma_stop(instance, cmd, 0);
instance         1708 drivers/scsi/wd33c93.c 		wd33c93_execute(instance);
instance         1726 drivers/scsi/wd33c93.c 			     instance->host_no);
instance         1745 drivers/scsi/wd33c93.c 	wd33c93_execute(instance);
instance         1749 drivers/scsi/wd33c93.c 	       "         before abortion. ", instance->host_no);
instance         1927 drivers/scsi/wd33c93.c wd33c93_init(struct Scsi_Host *instance, const wd33c93_regs regs,
instance         1939 drivers/scsi/wd33c93.c 	hostdata = (struct WD33C93_hostdata *) instance->hostdata;
instance         2030 drivers/scsi/wd33c93.c 	reset_wd33c93(instance);
instance         2034 drivers/scsi/wd33c93.c 	       instance->host_no,
instance         2052 drivers/scsi/wd33c93.c int wd33c93_write_info(struct Scsi_Host *instance, char *buf, int len)
instance         2059 drivers/scsi/wd33c93.c 	hd = (struct WD33C93_hostdata *) instance->hostdata;
instance         2122 drivers/scsi/wd33c93.c wd33c93_show_info(struct seq_file *m, struct Scsi_Host *instance)
instance         2129 drivers/scsi/wd33c93.c 	hd = (struct WD33C93_hostdata *) instance->hostdata;
instance          194 drivers/scsi/wd33c93.h typedef void (*dma_stop_t) (struct Scsi_Host *instance,
instance          333 drivers/scsi/wd33c93.h void wd33c93_init (struct Scsi_Host *instance, const wd33c93_regs regs,
instance          337 drivers/scsi/wd33c93.h void wd33c93_intr (struct Scsi_Host *instance);
instance           26 drivers/slimbus/core.c 		    id->instance == sbdev->e_addr.instance)
instance          173 drivers/slimbus/core.c 				  sbdev->e_addr.instance);
instance          233 drivers/slimbus/core.c 		e_addr.instance = reg[1];
instance          340 drivers/slimbus/core.c 		a->instance == b->instance);
instance          470 drivers/slimbus/core.c 		sbdev->e_addr.dev_index, sbdev->e_addr.instance);
instance          397 drivers/slimbus/qcom-ctrl.c 		u8 instance;
instance          408 drivers/slimbus/qcom-ctrl.c 	p.instance = ead->instance;
instance          458 drivers/slimbus/qcom-ctrl.c 			ea.instance = buf[7];
instance          193 drivers/slimbus/qcom-ngd-ctrl.c 	uint32_t instance;
instance          220 drivers/slimbus/qcom-ngd-ctrl.c 				       instance),
instance          464 drivers/slimbus/qcom-ngd-ctrl.c 	req.instance = (ctrl->ngd->id >> 1);
instance           32 drivers/soc/qcom/qmi_interface.c 				unsigned int service, unsigned int instance,
instance           51 drivers/soc/qcom/qmi_interface.c 	svc->version = instance & 0xff;
instance           52 drivers/soc/qcom/qmi_interface.c 	svc->instance = instance >> 8;
instance          147 drivers/soc/qcom/qmi_interface.c 				    le32_to_cpu(pkt->server.instance),
instance          175 drivers/soc/qcom/qmi_interface.c 	pkt.server.instance = cpu_to_le32(svc->version | svc->instance << 8);
instance          207 drivers/soc/qcom/qmi_interface.c 		   unsigned int version, unsigned int instance)
instance          217 drivers/soc/qcom/qmi_interface.c 	svc->instance = instance;
instance          238 drivers/soc/qcom/qmi_interface.c 	pkt.server.instance = cpu_to_le32(svc->version | svc->instance << 8);
instance          271 drivers/soc/qcom/qmi_interface.c 		   unsigned int version, unsigned int instance)
instance          281 drivers/soc/qcom/qmi_interface.c 	svc->instance = instance;
instance          179 drivers/soc/tegra/pmc.c 		unsigned int instance;
instance          190 drivers/soc/tegra/pmc.c 			.instance = UINT_MAX,		\
instance          201 drivers/soc/tegra/pmc.c 			.instance = _instance,		\
instance         1894 drivers/soc/tegra/pmc.c 			if (event->gpio.instance != fwspec->param[0] ||
instance          432 drivers/soc/ti/knav_dma.c 	const char *instance;
instance          439 drivers/soc/ti/knav_dma.c 	chan_num = of_channel_match_helper(dev->of_node, name, &instance);
instance          448 drivers/soc/ti/knav_dma.c 		  "unknown", chan_num, instance);
instance          458 drivers/soc/ti/knav_dma.c 		if (!strcmp(dma->name, instance)) {
instance          464 drivers/soc/ti/knav_dma.c 		dev_err(kdev->dev, "No DMA instance with name %s\n", instance);
instance          485 drivers/soc/ti/knav_dma.c 				chan_num, instance);
instance          504 drivers/soc/ti/knav_dma.c 				chan_num, instance);
instance         1168 drivers/soundwire/cadence_master.c 	dma->link_id = cdns->instance;
instance          133 drivers/soundwire/cadence_master.h 	unsigned int instance;
instance          104 drivers/soundwire/intel.c 	int instance;
instance          290 drivers/soundwire/intel.c 	unsigned int link_id = sdw->instance;
instance          312 drivers/soundwire/intel.c 	unsigned int link_id = sdw->instance;
instance          373 drivers/soundwire/intel.c 	unsigned int link_id = sdw->instance;
instance          407 drivers/soundwire/intel.c 	unsigned int link_id = sdw->instance;
instance          479 drivers/soundwire/intel.c 	unsigned int link_id = sdw->instance;
instance          511 drivers/soundwire/intel.c 	unsigned int link_id = sdw->instance;
instance          562 drivers/soundwire/intel.c 	sync_reg |= SDW_SHIM_SYNC_CMDSYNC << sdw->instance;
instance          846 drivers/soundwire/intel.c 					 cdns->instance, i);
instance          853 drivers/soundwire/intel.c 					  cdns->instance, i);
instance          868 drivers/soundwire/intel.c 					  cdns->instance, i);
instance         1015 drivers/soundwire/intel.c 	sdw->instance = pdev->id;
instance         1019 drivers/soundwire/intel.c 	sdw->cdns.instance = sdw->instance;
instance          124 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 				   struct mt7621_pci_phy_instance *instance)
instance          126 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 	u32 offset = (instance->index != 1) ?
instance          137 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 				   struct mt7621_pci_phy_instance *instance)
instance          154 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 	offset = (instance->index != 1) ?
instance          238 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 	struct mt7621_pci_phy_instance *instance = phy_get_drvdata(phy);
instance          242 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 		mt7621_bypass_pipe_rst(mphy, instance);
instance          244 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 	mt7621_set_phy_for_ssc(mphy, instance);
instance          251 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 	struct mt7621_pci_phy_instance *instance = phy_get_drvdata(phy);
instance          253 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 	u32 offset = (instance->index != 1) ?
instance          268 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 	struct mt7621_pci_phy_instance *instance = phy_get_drvdata(phy);
instance          270 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 	u32 offset = (instance->index != 1) ?
instance          366 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 		struct mt7621_pci_phy_instance *instance;
instance          369 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 		instance = devm_kzalloc(dev, sizeof(*instance), GFP_KERNEL);
instance          370 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 		if (!instance)
instance          373 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 		phy->phys[port] = instance;
instance          381 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 		instance->port_base = port_base;
instance          382 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 		instance->phy = pphy;
instance          383 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 		instance->index = port;
instance          384 drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c 		phy_set_drvdata(pphy, instance);
instance          765 drivers/staging/pi433/pi433_if.c 	struct pi433_instance	*instance;
instance          774 drivers/staging/pi433/pi433_if.c 	instance = filp->private_data;
instance          775 drivers/staging/pi433/pi433_if.c 	device = instance->device;
instance          811 drivers/staging/pi433/pi433_if.c 	struct pi433_instance	*instance;
instance          816 drivers/staging/pi433/pi433_if.c 	instance = filp->private_data;
instance          817 drivers/staging/pi433/pi433_if.c 	device = instance->device;
instance          834 drivers/staging/pi433/pi433_if.c 	required = sizeof(instance->tx_cfg) + sizeof(size_t) + count;
instance          843 drivers/staging/pi433/pi433_if.c 	retval = kfifo_in(&device->tx_fifo, &instance->tx_cfg,
instance          844 drivers/staging/pi433/pi433_if.c 			  sizeof(instance->tx_cfg));
instance          845 drivers/staging/pi433/pi433_if.c 	if (retval != sizeof(instance->tx_cfg))
instance          874 drivers/staging/pi433/pi433_if.c 	struct pi433_instance	*instance;
instance          883 drivers/staging/pi433/pi433_if.c 	instance = filp->private_data;
instance          884 drivers/staging/pi433/pi433_if.c 	device = instance->device;
instance          891 drivers/staging/pi433/pi433_if.c 		if (copy_to_user(argp, &instance->tx_cfg,
instance          899 drivers/staging/pi433/pi433_if.c 		memcpy(&instance->tx_cfg, &tx_cfg, sizeof(struct pi433_tx_cfg));
instance          946 drivers/staging/pi433/pi433_if.c 	struct pi433_instance	*instance;
instance          956 drivers/staging/pi433/pi433_if.c 	instance = kzalloc(sizeof(*instance), GFP_KERNEL);
instance          957 drivers/staging/pi433/pi433_if.c 	if (!instance)
instance          961 drivers/staging/pi433/pi433_if.c 	instance->device = device;
instance          962 drivers/staging/pi433/pi433_if.c 	instance->tx_cfg.bit_rate = 4711;
instance          966 drivers/staging/pi433/pi433_if.c 	filp->private_data = instance;
instance          974 drivers/staging/pi433/pi433_if.c 	struct pi433_instance	*instance;
instance          976 drivers/staging/pi433/pi433_if.c 	instance = filp->private_data;
instance          977 drivers/staging/pi433/pi433_if.c 	kfree(instance);
instance           25 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c static void bcm2835_audio_lock(struct bcm2835_audio_instance *instance)
instance           27 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	mutex_lock(&instance->vchi_mutex);
instance           28 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	vchi_service_use(instance->vchi_handle);
instance           31 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c static void bcm2835_audio_unlock(struct bcm2835_audio_instance *instance)
instance           33 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	vchi_service_release(instance->vchi_handle);
instance           34 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	mutex_unlock(&instance->vchi_mutex);
instance           37 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c static int bcm2835_audio_send_msg_locked(struct bcm2835_audio_instance *instance,
instance           43 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		instance->result = -1;
instance           44 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		init_completion(&instance->msg_avail_comp);
instance           47 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	status = vchi_queue_kernel_message(instance->vchi_handle,
instance           50 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		dev_err(instance->dev,
instance           57 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		if (!wait_for_completion_timeout(&instance->msg_avail_comp,
instance           59 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 			dev_err(instance->dev,
instance           62 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		} else if (instance->result) {
instance           63 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 			dev_err(instance->dev,
instance           65 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 				instance->result, m->type);
instance           73 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c static int bcm2835_audio_send_msg(struct bcm2835_audio_instance *instance,
instance           78 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	bcm2835_audio_lock(instance);
instance           79 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	err = bcm2835_audio_send_msg_locked(instance, m, wait);
instance           80 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	bcm2835_audio_unlock(instance);
instance           84 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c static int bcm2835_audio_send_simple(struct bcm2835_audio_instance *instance,
instance           89 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	return bcm2835_audio_send_msg(instance, &m, wait);
instance           96 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	struct bcm2835_audio_instance *instance = param;
instance          104 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	status = vchi_msg_dequeue(instance->vchi_handle,
instance          107 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		instance->result = m.result.success;
instance          108 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		complete(&instance->msg_avail_comp);
instance          112 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 			dev_err(instance->dev, "invalid cookie\n");
instance          114 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 			bcm2835_playback_fifo(instance->alsa_stream,
instance          117 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		dev_err(instance->dev, "unexpected callback type=%d\n", m.type);
instance          123 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		   struct bcm2835_audio_instance *instance)
instance          129 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		.callback_param		= instance,
instance          135 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 				   &instance->vchi_handle);
instance          138 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		dev_err(instance->dev,
instance          145 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	vchi_service_release(instance->vchi_handle);
instance          150 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c static void vc_vchi_audio_deinit(struct bcm2835_audio_instance *instance)
instance          154 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	mutex_lock(&instance->vchi_mutex);
instance          155 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	vchi_service_use(instance->vchi_handle);
instance          158 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	status = vchi_service_close(instance->vchi_handle);
instance          160 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		dev_err(instance->dev,
instance          165 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	mutex_unlock(&instance->vchi_mutex);
instance          205 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	struct bcm2835_audio_instance *instance;
instance          209 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	instance = kzalloc(sizeof(*instance), GFP_KERNEL);
instance          210 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	if (!instance)
instance          212 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	mutex_init(&instance->vchi_mutex);
instance          213 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	instance->dev = alsa_stream->chip->dev;
instance          214 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	instance->alsa_stream = alsa_stream;
instance          215 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	alsa_stream->instance = instance;
instance          218 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 				 instance);
instance          222 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	err = bcm2835_audio_send_simple(instance, VC_AUDIO_MSG_TYPE_OPEN,
instance          227 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	bcm2835_audio_lock(instance);
instance          228 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	vchi_get_peer_version(instance->vchi_handle, &instance->peer_version);
instance          229 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	bcm2835_audio_unlock(instance);
instance          230 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	if (instance->peer_version < 2 || force_bulk)
instance          231 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		instance->max_packet = 0; /* bulk transfer */
instance          233 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		instance->max_packet = 4000;
instance          238 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	vc_vchi_audio_deinit(instance);
instance          240 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	alsa_stream->instance = NULL;
instance          241 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	kfree(instance);
instance          257 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	return bcm2835_audio_send_msg(alsa_stream->instance, &m, true);
instance          277 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	return bcm2835_audio_send_msg(alsa_stream->instance, &m, true);
instance          282 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	return bcm2835_audio_send_simple(alsa_stream->instance,
instance          288 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	return bcm2835_audio_send_simple(alsa_stream->instance,
instance          300 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	return bcm2835_audio_send_msg(alsa_stream->instance, &m, false);
instance          305 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	struct bcm2835_audio_instance *instance = alsa_stream->instance;
instance          308 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	err = bcm2835_audio_send_simple(alsa_stream->instance,
instance          312 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	vc_vchi_audio_deinit(instance);
instance          313 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	alsa_stream->instance = NULL;
instance          314 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	kfree(instance);
instance          322 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	struct bcm2835_audio_instance *instance = alsa_stream->instance;
instance          326 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		.write.max_packet = instance->max_packet,
instance          336 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	bcm2835_audio_lock(instance);
instance          337 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	err = bcm2835_audio_send_msg_locked(instance, &m, false);
instance          342 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	if (!instance->max_packet) {
instance          344 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		status = vchi_bulk_queue_transmit(instance->vchi_handle,
instance          350 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 			int bytes = min(instance->max_packet, count);
instance          352 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 			status = vchi_queue_kernel_message(instance->vchi_handle,
instance          360 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 		dev_err(instance->dev,
instance          367 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c 	bcm2835_audio_unlock(instance);
instance           82 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h 	struct bcm2835_audio_instance *instance;
instance          268 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	return mmal_vchi_buffer_init(dev->instance, buf);
instance          310 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c static void buffer_cb(struct vchiq_mmal_instance *instance,
instance          341 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 					instance,
instance          347 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 			if (vchiq_mmal_submit_buffer(instance, port, buf))
instance          396 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 			instance,
instance          410 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 			dev->instance,
instance          421 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 				dev->instance,
instance          453 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 				dev->instance,
instance          461 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 			dev->instance,
instance          482 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	ret = vchiq_mmal_submit_buffer(dev->instance, dev->capture.port, buf);
instance          523 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		ret = vchiq_mmal_port_enable(dev->instance,
instance          535 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	if (vchiq_mmal_port_parameter_get(dev->instance,
instance          556 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	    vchiq_mmal_port_enable(dev->instance, dev->capture.port, buffer_cb);
instance          562 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		vchiq_mmal_port_disable(dev->instance,
instance          572 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_port_parameter_set(dev->instance,
instance          604 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_port_parameter_set(dev->instance,
instance          614 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	ret = vchiq_mmal_port_disable(dev->instance, dev->capture.camera_port);
instance          618 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		ret = vchiq_mmal_port_disable(dev->instance, dev->capture.port);
instance          678 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	return vchiq_mmal_port_parameter_set(dev->instance, port,
instance          772 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		ret = vchiq_mmal_port_disable(dev->instance, src);
instance          775 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 			    vchiq_mmal_port_connect_tunnel(dev->instance, src,
instance          779 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 					dev->instance,
instance          789 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	ret = vchiq_mmal_port_set_format(dev->instance, src);
instance          801 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 			dev->instance,
instance          808 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	ret = vchiq_mmal_port_connect_tunnel(dev->instance, src, dst);
instance          812 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	return vchiq_mmal_port_enable(dev->instance, src, NULL);
instance          874 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_version(dev->instance, &major, &minor);
instance         1018 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		vchiq_mmal_port_connect_tunnel(dev->instance,
instance         1021 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		ret = vchiq_mmal_component_disable(dev->instance,
instance         1075 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_port_parameter_set(dev->instance,
instance         1091 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	ret = vchiq_mmal_port_set_format(dev->instance, camera_port);
instance         1106 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 			    vchiq_mmal_port_disable(dev->instance,
instance         1111 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 						dev->instance,
instance         1125 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		ret = vchiq_mmal_port_set_format(dev->instance, preview_port);
instance         1128 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 				dev->instance,
instance         1132 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 				ret = vchiq_mmal_port_enable(dev->instance,
instance         1158 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 					dev->instance,
instance         1194 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 				ret = vchiq_mmal_port_set_format(dev->instance,
instance         1209 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 						dev->instance,
instance         1478 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c static int get_num_cameras(struct vchiq_mmal_instance *instance,
instance         1488 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	ret = vchiq_mmal_component_init(instance, "camera_info",
instance         1494 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	if (vchiq_mmal_port_parameter_get(instance,
instance         1508 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_component_finalise(instance,
instance         1514 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c static int set_camera_parameters(struct vchiq_mmal_instance *instance,
instance         1533 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	return vchiq_mmal_port_parameter_set(instance, &camera->control,
instance         1549 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	ret = vchiq_mmal_init(&dev->instance);
instance         1557 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	ret = vchiq_mmal_component_init(dev->instance, "ril.camera",
instance         1570 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	ret = set_camera_parameters(dev->instance,
instance         1586 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	ret = vchiq_mmal_port_parameter_get(dev->instance,
instance         1659 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 			dev->instance, "ril.video_render",
instance         1673 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		dev->instance, "ril.image_encode",
instance         1687 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	ret = vchiq_mmal_component_init(dev->instance, "ril.video_encode",
instance         1704 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		ret = vchiq_mmal_port_set_format(dev->instance,
instance         1712 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 			dev->instance,
instance         1717 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		vchiq_mmal_port_parameter_set(dev->instance,
instance         1735 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		dev->instance,
instance         1741 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		dev->instance,
instance         1746 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_component_finalise(dev->instance,
instance         1751 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_component_finalise(dev->instance,
instance         1755 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_finalise(dev->instance);
instance         1802 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		vchiq_mmal_port_connect_tunnel(dev->instance,
instance         1804 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		vchiq_mmal_component_disable(dev->instance,
instance         1807 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_component_disable(dev->instance,
instance         1810 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_component_finalise(dev->instance,
instance         1813 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_component_finalise(dev->instance,
instance         1816 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_component_finalise(dev->instance,
instance         1819 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_component_finalise(dev->instance,
instance         1844 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	struct vchiq_mmal_instance *instance;
instance         1848 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	ret = vchiq_mmal_init(&instance);
instance         1852 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	num_cameras = get_num_cameras(instance,
instance         1908 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 		dev->instance = instance;
instance         1970 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_finalise(instance);
instance         1978 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	struct vchiq_mmal_instance *instance = gdev[0]->instance;
instance         1984 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c 	vchiq_mmal_finalise(instance);
instance           63 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h 	struct vchiq_mmal_instance   *instance;
instance          172 drivers/staging/vc04_services/bcm2835-camera/controls.c 	return vchiq_mmal_port_parameter_set(dev->instance, control,
instance          189 drivers/staging/vc04_services/bcm2835-camera/controls.c 	return vchiq_mmal_port_parameter_set(dev->instance, control,
instance          217 drivers/staging/vc04_services/bcm2835-camera/controls.c 	return vchiq_mmal_port_parameter_set(dev->instance, control,
instance          233 drivers/staging/vc04_services/bcm2835-camera/controls.c 	return vchiq_mmal_port_parameter_set(dev->instance, control,
instance          250 drivers/staging/vc04_services/bcm2835-camera/controls.c 	ret = vchiq_mmal_port_parameter_set(dev->instance, &camera->output[0],
instance          256 drivers/staging/vc04_services/bcm2835-camera/controls.c 	ret = vchiq_mmal_port_parameter_set(dev->instance, &camera->output[1],
instance          262 drivers/staging/vc04_services/bcm2835-camera/controls.c 	return vchiq_mmal_port_parameter_set(dev->instance, &camera->output[2],
instance          291 drivers/staging/vc04_services/bcm2835-camera/controls.c 	ret = vchiq_mmal_port_parameter_set(dev->instance, &camera->output[0],
instance          297 drivers/staging/vc04_services/bcm2835-camera/controls.c 	ret = vchiq_mmal_port_parameter_set(dev->instance, &camera->output[1],
instance          303 drivers/staging/vc04_services/bcm2835-camera/controls.c 	return vchiq_mmal_port_parameter_set(dev->instance, &camera->output[2],
instance          344 drivers/staging/vc04_services/bcm2835-camera/controls.c 		ret = vchiq_mmal_port_parameter_set(dev->instance,
instance          349 drivers/staging/vc04_services/bcm2835-camera/controls.c 		ret += vchiq_mmal_port_parameter_set(dev->instance,
instance          394 drivers/staging/vc04_services/bcm2835-camera/controls.c 		return vchiq_mmal_port_parameter_set(dev->instance, control,
instance          426 drivers/staging/vc04_services/bcm2835-camera/controls.c 	return vchiq_mmal_port_parameter_set(dev->instance, control,
instance          482 drivers/staging/vc04_services/bcm2835-camera/controls.c 	return vchiq_mmal_port_parameter_set(dev->instance, control,
instance          505 drivers/staging/vc04_services/bcm2835-camera/controls.c 	return vchiq_mmal_port_parameter_set(dev->instance, control,
instance          545 drivers/staging/vc04_services/bcm2835-camera/controls.c 					dev->instance, control,
instance          552 drivers/staging/vc04_services/bcm2835-camera/controls.c 					dev->instance, control,
instance          580 drivers/staging/vc04_services/bcm2835-camera/controls.c 	ret = vchiq_mmal_port_parameter_set(dev->instance, control,
instance          603 drivers/staging/vc04_services/bcm2835-camera/controls.c 	ret = vchiq_mmal_port_parameter_set(dev->instance, encoder_out,
instance          640 drivers/staging/vc04_services/bcm2835-camera/controls.c 	vchiq_mmal_port_parameter_set(dev->instance, encoder_out,
instance          658 drivers/staging/vc04_services/bcm2835-camera/controls.c 	return vchiq_mmal_port_parameter_set(dev->instance, jpeg_out,
instance          674 drivers/staging/vc04_services/bcm2835-camera/controls.c 	return vchiq_mmal_port_parameter_set(dev->instance, vid_enc_ctl,
instance          782 drivers/staging/vc04_services/bcm2835-camera/controls.c 		ret = vchiq_mmal_port_parameter_set(dev->instance,
instance          819 drivers/staging/vc04_services/bcm2835-camera/controls.c 		ret = vchiq_mmal_port_parameter_set(dev->instance,
instance          824 drivers/staging/vc04_services/bcm2835-camera/controls.c 		ret += vchiq_mmal_port_parameter_set(dev->instance,
instance          830 drivers/staging/vc04_services/bcm2835-camera/controls.c 		ret += vchiq_mmal_port_parameter_set(dev->instance,
instance          870 drivers/staging/vc04_services/bcm2835-camera/controls.c 		ret = vchiq_mmal_port_parameter_set(dev->instance, control,
instance          874 drivers/staging/vc04_services/bcm2835-camera/controls.c 		ret += vchiq_mmal_port_parameter_set(dev->instance, control,
instance          879 drivers/staging/vc04_services/bcm2835-camera/controls.c 		ret += vchiq_mmal_port_parameter_set(dev->instance, control,
instance          883 drivers/staging/vc04_services/bcm2835-camera/controls.c 		ret += vchiq_mmal_port_parameter_set(dev->instance, control,
instance         1211 drivers/staging/vc04_services/bcm2835-camera/controls.c 	ret = vchiq_mmal_port_parameter_set(dev->instance,
instance         1215 drivers/staging/vc04_services/bcm2835-camera/controls.c 	ret += vchiq_mmal_port_parameter_set(dev->instance,
instance         1219 drivers/staging/vc04_services/bcm2835-camera/controls.c 	ret += vchiq_mmal_port_parameter_set(dev->instance,
instance          112 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	struct vchiq_mmal_instance *instance;
instance          126 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 			struct vchiq_mmal_instance *instance;
instance          179 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c get_msg_context(struct vchiq_mmal_instance *instance)
instance          194 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_lock(&instance->context_map_lock);
instance          195 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	handle = idr_alloc(&instance->context_map, msg_context,
instance          197 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->context_map_lock);
instance          204 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	msg_context->instance = instance;
instance          211 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c lookup_msg_context(struct vchiq_mmal_instance *instance, int handle)
instance          213 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	return idr_find(&instance->context_map, handle);
instance          219 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	struct vchiq_mmal_instance *instance = msg_context->instance;
instance          221 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_lock(&instance->context_map_lock);
instance          222 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	idr_remove(&instance->context_map, msg_context->handle);
instance          223 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->context_map_lock);
instance          228 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static void event_to_host_cb(struct vchiq_mmal_instance *instance,
instance          251 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	msg_context->u.bulk.port->buffer_cb(msg_context->u.bulk.instance,
instance          273 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	struct vchiq_mmal_instance *instance = msg_context->instance;
instance          281 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	vchi_service_use(instance->handle);
instance          282 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = vchi_bulk_queue_receive(instance->handle,
instance          292 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	vchi_service_release(instance->handle);
instance          300 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int bulk_receive(struct vchiq_mmal_instance *instance,
instance          338 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	queue_work(msg_context->instance->bulk_wq,
instance          345 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int inline_receive(struct vchiq_mmal_instance *instance,
instance          361 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c buffer_from_host(struct vchiq_mmal_instance *instance,
instance          371 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	pr_debug("instance:%p buffer:%p\n", instance->handle, buf);
instance          382 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	msg_context->u.bulk.instance = instance;
instance          426 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	vchi_service_use(instance->handle);
instance          428 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = vchi_queue_kernel_message(instance->handle,
instance          433 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	vchi_service_release(instance->handle);
instance          439 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static void buffer_to_host_cb(struct vchiq_mmal_instance *instance,
instance          446 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		 __func__, instance, msg, msg_len);
instance          450 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		msg_context = lookup_msg_context(instance, handle);
instance          476 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 			    bulk_receive(instance, msg, msg_context);
instance          489 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		    bulk_receive(instance, msg, msg_context);
instance          502 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		msg_context->u.bulk.status = inline_receive(instance, msg,
instance          517 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static void bulk_receive_cb(struct vchiq_mmal_instance *instance,
instance          526 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static void bulk_abort_cb(struct vchiq_mmal_instance *instance,
instance          541 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	struct vchiq_mmal_instance *instance = param;
instance          548 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (!instance) {
instance          555 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		status = vchi_msg_hold(instance->handle, (void **)&msg,
instance          571 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 			event_to_host_cb(instance, msg, msg_len);
instance          577 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 			buffer_to_host_cb(instance, msg, msg_len);
instance          589 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 			msg_context = lookup_msg_context(instance,
instance          620 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		bulk_receive_cb(instance, bulk_ctx);
instance          624 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		bulk_abort_cb(instance, bulk_ctx);
instance          639 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int send_synchronous_mmal_msg(struct vchiq_mmal_instance *instance,
instance          658 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	msg_context = get_msg_context(instance);
instance          671 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	vchi_service_use(instance->handle);
instance          673 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = vchi_queue_kernel_message(instance->handle,
instance          678 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	vchi_service_release(instance->handle);
instance          763 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int port_info_set(struct vchiq_mmal_instance *instance,
instance          799 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = send_synchronous_mmal_msg(instance, &m,
instance          824 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int port_info_get(struct vchiq_mmal_instance *instance,
instance          838 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = send_synchronous_mmal_msg(instance, &m,
instance          919 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int create_component(struct vchiq_mmal_instance *instance,
instance          934 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = send_synchronous_mmal_msg(instance, &m,
instance          967 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int destroy_component(struct vchiq_mmal_instance *instance,
instance          978 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = send_synchronous_mmal_msg(instance, &m,
instance         1000 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int enable_component(struct vchiq_mmal_instance *instance,
instance         1011 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = send_synchronous_mmal_msg(instance, &m,
instance         1032 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int disable_component(struct vchiq_mmal_instance *instance,
instance         1043 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = send_synchronous_mmal_msg(instance, &m,
instance         1065 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int get_version(struct vchiq_mmal_instance *instance,
instance         1075 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = send_synchronous_mmal_msg(instance, &m,
instance         1097 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int port_action_port(struct vchiq_mmal_instance *instance,
instance         1113 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = send_synchronous_mmal_msg(instance, &m,
instance         1139 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int port_action_handle(struct vchiq_mmal_instance *instance,
instance         1160 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = send_synchronous_mmal_msg(instance, &m,
instance         1186 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int port_parameter_set(struct vchiq_mmal_instance *instance,
instance         1203 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = send_synchronous_mmal_msg(instance, &m,
instance         1227 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int port_parameter_get(struct vchiq_mmal_instance *instance,
instance         1243 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = send_synchronous_mmal_msg(instance, &m,
instance         1285 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int port_disable(struct vchiq_mmal_instance *instance,
instance         1297 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = port_action_port(instance, port,
instance         1317 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 				port->buffer_cb(instance,
instance         1325 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		ret = port_info_get(instance, port);
instance         1332 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c static int port_enable(struct vchiq_mmal_instance *instance,
instance         1342 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = port_action_port(instance, port,
instance         1357 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 			ret = buffer_from_host(instance, port, mmalbuf);
instance         1368 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = port_info_get(instance, port);
instance         1379 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_port_set_format(struct vchiq_mmal_instance *instance,
instance         1384 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (mutex_lock_interruptible(&instance->vchiq_mutex))
instance         1387 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = port_info_set(instance, port);
instance         1392 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = port_info_get(instance, port);
instance         1395 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->vchiq_mutex);
instance         1400 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_port_parameter_set(struct vchiq_mmal_instance *instance,
instance         1406 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (mutex_lock_interruptible(&instance->vchiq_mutex))
instance         1409 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = port_parameter_set(instance, port, parameter, value, value_size);
instance         1411 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->vchiq_mutex);
instance         1416 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_port_parameter_get(struct vchiq_mmal_instance *instance,
instance         1422 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (mutex_lock_interruptible(&instance->vchiq_mutex))
instance         1425 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = port_parameter_get(instance, port, parameter, value, value_size);
instance         1427 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->vchiq_mutex);
instance         1437 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_port_enable(struct vchiq_mmal_instance *instance,
instance         1443 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (mutex_lock_interruptible(&instance->vchiq_mutex))
instance         1454 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = port_enable(instance, port);
instance         1457 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->vchiq_mutex);
instance         1462 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_port_disable(struct vchiq_mmal_instance *instance,
instance         1467 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (mutex_lock_interruptible(&instance->vchiq_mutex))
instance         1471 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		mutex_unlock(&instance->vchiq_mutex);
instance         1475 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = port_disable(instance, port);
instance         1477 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->vchiq_mutex);
instance         1485 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_port_connect_tunnel(struct vchiq_mmal_instance *instance,
instance         1491 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (mutex_lock_interruptible(&instance->vchiq_mutex))
instance         1496 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		ret = port_disable(instance, src);
instance         1506 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		ret = port_action_handle(instance, src,
instance         1537 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = port_info_set(instance, dst);
instance         1544 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = port_info_get(instance, dst);
instance         1551 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = port_action_handle(instance, src,
instance         1564 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->vchiq_mutex);
instance         1569 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_submit_buffer(struct vchiq_mmal_instance *instance,
instance         1576 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = buffer_from_host(instance, port, buffer);
instance         1587 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int mmal_vchi_buffer_init(struct vchiq_mmal_instance *instance,
instance         1590 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	struct mmal_msg_context *msg_context = get_msg_context(instance);
instance         1613 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_component_init(struct vchiq_mmal_instance *instance,
instance         1621 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (mutex_lock_interruptible(&instance->vchiq_mutex))
instance         1624 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (instance->component_idx == VCHIQ_MMAL_MAX_COMPONENTS) {
instance         1629 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	component = &instance->component[instance->component_idx];
instance         1631 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = create_component(instance, component, name);
instance         1644 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = port_info_get(instance, &component->control);
instance         1654 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		ret = port_info_get(instance, &component->input[idx]);
instance         1665 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		ret = port_info_get(instance, &component->output[idx]);
instance         1676 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		ret = port_info_get(instance, &component->clock[idx]);
instance         1681 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	instance->component_idx++;
instance         1685 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->vchiq_mutex);
instance         1690 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	destroy_component(instance, component);
instance         1692 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->vchiq_mutex);
instance         1700 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_component_finalise(struct vchiq_mmal_instance *instance,
instance         1705 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (mutex_lock_interruptible(&instance->vchiq_mutex))
instance         1709 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		ret = disable_component(instance, component);
instance         1711 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = destroy_component(instance, component);
instance         1713 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->vchiq_mutex);
instance         1721 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_component_enable(struct vchiq_mmal_instance *instance,
instance         1726 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (mutex_lock_interruptible(&instance->vchiq_mutex))
instance         1730 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		mutex_unlock(&instance->vchiq_mutex);
instance         1734 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = enable_component(instance, component);
instance         1738 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->vchiq_mutex);
instance         1746 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_component_disable(struct vchiq_mmal_instance *instance,
instance         1751 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (mutex_lock_interruptible(&instance->vchiq_mutex))
instance         1755 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 		mutex_unlock(&instance->vchiq_mutex);
instance         1759 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = disable_component(instance, component);
instance         1763 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->vchiq_mutex);
instance         1768 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_version(struct vchiq_mmal_instance *instance,
instance         1773 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (mutex_lock_interruptible(&instance->vchiq_mutex))
instance         1776 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	ret = get_version(instance, major_out, minor_out);
instance         1778 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->vchiq_mutex);
instance         1783 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c int vchiq_mmal_finalise(struct vchiq_mmal_instance *instance)
instance         1787 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (!instance)
instance         1790 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (mutex_lock_interruptible(&instance->vchiq_mutex))
instance         1793 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	vchi_service_use(instance->handle);
instance         1795 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	status = vchi_service_close(instance->handle);
instance         1799 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_unlock(&instance->vchiq_mutex);
instance         1801 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	flush_workqueue(instance->bulk_wq);
instance         1802 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	destroy_workqueue(instance->bulk_wq);
instance         1804 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	vfree(instance->bulk_scratch);
instance         1806 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	idr_destroy(&instance->context_map);
instance         1808 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	kfree(instance);
instance         1816 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	struct vchiq_mmal_instance *instance;
instance         1852 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	instance = kzalloc(sizeof(*instance), GFP_KERNEL);
instance         1854 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (!instance)
instance         1857 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_init(&instance->vchiq_mutex);
instance         1859 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	instance->bulk_scratch = vmalloc(PAGE_SIZE);
instance         1861 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	mutex_init(&instance->context_map_lock);
instance         1862 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	idr_init_base(&instance->context_map, 1);
instance         1864 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	params.callback_param = instance;
instance         1866 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	instance->bulk_wq = alloc_ordered_workqueue("mmal-vchiq",
instance         1868 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	if (!instance->bulk_wq)
instance         1871 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	status = vchi_service_open(vchi_instance, &params, &instance->handle);
instance         1878 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	vchi_service_release(instance->handle);
instance         1880 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	*out_instance = instance;
instance         1885 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	vchi_service_close(instance->handle);
instance         1886 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	destroy_workqueue(instance->bulk_wq);
instance         1888 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	vfree(instance->bulk_scratch);
instance         1889 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c 	kfree(instance);
instance           45 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h 		struct vchiq_mmal_instance  *instance,
instance           97 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h int vchiq_mmal_finalise(struct vchiq_mmal_instance *instance);
instance          103 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h 		struct vchiq_mmal_instance *instance,
instance          108 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h 		struct vchiq_mmal_instance *instance,
instance          112 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h 		struct vchiq_mmal_instance *instance,
instance          116 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h 		struct vchiq_mmal_instance *instance,
instance          125 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h 		struct vchiq_mmal_instance *instance,
instance          133 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h int vchiq_mmal_port_disable(struct vchiq_mmal_instance *instance,
instance          136 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h int vchiq_mmal_port_parameter_set(struct vchiq_mmal_instance *instance,
instance          142 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h int vchiq_mmal_port_parameter_get(struct vchiq_mmal_instance *instance,
instance          148 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h int vchiq_mmal_port_set_format(struct vchiq_mmal_instance *instance,
instance          151 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h int vchiq_mmal_port_connect_tunnel(struct vchiq_mmal_instance *instance,
instance          155 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h int vchiq_mmal_version(struct vchiq_mmal_instance *instance,
instance          159 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h int vchiq_mmal_submit_buffer(struct vchiq_mmal_instance *instance,
instance          163 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h int mmal_vchi_buffer_init(struct vchiq_mmal_instance *instance,
instance           87 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	VCHIQ_INSTANCE_T instance;
instance          184 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	VCHIQ_INSTANCE_T instance = NULL;
instance          209 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	instance = kzalloc(sizeof(*instance), GFP_KERNEL);
instance          210 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	if (!instance) {
instance          216 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	instance->connected = 0;
instance          217 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	instance->state = state;
instance          218 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	mutex_init(&instance->bulk_waiter_list_mutex);
instance          219 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	INIT_LIST_HEAD(&instance->bulk_waiter_list);
instance          221 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	*instance_out = instance;
instance          227 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		"%s(%p): returning %d", __func__, instance, status);
instance          233 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c VCHIQ_STATUS_T vchiq_shutdown(VCHIQ_INSTANCE_T instance)
instance          236 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	struct vchiq_state *state = instance->state;
instance          239 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		"%s(%p) called", __func__, instance);
instance          245 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	status = vchiq_shutdown_internal(state, instance);
instance          250 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		"%s(%p): returning %d", __func__, instance, status);
instance          256 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 					 &instance->bulk_waiter_list, list) {
instance          263 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		kfree(instance);
instance          270 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c static int vchiq_is_connected(VCHIQ_INSTANCE_T instance)
instance          272 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	return instance->connected;
instance          275 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c VCHIQ_STATUS_T vchiq_connect(VCHIQ_INSTANCE_T instance)
instance          278 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	struct vchiq_state *state = instance->state;
instance          281 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		"%s(%p) called", __func__, instance);
instance          289 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	status = vchiq_connect_internal(state, instance);
instance          292 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		instance->connected = 1;
instance          298 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		"%s(%p): returning %d", __func__, instance, status);
instance          305 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	VCHIQ_INSTANCE_T              instance,
instance          310 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	struct vchiq_state *state = instance->state;
instance          315 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		"%s(%p) called", __func__, instance);
instance          319 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	srvstate = vchiq_is_connected(instance)
instance          327 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		instance,
instance          337 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		"%s(%p): returning %d", __func__, instance, status);
instance          344 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	VCHIQ_INSTANCE_T              instance,
instance          349 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	struct vchiq_state   *state = instance->state;
instance          353 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		"%s(%p) called", __func__, instance);
instance          357 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	if (!vchiq_is_connected(instance))
instance          363 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		instance,
instance          377 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		"%s(%p): returning %d", __func__, instance, status);
instance          436 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	VCHIQ_INSTANCE_T instance;
instance          445 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	instance = service->instance;
instance          449 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	mutex_lock(&instance->bulk_waiter_list_mutex);
instance          450 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	list_for_each_entry(waiter, &instance->bulk_waiter_list, list) {
instance          456 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	mutex_unlock(&instance->bulk_waiter_list_mutex);
instance          502 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		mutex_lock(&instance->bulk_waiter_list_mutex);
instance          503 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		list_add(&waiter->list, &instance->bulk_waiter_list);
instance          504 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		mutex_unlock(&instance->bulk_waiter_list_mutex);
instance          519 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c add_completion(VCHIQ_INSTANCE_T instance, VCHIQ_REASON_T reason,
instance          528 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	insert = instance->completion_insert;
instance          529 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	while ((insert - instance->completion_remove) >= MAX_COMPLETIONS) {
instance          536 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 					&instance->remove_event)) {
instance          540 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		} else if (instance->closing) {
instance          548 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	completion = &instance->completions[insert & (MAX_COMPLETIONS - 1)];
instance          560 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		if (instance->use_close_delivered)
instance          572 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	instance->completion_insert = insert;
instance          574 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	complete(&instance->insert_event);
instance          596 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	VCHIQ_INSTANCE_T instance;
instance          606 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	instance = user_service->instance;
instance          608 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	if (!instance || instance->closing)
instance          617 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		(unsigned long)instance, (unsigned long)bulk_userdata);
instance          632 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 				instance->completion_remove) < 0) {
instance          638 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 				status = add_completion(instance, reason,
instance          653 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			} else if (instance->closing) {
instance          672 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			instance->completion_remove) >= 0) ||
instance          688 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	return add_completion(instance, reason, header, user_service,
instance          807 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	VCHIQ_INSTANCE_T instance = file->private_data;
instance          817 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		__func__, instance,
instance          824 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		if (!instance->connected)
instance          829 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		while ((service = next_service_by_instance(instance->state,
instance          830 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			instance, &i)) != NULL) {
instance          840 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			instance->closing = 1;
instance          841 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			complete(&instance->insert_event);
instance          847 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		if (instance->connected) {
instance          851 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		rc = mutex_lock_killable(&instance->state->mutex);
instance          856 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 				instance->state->id, rc);
instance          860 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		status = vchiq_connect_internal(instance->state, instance);
instance          861 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		mutex_unlock(&instance->state->mutex);
instance          864 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			instance->connected = 1;
instance          889 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			if (!instance->connected) {
instance          897 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 				 instance->connected ?
instance          906 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 				instance->state,
instance          908 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 				instance, user_service_free);
instance          913 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			user_service->instance = instance;
instance          918 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 				instance->completion_remove - 1;
instance          927 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 					(service, instance->pid);
instance          958 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		service = find_service_for_instance(instance, handle);
instance          990 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		service = find_service_for_instance(instance, handle);
instance         1022 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		service = find_service_for_instance(instance, args.handle);
instance         1055 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		service = find_service_for_instance(instance, args.handle);
instance         1071 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			mutex_lock(&instance->bulk_waiter_list_mutex);
instance         1072 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			list_for_each_entry(waiter, &instance->bulk_waiter_list,
instance         1079 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			mutex_unlock(&instance->bulk_waiter_list_mutex);
instance         1113 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			mutex_lock(&instance->bulk_waiter_list_mutex);
instance         1114 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			list_add(&waiter->list, &instance->bulk_waiter_list);
instance         1115 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			mutex_unlock(&instance->bulk_waiter_list_mutex);
instance         1133 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		if (!instance->connected) {
instance         1144 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		mutex_lock(&instance->completion_mutex);
instance         1147 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		while ((instance->completion_remove ==
instance         1148 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			instance->completion_insert)
instance         1149 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			&& !instance->closing) {
instance         1153 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			mutex_unlock(&instance->completion_mutex);
instance         1155 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 						&instance->insert_event);
instance         1156 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			mutex_lock(&instance->completion_mutex);
instance         1169 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			int remove = instance->completion_remove;
instance         1177 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 				if (remove == instance->completion_insert)
instance         1180 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 				completion = &instance->completions[
instance         1249 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 					!instance->use_close_delivered)
instance         1268 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 				instance->completion_remove = remove;
instance         1283 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			complete(&instance->remove_event);
instance         1284 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		mutex_unlock(&instance->completion_mutex);
instance         1299 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		service = find_service_for_instance(instance, args.handle);
instance         1406 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		service = find_service_for_instance(instance, args.handle);
instance         1422 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			instance->use_close_delivered = 1;
instance         1428 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		service = find_closed_service_for_instance(instance, handle);
instance         1456 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			instance,
instance         1464 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			instance,
instance         1922 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	VCHIQ_INSTANCE_T instance;
instance         1932 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	instance = kzalloc(sizeof(*instance), GFP_KERNEL);
instance         1933 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	if (!instance)
instance         1936 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	instance->state = state;
instance         1937 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	instance->pid = current->tgid;
instance         1939 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	vchiq_debugfs_add_instance(instance);
instance         1941 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	init_completion(&instance->insert_event);
instance         1942 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	init_completion(&instance->remove_event);
instance         1943 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	mutex_init(&instance->completion_mutex);
instance         1944 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	mutex_init(&instance->bulk_waiter_list_mutex);
instance         1945 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	INIT_LIST_HEAD(&instance->bulk_waiter_list);
instance         1947 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	file->private_data = instance;
instance         1954 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	VCHIQ_INSTANCE_T instance = file->private_data;
instance         1961 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		       (unsigned long)instance);
instance         1969 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	vchiq_use_internal(instance->state, NULL, USE_TYPE_VCHIQ);
instance         1971 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	mutex_lock(&instance->completion_mutex);
instance         1974 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	instance->closing = 1;
instance         1975 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	complete(&instance->insert_event);
instance         1977 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	mutex_unlock(&instance->completion_mutex);
instance         1980 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	complete(&instance->remove_event);
instance         1984 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	while ((service = next_service_by_instance(state, instance, &i))) {
instance         1996 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	while ((service = next_service_by_instance(state, instance, &i))) {
instance         2024 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	while (instance->completion_remove !=
instance         2025 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		instance->completion_insert) {
instance         2029 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		completion = &instance->completions[
instance         2030 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			instance->completion_remove & (MAX_COMPLETIONS - 1)];
instance         2037 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			if (instance->use_close_delivered)
instance         2041 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		instance->completion_remove++;
instance         2045 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	vchiq_release_internal(instance->state, NULL);
instance         2051 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 					 &instance->bulk_waiter_list, list) {
instance         2060 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	vchiq_debugfs_remove_instance(instance);
instance         2062 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	kfree(instance);
instance         2133 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		VCHIQ_INSTANCE_T instance;
instance         2136 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			instance = service->instance;
instance         2137 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			if (instance)
instance         2138 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 				instance->mark = 0;
instance         2144 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		VCHIQ_INSTANCE_T instance;
instance         2147 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			instance = service->instance;
instance         2148 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 			if (instance && !instance->mark) {
instance         2151 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 					instance, instance->pid,
instance         2152 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 					instance->connected ? " connected, " :
instance         2154 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 					instance->completion_insert -
instance         2155 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 						instance->completion_remove,
instance         2160 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 				instance->mark = 1;
instance         2181 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	len = snprintf(buf, sizeof(buf), "  instance %pK", service->instance);
instance         2291 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	VCHIQ_INSTANCE_T instance;
instance         2301 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	status = vchiq_initialise(&instance);
instance         2308 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	status = vchiq_connect(instance);
instance         2315 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	status = vchiq_add_service(instance, &params, &ka_handle);
instance         2359 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	vchiq_shutdown(instance);
instance         2914 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c vchiq_instance_get_debugfs_node(VCHIQ_INSTANCE_T instance)
instance         2916 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	return &instance->debugfs_node;
instance         2920 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c vchiq_instance_get_use_count(VCHIQ_INSTANCE_T instance)
instance         2926 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	while ((service = next_service_by_instance(instance->state,
instance         2927 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		instance, &i)) != NULL) {
instance         2935 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c vchiq_instance_get_pid(VCHIQ_INSTANCE_T instance)
instance         2937 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	return instance->pid;
instance         2941 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c vchiq_instance_get_trace(VCHIQ_INSTANCE_T instance)
instance         2943 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	return instance->trace;
instance         2947 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c vchiq_instance_set_trace(VCHIQ_INSTANCE_T instance, int trace)
instance         2953 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	while ((service = next_service_by_instance(instance->state,
instance         2954 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 		instance, &i)) != NULL) {
instance         2958 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c 	instance->trace = (trace != 0);
instance          165 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h vchiq_instance_get_debugfs_node(VCHIQ_INSTANCE_T instance);
instance          168 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h vchiq_instance_get_use_count(VCHIQ_INSTANCE_T instance);
instance          171 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h vchiq_instance_get_pid(VCHIQ_INSTANCE_T instance);
instance          174 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h vchiq_instance_get_trace(VCHIQ_INSTANCE_T instance);
instance          177 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h vchiq_instance_set_trace(VCHIQ_INSTANCE_T instance, int trace);
instance          180 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c find_service_for_instance(VCHIQ_INSTANCE_T instance,
instance          189 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c 		(service->instance == instance)) {
instance          204 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c find_closed_service_for_instance(VCHIQ_INSTANCE_T instance,
instance          215 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c 		(service->instance == instance)) {
instance          230 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c next_service_by_instance(struct vchiq_state *state, VCHIQ_INSTANCE_T instance,
instance          241 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c 			(srv->instance == instance)) {
instance         1202 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c 			if (bulk->data && service->instance) {
instance         2286 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c 			   int srvstate, VCHIQ_INSTANCE_T instance,
instance         2319 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c 	service->instance      = instance;
instance         2360 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c 				&& ((srv->instance != instance) ||
instance         2781 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c vchiq_connect_internal(struct vchiq_state *state, VCHIQ_INSTANCE_T instance)
instance         2788 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c 	while ((service = next_service_by_instance(state, instance,
instance         2817 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c vchiq_shutdown_internal(struct vchiq_state *state, VCHIQ_INSTANCE_T instance)
instance         2824 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c 	while ((service = next_service_by_instance(state, instance,
instance          271 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h 	VCHIQ_INSTANCE_T instance;
instance          385 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h 	VCHIQ_INSTANCE_T *instance;
instance          498 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h vchiq_connect_internal(struct vchiq_state *state, VCHIQ_INSTANCE_T instance);
instance          503 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h 			   int srvstate, VCHIQ_INSTANCE_T instance,
instance          519 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h vchiq_shutdown_internal(struct vchiq_state *state, VCHIQ_INSTANCE_T instance);
instance          563 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h find_service_for_instance(VCHIQ_INSTANCE_T instance,
instance          567 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h find_closed_service_for_instance(VCHIQ_INSTANCE_T instance,
instance          571 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h next_service_by_instance(struct vchiq_state *state, VCHIQ_INSTANCE_T instance,
instance          120 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c 	VCHIQ_INSTANCE_T instance = f->private;
instance          123 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c 	use_count = vchiq_instance_get_use_count(instance);
instance          132 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c 	VCHIQ_INSTANCE_T instance = f->private;
instance          135 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c 	trace = vchiq_instance_get_trace(instance);
instance          151 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c 	VCHIQ_INSTANCE_T instance = f->private;
instance          161 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c 		vchiq_instance_set_trace(instance, 1);
instance          166 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c 		vchiq_instance_set_trace(instance, 0);
instance          187 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c void vchiq_debugfs_add_instance(VCHIQ_INSTANCE_T instance)
instance          193 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c 		 vchiq_instance_get_pid(instance));
instance          197 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c 	debugfs_create_file("use_count", 0444, top, instance,
instance          199 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c 	debugfs_create_file("trace", 0644, top, instance, &debugfs_trace_fops);
instance          201 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c 	vchiq_instance_get_debugfs_node(instance)->dentry = top;
instance          204 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c void vchiq_debugfs_remove_instance(VCHIQ_INSTANCE_T instance)
instance          207 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c 				vchiq_instance_get_debugfs_node(instance);
instance          245 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c void vchiq_debugfs_add_instance(VCHIQ_INSTANCE_T instance)
instance          249 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c void vchiq_debugfs_remove_instance(VCHIQ_INSTANCE_T instance)
instance           17 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.h void vchiq_debugfs_add_instance(VCHIQ_INSTANCE_T instance);
instance           19 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.h void vchiq_debugfs_remove_instance(VCHIQ_INSTANCE_T instance);
instance           99 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h extern VCHIQ_STATUS_T vchiq_shutdown(VCHIQ_INSTANCE_T instance);
instance          100 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h extern VCHIQ_STATUS_T vchiq_connect(VCHIQ_INSTANCE_T instance);
instance          101 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h extern VCHIQ_STATUS_T vchiq_add_service(VCHIQ_INSTANCE_T instance,
instance          104 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h extern VCHIQ_STATUS_T vchiq_open_service(VCHIQ_INSTANCE_T instance,
instance          138 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h extern VCHIQ_STATUS_T vchiq_remote_use(VCHIQ_INSTANCE_T instance,
instance          140 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h extern VCHIQ_STATUS_T vchiq_remote_release(VCHIQ_INSTANCE_T instance);
instance          449 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c 	VCHIQ_INSTANCE_T instance;
instance          452 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c 	status = vchiq_initialise(&instance);
instance          454 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c 	*instance_handle = (VCHI_INSTANCE_T)instance;
instance          473 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c 	VCHIQ_INSTANCE_T instance = (VCHIQ_INSTANCE_T)instance_handle;
instance          475 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c 	return vchiq_connect(instance);
instance          492 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c 	VCHIQ_INSTANCE_T instance = (VCHIQ_INSTANCE_T)instance_handle;
instance          494 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c 	return vchiq_status_to_vchi(vchiq_shutdown(instance));
instance          574 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c static struct shim_service *service_alloc(VCHIQ_INSTANCE_T instance,
instance          579 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c 	(void)instance;
instance          606 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c 	VCHIQ_INSTANCE_T instance = (VCHIQ_INSTANCE_T)instance_handle;
instance          607 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c 	struct shim_service *service = service_alloc(instance, setup);
instance          622 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c 		status = vchiq_open_service(instance, &params,
instance           80 drivers/thermal/fair_share.c 	struct thermal_instance *instance;
instance           85 drivers/thermal/fair_share.c 	list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
instance           86 drivers/thermal/fair_share.c 		if (instance->trip != trip)
instance           89 drivers/thermal/fair_share.c 		total_weight += instance->weight;
instance           93 drivers/thermal/fair_share.c 	list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
instance           95 drivers/thermal/fair_share.c 		struct thermal_cooling_device *cdev = instance->cdev;
instance           97 drivers/thermal/fair_share.c 		if (instance->trip != trip)
instance          103 drivers/thermal/fair_share.c 			percentage = (instance->weight * 100) / total_weight;
instance          105 drivers/thermal/fair_share.c 		instance->target = get_target_state(tz, cdev, percentage,
instance          108 drivers/thermal/fair_share.c 		mutex_lock(&instance->cdev->lock);
instance          109 drivers/thermal/fair_share.c 		instance->cdev->updated = false;
instance          110 drivers/thermal/fair_share.c 		mutex_unlock(&instance->cdev->lock);
instance           19 drivers/thermal/gov_bang_bang.c 	struct thermal_instance *instance;
instance           36 drivers/thermal/gov_bang_bang.c 	list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
instance           37 drivers/thermal/gov_bang_bang.c 		if (instance->trip != trip)
instance           41 drivers/thermal/gov_bang_bang.c 		if (instance->target == THERMAL_NO_TARGET)
instance           42 drivers/thermal/gov_bang_bang.c 			instance->target = 0;
instance           45 drivers/thermal/gov_bang_bang.c 		if (instance->target != 0 && instance->target != 1) {
instance           47 drivers/thermal/gov_bang_bang.c 					instance->name, instance->target);
instance           48 drivers/thermal/gov_bang_bang.c 			instance->target = 1;
instance           55 drivers/thermal/gov_bang_bang.c 		if (instance->target == 0 && tz->temperature >= trip_temp)
instance           56 drivers/thermal/gov_bang_bang.c 			instance->target = 1;
instance           57 drivers/thermal/gov_bang_bang.c 		else if (instance->target == 1 &&
instance           59 drivers/thermal/gov_bang_bang.c 			instance->target = 0;
instance           61 drivers/thermal/gov_bang_bang.c 		dev_dbg(&instance->cdev->device, "target=%d\n",
instance           62 drivers/thermal/gov_bang_bang.c 					(int)instance->target);
instance           64 drivers/thermal/gov_bang_bang.c 		mutex_lock(&instance->cdev->lock);
instance           65 drivers/thermal/gov_bang_bang.c 		instance->cdev->updated = false; /* cdev needs update */
instance           66 drivers/thermal/gov_bang_bang.c 		mutex_unlock(&instance->cdev->lock);
instance          101 drivers/thermal/gov_bang_bang.c 	struct thermal_instance *instance;
instance          107 drivers/thermal/gov_bang_bang.c 	list_for_each_entry(instance, &tz->thermal_instances, tz_node)
instance          108 drivers/thermal/gov_bang_bang.c 		thermal_cdev_update(instance->cdev);
instance           96 drivers/thermal/power_allocator.c 	struct thermal_instance *instance;
instance           99 drivers/thermal/power_allocator.c 	list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
instance          100 drivers/thermal/power_allocator.c 		struct thermal_cooling_device *cdev = instance->cdev;
instance          103 drivers/thermal/power_allocator.c 		if (instance->trip != params->trip_max_desired_temperature)
instance          335 drivers/thermal/power_allocator.c 	struct thermal_instance *instance;
instance          348 drivers/thermal/power_allocator.c 	list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
instance          349 drivers/thermal/power_allocator.c 		if ((instance->trip == trip_max_desired_temperature) &&
instance          350 drivers/thermal/power_allocator.c 		    cdev_is_power_actor(instance->cdev)) {
instance          352 drivers/thermal/power_allocator.c 			total_weight += instance->weight;
instance          388 drivers/thermal/power_allocator.c 	list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
instance          390 drivers/thermal/power_allocator.c 		struct thermal_cooling_device *cdev = instance->cdev;
instance          392 drivers/thermal/power_allocator.c 		if (instance->trip != trip_max_desired_temperature)
instance          404 drivers/thermal/power_allocator.c 			weight = instance->weight;
instance          426 drivers/thermal/power_allocator.c 	list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
instance          427 drivers/thermal/power_allocator.c 		if (instance->trip != trip_max_desired_temperature)
instance          430 drivers/thermal/power_allocator.c 		if (!cdev_is_power_actor(instance->cdev))
instance          433 drivers/thermal/power_allocator.c 		power_actor_set_power(instance->cdev, instance,
instance          523 drivers/thermal/power_allocator.c 	struct thermal_instance *instance;
instance          527 drivers/thermal/power_allocator.c 	list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
instance          528 drivers/thermal/power_allocator.c 		if ((instance->trip != params->trip_max_desired_temperature) ||
instance          529 drivers/thermal/power_allocator.c 		    (!cdev_is_power_actor(instance->cdev)))
instance          532 drivers/thermal/power_allocator.c 		instance->target = 0;
instance          533 drivers/thermal/power_allocator.c 		mutex_lock(&instance->cdev->lock);
instance          534 drivers/thermal/power_allocator.c 		instance->cdev->updated = false;
instance          535 drivers/thermal/power_allocator.c 		mutex_unlock(&instance->cdev->lock);
instance          536 drivers/thermal/power_allocator.c 		thermal_cdev_update(instance->cdev);
instance           37 drivers/thermal/step_wise.c static unsigned long get_target_state(struct thermal_instance *instance,
instance           40 drivers/thermal/step_wise.c 	struct thermal_cooling_device *cdev = instance->cdev;
instance           50 drivers/thermal/step_wise.c 	next_target = instance->target;
instance           53 drivers/thermal/step_wise.c 	if (!instance->initialized) {
instance           55 drivers/thermal/step_wise.c 			next_target = (cur_state + 1) >= instance->upper ?
instance           56 drivers/thermal/step_wise.c 					instance->upper :
instance           57 drivers/thermal/step_wise.c 					((cur_state + 1) < instance->lower ?
instance           58 drivers/thermal/step_wise.c 					instance->lower : (cur_state + 1));
instance           69 drivers/thermal/step_wise.c 			next_target = cur_state < instance->upper ?
instance           70 drivers/thermal/step_wise.c 				    (cur_state + 1) : instance->upper;
instance           71 drivers/thermal/step_wise.c 			if (next_target < instance->lower)
instance           72 drivers/thermal/step_wise.c 				next_target = instance->lower;
instance           77 drivers/thermal/step_wise.c 			next_target = instance->upper;
instance           80 drivers/thermal/step_wise.c 		if (cur_state <= instance->lower) {
instance           86 drivers/thermal/step_wise.c 				if (next_target > instance->upper)
instance           87 drivers/thermal/step_wise.c 					next_target = instance->upper;
instance           92 drivers/thermal/step_wise.c 		if (cur_state == instance->lower) {
instance           96 drivers/thermal/step_wise.c 			next_target = instance->lower;
instance          121 drivers/thermal/step_wise.c 	struct thermal_instance *instance;
instance          145 drivers/thermal/step_wise.c 	list_for_each_entry(instance, &tz->thermal_instances, tz_node) {
instance          146 drivers/thermal/step_wise.c 		if (instance->trip != trip)
instance          149 drivers/thermal/step_wise.c 		old_target = instance->target;
instance          150 drivers/thermal/step_wise.c 		instance->target = get_target_state(instance, trend, throttle);
instance          151 drivers/thermal/step_wise.c 		dev_dbg(&instance->cdev->device, "old_target=%d, target=%d\n",
instance          152 drivers/thermal/step_wise.c 					old_target, (int)instance->target);
instance          154 drivers/thermal/step_wise.c 		if (instance->initialized && old_target == instance->target)
instance          159 drivers/thermal/step_wise.c 			instance->target != THERMAL_NO_TARGET)
instance          163 drivers/thermal/step_wise.c 			instance->target == THERMAL_NO_TARGET)
instance          166 drivers/thermal/step_wise.c 		instance->initialized = true;
instance          167 drivers/thermal/step_wise.c 		mutex_lock(&instance->cdev->lock);
instance          168 drivers/thermal/step_wise.c 		instance->cdev->updated = false; /* cdev needs update */
instance          169 drivers/thermal/step_wise.c 		mutex_unlock(&instance->cdev->lock);
instance          188 drivers/thermal/step_wise.c 	struct thermal_instance *instance;
instance          197 drivers/thermal/step_wise.c 	list_for_each_entry(instance, &tz->thermal_instances, tz_node)
instance          198 drivers/thermal/step_wise.c 		thermal_cdev_update(instance->cdev);
instance          591 drivers/thermal/thermal_core.c 			  struct thermal_instance *instance, u32 power)
instance          599 drivers/thermal/thermal_core.c 	ret = cdev->ops->power2state(cdev, instance->tz, power, &state);
instance          603 drivers/thermal/thermal_core.c 	instance->target = state;
instance          168 drivers/thermal/thermal_helpers.c 	struct thermal_instance *instance;
instance          179 drivers/thermal/thermal_helpers.c 	list_for_each_entry(instance, &cdev->thermal_instances, cdev_node) {
instance          181 drivers/thermal/thermal_helpers.c 			instance->tz->id, instance->target);
instance          182 drivers/thermal/thermal_helpers.c 		if (instance->target == THERMAL_NO_TARGET)
instance          184 drivers/thermal/thermal_helpers.c 		if (instance->target > target)
instance          185 drivers/thermal/thermal_helpers.c 			target = instance->target;
instance          969 drivers/thermal/thermal_sysfs.c 	struct thermal_instance *instance;
instance          971 drivers/thermal/thermal_sysfs.c 	instance =
instance          974 drivers/thermal/thermal_sysfs.c 	if (instance->trip == THERMAL_TRIPS_NONE)
instance          977 drivers/thermal/thermal_sysfs.c 		return sprintf(buf, "%d\n", instance->trip);
instance          983 drivers/thermal/thermal_sysfs.c 	struct thermal_instance *instance;
instance          985 drivers/thermal/thermal_sysfs.c 	instance = container_of(attr, struct thermal_instance, weight_attr);
instance          987 drivers/thermal/thermal_sysfs.c 	return sprintf(buf, "%d\n", instance->weight);
instance          993 drivers/thermal/thermal_sysfs.c 	struct thermal_instance *instance;
instance         1000 drivers/thermal/thermal_sysfs.c 	instance = container_of(attr, struct thermal_instance, weight_attr);
instance         1001 drivers/thermal/thermal_sysfs.c 	instance->weight = weight;
instance          193 drivers/usb/atm/cxacru.c static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
instance          211 drivers/usb/atm/cxacru.c 	struct cxacru_data *instance = to_usbatm_driver_data(\
instance          214 drivers/usb/atm/cxacru.c 	if (instance == NULL) \
instance          217 drivers/usb/atm/cxacru.c 	return cxacru_sysfs_showattr_##_type(instance->card_info[_value], buf); \
instance          306 drivers/usb/atm/cxacru.c 	struct cxacru_data *instance = to_usbatm_driver_data(
instance          309 drivers/usb/atm/cxacru.c 	if (instance == NULL || instance->usbatm->atm_dev == NULL)
instance          313 drivers/usb/atm/cxacru.c 		instance->usbatm->atm_dev->esi);
instance          320 drivers/usb/atm/cxacru.c 	struct cxacru_data *instance = to_usbatm_driver_data(
instance          324 drivers/usb/atm/cxacru.c 	if (instance == NULL)
instance          327 drivers/usb/atm/cxacru.c 	value = instance->card_info[CXINF_LINE_STARTABLE];
instance          336 drivers/usb/atm/cxacru.c 	struct cxacru_data *instance = to_usbatm_driver_data(
instance          351 drivers/usb/atm/cxacru.c 	if (instance == NULL)
instance          354 drivers/usb/atm/cxacru.c 	if (mutex_lock_interruptible(&instance->adsl_state_serialize))
instance          358 drivers/usb/atm/cxacru.c 		ret = cxacru_cm(instance, CM_REQUEST_CHIP_ADSL_LINE_STOP, NULL, 0, NULL, 0);
instance          360 drivers/usb/atm/cxacru.c 			atm_err(instance->usbatm, "change adsl state:"
instance          378 drivers/usb/atm/cxacru.c 		ret = cxacru_cm(instance, CM_REQUEST_CHIP_ADSL_LINE_START, NULL, 0, NULL, 0);
instance          380 drivers/usb/atm/cxacru.c 			atm_err(instance->usbatm, "change adsl state:"
instance          401 drivers/usb/atm/cxacru.c 		mutex_lock(&instance->poll_state_serialize);
instance          402 drivers/usb/atm/cxacru.c 		switch (instance->poll_state) {
instance          405 drivers/usb/atm/cxacru.c 			instance->poll_state = CXPOLL_POLLING;
instance          410 drivers/usb/atm/cxacru.c 			instance->poll_state = CXPOLL_POLLING;
instance          417 drivers/usb/atm/cxacru.c 		mutex_unlock(&instance->poll_state_serialize);
instance          419 drivers/usb/atm/cxacru.c 		mutex_lock(&instance->poll_state_serialize);
instance          421 drivers/usb/atm/cxacru.c 		if (instance->poll_state == CXPOLL_POLLING)
instance          422 drivers/usb/atm/cxacru.c 			instance->poll_state = CXPOLL_STOPPING;
instance          423 drivers/usb/atm/cxacru.c 		mutex_unlock(&instance->poll_state_serialize);
instance          426 drivers/usb/atm/cxacru.c 	mutex_unlock(&instance->adsl_state_serialize);
instance          429 drivers/usb/atm/cxacru.c 		cxacru_poll_status(&instance->poll_work.work);
instance          439 drivers/usb/atm/cxacru.c 	struct cxacru_data *instance = to_usbatm_driver_data(
instance          448 drivers/usb/atm/cxacru.c 	if (instance == NULL)
instance          482 drivers/usb/atm/cxacru.c 			ret = cxacru_cm(instance, CM_REQUEST_CARD_DATA_SET,
instance          485 drivers/usb/atm/cxacru.c 				atm_err(instance->usbatm,
instance          494 drivers/usb/atm/cxacru.c 			atm_info(instance->usbatm, "config%s\n", log);
instance          609 drivers/usb/atm/cxacru.c static int cxacru_cm(struct cxacru_data *instance, enum cxacru_cm_request cm,
instance          615 drivers/usb/atm/cxacru.c 	u8 *wbuf = instance->snd_buf;
instance          616 drivers/usb/atm/cxacru.c 	u8 *rbuf = instance->rcv_buf;
instance          622 drivers/usb/atm/cxacru.c 			usb_err(instance->usbatm, "requested transfer size too large (%d, %d)\n",
instance          628 drivers/usb/atm/cxacru.c 	mutex_lock(&instance->cm_serialize);
instance          631 drivers/usb/atm/cxacru.c 	init_completion(&instance->rcv_done);
instance          632 drivers/usb/atm/cxacru.c 	ret = usb_submit_urb(instance->rcv_urb, GFP_KERNEL);
instance          635 drivers/usb/atm/cxacru.c 			usb_err(instance->usbatm, "submit of read urb for cm %#x failed (%d)\n",
instance          648 drivers/usb/atm/cxacru.c 	instance->snd_urb->transfer_buffer_length = wbuflen;
instance          649 drivers/usb/atm/cxacru.c 	init_completion(&instance->snd_done);
instance          650 drivers/usb/atm/cxacru.c 	ret = usb_submit_urb(instance->snd_urb, GFP_KERNEL);
instance          653 drivers/usb/atm/cxacru.c 			usb_err(instance->usbatm, "submit of write urb for cm %#x failed (%d)\n",
instance          658 drivers/usb/atm/cxacru.c 	ret = cxacru_start_wait_urb(instance->snd_urb, &instance->snd_done, NULL);
instance          661 drivers/usb/atm/cxacru.c 			usb_err(instance->usbatm, "send of cm %#x failed (%d)\n", cm, ret);
instance          665 drivers/usb/atm/cxacru.c 	ret = cxacru_start_wait_urb(instance->rcv_urb, &instance->rcv_done, &actlen);
instance          668 drivers/usb/atm/cxacru.c 			usb_err(instance->usbatm, "receive of cm %#x failed (%d)\n", cm, ret);
instance          673 drivers/usb/atm/cxacru.c 			usb_err(instance->usbatm, "invalid response length to cm %#x: %d\n",
instance          683 drivers/usb/atm/cxacru.c 				usb_err(instance->usbatm, "wrong cm %#x in response to cm %#x\n",
instance          690 drivers/usb/atm/cxacru.c 				usb_err(instance->usbatm, "response to cm %#x failed: %#x\n",
instance          702 drivers/usb/atm/cxacru.c 	usb_dbg(instance->usbatm, "cm %#x\n", cm);
instance          704 drivers/usb/atm/cxacru.c 	mutex_unlock(&instance->cm_serialize);
instance          709 drivers/usb/atm/cxacru.c static int cxacru_cm_get_array(struct cxacru_data *instance, enum cxacru_cm_request cm,
instance          723 drivers/usb/atm/cxacru.c 	ret = cxacru_cm(instance, cm, NULL, 0, (u8 *) buf, buflen);
instance          734 drivers/usb/atm/cxacru.c 				usb_err(instance->usbatm, "invalid data length from cm %#x: %d\n",
instance          743 drivers/usb/atm/cxacru.c 					usb_err(instance->usbatm, "wrong index %#x in response to cm %#x\n",
instance          759 drivers/usb/atm/cxacru.c static int cxacru_card_status(struct cxacru_data *instance)
instance          761 drivers/usb/atm/cxacru.c 	int ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_STATUS, NULL, 0, NULL, 0);
instance          764 drivers/usb/atm/cxacru.c 		usb_dbg(instance->usbatm, "cxacru_adsl_start: CARD_GET_STATUS returned %d\n", ret);
instance          773 drivers/usb/atm/cxacru.c 	struct cxacru_data *instance = usbatm_instance->driver_data;
instance          781 drivers/usb/atm/cxacru.c 	ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_MAC_ADDRESS, NULL, 0,
instance          789 drivers/usb/atm/cxacru.c 	mutex_lock(&instance->adsl_state_serialize);
instance          790 drivers/usb/atm/cxacru.c 	ret = cxacru_cm(instance, CM_REQUEST_CHIP_ADSL_LINE_START, NULL, 0, NULL, 0);
instance          795 drivers/usb/atm/cxacru.c 	mutex_lock(&instance->poll_state_serialize);
instance          796 drivers/usb/atm/cxacru.c 	switch (instance->poll_state) {
instance          799 drivers/usb/atm/cxacru.c 		instance->poll_state = CXPOLL_POLLING;
instance          804 drivers/usb/atm/cxacru.c 		instance->poll_state = CXPOLL_POLLING;
instance          811 drivers/usb/atm/cxacru.c 	mutex_unlock(&instance->poll_state_serialize);
instance          812 drivers/usb/atm/cxacru.c 	mutex_unlock(&instance->adsl_state_serialize);
instance          818 drivers/usb/atm/cxacru.c 		cxacru_poll_status(&instance->poll_work.work);
instance          824 drivers/usb/atm/cxacru.c 	struct cxacru_data *instance =
instance          827 drivers/usb/atm/cxacru.c 	struct usbatm_data *usbatm = instance->usbatm;
instance          832 drivers/usb/atm/cxacru.c 	ret = cxacru_cm_get_array(instance, CM_REQUEST_CARD_INFO_GET, buf, CXINF_MAX);
instance          837 drivers/usb/atm/cxacru.c 		mutex_lock(&instance->poll_state_serialize);
instance          838 drivers/usb/atm/cxacru.c 		if (instance->poll_state != CXPOLL_SHUTDOWN) {
instance          839 drivers/usb/atm/cxacru.c 			instance->poll_state = CXPOLL_STOPPED;
instance          845 drivers/usb/atm/cxacru.c 		mutex_unlock(&instance->poll_state_serialize);
instance          849 drivers/usb/atm/cxacru.c 	memcpy(instance->card_info, buf, sizeof(instance->card_info));
instance          851 drivers/usb/atm/cxacru.c 	if (instance->adsl_status != buf[CXINF_LINE_STARTABLE]) {
instance          852 drivers/usb/atm/cxacru.c 		instance->adsl_status = buf[CXINF_LINE_STARTABLE];
instance          854 drivers/usb/atm/cxacru.c 		switch (instance->adsl_status) {
instance          864 drivers/usb/atm/cxacru.c 			atm_printk(KERN_INFO, usbatm, "Unknown adsl status %02x\n", instance->adsl_status);
instance          869 drivers/usb/atm/cxacru.c 	if (instance->line_status == buf[CXINF_LINE_STATUS])
instance          872 drivers/usb/atm/cxacru.c 	instance->line_status = buf[CXINF_LINE_STATUS];
instance          873 drivers/usb/atm/cxacru.c 	switch (instance->line_status) {
instance          919 drivers/usb/atm/cxacru.c 		atm_info(usbatm, "Unknown line state %02x\n", instance->line_status);
instance          924 drivers/usb/atm/cxacru.c 	mutex_lock(&instance->poll_state_serialize);
instance          925 drivers/usb/atm/cxacru.c 	if (instance->poll_state == CXPOLL_STOPPING &&
instance          926 drivers/usb/atm/cxacru.c 				instance->adsl_status == 1 && /* stopped */
instance          927 drivers/usb/atm/cxacru.c 				instance->line_status == 0) /* down */
instance          928 drivers/usb/atm/cxacru.c 		instance->poll_state = CXPOLL_STOPPED;
instance          930 drivers/usb/atm/cxacru.c 	if (instance->poll_state == CXPOLL_STOPPED)
instance          932 drivers/usb/atm/cxacru.c 	mutex_unlock(&instance->poll_state_serialize);
instance          935 drivers/usb/atm/cxacru.c 		schedule_delayed_work(&instance->poll_work,
instance          987 drivers/usb/atm/cxacru.c static void cxacru_upload_firmware(struct cxacru_data *instance,
instance          992 drivers/usb/atm/cxacru.c 	struct usbatm_data *usbatm = instance->usbatm;
instance         1001 drivers/usb/atm/cxacru.c 	val = cpu_to_le32(instance->modem_type->pll_f_clk);
instance         1009 drivers/usb/atm/cxacru.c 	val = cpu_to_le32(instance->modem_type->pll_b_clk);
instance         1033 drivers/usb/atm/cxacru.c 	if (instance->modem_type->boot_rom_patch) {
instance         1050 drivers/usb/atm/cxacru.c 	if (instance->modem_type->boot_rom_patch) {
instance         1069 drivers/usb/atm/cxacru.c 	ret = cxacru_cm(instance, CM_REQUEST_CARD_GET_STATUS, NULL, 0, NULL, 0);
instance         1076 drivers/usb/atm/cxacru.c static int cxacru_find_firmware(struct cxacru_data *instance,
instance         1079 drivers/usb/atm/cxacru.c 	struct usbatm_data *usbatm = instance->usbatm;
instance         1100 drivers/usb/atm/cxacru.c 	struct cxacru_data *instance = usbatm_instance->driver_data;
instance         1101 drivers/usb/atm/cxacru.c 	int ret = cxacru_find_firmware(instance, "fw", &fw);
instance         1108 drivers/usb/atm/cxacru.c 	if (instance->modem_type->boot_rom_patch) {
instance         1109 drivers/usb/atm/cxacru.c 		ret = cxacru_find_firmware(instance, "bp", &bp);
instance         1117 drivers/usb/atm/cxacru.c 	cxacru_upload_firmware(instance, fw, bp);
instance         1119 drivers/usb/atm/cxacru.c 	if (instance->modem_type->boot_rom_patch)
instance         1123 drivers/usb/atm/cxacru.c 	ret = cxacru_card_status(instance);
instance         1135 drivers/usb/atm/cxacru.c 	struct cxacru_data *instance;
instance         1141 drivers/usb/atm/cxacru.c 	instance = kzalloc(sizeof(*instance), GFP_KERNEL);
instance         1142 drivers/usb/atm/cxacru.c 	if (!instance)
instance         1145 drivers/usb/atm/cxacru.c 	instance->usbatm = usbatm_instance;
instance         1146 drivers/usb/atm/cxacru.c 	instance->modem_type = (struct cxacru_modem_type *) id->driver_info;
instance         1148 drivers/usb/atm/cxacru.c 	mutex_init(&instance->poll_state_serialize);
instance         1149 drivers/usb/atm/cxacru.c 	instance->poll_state = CXPOLL_STOPPED;
instance         1150 drivers/usb/atm/cxacru.c 	instance->line_status = -1;
instance         1151 drivers/usb/atm/cxacru.c 	instance->adsl_status = -1;
instance         1153 drivers/usb/atm/cxacru.c 	mutex_init(&instance->adsl_state_serialize);
instance         1155 drivers/usb/atm/cxacru.c 	instance->rcv_buf = (u8 *) __get_free_page(GFP_KERNEL);
instance         1156 drivers/usb/atm/cxacru.c 	if (!instance->rcv_buf) {
instance         1161 drivers/usb/atm/cxacru.c 	instance->snd_buf = (u8 *) __get_free_page(GFP_KERNEL);
instance         1162 drivers/usb/atm/cxacru.c 	if (!instance->snd_buf) {
instance         1167 drivers/usb/atm/cxacru.c 	instance->rcv_urb = usb_alloc_urb(0, GFP_KERNEL);
instance         1168 drivers/usb/atm/cxacru.c 	if (!instance->rcv_urb) {
instance         1172 drivers/usb/atm/cxacru.c 	instance->snd_urb = usb_alloc_urb(0, GFP_KERNEL);
instance         1173 drivers/usb/atm/cxacru.c 	if (!instance->snd_urb) {
instance         1186 drivers/usb/atm/cxacru.c 		usb_fill_int_urb(instance->rcv_urb,
instance         1188 drivers/usb/atm/cxacru.c 			instance->rcv_buf, PAGE_SIZE,
instance         1189 drivers/usb/atm/cxacru.c 			cxacru_blocking_completion, &instance->rcv_done, 1);
instance         1191 drivers/usb/atm/cxacru.c 		usb_fill_int_urb(instance->snd_urb,
instance         1193 drivers/usb/atm/cxacru.c 			instance->snd_buf, PAGE_SIZE,
instance         1194 drivers/usb/atm/cxacru.c 			cxacru_blocking_completion, &instance->snd_done, 4);
instance         1196 drivers/usb/atm/cxacru.c 		usb_fill_bulk_urb(instance->rcv_urb,
instance         1198 drivers/usb/atm/cxacru.c 			instance->rcv_buf, PAGE_SIZE,
instance         1199 drivers/usb/atm/cxacru.c 			cxacru_blocking_completion, &instance->rcv_done);
instance         1201 drivers/usb/atm/cxacru.c 		usb_fill_bulk_urb(instance->snd_urb,
instance         1203 drivers/usb/atm/cxacru.c 			instance->snd_buf, PAGE_SIZE,
instance         1204 drivers/usb/atm/cxacru.c 			cxacru_blocking_completion, &instance->snd_done);
instance         1207 drivers/usb/atm/cxacru.c 	mutex_init(&instance->cm_serialize);
instance         1209 drivers/usb/atm/cxacru.c 	INIT_DELAYED_WORK(&instance->poll_work, cxacru_poll_status);
instance         1211 drivers/usb/atm/cxacru.c 	usbatm_instance->driver_data = instance;
instance         1213 drivers/usb/atm/cxacru.c 	usbatm_instance->flags = (cxacru_card_status(instance) ? 0 : UDSL_SKIP_HEAVY_INIT);
instance         1218 drivers/usb/atm/cxacru.c 	free_page((unsigned long) instance->snd_buf);
instance         1219 drivers/usb/atm/cxacru.c 	free_page((unsigned long) instance->rcv_buf);
instance         1220 drivers/usb/atm/cxacru.c 	usb_free_urb(instance->snd_urb);
instance         1221 drivers/usb/atm/cxacru.c 	usb_free_urb(instance->rcv_urb);
instance         1222 drivers/usb/atm/cxacru.c 	kfree(instance);
instance         1230 drivers/usb/atm/cxacru.c 	struct cxacru_data *instance = usbatm_instance->driver_data;
instance         1235 drivers/usb/atm/cxacru.c 	if (!instance) {
instance         1240 drivers/usb/atm/cxacru.c 	mutex_lock(&instance->poll_state_serialize);
instance         1241 drivers/usb/atm/cxacru.c 	BUG_ON(instance->poll_state == CXPOLL_SHUTDOWN);
instance         1245 drivers/usb/atm/cxacru.c 	if (instance->poll_state == CXPOLL_STOPPED)
instance         1249 drivers/usb/atm/cxacru.c 	instance->poll_state = CXPOLL_SHUTDOWN;
instance         1250 drivers/usb/atm/cxacru.c 	mutex_unlock(&instance->poll_state_serialize);
instance         1253 drivers/usb/atm/cxacru.c 		cancel_delayed_work_sync(&instance->poll_work);
instance         1255 drivers/usb/atm/cxacru.c 	usb_kill_urb(instance->snd_urb);
instance         1256 drivers/usb/atm/cxacru.c 	usb_kill_urb(instance->rcv_urb);
instance         1257 drivers/usb/atm/cxacru.c 	usb_free_urb(instance->snd_urb);
instance         1258 drivers/usb/atm/cxacru.c 	usb_free_urb(instance->rcv_urb);
instance         1260 drivers/usb/atm/cxacru.c 	free_page((unsigned long) instance->snd_buf);
instance         1261 drivers/usb/atm/cxacru.c 	free_page((unsigned long) instance->rcv_buf);
instance         1263 drivers/usb/atm/cxacru.c 	kfree(instance);
instance          144 drivers/usb/atm/speedtch.c static void speedtch_set_swbuff(struct speedtch_instance_data *instance, int state)
instance          146 drivers/usb/atm/speedtch.c 	struct usbatm_data *usbatm = instance->usbatm;
instance          160 drivers/usb/atm/speedtch.c static void speedtch_test_sequence(struct speedtch_instance_data *instance)
instance          162 drivers/usb/atm/speedtch.c 	struct usbatm_data *usbatm = instance->usbatm;
instance          164 drivers/usb/atm/speedtch.c 	unsigned char *buf = instance->scratch_buffer;
instance          204 drivers/usb/atm/speedtch.c 	buf[0] = instance->params.ModemMode;
instance          216 drivers/usb/atm/speedtch.c 			      instance->params.ModemOption,
instance          222 drivers/usb/atm/speedtch.c 	buf[0] = instance->params.BMaxDSL & 0xff;
instance          223 drivers/usb/atm/speedtch.c 	buf[1] = instance->params.BMaxDSL >> 8;
instance          230 drivers/usb/atm/speedtch.c static int speedtch_upload_firmware(struct speedtch_instance_data *instance,
instance          235 drivers/usb/atm/speedtch.c 	struct usbatm_data *usbatm = instance->usbatm;
instance          327 drivers/usb/atm/speedtch.c 	if ((ret = usb_set_interface(usb_dev, INTERFACE_DATA, instance->params.altsetting)) < 0) {
instance          328 drivers/usb/atm/speedtch.c 		usb_err(usbatm, "%s: setting interface to %d failed (%d)!\n", __func__, instance->params.altsetting, ret);
instance          334 drivers/usb/atm/speedtch.c 		speedtch_set_swbuff(instance, 1);
instance          337 drivers/usb/atm/speedtch.c 	speedtch_test_sequence(instance);
instance          382 drivers/usb/atm/speedtch.c 	struct speedtch_instance_data *instance = usbatm->driver_data;
instance          393 drivers/usb/atm/speedtch.c 	if ((ret = speedtch_upload_firmware(instance, fw1, fw2)) < 0)
instance          407 drivers/usb/atm/speedtch.c static int speedtch_read_status(struct speedtch_instance_data *instance)
instance          409 drivers/usb/atm/speedtch.c 	struct usbatm_data *usbatm = instance->usbatm;
instance          411 drivers/usb/atm/speedtch.c 	unsigned char *buf = instance->scratch_buffer;
instance          459 drivers/usb/atm/speedtch.c static int speedtch_start_synchro(struct speedtch_instance_data *instance)
instance          461 drivers/usb/atm/speedtch.c 	struct usbatm_data *usbatm = instance->usbatm;
instance          463 drivers/usb/atm/speedtch.c 	unsigned char *buf = instance->scratch_buffer;
instance          485 drivers/usb/atm/speedtch.c 	struct speedtch_instance_data *instance =
instance          488 drivers/usb/atm/speedtch.c 	struct usbatm_data *usbatm = instance->usbatm;
instance          490 drivers/usb/atm/speedtch.c 	unsigned char *buf = instance->scratch_buffer;
instance          498 drivers/usb/atm/speedtch.c 	ret = speedtch_read_status(instance);
instance          501 drivers/usb/atm/speedtch.c 		instance->poll_delay = min(2 * instance->poll_delay, MAX_POLL_DELAY);
instance          505 drivers/usb/atm/speedtch.c 	instance->poll_delay = max(instance->poll_delay / 2, MIN_POLL_DELAY);
instance          509 drivers/usb/atm/speedtch.c 	if ((status != instance->last_status) || !status) {
instance          515 drivers/usb/atm/speedtch.c 			if (instance->last_status)
instance          518 drivers/usb/atm/speedtch.c 			ret = speedtch_start_synchro(instance);
instance          556 drivers/usb/atm/speedtch.c 		instance->last_status = status;
instance          562 drivers/usb/atm/speedtch.c 	struct speedtch_instance_data *instance = from_timer(instance, t,
instance          565 drivers/usb/atm/speedtch.c 	schedule_work(&instance->status_check_work);
instance          568 drivers/usb/atm/speedtch.c 	if (instance->poll_delay < MAX_POLL_DELAY)
instance          569 drivers/usb/atm/speedtch.c 		mod_timer(&instance->status_check_timer, jiffies + msecs_to_jiffies(instance->poll_delay));
instance          571 drivers/usb/atm/speedtch.c 		atm_warn(instance->usbatm, "Too many failures - disabling line status polling\n");
instance          576 drivers/usb/atm/speedtch.c 	struct speedtch_instance_data *instance = from_timer(instance, t,
instance          578 drivers/usb/atm/speedtch.c 	struct urb *int_urb = instance->int_urb;
instance          581 drivers/usb/atm/speedtch.c 	atm_dbg(instance->usbatm, "%s entered\n", __func__);
instance          586 drivers/usb/atm/speedtch.c 			schedule_work(&instance->status_check_work);
instance          588 drivers/usb/atm/speedtch.c 			atm_dbg(instance->usbatm, "%s: usb_submit_urb failed with result %d\n", __func__, ret);
instance          589 drivers/usb/atm/speedtch.c 			mod_timer(&instance->resubmit_timer, jiffies + msecs_to_jiffies(RESUBMIT_DELAY));
instance          596 drivers/usb/atm/speedtch.c 	struct speedtch_instance_data *instance = int_urb->context;
instance          597 drivers/usb/atm/speedtch.c 	struct usbatm_data *usbatm = instance->usbatm;
instance          614 drivers/usb/atm/speedtch.c 	if ((count == 6) && !memcmp(up_int, instance->int_data, 6)) {
instance          615 drivers/usb/atm/speedtch.c 		del_timer(&instance->status_check_timer);
instance          617 drivers/usb/atm/speedtch.c 	} else if ((count == 6) && !memcmp(down_int, instance->int_data, 6)) {
instance          624 drivers/usb/atm/speedtch.c 			printk(" %02x", instance->int_data[i]);
instance          629 drivers/usb/atm/speedtch.c 	int_urb = instance->int_urb;
instance          632 drivers/usb/atm/speedtch.c 		schedule_work(&instance->status_check_work);
instance          642 drivers/usb/atm/speedtch.c 	int_urb = instance->int_urb;
instance          644 drivers/usb/atm/speedtch.c 		mod_timer(&instance->resubmit_timer, jiffies + msecs_to_jiffies(RESUBMIT_DELAY));
instance          650 drivers/usb/atm/speedtch.c 	struct speedtch_instance_data *instance = usbatm->driver_data;
instance          665 drivers/usb/atm/speedtch.c 	ret = speedtch_start_synchro(instance);
instance          668 drivers/usb/atm/speedtch.c 	if (instance->int_urb) {
instance          669 drivers/usb/atm/speedtch.c 		ret = usb_submit_urb(instance->int_urb, GFP_KERNEL);
instance          673 drivers/usb/atm/speedtch.c 			usb_free_urb(instance->int_urb);
instance          674 drivers/usb/atm/speedtch.c 			instance->int_urb = NULL;
instance          679 drivers/usb/atm/speedtch.c 	mod_timer(&instance->status_check_timer, jiffies + msecs_to_jiffies(1000));
instance          686 drivers/usb/atm/speedtch.c 	struct speedtch_instance_data *instance = usbatm->driver_data;
instance          687 drivers/usb/atm/speedtch.c 	struct urb *int_urb = instance->int_urb;
instance          691 drivers/usb/atm/speedtch.c 	del_timer_sync(&instance->status_check_timer);
instance          697 drivers/usb/atm/speedtch.c 	instance->int_urb = NULL; /* signal shutdown */
instance          700 drivers/usb/atm/speedtch.c 	del_timer_sync(&instance->resubmit_timer);
instance          707 drivers/usb/atm/speedtch.c 	del_timer_sync(&instance->resubmit_timer);
instance          710 drivers/usb/atm/speedtch.c 	flush_work(&instance->status_check_work);
instance          767 drivers/usb/atm/speedtch.c 	struct speedtch_instance_data *instance;
instance          804 drivers/usb/atm/speedtch.c 	instance = kzalloc(sizeof(*instance), GFP_KERNEL);
instance          806 drivers/usb/atm/speedtch.c 	if (!instance) {
instance          811 drivers/usb/atm/speedtch.c 	instance->usbatm = usbatm;
instance          814 drivers/usb/atm/speedtch.c 	instance->params.altsetting = altsetting;
instance          815 drivers/usb/atm/speedtch.c 	instance->params.BMaxDSL = BMaxDSL;
instance          816 drivers/usb/atm/speedtch.c 	instance->params.ModemMode = ModemMode;
instance          817 drivers/usb/atm/speedtch.c 	memcpy(instance->params.ModemOption, DEFAULT_MODEM_OPTION, MODEM_OPTION_LENGTH);
instance          818 drivers/usb/atm/speedtch.c 	memcpy(instance->params.ModemOption, ModemOption, num_ModemOption);
instance          821 drivers/usb/atm/speedtch.c 	if (instance->params.altsetting)
instance          822 drivers/usb/atm/speedtch.c 		if ((ret = usb_set_interface(usb_dev, INTERFACE_DATA, instance->params.altsetting)) < 0) {
instance          823 drivers/usb/atm/speedtch.c 			usb_err(usbatm, "%s: setting interface to %2d failed (%d)!\n", __func__, instance->params.altsetting, ret);
instance          824 drivers/usb/atm/speedtch.c 			instance->params.altsetting = 0; /* fall back to default */
instance          827 drivers/usb/atm/speedtch.c 	if (!instance->params.altsetting && use_isoc)
instance          853 drivers/usb/atm/speedtch.c 	if (!use_isoc && !instance->params.altsetting)
instance          859 drivers/usb/atm/speedtch.c 	if (!instance->params.altsetting)
instance          860 drivers/usb/atm/speedtch.c 		instance->params.altsetting = use_isoc ? DEFAULT_ISOC_ALTSETTING : DEFAULT_BULK_ALTSETTING;
instance          864 drivers/usb/atm/speedtch.c 	INIT_WORK(&instance->status_check_work, speedtch_check_status);
instance          865 drivers/usb/atm/speedtch.c 	timer_setup(&instance->status_check_timer, speedtch_status_poll, 0);
instance          866 drivers/usb/atm/speedtch.c 	instance->last_status = 0xff;
instance          867 drivers/usb/atm/speedtch.c 	instance->poll_delay = MIN_POLL_DELAY;
instance          869 drivers/usb/atm/speedtch.c 	timer_setup(&instance->resubmit_timer, speedtch_resubmit_int, 0);
instance          871 drivers/usb/atm/speedtch.c 	instance->int_urb = usb_alloc_urb(0, GFP_KERNEL);
instance          873 drivers/usb/atm/speedtch.c 	if (instance->int_urb)
instance          874 drivers/usb/atm/speedtch.c 		usb_fill_int_urb(instance->int_urb, usb_dev,
instance          876 drivers/usb/atm/speedtch.c 				 instance->int_data, sizeof(instance->int_data),
instance          877 drivers/usb/atm/speedtch.c 				 speedtch_handle_int, instance, 16);
instance          884 drivers/usb/atm/speedtch.c 			      instance->scratch_buffer + OFFSET_7, SIZE_7, 500);
instance          896 drivers/usb/atm/speedtch.c         usbatm->driver_data = instance;
instance          901 drivers/usb/atm/speedtch.c 	usb_free_urb(instance->int_urb);
instance          902 drivers/usb/atm/speedtch.c 	kfree(instance);
instance          911 drivers/usb/atm/speedtch.c 	struct speedtch_instance_data *instance = usbatm->driver_data;
instance          916 drivers/usb/atm/speedtch.c 	usb_free_urb(instance->int_urb);
instance          917 drivers/usb/atm/speedtch.c 	kfree(instance);
instance           73 drivers/usb/atm/usbatm.c static int usbatm_print_packet(struct usbatm_data *instance, const unsigned char *data, int len);
instance          280 drivers/usb/atm/usbatm.c static inline struct usbatm_vcc_data *usbatm_find_vcc(struct usbatm_data *instance,
instance          285 drivers/usb/atm/usbatm.c 	list_for_each_entry(vcc_data, &instance->vcc_list, list)
instance          291 drivers/usb/atm/usbatm.c static void usbatm_extract_one_cell(struct usbatm_data *instance, unsigned char *source)
instance          299 drivers/usb/atm/usbatm.c 	if ((vci != instance->cached_vci) || (vpi != instance->cached_vpi)) {
instance          300 drivers/usb/atm/usbatm.c 		instance->cached_vpi = vpi;
instance          301 drivers/usb/atm/usbatm.c 		instance->cached_vci = vci;
instance          303 drivers/usb/atm/usbatm.c 		instance->cached_vcc = usbatm_find_vcc(instance, vpi, vci);
instance          305 drivers/usb/atm/usbatm.c 		if (!instance->cached_vcc)
instance          306 drivers/usb/atm/usbatm.c 			atm_rldbg(instance, "%s: unknown vpi/vci (%hd/%d)!\n", __func__, vpi, vci);
instance          309 drivers/usb/atm/usbatm.c 	if (!instance->cached_vcc)
instance          312 drivers/usb/atm/usbatm.c 	vcc = instance->cached_vcc->vcc;
instance          317 drivers/usb/atm/usbatm.c 			atm_warn(instance, "%s: OAM not supported (vpi %d, vci %d)!\n",
instance          323 drivers/usb/atm/usbatm.c 	sarb = instance->cached_vcc->sarb;
instance          326 drivers/usb/atm/usbatm.c 		atm_rldbg(instance, "%s: buffer overrun (sarb->len %u, vcc: 0x%p)!\n",
instance          344 drivers/usb/atm/usbatm.c 			atm_rldbg(instance, "%s: bogus length %u (vcc: 0x%p)!\n",
instance          353 drivers/usb/atm/usbatm.c 			atm_rldbg(instance, "%s: bogus pdu_length %u (sarb->len: %u, vcc: 0x%p)!\n",
instance          360 drivers/usb/atm/usbatm.c 			atm_rldbg(instance, "%s: packet failed crc check (vcc: 0x%p)!\n",
instance          366 drivers/usb/atm/usbatm.c 		vdbg(&instance->usb_intf->dev,
instance          373 drivers/usb/atm/usbatm.c 				atm_err(instance, "%s: no memory for skb (length: %u)!\n",
instance          379 drivers/usb/atm/usbatm.c 		vdbg(&instance->usb_intf->dev,
instance          384 drivers/usb/atm/usbatm.c 			atm_rldbg(instance, "%s: failed atm_charge (skb->truesize: %u)!\n",
instance          395 drivers/usb/atm/usbatm.c 		vdbg(&instance->usb_intf->dev,
instance          399 drivers/usb/atm/usbatm.c 		PACKETDEBUG(instance, skb->data, skb->len);
instance          409 drivers/usb/atm/usbatm.c static void usbatm_extract_cells(struct usbatm_data *instance,
instance          412 drivers/usb/atm/usbatm.c 	unsigned int stride = instance->rx_channel.stride;
instance          413 drivers/usb/atm/usbatm.c 	unsigned int buf_usage = instance->buf_usage;
instance          420 drivers/usb/atm/usbatm.c 		unsigned char *cell_buf = instance->cell_buf;
instance          428 drivers/usb/atm/usbatm.c 			usbatm_extract_one_cell(instance, cell_buf);
instance          429 drivers/usb/atm/usbatm.c 			instance->buf_usage = 0;
instance          433 drivers/usb/atm/usbatm.c 			instance->buf_usage = buf_usage + avail_data;
instance          439 drivers/usb/atm/usbatm.c 		usbatm_extract_one_cell(instance, source);
instance          444 drivers/usb/atm/usbatm.c 		memcpy(instance->cell_buf, source, avail_data);
instance          445 drivers/usb/atm/usbatm.c 		instance->buf_usage = avail_data;
instance          454 drivers/usb/atm/usbatm.c static unsigned int usbatm_write_cells(struct usbatm_data *instance,
instance          461 drivers/usb/atm/usbatm.c 	unsigned int stride = instance->tx_channel.stride;
instance          516 drivers/usb/atm/usbatm.c 	struct usbatm_data *instance = (struct usbatm_data *)data;
instance          519 drivers/usb/atm/usbatm.c 	while ((urb = usbatm_pop_urb(&instance->rx_channel))) {
instance          520 drivers/usb/atm/usbatm.c 		vdbg(&instance->usb_intf->dev,
instance          526 drivers/usb/atm/usbatm.c 			const unsigned int packet_size = instance->rx_channel.packet_size;
instance          537 drivers/usb/atm/usbatm.c 						usbatm_extract_cells(instance, merge_start, merge_length);
instance          541 drivers/usb/atm/usbatm.c 					atm_rldbg(instance, "%s: status %d in frame %d!\n", __func__, urb->status, i);
instance          543 drivers/usb/atm/usbatm.c 						usbatm_extract_cells(instance, merge_start, merge_length);
instance          545 drivers/usb/atm/usbatm.c 					instance->buf_usage = 0;
instance          550 drivers/usb/atm/usbatm.c 				usbatm_extract_cells(instance, merge_start, merge_length);
instance          553 drivers/usb/atm/usbatm.c 				usbatm_extract_cells(instance, urb->transfer_buffer, urb->actual_length);
instance          555 drivers/usb/atm/usbatm.c 				instance->buf_usage = 0;
instance          569 drivers/usb/atm/usbatm.c 	struct usbatm_data *instance = (struct usbatm_data *)data;
instance          570 drivers/usb/atm/usbatm.c 	struct sk_buff *skb = instance->current_skb;
instance          572 drivers/usb/atm/usbatm.c 	const unsigned int buf_size = instance->tx_channel.buf_size;
instance          577 drivers/usb/atm/usbatm.c 		skb = skb_dequeue(&instance->sndqueue);
instance          581 drivers/usb/atm/usbatm.c 			urb = usbatm_pop_urb(&instance->tx_channel);
instance          589 drivers/usb/atm/usbatm.c 		bytes_written += usbatm_write_cells(instance, skb,
instance          593 drivers/usb/atm/usbatm.c 		vdbg(&instance->usb_intf->dev,
instance          603 drivers/usb/atm/usbatm.c 			skb = skb_dequeue(&instance->sndqueue);
instance          615 drivers/usb/atm/usbatm.c 	instance->current_skb = skb;
instance          618 drivers/usb/atm/usbatm.c static void usbatm_cancel_send(struct usbatm_data *instance,
instance          623 drivers/usb/atm/usbatm.c 	spin_lock_irq(&instance->sndqueue.lock);
instance          624 drivers/usb/atm/usbatm.c 	skb_queue_walk_safe(&instance->sndqueue, skb, n) {
instance          626 drivers/usb/atm/usbatm.c 			atm_dbg(instance, "%s: popping skb 0x%p\n", __func__, skb);
instance          627 drivers/usb/atm/usbatm.c 			__skb_unlink(skb, &instance->sndqueue);
instance          631 drivers/usb/atm/usbatm.c 	spin_unlock_irq(&instance->sndqueue.lock);
instance          633 drivers/usb/atm/usbatm.c 	tasklet_disable(&instance->tx_channel.tasklet);
instance          634 drivers/usb/atm/usbatm.c 	if ((skb = instance->current_skb) && (UDSL_SKB(skb)->atm.vcc == vcc)) {
instance          635 drivers/usb/atm/usbatm.c 		atm_dbg(instance, "%s: popping current skb (0x%p)\n", __func__, skb);
instance          636 drivers/usb/atm/usbatm.c 		instance->current_skb = NULL;
instance          639 drivers/usb/atm/usbatm.c 	tasklet_enable(&instance->tx_channel.tasklet);
instance          644 drivers/usb/atm/usbatm.c 	struct usbatm_data *instance = vcc->dev->dev_data;
instance          649 drivers/usb/atm/usbatm.c 	if (!instance || instance->disconnected) {
instance          651 drivers/usb/atm/usbatm.c 		printk_ratelimited(KERN_DEBUG "%s: %s!\n", __func__, instance ? "disconnected" : "NULL instance");
instance          658 drivers/usb/atm/usbatm.c 		atm_rldbg(instance, "%s: unsupported ATM type %d!\n", __func__, vcc->qos.aal);
instance          664 drivers/usb/atm/usbatm.c 		atm_rldbg(instance, "%s: packet too long (%d vs %d)!\n",
instance          670 drivers/usb/atm/usbatm.c 	PACKETDEBUG(instance, skb->data, skb->len);
instance          677 drivers/usb/atm/usbatm.c 	skb_queue_tail(&instance->sndqueue, skb);
instance          678 drivers/usb/atm/usbatm.c 	tasklet_schedule(&instance->tx_channel.tasklet);
instance          694 drivers/usb/atm/usbatm.c 	struct usbatm_data *instance = container_of(kref, struct usbatm_data, refcount);
instance          696 drivers/usb/atm/usbatm.c 	tasklet_kill(&instance->rx_channel.tasklet);
instance          697 drivers/usb/atm/usbatm.c 	tasklet_kill(&instance->tx_channel.tasklet);
instance          698 drivers/usb/atm/usbatm.c 	usb_put_dev(instance->usb_dev);
instance          699 drivers/usb/atm/usbatm.c 	kfree(instance);
instance          702 drivers/usb/atm/usbatm.c static void usbatm_get_instance(struct usbatm_data *instance)
instance          704 drivers/usb/atm/usbatm.c 	kref_get(&instance->refcount);
instance          707 drivers/usb/atm/usbatm.c static void usbatm_put_instance(struct usbatm_data *instance)
instance          709 drivers/usb/atm/usbatm.c 	kref_put(&instance->refcount, usbatm_destroy_instance);
instance          719 drivers/usb/atm/usbatm.c 	struct usbatm_data *instance = atm_dev->dev_data;
instance          721 drivers/usb/atm/usbatm.c 	if (!instance)
instance          725 drivers/usb/atm/usbatm.c 	usbatm_put_instance(instance);	/* taken in usbatm_atm_init */
instance          730 drivers/usb/atm/usbatm.c 	struct usbatm_data *instance = atm_dev->dev_data;
instance          733 drivers/usb/atm/usbatm.c 	if (!instance)
instance          737 drivers/usb/atm/usbatm.c 		return sprintf(page, "%s\n", instance->description);
instance          752 drivers/usb/atm/usbatm.c 		if (instance->disconnected)
instance          770 drivers/usb/atm/usbatm.c 	struct usbatm_data *instance = vcc->dev->dev_data;
instance          776 drivers/usb/atm/usbatm.c 	if (!instance)
instance          781 drivers/usb/atm/usbatm.c 		atm_warn(instance, "%s: unsupported ATM type %d!\n", __func__, vcc->qos.aal);
instance          787 drivers/usb/atm/usbatm.c 		atm_dbg(instance, "%s: max_sdu %d out of range!\n", __func__, vcc->qos.rxtp.max_sdu);
instance          791 drivers/usb/atm/usbatm.c 	mutex_lock(&instance->serialize);	/* vs self, usbatm_atm_close, usbatm_usb_disconnect */
instance          793 drivers/usb/atm/usbatm.c 	if (instance->disconnected) {
instance          794 drivers/usb/atm/usbatm.c 		atm_dbg(instance, "%s: disconnected!\n", __func__);
instance          799 drivers/usb/atm/usbatm.c 	if (usbatm_find_vcc(instance, vpi, vci)) {
instance          800 drivers/usb/atm/usbatm.c 		atm_dbg(instance, "%s: %hd/%d already in use!\n", __func__, vpi, vci);
instance          817 drivers/usb/atm/usbatm.c 		atm_err(instance, "%s: no memory for SAR buffer!\n", __func__);
instance          824 drivers/usb/atm/usbatm.c 	tasklet_disable(&instance->rx_channel.tasklet);
instance          825 drivers/usb/atm/usbatm.c 	instance->cached_vcc = new;
instance          826 drivers/usb/atm/usbatm.c 	instance->cached_vpi = vpi;
instance          827 drivers/usb/atm/usbatm.c 	instance->cached_vci = vci;
instance          828 drivers/usb/atm/usbatm.c 	list_add(&new->list, &instance->vcc_list);
instance          829 drivers/usb/atm/usbatm.c 	tasklet_enable(&instance->rx_channel.tasklet);
instance          835 drivers/usb/atm/usbatm.c 	mutex_unlock(&instance->serialize);
instance          837 drivers/usb/atm/usbatm.c 	atm_dbg(instance, "%s: allocated vcc data 0x%p\n", __func__, new);
instance          843 drivers/usb/atm/usbatm.c 	mutex_unlock(&instance->serialize);
instance          849 drivers/usb/atm/usbatm.c 	struct usbatm_data *instance = vcc->dev->dev_data;
instance          852 drivers/usb/atm/usbatm.c 	if (!instance || !vcc_data)
instance          855 drivers/usb/atm/usbatm.c 	usbatm_cancel_send(instance, vcc);
instance          857 drivers/usb/atm/usbatm.c 	mutex_lock(&instance->serialize);	/* vs self, usbatm_atm_open, usbatm_usb_disconnect */
instance          859 drivers/usb/atm/usbatm.c 	tasklet_disable(&instance->rx_channel.tasklet);
instance          860 drivers/usb/atm/usbatm.c 	if (instance->cached_vcc == vcc_data) {
instance          861 drivers/usb/atm/usbatm.c 		instance->cached_vcc = NULL;
instance          862 drivers/usb/atm/usbatm.c 		instance->cached_vpi = ATM_VPI_UNSPEC;
instance          863 drivers/usb/atm/usbatm.c 		instance->cached_vci = ATM_VCI_UNSPEC;
instance          866 drivers/usb/atm/usbatm.c 	tasklet_enable(&instance->rx_channel.tasklet);
instance          880 drivers/usb/atm/usbatm.c 	mutex_unlock(&instance->serialize);
instance          886 drivers/usb/atm/usbatm.c 	struct usbatm_data *instance = atm_dev->dev_data;
instance          888 drivers/usb/atm/usbatm.c 	if (!instance || instance->disconnected)
instance          899 drivers/usb/atm/usbatm.c static int usbatm_atm_init(struct usbatm_data *instance)
instance          908 drivers/usb/atm/usbatm.c 	atm_dev = atm_dev_register(instance->driver_name,
instance          909 drivers/usb/atm/usbatm.c 				   &instance->usb_intf->dev, &usbatm_atm_devops,
instance          912 drivers/usb/atm/usbatm.c 		usb_err(instance, "%s: failed to register ATM device!\n", __func__);
instance          916 drivers/usb/atm/usbatm.c 	instance->atm_dev = atm_dev;
instance          925 drivers/usb/atm/usbatm.c 	if (instance->driver->atm_start && ((ret = instance->driver->atm_start(instance, atm_dev)) < 0)) {
instance          926 drivers/usb/atm/usbatm.c 		atm_err(instance, "%s: atm_start failed: %d!\n", __func__, ret);
instance          930 drivers/usb/atm/usbatm.c 	usbatm_get_instance(instance);	/* dropped in usbatm_atm_dev_close */
instance          934 drivers/usb/atm/usbatm.c 	atm_dev->dev_data = instance;
instance          938 drivers/usb/atm/usbatm.c 		usbatm_submit_urb(instance->urbs[i]);
instance          943 drivers/usb/atm/usbatm.c 	instance->atm_dev = NULL;
instance          955 drivers/usb/atm/usbatm.c 	struct usbatm_data *instance = arg;
instance          959 drivers/usb/atm/usbatm.c 	complete(&instance->thread_started);
instance          961 drivers/usb/atm/usbatm.c 	ret = instance->driver->heavy_init(instance, instance->usb_intf);
instance          964 drivers/usb/atm/usbatm.c 		ret = usbatm_atm_init(instance);
instance          966 drivers/usb/atm/usbatm.c 	mutex_lock(&instance->serialize);
instance          967 drivers/usb/atm/usbatm.c 	instance->thread = NULL;
instance          968 drivers/usb/atm/usbatm.c 	mutex_unlock(&instance->serialize);
instance          970 drivers/usb/atm/usbatm.c 	complete_and_exit(&instance->thread_exited, ret);
instance          973 drivers/usb/atm/usbatm.c static int usbatm_heavy_init(struct usbatm_data *instance)
instance          977 drivers/usb/atm/usbatm.c 	t = kthread_create(usbatm_do_heavy_init, instance, "%s",
instance          978 drivers/usb/atm/usbatm.c 			instance->driver->driver_name);
instance          980 drivers/usb/atm/usbatm.c 		usb_err(instance, "%s: failed to create kernel_thread (%ld)!\n",
instance          985 drivers/usb/atm/usbatm.c 	instance->thread = t;
instance          987 drivers/usb/atm/usbatm.c 	wait_for_completion(&instance->thread_started);
instance         1011 drivers/usb/atm/usbatm.c 	struct usbatm_data *instance;
instance         1018 drivers/usb/atm/usbatm.c 	instance = kzalloc(sizeof(*instance) + sizeof(struct urb *) * (num_rcv_urbs + num_snd_urbs), GFP_KERNEL);
instance         1019 drivers/usb/atm/usbatm.c 	if (!instance)
instance         1024 drivers/usb/atm/usbatm.c 	instance->driver = driver;
instance         1025 drivers/usb/atm/usbatm.c 	strlcpy(instance->driver_name, driver->driver_name,
instance         1026 drivers/usb/atm/usbatm.c 		sizeof(instance->driver_name));
instance         1028 drivers/usb/atm/usbatm.c 	instance->usb_dev = usb_dev;
instance         1029 drivers/usb/atm/usbatm.c 	instance->usb_intf = intf;
instance         1031 drivers/usb/atm/usbatm.c 	buf = instance->description;
instance         1032 drivers/usb/atm/usbatm.c 	length = sizeof(instance->description);
instance         1053 drivers/usb/atm/usbatm.c 	if (driver->bind && (error = driver->bind(instance, intf, id)) < 0) {
instance         1060 drivers/usb/atm/usbatm.c 	kref_init(&instance->refcount);		/* dropped in usbatm_usb_disconnect */
instance         1061 drivers/usb/atm/usbatm.c 	mutex_init(&instance->serialize);
instance         1063 drivers/usb/atm/usbatm.c 	instance->thread = NULL;
instance         1064 drivers/usb/atm/usbatm.c 	init_completion(&instance->thread_started);
instance         1065 drivers/usb/atm/usbatm.c 	init_completion(&instance->thread_exited);
instance         1067 drivers/usb/atm/usbatm.c 	INIT_LIST_HEAD(&instance->vcc_list);
instance         1068 drivers/usb/atm/usbatm.c 	skb_queue_head_init(&instance->sndqueue);
instance         1070 drivers/usb/atm/usbatm.c 	usbatm_init_channel(&instance->rx_channel);
instance         1071 drivers/usb/atm/usbatm.c 	usbatm_init_channel(&instance->tx_channel);
instance         1072 drivers/usb/atm/usbatm.c 	tasklet_init(&instance->rx_channel.tasklet, usbatm_rx_process, (unsigned long)instance);
instance         1073 drivers/usb/atm/usbatm.c 	tasklet_init(&instance->tx_channel.tasklet, usbatm_tx_process, (unsigned long)instance);
instance         1074 drivers/usb/atm/usbatm.c 	instance->rx_channel.stride = ATM_CELL_SIZE + driver->rx_padding;
instance         1075 drivers/usb/atm/usbatm.c 	instance->tx_channel.stride = ATM_CELL_SIZE + driver->tx_padding;
instance         1076 drivers/usb/atm/usbatm.c 	instance->rx_channel.usbatm = instance->tx_channel.usbatm = instance;
instance         1078 drivers/usb/atm/usbatm.c 	if ((instance->flags & UDSL_USE_ISOC) && driver->isoc_in)
instance         1079 drivers/usb/atm/usbatm.c 		instance->rx_channel.endpoint = usb_rcvisocpipe(usb_dev, driver->isoc_in);
instance         1081 drivers/usb/atm/usbatm.c 		instance->rx_channel.endpoint = usb_rcvbulkpipe(usb_dev, driver->bulk_in);
instance         1083 drivers/usb/atm/usbatm.c 	instance->tx_channel.endpoint = usb_sndbulkpipe(usb_dev, driver->bulk_out);
instance         1086 drivers/usb/atm/usbatm.c 	instance->tx_channel.buf_size = max(instance->tx_channel.stride,
instance         1087 drivers/usb/atm/usbatm.c 			snd_buf_bytes - (snd_buf_bytes % instance->tx_channel.stride));
instance         1090 drivers/usb/atm/usbatm.c 	maxpacket = usb_maxpacket(usb_dev, instance->rx_channel.endpoint, 0);
instance         1094 drivers/usb/atm/usbatm.c 				usb_pipeendpoint(instance->rx_channel.endpoint));
instance         1104 drivers/usb/atm/usbatm.c 	instance->rx_channel.buf_size = num_packets * maxpacket;
instance         1105 drivers/usb/atm/usbatm.c 	instance->rx_channel.packet_size = maxpacket;
instance         1109 drivers/usb/atm/usbatm.c 			&instance->tx_channel : &instance->rx_channel;
instance         1120 drivers/usb/atm/usbatm.c 			&instance->rx_channel : &instance->tx_channel;
instance         1130 drivers/usb/atm/usbatm.c 		instance->urbs[i] = urb;
instance         1139 drivers/usb/atm/usbatm.c 		usb_fill_bulk_urb(urb, instance->usb_dev, channel->endpoint,
instance         1160 drivers/usb/atm/usbatm.c 	instance->cached_vpi = ATM_VPI_UNSPEC;
instance         1161 drivers/usb/atm/usbatm.c 	instance->cached_vci = ATM_VCI_UNSPEC;
instance         1162 drivers/usb/atm/usbatm.c 	instance->cell_buf = kmalloc(instance->rx_channel.stride, GFP_KERNEL);
instance         1164 drivers/usb/atm/usbatm.c 	if (!instance->cell_buf) {
instance         1169 drivers/usb/atm/usbatm.c 	if (!(instance->flags & UDSL_SKIP_HEAVY_INIT) && driver->heavy_init) {
instance         1170 drivers/usb/atm/usbatm.c 		error = usbatm_heavy_init(instance);
instance         1172 drivers/usb/atm/usbatm.c 		complete(&instance->thread_exited);	/* pretend that heavy_init was run */
instance         1173 drivers/usb/atm/usbatm.c 		error = usbatm_atm_init(instance);
instance         1180 drivers/usb/atm/usbatm.c 	usb_set_intfdata(intf, instance);
instance         1185 drivers/usb/atm/usbatm.c 	if (instance->driver->unbind)
instance         1186 drivers/usb/atm/usbatm.c 		instance->driver->unbind(instance, intf);
instance         1188 drivers/usb/atm/usbatm.c 	kfree(instance->cell_buf);
instance         1191 drivers/usb/atm/usbatm.c 		if (instance->urbs[i])
instance         1192 drivers/usb/atm/usbatm.c 			kfree(instance->urbs[i]->transfer_buffer);
instance         1193 drivers/usb/atm/usbatm.c 		usb_free_urb(instance->urbs[i]);
instance         1196 drivers/usb/atm/usbatm.c 	kfree(instance);
instance         1205 drivers/usb/atm/usbatm.c 	struct usbatm_data *instance = usb_get_intfdata(intf);
instance         1209 drivers/usb/atm/usbatm.c 	if (!instance) {
instance         1216 drivers/usb/atm/usbatm.c 	mutex_lock(&instance->serialize);
instance         1217 drivers/usb/atm/usbatm.c 	instance->disconnected = 1;
instance         1218 drivers/usb/atm/usbatm.c 	if (instance->thread != NULL)
instance         1219 drivers/usb/atm/usbatm.c 		send_sig(SIGTERM, instance->thread, 1);
instance         1220 drivers/usb/atm/usbatm.c 	mutex_unlock(&instance->serialize);
instance         1222 drivers/usb/atm/usbatm.c 	wait_for_completion(&instance->thread_exited);
instance         1224 drivers/usb/atm/usbatm.c 	mutex_lock(&instance->serialize);
instance         1225 drivers/usb/atm/usbatm.c 	list_for_each_entry(vcc_data, &instance->vcc_list, list)
instance         1227 drivers/usb/atm/usbatm.c 	mutex_unlock(&instance->serialize);
instance         1229 drivers/usb/atm/usbatm.c 	tasklet_disable(&instance->rx_channel.tasklet);
instance         1230 drivers/usb/atm/usbatm.c 	tasklet_disable(&instance->tx_channel.tasklet);
instance         1233 drivers/usb/atm/usbatm.c 		usb_kill_urb(instance->urbs[i]);
instance         1235 drivers/usb/atm/usbatm.c 	del_timer_sync(&instance->rx_channel.delay);
instance         1236 drivers/usb/atm/usbatm.c 	del_timer_sync(&instance->tx_channel.delay);
instance         1240 drivers/usb/atm/usbatm.c 	INIT_LIST_HEAD(&instance->rx_channel.list);
instance         1241 drivers/usb/atm/usbatm.c 	INIT_LIST_HEAD(&instance->tx_channel.list);
instance         1243 drivers/usb/atm/usbatm.c 	tasklet_enable(&instance->rx_channel.tasklet);
instance         1244 drivers/usb/atm/usbatm.c 	tasklet_enable(&instance->tx_channel.tasklet);
instance         1246 drivers/usb/atm/usbatm.c 	if (instance->atm_dev && instance->driver->atm_stop)
instance         1247 drivers/usb/atm/usbatm.c 		instance->driver->atm_stop(instance, instance->atm_dev);
instance         1249 drivers/usb/atm/usbatm.c 	if (instance->driver->unbind)
instance         1250 drivers/usb/atm/usbatm.c 		instance->driver->unbind(instance, intf);
instance         1252 drivers/usb/atm/usbatm.c 	instance->driver_data = NULL;
instance         1255 drivers/usb/atm/usbatm.c 		kfree(instance->urbs[i]->transfer_buffer);
instance         1256 drivers/usb/atm/usbatm.c 		usb_free_urb(instance->urbs[i]);
instance         1259 drivers/usb/atm/usbatm.c 	kfree(instance->cell_buf);
instance         1262 drivers/usb/atm/usbatm.c 	if (instance->atm_dev) {
instance         1263 drivers/usb/atm/usbatm.c 		atm_dev_deregister(instance->atm_dev);
instance         1264 drivers/usb/atm/usbatm.c 		instance->atm_dev = NULL;
instance         1267 drivers/usb/atm/usbatm.c 	usbatm_put_instance(instance);	/* taken in usbatm_usb_probe */
instance         1309 drivers/usb/atm/usbatm.c static int usbatm_print_packet(struct usbatm_data *instance,
instance         1320 drivers/usb/atm/usbatm.c 		dev_dbg(&instance->usb_intf->dev, "%s", buffer);
instance           29 drivers/usb/atm/usbatm.h #define usb_err(instance, format, arg...)	\
instance           30 drivers/usb/atm/usbatm.h 	dev_err(&(instance)->usb_intf->dev , format , ## arg)
instance           31 drivers/usb/atm/usbatm.h #define usb_info(instance, format, arg...)	\
instance           32 drivers/usb/atm/usbatm.h 	dev_info(&(instance)->usb_intf->dev , format , ## arg)
instance           33 drivers/usb/atm/usbatm.h #define usb_warn(instance, format, arg...)	\
instance           34 drivers/usb/atm/usbatm.h 	dev_warn(&(instance)->usb_intf->dev , format , ## arg)
instance           35 drivers/usb/atm/usbatm.h #define usb_dbg(instance, format, arg...)	\
instance           36 drivers/usb/atm/usbatm.h 	dev_dbg(&(instance)->usb_intf->dev , format , ## arg)
instance           39 drivers/usb/atm/usbatm.h #define atm_printk(level, instance, format, arg...)	\
instance           41 drivers/usb/atm/usbatm.h 	(instance)->atm_dev->number , ## arg)
instance           43 drivers/usb/atm/usbatm.h #define atm_err(instance, format, arg...)	\
instance           44 drivers/usb/atm/usbatm.h 	atm_printk(KERN_ERR, instance , format , ## arg)
instance           45 drivers/usb/atm/usbatm.h #define atm_info(instance, format, arg...)	\
instance           46 drivers/usb/atm/usbatm.h 	atm_printk(KERN_INFO, instance , format , ## arg)
instance           47 drivers/usb/atm/usbatm.h #define atm_warn(instance, format, arg...)	\
instance           48 drivers/usb/atm/usbatm.h 	atm_printk(KERN_WARNING, instance , format , ## arg)
instance           49 drivers/usb/atm/usbatm.h #define atm_dbg(instance, format, ...)					\
instance           51 drivers/usb/atm/usbatm.h 		 (instance)->atm_dev->number, ##__VA_ARGS__)
instance           52 drivers/usb/atm/usbatm.h #define atm_rldbg(instance, format, ...)				\
instance           54 drivers/usb/atm/usbatm.h 			     (instance)->atm_dev->number, ##__VA_ARGS__)
instance          475 drivers/usb/class/cdc-acm.c 	struct acm *acm = rb->instance;
instance          553 drivers/usb/class/cdc-acm.c 	struct acm *acm = wb->instance;
instance         1397 drivers/usb/class/cdc-acm.c 		rb->instance = acm;
instance         1434 drivers/usb/class/cdc-acm.c 		snd->instance = acm;
instance           72 drivers/usb/class/cdc-acm.h 	struct acm		*instance;
instance           80 drivers/usb/class/cdc-acm.h 	struct acm		*instance;
instance          189 drivers/usb/image/microtek.c              mts_debug_dump(context->instance);\
instance          381 drivers/usb/image/microtek.c 		      context->instance->usb_dev,
instance          424 drivers/usb/image/microtek.c 			   usb_rcvbulkpipe(context->instance->usb_dev,
instance          425 drivers/usb/image/microtek.c 					   context->instance->ep_response),
instance          530 drivers/usb/image/microtek.c 	desc->context.instance = desc;
instance           17 drivers/usb/image/microtek.h 	struct mts_desc *instance;
instance          774 fs/cifs/cifsglob.h 	unsigned int instance;
instance          825 fs/cifs/cifssmb.c 	struct cifs_credits credits = { .value = 1, .instance = 0 };
instance         1705 fs/cifs/cifssmb.c 	struct cifs_credits credits = { .value = 1, .instance = 0 };
instance         2231 fs/cifs/cifssmb.c 	struct cifs_credits credits = { .value = 1, .instance = 0 };
instance           63 fs/cifs/smb2ops.c 	unsigned int instance = credits->instance;
instance           73 fs/cifs/smb2ops.c 	if ((instance == 0) || (instance == server->reconnect_instance))
instance          101 fs/cifs/smb2ops.c 			 add, instance);
instance          186 fs/cifs/smb2ops.c 				credits->instance = 0;
instance          197 fs/cifs/smb2ops.c 			credits->instance = server->reconnect_instance;
instance          227 fs/cifs/smb2ops.c 	if (server->reconnect_instance != credits->instance) {
instance         3334 fs/cifs/smb2pdu.c 	struct cifs_credits credits = { .value = 0, .instance = 0 };
instance         3339 fs/cifs/smb2pdu.c 		credits.instance = server->reconnect_instance;
instance         3634 fs/cifs/smb2pdu.c 	struct cifs_credits credits = { .value = 0, .instance = 0 };
instance         3650 fs/cifs/smb2pdu.c 		credits.instance = server->reconnect_instance;
instance         3676 fs/cifs/smb2pdu.c 		credits.instance = server->reconnect_instance;
instance         3867 fs/cifs/smb2pdu.c 	struct cifs_credits credits = { .value = 0, .instance = 0 };
instance         3872 fs/cifs/smb2pdu.c 		credits.instance = server->reconnect_instance;
instance         3898 fs/cifs/smb2pdu.c 		credits.instance = server->reconnect_instance;
instance          529 fs/cifs/transport.c 		      unsigned int *instance)
instance          543 fs/cifs/transport.c 	*instance = 0;
instance          557 fs/cifs/transport.c 		*instance = server->reconnect_instance;
instance          634 fs/cifs/transport.c 				*instance = server->reconnect_instance;
instance          645 fs/cifs/transport.c 		      unsigned int *instance)
instance          648 fs/cifs/transport.c 				     instance);
instance          653 fs/cifs/transport.c 			  const int flags, unsigned int *instance)
instance          673 fs/cifs/transport.c 				     instance);
instance          682 fs/cifs/transport.c 	credits->instance = server->reconnect_instance;
instance          774 fs/cifs/transport.c 	struct cifs_credits credits = { .value = 0, .instance = 0 };
instance          775 fs/cifs/transport.c 	unsigned int instance;
instance          781 fs/cifs/transport.c 		rc = wait_for_free_request(server, flags, &instance);
instance          785 fs/cifs/transport.c 		credits.instance = instance;
instance          787 fs/cifs/transport.c 		instance = exist_credits->instance;
instance          796 fs/cifs/transport.c 	if (instance != server->reconnect_instance) {
instance          976 fs/cifs/transport.c 	credits.instance = server->reconnect_instance;
instance         1004 fs/cifs/transport.c 		{ .value = 0, .instance = 0 }
instance         1006 fs/cifs/transport.c 	unsigned int instance;
instance         1033 fs/cifs/transport.c 				       &instance);
instance         1039 fs/cifs/transport.c 		credits[i].instance = instance;
instance         1057 fs/cifs/transport.c 	if (instance != server->reconnect_instance) {
instance         1270 fs/cifs/transport.c 	struct cifs_credits credits = { .value = 1, .instance = 0 };
instance         1296 fs/cifs/transport.c 	rc = wait_for_free_request(server, flags, &credits.instance);
instance         1409 fs/cifs/transport.c 	unsigned int instance;
instance         1437 fs/cifs/transport.c 	rc = wait_for_free_request(server, CIFS_BLOCKING_OP, &instance);
instance         1038 fs/ntfs/attrib.c 		if (al_entry->instance != a->instance)
instance          703 fs/ntfs/layout.h /* 14*/	le16 instance;		/* The instance of this attribute record. This
instance          982 fs/ntfs/layout.h /* 24*/	le16 instance;		/* If lowest_vcn = 0, the instance of the
instance          380 include/acpi/acpiosxf.h 			  u32 instance,
instance          389 include/acpi/acpiosxf.h 			   u32 *instance, acpi_physical_address *address);
instance          480 include/acpi/acpixf.h 						   u32 instance,
instance          484 include/acpi/acpixf.h 			     acpi_get_table(acpi_string signature, u32 instance,
instance          181 include/acpi/actbl1.h 	u8 instance;
instance          367 include/linux/acpi.h extern acpi_status wmi_evaluate_method(const char *guid, u8 instance,
instance          371 include/linux/acpi.h extern acpi_status wmi_query_block(const char *guid, u8 instance,
instance          373 include/linux/acpi.h extern acpi_status wmi_set_block(const char *guid, u8 instance,
instance           93 include/linux/dmi.h 	int instance;
instance          243 include/linux/lockdep.h 	struct lockdep_map		*instance;
instance          504 include/linux/mod_devicetable.h 	__u16 dev_index, instance;
instance          266 include/linux/powercap.h int powercap_unregister_control_type(struct powercap_control_type *instance);
instance           23 include/linux/slimbus.h 	u8 instance;
instance          119 include/linux/soc/qcom/qmi.h 	unsigned int instance;
instance          240 include/linux/soc/qcom/qmi.h 		   unsigned int version, unsigned int instance);
instance          242 include/linux/soc/qcom/qmi.h 		   unsigned int version, unsigned int instance);
instance           64 include/linux/usb/tegra_usb_phy.h 	int instance;
instance           25 include/linux/wmi.h 					  u8 instance, u32 method_id,
instance           31 include/linux/wmi.h 					     u8 instance);
instance           21 include/media/i2c/saa6588.h 	struct file   *instance;
instance          127 include/media/v4l2-device.h 			 atomic_t *instance);
instance          173 include/net/bluetooth/hci_core.h 	__u8	instance;
instance         1138 include/net/bluetooth/hci_core.h struct adv_info *hci_find_adv_instance(struct hci_dev *hdev, u8 instance);
instance         1139 include/net/bluetooth/hci_core.h struct adv_info *hci_get_next_instance(struct hci_dev *hdev, u8 instance);
instance         1140 include/net/bluetooth/hci_core.h int hci_add_adv_instance(struct hci_dev *hdev, u8 instance, u32 flags,
instance         1144 include/net/bluetooth/hci_core.h int hci_remove_adv_instance(struct hci_dev *hdev, u8 instance);
instance         1590 include/net/bluetooth/hci_core.h 			    u8 instance);
instance         1592 include/net/bluetooth/hci_core.h 			      u8 instance);
instance          540 include/net/bluetooth/mgmt.h 	__u8   instance[0];
instance          545 include/net/bluetooth/mgmt.h 	__u8	instance;
instance          555 include/net/bluetooth/mgmt.h 	__u8	instance;
instance          574 include/net/bluetooth/mgmt.h 	__u8	instance;
instance          578 include/net/bluetooth/mgmt.h 	__u8	instance;
instance          583 include/net/bluetooth/mgmt.h 	__u8	instance;
instance          588 include/net/bluetooth/mgmt.h 	__u8	instance;
instance          864 include/net/bluetooth/mgmt.h 	__u8    instance;
instance          869 include/net/bluetooth/mgmt.h 	__u8    instance;
instance           11 include/net/caif/cfserl.h struct cflayer *cfserl_create(int instance, bool use_stx);
instance          840 include/uapi/drm/amdgpu_drm.h 			__u32 instance;
instance          160 include/uapi/drm/i915_drm.h #define __I915_PMU_ENGINE(class, instance, sample) \
instance          162 include/uapi/drm/i915_drm.h 	(instance) << I915_PMU_SAMPLE_BITS | \
instance          165 include/uapi/drm/i915_drm.h #define I915_PMU_ENGINE_BUSY(class, instance) \
instance          166 include/uapi/drm/i915_drm.h 	__I915_PMU_ENGINE(class, instance, I915_SAMPLE_BUSY)
instance          168 include/uapi/drm/i915_drm.h #define I915_PMU_ENGINE_WAIT(class, instance) \
instance          169 include/uapi/drm/i915_drm.h 	__I915_PMU_ENGINE(class, instance, I915_SAMPLE_WAIT)
instance          171 include/uapi/drm/i915_drm.h #define I915_PMU_ENGINE_SEMA(class, instance) \
instance          172 include/uapi/drm/i915_drm.h 	__I915_PMU_ENGINE(class, instance, I915_SAMPLE_SEMA)
instance           37 include/uapi/linux/qrtr.h 			__le32 instance;
instance           55 include/uapi/linux/tipc.h 	__u32 instance;
instance          203 include/uapi/linux/tipc.h 	__u32 instance;  /* member id */
instance          690 kernel/locking/lockdep.c 	printk(KERN_CONT "%px", hlock->instance);
instance         2395 kernel/locking/lockdep.c 		if (prev->instance == next->nest_lock)
instance         3897 kernel/locking/lockdep.c 	hlock->instance = lock;
instance         4017 kernel/locking/lockdep.c 	if (hlock->instance == lock)
instance         4096 kernel/locking/lockdep.c 		switch (__lock_acquire(hlock->instance,
instance         4251 kernel/locking/lockdep.c 	if (hlock->instance == lock)
instance         4642 kernel/locking/lockdep.c 	if (hlock->instance != lock)
instance         4684 kernel/locking/lockdep.c 	if (hlock->instance != lock)
instance         5297 kernel/locking/lockdep.c 		if (not_in_range(mem_from, mem_len, hlock->instance,
instance         5298 kernel/locking/lockdep.c 					sizeof(*hlock->instance)))
instance         2741 net/bluetooth/hci_core.c struct adv_info *hci_find_adv_instance(struct hci_dev *hdev, u8 instance)
instance         2746 net/bluetooth/hci_core.c 		if (adv_instance->instance == instance)
instance         2754 net/bluetooth/hci_core.c struct adv_info *hci_get_next_instance(struct hci_dev *hdev, u8 instance)
instance         2758 net/bluetooth/hci_core.c 	cur_instance = hci_find_adv_instance(hdev, instance);
instance         2771 net/bluetooth/hci_core.c int hci_remove_adv_instance(struct hci_dev *hdev, u8 instance)
instance         2775 net/bluetooth/hci_core.c 	adv_instance = hci_find_adv_instance(hdev, instance);
instance         2779 net/bluetooth/hci_core.c 	BT_DBG("%s removing %dMR", hdev->name, instance);
instance         2781 net/bluetooth/hci_core.c 	if (hdev->cur_adv_instance == instance) {
instance         2838 net/bluetooth/hci_core.c int hci_add_adv_instance(struct hci_dev *hdev, u8 instance, u32 flags,
instance         2845 net/bluetooth/hci_core.c 	adv_instance = hci_find_adv_instance(hdev, instance);
instance         2853 net/bluetooth/hci_core.c 		    instance < 1 || instance > HCI_MAX_ADV_INSTANCES)
instance         2861 net/bluetooth/hci_core.c 		adv_instance->instance = instance;
instance         2890 net/bluetooth/hci_core.c 	BT_DBG("%s for %dMR", hdev->name, instance);
instance          903 net/bluetooth/hci_request.c static u8 get_adv_instance_scan_rsp_len(struct hci_dev *hdev, u8 instance)
instance          908 net/bluetooth/hci_request.c 	if (instance == 0x00)
instance          911 net/bluetooth/hci_request.c 	adv_instance = hci_find_adv_instance(hdev, instance);
instance          923 net/bluetooth/hci_request.c 	u8 instance = hdev->cur_adv_instance;
instance          927 net/bluetooth/hci_request.c 	if (instance == 0x00)
instance          930 net/bluetooth/hci_request.c 	adv_instance = hci_find_adv_instance(hdev, instance);
instance          957 net/bluetooth/hci_request.c static u32 get_adv_instance_flags(struct hci_dev *hdev, u8 instance)
instance          962 net/bluetooth/hci_request.c 	if (instance == 0x00) {
instance          982 net/bluetooth/hci_request.c 	adv_instance = hci_find_adv_instance(hdev, instance);
instance         1176 net/bluetooth/hci_request.c static u8 create_instance_scan_rsp_data(struct hci_dev *hdev, u8 instance,
instance         1183 net/bluetooth/hci_request.c 	adv_instance = hci_find_adv_instance(hdev, instance);
instance         1204 net/bluetooth/hci_request.c void __hci_req_update_scan_rsp_data(struct hci_request *req, u8 instance)
instance         1217 net/bluetooth/hci_request.c 		if (instance)
instance         1218 net/bluetooth/hci_request.c 			len = create_instance_scan_rsp_data(hdev, instance,
instance         1242 net/bluetooth/hci_request.c 		if (instance)
instance         1243 net/bluetooth/hci_request.c 			len = create_instance_scan_rsp_data(hdev, instance,
instance         1261 net/bluetooth/hci_request.c static u8 create_instance_adv_data(struct hci_dev *hdev, u8 instance, u8 *ptr)
instance         1268 net/bluetooth/hci_request.c 	if (instance) {
instance         1269 net/bluetooth/hci_request.c 		adv_instance = hci_find_adv_instance(hdev, instance);
instance         1274 net/bluetooth/hci_request.c 	instance_flags = get_adv_instance_flags(hdev, instance);
instance         1350 net/bluetooth/hci_request.c void __hci_req_update_adv_data(struct hci_request *req, u8 instance)
instance         1363 net/bluetooth/hci_request.c 		len = create_instance_adv_data(hdev, instance, cp.data);
instance         1384 net/bluetooth/hci_request.c 		len = create_instance_adv_data(hdev, instance, cp.data);
instance         1400 net/bluetooth/hci_request.c int hci_req_update_adv_data(struct hci_dev *hdev, u8 instance)
instance         1405 net/bluetooth/hci_request.c 	__hci_req_update_adv_data(&req, instance);
instance         1447 net/bluetooth/hci_request.c 	u8 instance;
instance         1455 net/bluetooth/hci_request.c 	instance = hdev->cur_adv_instance;
instance         1456 net/bluetooth/hci_request.c 	if (instance == 0x00)
instance         1461 net/bluetooth/hci_request.c 	hci_req_clear_adv_instance(hdev, NULL, &req, instance, false);
instance         1558 net/bluetooth/hci_request.c int __hci_req_setup_ext_adv_instance(struct hci_request *req, u8 instance)
instance         1572 net/bluetooth/hci_request.c 	if (instance > 0) {
instance         1573 net/bluetooth/hci_request.c 		adv_instance = hci_find_adv_instance(hdev, instance);
instance         1580 net/bluetooth/hci_request.c 	flags = get_adv_instance_flags(hdev, instance);
instance         1613 net/bluetooth/hci_request.c 	} else if (get_adv_instance_scan_rsp_len(hdev, instance)) {
instance         1628 net/bluetooth/hci_request.c 	cp.handle = instance;
instance         1670 net/bluetooth/hci_request.c int __hci_req_enable_ext_advertising(struct hci_request *req, u8 instance)
instance         1678 net/bluetooth/hci_request.c 	if (instance > 0) {
instance         1679 net/bluetooth/hci_request.c 		adv_instance = hci_find_adv_instance(hdev, instance);
instance         1696 net/bluetooth/hci_request.c 	adv_set->handle = instance;
instance         1715 net/bluetooth/hci_request.c int __hci_req_start_ext_adv(struct hci_request *req, u8 instance)
instance         1723 net/bluetooth/hci_request.c 	err = __hci_req_setup_ext_adv_instance(req, instance);
instance         1727 net/bluetooth/hci_request.c 	__hci_req_update_scan_rsp_data(req, instance);
instance         1728 net/bluetooth/hci_request.c 	__hci_req_enable_ext_advertising(req, instance);
instance         1733 net/bluetooth/hci_request.c int __hci_req_schedule_adv_instance(struct hci_request *req, u8 instance,
instance         1747 net/bluetooth/hci_request.c 	adv_instance = hci_find_adv_instance(hdev, instance);
instance         1784 net/bluetooth/hci_request.c 	if (!force && hdev->cur_adv_instance == instance &&
instance         1788 net/bluetooth/hci_request.c 	hdev->cur_adv_instance = instance;
instance         1790 net/bluetooth/hci_request.c 		__hci_req_start_ext_adv(req, instance);
instance         1792 net/bluetooth/hci_request.c 		__hci_req_update_adv_data(req, instance);
instance         1793 net/bluetooth/hci_request.c 		__hci_req_update_scan_rsp_data(req, instance);
instance         1820 net/bluetooth/hci_request.c 				struct hci_request *req, u8 instance,
instance         1828 net/bluetooth/hci_request.c 	if (!instance || hdev->cur_adv_instance == instance)
instance         1835 net/bluetooth/hci_request.c 	if (instance && hdev->cur_adv_instance == instance)
instance         1836 net/bluetooth/hci_request.c 		next_instance = hci_get_next_instance(hdev, instance);
instance         1838 net/bluetooth/hci_request.c 	if (instance == 0x00) {
instance         1844 net/bluetooth/hci_request.c 			rem_inst = adv_instance->instance;
instance         1850 net/bluetooth/hci_request.c 		adv_instance = hci_find_adv_instance(hdev, instance);
instance         1856 net/bluetooth/hci_request.c 			    next_instance->instance == instance)
instance         1859 net/bluetooth/hci_request.c 			err = hci_remove_adv_instance(hdev, instance);
instance         1861 net/bluetooth/hci_request.c 				mgmt_advertising_removed(sk, hdev, instance);
instance         1870 net/bluetooth/hci_request.c 		__hci_req_schedule_adv_instance(req, next_instance->instance,
instance         2805 net/bluetooth/hci_request.c 							adv_instance->instance,
instance           74 net/bluetooth/hci_request.h void __hci_req_update_adv_data(struct hci_request *req, u8 instance);
instance           75 net/bluetooth/hci_request.h int hci_req_update_adv_data(struct hci_dev *hdev, u8 instance);
instance           76 net/bluetooth/hci_request.h void __hci_req_update_scan_rsp_data(struct hci_request *req, u8 instance);
instance           78 net/bluetooth/hci_request.h int __hci_req_schedule_adv_instance(struct hci_request *req, u8 instance,
instance           81 net/bluetooth/hci_request.h 				struct hci_request *req, u8 instance,
instance           84 net/bluetooth/hci_request.h int __hci_req_setup_ext_adv_instance(struct hci_request *req, u8 instance);
instance           85 net/bluetooth/hci_request.h int __hci_req_start_ext_adv(struct hci_request *req, u8 instance);
instance           86 net/bluetooth/hci_request.h int __hci_req_enable_ext_advertising(struct hci_request *req, u8 instance);
instance         1094 net/bluetooth/mgmt.c void mgmt_advertising_added(struct sock *sk, struct hci_dev *hdev, u8 instance)
instance         1098 net/bluetooth/mgmt.c 	ev.instance = instance;
instance         1104 net/bluetooth/mgmt.c 			      u8 instance)
instance         1108 net/bluetooth/mgmt.c 	ev.instance = instance;
instance         3166 net/bluetooth/mgmt.c 	adv_instance = hci_get_next_instance(hdev, adv_instance->instance);
instance         3171 net/bluetooth/mgmt.c 	err = __hci_req_schedule_adv_instance(&req, adv_instance->instance,
instance         4242 net/bluetooth/mgmt.c 	u8 instance;
instance         4276 net/bluetooth/mgmt.c 	instance = hdev->cur_adv_instance;
instance         4277 net/bluetooth/mgmt.c 	if (!instance) {
instance         4283 net/bluetooth/mgmt.c 		instance = adv_instance->instance;
instance         4288 net/bluetooth/mgmt.c 	err = __hci_req_schedule_adv_instance(&req, instance, true);
instance         6350 net/bluetooth/mgmt.c 	u8 *instance;
instance         6375 net/bluetooth/mgmt.c 	instance = rp->instance;
instance         6377 net/bluetooth/mgmt.c 		*instance = adv_instance->instance;
instance         6378 net/bluetooth/mgmt.c 		instance++;
instance         6493 net/bluetooth/mgmt.c 	u8 instance;
instance         6510 net/bluetooth/mgmt.c 		instance = adv_instance->instance;
instance         6512 net/bluetooth/mgmt.c 		if (hdev->cur_adv_instance == instance)
instance         6515 net/bluetooth/mgmt.c 		hci_remove_adv_instance(hdev, instance);
instance         6516 net/bluetooth/mgmt.c 		mgmt_advertising_removed(cmd ? cmd->sk : NULL, hdev, instance);
instance         6523 net/bluetooth/mgmt.c 	rp.instance = cp->instance;
instance         6561 net/bluetooth/mgmt.c 	if (cp->instance < 1 || cp->instance > HCI_MAX_ADV_INSTANCES)
instance         6607 net/bluetooth/mgmt.c 	err = hci_add_adv_instance(hdev, cp->instance, flags,
instance         6622 net/bluetooth/mgmt.c 		mgmt_advertising_added(sk, hdev, cp->instance);
instance         6624 net/bluetooth/mgmt.c 	if (hdev->cur_adv_instance == cp->instance) {
instance         6632 net/bluetooth/mgmt.c 		next_instance = hci_get_next_instance(hdev, cp->instance);
instance         6634 net/bluetooth/mgmt.c 			schedule_instance = next_instance->instance;
instance         6639 net/bluetooth/mgmt.c 		schedule_instance = cp->instance;
instance         6649 net/bluetooth/mgmt.c 		rp.instance = cp->instance;
instance         6701 net/bluetooth/mgmt.c 	rp.instance = cp->instance;
instance         6724 net/bluetooth/mgmt.c 	if (cp->instance && !hci_find_adv_instance(hdev, cp->instance)) {
instance         6747 net/bluetooth/mgmt.c 	hci_req_clear_adv_instance(hdev, sk, &req, cp->instance, true);
instance         6760 net/bluetooth/mgmt.c 		rp.instance = cp->instance;
instance         6798 net/bluetooth/mgmt.c 	if (cp->instance < 1 || cp->instance > HCI_MAX_ADV_INSTANCES)
instance         6812 net/bluetooth/mgmt.c 	rp.instance = cp->instance;
instance           34 net/caif/cfserl.c struct cflayer *cfserl_create(int instance, bool use_stx)
instance           70 net/tipc/group.c 	u32 instance;
instance           88 net/tipc/group.c 	u32 instance;
instance          182 net/tipc/group.c 	grp->instance = mreq->instance;
instance          302 net/tipc/group.c 						    u32 instance, int state)
instance          315 net/tipc/group.c 	m->instance = instance;
instance          325 net/tipc/group.c 			   u32 port, u32 instance)
instance          327 net/tipc/group.c 	tipc_group_create_member(grp, node, port, instance, MBR_PUBLISHED);
instance          360 net/tipc/group.c 	seq->lower = grp->instance;
instance          361 net/tipc/group.c 	seq->upper = grp->instance;
instance          517 net/tipc/group.c 	TIPC_SKB_CB(skb)->orig_member = m->instance;
instance          535 net/tipc/group.c 			if (msg_nameinst(hdr) != grp->instance) {
instance          672 net/tipc/group.c 	evt.found_lower = m->instance;
instance          673 net/tipc/group.c 	evt.found_upper = m->instance;
instance          677 net/tipc/group.c 	evt.s.seq.lower = m->instance;
instance          678 net/tipc/group.c 	evt.s.seq.upper = m->instance;
instance          692 net/tipc/group.c 	TIPC_SKB_CB(skb)->orig_member = m->instance;
instance          856 net/tipc/group.c 	u32 instance = evt->found_lower;
instance          878 net/tipc/group.c 			m = tipc_group_create_member(grp, node, port, instance,
instance          891 net/tipc/group.c 		m->instance = instance;
instance          929 net/tipc/group.c 			grp->instance) ||
instance           51 net/tipc/group.h 			   u32 port, u32 instance);
instance          144 net/tipc/name_table.c 						      u32 instance)
instance          151 net/tipc/name_table.c 		if (sr->lower > instance)
instance          153 net/tipc/name_table.c 		else if (sr->upper < instance)
instance          423 net/tipc/name_table.c u32 tipc_nametbl_translate(struct net *net, u32 type, u32 instance, u32 *dnode)
instance          444 net/tipc/name_table.c 	sr = tipc_service_first_range(sc, instance);
instance          474 net/tipc/name_table.c bool tipc_nametbl_lookup(struct net *net, u32 type, u32 instance, u32 scope,
instance          491 net/tipc/name_table.c 	sr = tipc_service_first_range(sc, instance);
instance          109 net/tipc/name_table.h u32 tipc_nametbl_translate(struct net *net, u32 type, u32 instance, u32 *node);
instance          116 net/tipc/name_table.h bool tipc_nametbl_lookup(struct net *net, u32 type, u32 instance, u32 domain,
instance          954 net/tipc/socket.c 	inst = dest->addr.name.name.instance;
instance         1047 net/tipc/socket.c 		msg_set_nameinst(hdr, dest->addr.name.name.instance);
instance         1107 net/tipc/socket.c 	inst = dest->addr.name.name.instance;
instance         1350 net/tipc/socket.c 			tsk->conn_instance = dest->addr.name.name.instance;
instance         1361 net/tipc/socket.c 		inst = dest->addr.name.name.instance;
instance         1577 net/tipc/socket.c 	srcaddr->member.addr.name.name.instance = TIPC_SKB_CB(skb)->orig_member;
instance         2905 net/tipc/socket.c 	seq.lower = mreq->instance;
instance         1198 sound/soc/intel/atom/sst-atom-controls.c #define SST_GAIN(name, path_id, task_id, instance, gain_var)				\
instance         1202 sound/soc/intel/atom/sst-atom-controls.c 		SST_MODULE_ID_GAIN_CELL, path_id, instance, task_id,			\
instance         1205 sound/soc/intel/atom/sst-atom-controls.c #define SST_VOLUME(name, path_id, task_id, instance, gain_var)				\
instance         1209 sound/soc/intel/atom/sst-atom-controls.c 		SST_MODULE_ID_VOLUME, path_id, instance, task_id,			\
instance           82 sound/soc/intel/skylake/skl-nhlt.c *skl_get_ep_blob(struct skl_dev *skl, u32 instance, u8 link_type,
instance           95 sound/soc/intel/skylake/skl-nhlt.c 	dump_config(dev, instance, link_type, s_fmt, num_ch, s_rate, dirn, bps);
instance          102 sound/soc/intel/skylake/skl-nhlt.c 		if (skl_check_ep_match(dev, epnt, instance, link_type,
instance          168 sound/soc/intel/skylake/skl.h struct nhlt_specific_cfg *skl_get_ep_blob(struct skl_dev *skl, u32 instance,
instance          178 sound/usb/6fire/midi.c 	ret = snd_rawmidi_new(chip->card, "6FireUSB", 0, 1, 1, &rt->instance);
instance          185 sound/usb/6fire/midi.c 	rt->instance->private_data = rt;
instance          186 sound/usb/6fire/midi.c 	strcpy(rt->instance->name, "DMX6FireUSB MIDI");
instance          187 sound/usb/6fire/midi.c 	rt->instance->info_flags = SNDRV_RAWMIDI_INFO_OUTPUT |
instance          190 sound/usb/6fire/midi.c 	snd_rawmidi_set_ops(rt->instance, SNDRV_RAWMIDI_STREAM_OUTPUT,
instance          192 sound/usb/6fire/midi.c 	snd_rawmidi_set_ops(rt->instance, SNDRV_RAWMIDI_STREAM_INPUT,
instance           17 sound/usb/6fire/midi.h 	struct snd_rawmidi *instance;
instance          141 sound/usb/6fire/pcm.c 			usb_kill_urb(&rt->in_urbs[i].instance);
instance          142 sound/usb/6fire/pcm.c 			usb_kill_urb(&rt->out_urbs[i].instance);
instance          170 sound/usb/6fire/pcm.c 			ret = usb_submit_urb(&rt->in_urbs[i].instance,
instance          198 sound/usb/6fire/pcm.c 	struct pcm_runtime *rt = snd_pcm_substream_chip(sub->instance);
instance          199 sound/usb/6fire/pcm.c 	struct snd_pcm_runtime *alsa_rt = sub->instance->runtime;
instance          245 sound/usb/6fire/pcm.c 	struct pcm_runtime *rt = snd_pcm_substream_chip(sub->instance);
instance          246 sound/usb/6fire/pcm.c 	struct snd_pcm_runtime *alsa_rt = sub->instance->runtime;
instance          319 sound/usb/6fire/pcm.c 		if (sub->period_off >= sub->instance->runtime->period_size) {
instance          320 sound/usb/6fire/pcm.c 			sub->period_off %= sub->instance->runtime->period_size;
instance          322 sound/usb/6fire/pcm.c 			snd_pcm_period_elapsed(sub->instance);
instance          344 sound/usb/6fire/pcm.c 		if (sub->period_off >= sub->instance->runtime->period_size) {
instance          345 sound/usb/6fire/pcm.c 			sub->period_off %= sub->instance->runtime->period_size;
instance          347 sound/usb/6fire/pcm.c 			snd_pcm_period_elapsed(sub->instance);
instance          371 sound/usb/6fire/pcm.c 	usb_submit_urb(&out_urb->instance, GFP_ATOMIC);
instance          372 sound/usb/6fire/pcm.c 	usb_submit_urb(&in_urb->instance, GFP_ATOMIC);
instance          416 sound/usb/6fire/pcm.c 	sub->instance = alsa_sub;
instance          435 sound/usb/6fire/pcm.c 		sub->instance = NULL;
instance          440 sound/usb/6fire/pcm.c 		if (!rt->playback.instance && !rt->capture.instance) {
instance          571 sound/usb/6fire/pcm.c 	usb_init_urb(&urb->instance);
instance          572 sound/usb/6fire/pcm.c 	urb->instance.transfer_buffer = urb->buffer;
instance          573 sound/usb/6fire/pcm.c 	urb->instance.transfer_buffer_length =
instance          575 sound/usb/6fire/pcm.c 	urb->instance.dev = chip->dev;
instance          576 sound/usb/6fire/pcm.c 	urb->instance.pipe = in ? usb_rcvisocpipe(chip->dev, ep)
instance          578 sound/usb/6fire/pcm.c 	urb->instance.interval = 1;
instance          579 sound/usb/6fire/pcm.c 	urb->instance.complete = handler;
instance          580 sound/usb/6fire/pcm.c 	urb->instance.context = urb;
instance          581 sound/usb/6fire/pcm.c 	urb->instance.number_of_packets = PCM_N_PACKETS_PER_URB;
instance          670 sound/usb/6fire/pcm.c 	rt->instance = pcm;
instance          684 sound/usb/6fire/pcm.c 		if (rt->playback.instance)
instance          685 sound/usb/6fire/pcm.c 			snd_pcm_stop_xrun(rt->playback.instance);
instance          687 sound/usb/6fire/pcm.c 		if (rt->capture.instance)
instance          688 sound/usb/6fire/pcm.c 			snd_pcm_stop_xrun(rt->capture.instance);
instance          691 sound/usb/6fire/pcm.c 			usb_poison_urb(&rt->in_urbs[i].instance);
instance          692 sound/usb/6fire/pcm.c 			usb_poison_urb(&rt->out_urbs[i].instance);
instance           28 sound/usb/6fire/pcm.h 	struct urb instance;
instance           38 sound/usb/6fire/pcm.h 	struct snd_pcm_substream *instance;
instance           48 sound/usb/6fire/pcm.h 	struct snd_pcm *instance;
instance           27 sound/usb/hiface/pcm.c 	struct urb instance;
instance           34 sound/usb/hiface/pcm.c 	struct snd_pcm_substream *instance;
instance           50 sound/usb/hiface/pcm.c 	struct snd_pcm *instance;
instance          198 sound/usb/hiface/pcm.c 			usb_kill_urb(&rt->out_urbs[i].instance);
instance          220 sound/usb/hiface/pcm.c 			usb_anchor_urb(&rt->out_urbs[i].instance,
instance          222 sound/usb/hiface/pcm.c 			ret = usb_submit_urb(&rt->out_urbs[i].instance,
instance          259 sound/usb/hiface/pcm.c 	struct snd_pcm_runtime *alsa_rt = sub->instance->runtime;
instance          266 sound/usb/hiface/pcm.c 	pcm_buffer_size = snd_pcm_lib_buffer_bytes(sub->instance);
instance          339 sound/usb/hiface/pcm.c 		snd_pcm_period_elapsed(sub->instance);
instance          341 sound/usb/hiface/pcm.c 	ret = usb_submit_urb(&out_urb->instance, GFP_ATOMIC);
instance          388 sound/usb/hiface/pcm.c 	sub->instance = alsa_sub;
instance          409 sound/usb/hiface/pcm.c 		sub->instance = NULL;
instance          530 sound/usb/hiface/pcm.c 	usb_init_urb(&urb->instance);
instance          536 sound/usb/hiface/pcm.c 	usb_fill_bulk_urb(&urb->instance, chip->dev,
instance          539 sound/usb/hiface/pcm.c 	if (usb_urb_ep_type_check(&urb->instance))
instance          618 sound/usb/hiface/pcm.c 	rt->instance = pcm;
instance          160 tools/include/uapi/drm/i915_drm.h #define __I915_PMU_ENGINE(class, instance, sample) \
instance          162 tools/include/uapi/drm/i915_drm.h 	(instance) << I915_PMU_SAMPLE_BITS | \
instance          165 tools/include/uapi/drm/i915_drm.h #define I915_PMU_ENGINE_BUSY(class, instance) \
instance          166 tools/include/uapi/drm/i915_drm.h 	__I915_PMU_ENGINE(class, instance, I915_SAMPLE_BUSY)
instance          168 tools/include/uapi/drm/i915_drm.h #define I915_PMU_ENGINE_WAIT(class, instance) \
instance          169 tools/include/uapi/drm/i915_drm.h 	__I915_PMU_ENGINE(class, instance, I915_SAMPLE_WAIT)
instance          171 tools/include/uapi/drm/i915_drm.h #define I915_PMU_ENGINE_SEMA(class, instance) \
instance          172 tools/include/uapi/drm/i915_drm.h 	__I915_PMU_ENGINE(class, instance, I915_SAMPLE_SEMA)
instance         3772 tools/lib/bpf/libbpf.c 			      int instance)
instance         3786 tools/lib/bpf/libbpf.c 	if (instance < 0 || instance >= prog->instances.nr) {
instance         3788 tools/lib/bpf/libbpf.c 			   instance, prog->section_name, prog->instances.nr);
instance         3792 tools/lib/bpf/libbpf.c 	if (bpf_obj_pin(prog->instances.fds[instance], path)) {
instance         3803 tools/lib/bpf/libbpf.c 				int instance)
instance         3816 tools/lib/bpf/libbpf.c 	if (instance < 0 || instance >= prog->instances.nr) {
instance         3818 tools/lib/bpf/libbpf.c 			   instance, prog->section_name, prog->instances.nr);
instance          161 tools/lib/bpf/libbpf.h 					 int instance);
instance          164 tools/lib/bpf/libbpf.h 					   int instance);
instance           21 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 	u32 instance;
instance           31 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c osl_table_name_from_file(char *filename, char *signature, u32 *instance);
instance           33 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c static acpi_status osl_add_table_to_list(char *signature, u32 instance);
instance           58 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 			 u32 instance,
instance           66 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 		   u32 instance,
instance          220 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 			  u32 instance,
instance          240 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 		    osl_get_bios_table(signature, instance, table, address);
instance          245 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 						  instance, table, address);
instance          255 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 						     signature, instance, table,
instance          277 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c static acpi_status osl_add_table_to_list(char *signature, u32 instance)
instance          297 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 				if (next->instance == instance) {
instance          300 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 				if (next->instance >= next_instance) {
instance          301 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 					next_instance = next->instance + 1;
instance          314 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 		if (instance) {
instance          317 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 				signature, instance, next_instance);
instance          319 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 		instance = next_instance;
instance          322 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 	new_info->instance = instance;
instance          350 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 			   u32 *instance, acpi_physical_address *address)
instance          378 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 	status = acpi_os_get_table_by_name(info->signature, info->instance,
instance          382 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 		*instance = info->instance;
instance          767 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 		   u32 instance,
instance          877 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 		if (current_instance != instance) {
instance          943 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 			if (current_instance != instance) {
instance          997 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 	u32 instance;
instance         1016 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 		    osl_table_name_from_file(filename, temp_name, &instance);
instance         1026 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 		status = osl_add_table_to_list(temp_name, instance);
instance         1156 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c osl_table_name_from_file(char *filename, char *signature, u32 *instance)
instance         1168 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 		sscanf(&filename[ACPI_NAMESEG_SIZE], "%u", instance);
instance         1172 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 		*instance = 0;
instance         1308 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 			 u32 instance,
instance         1344 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 		if (ACPI_FAILURE(status) || current_instance != instance) {
instance         1350 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 		if (instance != 0) {
instance         1352 tools/power/acpi/os_specific/service_layers/oslinuxtbl.c 				temp_name, instance);
instance           82 tools/power/acpi/tools/acpidump/acpidump.h int ap_write_to_binary_file(struct acpi_table_header *table, u32 instance);
instance           16 tools/power/acpi/tools/acpidump/apdump.c 		     u32 instance, acpi_physical_address address);
instance          141 tools/power/acpi/tools/acpidump/apdump.c 		     u32 instance, acpi_physical_address address)
instance          157 tools/power/acpi/tools/acpidump/apdump.c 		return (ap_write_to_binary_file(table, instance));
instance          191 tools/power/acpi/tools/acpidump/apdump.c 	u32 instance = 0;
instance          201 tools/power/acpi/tools/acpidump/apdump.c 		    acpi_os_get_table_by_index(i, &table, &instance, &address);
instance          221 tools/power/acpi/tools/acpidump/apdump.c 		table_status = ap_dump_table_buffer(table, instance, address);
instance          293 tools/power/acpi/tools/acpidump/apdump.c 	u32 instance;
instance          321 tools/power/acpi/tools/acpidump/apdump.c 	for (instance = 0; instance < AP_MAX_ACPI_FILES; instance++) {
instance          322 tools/power/acpi/tools/acpidump/apdump.c 		status = acpi_os_get_table_by_name(local_signature, instance,
instance          338 tools/power/acpi/tools/acpidump/apdump.c 		table_status = ap_dump_table_buffer(table, instance, address);
instance          104 tools/power/acpi/tools/acpidump/apfiles.c int ap_write_to_binary_file(struct acpi_table_header *table, u32 instance)
instance          132 tools/power/acpi/tools/acpidump/apfiles.c 	if (instance > 0) {
instance          133 tools/power/acpi/tools/acpidump/apfiles.c 		snprintf(instance_str, sizeof(instance_str), "%u", instance);
instance          103 tools/thermal/tmon/sysfs.c 		cdi->type, cdi->max_state, cdi->cur_state, cdi->instance);
instance          303 tools/thermal/tmon/sysfs.c 			ptdata.tzi[k].instance = i;
instance          365 tools/thermal/tmon/sysfs.c 			ptdata.cdi[k].instance = i;
instance          471 tools/thermal/tmon/sysfs.c 		if (ptdata.tzi[i].instance == zone_inst)
instance          500 tools/thermal/tmon/sysfs.c 			ptdata.tzi[i].instance);
instance          513 tools/thermal/tmon/sysfs.c 			ptdata.cdi[i].instance);
instance          549 tools/thermal/tmon/sysfs.c 				ptdata.cdi[i].instance, state, cdev_state);
instance          551 tools/thermal/tmon/sysfs.c 				CDEV, ptdata.cdi[i].instance);
instance          570 tools/thermal/tmon/sysfs.c 			ctrl_cdev_id = ptdata.cdi[i].instance;
instance          572 tools/thermal/tmon/sysfs.c 				ptdata.cdi[i].instance);
instance          183 tools/thermal/tmon/tmon.c 			ptdata.tzi[i].instance,
instance          201 tools/thermal/tmon/tmon.c 			ptdata.tzi[i].instance);
instance          205 tools/thermal/tmon/tmon.c 			ptdata.cdi[i].instance);
instance          317 tools/thermal/tmon/tmon.c 		target_thermal_zone = ptdata.tzi[0].instance;
instance           49 tools/thermal/tmon/tmon.h 	int instance;
instance           75 tools/thermal/tmon/tmon.h 	int instance;
instance          217 tools/thermal/tmon/tui.c 			ptdata.cdi[j].instance,
instance          225 tools/thermal/tmon/tui.c 		int tz_inst = ptdata.tzi[i].instance;
instance          237 tools/thermal/tmon/tui.c 				cdev_inst = ptdata.cdi[j].instance;
instance          303 tools/thermal/tmon/tui.c 				ptdata.cdi[j].type, ptdata.cdi[j].instance);
instance          430 tools/thermal/tmon/tui.c 			CDEV, ptdata.cdi[ch].instance);
instance          457 tools/thermal/tmon/tui.c 				ptdata.cdi[cdev_id].instance);
instance          590 tools/thermal/tmon/tui.c 			ptdata.tzi[i].instance, temp);
instance          624 tools/thermal/tmon/tui.c 		int inst = ptdata.tzi[i].instance;
instance          628 tools/thermal/tmon/tui.c 			ptdata.tzi[i].type, ptdata.tzi[i].instance);