Lines Matching refs:stack_top
355 int stack_top = 0; in pcie_generic_ctrl_enumerate() local
358 stack[stack_top].bus_bdf = PCIE_BDF(PCIE_BDF_TO_BUS(bdf_start), 0, 0); in pcie_generic_ctrl_enumerate()
359 stack[stack_top].bridge_bdf = PCIE_BDF_NONE; in pcie_generic_ctrl_enumerate()
360 stack[stack_top].next_bdf = bdf_start; in pcie_generic_ctrl_enumerate()
362 while (stack_top >= 0) { in pcie_generic_ctrl_enumerate()
364 state = &stack[stack_top]; in pcie_generic_ctrl_enumerate()
387 if (stack_top == (MAX_TRAVERSE_STACK - 1) || in pcie_generic_ctrl_enumerate()
393 stack_top++; in pcie_generic_ctrl_enumerate()
394 stack[stack_top].bus_bdf = PCIE_BDF(bus_number, 0, 0); in pcie_generic_ctrl_enumerate()
395 stack[stack_top].bridge_bdf = PCIE_BDF_NONE; in pcie_generic_ctrl_enumerate()
396 stack[stack_top].next_bdf = PCIE_BDF(bus_number, 0, 0); in pcie_generic_ctrl_enumerate()
409 stack_top--; in pcie_generic_ctrl_enumerate()