Lines Matching refs:idr
95 struct idr tx_idr;
96 struct idr rx_idr;
660 struct idr *idr; in scmi_chan_setup() local
664 idr = tx ? &info->tx_idr : &info->rx_idr; in scmi_chan_setup()
667 cinfo = idr_find(idr, prot_id); in scmi_chan_setup()
672 cinfo = idr_find(idr, SCMI_PROTOCOL_BASE); in scmi_chan_setup()
689 ret = idr_alloc(idr, cinfo, prot_id, prot_id + 1, GFP_KERNEL); in scmi_chan_setup()
839 void scmi_free_channel(struct scmi_chan_info *cinfo, struct idr *idr, int id) in scmi_free_channel() argument
841 idr_remove(idr, id); in scmi_free_channel()
848 struct idr *idr = &info->tx_idr; in scmi_remove() local
863 ret = idr_for_each(idr, info->desc->ops->chan_free, idr); in scmi_remove()
866 idr = &info->rx_idr; in scmi_remove()
867 ret = idr_for_each(idr, info->desc->ops->chan_free, idr); in scmi_remove()