Lines Matching refs:idr
139 struct idr tx_idr;
140 struct idr rx_idr;
141 struct idr protocols;
145 struct idr active_protocols;
1085 struct idr *idr; in scmi_chan_setup() local
1089 idr = tx ? &info->tx_idr : &info->rx_idr; in scmi_chan_setup()
1092 cinfo = idr_find(idr, prot_id); in scmi_chan_setup()
1097 cinfo = idr_find(idr, SCMI_PROTOCOL_BASE); in scmi_chan_setup()
1114 ret = idr_alloc(idr, cinfo, prot_id, prot_id + 1, GFP_KERNEL); in scmi_chan_setup()
1405 struct idr *idr = &info->tx_idr; in scmi_cleanup_txrx_channels() local
1407 ret = idr_for_each(idr, info->desc->ops->chan_free, idr); in scmi_cleanup_txrx_channels()
1410 idr = &info->rx_idr; in scmi_cleanup_txrx_channels()
1411 ret = idr_for_each(idr, info->desc->ops->chan_free, idr); in scmi_cleanup_txrx_channels()
1518 void scmi_free_channel(struct scmi_chan_info *cinfo, struct idr *idr, int id) in scmi_free_channel() argument
1520 idr_remove(idr, id); in scmi_free_channel()