Lines Matching refs:cap_mask
50 module_param_cb(cap_mask, &cap_ops, &hfi1_cap_mask, S_IWUSR | S_IRUGO);
51 MODULE_PARM_DESC(cap_mask, "Bit mask of enabled/disabled HW features");
73 cap_mask = *cap_mask_ptr, value, diff, in hfi1_caps_set() local
83 diff = value ^ (cap_mask & ~HFI1_CAP_LOCKED_SMASK); in hfi1_caps_set()
95 cap_mask &= ~diff; in hfi1_caps_set()
97 cap_mask |= (value & diff); in hfi1_caps_set()
99 diff = (cap_mask & (HFI1_CAP_MUST_HAVE_KERN << HFI1_CAP_USER_SHIFT)) ^ in hfi1_caps_set()
100 ((cap_mask & HFI1_CAP_MUST_HAVE_KERN) << HFI1_CAP_USER_SHIFT); in hfi1_caps_set()
101 cap_mask &= ~diff; in hfi1_caps_set()
103 *cap_mask_ptr = cap_mask; in hfi1_caps_set()
110 unsigned long cap_mask = *(unsigned long *)kp->arg; in hfi1_caps_get() local
112 cap_mask &= ~HFI1_CAP_LOCKED_SMASK; in hfi1_caps_get()
113 cap_mask |= ((cap_mask & HFI1_CAP_K2U) << HFI1_CAP_USER_SHIFT); in hfi1_caps_get()
115 return sysfs_emit(buffer, "0x%lx\n", cap_mask); in hfi1_caps_get()