/linux/drivers/scsi/qla2xxx/ |
H A D | qla_inline.h | 393 qla_get_fw_resources(struct qla_qpair *qp, struct iocb_resource *iores) in qla_get_fw_resources() argument 400 iores->res_type = RESOURCE_NONE; in qla_get_fw_resources() 403 if (iores->res_type & RESOURCE_FORCE) in qla_get_fw_resources() 406 if ((iores->iocb_cnt + qp->fwres.iocbs_used) >= qp->fwres.iocbs_qp_limit) { in qla_get_fw_resources() 414 if ((iores->iocb_cnt + iocbs_used) >= qp->fwres.iocbs_limit) { in qla_get_fw_resources() 415 iores->res_type = RESOURCE_NONE; in qla_get_fw_resources() 420 if (iores->res_type & RESOURCE_EXCH) { in qla_get_fw_resources() 427 if ((exch_used + iores->exch_cnt) >= qp->fwres.exch_limit) { in qla_get_fw_resources() 428 iores->res_type = RESOURCE_NONE; in qla_get_fw_resources() 434 if ((iores->iocb_cnt + atomic_read(&ha->fwres.iocb_used)) >= in qla_get_fw_resources() [all …]
|
H A D | qla_iocb.c | 1592 sp->iores.res_type = RESOURCE_IOCB | RESOURCE_EXCH; in qla24xx_start_scsi() 1593 sp->iores.exch_cnt = 1; in qla24xx_start_scsi() 1594 sp->iores.iocb_cnt = req_cnt; in qla24xx_start_scsi() 1595 if (qla_get_fw_resources(sp->qpair, &sp->iores)) in qla24xx_start_scsi() 1682 qla_put_fw_resources(sp->qpair, &sp->iores); in qla24xx_start_scsi() 1799 sp->iores.res_type = RESOURCE_IOCB | RESOURCE_EXCH; in qla24xx_dif_start_scsi() 1800 sp->iores.exch_cnt = 1; in qla24xx_dif_start_scsi() 1801 sp->iores.iocb_cnt = qla24xx_calc_iocbs(vha, tot_dsds); in qla24xx_dif_start_scsi() 1802 if (qla_get_fw_resources(sp->qpair, &sp->iores)) in qla24xx_dif_start_scsi() 1890 qla_put_fw_resources(sp->qpair, &sp->iores); in qla24xx_dif_start_scsi() [all …]
|
H A D | qla_nvme.c | 590 sp->iores.res_type = RESOURCE_IOCB | RESOURCE_EXCH; in qla2x00_start_nvme_mq() 591 sp->iores.exch_cnt = 1; in qla2x00_start_nvme_mq() 592 sp->iores.iocb_cnt = req_cnt; in qla2x00_start_nvme_mq() 593 if (qla_get_fw_resources(sp->qpair, &sp->iores)) { in qla2x00_start_nvme_mq() 756 qla_put_fw_resources(sp->qpair, &sp->iores); in qla2x00_start_nvme_mq()
|
H A D | qla_edif.c | 3036 sp->iores.res_type = RESOURCE_IOCB | RESOURCE_EXCH; in qla28xx_start_scsi_edif() 3037 sp->iores.exch_cnt = 1; in qla28xx_start_scsi_edif() 3038 sp->iores.iocb_cnt = req_cnt; in qla28xx_start_scsi_edif() 3039 if (qla_get_fw_resources(sp->qpair, &sp->iores)) in qla28xx_start_scsi_edif() 3218 qla_put_fw_resources(sp->qpair, &sp->iores); in qla28xx_start_scsi_edif()
|
H A D | qla_isr.c | 2054 qla_put_fw_resources(sp->qpair, &sp->iores); in qla_get_sp_from_handle() 3359 qla_put_fw_resources(sp->qpair, &sp->iores); in qla2x00_status_entry()
|
H A D | qla_init.c | 131 qla_put_fw_resources(qpair, &sp->cmd_sp->iores); in qla24xx_abort_iocb_timeout() 138 qla_put_fw_resources(qpair, &sp->iores); in qla24xx_abort_iocb_timeout() 2032 qla_put_fw_resources(sp->qpair, &sp->iores); in qla2x00_tmf_iocb_timeout()
|
H A D | qla_def.h | 727 struct iocb_resource iores; member
|
/linux/drivers/char/tpm/ |
H A D | tpm_crb.c | 502 static void __iomem *crb_map_res(struct device *dev, struct resource *iores, in crb_map_res() argument 515 if (!iores) in crb_map_res() 519 *iobase_ptr = devm_ioremap_resource(dev, iores); in crb_map_res() 524 return *iobase_ptr + (new_res.start - iores->start); in crb_map_res() 555 struct resource *iores; in crb_map_io() local 590 iores = NULL; in crb_map_io() 596 iores = iores_array + i; in crb_map_io() 602 priv->regs_t = crb_map_res(dev, iores, iobase_ptr, buf->control_address, in crb_map_io() 614 if (iores && in crb_map_io() 615 buf->control_address == iores->start + in crb_map_io() [all …]
|
/linux/sound/soc/au1x/ |
H A D | i2sc.c | 236 struct resource *iores, *dmares; in au1xi2s_drvprobe() local 243 iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); in au1xi2s_drvprobe() 244 if (!iores) in au1xi2s_drvprobe() 247 if (!devm_request_mem_region(&pdev->dev, iores->start, in au1xi2s_drvprobe() 248 resource_size(iores), in au1xi2s_drvprobe() 252 ctx->mmio = devm_ioremap(&pdev->dev, iores->start, in au1xi2s_drvprobe() 253 resource_size(iores)); in au1xi2s_drvprobe()
|
H A D | ac97c.c | 233 struct resource *iores, *dmares; in au1xac97c_drvprobe() local 242 iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); in au1xac97c_drvprobe() 243 if (!iores) in au1xac97c_drvprobe() 246 if (!devm_request_mem_region(&pdev->dev, iores->start, in au1xac97c_drvprobe() 247 resource_size(iores), in au1xac97c_drvprobe() 251 ctx->mmio = devm_ioremap(&pdev->dev, iores->start, in au1xac97c_drvprobe() 252 resource_size(iores)); in au1xac97c_drvprobe()
|
/linux/arch/powerpc/sysdev/ |
H A D | fsl_rio.c | 604 port->iores = res; /* struct copy */ in fsl_rio_setup() 605 port->iores.name = "rio_io_win"; in fsl_rio_setup() 607 if (request_resource(&iomem_resource, &port->iores) < 0) { in fsl_rio_setup() 610 (u64)port->iores.start, (u64)port->iores.end); in fsl_rio_setup() 645 release_resource(&port->iores); in fsl_rio_setup() 682 port->iores.start >> 12); in fsl_rio_setup() 686 priv->maint_win = ioremap(port->iores.start, in fsl_rio_setup() 698 release_resource(&port->iores); in fsl_rio_setup()
|
/linux/drivers/spmi/ |
H A D | hisi-spmi-controller.c | 267 struct resource *iores; in spmi_controller_probe() local 278 iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); in spmi_controller_probe() 279 if (!iores) { in spmi_controller_probe() 284 spmi_controller->base = devm_ioremap(&pdev->dev, iores->start, in spmi_controller_probe() 285 resource_size(iores)); in spmi_controller_probe()
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_main.c | 273 struct resource *iores[IO_RANGES]; in sparx5_create_targets() local 288 iores[idx] = platform_get_resource(sparx5->pdev, IORESOURCE_MEM, in sparx5_create_targets() 290 if (!iores[idx]) { in sparx5_create_targets() 295 iores[idx]->start, in sparx5_create_targets() 296 resource_size(iores[idx])); in sparx5_create_targets() 299 iores[idx]->name); in sparx5_create_targets()
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_main.c | 70 struct resource *iores[IO_RANGES]; in lan966x_create_targets() local 80 iores[idx] = platform_get_resource(pdev, IORESOURCE_MEM, in lan966x_create_targets() 82 if (!iores[idx]) { in lan966x_create_targets() 88 iores[idx]->start, in lan966x_create_targets() 89 resource_size(iores[idx])); in lan966x_create_targets() 92 iores[idx]->name); in lan966x_create_targets()
|
/linux/sound/pci/echoaudio/ |
H A D | echoaudio.h | 350 struct resource *iores; member
|
/linux/drivers/gpu/drm/bridge/synopsys/ |
H A D | dw-hdmi.c | 3327 struct resource *iores = NULL; in dw_hdmi_probe() local 3389 iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); in dw_hdmi_probe() 3390 hdmi->regs = devm_ioremap_resource(dev, iores); in dw_hdmi_probe() 3516 if (iores && config3 & HDMI_CONFIG3_AHBAUDDMA) { in dw_hdmi_probe() 3519 audio.phys = iores->start; in dw_hdmi_probe() 3547 } else if (iores && config3 & HDMI_CONFIG3_GPAUD) { in dw_hdmi_probe() 3550 audio.phys = iores->start; in dw_hdmi_probe()
|
/linux/include/linux/ |
H A D | rio.h | 272 struct resource iores; member
|