Lines Matching refs:idr
94 struct idr tx_idr;
95 struct idr rx_idr;
670 struct idr *idr;
674 idr = tx ? &info->tx_idr : &info->rx_idr;
677 cinfo = idr_find(idr, prot_id);
682 cinfo = idr_find(idr, SCMI_PROTOCOL_BASE);
699 ret = idr_alloc(idr, cinfo, prot_id, prot_id + 1, GFP_KERNEL);
701 dev_err(dev, "unable to allocate SCMI idr slot err %d\n", ret);
853 void scmi_free_channel(struct scmi_chan_info *cinfo, struct idr *idr, int id)
855 idr_remove(idr, id);
862 struct idr *idr = &info->tx_idr;
877 ret = idr_for_each(idr, info->desc->ops->chan_free, idr);
880 idr = &info->rx_idr;
881 ret = idr_for_each(idr, info->desc->ops->chan_free, idr);