Lines Matching refs:MAX_PORTS_PER_BOARD
357 #define MAX_PORTS_PER_BOARD 32 /* Don't change this value */ macro
358 #define MAX_PORTS (MAX_BOARDS * MAX_PORTS_PER_BOARD)
617 for (j = 0; j < MAX_PORTS_PER_BOARD; j++, p++, argm++) { in moxa_ioctl()
646 for (j = 0; j < MAX_PORTS_PER_BOARD; j++, p++, argm++) { in moxa_ioctl()
1128 brd->ports = kcalloc(MAX_PORTS_PER_BOARD, sizeof(*brd->ports), in moxa_init_board()
1136 for (i = 0, p = brd->ports; i < MAX_PORTS_PER_BOARD; i++, p++) { in moxa_init_board()
1178 first_idx = (brd - moxa_boards) * MAX_PORTS_PER_BOARD; in moxa_init_board()
1185 for (i = 0; i < MAX_PORTS_PER_BOARD; i++) in moxa_init_board()
1206 for (a = 0; a < MAX_PORTS_PER_BOARD; a++) in moxa_board_deinit()
1221 first_idx = (brd - moxa_boards) * MAX_PORTS_PER_BOARD; in moxa_board_deinit()
1465 brd = &moxa_boards[port / MAX_PORTS_PER_BOARD]; in moxa_open()
1471 if (port % MAX_PORTS_PER_BOARD >= brd->numPorts) { in moxa_open()
1476 ch = &brd->ports[port % MAX_PORTS_PER_BOARD]; in moxa_open()