Lines Matching refs:cap_mask
56 module_param_cb(cap_mask, &cap_ops, &hfi1_cap_mask, S_IWUSR | S_IRUGO);
57 MODULE_PARM_DESC(cap_mask, "Bit mask of enabled/disabled HW features");
79 cap_mask = *cap_mask_ptr, value, diff, in hfi1_caps_set() local
89 diff = value ^ (cap_mask & ~HFI1_CAP_LOCKED_SMASK); in hfi1_caps_set()
101 cap_mask &= ~diff; in hfi1_caps_set()
103 cap_mask |= (value & diff); in hfi1_caps_set()
105 diff = (cap_mask & (HFI1_CAP_MUST_HAVE_KERN << HFI1_CAP_USER_SHIFT)) ^ in hfi1_caps_set()
106 ((cap_mask & HFI1_CAP_MUST_HAVE_KERN) << HFI1_CAP_USER_SHIFT); in hfi1_caps_set()
107 cap_mask &= ~diff; in hfi1_caps_set()
109 *cap_mask_ptr = cap_mask; in hfi1_caps_set()
116 unsigned long cap_mask = *(unsigned long *)kp->arg; in hfi1_caps_get() local
118 cap_mask &= ~HFI1_CAP_LOCKED_SMASK; in hfi1_caps_get()
119 cap_mask |= ((cap_mask & HFI1_CAP_K2U) << HFI1_CAP_USER_SHIFT); in hfi1_caps_get()
121 return scnprintf(buffer, PAGE_SIZE, "0x%lx", cap_mask); in hfi1_caps_get()