Home
last modified time | relevance | path

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

1234

/NextBSD/sys/dev/pccard/
HDpccard_cis.c117 struct pccard_tuple tuple; in pccard_scan_cis() local
150 tuple.memt = rman_get_bustag(res); in pccard_scan_cis()
151 tuple.memh = rman_get_bushandle(res); in pccard_scan_cis()
152 tuple.ptr = 0; in pccard_scan_cis()
155 (unsigned int) tuple.memh, rman_get_start(res))); in pccard_scan_cis()
157 tuple.mult = 2; in pccard_scan_cis()
176 if (tuple.mult * tuple.ptr >= PCCARD_CIS_SIZE - 1 in pccard_scan_cis()
179 tuple.code = CISTPL_END; in pccard_scan_cis()
182 tuple.code = pccard_cis_read_1(&tuple, tuple.ptr); in pccard_scan_cis()
187 if (tuple.code == CISTPL_NULL) { in pccard_scan_cis()
[all …]
HDpccardvar.h115 #define pccard_cis_read_1(tuple, idx0) \ argument
116 (bus_space_read_1((tuple)->memt, (tuple)->memh, (tuple)->mult*(idx0)))
118 #define pccard_tuple_read_1(tuple, idx1) \ argument
119 (pccard_cis_read_1((tuple), ((tuple)->ptr+(2+(idx1)))))
121 #define pccard_tuple_read_2(tuple, idx2) \ argument
122 (pccard_tuple_read_1((tuple), (idx2)) | \
123 (pccard_tuple_read_1((tuple), (idx2)+1)<<8))
125 #define pccard_tuple_read_3(tuple, idx3) \ argument
126 (pccard_tuple_read_1((tuple), (idx3)) | \
127 (pccard_tuple_read_1((tuple), (idx3)+1)<<8) | \
[all …]
HDpccard_device.c82 pccard_build_cis(const struct pccard_tuple *tuple, void *argp) in pccard_build_cis() argument
92 if (tuple->code == CISTPL_END) { in pccard_build_cis()
95 cis->buffer[cis->len++] = tuple->code; in pccard_build_cis()
98 if (cis->len + 2 + tuple->length > sizeof(cis->buffer)) in pccard_build_cis()
100 cis->buffer[cis->len++] = tuple->code; in pccard_build_cis()
101 cis->buffer[cis->len++] = tuple->length; in pccard_build_cis()
102 for (i = 0; i < tuple->length; i++) { in pccard_build_cis()
103 ch = pccard_tuple_read_1(tuple, i); in pccard_build_cis()
/NextBSD/contrib/libstdc++/include/tr1/
Dtuple_iterate.h43 struct tuple_size<tuple<_GLIBCXX_TEMPLATE_ARGS> >
48 const int tuple_size<tuple<_GLIBCXX_TEMPLATE_ARGS> >::value;
53 class tuple
55 class tuple<_GLIBCXX_TEMPLATE_ARGS>
61 tuple()
66 tuple(const std::pair<_U1, _U2>& __u) :
71 tuple&
81 explicit tuple(_GLIBCXX_TUPLE_ADD_CREF) :
86 tuple(const tuple<_GLIBCXX_TEMPLATE_ARGS_U>& __in) :
92 tuple&
[all …]
Dtuple_defs.h43 template<_GLIBCXX_TEMPLATE_PARAMS_NULL_CLASS> class tuple; variable
48 typename __add_ref<typename tuple_element<__i, tuple<_GLIBCXX_TEMPLATE_ARGS> >::type>::type
49 get(tuple<_GLIBCXX_TEMPLATE_ARGS>& __t) in get()
51 return __get_helper<__i, tuple<_GLIBCXX_TEMPLATE_ARGS> >::get_value(__t); in get()
55 typename __add_c_ref<typename tuple_element<__i, tuple<_GLIBCXX_TEMPLATE_ARGS> >::type>::type
56 get(const tuple<_GLIBCXX_TEMPLATE_ARGS>& __t) in get()
58 return __get_helper<__i, tuple<_GLIBCXX_TEMPLATE_ARGS> >::get_value(__t); in get()
63 operator==(const tuple<_GLIBCXX_TEMPLATE_ARGS>& __t,
64 const tuple<_GLIBCXX_TEMPLATE_ARGS_U>& __u)
66 typedef tuple<_GLIBCXX_TEMPLATE_ARGS> _Tp;
[all …]
Drepeat.h119 #define _GLIBCXX_BIND_V_TEMPLATE_ARGS(_CV) typename result_of<_Mu<_T1> _CV(_T1, tuple<_GLIBCXX_BIND…
177 …name result_of<_Mu<_T1> _CV(_T1, tuple<_GLIBCXX_BIND_TEMPLATE_ARGS>)>::type, typename result_of<_M…
234tuple<_GLIBCXX_BIND_TEMPLATE_ARGS>)>::type, typename result_of<_Mu<_T2> _CV(_T2, tuple<_GLIBCXX_BI…
291tuple<_GLIBCXX_BIND_TEMPLATE_ARGS>)>::type, typename result_of<_Mu<_T2> _CV(_T2, tuple<_GLIBCXX_BI…
348tuple<_GLIBCXX_BIND_TEMPLATE_ARGS>)>::type, typename result_of<_Mu<_T2> _CV(_T2, tuple<_GLIBCXX_BI…
405tuple<_GLIBCXX_BIND_TEMPLATE_ARGS>)>::type, typename result_of<_Mu<_T2> _CV(_T2, tuple<_GLIBCXX_BI…
462tuple<_GLIBCXX_BIND_TEMPLATE_ARGS>)>::type, typename result_of<_Mu<_T2> _CV(_T2, tuple<_GLIBCXX_BI…
519tuple<_GLIBCXX_BIND_TEMPLATE_ARGS>)>::type, typename result_of<_Mu<_T2> _CV(_T2, tuple<_GLIBCXX_BI…
576tuple<_GLIBCXX_BIND_TEMPLATE_ARGS>)>::type, typename result_of<_Mu<_T2> _CV(_T2, tuple<_GLIBCXX_BI…
634tuple<_GLIBCXX_BIND_TEMPLATE_ARGS>)>::type, typename result_of<_Mu<_T2> _CV(_T2, tuple<_GLIBCXX_BI…
Dtuple1 // class template tuple -*- C++ -*-
30 /** @file tr1/tuple
46 // An implementation specific class which is used in the tuple class
47 // when the tuple is not maximum possible size.
50 /// Gives the type of the ith element of a given tuple type.
54 /// Finds the size of a given tuple type.
80 // Returns a const reference to the ith element of a tuple.
133 // of a tuple is not required
Dmu_iterate.h43 class result<_CVMu(_CVArg, tuple<_GLIBCXX_TEMPLATE_ARGS>)>
48 operator()(_CVArg& __arg, const tuple<_GLIBCXX_TEMPLATE_ARGS>& __tuple) in operator()
/NextBSD/contrib/libc++/include/
Dtuple2 //===--------------------------- tuple ------------------------------------===//
15 tuple synopsis
21 class tuple {
23 constexpr tuple();
24 explicit tuple(const T&...); // constexpr in C++14
26 explicit tuple(U&&...); // constexpr in C++14
27 tuple(const tuple&) = default;
28 tuple(tuple&&) = default;
30 tuple(const tuple<U...>&); // constexpr in C++14
32 tuple(tuple<U...>&&); // constexpr in C++14
[all …]
D__tuple68 // tuple specializations
71 template <class ..._Tp> class _LIBCPP_TYPE_VIS_ONLY tuple;
73 template <class... _Tp> struct __tuple_like<tuple<_Tp...> > : true_type {};
77 typename tuple_element<_Ip, tuple<_Tp...> >::type&
78 get(tuple<_Tp...>&) _NOEXCEPT;
82 const typename tuple_element<_Ip, tuple<_Tp...> >::type&
83 get(const tuple<_Tp...>&) _NOEXCEPT;
87 typename tuple_element<_Ip, tuple<_Tp...> >::type&&
88 get(tuple<_Tp...>&&) _NOEXCEPT;
/NextBSD/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/
HDtst.MultiAggPrinta.ksh.out1 …n[name = , id = 1, records = [org.opensolaris.os.dtrace.AggregationRecord[tuple = [], value = 1]]]…
5 …n[name = , id = 1, records = [org.opensolaris.os.dtrace.AggregationRecord[tuple = [], value = 1]]]…
7 …ensolaris.os.dtrace.AggregationRecord[tuple = [1, 2], value = 1], org.opensolaris.os.dtrace.Aggreg…
13tuple = [1, 2], value = 1], org.opensolaris.os.dtrace.AggregationRecord[tuple = [1, 3], value = 3]…
21 …ecord[tuple = [], value = 3]], org.opensolaris.os.dtrace.Aggregation[name = d, id = 5, records = […
23 …ecord[tuple = [], value = 3]], org.opensolaris.os.dtrace.Aggregation[name = d, id = 5, records = […
25 …[name = c, id = 4, records = [org.opensolaris.os.dtrace.AggregationRecord[tuple = [], value = 3]]]…
27tuple = [1, 2], value = 1], org.opensolaris.os.dtrace.AggregationRecord[tuple = [1, 3], value = 3]…
33tuple = [1, 2], value = 1], org.opensolaris.os.dtrace.AggregationRecord[tuple = [1, 3], value = 3]…
39tuple = [1, 2], value = 1], org.opensolaris.os.dtrace.AggregationRecord[tuple = [1, 3], value = 3]…
[all …]
/NextBSD/sys/arm64/cavium/
HDthunder_pcie_common.c49 int tuple; in range_addr_is_pci() local
51 for (tuple = 0; tuple < MAX_RANGES_TUPLES; tuple++) { in range_addr_is_pci()
52 r = &ranges[tuple]; in range_addr_is_pci()
69 int tuple; in range_addr_is_phys() local
71 for (tuple = 0; tuple < MAX_RANGES_TUPLES; tuple++) { in range_addr_is_phys()
72 r = &ranges[tuple]; in range_addr_is_phys()
90 int tuple; in range_addr_pci_to_phys() local
93 for (tuple = 0; tuple < MAX_RANGES_TUPLES; tuple++) { in range_addr_pci_to_phys()
94 r = &ranges[tuple]; in range_addr_pci_to_phys()
HDthunder_pcie.c149 int tuple; in thunder_pcie_attach() local
183 for (tuple = 0; tuple < MAX_RANGES_TUPLES; tuple++) { in thunder_pcie_attach()
184 base = sc->ranges[tuple].phys_base; in thunder_pcie_attach()
185 size = sc->ranges[tuple].size; in thunder_pcie_attach()
209 int tuple; in parse_pci_mem_ranges() local
258 for (tuple = 0; tuple < tuples_count; tuple++) { in parse_pci_mem_ranges()
276 sc->ranges[tuple].phys_base = 0; in parse_pci_mem_ranges()
277 sc->ranges[tuple].size = 0; in parse_pci_mem_ranges()
283 sc->ranges[tuple].pci_base = OFW_CELL_TO_UINT64(cell_ptr); in parse_pci_mem_ranges()
285 sc->ranges[tuple].phys_base = OFW_CELL_TO_UINT64(cell_ptr); in parse_pci_mem_ranges()
[all …]
/NextBSD/contrib/libc++/include/experimental/
Dtuple2 //===----------------------------- tuple ----------------------------------===//
15 experimental/tuple synopsis
19 #include <tuple>
25 // See C++14 20.4.2.5, tuple helper classes
29 // 3.2.2, Calling a function with a tuple of arguments
43 # include <tuple>
/NextBSD/sys/dev/pci/
HDpci_host_generic.c155 int tuple; in generic_pcie_attach() local
196 for (tuple = 0; tuple < MAX_RANGES_TUPLES; tuple++) { in generic_pcie_attach()
197 phys_base = sc->ranges[tuple].phys_base; in generic_pcie_attach()
198 pci_base = sc->ranges[tuple].pci_base; in generic_pcie_attach()
199 size = sc->ranges[tuple].size; in generic_pcie_attach()
202 if (sc->ranges[tuple].flags & FLAG_MEM) { in generic_pcie_attach()
206 } else if (sc->ranges[tuple].flags & FLAG_IO) { in generic_pcie_attach()
237 int tuple; in parse_pci_mem_ranges() local
294 for (tuple = 0; tuple < MAX_RANGES_TUPLES; tuple++) { in parse_pci_mem_ranges()
297 sc->ranges[tuple].pci_base, in parse_pci_mem_ranges()
[all …]
/NextBSD/contrib/ofed/management/opensm/opensm/
HDosm_ucast_ftree.c171 ftree_tuple_t tuple; member
232 if ((*pp_sw1)->tuple[i] > (*pp_sw2)->tuple[i]) in __osm_ftree_compare_switches_by_index()
234 if ((*pp_sw1)->tuple[i] < (*pp_sw2)->tuple[i]) in __osm_ftree_compare_switches_by_index()
263 static void __osm_ftree_tuple_init(IN ftree_tuple_t tuple) in __osm_ftree_tuple_init() argument
265 memset(tuple, 0xFF, FTREE_TUPLE_LEN); in __osm_ftree_tuple_init()
270 static inline boolean_t __osm_ftree_tuple_assigned(IN ftree_tuple_t tuple) in __osm_ftree_tuple_assigned() argument
272 return (tuple[0] != 0xFF); in __osm_ftree_tuple_assigned()
279 static char *__osm_ftree_tuple_to_str(IN ftree_tuple_t tuple) in __osm_ftree_tuple_to_str() argument
286 if (!__osm_ftree_tuple_assigned(tuple)) in __osm_ftree_tuple_to_str()
291 for (i = 0; (i < FTREE_TUPLE_LEN) && (tuple[i] != 0xFF); i++) { in __osm_ftree_tuple_to_str()
[all …]
/NextBSD/sys/dev/ex/
HDif_ex_pccard.c80 ex_pccard_silicom_cb(const struct pccard_tuple *tuple, void *arg) in ex_pccard_silicom_cb() argument
85 if (tuple->code != CISTPL_FUNCE) in ex_pccard_silicom_cb()
87 if (tuple->length != 15) in ex_pccard_silicom_cb()
89 if (pccard_tuple_read_1(tuple, 6) != 6) in ex_pccard_silicom_cb()
92 enaddr[i] = pccard_tuple_read_1(tuple, 7 + i); in ex_pccard_silicom_cb()
/NextBSD/sys/dev/ep/
HDif_ep_pccard.c116 ep_pccard_mac(const struct pccard_tuple *tuple, void *argp) in ep_pccard_mac() argument
122 if (tuple->code != 0x88) in ep_pccard_mac()
126 if (tuple->length < ETHER_ADDR_LEN) in ep_pccard_mac()
131 enaddr[i] = pccard_tuple_read_1(tuple, i + 1); in ep_pccard_mac()
132 enaddr[i + 1] = pccard_tuple_read_1(tuple, i); in ep_pccard_mac()
/NextBSD/usr.sbin/dumpcis/
HDreadcis.h29 struct tuple { struct
30 struct tuple *next; argument
38 struct tuple *tuples; argument
HDreadcis.c50 static struct tuple *find_tuple_in_list(struct tuple_list *, unsigned char);
124 struct tuple *tp; in freecis()
195 struct tuple *tp; in read_tuples()
249 struct tuple *tp, *last_tp = 0; in read_one_tuplelist()
343 static struct tuple *
346 struct tuple *tp; in find_tuple_in_list()
/NextBSD/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/src/
HDTestFunctionLookup.java62 for (Tuple tuple : agg.asMap().keySet()) { in main()
63 address = (Number)tuple.get(0).getValue(); in main()
96 for (Tuple tuple : agg.asMap().keySet()) { in main()
97 address = (Number)tuple.get(0).getValue(); in main()
/NextBSD/contrib/unbound/libunbound/python/
HDlibunbound.i84 PyObject* tuple;
85 tuple = PyTuple_New(2);
86 PyTuple_SetItem(tuple, 0, $result);
88 …PyTuple_SetItem(tuple, 1, SWIG_NewPointerObj(SWIG_as_voidptr(newubr), SWIGTYPE_p_ub_result, SWIG_P…
90 PyTuple_SetItem(tuple, 1, Py_None);
92 $result = tuple;
873 PyObject* tuple;
874 tuple = PyTuple_New(2);
875 PyTuple_SetItem(tuple, 0, $result);
876 PyTuple_SetItem(tuple, 1, SWIG_From_int(asyncid));
[all …]
/NextBSD/contrib/wpa/wpa_supplicant/examples/
HDdbus-listen-preq.py20 print '%.2x:%.2x:%.2x:%.2x:%.2x:%.2x' % tuple(args['addr']),
22 print '-> %.2x:%.2x:%.2x:%.2x:%.2x:%.2x' % tuple(args['dst']),
24 print '(bssid %.2x:%.2x:%.2x:%.2x:%.2x:%.2x)' % tuple(args['dst']),
/NextBSD/sys/dev/xe/
HDif_xe_pccard.c197 xe_pccard_mac(const struct pccard_tuple *tuple, void *argp) in xe_pccard_mac() argument
203 if (tuple->code != 0x89) in xe_pccard_mac()
207 if (tuple->length != ETHER_ADDR_LEN + 2) in xe_pccard_mac()
209 test = pccard_tuple_read_1(tuple, 0); in xe_pccard_mac()
212 test = pccard_tuple_read_1(tuple, 1); in xe_pccard_mac()
218 enaddr[i] = pccard_tuple_read_1(tuple, i + 2); in xe_pccard_mac()
/NextBSD/sys/dev/sn/
HDif_sn_pccard.c196 sn_pccard_megahertz_mac(const struct pccard_tuple *tuple, void *argp) in sn_pccard_megahertz_mac() argument
203 if (tuple->code != 0x81) in sn_pccard_megahertz_mac()
207 if (tuple->length != ETHER_ADDR_LEN * 2 + 1) in sn_pccard_megahertz_mac()
212 buffer[i] = pccard_tuple_read_1(tuple, i); in sn_pccard_megahertz_mac()

1234