Lines Matching defs:flags
252 * CCE Error flags.
341 * Misc Error flags
361 * TXE PIO Error flags and consequences
503 * TXE SDMA Error flags
530 * TXE Egress Error flags
631 * TXE Egress Error Info flags
680 * TXE Send error flags
690 * TXE Send Context Error flags and consequences
712 * RXE Receive Error flags
900 * LCB error flags
961 * DC8051 Information Error flags
985 * DC8051 Information Host Information flags
1171 * flags
1173 u8 flags;
1185 #define CNTR_ELEM(name, csr, offset, flags, accessor) \
1190 flags, \
1195 #define RXE32_PORT_CNTR_ELEM(name, counter, flags) \
1198 0, flags | CNTR_32BIT, \
1201 #define RXE32_DEV_CNTR_ELEM(name, counter, flags) \
1204 0, flags | CNTR_32BIT, \
1208 #define RXE64_PORT_CNTR_ELEM(name, counter, flags) \
1211 0, flags, \
1214 #define RXE64_DEV_CNTR_ELEM(name, counter, flags) \
1217 0, flags, \
1227 #define TXE32_PORT_CNTR_ELEM(name, counter, flags) \
1230 0, flags | CNTR_32BIT, \
1234 #define TXE64_PORT_CNTR_ELEM(name, counter, flags) \
1237 0, flags, \
1240 # define TX64_DEV_CNTR_ELEM(name, counter, flags) \
1244 flags, \
1248 #define CCE_PERF_DEV_CNTR_ELEM(name, counter, flags) \
1251 0, flags | CNTR_32BIT, \
1254 #define CCE_INT_DEV_CNTR_ELEM(name, counter, flags) \
1257 0, flags | CNTR_32BIT, \
1261 #define DC_PERF_CNTR(name, counter, flags) \
1265 flags, \
1268 #define DC_PERF_CNTR_LCB(name, counter, flags) \
1272 flags, \
1310 if (dd->flags & HFI1_PRESENT)
1323 if (dd->flags & HFI1_PRESENT) {
1345 if (dd->flags & HFI1_PRESENT)
1376 if (entry->flags & CNTR_SDMA) {
1436 if (entry->flags & CNTR_VL) {
1464 if (!(dd->flags & HFI1_SHUTDOWN))
1491 if (entry->flags & CNTR_VL) {
5277 static char *flag_string(char *buf, int buf_len, u64 flags,
5292 if (flags & table[i].flag) {
5296 flags &= ~table[i].flag;
5301 if (!no_room && flags) {
5302 snprintf(extra, sizeof(extra), "bits 0x%llx", flags);
5461 static char *cce_err_status_string(char *buf, int buf_len, u64 flags)
5463 return flag_string(buf, buf_len, flags,
5468 static char *rxe_err_status_string(char *buf, int buf_len, u64 flags)
5470 return flag_string(buf, buf_len, flags,
5475 static char *misc_err_status_string(char *buf, int buf_len, u64 flags)
5477 return flag_string(buf, buf_len, flags, misc_err_status_flags,
5481 static char *pio_err_status_string(char *buf, int buf_len, u64 flags)
5483 return flag_string(buf, buf_len, flags,
5488 static char *sdma_err_status_string(char *buf, int buf_len, u64 flags)
5490 return flag_string(buf, buf_len, flags,
5495 static char *egress_err_status_string(char *buf, int buf_len, u64 flags)
5497 return flag_string(buf, buf_len, flags,
5502 static char *egress_err_info_string(char *buf, int buf_len, u64 flags)
5504 return flag_string(buf, buf_len, flags,
5509 static char *send_err_status_string(char *buf, int buf_len, u64 flags)
5511 return flag_string(buf, buf_len, flags,
5591 int flags = 0;
5598 flags = FREEZE_ABORT;
5600 start_freeze_handling(dd->pport, flags);
5930 static char *send_context_err_status_string(char *buf, int buf_len, u64 flags)
5932 return flag_string(buf, buf_len, flags,
5951 char flags[96];
5980 send_context_err_status_string(flags, sizeof(flags),
6075 unsigned long flags;
6089 spin_lock_irqsave(&ppd->qsfp_info.qsfp_lock, flags);
6098 flags);
6125 spin_lock_irqsave(&ppd->qsfp_info.qsfp_lock, flags);
6129 flags);
6147 spin_lock_irqsave(&ppd->qsfp_info.qsfp_lock, flags);
6149 spin_unlock_irqrestore(&ppd->qsfp_info.qsfp_lock, flags);
6164 if (ret != HCMD_SUCCESS && !(dd->flags & HFI1_SHUTDOWN)) {
6245 if (!(dd->flags & HFI1_SHUTDOWN))
6716 unsigned long flags;
6718 spin_lock_irqsave(&dd->rcvctrl_lock, flags);
6723 spin_unlock_irqrestore(&dd->rcvctrl_lock, flags);
6739 void start_freeze_handling(struct hfi1_pportdata *ppd, int flags)
6746 if (flags & FREEZE_SELF)
6750 dd->flags |= HFI1_FROZEN;
6753 sdma_freeze_notify(dd, !!(flags & FREEZE_LINK_DOWN));
6755 sc_flags = SCF_FROZEN | SCF_HALTED | (flags & FREEZE_LINK_DOWN ?
6760 if (sc && (sc->flags & SCF_ENABLED))
6767 if (flags & FREEZE_ABORT) {
6930 dd->flags &= ~HFI1_FROZEN;
7542 * flags that are returned in the portinfo query differ from
7700 static char *dcc_err_string(char *buf, int buf_len, u64 flags)
7702 return flag_string(buf, buf_len, flags, dcc_err_flags,
7706 static char *lcb_err_string(char *buf, int buf_len, u64 flags)
7708 return flag_string(buf, buf_len, flags, lcb_err_flags,
7712 static char *dc8051_err_string(char *buf, int buf_len, u64 flags)
7714 return flag_string(buf, buf_len, flags, dc8051_err_flags,
7718 static char *dc8051_info_err_string(char *buf, int buf_len, u64 flags)
7720 return flag_string(buf, buf_len, flags, dc8051_info_err_flags,
7724 static char *dc8051_info_host_msg_string(char *buf, int buf_len, u64 flags)
7726 return flag_string(buf, buf_len, flags, dc8051_info_host_msg_flags,
7737 /* look at the flags */
7749 * Handle error flags.
7782 * Handle host message flags.
8441 unsigned long flags;
8443 local_irq_save(flags);
8445 local_irq_restore(flags);
9710 unsigned long flags;
9714 spin_lock_irqsave(&ppd->qsfp_info.qsfp_lock, flags);
9717 flags);
9938 if (!(dd->flags & HFI1_PRESENT))
12208 if (entry->flags & CNTR_DISABLED) {
12212 if (entry->flags & CNTR_VL) {
12226 } else if (entry->flags & CNTR_SDMA) {
12274 if (entry->flags & CNTR_DISABLED) {
12280 if (entry->flags & CNTR_VL) {
12346 if (entry->flags & CNTR_DISABLED) {
12356 if (entry->flags & CNTR_SYNTH) {
12362 if (entry->flags & CNTR_32BIT) {
12397 if (entry->flags & CNTR_DISABLED) {
12404 if (entry->flags & CNTR_SYNTH) {
12406 if (entry->flags & CNTR_32BIT) {
12546 if (entry->flags & CNTR_VL) {
12557 if (entry->flags & CNTR_VL) {
12620 if (dev_cntrs[i].flags & CNTR_DISABLED) {
12625 if (dev_cntrs[i].flags & CNTR_VL) {
12632 if (dev_cntrs[i].flags & CNTR_32BIT)
12637 } else if (dev_cntrs[i].flags & CNTR_SDMA) {
12644 if (dev_cntrs[i].flags & CNTR_32BIT)
12653 if (dev_cntrs[i].flags & CNTR_32BIT)
12678 if (dev_cntrs[i].flags & CNTR_DISABLED) {
12680 } else if (dev_cntrs[i].flags & CNTR_VL) {
12689 if (dev_cntrs[i].flags & CNTR_32BIT) {
12696 } else if (dev_cntrs[i].flags & CNTR_SDMA) {
12704 if (dev_cntrs[i].flags & CNTR_32BIT) {
12716 if (dev_cntrs[i].flags & CNTR_32BIT) {
12737 port_cntrs[i].flags |= CNTR_DISABLED;
12744 if (port_cntrs[i].flags & CNTR_DISABLED) {
12749 if (port_cntrs[i].flags & CNTR_VL) {
12756 if (port_cntrs[i].flags & CNTR_32BIT)
12765 if (port_cntrs[i].flags & CNTR_32BIT)
12780 if (port_cntrs[i].flags & CNTR_DISABLED)
12783 if (port_cntrs[i].flags & CNTR_VL) {
12791 if (port_cntrs[i].flags & CNTR_32BIT) {
12804 if (port_cntrs[i].flags & CNTR_32BIT) {
12937 * Set port status flags in the page mapped into userspace
12940 * Always set the flags due to the fact that the cache value
14779 if (HFI1_CAP_KGET_MASK(rcd->flags, ALLOW_PERM_JKEY))
15350 * @flags: special case flags or-ed in built pbc
15355 * Create a PBC with the given flags, rate, VL, and length.
15362 u64 create_pbc(struct hfi1_pportdata *ppd, u64 flags, int srate_mbs, u32 vl,
15370 pbc = flags
15479 dd->flags |= HFI1_FORCED_FREEZE;