Lines Matching refs:siw_cpu_info
110 } siw_cpu_info; variable
118 siw_cpu_info.num_nodes = num_nodes; in siw_init_cpulist()
120 siw_cpu_info.tx_valid_cpus = in siw_init_cpulist()
122 if (!siw_cpu_info.tx_valid_cpus) { in siw_init_cpulist()
123 siw_cpu_info.num_nodes = 0; in siw_init_cpulist()
126 for (i = 0; i < siw_cpu_info.num_nodes; i++) { in siw_init_cpulist()
127 siw_cpu_info.tx_valid_cpus[i] = in siw_init_cpulist()
129 if (!siw_cpu_info.tx_valid_cpus[i]) in siw_init_cpulist()
132 cpumask_clear(siw_cpu_info.tx_valid_cpus[i]); in siw_init_cpulist()
135 cpumask_set_cpu(i, siw_cpu_info.tx_valid_cpus[cpu_to_node(i)]); in siw_init_cpulist()
140 siw_cpu_info.num_nodes = 0; in siw_init_cpulist()
142 kfree(siw_cpu_info.tx_valid_cpus[i]); in siw_init_cpulist()
143 kfree(siw_cpu_info.tx_valid_cpus); in siw_init_cpulist()
144 siw_cpu_info.tx_valid_cpus = NULL; in siw_init_cpulist()
153 while (i < siw_cpu_info.num_nodes) in siw_destroy_cpulist()
154 kfree(siw_cpu_info.tx_valid_cpus[i++]); in siw_destroy_cpulist()
156 kfree(siw_cpu_info.tx_valid_cpus); in siw_destroy_cpulist()
171 tx_cpumask = siw_cpu_info.tx_valid_cpus[node]; in siw_get_tx_cpu()