Home
last modified time | relevance | path

Searched refs:tuple (Results 1 – 25 of 145) sorted by relevance

123456

/netbsd/src/sys/dev/pcmcia/
Dpcmcia_cis.c142 struct pcmcia_tuple tuple; in pcmcia_scan_cis() local
170 PCMCIA_CIS_SIZE, &pcmh, &tuple.ptr, &window)) { in pcmcia_scan_cis()
178 tuple.memt = pcmh.memt; in pcmcia_scan_cis()
179 tuple.memh = pcmh.memh; in pcmcia_scan_cis()
181 DPRINTF(("cis mem map %x\n", (unsigned int) tuple.memh)); in pcmcia_scan_cis()
183 tuple.mult = 2; in pcmcia_scan_cis()
204 if (tuple.mult * tuple.ptr >= PCMCIA_CIS_SIZE - 1 in pcmcia_scan_cis()
207 tuple.code = PCMCIA_CISTPL_END; in pcmcia_scan_cis()
213 tuple.code = pcmcia_cis_read_1(&tuple, tuple.ptr); in pcmcia_scan_cis()
217 if (tuple.code == PCMCIA_CISTPL_NULL) { in pcmcia_scan_cis()
[all …]
Dpcmciavar.h246 #define pcmcia_cis_read_1(tuple, idx0) \ argument
247 (bus_space_read_1((tuple)->memt, (tuple)->memh, (tuple)->mult*(idx0)))
249 #define pcmcia_tuple_read_1(tuple, idx1) \ argument
250 (pcmcia_cis_read_1((tuple), ((tuple)->ptr+(2+(idx1)))))
252 #define pcmcia_tuple_read_2(tuple, idx2) \ argument
253 (pcmcia_tuple_read_1((tuple), (idx2)) | \
254 (pcmcia_tuple_read_1((tuple), (idx2)+1)<<8))
256 #define pcmcia_tuple_read_3(tuple, idx3) \ argument
257 (pcmcia_tuple_read_1((tuple), (idx3)) | \
258 (pcmcia_tuple_read_1((tuple), (idx3)+1)<<8) | \
[all …]
Dxirc.c280 xirc_manfid_ciscallback(struct pcmcia_tuple *tuple, void *arg) in xirc_manfid_ciscallback() argument
284 if (tuple->code != PCMCIA_CISTPL_MANFID) in xirc_manfid_ciscallback()
287 if (tuple->length < 5) in xirc_manfid_ciscallback()
290 *id = (pcmcia_tuple_read_1(tuple, 3) << 8) | in xirc_manfid_ciscallback()
291 pcmcia_tuple_read_1(tuple, 4); in xirc_manfid_ciscallback()
661 xi_xirc_lan_nid_ciscallback(struct pcmcia_tuple *tuple, void *arg) in xi_xirc_lan_nid_ciscallback() argument
666 if (tuple->length < 2) in xi_xirc_lan_nid_ciscallback()
669 switch (tuple->code) { in xi_xirc_lan_nid_ciscallback()
671 switch (pcmcia_tuple_read_1(tuple, 0)) { in xi_xirc_lan_nid_ciscallback()
673 if (pcmcia_tuple_read_1(tuple, 1) != ETHER_ADDR_LEN) in xi_xirc_lan_nid_ciscallback()
[all …]
Dif_ep_pcmcia.c361 ep_pcmcia_get_enaddr(struct pcmcia_tuple *tuple, void *arg) in ep_pcmcia_get_enaddr() argument
367 if (tuple->code == 0x88) { in ep_pcmcia_get_enaddr()
368 if (tuple->length < ETHER_ADDR_LEN) in ep_pcmcia_get_enaddr()
372 myla[i] = pcmcia_tuple_read_1(tuple, i + 1); in ep_pcmcia_get_enaddr()
373 myla[i + 1] = pcmcia_tuple_read_1(tuple, i); in ep_pcmcia_get_enaddr()
Dmhzc.c526 mhzc_em3336_lannid_ciscallback(struct pcmcia_tuple *tuple, void *arg) in mhzc_em3336_lannid_ciscallback() argument
531 if (tuple->code == 0x81) { in mhzc_em3336_lannid_ciscallback()
536 if (tuple->length != (ETHER_ADDR_LEN * 2) + 1) in mhzc_em3336_lannid_ciscallback()
539 for (i = 0; i < tuple->length - 1; i++) in mhzc_em3336_lannid_ciscallback()
540 addr_str[i] = pcmcia_tuple_read_1(tuple, i); in mhzc_em3336_lannid_ciscallback()
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/tr1/
Dtuple1 // class template tuple -*- C++ -*-
25 /** @file tr1/tuple
64 * Contains the actual implementation of the @c tuple template, stored
75 * Zero-element tuple implementation. This is the basis case for the
82 * Recursive tuple implementation. Here we store the @c Head element
130 class tuple : public _Tuple_impl<0, _Elements...>
135 tuple() : _Inherited() { }
138 tuple(typename __add_c_ref<_Elements>::type... __elements)
142 tuple(const tuple<_UElements...>& __in)
145 tuple(const tuple& __in)
[all …]
Dfunctional38 #include <tr1/tuple>
916 * Stores a tuple of indices. Used by bind() to extract the elements
917 * in a tuple.
940 * Used by _Safe_tuple_element to indicate that there is no tuple
984 * the second parameter is a tuple containing references to the
1027 class result<_CVMu(_CVArg, tuple<_Args...>)>
1033 const tuple<_Args...>& __tuple) const volatile
1035 // Construct an index tuple and forward to __call
1043 // of the arguments in the tuple.
1046 __call(_CVArg& __arg, const tuple<_Args...>& __tuple,
[all …]
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/std/
Dtuple1 // <tuple> -*- C++ -*-
25 /** @file include/tuple
57 class tuple;
64 struct __is_empty_non_tuple<tuple<_El0, _El...>> : false_type { };
242 * Contains the actual implementation of the @c tuple template, stored
253 * Recursive tuple implementation. Here we store the @c Head element
607 /// Primary class template, tuple
609 class tuple : public _Tuple_impl<0, _Elements...>
662 // Constraint for tuple(_UTypes&&...) where sizeof...(_UTypes) == 1.
667 && !is_same<tuple, __remove_cvref_t<_Up>>::value;
[all …]
Dscoped_allocator38 #include <tuple>
120 tuple<>
121 _M_tie() const noexcept { return tuple<>(); }
158 tuple<const _InnerHead&, const _InnerTail&...>
191 tuple<const _OuterAlloc&, const _InnerAllocs&...>
242 scoped_allocator_adaptor(tuple<const _OuterAlloc&,
391 tuple<_Args1...> __x, tuple<_Args2...> __y)
411 { construct(__p, piecewise_construct, tuple<>(), tuple<>()); }
478 tuple<_Args&&...>
479 _M_construct_p(__uses_alloc0, _Ind, tuple<_Args...>& __t)
[all …]
Dfunctional54 #include <tuple>
348 * the second parameter is a tuple containing references to the
390 tuple<_Args...>& __tuple) const volatile
393 // Construct an index tuple and forward to __call
401 // of the arguments in the tuple.
405 __call(_CVArg& __arg, tuple<_Args...>& __tuple,
451 __volget(volatile tuple<_Tp...>& __tuple)
452 -> __tuple_element_t<_Ind, tuple<_Tp...>> volatile&
453 { return std::get<_Ind>(const_cast<tuple<_Tp...>&>(__tuple)); }
458 __volget(const volatile tuple<_Tp...>& __tuple)
[all …]
Dmemory_resource49 # include <tuple> // tuple, forward_as_tuple
283 tuple<_Args1...> __x, tuple<_Args2...> __y)
301 { this->construct(__p, piecewise_construct, tuple<>(), tuple<>()); }
381 static tuple<_Args&&...>
382 _S_construct_p(__uses_alloc0, _Ind, tuple<_Args...>& __t)
386 static tuple<allocator_arg_t, polymorphic_allocator, _Args&&...>
388 tuple<_Args...>& __t)
396 static tuple<_Args&&..., polymorphic_allocator>
398 tuple<_Args...>& __t)
/netbsd/src/external/gpl3/binutils/dist/gas/
Dhash.h55 string_tuple_t *tuple = table->alloc_f (1, sizeof (*tuple)); in string_tuple_alloc() local
56 tuple->key = key; in string_tuple_alloc()
57 tuple->value = value; in string_tuple_alloc()
58 return tuple; in string_tuple_alloc()
65 string_tuple_t *tuple = htab_find (table, &needle); in str_hash_find() local
66 return tuple != NULL ? (void *) tuple->value : NULL; in str_hash_find()
76 string_tuple_t *tuple = htab_find (table, &needle); in str_hash_find_n() local
78 return tuple != NULL ? (void *) tuple->value : NULL; in str_hash_find_n()
Dhash.c28 string_tuple_t *tuple = (string_tuple_t *) e; in hash_string_tuple() local
29 return htab_hash_string (tuple->key); in hash_string_tuple()
/netbsd/src/sys/dev/cardbus/
Dcardbus.c310 parse_tuple(u_int8_t *tuple, int len, void *data) in parse_tuple() argument
316 switch (tuple[0]) { in parse_tuple()
318 if (tuple[1] != 4) { in parse_tuple()
320 __func__, tuple[1])); in parse_tuple()
323 cis->manufacturer = tuple[2] | (tuple[3] << 8); in parse_tuple()
324 cis->product = tuple[4] | (tuple[5] << 8); in parse_tuple()
328 memcpy(cis->cis1_info_buf, tuple + 2, tuple[1]); in parse_tuple()
333 if (p >= cis->cis1_info_buf + tuple[1] || *p == '\xff') in parse_tuple()
344 if (tuple[1] != 6) { in parse_tuple()
346 __func__, tuple[1])); in parse_tuple()
[all …]
/netbsd/src/external/gpl3/gdb/dist/sim/testsuite/common/
Dbits-tst.c296 test_tuples *tuple = &tuples[i]; in check_bits() local
297 if (tuple->col >= 0) in check_bits()
299 long long val = (!call ? tuple->val : calc ((*tests)->macro, -1, in check_bits()
300 tuple->row, tuple->col)); in check_bits()
301 long long check = tuple->check; in check_bits()
304 fprintf (stderr, "%s:%d:", (*tests)->file, tuple->line); in check_bits()
306 if (tuple->row >= 0) in check_bits()
307 fprintf (stderr, " (%d, %d)", tuple->row, tuple->col); in check_bits()
309 fprintf (stderr, " (%d)", tuple->col); in check_bits()
/netbsd/src/external/bsd/wpa/dist/wpa_supplicant/examples/
Ddbus-listen-preq.py21 print('%.2x:%.2x:%.2x:%.2x:%.2x:%.2x' % tuple(args['addr']),
24 print('-> %.2x:%.2x:%.2x:%.2x:%.2x:%.2x' % tuple(args['dst']),
27 print('(bssid %.2x:%.2x:%.2x:%.2x:%.2x:%.2x)' % tuple(args['dst']),
/netbsd/src/external/gpl3/gdb/dist/gdb/python/
Dpy-linetable.c130 gdbpy_ref<> tuple (PyTuple_New (pcs.size ())); in build_line_table_tuple_from_pcs()
132 if (tuple == NULL) in build_line_table_tuple_from_pcs()
142 else if (PyTuple_SetItem (tuple.get (), i, obj.release ()) != 0) in build_line_table_tuple_from_pcs()
146 return tuple.release (); in build_line_table_tuple_from_pcs()
Dpy-inferior.c405 PyObject *tuple; in infpy_threads() local
418 tuple = PyTuple_New (inf_obj->threads->size ()); in infpy_threads()
419 if (!tuple) in infpy_threads()
426 PyTuple_SET_ITEM (tuple, i, thr); in infpy_threads()
430 return tuple; in infpy_threads()
/netbsd/src/external/gpl3/gcc/dist/contrib/
Dgen_autofdo_event.py70 return "%s-%d-%X-%X" % tuple(cpu)
71 return "%s-%d-%X" % tuple(cpu)[:3]
Dcompare_two_ftime_report_sets534 for tuple in tvtuples:
535 yield float(tuple[0]) + float(tuple[1])
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/
Duses_allocator_args.h67 return tuple<allocator_arg_t, const _Alloc&, _Args&&...>( in _GLIBCXX_VISIBILITY()
76 return tuple<_Args&&..., const _Alloc&>( in _GLIBCXX_VISIBILITY()
84 return tuple<_Args&&...>(std::forward<_Args>(__args)...); in _GLIBCXX_VISIBILITY()
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/
DChangeLog-2011103 * include/std/tuple (_Tuple_impl): Check __is_final as well as
105 * testsuite/20_util/tuple/51365.cc: New.
298 (pair<>::pair(piecewise_construct_t, tuple<>, tuple<>): Only declare.
299 (pair<>::pair(tuple<>&, tuple<>&, _Index_tuple<>, _Index_tuple<>)):
301 * include/std/tuple (pair<>::__cons, pair<>::__do_cons): Remove.
302 (pair<>::pair(tuple<>&, tuple<>&, _Index_tuple<>, _Index_tuple<>)):
304 (pair<>::pair(piecewise_construct_t, tuple<>, tuple<>): Define,
504 * include/std/tuple (__conv_types, __one_by_one_convertible,
506 (tuple<>::tuple(_UElements&&...),
507 tuple<>::tuple(const tuple<_UElements...>&),
[all …]
DChangeLog-20073 * include/std/tuple (_Tuple_impl<>::_Tuple_impl(typename
9 (tuple<>::tuple(const _Elements&...), tuple(_UElements&&...),
10 tuple(tuple&&), tuple(const tuple<>&), tuple(tuple<>&&),
11 operator=(tuple&&), operator=(const tuple<>&), operator=(tuple<>&&)):
13 (tuple<_T1, _T2>::tuple(const _T1&, const _T2&, tuple(_U1&&, _U2&&),
14 tuple(tuple&&), tuple(tuple<>&&), tuple(pair<>&&), operator=(tuple&&),
15 operator=(tuple<>&&), operator=(pair<>&&)): Likewise.
16 (tuple<>::tuple(typename __add_c_ref<_Elements>::type...),
17 tuple<_T1, _T2>::tuple(typename __add_c_ref<>::type,
19 * testsuite/tr1/6_containers/tuple/creation_functions/tie2.cc: New.
[all …]
DChangeLog-201652 Make the perfect-forwarding constructor of a two-element tuple
54 * include/std/tuple (tuple(_U1&&, _U2&&)): Constrain.
55 * testsuite/20_util/tuple/cons/allocator_with_any.cc: New.
56 * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust.
198 * include/std/tuple (swap): Likewise.
393 * include/std/tuple (__is_tuple_like_impl, __is_tuple_like):
395 (swap(tuple<_Elements...>&, tuple<_Elements...>&)): Add a deleted
407 * testsuite/20_util/tuple/swap_cxx17.cc: Likewise.
614 * testsuite/20_util/tuple/cv_tuple_size.cc: Test SFINAE-friendliness.
685 * testsuite/20_util/tuple/tuple_size_v.cc: Likewise.
[all …]
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.trace/
Dunavailable.cc65 struct tuple struct
71 struct tuple tarray[8]; argument

123456