rsrc              360 arch/microblaze/pci/pci-common.c 			  const struct resource *rsrc,
rsrc              365 arch/microblaze/pci/pci-common.c 	if (rsrc->flags & IORESOURCE_IO) {
rsrc              367 arch/microblaze/pci/pci-common.c 					(struct resource *) rsrc);
rsrc              380 arch/microblaze/pci/pci-common.c 	*start = rsrc->start;
rsrc              381 arch/microblaze/pci/pci-common.c 	*end = rsrc->end;
rsrc               48 arch/mips/pci/pci.c 			  const struct resource *rsrc, resource_size_t *start,
rsrc               51 arch/mips/pci/pci.c 	phys_addr_t size = resource_size(rsrc);
rsrc               53 arch/mips/pci/pci.c 	*start = fixup_bigphys_addr(rsrc->start, size);
rsrc               54 arch/mips/pci/pci.c 	*end = rsrc->start + size - 1;
rsrc              620 arch/powerpc/kernel/pci-common.c 			  const struct resource *rsrc,
rsrc              625 arch/powerpc/kernel/pci-common.c 	if (rsrc->flags & IORESOURCE_IO) {
rsrc              627 arch/powerpc/kernel/pci-common.c 					(struct resource *) rsrc);
rsrc              640 arch/powerpc/kernel/pci-common.c 	*start = rsrc->start;
rsrc              641 arch/powerpc/kernel/pci-common.c 	*end = rsrc->end;
rsrc              370 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	struct resource rsrc;
rsrc              376 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	if (of_address_to_resource(node, 0, &rsrc) != 0) {
rsrc              405 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	pci_regs = ioremap(rsrc.start, resource_size(&rsrc));
rsrc              413 arch/powerpc/platforms/52xx/mpc52xx_pci.c 	mpc52xx_pci_setup(hose, pci_regs, rsrc.start);
rsrc               85 arch/powerpc/platforms/85xx/ge_imp3a.c 	struct resource rsrc;
rsrc               91 arch/powerpc/platforms/85xx/ge_imp3a.c 			of_address_to_resource(np, 0, &rsrc);
rsrc               92 arch/powerpc/platforms/85xx/ge_imp3a.c 			if ((rsrc.start & 0xfffff) == 0x9000)
rsrc              775 arch/powerpc/platforms/powermac/pci.c 	struct resource rsrc;
rsrc              783 arch/powerpc/platforms/powermac/pci.c 	of_address_to_resource(dev, 0, &rsrc);
rsrc              823 arch/powerpc/platforms/powermac/pci.c 		primary = setup_uninorth(hose, &rsrc);
rsrc              830 arch/powerpc/platforms/powermac/pci.c 		setup_bandit(hose, &rsrc);
rsrc              833 arch/powerpc/platforms/powermac/pci.c 		setup_chaos(hose, &rsrc);
rsrc              839 arch/powerpc/platforms/powermac/pci.c 		disp_name, (unsigned long long)rsrc.start, hose->first_busno,
rsrc              174 arch/powerpc/platforms/powermac/time.c 	struct resource rsrc;
rsrc              181 arch/powerpc/platforms/powermac/time.c 	if (vias == NULL || of_address_to_resource(vias, 0, &rsrc)) {
rsrc              186 arch/powerpc/platforms/powermac/time.c 	via = ioremap(rsrc.start, resource_size(&rsrc));
rsrc              520 arch/powerpc/sysdev/fsl_pci.c 	struct resource rsrc;
rsrc              538 arch/powerpc/sysdev/fsl_pci.c 	if (of_address_to_resource(dev, 0, &rsrc)) {
rsrc              560 arch/powerpc/sysdev/fsl_pci.c 		 (u64)rsrc.start, (u64)resource_size(&rsrc));
rsrc              562 arch/powerpc/sysdev/fsl_pci.c 	pci = hose->private_data = ioremap(rsrc.start, resource_size(&rsrc));
rsrc              566 arch/powerpc/sysdev/fsl_pci.c 	setup_indirect_pci(hose, rsrc.start, rsrc.start + 0x4,
rsrc              621 arch/powerpc/sysdev/fsl_pci.c 		(unsigned long long)rsrc.start, hose->first_busno,
rsrc              162 arch/powerpc/sysdev/mpic_msgr.c 	struct resource rsrc;
rsrc              193 arch/powerpc/sysdev/mpic_msgr.c 	of_address_to_resource(np, 0, &rsrc);
rsrc              194 arch/powerpc/sysdev/mpic_msgr.c 	msgr_block_addr = ioremap(rsrc.start, resource_size(&rsrc));
rsrc              187 arch/powerpc/sysdev/tsi108_pci.c 	struct resource rsrc;
rsrc              198 arch/powerpc/sysdev/tsi108_pci.c 	has_address = (of_address_to_resource(dev, 0, &rsrc) == 0);
rsrc              221 arch/powerpc/sysdev/tsi108_pci.c 	       rsrc.start, hose->first_busno, hose->last_busno);
rsrc               70 drivers/firmware/imx/scu-pd.c 	u32 rsrc;
rsrc               75 drivers/firmware/imx/scu-pd.c 	u32 rsrc;
rsrc              190 drivers/firmware/imx/scu-pd.c 	msg.resource = pd->rsrc;
rsrc              196 drivers/firmware/imx/scu-pd.c 			power_on ? "up" : "off", pd->rsrc, ret);
rsrc              222 drivers/firmware/imx/scu-pd.c 		if (sc_pd->rsrc == spec->args[0]) {
rsrc              242 drivers/firmware/imx/scu-pd.c 	sc_pd->rsrc = pd_ranges->rsrc + idx;
rsrc              255 drivers/firmware/imx/scu-pd.c 	if (sc_pd->rsrc >= IMX_SC_R_LAST) {
rsrc              257 drivers/firmware/imx/scu-pd.c 			 sc_pd->name, sc_pd->rsrc);
rsrc              266 drivers/firmware/imx/scu-pd.c 			 sc_pd->name, sc_pd->rsrc);
rsrc              242 drivers/gpu/vga/vgaarb.c 				       unsigned int rsrc)
rsrc              253 drivers/gpu/vga/vgaarb.c 	if ((rsrc & VGA_RSRC_NORMAL_IO) &&
rsrc              255 drivers/gpu/vga/vgaarb.c 		rsrc |= VGA_RSRC_LEGACY_IO;
rsrc              256 drivers/gpu/vga/vgaarb.c 	if ((rsrc & VGA_RSRC_NORMAL_MEM) &&
rsrc              258 drivers/gpu/vga/vgaarb.c 		rsrc |= VGA_RSRC_LEGACY_MEM;
rsrc              260 drivers/gpu/vga/vgaarb.c 	vgaarb_dbg(dev, "%s: %d\n", __func__, rsrc);
rsrc              264 drivers/gpu/vga/vgaarb.c 	wants = rsrc & ~vgadev->owns;
rsrc              378 drivers/gpu/vga/vgaarb.c 	vgadev->locks |= (rsrc & VGA_RSRC_LEGACY_MASK);
rsrc              379 drivers/gpu/vga/vgaarb.c 	if (rsrc & VGA_RSRC_LEGACY_IO)
rsrc              381 drivers/gpu/vga/vgaarb.c 	if (rsrc & VGA_RSRC_LEGACY_MEM)
rsrc              383 drivers/gpu/vga/vgaarb.c 	if (rsrc & VGA_RSRC_NORMAL_IO)
rsrc              385 drivers/gpu/vga/vgaarb.c 	if (rsrc & VGA_RSRC_NORMAL_MEM)
rsrc              391 drivers/gpu/vga/vgaarb.c static void __vga_put(struct vga_device *vgadev, unsigned int rsrc)
rsrc              401 drivers/gpu/vga/vgaarb.c 	if ((rsrc & VGA_RSRC_NORMAL_IO) && vgadev->io_norm_cnt > 0) {
rsrc              404 drivers/gpu/vga/vgaarb.c 			rsrc |= VGA_RSRC_LEGACY_IO;
rsrc              406 drivers/gpu/vga/vgaarb.c 	if ((rsrc & VGA_RSRC_NORMAL_MEM) && vgadev->mem_norm_cnt > 0) {
rsrc              409 drivers/gpu/vga/vgaarb.c 			rsrc |= VGA_RSRC_LEGACY_MEM;
rsrc              411 drivers/gpu/vga/vgaarb.c 	if ((rsrc & VGA_RSRC_LEGACY_IO) && vgadev->io_lock_cnt > 0)
rsrc              413 drivers/gpu/vga/vgaarb.c 	if ((rsrc & VGA_RSRC_LEGACY_MEM) && vgadev->mem_lock_cnt > 0)
rsrc              465 drivers/gpu/vga/vgaarb.c int vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible)
rsrc              487 drivers/gpu/vga/vgaarb.c 		conflict = __vga_tryget(vgadev, rsrc);
rsrc              532 drivers/gpu/vga/vgaarb.c int vga_tryget(struct pci_dev *pdev, unsigned int rsrc)
rsrc              551 drivers/gpu/vga/vgaarb.c 	if (__vga_tryget(vgadev, rsrc))
rsrc              569 drivers/gpu/vga/vgaarb.c void vga_put(struct pci_dev *pdev, unsigned int rsrc)
rsrc              583 drivers/gpu/vga/vgaarb.c 	__vga_put(vgadev, rsrc);
rsrc               50 drivers/infiniband/hw/i40iw/i40iw_puda.c 						      *rsrc, bool initial);
rsrc               70 drivers/infiniband/hw/i40iw/i40iw_puda.c struct i40iw_puda_buf *i40iw_puda_get_bufpool(struct i40iw_puda_rsrc *rsrc)
rsrc               73 drivers/infiniband/hw/i40iw/i40iw_puda.c 	struct list_head *list = &rsrc->bufpool;
rsrc               76 drivers/infiniband/hw/i40iw/i40iw_puda.c 	spin_lock_irqsave(&rsrc->bufpool_lock, flags);
rsrc               79 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->avail_buf_count--;
rsrc               81 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->stats_buf_alloc_fail++;
rsrc               82 drivers/infiniband/hw/i40iw/i40iw_puda.c 	spin_unlock_irqrestore(&rsrc->bufpool_lock, flags);
rsrc               91 drivers/infiniband/hw/i40iw/i40iw_puda.c void i40iw_puda_ret_bufpool(struct i40iw_puda_rsrc *rsrc,
rsrc               96 drivers/infiniband/hw/i40iw/i40iw_puda.c 	spin_lock_irqsave(&rsrc->bufpool_lock, flags);
rsrc               97 drivers/infiniband/hw/i40iw/i40iw_puda.c 	list_add(&buf->list, &rsrc->bufpool);
rsrc               98 drivers/infiniband/hw/i40iw/i40iw_puda.c 	spin_unlock_irqrestore(&rsrc->bufpool_lock, flags);
rsrc               99 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->avail_buf_count++;
rsrc              109 drivers/infiniband/hw/i40iw/i40iw_puda.c static void i40iw_puda_post_recvbuf(struct i40iw_puda_rsrc *rsrc, u32 wqe_idx,
rsrc              113 drivers/infiniband/hw/i40iw/i40iw_puda.c 	struct i40iw_sc_qp *qp = &rsrc->qp;
rsrc              118 drivers/infiniband/hw/i40iw/i40iw_puda.c 	i40iw_debug(rsrc->dev, I40IW_DEBUG_PUDA,
rsrc              137 drivers/infiniband/hw/i40iw/i40iw_puda.c static enum i40iw_status_code i40iw_puda_replenish_rq(struct i40iw_puda_rsrc *rsrc,
rsrc              141 drivers/infiniband/hw/i40iw/i40iw_puda.c 	u32 invalid_cnt = rsrc->rxq_invalid_cnt;
rsrc              145 drivers/infiniband/hw/i40iw/i40iw_puda.c 		buf = i40iw_puda_get_bufpool(rsrc);
rsrc              148 drivers/infiniband/hw/i40iw/i40iw_puda.c 		i40iw_puda_post_recvbuf(rsrc, rsrc->rx_wqe_idx, buf,
rsrc              150 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->rx_wqe_idx =
rsrc              151 drivers/infiniband/hw/i40iw/i40iw_puda.c 		    ((rsrc->rx_wqe_idx + 1) % rsrc->rq_size);
rsrc              152 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->rxq_invalid_cnt--;
rsrc              288 drivers/infiniband/hw/i40iw/i40iw_puda.c 	struct i40iw_puda_rsrc *rsrc;
rsrc              294 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc = (cq_type == I40IW_CQ_TYPE_ILQ) ? cq->vsi->ilq : cq->vsi->ieq;
rsrc              308 drivers/infiniband/hw/i40iw/i40iw_puda.c 	if (!qp || !rsrc) {
rsrc              313 drivers/infiniband/hw/i40iw/i40iw_puda.c 	if (qp->qp_id != rsrc->qp_id) {
rsrc              323 drivers/infiniband/hw/i40iw/i40iw_puda.c 			rsrc->stats_rcvd_pkt_err++;
rsrc              325 drivers/infiniband/hw/i40iw/i40iw_puda.c 				i40iw_ilq_putback_rcvbuf(&rsrc->qp,
rsrc              328 drivers/infiniband/hw/i40iw/i40iw_puda.c 				i40iw_puda_ret_bufpool(rsrc, buf);
rsrc              329 drivers/infiniband/hw/i40iw/i40iw_puda.c 				i40iw_puda_replenish_rq(rsrc, false);
rsrc              334 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->stats_pkt_rcvd++;
rsrc              335 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->compl_rxwqe_idx = info.wqe_idx;
rsrc              337 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->receive(rsrc->vsi, buf);
rsrc              339 drivers/infiniband/hw/i40iw/i40iw_puda.c 			i40iw_ilq_putback_rcvbuf(&rsrc->qp, info.wqe_idx);
rsrc              341 drivers/infiniband/hw/i40iw/i40iw_puda.c 			i40iw_puda_replenish_rq(rsrc, false);
rsrc              347 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->xmit_complete(rsrc->vsi, sqwrid);
rsrc              348 drivers/infiniband/hw/i40iw/i40iw_puda.c 		spin_lock_irqsave(&rsrc->bufpool_lock, flags);
rsrc              349 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->tx_wqe_avail_cnt++;
rsrc              350 drivers/infiniband/hw/i40iw/i40iw_puda.c 		spin_unlock_irqrestore(&rsrc->bufpool_lock, flags);
rsrc              351 drivers/infiniband/hw/i40iw/i40iw_puda.c 		if (!list_empty(&rsrc->txpend))
rsrc              352 drivers/infiniband/hw/i40iw/i40iw_puda.c 			i40iw_puda_send_buf(rsrc, NULL);
rsrc              422 drivers/infiniband/hw/i40iw/i40iw_puda.c void i40iw_puda_send_buf(struct i40iw_puda_rsrc *rsrc, struct i40iw_puda_buf *buf)
rsrc              428 drivers/infiniband/hw/i40iw/i40iw_puda.c 	spin_lock_irqsave(&rsrc->bufpool_lock, flags);
rsrc              432 drivers/infiniband/hw/i40iw/i40iw_puda.c 	if (!rsrc->tx_wqe_avail_cnt || (buf && !list_empty(&rsrc->txpend))) {
rsrc              433 drivers/infiniband/hw/i40iw/i40iw_puda.c 		list_add_tail(&buf->list, &rsrc->txpend);
rsrc              434 drivers/infiniband/hw/i40iw/i40iw_puda.c 		spin_unlock_irqrestore(&rsrc->bufpool_lock, flags);
rsrc              435 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->stats_sent_pkt_q++;
rsrc              436 drivers/infiniband/hw/i40iw/i40iw_puda.c 		if (rsrc->type == I40IW_PUDA_RSRC_TYPE_ILQ)
rsrc              437 drivers/infiniband/hw/i40iw/i40iw_puda.c 			i40iw_debug(rsrc->dev, I40IW_DEBUG_PUDA,
rsrc              441 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->tx_wqe_avail_cnt--;
rsrc              446 drivers/infiniband/hw/i40iw/i40iw_puda.c 		buf = i40iw_puda_get_listbuf(&rsrc->txpend);
rsrc              457 drivers/infiniband/hw/i40iw/i40iw_puda.c 	info.doloopback = (rsrc->type == I40IW_PUDA_RSRC_TYPE_IEQ);
rsrc              459 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ret = i40iw_puda_send(&rsrc->qp, &info);
rsrc              461 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->tx_wqe_avail_cnt++;
rsrc              462 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->stats_sent_pkt_q++;
rsrc              463 drivers/infiniband/hw/i40iw/i40iw_puda.c 		list_add(&buf->list, &rsrc->txpend);
rsrc              464 drivers/infiniband/hw/i40iw/i40iw_puda.c 		if (rsrc->type == I40IW_PUDA_RSRC_TYPE_ILQ)
rsrc              465 drivers/infiniband/hw/i40iw/i40iw_puda.c 			i40iw_debug(rsrc->dev, I40IW_DEBUG_PUDA,
rsrc              468 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->stats_pkt_sent++;
rsrc              471 drivers/infiniband/hw/i40iw/i40iw_puda.c 	spin_unlock_irqrestore(&rsrc->bufpool_lock, flags);
rsrc              478 drivers/infiniband/hw/i40iw/i40iw_puda.c static void i40iw_puda_qp_setctx(struct i40iw_puda_rsrc *rsrc)
rsrc              480 drivers/infiniband/hw/i40iw/i40iw_puda.c 	struct i40iw_sc_qp *qp = &rsrc->qp;
rsrc              490 drivers/infiniband/hw/i40iw/i40iw_puda.c 	set_64bit_val(qp_ctx, 48, LS_64(rsrc->buf_size, I40IW_UDA_QPC_MAXFRAMESIZE));
rsrc              495 drivers/infiniband/hw/i40iw/i40iw_puda.c 		      LS_64(rsrc->cq_id, I40IWQPC_TXCQNUM) |
rsrc              496 drivers/infiniband/hw/i40iw/i40iw_puda.c 		      LS_64(rsrc->cq_id, I40IWQPC_RXCQNUM));
rsrc              508 drivers/infiniband/hw/i40iw/i40iw_puda.c 	i40iw_debug_buf(rsrc->dev, I40IW_DEBUG_PUDA, "PUDA QP CONTEXT",
rsrc              552 drivers/infiniband/hw/i40iw/i40iw_puda.c static enum i40iw_status_code i40iw_puda_qp_create(struct i40iw_puda_rsrc *rsrc)
rsrc              554 drivers/infiniband/hw/i40iw/i40iw_puda.c 	struct i40iw_sc_qp *qp = &rsrc->qp;
rsrc              560 drivers/infiniband/hw/i40iw/i40iw_puda.c 	sq_size = rsrc->sq_size * I40IW_QP_WQE_MIN_SIZE;
rsrc              561 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rq_size = rsrc->rq_size * I40IW_QP_WQE_MIN_SIZE;
rsrc              566 drivers/infiniband/hw/i40iw/i40iw_puda.c 	    i40iw_allocate_dma_mem(rsrc->dev->hw, &rsrc->qpmem, t_size,
rsrc              569 drivers/infiniband/hw/i40iw/i40iw_puda.c 		i40iw_debug(rsrc->dev, I40IW_DEBUG_PUDA, "%s: error dma mem\n", __func__);
rsrc              573 drivers/infiniband/hw/i40iw/i40iw_puda.c 	mem = &rsrc->qpmem;
rsrc              575 drivers/infiniband/hw/i40iw/i40iw_puda.c 	qp->hw_sq_size = i40iw_get_encoded_wqe_size(rsrc->sq_size, false);
rsrc              576 drivers/infiniband/hw/i40iw/i40iw_puda.c 	qp->hw_rq_size = i40iw_get_encoded_wqe_size(rsrc->rq_size, false);
rsrc              577 drivers/infiniband/hw/i40iw/i40iw_puda.c 	qp->pd = &rsrc->sc_pd;
rsrc              579 drivers/infiniband/hw/i40iw/i40iw_puda.c 	qp->dev = rsrc->dev;
rsrc              580 drivers/infiniband/hw/i40iw/i40iw_puda.c 	qp->back_qp = (void *)rsrc;
rsrc              583 drivers/infiniband/hw/i40iw/i40iw_puda.c 	qp->vsi = rsrc->vsi;
rsrc              585 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ukqp->rq_base = &ukqp->sq_base[rsrc->sq_size];
rsrc              586 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ukqp->shadow_area = ukqp->rq_base[rsrc->rq_size].elem;
rsrc              591 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ukqp->qp_id = rsrc->qp_id;
rsrc              592 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ukqp->sq_wrtrk_array = rsrc->sq_wrtrk_array;
rsrc              593 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ukqp->rq_wrid_array = rsrc->rq_wrid_array;
rsrc              595 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ukqp->qp_id = rsrc->qp_id;
rsrc              596 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ukqp->sq_size = rsrc->sq_size;
rsrc              597 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ukqp->rq_size = rsrc->rq_size;
rsrc              612 drivers/infiniband/hw/i40iw/i40iw_puda.c 	i40iw_puda_qp_setctx(rsrc);
rsrc              613 drivers/infiniband/hw/i40iw/i40iw_puda.c 	if (rsrc->dev->ceq_valid)
rsrc              614 drivers/infiniband/hw/i40iw/i40iw_puda.c 		ret = i40iw_cqp_qp_create_cmd(rsrc->dev, qp);
rsrc              616 drivers/infiniband/hw/i40iw/i40iw_puda.c 		ret = i40iw_puda_qp_wqe(rsrc->dev, qp);
rsrc              619 drivers/infiniband/hw/i40iw/i40iw_puda.c 		i40iw_free_dma_mem(rsrc->dev->hw, &rsrc->qpmem);
rsrc              672 drivers/infiniband/hw/i40iw/i40iw_puda.c static enum i40iw_status_code i40iw_puda_cq_create(struct i40iw_puda_rsrc *rsrc)
rsrc              674 drivers/infiniband/hw/i40iw/i40iw_puda.c 	struct i40iw_sc_dev *dev = rsrc->dev;
rsrc              675 drivers/infiniband/hw/i40iw/i40iw_puda.c 	struct i40iw_sc_cq *cq = &rsrc->cq;
rsrc              682 drivers/infiniband/hw/i40iw/i40iw_puda.c 	cq->vsi = rsrc->vsi;
rsrc              683 drivers/infiniband/hw/i40iw/i40iw_puda.c 	cqsize = rsrc->cq_size * (sizeof(struct i40iw_cqe));
rsrc              685 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ret = i40iw_allocate_dma_mem(dev->hw, &rsrc->cqmem, tsize,
rsrc              690 drivers/infiniband/hw/i40iw/i40iw_puda.c 	mem = &rsrc->cqmem;
rsrc              693 drivers/infiniband/hw/i40iw/i40iw_puda.c 	info.type = (rsrc->type == I40IW_PUDA_RSRC_TYPE_ILQ) ?
rsrc              695 drivers/infiniband/hw/i40iw/i40iw_puda.c 	info.shadow_read_threshold = rsrc->cq_size >> 2;
rsrc              701 drivers/infiniband/hw/i40iw/i40iw_puda.c 	init_info->cq_size = rsrc->cq_size;
rsrc              702 drivers/infiniband/hw/i40iw/i40iw_puda.c 	init_info->cq_id = rsrc->cq_id;
rsrc              708 drivers/infiniband/hw/i40iw/i40iw_puda.c 	if (rsrc->dev->ceq_valid)
rsrc              714 drivers/infiniband/hw/i40iw/i40iw_puda.c 		i40iw_free_dma_mem(dev->hw, &rsrc->cqmem);
rsrc              722 drivers/infiniband/hw/i40iw/i40iw_puda.c static void i40iw_puda_free_qp(struct i40iw_puda_rsrc *rsrc)
rsrc              726 drivers/infiniband/hw/i40iw/i40iw_puda.c 	struct i40iw_sc_dev *dev = rsrc->dev;
rsrc              728 drivers/infiniband/hw/i40iw/i40iw_puda.c 	if (rsrc->dev->ceq_valid) {
rsrc              729 drivers/infiniband/hw/i40iw/i40iw_puda.c 		i40iw_cqp_qp_destroy_cmd(dev, &rsrc->qp);
rsrc              733 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ret = dev->iw_priv_qp_ops->qp_destroy(&rsrc->qp,
rsrc              755 drivers/infiniband/hw/i40iw/i40iw_puda.c static void i40iw_puda_free_cq(struct i40iw_puda_rsrc *rsrc)
rsrc              759 drivers/infiniband/hw/i40iw/i40iw_puda.c 	struct i40iw_sc_dev *dev = rsrc->dev;
rsrc              761 drivers/infiniband/hw/i40iw/i40iw_puda.c 	if (rsrc->dev->ceq_valid) {
rsrc              762 drivers/infiniband/hw/i40iw/i40iw_puda.c 		i40iw_cqp_cq_destroy_cmd(dev, &rsrc->cq);
rsrc              765 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ret = dev->iw_priv_cq_ops->cq_destroy(&rsrc->cq, 0, true);
rsrc              794 drivers/infiniband/hw/i40iw/i40iw_puda.c 	struct i40iw_puda_rsrc *rsrc;
rsrc              801 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc = vsi->ilq;
rsrc              805 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc = vsi->ieq;
rsrc              814 drivers/infiniband/hw/i40iw/i40iw_puda.c 	switch (rsrc->completion) {
rsrc              816 drivers/infiniband/hw/i40iw/i40iw_puda.c 		i40iw_free_hash_desc(rsrc->hash_desc);
rsrc              820 drivers/infiniband/hw/i40iw/i40iw_puda.c 			i40iw_puda_free_qp(rsrc);
rsrc              822 drivers/infiniband/hw/i40iw/i40iw_puda.c 		i40iw_free_dma_mem(dev->hw, &rsrc->qpmem);
rsrc              826 drivers/infiniband/hw/i40iw/i40iw_puda.c 			i40iw_puda_free_cq(rsrc);
rsrc              828 drivers/infiniband/hw/i40iw/i40iw_puda.c 		i40iw_free_dma_mem(dev->hw, &rsrc->cqmem);
rsrc              831 drivers/infiniband/hw/i40iw/i40iw_puda.c 		i40iw_debug(rsrc->dev, I40IW_DEBUG_PUDA, "%s error no resources\n", __func__);
rsrc              835 drivers/infiniband/hw/i40iw/i40iw_puda.c 	buf = rsrc->alloclist;
rsrc              840 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->alloc_buf_count--;
rsrc              850 drivers/infiniband/hw/i40iw/i40iw_puda.c static enum i40iw_status_code i40iw_puda_allocbufs(struct i40iw_puda_rsrc *rsrc,
rsrc              858 drivers/infiniband/hw/i40iw/i40iw_puda.c 		buf = i40iw_puda_alloc_buf(rsrc->dev, rsrc->buf_size);
rsrc              860 drivers/infiniband/hw/i40iw/i40iw_puda.c 			rsrc->stats_buf_alloc_fail++;
rsrc              863 drivers/infiniband/hw/i40iw/i40iw_puda.c 		i40iw_puda_ret_bufpool(rsrc, buf);
rsrc              864 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->alloc_buf_count++;
rsrc              865 drivers/infiniband/hw/i40iw/i40iw_puda.c 		if (!rsrc->alloclist) {
rsrc              866 drivers/infiniband/hw/i40iw/i40iw_puda.c 			rsrc->alloclist = buf;
rsrc              868 drivers/infiniband/hw/i40iw/i40iw_puda.c 			nextbuf = rsrc->alloclist;
rsrc              869 drivers/infiniband/hw/i40iw/i40iw_puda.c 			rsrc->alloclist = buf;
rsrc              873 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->avail_buf_count = rsrc->alloc_buf_count;
rsrc              887 drivers/infiniband/hw/i40iw/i40iw_puda.c 	struct i40iw_puda_rsrc *rsrc;
rsrc              911 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc = (struct i40iw_puda_rsrc *)vmem->va;
rsrc              912 drivers/infiniband/hw/i40iw/i40iw_puda.c 	spin_lock_init(&rsrc->bufpool_lock);
rsrc              916 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->receive = info->receive;
rsrc              917 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->xmit_complete = info->xmit_complete;
rsrc              922 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->receive = i40iw_ieq_receive;
rsrc              923 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->xmit_complete = i40iw_ieq_tx_compl;
rsrc              926 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->type = info->type;
rsrc              927 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->sq_wrtrk_array = (struct i40iw_sq_uk_wr_trk_info *)((u8 *)vmem->va + pudasize);
rsrc              928 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->rq_wrid_array = (u64 *)((u8 *)vmem->va + pudasize + sqwridsize);
rsrc              930 drivers/infiniband/hw/i40iw/i40iw_puda.c 	INIT_LIST_HEAD(&rsrc->bufpool);
rsrc              931 drivers/infiniband/hw/i40iw/i40iw_puda.c 	INIT_LIST_HEAD(&rsrc->txpend);
rsrc              933 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->tx_wqe_avail_cnt = info->sq_size - 1;
rsrc              934 drivers/infiniband/hw/i40iw/i40iw_puda.c 	dev->iw_pd_ops->pd_init(dev, &rsrc->sc_pd, info->pd_id, -1);
rsrc              935 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->qp_id = info->qp_id;
rsrc              936 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->cq_id = info->cq_id;
rsrc              937 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->sq_size = info->sq_size;
rsrc              938 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->rq_size = info->rq_size;
rsrc              939 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->cq_size = info->rq_size + info->sq_size;
rsrc              940 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->buf_size = info->buf_size;
rsrc              941 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->dev = dev;
rsrc              942 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->vsi = vsi;
rsrc              944 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ret = i40iw_puda_cq_create(rsrc);
rsrc              946 drivers/infiniband/hw/i40iw/i40iw_puda.c 		rsrc->completion = PUDA_CQ_CREATED;
rsrc              947 drivers/infiniband/hw/i40iw/i40iw_puda.c 		ret = i40iw_puda_qp_create(rsrc);
rsrc              954 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->completion = PUDA_QP_CREATED;
rsrc              956 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ret = i40iw_puda_allocbufs(rsrc, info->tx_buf_cnt + info->rq_size);
rsrc              963 drivers/infiniband/hw/i40iw/i40iw_puda.c 	rsrc->rxq_invalid_cnt = info->rq_size;
rsrc              964 drivers/infiniband/hw/i40iw/i40iw_puda.c 	ret = i40iw_puda_replenish_rq(rsrc, true);
rsrc              969 drivers/infiniband/hw/i40iw/i40iw_puda.c 		if (!i40iw_init_hash_desc(&rsrc->hash_desc)) {
rsrc              970 drivers/infiniband/hw/i40iw/i40iw_puda.c 			rsrc->check_crc = true;
rsrc              971 drivers/infiniband/hw/i40iw/i40iw_puda.c 			rsrc->completion = PUDA_HASH_CRC_COMPLETE;
rsrc              976 drivers/infiniband/hw/i40iw/i40iw_puda.c 	dev->ccq_ops->ccq_arm(&rsrc->cq);
rsrc              157 drivers/infiniband/hw/i40iw/i40iw_puda.h struct i40iw_puda_buf *i40iw_puda_get_bufpool(struct i40iw_puda_rsrc *rsrc);
rsrc              158 drivers/infiniband/hw/i40iw/i40iw_puda.h void i40iw_puda_ret_bufpool(struct i40iw_puda_rsrc *rsrc,
rsrc              160 drivers/infiniband/hw/i40iw/i40iw_puda.h void i40iw_puda_send_buf(struct i40iw_puda_rsrc *rsrc,
rsrc               36 drivers/mtd/maps/amd76xrom.c 	struct resource rsrc;
rsrc               44 drivers/mtd/maps/amd76xrom.c 	struct resource rsrc;
rsrc               83 drivers/mtd/maps/amd76xrom.c 		if (map->rsrc.parent) {
rsrc               84 drivers/mtd/maps/amd76xrom.c 			release_resource(&map->rsrc);
rsrc               91 drivers/mtd/maps/amd76xrom.c 	if (window->rsrc.parent)
rsrc               92 drivers/mtd/maps/amd76xrom.c 		release_resource(&window->rsrc);
rsrc              146 drivers/mtd/maps/amd76xrom.c 	window->rsrc.name = MOD_NAME;
rsrc              147 drivers/mtd/maps/amd76xrom.c 	window->rsrc.start = window->phys;
rsrc              148 drivers/mtd/maps/amd76xrom.c 	window->rsrc.end   = window->phys + window->size - 1;
rsrc              149 drivers/mtd/maps/amd76xrom.c 	window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
rsrc              150 drivers/mtd/maps/amd76xrom.c 	if (request_resource(&iomem_resource, &window->rsrc)) {
rsrc              151 drivers/mtd/maps/amd76xrom.c 		window->rsrc.parent = NULL;
rsrc              154 drivers/mtd/maps/amd76xrom.c 		       __func__, &window->rsrc);
rsrc              239 drivers/mtd/maps/amd76xrom.c 		if (window->rsrc.parent) {
rsrc              245 drivers/mtd/maps/amd76xrom.c 			map->rsrc.name  = map->map_name;
rsrc              246 drivers/mtd/maps/amd76xrom.c 			map->rsrc.start = map->map.phys;
rsrc              247 drivers/mtd/maps/amd76xrom.c 			map->rsrc.end   = map->map.phys + map->mtd->size - 1;
rsrc              248 drivers/mtd/maps/amd76xrom.c 			map->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
rsrc              249 drivers/mtd/maps/amd76xrom.c 			if (request_resource(&window->rsrc, &map->rsrc)) {
rsrc              252 drivers/mtd/maps/amd76xrom.c 				map->rsrc.parent = NULL;
rsrc               40 drivers/mtd/maps/ck804xrom.c 	struct resource rsrc;
rsrc               48 drivers/mtd/maps/ck804xrom.c 	struct resource rsrc;
rsrc               95 drivers/mtd/maps/ck804xrom.c 		if (map->rsrc.parent)
rsrc               96 drivers/mtd/maps/ck804xrom.c 			release_resource(&map->rsrc);
rsrc              103 drivers/mtd/maps/ck804xrom.c 	if (window->rsrc.parent)
rsrc              104 drivers/mtd/maps/ck804xrom.c 		release_resource(&window->rsrc);
rsrc              175 drivers/mtd/maps/ck804xrom.c 	window->rsrc.name = MOD_NAME;
rsrc              176 drivers/mtd/maps/ck804xrom.c 	window->rsrc.start = window->phys;
rsrc              177 drivers/mtd/maps/ck804xrom.c 	window->rsrc.end   = window->phys + window->size - 1;
rsrc              178 drivers/mtd/maps/ck804xrom.c 	window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
rsrc              179 drivers/mtd/maps/ck804xrom.c 	if (request_resource(&iomem_resource, &window->rsrc)) {
rsrc              180 drivers/mtd/maps/ck804xrom.c 		window->rsrc.parent = NULL;
rsrc              183 drivers/mtd/maps/ck804xrom.c 			__func__, &window->rsrc);
rsrc              269 drivers/mtd/maps/ck804xrom.c 		if (window->rsrc.parent) {
rsrc              275 drivers/mtd/maps/ck804xrom.c 			map->rsrc.name  = map->map_name;
rsrc              276 drivers/mtd/maps/ck804xrom.c 			map->rsrc.start = map->map.phys;
rsrc              277 drivers/mtd/maps/ck804xrom.c 			map->rsrc.end   = map->map.phys + map->mtd->size - 1;
rsrc              278 drivers/mtd/maps/ck804xrom.c 			map->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
rsrc              279 drivers/mtd/maps/ck804xrom.c 			if (request_resource(&window->rsrc, &map->rsrc)) {
rsrc              282 drivers/mtd/maps/ck804xrom.c 				map->rsrc.parent = NULL;
rsrc              102 drivers/mtd/maps/esb2rom.c 	struct resource rsrc;
rsrc              110 drivers/mtd/maps/esb2rom.c 	struct resource rsrc;
rsrc              130 drivers/mtd/maps/esb2rom.c 		if (map->rsrc.parent)
rsrc              131 drivers/mtd/maps/esb2rom.c 			release_resource(&map->rsrc);
rsrc              137 drivers/mtd/maps/esb2rom.c 	if (window->rsrc.parent)
rsrc              138 drivers/mtd/maps/esb2rom.c 		release_resource(&window->rsrc);
rsrc              240 drivers/mtd/maps/esb2rom.c 	window->rsrc.name = MOD_NAME;
rsrc              241 drivers/mtd/maps/esb2rom.c 	window->rsrc.start = window->phys;
rsrc              242 drivers/mtd/maps/esb2rom.c 	window->rsrc.end   = window->phys + window->size - 1;
rsrc              243 drivers/mtd/maps/esb2rom.c 	window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
rsrc              244 drivers/mtd/maps/esb2rom.c 	if (request_resource(&iomem_resource, &window->rsrc)) {
rsrc              245 drivers/mtd/maps/esb2rom.c 		window->rsrc.parent = NULL;
rsrc              248 drivers/mtd/maps/esb2rom.c 			__func__, &window->rsrc);
rsrc              330 drivers/mtd/maps/esb2rom.c 		if (window->rsrc.parent) {
rsrc              336 drivers/mtd/maps/esb2rom.c 			map->rsrc.name  = map->map_name;
rsrc              337 drivers/mtd/maps/esb2rom.c 			map->rsrc.start = map->map.phys;
rsrc              338 drivers/mtd/maps/esb2rom.c 			map->rsrc.end   = map->map.phys + map->mtd->size - 1;
rsrc              339 drivers/mtd/maps/esb2rom.c 			map->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
rsrc              340 drivers/mtd/maps/esb2rom.c 			if (request_resource(&window->rsrc, &map->rsrc)) {
rsrc              343 drivers/mtd/maps/esb2rom.c 				map->rsrc.parent = NULL;
rsrc               41 drivers/mtd/maps/ichxrom.c 	struct resource rsrc;
rsrc               49 drivers/mtd/maps/ichxrom.c 	struct resource rsrc;
rsrc               71 drivers/mtd/maps/ichxrom.c 		if (map->rsrc.parent)
rsrc               72 drivers/mtd/maps/ichxrom.c 			release_resource(&map->rsrc);
rsrc               78 drivers/mtd/maps/ichxrom.c 	if (window->rsrc.parent)
rsrc               79 drivers/mtd/maps/ichxrom.c 		release_resource(&window->rsrc);
rsrc              175 drivers/mtd/maps/ichxrom.c 	window->rsrc.name = MOD_NAME;
rsrc              176 drivers/mtd/maps/ichxrom.c 	window->rsrc.start = window->phys;
rsrc              177 drivers/mtd/maps/ichxrom.c 	window->rsrc.end   = window->phys + window->size - 1;
rsrc              178 drivers/mtd/maps/ichxrom.c 	window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
rsrc              179 drivers/mtd/maps/ichxrom.c 	if (request_resource(&iomem_resource, &window->rsrc)) {
rsrc              180 drivers/mtd/maps/ichxrom.c 		window->rsrc.parent = NULL;
rsrc              183 drivers/mtd/maps/ichxrom.c 		       __func__, &window->rsrc);
rsrc              266 drivers/mtd/maps/ichxrom.c 		if (window->rsrc.parent) {
rsrc              272 drivers/mtd/maps/ichxrom.c 			map->rsrc.name  = map->map_name;
rsrc              273 drivers/mtd/maps/ichxrom.c 			map->rsrc.start = map->map.phys;
rsrc              274 drivers/mtd/maps/ichxrom.c 			map->rsrc.end   = map->map.phys + map->mtd->size - 1;
rsrc              275 drivers/mtd/maps/ichxrom.c 			map->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
rsrc              276 drivers/mtd/maps/ichxrom.c 			if (request_resource(&window->rsrc, &map->rsrc)) {
rsrc              279 drivers/mtd/maps/ichxrom.c 				map->rsrc.parent = NULL;
rsrc               81 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int rvu_alloc_rsrc(struct rsrc_bmap *rsrc)
rsrc               85 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	if (!rsrc->bmap)
rsrc               88 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	id = find_first_zero_bit(rsrc->bmap, rsrc->max);
rsrc               89 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	if (id >= rsrc->max)
rsrc               92 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	__set_bit(id, rsrc->bmap);
rsrc               97 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int rvu_alloc_rsrc_contig(struct rsrc_bmap *rsrc, int nrsrc)
rsrc              101 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	if (!rsrc->bmap)
rsrc              104 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	start = bitmap_find_next_zero_area(rsrc->bmap, rsrc->max, 0, nrsrc, 0);
rsrc              105 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	if (start >= rsrc->max)
rsrc              108 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	bitmap_set(rsrc->bmap, start, nrsrc);
rsrc              112 drivers/net/ethernet/marvell/octeontx2/af/rvu.c static void rvu_free_rsrc_contig(struct rsrc_bmap *rsrc, int nrsrc, int start)
rsrc              114 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	if (!rsrc->bmap)
rsrc              116 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	if (start >= rsrc->max)
rsrc              119 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	bitmap_clear(rsrc->bmap, start, nrsrc);
rsrc              122 drivers/net/ethernet/marvell/octeontx2/af/rvu.c bool rvu_rsrc_check_contig(struct rsrc_bmap *rsrc, int nrsrc)
rsrc              126 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	if (!rsrc->bmap)
rsrc              129 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	start = bitmap_find_next_zero_area(rsrc->bmap, rsrc->max, 0, nrsrc, 0);
rsrc              130 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	if (start >= rsrc->max)
rsrc              136 drivers/net/ethernet/marvell/octeontx2/af/rvu.c void rvu_free_rsrc(struct rsrc_bmap *rsrc, int id)
rsrc              138 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	if (!rsrc->bmap)
rsrc              141 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	__clear_bit(id, rsrc->bmap);
rsrc              144 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int rvu_rsrc_free_count(struct rsrc_bmap *rsrc)
rsrc              148 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	if (!rsrc->bmap)
rsrc              151 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	used = bitmap_weight(rsrc->bmap, rsrc->max);
rsrc              152 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	return (rsrc->max - used);
rsrc              155 drivers/net/ethernet/marvell/octeontx2/af/rvu.c int rvu_alloc_bitmap(struct rsrc_bmap *rsrc)
rsrc              157 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	rsrc->bmap = kcalloc(BITS_TO_LONGS(rsrc->max),
rsrc              159 drivers/net/ethernet/marvell/octeontx2/af/rvu.c 	if (!rsrc->bmap)
rsrc              173 drivers/net/ethernet/marvell/octeontx2/af/rvu.h 	struct rsrc_bmap rsrc;
rsrc              304 drivers/net/ethernet/marvell/octeontx2/af/rvu.h int rvu_alloc_bitmap(struct rsrc_bmap *rsrc);
rsrc              305 drivers/net/ethernet/marvell/octeontx2/af/rvu.h int rvu_alloc_rsrc(struct rsrc_bmap *rsrc);
rsrc              306 drivers/net/ethernet/marvell/octeontx2/af/rvu.h void rvu_free_rsrc(struct rsrc_bmap *rsrc, int id);
rsrc              307 drivers/net/ethernet/marvell/octeontx2/af/rvu.h int rvu_rsrc_free_count(struct rsrc_bmap *rsrc);
rsrc              308 drivers/net/ethernet/marvell/octeontx2/af/rvu.h int rvu_alloc_rsrc_contig(struct rsrc_bmap *rsrc, int nrsrc);
rsrc              309 drivers/net/ethernet/marvell/octeontx2/af/rvu.h bool rvu_rsrc_check_contig(struct rsrc_bmap *rsrc, int nrsrc);
rsrc              102 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c 			free_pkind = rvu_alloc_rsrc(&pkind->rsrc);
rsrc             1838 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c 	mcast->replay_pkind = rvu_alloc_rsrc(&hw->pkind.rsrc);
rsrc               56 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c 	for (i = 0; i < pkind->rsrc.max; i++) {
rsrc              973 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c 	num_pkinds = min_t(int, pkind->rsrc.max, num_pkinds);
rsrc             1123 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c 	pkind->rsrc.max = (rvu_read64(rvu, blkaddr,
rsrc             1125 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c 	err = rvu_alloc_bitmap(&pkind->rsrc);
rsrc             1130 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c 	pkind->pfchan_map = devm_kcalloc(rvu->dev, pkind->rsrc.max,
rsrc             1198 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c 	kfree(pkind->rsrc.bmap);
rsrc               45 drivers/of/of_numa.c 	struct resource rsrc;
rsrc               64 drivers/of/of_numa.c 		for (i = 0; !r && !of_address_to_resource(np, i, &rsrc); i++)
rsrc               65 drivers/of/of_numa.c 			r = numa_add_memblk(nid, rsrc.start, rsrc.end + 1);
rsrc              925 drivers/pci/hotplug/ibmphp_ebda.c 	short rsrc;
rsrc              933 drivers/pci/hotplug/ibmphp_ebda.c 	for (rsrc = 0; rsrc < rsrc_list_ptr->num_entries; rsrc++) {
rsrc             6091 drivers/pci/pci.c 				 const struct resource *rsrc,
rsrc             6094 drivers/pci/pci.c 	*start = rsrc->start;
rsrc             6095 drivers/pci/pci.c 	*end = rsrc->end;
rsrc              582 drivers/ptp/ptp_qoriq.c 	ptp_qoriq->rsrc = platform_get_resource(dev, IORESOURCE_MEM, 0);
rsrc              583 drivers/ptp/ptp_qoriq.c 	if (!ptp_qoriq->rsrc) {
rsrc              587 drivers/ptp/ptp_qoriq.c 	if (request_resource(&iomem_resource, ptp_qoriq->rsrc)) {
rsrc              592 drivers/ptp/ptp_qoriq.c 	base = ioremap(ptp_qoriq->rsrc->start,
rsrc              593 drivers/ptp/ptp_qoriq.c 		       resource_size(ptp_qoriq->rsrc));
rsrc              609 drivers/ptp/ptp_qoriq.c 	release_resource(ptp_qoriq->rsrc);
rsrc              623 drivers/ptp/ptp_qoriq.c 	release_resource(ptp_qoriq->rsrc);
rsrc              220 drivers/vfio/pci/vfio_pci_rdwr.c 	unsigned int rsrc;
rsrc              235 drivers/vfio/pci/vfio_pci_rdwr.c 		rsrc = VGA_RSRC_LEGACY_MEM;
rsrc              242 drivers/vfio/pci/vfio_pci_rdwr.c 		rsrc = VGA_RSRC_LEGACY_IO;
rsrc              249 drivers/vfio/pci/vfio_pci_rdwr.c 		rsrc = VGA_RSRC_LEGACY_IO;
rsrc              259 drivers/vfio/pci/vfio_pci_rdwr.c 	ret = vga_get_interruptible(vdev->pdev, rsrc);
rsrc              267 drivers/vfio/pci/vfio_pci_rdwr.c 	vga_put(vdev->pdev, rsrc);
rsrc              146 include/linux/fsl/ptp_qoriq.h 	struct resource *rsrc;
rsrc             1866 include/linux/pci.h 			  const struct resource *rsrc,
rsrc               77 include/linux/vgaarb.h extern int vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible);
rsrc               79 include/linux/vgaarb.h static inline int vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible) { return 0; }
rsrc               92 include/linux/vgaarb.h 					unsigned int rsrc)
rsrc               94 include/linux/vgaarb.h        return vga_get(pdev, rsrc, 1);
rsrc              107 include/linux/vgaarb.h 					  unsigned int rsrc)
rsrc              109 include/linux/vgaarb.h        return vga_get(pdev, rsrc, 0);
rsrc              113 include/linux/vgaarb.h extern int vga_tryget(struct pci_dev *pdev, unsigned int rsrc);
rsrc              115 include/linux/vgaarb.h static inline int vga_tryget(struct pci_dev *pdev, unsigned int rsrc) { return 0; }
rsrc              119 include/linux/vgaarb.h extern void vga_put(struct pci_dev *pdev, unsigned int rsrc);
rsrc              121 include/linux/vgaarb.h #define vga_put(pdev, rsrc)
rsrc              412 sound/pci/ctxfi/ctsrc.c get_src_rsc(struct src_mgr *mgr, const struct src_desc *desc, struct src **rsrc)
rsrc              419 sound/pci/ctxfi/ctsrc.c 	*rsrc = NULL;
rsrc              450 sound/pci/ctxfi/ctsrc.c 	*rsrc = src;
rsrc               90 sound/pci/ctxfi/ctsrc.h 		       const struct src_desc *desc, struct src **rsrc);
rsrc              866 sound/ppc/pmac.c 				release_mem_region(chip->rsrc[i].start,
rsrc              867 sound/ppc/pmac.c 						   resource_size(&chip->rsrc[i]));
rsrc             1205 sound/ppc/pmac.c 						   &chip->rsrc[i])) {
rsrc             1211 sound/ppc/pmac.c 			if (request_mem_region(chip->rsrc[i].start,
rsrc             1212 sound/ppc/pmac.c 					       resource_size(&chip->rsrc[i]),
rsrc             1216 sound/ppc/pmac.c 				       i, rnames[i], &chip->rsrc[i]);
rsrc             1222 sound/ppc/pmac.c 		ctrl_addr = chip->rsrc[0].start;
rsrc             1223 sound/ppc/pmac.c 		txdma_addr = chip->rsrc[1].start;
rsrc             1230 sound/ppc/pmac.c 						   &chip->rsrc[i])) {
rsrc             1236 sound/ppc/pmac.c 			if (request_mem_region(chip->rsrc[i].start,
rsrc             1237 sound/ppc/pmac.c 					       resource_size(&chip->rsrc[i]),
rsrc             1241 sound/ppc/pmac.c 				       i, rnames[i], &chip->rsrc[i]);
rsrc             1247 sound/ppc/pmac.c 		ctrl_addr = chip->rsrc[0].start;
rsrc             1248 sound/ppc/pmac.c 		txdma_addr = chip->rsrc[1].start;
rsrc             1249 sound/ppc/pmac.c 		rxdma_addr = chip->rsrc[2].start;
rsrc              104 sound/ppc/pmac.h 	struct resource rsrc[3];
rsrc              151 sound/soc/intel/atom/sst/sst_acpi.c 	struct resource *rsrc;
rsrc              156 sound/soc/intel/atom/sst/sst_acpi.c 	rsrc = platform_get_resource(pdev, IORESOURCE_MEM,
rsrc              158 sound/soc/intel/atom/sst/sst_acpi.c 	if (!rsrc) {
rsrc              162 sound/soc/intel/atom/sst/sst_acpi.c 	dev_info(ctx->dev, "LPE base: %#x size:%#x", (unsigned int) rsrc->start,
rsrc              163 sound/soc/intel/atom/sst/sst_acpi.c 					(unsigned int)resource_size(rsrc));
rsrc              165 sound/soc/intel/atom/sst/sst_acpi.c 	ctx->iram_base = rsrc->start + ctx->pdata->res_info->iram_offset;
rsrc              175 sound/soc/intel/atom/sst/sst_acpi.c 	ctx->dram_base = rsrc->start + ctx->pdata->res_info->dram_offset;
rsrc              185 sound/soc/intel/atom/sst/sst_acpi.c 	ctx->shim_phy_add = rsrc->start + ctx->pdata->res_info->shim_offset;
rsrc              198 sound/soc/intel/atom/sst/sst_acpi.c 	ctx->mailbox_add = rsrc->start + ctx->pdata->res_info->mbox_offset;
rsrc              210 sound/soc/intel/atom/sst/sst_acpi.c 	rsrc = platform_get_resource(pdev, IORESOURCE_MEM,
rsrc              212 sound/soc/intel/atom/sst/sst_acpi.c 	if (!rsrc) {
rsrc              216 sound/soc/intel/atom/sst/sst_acpi.c 	ctx->ddr_base = rsrc->start;
rsrc              217 sound/soc/intel/atom/sst/sst_acpi.c 	ctx->ddr_end = rsrc->end;
rsrc              220 sound/soc/intel/atom/sst/sst_acpi.c 					resource_size(rsrc));