Home | History | Annotate | Download | only in tests

Lines Matching refs:pint

57 # define TEST_TAKES_INT_BY_PTR(cmd, pint)					\
59 ioctl(-1, cmd, pint); \
60 printf("ioctl(-1, %s, [%d]) = -1 EBADF (%m)\n", #cmd, *(pint)); \
63 # define TEST_RETURNS_INT_BY_PTR(cmd, pint) \
65 ioctl(-1, cmd, pint); \
66 printf("ioctl(-1, %s, %p) = -1 EBADF (%m)\n", #cmd, pint); \
72 int *const pint = tail_alloc(sizeof(*pint));
73 *pint = (int) 0xfacefeed;
102 TEST_TAKES_INT_BY_VAL(SG_SET_TRANSFORM, *pint);
104 TEST_TAKES_INT_BY_PTR(SG_NEXT_CMD_LEN, pint);
105 TEST_TAKES_INT_BY_PTR(SG_SET_COMMAND_Q, pint);
106 TEST_TAKES_INT_BY_PTR(SG_SET_DEBUG, pint);
107 TEST_TAKES_INT_BY_PTR(SG_SET_FORCE_LOW_DMA, pint);
108 TEST_TAKES_INT_BY_PTR(SG_SET_FORCE_PACK_ID, pint);
109 TEST_TAKES_INT_BY_PTR(SG_SET_KEEP_ORPHAN, pint);
110 TEST_TAKES_INT_BY_PTR(SG_SET_RESERVED_SIZE, pint);
111 TEST_TAKES_INT_BY_PTR(SG_SET_TIMEOUT, pint);
113 TEST_RETURNS_INT_BY_PTR(SG_EMULATED_HOST, pint);
114 TEST_RETURNS_INT_BY_PTR(SG_GET_ACCESS_COUNT, pint);
115 TEST_RETURNS_INT_BY_PTR(SG_GET_COMMAND_Q, pint);
116 TEST_RETURNS_INT_BY_PTR(SG_GET_KEEP_ORPHAN, pint);
117 TEST_RETURNS_INT_BY_PTR(SG_GET_LOW_DMA, pint);
118 TEST_RETURNS_INT_BY_PTR(SG_GET_NUM_WAITING, pint);
119 TEST_RETURNS_INT_BY_PTR(SG_GET_PACK_ID, pint);
120 TEST_RETURNS_INT_BY_PTR(SG_GET_RESERVED_SIZE, pint);
121 TEST_RETURNS_INT_BY_PTR(SG_GET_SG_TABLESIZE, pint);
122 TEST_RETURNS_INT_BY_PTR(SG_GET_TRANSFORM, pint);
123 TEST_RETURNS_INT_BY_PTR(SG_GET_VERSION_NUM, pint);
125 ioctl(-1, SG_SCSI_RESET, pint);
127 "SG_SCSI_RESET", *pint, "SG_SCSI_RESET");
129 *pint = 0x100;
130 ioctl(-1, SG_SCSI_RESET, pint);
134 *pint = 1;
135 ioctl(-1, SG_SCSI_RESET, pint);