Lines Matching refs:pin
15 void qe_config_iopin(u8 port, u8 pin, int dir, int open_drain, int assign)
25 /* Calculate pin location and 2bit mask and dir */
26 pin_2bit_mask = (u32)(0x3 << (NUM_OF_PINS-(pin%(NUM_OF_PINS/2)+1)*2));
27 pin_2bit_dir = (u32)(dir << (NUM_OF_PINS-(pin%(NUM_OF_PINS/2)+1)*2));
30 tmp_val = (pin > (NUM_OF_PINS/2) - 1) ? \
34 if (pin > (NUM_OF_PINS/2) -1) {
42 /* Calculate pin location for 1bit mask */
43 pin_1bit_mask = (u32)(1 << (NUM_OF_PINS - (pin+1)));
54 tmp_val = (pin > (NUM_OF_PINS/2) - 1) ?
58 << (NUM_OF_PINS - (pin%(NUM_OF_PINS/2)+1)*2));
61 if (pin > (NUM_OF_PINS/2) - 1) {