Lines Matching defs:PinNum
1365 static int GetGpioPinParams(u32 PinNum, u32 *pTranslatedPinNum,
1370 if (PinNum <= 1) {
1374 } else if (PinNum >= 2 && PinNum <= 6) {
1378 } else if (PinNum >= 7 && PinNum <= 11) {
1381 } else if (PinNum >= 12 && PinNum <= 15) {
1385 } else if (PinNum == 16) {
1388 } else if (PinNum >= 17 && PinNum <= 24) {
1391 } else if (PinNum == 25) {
1394 } else if (PinNum >= 26 && PinNum <= 28) {
1397 } else if (PinNum == 29) {
1401 } else if (PinNum == 30) {
1404 } else if (PinNum == 31) {
1415 int smscore_gpio_configure(struct smscore_device_t *coredev, u8 PinNum,
1432 if (PinNum > MAX_GPIO_PIN_NUMBER)
1451 pMsg->msgData[0] = PinNum;
1455 if (GetGpioPinParams(PinNum, &TranslatedPinNum, &GroupNum,
1495 int smscore_gpio_set_level(struct smscore_device_t *coredev, u8 PinNum,
1507 if ((NewLevel > 1) || (PinNum > MAX_GPIO_PIN_NUMBER) ||
1508 (PinNum > MAX_GPIO_PIN_NUMBER))
1526 pMsg->msgData[0] = PinNum;
1545 int smscore_gpio_get_level(struct smscore_device_t *coredev, u8 PinNum,
1558 if (PinNum > MAX_GPIO_PIN_NUMBER)
1575 pMsg->msgData[0] = PinNum;