Lines Matching full:slot
50 int slot; in pc_dimm_pre_plug() local
52 slot = object_property_get_int(OBJECT(dimm), PC_DIMM_SLOT_PROP, in pc_dimm_pre_plug()
54 if ((slot < 0 || slot >= machine->ram_slots) && in pc_dimm_pre_plug()
55 slot != PC_DIMM_UNASSIGNED_SLOT) { in pc_dimm_pre_plug()
57 "invalid slot number %d, valid range is [0-%" PRIu64 "]", in pc_dimm_pre_plug()
58 slot, machine->ram_slots - 1); in pc_dimm_pre_plug()
62 slot = pc_dimm_get_free_slot(slot == PC_DIMM_UNASSIGNED_SLOT ? NULL : &slot, in pc_dimm_pre_plug()
68 object_property_set_int(OBJECT(dimm), PC_DIMM_SLOT_PROP, slot, in pc_dimm_pre_plug()
70 trace_mhp_pc_dimm_assigned_slot(slot); in pc_dimm_pre_plug()
108 set_bit(d->slot, bitmap); in pc_dimm_slot2bitmap()
119 int slot = 0; in pc_dimm_get_free_slot() local
124 return slot; in pc_dimm_get_free_slot()
130 /* check if requested slot is not occupied */ in pc_dimm_get_free_slot()
133 error_setg(errp, "invalid slot# %d, should be less than %d", in pc_dimm_get_free_slot()
136 slot = *hint; in pc_dimm_get_free_slot()
138 error_setg(errp, "slot %d is busy", *hint); in pc_dimm_get_free_slot()
143 /* search for free slot */ in pc_dimm_get_free_slot()
144 slot = find_first_zero_bit(bitmap, max_slots); in pc_dimm_get_free_slot()
145 if (slot == max_slots) { in pc_dimm_get_free_slot()
150 return slot; in pc_dimm_get_free_slot()
156 DEFINE_PROP_INT32(PC_DIMM_SLOT_PROP, PCDIMMDevice, slot,
264 di->slot = dimm->slot; in pc_dimm_md_fill_device_info()