Lines Matching refs:tuple

549 	tuple_t		*tuple;  in CardServices()  local
843 tuple = va_arg(arglist, tuple_t *); in CardServices()
845 retcode = cs_parse_tuple(ch, tuple, cisparse, in CardServices()
920 cs_parse_tuple(client_handle_t client_handle, tuple_t *tuple, in cs_parse_tuple() argument
928 if ((ret = cs_get_socket(client_handle, &tuple->Socket, in cs_parse_tuple()
943 if (!(tuple->CISOffset)) in cs_parse_tuple()
962 tuple->CISOffset, in cs_parse_tuple()
963 (tuple->Attributes & TUPLE_RETURN_NAME)? in cs_parse_tuple()
1061 tuple_t *tuple, uint32_t flags) in cs_get_firstnext_tuple() argument
1068 if ((ret = cs_get_socket(client_handle, &tuple->Socket, &fn, in cs_get_firstnext_tuple()
1099 if (tuple->Attributes & TUPLE_RETURN_IGNORED_TUPLES) in cs_get_firstnext_tuple()
1123 if ((tuple->CISOffset = in cs_get_firstnext_tuple()
1130 tuple->CISOffset = sp->cis[0].cis; in cs_get_firstnext_tuple()
1141 if (tuple->CISOffset == NULL) { in cs_get_firstnext_tuple()
1155 if ((tp = GET_NEXT_TUPLE(tuple->CISOffset, flags)) == NULL) { in cs_get_firstnext_tuple()
1157 if ((tuple->CISOffset->flags & CISTPLF_GLOBAL_CIS) && in cs_get_firstnext_tuple()
1167 if ((tuple->CISOffset = tp) == NULL) { in cs_get_firstnext_tuple()
1181 if (tuple->DesiredTuple != RETURN_FIRST_TUPLE) { in cs_get_firstnext_tuple()
1184 if ((tp = FIND_LTUPLE_FWD(tuple->CISOffset, in cs_get_firstnext_tuple()
1185 tuple->DesiredTuple, flags)) == NULL) { in cs_get_firstnext_tuple()
1187 if ((tuple->CISOffset->flags & CISTPLF_GLOBAL_CIS) && in cs_get_firstnext_tuple()
1190 tuple->DesiredTuple, flags); in cs_get_firstnext_tuple()
1198 if ((tuple->CISOffset = tp) == NULL) { in cs_get_firstnext_tuple()
1210 tuple->Flags = tuple->CISOffset->flags; in cs_get_firstnext_tuple()
1211 tuple->TupleCode = tuple->CISOffset->type; in cs_get_firstnext_tuple()
1212 tuple->TupleLink = tuple->CISOffset->len; in cs_get_firstnext_tuple()
1213 tuple->TupleDataLen = tuple->CISOffset->len; in cs_get_firstnext_tuple()
1235 cs_get_tuple_data(client_handle_t client_handle, tuple_t *tuple) in cs_get_tuple_data() argument
1245 if ((ret = cs_get_socket(client_handle, &tuple->Socket, &fn, in cs_get_tuple_data()
1265 if (!(tuple->CISOffset)) { in cs_get_tuple_data()
1276 tuple->TupleDataMax = sizeof (tuple->TupleData); in cs_get_tuple_data()
1283 if ((int)tuple->TupleOffset >= min((int)tuple->TupleLink, in cs_get_tuple_data()
1284 (int)tuple->TupleDataMax)) { in cs_get_tuple_data()
1289 tuple->TupleDataLen = tuple->TupleLink; in cs_get_tuple_data()
1291 if ((nbytes = min((int)tuple->TupleDataMax - in cs_get_tuple_data()
1292 (int)tuple->TupleOffset, in cs_get_tuple_data()
1293 (int)tuple->TupleDataLen - in cs_get_tuple_data()
1294 (int)tuple->TupleOffset)) < 1) { in cs_get_tuple_data()
1304 tdd = tuple->TupleData; in cs_get_tuple_data()
1305 bzero((caddr_t)tdd, sizeof (tuple->TupleData)); in cs_get_tuple_data()
1312 switch (tuple->CISOffset->flags & CISTPLF_SPACE_MASK) { in cs_get_tuple_data()
1314 tsd = (tuple->CISOffset->data + in cs_get_tuple_data()
1315 (unsigned)tuple->TupleOffset); in cs_get_tuple_data()
1321 newoffset = tuple->CISOffset->offset; in cs_get_tuple_data()
1331 if (tuple->CISOffset->flags & CISTPLF_AM_SPACE) { in cs_get_tuple_data()
1333 newoffset += ((tuple->TupleOffset * 2) + 4); in cs_get_tuple_data()
1336 newoffset += (tuple->TupleOffset + 2); in cs_get_tuple_data()
1349 if (tuple->CISOffset->flags & CISTPLF_AM_SPACE) in cs_get_tuple_data()