Searched refs:prop (Results 1 - 25 of 39) sorted by last modified time

12

/haiku/src/servers/notification/
H A DNotificationView.cpp423 int32 form, const char* prop)
426 if (prop_info.FindMatch(msg, index, spec, form, prop) >= 0) {
431 return BView::ResolveSpecifier(msg, index, spec, form, prop);
422 ResolveSpecifier(BMessage* msg, int32 index, BMessage* spec, int32 form, const char* prop) argument
/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/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/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/apps/showimage/
H A DShowImageView.cpp1450 float prop, range; local
1459 prop = viewLength / bitmapLength;
1460 if (prop > 1.0)
1461 prop = 1.0;
1464 psb->SetProportion(prop);
/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/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/kits/interface/
H A DWindow.cpp788 const char* prop; local
791 if (message->GetCurrentSpecifier(&index, &specifier, &what, &prop) != B_OK)
795 switch (propertyInfo.FindMatch(message, index, &specifier, what, prop)) {
H A DShelf.cpp603 const char *prop; local
605 if (msg->GetCurrentSpecifier(&index, &specifier, &what, &prop) != B_OK)
612 if (strcmp(prop, "Replicant") == 0) {
640 if (err == B_OK && msg->GetCurrentSpecifier(&index, &specifier, &what, &prop) != B_OK) {
648 if (strcmp(prop, "ID") == 0) {
650 } else if (strcmp(prop, "Name") == 0) {
652 } else if (strcmp(prop, "Signature") == 0) {
657 } else if (strcmp(prop, "Suites") == 0) {
670 if (strcmp(prop, "Replicant") == 0) {
/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/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/tools/translation/inspector/
H A DImageView.cpp224 float prop, range; local
229 prop = rctview.Width() / (rctbitmap.Width() + (BORDER_WIDTH * 2));
230 if (prop > 1.0f) prop = 1.0f;
232 psb->SetProportion(prop);
240 prop = rctview.Height() / (rctbitmap.Height() + (BORDER_HEIGHT * 2));
241 if (prop > 1.0f) prop = 1.0f;
243 psb->SetProportion(prop);
/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
/haiku/src/libs/libfdt/
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...]
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_overlay.c565 const void *prop; local
569 prop = fdt_getprop_by_offset(fdto, property, &name,
576 ret = fdt_setprop(fdt, target, name, prop, prop_len);
697 int root_sym, ov_sym, prop, path_len, fragment, target; local
725 fdt_for_each_property_offset(prop, fdto, ov_sym) {
726 path = fdt_getprop_by_offset(fdto, prop, &name, &path_len);
751 /* verify format; safe since "s" lies in \0 terminated 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_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_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_check.c20 const void *prop; local
83 prop = fdt_getprop_by_offset(fdt, offset, &propname,
85 if (!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/kits/app/
H A DHandler.cpp227 const char* prop; local
230 &form, &prop);
236 || (strcmp(prop, "Messenger") == 0)) {
239 } else if (strcmp(prop, "Suites") == 0) {
242 } else if (strcmp(prop, "InternalName") == 0) {
/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

Completed in 123 milliseconds

12