DCP_MAX_MAPPINGS
DECLARE_BITMAP(memdesc_map, DCP_MAX_MAPPINGS);
struct dcp_mem_descriptor memdesc[DCP_MAX_MAPPINGS];
bitmap_zero(dcp->memdesc_map, DCP_MAX_MAPPINGS);
find_first_zero_bit(dcp->memdesc_map, DCP_MAX_MAPPINGS);
if (resp.mem_desc_id >= DCP_MAX_MAPPINGS) {
if (id >= DCP_MAX_MAPPINGS) {
id = find_first_zero_bit(dcp->memdesc_map, DCP_MAX_MAPPINGS);