/haiku/src/add-ons/kernel/drivers/misc/ |
H A D | kdl.c | 110 driver_control(void *cookie, uint32 op, void *arg, size_t len) argument
|
/haiku/src/system/kernel/arch/arm/ |
H A D | arch_cpu.cpp | 69 arch_cpu_sync_icache(void *address, size_t len) argument
|
/haiku/src/libs/bsd/ |
H A D | arc4random.c | 176 _rs_stir_if_needed(size_t len) argument 179 if (!rs || rs->rs_count <= len) 181 if (rs->rs_count <= len) 184 rs->rs_count -= len;
|
/haiku/src/add-ons/kernel/drivers/audio/cmedia/ |
H A D | mixer.c | 17 static status_t mixer_control(void *cookie, uint32 op, void *data, size_t len); 18 static status_t mixer_read(void *cookie, off_t pos, void *data, size_t *len); 19 static status_t mixer_write(void *cookie, off_t pos, const void *data, size_t *len); 259 size_t len) 255 mixer_control( void * cookie, uint32 iop, void * data, size_t len) argument
|
/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi2200/dev/iwi/ |
H A D | if_iwireg.h | 201 uint16_t len; member in struct:iwi_notif 321 uint16_t len; member in struct:iwi_frame 334 uint16_t len; member in struct:iwi_tx_desc 384 uint8_t len; member in struct:iwi_cmd_desc 533 uint8_t len; member in struct:iwi_wep_key 617 #define MEM_WRITE_MULTI_1(sc, addr, buf, len) do { \ 619 CSR_WRITE_MULTI_1((sc), IWI_CSR_INDIRECT_DATA, (buf), (len)); \
|
/haiku/src/add-ons/kernel/drivers/graphics/3dfx/ |
H A D | driver.cpp | 85 static status_t device_read(void* dev, off_t pos, void* buf, size_t* len); 87 size_t* len); 88 static status_t device_ioctl(void* dev, uint32 msg, void* buf, size_t len); 435 device_read(void* dev, off_t pos, void* buf, size_t* len) argument 442 *len = 0; 448 device_write(void* dev, off_t pos, const void* buf, size_t* len) argument 455 *len = 0;
|
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ |
H A D | ah_eeprom_v14.c | 341 u_int w, off, len; local 396 len = __bswap16(ee->ee_base.baseEepHeader.length); 398 len = ee->ee_base.baseEepHeader.length; 400 len = AH_MIN(len, sizeof(struct ar5416eeprom)) / sizeof(uint16_t); 410 for (w = 0; w < len; w++) 415 "Bad EEPROM checksum 0x%x (Len=%u)\n", sum, len);
|
H A D | ah_eeprom_9287.c | 298 u_int w, off, len; local 356 len = __bswap16(ee->ee_base.baseEepHeader.length); 358 len = ee->ee_base.baseEepHeader.length; 360 len = AH_MIN(len, sizeof(HAL_EEPROM_9287)) / sizeof(uint16_t); 370 for (w = 0; w < len; w++) 375 "Bad EEPROM checksum 0x%x (Len=%u)\n", sum, len);
|
H A D | ah_eeprom_v4k.c | 288 u_int w, off, len; local 345 len = __bswap16(ee->ee_base.baseEepHeader.length); 347 len = ee->ee_base.baseEepHeader.length; 349 len = AH_MIN(len, sizeof(struct ar5416eeprom_4k)) / sizeof(uint16_t); 359 for (w = 0; w < len; w++) { 365 "Bad EEPROM checksum 0x%x (Len=%u)\n", sum, len);
|
/haiku/headers/libs/libfdt/ |
H A D | libfdt.h | 1240 * @len: length of the property value 1253 int len); 1262 * @len: length of the property value 1265 * the data in val, of length len. This function cannot change the 1266 * size of a property, and so will only work if len is equal to the 1275 * -FDT_ERR_NOSPACE, if len is not equal to the property's current length 1286 const void *val, int len); 1472 int fdt_property(void *fdt, const char *name, const void *val, int len); 1496 * @len: length of property value in bytes 1504 int fdt_property_placeholder(void *fdt, const char *name, int len, voi [all...] |
/haiku/src/libs/agg/src/dbg_new/ |
H A D | agg_dbg_new.cpp | 134 int len = strlen(file); local 135 if(len > 511) len = 511; 136 ::memcpy(dbg_new_info[dbg_new_level].file_name, file, len); 137 dbg_new_info[dbg_new_level].file_name[len] = 0; 265 unsigned len = 0; local 268 for (len += nr, p = buf; nr--; ++p)
|
/haiku/src/bin/pc/ |
H A D | pc.c | 255 int i, len; local 259 for(i=1, len=0; i < argc; i++) 260 len += strlen(argv[i]); 261 len++; 263 buff = malloc(len*sizeof(char)); 856 "long (max len == %ld bytes)\n", sizeof(LONG)); 1064 int i, len=DEFAULT_LEN; local 1070 buff = (char *)malloc(len*sizeof(char)); 1080 if (i >= len-1) 1082 len * [all...] |
/haiku/src/kits/mail/ |
H A D | MailComponent.cpp | 700 int32 len = this->text.Length(); local 701 if (len > 0) { 702 int32 dest_len = len * 5; 709 mail_convert_from_utf8(charset, this->text.String(), &len, raw, 716 len = encode_base64(raw, alt.String(), alt.Length(), false); 717 raw[len] = 0; 720 len = encode_qp(raw, alt.String(), alt.Length(), false); 721 raw[len] = 0; 726 len = alt.Length(); 729 modified.UnlockBuffer(len); [all...] |
H A D | mail_util.cpp | 832 ssize_t len = buflen && *buflen ? *buflen : 0; local 840 if (buf == NULL || cnt + 2 >= len) { 841 char *temp = (char *)realloc(buf, len + 64); 847 len += 64; 906 *buflen = len; 915 ssize_t len = buflen && *buflen ? *buflen : 0; local 924 if (buf == NULL || cnt + 2 >= len) { 925 char *temp = (char *)realloc(buf, len + 64); 931 len += 64; 994 *buflen = len; 1003 ssize_t len = buflen && *buflen ? *buflen : 0; local [all...] |
/haiku/src/libs/compat/freebsd_wlan/net80211/ |
H A D | ieee80211_haiku.cpp | 73 #define MC_ALIGN(m, len) \ 75 (m)->m_data += (MCLBYTES - (len)) &~ (sizeof(long) - 1);\ 283 u_int len; local 289 len = roundup2(headroom + pktlen, 4); 290 KASSERT(len <= MCLBYTES, ("802.11 mgt frame too large: %u", len)); 291 if (len < MINCLSIZE) { 300 M_ALIGN(m, len); 304 MC_ALIGN(m, len); 440 pktlen = m->m_pkthdr.len; [all...] |
/haiku/src/add-ons/kernel/file_systems/xfs/ |
H A D | Node.cpp | 38 int len = fInode->DataExtentsCount(); local 40 for (int i = 0; i < len; i++) { 122 ssize_t len = fInode->DirBlockSize(); 124 blockBuffer = new(std::nothrow) char[len]; 132 if (read_pos(fInode->GetVolume()->Device(), readPos, blockBuffer, len) 133 != len) { 228 NodeDirectory::EntrySize(int len) const 230 int entrySize = sizeof(xfs_ino_t) + sizeof(uint8) + len + sizeof(uint16); 243 int len = fInode->DataExtentsCount(); local 245 for (int i = 0; i <= len [all...] |
/haiku/src/apps/aboutsystem/ |
H A D | Utilities.cpp | 25 trim_string(const char* string, size_t len) argument 31 while (i < len) { 33 while (i < len && isspace(string[i])) 37 if (i < len && !isspace(string[i])) { 45 while (i < len && !isspace(string[i]))
|
/haiku/src/apps/serialconnect/libvterm/src/ |
H A D | state.c | 201 static int on_text(const char bytes[], size_t len, void *user) argument 207 // We'll have at most len codepoints 208 uint32_t codepoints[len]; 220 codepoints, &npoints, state->gsingle_set ? 1 : len, 221 bytes, &eaten, len); 457 char utf8[18]; size_t len = 0; local 462 len += fill_utf8((code | modifiers) + 0x20, utf8 + len); 463 len += fill_utf8(col + 0x21, utf8 + len); 539 settermprop_string(VTermState *state, VTermProp prop, const char *str, size_t len) argument 575 on_escape(const char *bytes, size_t len, void *user) argument [all...] |
/haiku/src/kits/interface/textview_support/ |
H A D | UndoBuffer.cpp | 271 int32 len = fTypedEnd - fTypedStart; local 274 fTypedText = (char*)malloc(len); 275 memcpy(fTypedText, fTextView->Text() + fTypedStart, len); 296 BTextView::TypingUndoBuffer::InputCharacter(int32 len) argument 304 fTypedEnd += len;
|
/haiku/src/libs/compat/freebsd_network/compat/dev/usb/ |
H A D | usbdi.h | 363 void *ptr, usb_frlength_t len); 365 usb_frlength_t len); 371 usb_frlength_t len); 373 const void *ptr, usb_frlength_t len); 375 void *ptr, usb_frlength_t len);
|
/haiku/src/libs/libtelnet/ |
H A D | kerberos.c | 412 #define BUMP(buf, len) while (*(buf)) {++(buf), --(len);} 413 #define ADDC(buf, len, c) if ((len) > 0) {*(buf)++ = (c); --(len);}
|
/haiku/src/system/boot/platform/efi/ |
H A D | dtb.cpp | 131 int len; local 132 const struct fdt_property *property = fdt_get_property_by_offset(fdt, prop, &len); 136 dprintf("getting prop at %d: %s\n", prop, fdt_strerror(len)); 158 write_string_list((const char*)property->data, fdt32_to_cpu(property->len)); 160 for (uint64_t *it = (uint64_t*)property->data; (uint8_t*)it - (uint8_t*)property->data < fdt32_to_cpu(property->len); it += 2) { 189 for (uint32_t *it = (uint32_t*)property->data; (uint8_t*)it - (uint8_t*)property->data < fdt32_to_cpu(property->len); it += 2) { 204 for (uint32_t *it = (uint32_t*)property->data; (uint8_t*)it - (uint8_t*)property->data < fdt32_to_cpu(property->len); it += 7) { 214 dprintf(" (0x%08" PRIx32 "), child: 0x%08" PRIx64 ", parent: 0x%08" PRIx64 ", len: 0x%08" PRIx64 "\n", 226 for (uint32_t *it = (uint32_t*)property->data; (uint8_t*)it - (uint8_t*)property->data < fdt32_to_cpu(property->len); it++) { 253 while ((uint8_t*)it - (uint8_t*)property->data < fdt32_to_cpu(property->len)) { 518 int len = 0; local 583 int len; local [all...] |
/haiku/src/libs/compat/openbsd_wlan/net80211/ |
H A D | ieee80211_output.c | 136 if (m->m_pkthdr.len < sizeof(struct ieee80211_frame_min)) 761 ieee80211_add_ssid(u_int8_t *frm, const u_int8_t *ssid, u_int len) argument 764 *frm++ = len; 765 memcpy(frm, ssid, len); 766 return frm + len; 804 u_int i, offset = 0, len; local 816 len = i - offset + 1; 819 *frm++ = len + 3; /* length */ 831 memcpy(frm, &ic->ic_tim_bitmap[offset], len); 832 return frm + len; [all...] |
/haiku/src/tools/fs_shell/ |
H A D | fssh.cpp | 471 int len = strlen(path); local 472 while (len > 0 && path[len - 1] == '/') 473 len--; 476 while (len > 0 && path[len - 1] != '/') 477 len--; 480 while (len > 0 && path[len - 1] == '/') 481 len 892 int len = strlen(target) + 1 + strlen(leaf); local 1484 int len = argVector[i].length(); local [all...] |
/haiku/src/system/libroot/posix/glibc/extensions/ |
H A D | getopt.c | 352 int len = middle - bottom; 356 for (i = 0; i < len; i++) 364 top -= len; 369 int len = top - middle; 373 for (i = 0; i < len; i++) 381 bottom += len; 441 int len = nonoption_flags_max_len = strlen (orig_str); 449 memset (__mempcpy (__getopt_nonoption_flags, orig_str, len), 450 '\0', nonoption_flags_max_len - len); 349 int len = middle - bottom; local 366 int len = top - middle; local 438 int len = nonoption_flags_max_len = strlen (orig_str); local
|