Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 25 of 51) sorted by relevance

123

/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/
H A Dah_eeprom_v1.c117 int i, loc; in ath_hal_v1EepromAttach() local
201 …for (i = 0, loc = AR_EEPROM_ATHEROS_TP_SETTINGS; i < AR_CHANNELS_MAX; i++, loc += AR_TP_SETTINGS_S… in ath_hal_v1EepromAttach()
205 chan->pcdac[0] = (athvals[loc] >> 10) & 0x3F; in ath_hal_v1EepromAttach()
206 chan->gainF[0] = (athvals[loc] >> 4) & 0x3F; in ath_hal_v1EepromAttach()
207 chan->pcdac[1] = ((athvals[loc] << 2) & 0x3C) in ath_hal_v1EepromAttach()
208 | ((athvals[loc+1] >> 14) & 0x03); in ath_hal_v1EepromAttach()
209 chan->gainF[1] = (athvals[loc+1] >> 8) & 0x3F; in ath_hal_v1EepromAttach()
210 chan->pcdac[2] = (athvals[loc+1] >> 2) & 0x3F; in ath_hal_v1EepromAttach()
211 chan->gainF[2] = ((athvals[loc+1] << 4) & 0x30) in ath_hal_v1EepromAttach()
212 | ((athvals[loc+2] >> 12) & 0x0F); in ath_hal_v1EepromAttach()
[all …]
/haiku/src/tests/kits/locale/
H A DICUTest.cpp20 void TestLocale(const Locale& loc) in TestLocale() argument
23 assert(!loc.isBogus()); in TestLocale()
26 "Country: %s\nName: %s\nBaseName: %s\n", loc.getLanguage(), in TestLocale()
27 loc.getScript(), loc.getVariant(), in TestLocale()
28 loc.getCountry(), loc.getName(), in TestLocale()
29 loc.getBaseName()); in TestLocale()
33 StringEnumeration* keywords = loc.createKeywords(err); in TestLocale()
44 loc.getKeywordValue(keyname, keyvalue, 256, err); in TestLocale()
/haiku/src/add-ons/kernel/file_systems/fat/
H A Dvcache.cpp86 ino_t loc; /* where the file is now */ member
107 kprintf("%19" B_PRIdINO " %16" B_PRIdINO " %p\n", c->vnid, c->loc, c->node); in dump_vcache()
114 kprintf("%19" B_PRIdINO " %16" B_PRIdINO "\n", c->vnid, c->loc); in dump_vcache()
207 _add_to_vcache_(mount* vol, ino_t vnid, ino_t loc) in _add_to_vcache_() argument
209 int hash1 = hash(vnid), hash2 = hash(loc); in _add_to_vcache_()
212 FUNCTION_START("%" B_PRIdINO "/%" B_PRIdINO "\n", vnid, loc); in _add_to_vcache_()
218 e->vnid = vnid; e->loc = loc; e->constructed = false; e->next_vnid = NULL; e->next_loc = NULL; in _add_to_vcache_()
224 ASSERT(vnid != c->vnid); ASSERT(loc != c->loc); in _add_to_vcache_()
238 if (loc < c->loc) in _add_to_vcache_()
240 ASSERT(vnid != c->vnid); ASSERT(loc != c->loc); in _add_to_vcache_()
[all …]
H A Dvcache.h22 status_t add_to_vcache(mount* vol, ino_t vnid, ino_t loc);
24 status_t vcache_vnid_to_loc(mount* vol, ino_t vnid, ino_t* loc);
25 status_t vcache_loc_to_vnid(mount* vol, ino_t loc, ino_t* vnid);
27 status_t vcache_set_entry(mount* vol, ino_t vnid, ino_t loc);
35 #define find_loc_in_vcache(vol,loc) vcache_loc_to_vnid(vol,loc,NULL) argument
/haiku/src/apps/processcontroller/
H A DIconMenuItem.cpp57 BPoint loc = ContentLocation(); in DrawContent() local
58 loc.x += ceilf(be_control_look->DefaultLabelSpacing() * 3.3f); in DrawContent()
59 Menu()->MovePenTo(loc); in DrawContent()
79 BPoint loc = ContentLocation(); in DrawIcon() local
82 loc.y = frame.top + (frame.bottom - frame.top - fIcon->Bounds().Height()) / 2; in DrawIcon()
92 menu->DrawBitmap(fIcon, loc); in DrawIcon()
H A DMemoryBarMenuItem.cpp57 BPoint loc = ContentLocation(); in DrawContent() local
58 loc.x += ceilf(be_control_look->DefaultLabelSpacing() * 3.3f); in DrawContent()
59 Menu()->MovePenTo(loc); in DrawContent()
181 BPoint loc(rect.left - kMargin - gMemoryTextWidth / 2 - menu->StringWidth(infos), in DrawBar() local
183 menu->DrawString(infos, loc); in DrawBar()
186 loc.x = rect.left - kMargin - menu->StringWidth(infos); in DrawBar()
187 menu->DrawString(infos, loc); in DrawBar()
H A DKernelMemoryBarMenuItem.cpp143 BPoint loc(cadre.left, cadre.bottom + 1); in DrawBar() local
144 loc.x -= kMargin + gMemoryTextWidth / 2 + menu->StringWidth(infos); in DrawBar()
145 menu->DrawString(infos, loc); in DrawBar()
147 loc.x = cadre.left - kMargin - menu->StringWidth(infos); in DrawBar()
148 menu->DrawString(infos, loc); in DrawBar()
H A DTeamBarMenuItem.cpp61 BPoint loc; in DrawContent() local
69 loc = ContentLocation(); in DrawContent()
70 loc.x += ceilf(be_control_look->DefaultLabelSpacing() * 3.3f); in DrawContent()
71 Menu()->MovePenTo(loc); in DrawContent()
/haiku/headers/private/interface/
H A DTextViewSupportBuffer.h77 T* loc = fBuffer + inAtIndex; in InsertItemsAt() local
78 memmove((void*)(loc + inNumItems), (void*)loc, in InsertItemsAt()
80 memcpy((void*)loc, (void*)inItem, delta); in InsertItemsAt()
97 T* loc = fBuffer + inAtIndex; in RemoveItemsAt() local
98 memmove(loc, loc + inNumItems, in RemoveItemsAt()
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Drunlist.c222 runlist_element *src, int ssize, int loc) in ntfs_rl_append() argument
235 if ((loc + 1) < dsize) in ntfs_rl_append()
236 right = ntfs_rl_are_mergeable(src + ssize - 1, dst + loc + 1); in ntfs_rl_append()
249 __ntfs_rl_merge(src + ssize - 1, dst + loc + 1); in ntfs_rl_append()
252 marker = loc + ssize + 1; in ntfs_rl_append()
255 ntfs_rl_mm(dst, marker, loc + 1 + right, dsize - loc - 1 - right); in ntfs_rl_append()
256 ntfs_rl_mc(dst, loc + 1, src, 0, ssize); in ntfs_rl_append()
259 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; in ntfs_rl_append()
289 runlist_element *src, int ssize, int loc) in ntfs_rl_insert() argument
305 if (loc == 0) in ntfs_rl_insert()
[all …]
/haiku/src/tests/system/libroot/posix/
H A Dtst-swscanf.c6 static int do_test(const char *loc);
42 do_test(const char *loc) in do_test() argument
47 if (setlocale(LC_ALL, loc) == NULL) { in do_test()
48 printf("cannot set locale \"%s\": %m\n", loc); in do_test()
52 printf("\nnew locale: \"%s\"\n", loc); in do_test()
58 if (tests[n].only_C_locale && strcmp(loc, "C") != 0) in do_test()
/haiku/src/apps/deskbar/
H A DBarMenuBar.cpp284 BPoint loc; in MouseMoved() local
286 GetMouse(&loc, &buttons); in MouseMoved()
290 MouseDown(loc); in MouseMoved()
319 BPoint loc; in InitTrackingHook() local
321 GetMouse(&loc, &buttons); in InitTrackingHook()
325 if (fDeskbarMenuItem->Frame().Contains(loc) || both) in InitTrackingHook()
328 if (fAppListMenuItem && (fAppListMenuItem->Frame().Contains(loc) || both)) in InitTrackingHook()
H A DStatusView.cpp1168 BPoint loc = LocationForReplicant(ReplicantCount(), in AcceptAddon() local
1170 message->AddPoint("_pjp_loc", loc); in AcceptAddon()
1184 BPoint loc(fTrayPadding, 0); in LocationForReplicant() local
1187 loc.x += gDragWidth; // move past dragger on left in LocationForReplicant()
1189 loc.y = floorf((fBarView->TabHeight() - fMaxReplicantHeight) / 2) - 1; in LocationForReplicant()
1191 loc.x -= 2; // keeps everything lined up nicely in LocationForReplicant()
1198 loc.y = yOffset; in LocationForReplicant()
1201 loc.y = (fBarView->TeamMenuItemHeight() + 1) in LocationForReplicant()
1208 loc.y + floorf((fMaxReplicantHeight - fTime->fHeight) / 2)); in LocationForReplicant()
1212 for (int32 row = 0; ; loc.y += fMaxReplicantHeight + sIconGap, row++) { in LocationForReplicant()
[all …]
/haiku/src/system/libroot/posix/glibc/stdlib/
H A Dstrtol.c158 # define LOCALE_PARAM , loc
159 # define LOCALE_PARAM_DECL __locale_t loc;
175 # define ISSPACE(Ch) __iswspace_l ((Ch), loc)
176 # define ISALPHA(Ch) __iswalpha_l ((Ch), loc)
177 # define TOUPPER(Ch) __towupper_l ((Ch), loc)
193 # define ISSPACE(Ch) __isspace_l ((Ch), loc)
194 # define ISALPHA(Ch) __isalpha_l ((Ch), loc)
195 # define TOUPPER(Ch) __toupper_l ((Ch), loc)
247 struct locale_data *current = loc->__locales[LC_NUMERIC];
H A Dstrtod.c85 # define LOCALE_PARAM , loc
86 # define LOCALE_PARAM_DECL __locale_t loc;
102 # define ISSPACE(Ch) __iswspace_l ((Ch), loc)
103 # define ISDIGIT(Ch) __iswdigit_l ((Ch), loc)
104 # define ISXDIGIT(Ch) __iswxdigit_l ((Ch), loc)
105 # define TOLOWER(Ch) __towlower_l ((Ch), loc)
106 # define STRNCASECMP(S1, S2, N) __wcsncasecmp_l ((S1), (S2), (N), loc)
107 # define STRTOULL(S, E, B) ____wcstoull_l_internal ((S), (E), (B), 0, loc)
121 # define ISSPACE(Ch) __isspace_l ((Ch), loc)
122 # define ISDIGIT(Ch) __isdigit_l ((Ch), loc)
[all …]
H A Dmonetary.h48 __locale_t loc,
/haiku/src/add-ons/kernel/file_systems/ufs2/
H A Dufs2.h600 #define blkmap(fs, map, loc) \ argument
601 (((map)[(loc) / NBBY] >> ((loc) % NBBY)) & (0xff >> (NBBY - (fs)->fs_frag)))
608 #define blkoff(fs, loc) /* calculates (loc % fs->fs_bsize) */ \ argument
609 ((loc) & (fs)->fs_qbmask)
610 #define fragoff(fs, loc) /* calculates (loc % fs->fs_fsize) */ \ argument
611 ((loc) & (fs)->fs_qfmask)
619 #define lblkno(fs, loc) /* calculates (loc / fs->fs_bsize) */ \ argument
620 ((loc) >> (fs)->fs_bshift)
621 #define numfrags(fs, loc) /* calculates (loc / fs->fs_fsize) */ \ argument
622 ((loc) >> (fs)->fs_fshift)
/haiku/src/system/libroot/posix/musl/time/
H A Dstrftime.c47 const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm *tm, locale_t loc, i… in __strftime_fmt_1() argument
205 fmt = __nl_langinfo_l(item, loc); in __strftime_fmt_1()
210 fmt = __nl_langinfo_l(item, loc); in __strftime_fmt_1()
212 *l = __strftime_l(*s, sizeof *s, fmt, tm, loc); in __strftime_fmt_1()
217 …e_l(char *restrict s, size_t n, const char *restrict f, const struct tm *restrict tm, locale_t loc) in __strftime_l() argument
246 t = __strftime_fmt_1(&buf, &k, *f, tm, loc, pad); in __strftime_l()
H A Dwcsftime.c8 …har_t *restrict s, size_t n, const wchar_t *restrict f, const struct tm *restrict tm, locale_t loc) in __wcsftime_l() argument
39 t_mb = __strftime_fmt_1(&buf, &k, *f, tm, loc, pad); in __wcsftime_l()
H A Dtime_impl.h12 …_l(char *restrict s, size_t n, const char *restrict f, const struct tm *restrict tm, locale_t loc);
/haiku/src/system/libnetwork/netresolv/dst/
H A Ddst_api.c713 int loc = 0; in dst_key_to_dnskey() local
726 loc += 2; in dst_key_to_dnskey()
728 out_storage[loc++] = (u_char) key->dk_proto; in dst_key_to_dnskey()
729 out_storage[loc++] = (u_char) key->dk_alg; in dst_key_to_dnskey()
733 dst_s_put_int16(&out_storage[loc], val); in dst_key_to_dnskey()
734 loc += 2; in dst_key_to_dnskey()
737 return (loc); in dst_key_to_dnskey()
740 (u_char *) &out_storage[loc], in dst_key_to_dnskey()
741 out_len - loc); in dst_key_to_dnskey()
743 return (enc_len + loc); in dst_key_to_dnskey()
/haiku/src/apps/magnify/
H A DMagnify.cpp602 BPoint loc; in GetPrefs() local
624 if (read(ref, &loc, sizeof(BPoint)) != sizeof(BPoint)) in GetPrefs()
666 if (haveLoc && BScreen(B_MAIN_SCREEN_ID).Frame().Contains(loc)) { in GetPrefs()
667 MoveTo(loc); in GetPrefs()
703 BPoint loc = Frame().LeftTop(); in SetPrefs() local
704 write(ref, &loc, sizeof(BPoint)); in SetPrefs()
1632 BPoint loc; in NudgeMouse() local
1635 GetMouse(&loc, &button); in NudgeMouse()
1636 ConvertToScreen(&loc); in NudgeMouse()
1637 loc.x += x; in NudgeMouse()
[all …]
/haiku/src/build/libgnuregex/
H A Dregex.c909 #define STORE_JUMP(op, loc, to) \ argument
910 store_op1 (op, loc, (to) - (loc) - 3)
913 #define STORE_JUMP2(op, loc, to, arg) \ argument
914 store_op2 (op, loc, (to) - (loc) - 3, arg)
917 #define INSERT_JUMP(op, loc, to) \ argument
918 insert_op1 (op, loc, (to) - (loc) - 3, b)
921 #define INSERT_JUMP2(op, loc, to, arg) \ argument
922 insert_op2 (op, loc, (to) - (loc) - 3, arg, b)
2057 store_op1 (op, loc, arg) in store_op1() argument
2059 unsigned char *loc;
[all …]
/haiku/src/kits/tracker/
H A DFSUtils.cpp130 status_t MoveItem(BEntry* entry, BDirectory* destDir, BPoint* loc,
521 BNode* destNode, BPoint* loc) in SetupPoseLocation() argument
524 if (loc == NULL in SetupPoseLocation()
530 loc = &point; in SetupPoseLocation()
534 if (loc != NULL && loc != (BPoint*)-1) { in SetupPoseLocation()
539 FSSetPoseLocation(destParentIno, destNode, *loc); in SetupPoseLocation()
1091 BPoint* loc = (BPoint*)-1; in MoveTask() local
1139 loc = (BPoint*)pointList->ItemAt(i); in MoveTask()
1141 result = MoveEntryToTrash(&sourceEntry, loc, undo); in MoveTask()
1172 loc = (BPoint*)pointList->ItemAt(i); in MoveTask()
[all …]
/haiku/src/libs/libsolv/solv/
H A Dsolvable.c284 char *loc; in solvable_lookup_location() local
307 loc = pool_alloctmpspace(pool, l + strlen(name) + strlen(evr) + strlen(arch) + 7); in solvable_lookup_location()
309 sprintf(loc, "%s/%s-%s.%s.rpm", mediadir, name, evr, arch); in solvable_lookup_location()
311 sprintf(loc, "%s-%s.%s.rpm", name, evr, arch); in solvable_lookup_location()
318 loc = pool_alloctmpspace(pool, l + strlen(mediafile) + 1); in solvable_lookup_location()
320 sprintf(loc, "%s/%s", mediadir, mediafile); in solvable_lookup_location()
322 strcpy(loc, mediafile); in solvable_lookup_location()
324 return loc; in solvable_lookup_location()
330 const char *loc = solvable_lookup_location(s, medianrp); in solvable_get_location() local
333 return loc; in solvable_get_location()

123