Searched refs:val (Results 26 - 50 of 467) sorted by last modified time

1234567891011>>

/haiku/headers/os/drivers/
H A DACPI.h298 status_t (*read_bit_register)(uint32 regid, uint32 *val);
299 status_t (*write_bit_register)(uint32 regid, uint32 val);
/haiku/src/add-ons/kernel/bus_managers/acpi/acpica/include/
H A Dacmacros.h169 #define ACPI_SET8(ptr, val) (*ACPI_CAST8 (ptr) = (UINT8) (val))
170 #define ACPI_SET16(ptr, val) (*ACPI_CAST16 (ptr) = (UINT16) (val))
171 #define ACPI_SET32(ptr, val) (*ACPI_CAST32 (ptr) = (UINT32) (val))
172 #define ACPI_SET64(ptr, val) (*ACPI_CAST64 (ptr) = (UINT64) (val))
/haiku/src/add-ons/kernel/bus_managers/ps2/
H A Dps2_dev.cpp520 uint8 val; local
524 val = (cmd >> 6) & 3;
525 if (ps2_dev_command(dev, PS2_CMD_MOUSE_SET_RES, &val, 1) != B_OK)
528 val = (cmd >> 4) & 3;
529 if (ps2_dev_command(dev, PS2_CMD_MOUSE_SET_RES, &val, 1) != B_OK)
532 val = (cmd >> 2) & 3;
533 if (ps2_dev_command(dev, PS2_CMD_MOUSE_SET_RES, &val, 1) != B_OK)
536 val = cmd & 3;
537 if (ps2_dev_command(dev, PS2_CMD_MOUSE_SET_RES, &val, 1) != B_OK)
/haiku/src/system/kernel/arch/riscv64/
H A Darch_vm.cpp156 pte[i].val & 0xff);
172 satp.val = Satp();
182 satp.val = ((RISCV64VMTranslationMap*)
195 satp.val = ((RISCV64VMTranslationMap*)
207 kprintf("satp: %#" B_PRIx64 "\n", satp.val);
220 dumper.Write(base, pte->ppn * B_PAGE_SIZE, B_PAGE_SIZE, pte->val & 0xff);
234 satp.val = Satp();
244 satp.val = ((RISCV64VMTranslationMap*)
252 kprintf("satp: %#" B_PRIx64 "\n", satp.val);
267 dumper.Write(virt, pte->ppn * B_PAGE_SIZE, B_PAGE_SIZE, pte->val
[all...]
H A Darch_vm_translation_map.cpp63 pte->val = newPte.val;
87 newPte.val |= flags;
89 pte->val = newPte.val;
133 sPageTable = SatpReg{.val = Satp()}.ppn * B_PAGE_SIZE;
174 Map(virtAdr, physAdr, flags.val, args, get_free_page);
H A DRISCV64VMTranslationMap.h130 return satp.val;
H A DRISCV64VMTranslationMap.cpp765 return pteFlags.val;
828 oldPte.val = ((std::atomic<uint64>*)pte)->fetch_and(
829 ~Pte {.isAccessed = true, .isDirty = true}.val);
836 oldPte.val = ((std::atomic<uint64>*)pte)->fetch_and(
837 ~Pte {.isAccessed = true, .isDirty = true}.val);
H A Darch_debug.cpp251 uint64 val; local
252 if (arch_debug_memcpy(&val, adr++, sizeof(val)) < B_OK) {
255 dprintf(" %016" B_PRIx64, val);
H A Darch_thread.cpp127 SstatusReg status{.val = Sstatus()};
131 frame.status = status.val;
353 SstatusReg status{.val = Sstatus()};
356 arg->frame.status = status.val;
/haiku/src/system/boot/platform/riscv/
H A Dmmu.cpp154 pte->val = newPte.val;
178 newPte.val |= flags;
180 pte->val = newPte.val;
237 pte->val = newPte.val;
258 Pte {.isRead = true, .isWrite = true}.val);
262 Pte {.isRead = true, .isWrite = true, .isExec = true}.val);
272 MapRange(region->virtAdr, region->physAdr, region->size, flags.val);
[all...]
/haiku/headers/private/system/arch/riscv64/
H A Darch_cpu_defs.h51 uint64 val; member in union:MstatusReg
72 uint64 val; member in union:SstatusReg
142 uint64 val; member in union:Pte
159 uint64 val; member in union:SatpReg
/haiku/src/system/kernel/posix/
H A Dxsi_semaphore.cpp844 if (args.val > USHRT_MAX) {
845 TRACE(("xsi_semctl: value %d out of range\n", args.val));
848 semaphore->SetValue(args.val);
/haiku/src/system/libnetwork/netresolv/dst/
H A Dsupport.c194 * val 16 bit integer.
198 dst_s_put_int16(u_int8_t *buf, const u_int16_t val) argument
200 buf[0] = (u_int8_t)((uint32_t)val >> 8);
201 buf[1] = (u_int8_t)(val);
212 * val 32 bit integer.
216 dst_s_put_int32(u_int8_t *buf, const u_int32_t val) argument
218 buf[0] = (u_int8_t)(val >> 24);
219 buf[1] = (u_int8_t)(val >> 16);
220 buf[2] = (u_int8_t)(val >> 8);
221 buf[3] = (u_int8_t)(val);
[all...]
H A Ddst_api.c712 u_int16_t val; local
724 val = (u_int16_t)(key->dk_flags & 0xffff);
725 dst_s_put_int16(out_storage, val);
732 val = (u_int16_t)((key->dk_flags >> 16) & 0xffff);
733 dst_s_put_int16(&out_storage[loc], val);
H A Ddst_internal.h147 void dst_s_put_int16( u_int8_t *buf, const u_int16_t val);
150 void dst_s_put_int32( u_int8_t *buf, const u_int32_t val);
/haiku/src/system/kernel/util/
H A Dinet_addr.c83 struct in_addr val; local
85 if (inet_aton(cp, &val))
86 return (val.s_addr);
99 u_long val; local
115 val = 0; base = 10; digit = 0;
129 val = (val * base) + (c - '0');
134 val = (val << 4) |
148 if (pp >= parts + 3 || val >
[all...]
/haiku/src/libs/bsd/
H A Darc4random.c235 _rs_random_u32(uint32_t *val) argument
239 _rs_stir_if_needed(sizeof(*val));
240 if (rs->rs_have < sizeof(*val))
243 memcpy(val, keystream, sizeof(*val));
244 memset(keystream, 0, sizeof(*val));
245 rs->rs_have -= sizeof(*val);
251 uint32_t val; local
254 _rs_random_u32(&val);
256 return val;
[all...]
/haiku/src/apps/cortex/NodeManager/
H A DNodeRef.cpp1298 int32 val; local
1299 err = message->FindInt32("be:value", &val);
1305 cycling = val;
/haiku/src/add-ons/kernel/drivers/audio/ac97/
H A Dac97.c499 uint16 val; local
501 val = ac97_reg_cached_read(dev, AC97_RESET);
502 if (val & 0x0001)
504 if (val & 0x0004)
506 if (val & 0x0008)
508 if (val & 0x0010)
510 if (val & 0x0020)
512 if (val & 0x0040)
514 if (val & 0x0080)
516 if (val
952 uint16 val; local
[all...]
/haiku/src/add-ons/translators/psd/
H A DPSDLoader.cpp240 int8 val = (int8)fStreamBuffer[fStreamPos++]; local
245 *ptr++ = val;
/haiku/src/add-ons/kernel/busses/virtio/virtio_mmio/
H A DVirtioDevice.cpp19 SetLowHi(vuint32 &low, vuint32 &hi, uint64 val) argument
21 low = (uint32)val;
22 hi = (uint32)(val >> 32);
/haiku/src/add-ons/kernel/busses/ata/highpoint_ide_pci/
H A Dhighpoint_ide_pci.cpp83 write_device_control(void *channel_cookie, uint8 val) argument
88 (ata_adapter_channel_info *)channel_cookie, val);
/haiku/src/kits/app/
H A DMessage.cpp2441 BMessage::Add##typeName(const char* name, type val) \
2443 return AddData(name, typeCode, &val, sizeof(type), true); \
2532 type val = initialize; \
2533 Find##typeName(name, index, &val); \
2534 return val; \
/haiku/src/build/libbe/app/
H A DMessage.cpp1628 BMessage::Add##typeName(const char *name, type val) \
1630 return AddData(name, typeCode, &val, sizeof(type), true); \
1666 BMessage::Replace##typeName(const char *name, type val) \
1668 return ReplaceData(name, typeCode, 0, &val, sizeof(type)); \
1672 BMessage::Replace##typeName(const char *name, int32 index, type val) \
1674 return ReplaceData(name, typeCode, index, &val, sizeof(type)); \
1718 type val = initialize; \
1719 Find##typeName(name, index, &val); \
1720 return val; \
/haiku/src/add-ons/kernel/file_systems/iso9660/
H A Diso9660.cpp83 int val;\
84 val = ((B_BENDIAN_TO_HOST_INT16(uni_str[0])-0xd7c0)<<10) | (B_BENDIAN_TO_HOST_INT16(uni_str[1])&0x3ff);\
85 str[0] = 0xf0 | (val>>18);\
86 str[1] = 0x80 | ((val>>12)&0x3f);\
87 str[2] = 0x80 | ((val>>6)&0x3f);\
88 str[3] = 0x80 | (val&0x3f);\

Completed in 147 milliseconds

1234567891011>>