Lines Matching defs:source
20 * Redistribution and use in source and binary forms, with or without
24 * - Redistributions of source code must retain the above copyright
1062 static void handle_qsfp_int(struct hfi1_devdata *dd, u32 source, u64 reg);
1117 void (*handler)(struct hfi1_devdata *dd, u32 source, u64 reg);
5359 /* first 8 CCE error interrupt source names */
5374 static char *is_misc_err_name(char *buf, size_t bsize, unsigned int source)
5376 if (source < ARRAY_SIZE(cce_misc_names))
5377 strncpy(buf, cce_misc_names[source], bsize);
5380 source + IS_GENERAL_ERR_START);
5388 static char *is_sdma_eng_err_name(char *buf, size_t bsize, unsigned int source)
5390 snprintf(buf, bsize, "SDmaEngErrInt%u", source);
5397 static char *is_sendctxt_err_name(char *buf, size_t bsize, unsigned int source)
5399 snprintf(buf, bsize, "SendCtxtErrInt%u", source);
5414 static char *is_various_name(char *buf, size_t bsize, unsigned int source)
5416 if (source < ARRAY_SIZE(various_names))
5417 strncpy(buf, various_names[source], bsize);
5419 snprintf(buf, bsize, "Reserved%u", source + IS_VARIOUS_START);
5426 static char *is_dc_name(char *buf, size_t bsize, unsigned int source)
5435 if (source < ARRAY_SIZE(dc_int_names))
5436 snprintf(buf, bsize, "dc_%s_int", dc_int_names[source]);
5438 snprintf(buf, bsize, "DCInt%u", source);
5451 static char *is_sdma_eng_name(char *buf, size_t bsize, unsigned int source)
5454 unsigned int what = source / TXE_NUM_SDMA_ENGINES;
5456 unsigned int which = source % TXE_NUM_SDMA_ENGINES;
5461 snprintf(buf, bsize, "Invalid SDMA interrupt %u", source);
5468 static char *is_rcv_avail_name(char *buf, size_t bsize, unsigned int source)
5470 snprintf(buf, bsize, "RcvAvailInt%u", source);
5477 static char *is_rcv_urgent_name(char *buf, size_t bsize, unsigned int source)
5479 snprintf(buf, bsize, "RcvUrgentInt%u", source);
5486 static char *is_send_credit_name(char *buf, size_t bsize, unsigned int source)
5488 snprintf(buf, bsize, "SendCreditInt%u", source);
5495 static char *is_reserved_name(char *buf, size_t bsize, unsigned int source)
5497 snprintf(buf, bsize, "Reserved%u", source + IS_RESERVED_START);
5958 static void is_misc_err_int(struct hfi1_devdata *dd, unsigned int source)
5960 const struct err_reg_info *eri = &misc_errs[source];
5966 source);
6046 unsigned int source, u64 status)
6051 sde = &dd->per_sdma[source];
6055 dd_dev_err(sde->dd, "CONFIG SDMA(%u) source: %u status 0x%llx\n",
6056 sde->this_idx, source, (unsigned long long)status);
6075 static void is_sdma_eng_err_int(struct hfi1_devdata *dd, unsigned int source)
6078 struct sdma_engine *sde = &dd->per_sdma[source];
6082 dd_dev_err(dd, "CONFIG SDMA(%u) source: %u\n", sde->this_idx,
6083 source);
6086 interrupt_clear_down(dd, source, &sdma_eng_err);
6092 static void is_various_int(struct hfi1_devdata *dd, unsigned int source)
6094 const struct err_reg_info *eri = &various_err[source];
6101 if (source == TCRIT_INT_SOURCE)
6108 __func__, source);
8137 static void is_dc_int(struct hfi1_devdata *dd, unsigned int source)
8139 const struct err_reg_info *eri = &dc_errs[source];
8143 } else if (source == 3 /* dc_lbm_int */) {
8155 dd_dev_err(dd, "Invalid DC interrupt %u\n", source);
8162 static void is_send_credit_int(struct hfi1_devdata *dd, unsigned int source)
8164 sc_group_release_update(dd, source);
8176 static void is_sdma_eng_int(struct hfi1_devdata *dd, unsigned int source)
8179 unsigned int what = source / TXE_NUM_SDMA_ENGINES;
8181 unsigned int which = source % TXE_NUM_SDMA_ENGINES;
8190 sdma_engine_interrupt(&dd->per_sdma[which], 1ull << source);
8193 dd_dev_err(dd, "Invalid SDMA interrupt 0x%x\n", source);
8200 * @source: logical IRQ source (offset from IS_RCVAVAIL_START)
8207 static void is_rcv_avail_int(struct hfi1_devdata *dd, unsigned int source)
8212 if (likely(source < dd->num_rcv_contexts)) {
8213 rcd = hfi1_rcd_get_by_index(dd, source);
8226 err_detail, source);
8232 * @source: logical IRQ source (offset from IS_RCVURGENT_START)
8238 static void is_rcv_urgent_int(struct hfi1_devdata *dd, unsigned int source)
8243 if (likely(source < dd->num_rcv_contexts)) {
8244 rcd = hfi1_rcd_get_by_index(dd, source);
8257 err_detail, source);
8263 static void is_reserved_int(struct hfi1_devdata *dd, unsigned int source)
8268 is_reserved_name(name, sizeof(name), source));
8299 * Interrupt source interrupt - called when the given source has an interrupt.
8302 static void is_interrupt(struct hfi1_devdata *dd, unsigned int source)
8308 if (source <= entry->end) {
8309 trace_hfi1_interrupt(dd, entry, source);
8310 entry->is_int(dd, source - entry->start);
8315 dd_dev_err(dd, "invalid interrupt source %u\n", source);
9782 /* Enable the appropriate QSFP IRQ source */
13217 * @src: IRQ source to determine register index from
13241 * @first: first IRQ source to set/clear
13242 * @last: last IRQ source (inclusive) to set/clear
13245 * If first == last, set the exact source.
13301 * Remap the interrupt source from the general handler to the given MSI-X
13319 /* direct the chip source to the given MSI-X interrupt */