Searched refs:prop (Results 1 - 25 of 39) sorted by relevance

12

/haiku/src/apps/haikudepot/build/scripts/
H A Dhdsjsonschemacommon.py133 for prop_name, prop in obj['properties'].items():
134 if JSON_TYPE_ARRAY == prop["type"]:
135 array_items = prop['items']
140 if JSON_TYPE_OBJECT == prop["type"] and not prop["cppname"] in assembly:
141 accumulate_all_objects(prop)
165 def augment_property(prop: dict[str, any]) -> None:
166 prop_type = prop['type']
168 prop["cpptype"] = propmetadatatocpptypename(prop)
[all...]
/haiku/src/system/boot/platform/riscv/
H A Dfdt.cpp40 HasFdtString(const char* prop, int size, const char* pattern) argument
43 const char* propEnd = prop + size;
44 while (propEnd - prop > 0) {
45 int curLen = strlen(prop);
46 if (curLen == patternLen && memcmp(prop, pattern, curLen + 1) == 0)
48 prop += curLen + 1;
59 const uint8* prop = (const uint8*)fdt_getprop(fdt, node, "reg", &propSize); local
60 if (prop == NULL)
67 prop += idx*entrySize;
70 case 1: range.start = fdt32_to_cpu(*(uint32*)prop); pro
166 const void* prop = fdt_getprop(fdt, node, "clock-frequency", NULL); local
[all...]
/haiku/src/libs/libfdt/
H A Dfdt_addresses.c61 uint8_t data[sizeof(fdt64_t) * 2], *prop; local
74 prop = data;
79 fdt32_st(prop, (uint32_t)addr);
81 fdt64_st(prop, addr);
87 prop += addr_cells * sizeof(fdt32_t);
92 fdt32_st(prop, (uint32_t)size);
94 fdt64_st(prop, size);
H A Dfdt_wip.c61 struct fdt_property *prop; local
64 prop = fdt_get_property_w(fdt, nodeoffset, name, &len);
65 if (!prop)
68 fdt_nop_region_(prop, len + sizeof(*prop));
H A Dfdt_rw.c185 int len, struct fdt_property **prop)
190 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen);
191 if (!*prop)
194 if ((err = fdt_splice_struct_(fdt, (*prop)->data, FDT_TAGALIGN(oldlen),
198 (*prop)->len = cpu_to_fdt32(len);
203 int len, struct fdt_property **prop)
218 *prop = fdt_offset_ptr_w_(fdt, nextoffset);
219 proplen = sizeof(**prop) + FDT_TAGALIGN(len);
221 err = fdt_splice_struct_(fdt, *prop, 0, proplen);
229 (*prop)
184 fdt_resize_property_(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
202 fdt_add_property_(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
261 struct fdt_property *prop; local
294 struct fdt_property *prop; local
320 struct fdt_property *prop; local
[all...]
H A Dfdt_check.c20 const void *prop; local
83 prop = fdt_getprop_by_offset(fdt, offset, &propname,
85 if (!prop)
H A Dfdt_ro.c361 const struct fdt_property *prop; local
370 prop = fdt_offset_ptr_(fdt, offset);
373 *lenp = fdt32_ld_(&prop->len);
375 return prop;
404 const struct fdt_property *prop; local
406 prop = fdt_get_property_by_offset_(fdt, offset, lenp);
407 if (!can_assume(LIBFDT_FLAWLESS) && !prop) {
411 if (fdt_string_eq_(fdt, fdt32_ld_(&prop->nameoff),
415 return prop;
455 const struct fdt_property *prop; local
472 const struct fdt_property *prop; local
826 const void *prop; local
[all...]
H A Dfdt_sw.c295 struct fdt_property *prop; local
311 prop = fdt_grab_space_(fdt, sizeof(*prop) + FDT_TAGALIGN(len));
312 if (! prop) {
318 prop->tag = cpu_to_fdt32(FDT_PROP);
319 prop->nameoff = cpu_to_fdt32(nameoff);
320 prop->len = cpu_to_fdt32(len);
321 *valp = prop->data;
363 struct fdt_property *prop = local
367 nameoff = fdt32_to_cpu(prop
[all...]
/haiku/src/tests/kits/app/bpropertyinfo/
H A DPropertyFindMatchTest.cpp130 const char *prop,
139 specMsg.AddString("property", prop);
143 assert(propTest->FindMatch(&msg, 0, &specMsg, spec, prop, &extra_data) == result);
147 assert(propTest->FindMatch(&msg, 0, NULL, spec, prop, &extra_data) == result);
149 assert(propTest->FindMatch(&msg, 1, &specMsg, spec, prop, &extra_data) == result);
150 assert(propTest->FindMatch(&msg, 1, NULL, spec, prop, &extra_data) == result);
152 assert(propTest->FindMatch(&msg, 1, &specMsg, spec, prop, &extra_data) == -1);
153 assert(propTest->FindMatch(&msg, 1, NULL, spec, prop, &extra_data) == -1);
128 ExecFindMatch( BPropertyInfo *propTest, const char *prop, uint32 comm, uint32 spec, bool wildcardCommand, int32 result ) argument
H A DPropertyFindMatchTest.h23 const char *prop,
/haiku/src/system/boot/platform/efi/
H A Ddtb.cpp92 write_string_list(const char* prop, size_t size) argument
95 const char* propEnd = prop + size;
96 while (propEnd - prop > 0) {
101 int curLen = strlen(prop);
102 dprintf("'%s'", prop);
103 prop += curLen + 1;
130 for (int prop = fdt_first_property_offset(fdt, node); prop >= 0; prop = fdt_next_property_offset(fdt, prop)) {
242 uint32 *prop; local
326 dtb_has_fdt_string(const char* prop, int size, const char* pattern) argument
383 const uint8* prop = (const uint8*)fdt_getprop(fdt, node, "reg", &propSize); local
456 uint32* prop; local
475 uint32* prop = (uint32*)fdt_getprop(fdt, intc_node, "#interrupt-cells", NULL); local
517 uint32* prop; local
[all...]
H A Ddtb.h20 bool dtb_has_fdt_string(const char* prop, int size, const char* pattern);
/haiku/src/system/boot/platform/efi/arch/riscv64/
H A Darch_dtb.cpp37 if (uint32* prop = (uint32*)fdt_getprop(fdt, node, "boot-hartid", NULL))
38 gBootHart = fdt32_to_cpu(*prop);
40 if (uint32* prop = (uint32*)fdt_getprop(fdt, node, "timebase-frequency", NULL))
41 sTimerFrequency = fdt32_to_cpu(*prop);
84 if (uint32* prop = (uint32*)fdt_getprop(fdt, node, "interrupts-extended", &propSize)) {
87 for (uint32 *it = prop; (uint8_t*)it - (uint8_t*)prop < propSize; it += 2) {
/haiku/src/add-ons/kernel/bus_managers/fdt/
H A Dfdt_module.cpp91 const void* prop; int propLen; local
108 prop = fdt_getprop(gFDT, node, "device_type", &propLen);
109 if (prop != NULL)
110 attrs.Add({ "fdt/device_type", B_STRING_TYPE, { .string = (const char*)prop }});
112 prop = fdt_getprop(gFDT, node, "compatible", &propLen);
114 if (prop != NULL) {
115 const char* propStr = (const char*)prop;
132 prop = fdt_getprop(gFDT, node, "phandle", &propLen);
134 if (prop != NULL)
135 bus->phandles.Put(fdt32_to_cpu(*(uint32_t*)prop), curDe
427 const void* prop = fdt_getprop(gFDT, (int)fdtNode, "reg", &propLen); local
470 uint32* prop; local
490 uint32* prop; local
513 const uint32 *prop = (uint32*)fdt_getprop(gFDT, (int)fdtNode, "interrupts-extended", local
[all...]
/haiku/src/add-ons/kernel/busses/pci/ecam/
H A DECAMPCIControllerFDT.cpp24 const void* prop; local
27 prop = fdtModule->get_prop(fdtDev, "bus-range", &propLen);
28 if (prop != NULL && propLen == 8) {
29 uint32 busBeg = B_BENDIAN_TO_HOST_INT32(*((uint32*)prop + 0));
30 uint32 busEnd = B_BENDIAN_TO_HOST_INT32(*((uint32*)prop + 1));
34 prop = fdtModule->get_prop(fdtDev, "ranges", &propLen);
35 if (prop == NULL) {
40 for (uint32_t *it = (uint32_t*)prop; (uint8_t*)it - (uint8_t*)prop < propLen; it += 7) {
/haiku/headers/private/kernel/arch/m68k/
H A Dstage2_priv.h21 int of_getprop(int handle, const char *prop, void *buf, int buf_len);
22 int of_setprop(int handle, const char *prop, const void *buf, int buf_len);
/haiku/headers/private/kernel/arch/ppc/
H A Dstage2_priv.h21 int of_getprop(int handle, const char *prop, void *buf, int buf_len);
22 int of_setprop(int handle, const char *prop, const void *buf, int buf_len);
/haiku/src/servers/notification/
H A DNotificationServer.cpp92 BMessage* spec, int32 from, const char* prop)
96 if (strcmp(prop, "message") == 0) {
102 return BApplication::ResolveSpecifier(msg, index, spec, from, prop);
91 ResolveSpecifier(BMessage* msg, int32 index, BMessage* spec, int32 from, const char* prop) argument
H A DNotificationServer.h26 const char* prop);
/haiku/src/system/boot/platform/u-boot/
H A Dstart.cpp240 const void *prop; local
245 prop = fdt_getprop(gFDT, node, "linux,initrd-start", &len);
246 if (prop && len == 4)
247 initrd_start = fdt32_to_cpu(*(uint32_t *)prop);
248 prop = fdt_getprop(gFDT, node, "linux,initrd-end", &len);
249 if (prop && len == 4)
250 initrd_end = fdt32_to_cpu(*(uint32_t *)prop);
324 const void *prop; local
328 prop = fdt_getprop(gFDT, node, "bootargs", &len);
329 if (prop) {
[all...]
/haiku/src/add-ons/kernel/busses/pci/designware/
H A DDWPCIController.cpp141 const void* prop; local
144 prop = fdtModule->get_prop(fdtDev, "bus-range", &propLen);
145 if (prop != NULL && propLen == 8) {
146 uint32 busBeg = B_BENDIAN_TO_HOST_INT32(*((uint32*)prop + 0));
147 uint32 busEnd = B_BENDIAN_TO_HOST_INT32(*((uint32*)prop + 1));
151 prop = fdtModule->get_prop(fdtDev, "interrupt-map-mask", &propLen);
152 if (prop == NULL || propLen != 4 * 4) {
156 fInterruptMapMask.childAdr = B_BENDIAN_TO_HOST_INT32(*((uint32*)prop + 0));
157 fInterruptMapMask.childIrq = B_BENDIAN_TO_HOST_INT32(*((uint32*)prop + 3));
159 prop
[all...]
/haiku/src/servers/print/
H A DTransport.Scripting.cpp83 int32 form, const char* prop)
89 switch (idx=prop_info.FindMatch(msg,0,spec,form,prop)) {
91 rc = Inherited::ResolveSpecifier(msg,index,spec,form,prop);
82 ResolveSpecifier(BMessage* msg, int32 index, BMessage* spec, int32 form, const char* prop) argument
H A DPrinter.Scripting.cpp90 int32 form, const char* prop)
96 switch( idx=prop_info.FindMatch(msg,0,spec,form,prop) ) {
98 rc = Inherited::ResolveSpecifier(msg,index,spec,form,prop);
89 ResolveSpecifier(BMessage* msg, int32 index, BMessage* spec, int32 form, const char* prop) argument
H A DTransport.h44 int32 form, const char* prop);
/haiku/headers/os/app/
H A DPropertyInfo.h57 BPropertyInfo(property_info* prop = NULL,
64 const char* prop, void* data = NULL) const;

Completed in 337 milliseconds

12