Lines Matching refs:shift
73 int shift = (port & 3) * 8; in gth_output_set() local
76 val &= ~(0xff << shift); in gth_output_set()
77 val |= config << shift; in gth_output_set()
85 int shift = (port & 3) * 8; in gth_output_get() local
88 val &= 0xff << shift; in gth_output_get()
89 val >>= shift; in gth_output_get()
98 int shift = (port & 1) * 16; in gth_smcfreq_set() local
102 val &= ~(0xffff << shift); in gth_smcfreq_set()
103 val |= freq << shift; in gth_smcfreq_set()
110 int shift = (port & 1) * 16; in gth_smcfreq_get() local
114 val &= 0xffff << shift; in gth_smcfreq_get()
115 val >>= shift; in gth_smcfreq_get()
134 unsigned int shift = (master & 0x7) * 4; in gth_master_set() local
139 shift = 0; in gth_master_set()
143 val &= ~(0xf << shift); in gth_master_set()
145 val |= (0x8 | port) << shift; in gth_master_set()
276 unsigned int shift = __ffs(mask); in gth_output_parm_set() local
279 config |= (val << shift) & mask; in gth_output_parm_set()
288 unsigned int shift = __ffs(mask); in gth_output_parm_get() local
291 config >>= shift; in gth_output_parm_get()