Lines Matching refs:end_idx

85 int spapr_xive_end_to_target(uint8_t end_blk, uint32_t end_idx,  in spapr_xive_end_to_target()  argument
92 *out_server = end_idx >> 3; in spapr_xive_end_to_target()
96 *out_prio = end_idx & 0x7; in spapr_xive_end_to_target()
191 uint32_t end_idx = xive_get_field64(EAS_END_INDEX, eas->w); in spapr_xive_pic_print_info() local
194 assert(end_idx < xive->nr_ends); in spapr_xive_pic_print_info()
195 end = &xive->endt[end_idx]; in spapr_xive_pic_print_info()
374 uint8_t end_blk, uint32_t end_idx, XiveEND *end) in spapr_xive_get_end() argument
378 if (end_idx >= xive->nr_ends) { in spapr_xive_get_end()
382 memcpy(end, &xive->endt[end_idx], sizeof(XiveEND)); in spapr_xive_get_end()
387 uint32_t end_idx, XiveEND *end, in spapr_xive_write_end() argument
392 if (end_idx >= xive->nr_ends) { in spapr_xive_write_end()
396 memcpy(&xive->endt[end_idx], end, sizeof(XiveEND)); in spapr_xive_write_end()
1058 uint32_t end_idx; in h_int_set_source_config() local
1106 if (spapr_xive_target_to_end(target, priority, &end_blk, &end_idx)) { in h_int_set_source_config()
1111 new_eas.w = xive_set_field64(EAS_END_INDEX, new_eas.w, end_idx); in h_int_set_source_config()
1165 uint32_t end_idx, nvt_idx; in h_int_get_source_config() local
1191 end_idx = xive_get_field64(EAS_END_INDEX, eas.w); in h_int_get_source_config()
1193 assert(end_idx < xive->nr_ends); in h_int_get_source_config()
1194 end = &xive->endt[end_idx]; in h_int_get_source_config()
1241 uint32_t end_idx; in h_int_get_queue_info() local
1269 if (spapr_xive_target_to_end(target, priority, &end_blk, &end_idx)) { in h_int_get_queue_info()
1273 assert(end_idx < xive->nr_ends); in h_int_get_queue_info()
1274 end = &xive->endt[end_idx]; in h_int_get_queue_info()
1276 args[0] = xive->end_base + (1ull << (end_xsrc->esb_shift + 1)) * end_idx; in h_int_get_queue_info()
1330 uint32_t end_idx, nvt_idx; in h_int_set_queue_config() local
1359 if (spapr_xive_target_to_end(target, priority, &end_blk, &end_idx)) { in h_int_set_queue_config()
1363 assert(end_idx < xive->nr_ends); in h_int_set_queue_config()
1364 memcpy(&end, &xive->endt[end_idx], sizeof(XiveEND)); in h_int_set_queue_config()
1447 kvmppc_xive_set_queue_config(xive, end_blk, end_idx, &end, &local_err); in h_int_set_queue_config()
1455 memcpy(&xive->endt[end_idx], &end, sizeof(XiveEND)); in h_int_set_queue_config()
1499 uint32_t end_idx; in h_int_get_queue_config() local
1527 if (spapr_xive_target_to_end(target, priority, &end_blk, &end_idx)) { in h_int_get_queue_config()
1531 assert(end_idx < xive->nr_ends); in h_int_get_queue_config()
1532 end = &xive->endt[end_idx]; in h_int_get_queue_config()
1550 kvmppc_xive_get_queue_config(xive, end_blk, end_idx, end, &local_err); in h_int_get_queue_config()