Lines Matching refs:pin
16 void qe_config_iopin(u8 port, u8 pin, int dir, int open_drain, int assign)
27 /* Caculate pin location and 2bit mask and dir */
28 pin_2bit_mask = (u32)(0x3 << (NUM_OF_PINS-(pin%(NUM_OF_PINS/2)+1)*2));
29 pin_2bit_dir = (u32)(dir << (NUM_OF_PINS-(pin%(NUM_OF_PINS/2)+1)*2));
32 tmp_val = (pin > (NUM_OF_PINS/2) - 1) ? \
36 if (pin > (NUM_OF_PINS/2) -1) {
44 /* Calculate pin location for 1bit mask */
45 pin_1bit_mask = (u32)(1 << (NUM_OF_PINS - (pin+1)));
55 tmp_val = (pin > (NUM_OF_PINS/2) - 1) ?
59 << (NUM_OF_PINS - (pin%(NUM_OF_PINS/2)+1)*2));
62 if (pin > (NUM_OF_PINS/2) - 1) {