Lines Matching defs:boot_cell_t
78 * Pass this routine the array of boot_cell_t's describing the
136 typedef unsigned long long boot_cell_t;
143 * These macros stuff/unstuff arguments into/from boot_cell_t's, which are
147 #define boot_ptr2cell(p) ((boot_cell_t)((uintptr_t)((void *)(p))))
148 #define boot_int2cell(i) ((boot_cell_t)((int)(i)))
149 #define boot_uint2cell(u) ((boot_cell_t)((unsigned int)(u)))
150 #define boot_uint642cell(u) ((boot_cell_t)((uint64_t)(u)))
151 #define boot_offt2cell(u) ((boot_cell_t)((off_t)(u)))
152 #define boot_size2cell(u) ((boot_cell_t)((size_t)(u)))
153 #define boot_phandle2cell(ph) ((boot_cell_t)((unsigned)((phandle_t)(ph))))
154 #define boot_dnode2cell(d) ((boot_cell_t)((unsigned)((pnode_t)(d))))
155 #define boot_ihandle2cell(ih) ((boot_cell_t)((unsigned)((ihandle_t)(ih))))
157 #define boot_cell2ptr(p) ((void *)(uintptr_t)((boot_cell_t)(p)))
158 #define boot_cell2int(i) ((int)((boot_cell_t)(i)))
159 #define boot_cell2uint(u) ((unsigned int)((boot_cell_t)(u)))
160 #define boot_cell2uint64(u) ((uint64_t)((boot_cell_t)(u)))
161 #define boot_cell2offt(u) ((off_t)((boot_cell_t)(u)))
162 #define boot_cell2size(u) ((size_t)((boot_cell_t)(u)))
163 #define boot_cell2phandle(ph) ((phandle_t)((boot_cell_t)(ph)))
164 #define boot_cell2dnode(d) ((pnode_t)((boot_cell_t)(d)))
165 #define boot_cell2ihandle(ih) ((ihandle_t)((boot_cell_t)(ih)))
166 #define boot_cells2ull(h, l) ((unsigned long long)(boot_cell_t)(l))