Lines Matching refs:tuple

551 	tuple_t		*tuple;  in CardServices()  local
845 tuple = va_arg(arglist, tuple_t *); in CardServices()
847 retcode = cs_parse_tuple(ch, tuple, cisparse, in CardServices()
922 cs_parse_tuple(client_handle_t client_handle, tuple_t *tuple, in cs_parse_tuple() argument
930 if ((ret = cs_get_socket(client_handle, &tuple->Socket, in cs_parse_tuple()
945 if (!(tuple->CISOffset)) in cs_parse_tuple()
964 tuple->CISOffset, in cs_parse_tuple()
965 (tuple->Attributes & TUPLE_RETURN_NAME)? in cs_parse_tuple()
1063 tuple_t *tuple, uint32_t flags) in cs_get_firstnext_tuple() argument
1070 if ((ret = cs_get_socket(client_handle, &tuple->Socket, &fn, in cs_get_firstnext_tuple()
1101 if (tuple->Attributes & TUPLE_RETURN_IGNORED_TUPLES) in cs_get_firstnext_tuple()
1125 if ((tuple->CISOffset = in cs_get_firstnext_tuple()
1132 tuple->CISOffset = sp->cis[0].cis; in cs_get_firstnext_tuple()
1143 if (tuple->CISOffset == NULL) { in cs_get_firstnext_tuple()
1157 if ((tp = GET_NEXT_TUPLE(tuple->CISOffset, flags)) == NULL) { in cs_get_firstnext_tuple()
1159 if ((tuple->CISOffset->flags & CISTPLF_GLOBAL_CIS) && in cs_get_firstnext_tuple()
1169 if ((tuple->CISOffset = tp) == NULL) { in cs_get_firstnext_tuple()
1183 if (tuple->DesiredTuple != RETURN_FIRST_TUPLE) { in cs_get_firstnext_tuple()
1186 if ((tp = FIND_LTUPLE_FWD(tuple->CISOffset, in cs_get_firstnext_tuple()
1187 tuple->DesiredTuple, flags)) == NULL) { in cs_get_firstnext_tuple()
1189 if ((tuple->CISOffset->flags & CISTPLF_GLOBAL_CIS) && in cs_get_firstnext_tuple()
1192 tuple->DesiredTuple, flags); in cs_get_firstnext_tuple()
1200 if ((tuple->CISOffset = tp) == NULL) { in cs_get_firstnext_tuple()
1212 tuple->Flags = tuple->CISOffset->flags; in cs_get_firstnext_tuple()
1213 tuple->TupleCode = tuple->CISOffset->type; in cs_get_firstnext_tuple()
1214 tuple->TupleLink = tuple->CISOffset->len; in cs_get_firstnext_tuple()
1215 tuple->TupleDataLen = tuple->CISOffset->len; in cs_get_firstnext_tuple()
1237 cs_get_tuple_data(client_handle_t client_handle, tuple_t *tuple) in cs_get_tuple_data() argument
1247 if ((ret = cs_get_socket(client_handle, &tuple->Socket, &fn, in cs_get_tuple_data()
1267 if (!(tuple->CISOffset)) { in cs_get_tuple_data()
1278 tuple->TupleDataMax = sizeof (tuple->TupleData); in cs_get_tuple_data()
1285 if ((int)tuple->TupleOffset >= min((int)tuple->TupleLink, in cs_get_tuple_data()
1286 (int)tuple->TupleDataMax)) { in cs_get_tuple_data()
1291 tuple->TupleDataLen = tuple->TupleLink; in cs_get_tuple_data()
1293 if ((nbytes = min((int)tuple->TupleDataMax - in cs_get_tuple_data()
1294 (int)tuple->TupleOffset, in cs_get_tuple_data()
1295 (int)tuple->TupleDataLen - in cs_get_tuple_data()
1296 (int)tuple->TupleOffset)) < 1) { in cs_get_tuple_data()
1306 tdd = tuple->TupleData; in cs_get_tuple_data()
1307 bzero((caddr_t)tdd, sizeof (tuple->TupleData)); in cs_get_tuple_data()
1314 switch (tuple->CISOffset->flags & CISTPLF_SPACE_MASK) { in cs_get_tuple_data()
1316 tsd = (tuple->CISOffset->data + in cs_get_tuple_data()
1317 (unsigned)tuple->TupleOffset); in cs_get_tuple_data()
1323 newoffset = tuple->CISOffset->offset; in cs_get_tuple_data()
1333 if (tuple->CISOffset->flags & CISTPLF_AM_SPACE) { in cs_get_tuple_data()
1335 newoffset += ((tuple->TupleOffset * 2) + 4); in cs_get_tuple_data()
1338 newoffset += (tuple->TupleOffset + 2); in cs_get_tuple_data()
1351 if (tuple->CISOffset->flags & CISTPLF_AM_SPACE) in cs_get_tuple_data()