Lines Matching refs:end_idx
86 int spapr_xive_end_to_target(uint8_t end_blk, uint32_t end_idx, in spapr_xive_end_to_target() argument
93 *out_server = end_idx >> 3; in spapr_xive_end_to_target()
97 *out_prio = end_idx & 0x7; in spapr_xive_end_to_target()
192 uint32_t end_idx = xive_get_field64(EAS_END_INDEX, eas->w); in spapr_xive_pic_print_info() local
195 assert(end_idx < xive->nr_ends); in spapr_xive_pic_print_info()
196 end = &xive->endt[end_idx]; in spapr_xive_pic_print_info()
375 uint8_t end_blk, uint32_t end_idx, XiveEND *end) in spapr_xive_get_end() argument
379 if (end_idx >= xive->nr_ends) { in spapr_xive_get_end()
383 memcpy(end, &xive->endt[end_idx], sizeof(XiveEND)); in spapr_xive_get_end()
388 uint32_t end_idx, XiveEND *end, in spapr_xive_write_end() argument
393 if (end_idx >= xive->nr_ends) { in spapr_xive_write_end()
397 memcpy(&xive->endt[end_idx], end, sizeof(XiveEND)); in spapr_xive_write_end()
1059 uint32_t end_idx; in h_int_set_source_config() local
1107 if (spapr_xive_target_to_end(target, priority, &end_blk, &end_idx)) { in h_int_set_source_config()
1112 new_eas.w = xive_set_field64(EAS_END_INDEX, new_eas.w, end_idx); in h_int_set_source_config()
1166 uint32_t end_idx, nvt_idx; in h_int_get_source_config() local
1192 end_idx = xive_get_field64(EAS_END_INDEX, eas.w); in h_int_get_source_config()
1194 assert(end_idx < xive->nr_ends); in h_int_get_source_config()
1195 end = &xive->endt[end_idx]; in h_int_get_source_config()
1242 uint32_t end_idx; in h_int_get_queue_info() local
1270 if (spapr_xive_target_to_end(target, priority, &end_blk, &end_idx)) { in h_int_get_queue_info()
1274 assert(end_idx < xive->nr_ends); in h_int_get_queue_info()
1275 end = &xive->endt[end_idx]; in h_int_get_queue_info()
1277 args[0] = xive->end_base + (1ull << (end_xsrc->esb_shift + 1)) * end_idx; in h_int_get_queue_info()
1331 uint32_t end_idx, nvt_idx; in h_int_set_queue_config() local
1360 if (spapr_xive_target_to_end(target, priority, &end_blk, &end_idx)) { in h_int_set_queue_config()
1364 assert(end_idx < xive->nr_ends); in h_int_set_queue_config()
1365 memcpy(&end, &xive->endt[end_idx], sizeof(XiveEND)); in h_int_set_queue_config()
1448 kvmppc_xive_set_queue_config(xive, end_blk, end_idx, &end, &local_err); in h_int_set_queue_config()
1456 memcpy(&xive->endt[end_idx], &end, sizeof(XiveEND)); in h_int_set_queue_config()
1500 uint32_t end_idx; in h_int_get_queue_config() local
1528 if (spapr_xive_target_to_end(target, priority, &end_blk, &end_idx)) { in h_int_get_queue_config()
1532 assert(end_idx < xive->nr_ends); in h_int_get_queue_config()
1533 end = &xive->endt[end_idx]; in h_int_get_queue_config()
1551 kvmppc_xive_get_queue_config(xive, end_blk, end_idx, end, &local_err); in h_int_get_queue_config()