Lines Matching refs:pint
58 # define TEST_TAKES_INT_BY_PTR(cmd, pint) \ argument
60 ioctl(-1, cmd, pint); \
61 printf("ioctl(-1, %s, [%d]) = -1 EBADF (%m)\n", #cmd, *(pint)); \
64 # define TEST_RETURNS_INT_BY_PTR(cmd, pint) \ argument
66 ioctl(-1, cmd, pint); \
67 printf("ioctl(-1, %s, %p) = -1 EBADF (%m)\n", #cmd, pint); \
73 TAIL_ALLOC_OBJECT_CONST_PTR(int, pint); in main()
74 *pint = (int) 0xfacefeed; in main()
103 TEST_TAKES_INT_BY_VAL(SG_SET_TRANSFORM, *pint); in main()
105 TEST_TAKES_INT_BY_PTR(SG_NEXT_CMD_LEN, pint); in main()
106 TEST_TAKES_INT_BY_PTR(SG_SET_COMMAND_Q, pint); in main()
107 TEST_TAKES_INT_BY_PTR(SG_SET_DEBUG, pint); in main()
108 TEST_TAKES_INT_BY_PTR(SG_SET_FORCE_LOW_DMA, pint); in main()
109 TEST_TAKES_INT_BY_PTR(SG_SET_FORCE_PACK_ID, pint); in main()
110 TEST_TAKES_INT_BY_PTR(SG_SET_KEEP_ORPHAN, pint); in main()
111 TEST_TAKES_INT_BY_PTR(SG_SET_RESERVED_SIZE, pint); in main()
112 TEST_TAKES_INT_BY_PTR(SG_SET_TIMEOUT, pint); in main()
114 TEST_RETURNS_INT_BY_PTR(SG_EMULATED_HOST, pint); in main()
115 TEST_RETURNS_INT_BY_PTR(SG_GET_ACCESS_COUNT, pint); in main()
116 TEST_RETURNS_INT_BY_PTR(SG_GET_COMMAND_Q, pint); in main()
117 TEST_RETURNS_INT_BY_PTR(SG_GET_KEEP_ORPHAN, pint); in main()
118 TEST_RETURNS_INT_BY_PTR(SG_GET_LOW_DMA, pint); in main()
119 TEST_RETURNS_INT_BY_PTR(SG_GET_NUM_WAITING, pint); in main()
120 TEST_RETURNS_INT_BY_PTR(SG_GET_PACK_ID, pint); in main()
121 TEST_RETURNS_INT_BY_PTR(SG_GET_RESERVED_SIZE, pint); in main()
122 TEST_RETURNS_INT_BY_PTR(SG_GET_SG_TABLESIZE, pint); in main()
123 TEST_RETURNS_INT_BY_PTR(SG_GET_TRANSFORM, pint); in main()
124 TEST_RETURNS_INT_BY_PTR(SG_GET_VERSION_NUM, pint); in main()
126 ioctl(-1, SG_SCSI_RESET, pint); in main()
128 "SG_SCSI_RESET", *pint, "SG_SCSI_RESET"); in main()
130 *pint = 0x100; in main()
131 ioctl(-1, SG_SCSI_RESET, pint); in main()
135 *pint = 1; in main()
136 ioctl(-1, SG_SCSI_RESET, pint); in main()