Lines Matching defs:source
1021 static void handle_qsfp_int(struct hfi1_devdata *dd, u32 source, u64 reg);
1076 void (*handler)(struct hfi1_devdata *dd, u32 source, u64 reg);
5319 /* first 8 CCE error interrupt source names */
5334 static char *is_misc_err_name(char *buf, size_t bsize, unsigned int source)
5336 if (source < ARRAY_SIZE(cce_misc_names))
5337 strncpy(buf, cce_misc_names[source], bsize);
5340 source + IS_GENERAL_ERR_START);
5348 static char *is_sdma_eng_err_name(char *buf, size_t bsize, unsigned int source)
5350 snprintf(buf, bsize, "SDmaEngErrInt%u", source);
5357 static char *is_sendctxt_err_name(char *buf, size_t bsize, unsigned int source)
5359 snprintf(buf, bsize, "SendCtxtErrInt%u", source);
5374 static char *is_various_name(char *buf, size_t bsize, unsigned int source)
5376 if (source < ARRAY_SIZE(various_names))
5377 strncpy(buf, various_names[source], bsize);
5379 snprintf(buf, bsize, "Reserved%u", source + IS_VARIOUS_START);
5386 static char *is_dc_name(char *buf, size_t bsize, unsigned int source)
5395 if (source < ARRAY_SIZE(dc_int_names))
5396 snprintf(buf, bsize, "dc_%s_int", dc_int_names[source]);
5398 snprintf(buf, bsize, "DCInt%u", source);
5411 static char *is_sdma_eng_name(char *buf, size_t bsize, unsigned int source)
5414 unsigned int what = source / TXE_NUM_SDMA_ENGINES;
5416 unsigned int which = source % TXE_NUM_SDMA_ENGINES;
5421 snprintf(buf, bsize, "Invalid SDMA interrupt %u", source);
5428 static char *is_rcv_avail_name(char *buf, size_t bsize, unsigned int source)
5430 snprintf(buf, bsize, "RcvAvailInt%u", source);
5437 static char *is_rcv_urgent_name(char *buf, size_t bsize, unsigned int source)
5439 snprintf(buf, bsize, "RcvUrgentInt%u", source);
5446 static char *is_send_credit_name(char *buf, size_t bsize, unsigned int source)
5448 snprintf(buf, bsize, "SendCreditInt%u", source);
5455 static char *is_reserved_name(char *buf, size_t bsize, unsigned int source)
5457 snprintf(buf, bsize, "Reserved%u", source + IS_RESERVED_START);
5918 static void is_misc_err_int(struct hfi1_devdata *dd, unsigned int source)
5920 const struct err_reg_info *eri = &misc_errs[source];
5926 source);
6006 unsigned int source, u64 status)
6011 sde = &dd->per_sdma[source];
6015 dd_dev_err(sde->dd, "CONFIG SDMA(%u) source: %u status 0x%llx\n",
6016 sde->this_idx, source, (unsigned long long)status);
6035 static void is_sdma_eng_err_int(struct hfi1_devdata *dd, unsigned int source)
6038 struct sdma_engine *sde = &dd->per_sdma[source];
6042 dd_dev_err(dd, "CONFIG SDMA(%u) source: %u\n", sde->this_idx,
6043 source);
6046 interrupt_clear_down(dd, source, &sdma_eng_err);
6052 static void is_various_int(struct hfi1_devdata *dd, unsigned int source)
6054 const struct err_reg_info *eri = &various_err[source];
6061 if (source == TCRIT_INT_SOURCE)
6068 __func__, source);
8098 static void is_dc_int(struct hfi1_devdata *dd, unsigned int source)
8100 const struct err_reg_info *eri = &dc_errs[source];
8104 } else if (source == 3 /* dc_lbm_int */) {
8116 dd_dev_err(dd, "Invalid DC interrupt %u\n", source);
8123 static void is_send_credit_int(struct hfi1_devdata *dd, unsigned int source)
8125 sc_group_release_update(dd, source);
8137 static void is_sdma_eng_int(struct hfi1_devdata *dd, unsigned int source)
8140 unsigned int what = source / TXE_NUM_SDMA_ENGINES;
8142 unsigned int which = source % TXE_NUM_SDMA_ENGINES;
8151 sdma_engine_interrupt(&dd->per_sdma[which], 1ull << source);
8154 dd_dev_err(dd, "Invalid SDMA interrupt 0x%x\n", source);
8161 * @source: logical IRQ source (offset from IS_RCVAVAIL_START)
8168 static void is_rcv_avail_int(struct hfi1_devdata *dd, unsigned int source)
8173 if (likely(source < dd->num_rcv_contexts)) {
8174 rcd = hfi1_rcd_get_by_index(dd, source);
8187 err_detail, source);
8193 * @source: logical IRQ source (offset from IS_RCVURGENT_START)
8199 static void is_rcv_urgent_int(struct hfi1_devdata *dd, unsigned int source)
8204 if (likely(source < dd->num_rcv_contexts)) {
8205 rcd = hfi1_rcd_get_by_index(dd, source);
8218 err_detail, source);
8224 static void is_reserved_int(struct hfi1_devdata *dd, unsigned int source)
8229 is_reserved_name(name, sizeof(name), source));
8260 * Interrupt source interrupt - called when the given source has an interrupt.
8263 static void is_interrupt(struct hfi1_devdata *dd, unsigned int source)
8269 if (source <= entry->end) {
8270 trace_hfi1_interrupt(dd, entry, source);
8271 entry->is_int(dd, source - entry->start);
8276 dd_dev_err(dd, "invalid interrupt source %u\n", source);
9743 /* Enable the appropriate QSFP IRQ source */
13178 * @src: IRQ source to determine register index from
13202 * @first: first IRQ source to set/clear
13203 * @last: last IRQ source (inclusive) to set/clear
13206 * If first == last, set the exact source.
13262 * Remap the interrupt source from the general handler to the given MSI-X
13280 /* direct the chip source to the given MSI-X interrupt */