Lines Matching refs:ctrl_dev
69 static void pcie_generic_ctrl_enumerate_bars(const struct device *ctrl_dev, pcie_bdf_t bdf, in pcie_generic_ctrl_enumerate_bars() argument
128 if (pcie_ctrl_region_allocate(ctrl_dev, bdf, found_mem, in pcie_generic_ctrl_enumerate_bars()
132 pcie_ctrl_region_translate(ctrl_dev, bdf, found_mem, in pcie_generic_ctrl_enumerate_bars()
159 static bool pcie_generic_ctrl_enumerate_type1(const struct device *ctrl_dev, pcie_bdf_t bdf, in pcie_generic_ctrl_enumerate_type1() argument
170 pcie_generic_ctrl_enumerate_bars(ctrl_dev, bdf, 2); in pcie_generic_ctrl_enumerate_type1()
180 if (pcie_ctrl_region_get_allocate_base(ctrl_dev, bdf, false, false, in pcie_generic_ctrl_enumerate_type1()
198 if (pcie_ctrl_region_get_allocate_base(ctrl_dev, bdf, true, false, in pcie_generic_ctrl_enumerate_type1()
219 static void pcie_generic_ctrl_post_enumerate_type1(const struct device *ctrl_dev, pcie_bdf_t bdf, in pcie_generic_ctrl_post_enumerate_type1() argument
233 if (pcie_ctrl_region_get_allocate_base(ctrl_dev, bdf, false, false, in pcie_generic_ctrl_post_enumerate_type1()
249 if (pcie_ctrl_region_get_allocate_base(ctrl_dev, bdf, true, false, in pcie_generic_ctrl_post_enumerate_type1()
261 static void pcie_generic_ctrl_enumerate_type0(const struct device *ctrl_dev, pcie_bdf_t bdf) in pcie_generic_ctrl_enumerate_type0() argument
264 pcie_generic_ctrl_enumerate_bars(ctrl_dev, bdf, 6); in pcie_generic_ctrl_enumerate_type0()
267 static bool pcie_generic_ctrl_enumerate_endpoint(const struct device *ctrl_dev, in pcie_generic_ctrl_enumerate_endpoint() argument
306 is_bridge = pcie_generic_ctrl_enumerate_type1(ctrl_dev, bdf, bus_number); in pcie_generic_ctrl_enumerate_endpoint()
308 pcie_generic_ctrl_enumerate_type0(ctrl_dev, bdf); in pcie_generic_ctrl_enumerate_endpoint()
348 void pcie_generic_ctrl_enumerate(const struct device *ctrl_dev, pcie_bdf_t bdf_start) in pcie_generic_ctrl_enumerate() argument
368 pcie_generic_ctrl_post_enumerate_type1(ctrl_dev, state->bridge_bdf, in pcie_generic_ctrl_enumerate()
377 is_bridge = pcie_generic_ctrl_enumerate_endpoint(ctrl_dev, in pcie_generic_ctrl_enumerate()