Lines Matching defs:slot

537 	 * Need to get a valid location, front/rear & slot.
539 * The path_struct will return a valid slot
631 /* Double check slot. */
632 if (path_struct->slot >= l_state->total_num_drv/2) {
652 offset = (8 + (front_index + path_struct->slot)*4);
654 offset = (8 + (rear_index + path_struct->slot)*4);
679 MSGSTR(9043, " Blinking LED for slot %d in enclosure"
680 " %s\n"), path_struct->f_flag ? path_struct->slot :
681 path_struct->slot + (MAX_DRIVES_DAK/2),
685 MSGSTR(9043, " Blinking LED for slot %d in enclosure"
686 " %s\n"), path_struct->slot,
696 " Turning off LED for slot %d in enclosure"
697 " %s\n"), path_struct->f_flag ? path_struct->slot
698 : path_struct->slot + (MAX_DRIVES_DAK/2),
703 " Turning off LED for slot %d in enclosure"
704 " %s\n"), path_struct->slot,
803 int slot, err = 0;
861 slot = path_struct->slot;
868 drive = &l_state->drv_front[slot];
870 drive = &l_state->drv_rear[slot];
965 path_struct->slot, power_off_flag, verbose);
1177 * slot == -1 implies entire enclosure.
1184 pwr_up_down(char *path_phys, L_state *l_state, int front, int slot,
1228 /* Double check slot as convert_name only does gross check */
1229 if (slot >= l_state->total_num_drv/2) {
1245 front_offset = (8 + (front_index + slot)*4);
1246 rear_offset = (8 + (rear_index + slot)*4);
1251 if (front || slot == -1) {
1260 if (!front || slot == -1) {
1269 if (front || slot == -1) {
1276 if (!front || slot == -1) {
1778 * This function sets the "slot", "slot_valid" and "f_flag" fields of the
1788 * path_struct->slot is set to the slot position in enclosure
1909 * - slot
1910 * This is the slot number that was entered when using
1911 * the box,[fr]slot format. It is only valid if the
1935 int slot = 0, slot_flag = 0, found_box = 0, found_comma = 0;
2035 * box_name,f1 where f is front and 1 is the slot number
2052 slot = strtol(char_ptr, &ptr, 10);
2054 * NOTE: Need to double check the slot when we get
2057 if ((slot < 0) || (ptr == char_ptr) ||
2058 ((save_frd == 's' && slot >= MAX_DRIVES_DAK) ||
2059 ((save_frd != 's' && slot >= (MAX_DRIVES_PER_BOX/2))))) {
2062 /* Say slot valid. */
2064 if (save_frd == 's' && slot >= (MAX_DRIVES_DAK/2)) {
2065 path_ptr->slot = slot = slot % (MAX_DRIVES_DAK/2);
2068 path_ptr->slot = slot;
2126 * Now double check the slot number.
2128 if (slot >= l_state->total_num_drv/2) {
2136 /* Only allow the single slot version for Daktari */
2151 if (*l_state->drv_front[slot].g_disk_state.physical_path) {
2153 g_alloc_string(l_state->drv_front[slot].g_disk_state.physical_path);
2163 if (*l_state->drv_rear[slot].g_disk_state.physical_path) {
2165 g_alloc_string(l_state->drv_rear[slot].g_disk_state.physical_path);
2278 path_ptr->slot,
3682 /* if disk is in rear slot */
3991 " State for disk in slot %d\n", count);
3994 " State for front disk in slot %d\n", i);
4025 " State for disk in slot %d\n", count);
4038 " State for rear disk in slot %d\n", i);
4841 * Get a valid location, front/rear & slot.
4846 * path_struct->slot
4856 int err, al_pa, slot, found = 0;
4880 * Find the slot by searching for the matching hard address.
4886 "to find the slot number with this ID:0x%x\n",
4889 for (slot = 0; slot < l_state->total_num_drv/2; slot++) {
4890 if (l_state->drv_front[slot].ib_status.sel_id ==
4895 } else if (l_state->drv_rear[slot].ib_status.sel_id ==
4909 P_DPRINTF(" l_get_slot: Found slot %d.\n",
4910 path_struct->f_flag ? slot : slot + (MAX_DRIVES_DAK/2));
4912 P_DPRINTF(" l_get_slot: Found slot %d %s.\n", slot,
4915 path_struct->slot = slot;