Lines Matching defs:xarray
4 #include <linux/xarray.h>
60 struct xarray *dsmas_xa = arg;
138 struct xarray *dsmas_xa = arg;
189 struct xarray *dsmas_xa)
206 struct xarray *dsmas_xa)
306 struct xarray *dsmas_xa,
461 static void discard_dsmas(struct xarray *xa)
472 DEFINE_FREE(dsmas, struct xarray *, if (_T) discard_dsmas(_T))
478 struct xarray __dsmas_xa;
479 struct xarray *dsmas_xa __free(dsmas) = &__dsmas_xa;
686 * cxl_endpoint_gather_bandwidth - collect all the endpoint bandwidth in an xarray
689 * @usp_xa: (output) the xarray that collects all the bandwidth coordinates
696 * an xarray indexed by the upstream device of the switch or the RP
705 struct xarray *usp_xa,
798 static void free_perf_xa(struct xarray *xa)
811 DEFINE_FREE(free_perf_xa, struct xarray *, if (_T) free_perf_xa(_T))
814 * cxl_switch_gather_bandwidth - collect all the bandwidth at switch level in an xarray
816 * @input_xa: xarray indexed by upstream device of a switch with data of 'struct
820 * Return: a xarray of resulting cxl_perf_ctx per parent switch or root port
823 * Iterate through the xarray. Take the minimum of the downstream calculated
829 static struct xarray *cxl_switch_gather_bandwidth(struct cxl_region *cxlr,
830 struct xarray *input_xa,
833 struct xarray *res_xa __free(free_perf_xa) =
932 * @xa: the xarray that holds the cxl_perf_ctx that has the bandwidth calculated
935 * Return: xarray that holds cxl_perf_ctx per host bridge or ERR_PTR(-errno)
937 static struct xarray *cxl_rp_gather_bandwidth(struct xarray *xa)
939 struct xarray *hb_xa __free(free_perf_xa) =
976 * @xa: the xarray that holds the cxl_perf_ctx that has the bandwidth calculated
979 * Return: xarray that holds cxl_perf_ctx per ACPI0017 device or ERR_PTR(-errno)
981 static struct xarray *cxl_hb_gather_bandwidth(struct xarray *xa)
983 struct xarray *mw_xa __free(free_perf_xa) =
1027 * @input_xa: xarray holds cxl_perf_ctx with calculated bandwidth per ACPI0017 instance
1030 struct xarray *input_xa)
1057 struct xarray *working_xa;
1064 struct xarray *usp_xa __free(free_perf_xa) =