Home
last modified time | relevance | path

Searched refs:fb (Results 1 – 25 of 96) sorted by relevance

1234

/illumos-gate/usr/src/common/ficl/emu/
H A Dgfx_fb.c37 struct framebuffer fb; variable
72 fb.fd = open("/dev/fb", O_RDWR); in gfx_framework_init()
73 if (fb.fd < 0) in gfx_framework_init()
77 if (ioctl(fb.fd, VIS_GETIDENTIFIER, &fb.ident) < 0 || in gfx_framework_init()
78 strcmp(fb.ident.name, "illumos_fb") != 0) { in gfx_framework_init()
79 (void) close(fb.fd); in gfx_framework_init()
80 fb.fd = -1; in gfx_framework_init()
84 if (ioctl(fb.fd, FBIOGATTR, &attr) < 0) { in gfx_framework_init()
85 (void) close(fb.fd); in gfx_framework_init()
86 fb.fd = -1; in gfx_framework_init()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/
H A Dgfxp_bitmap.c111 fbip->xres = softc->console->fb.screen.x; in gfxp_bm_getfb_info()
112 fbip->yres = softc->console->fb.screen.y; in gfxp_bm_getfb_info()
113 fbip->bpp = softc->console->fb.bpp; in gfxp_bm_getfb_info()
114 fbip->depth = softc->console->fb.depth; in gfxp_bm_getfb_info()
150 if (softc->console->fb.fb_size != 0) { in gfxp_bm_detach()
151 gfxp_unmap_kernel_space((gfxp_kva_t)softc->console->fb.fb, in gfxp_bm_detach()
152 softc->console->fb.fb_size); in gfxp_bm_detach()
153 fb_info.fb = NULL; in gfxp_bm_detach()
154 kmem_free(softc->console->fb.shadow_fb, in gfxp_bm_detach()
155 softc->console->fb.fb_size); in gfxp_bm_detach()
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dfastboot.c678 fastboot_file_t *fb = &nk->fi_files[i]; in fastboot_reserve_mem() local
684 if ((fb->fb_pte_list_va = contig_alloc(size, in fastboot_reserve_mem()
688 fb->fb_pte_list_size = size; in fastboot_reserve_mem()
716 fastboot_cksum_file(fastboot_file_t *fb, uchar_t *md5_hash) in fastboot_cksum_file() argument
721 MD5Update(&md5_ctx, (void *)fb->fb_va, fb->fb_size); in fastboot_cksum_file()
729 fastboot_free_file(fastboot_file_t *fb) in fastboot_free_file() argument
733 fsize_roundup = P2ROUNDUP_TYPED(fb->fb_size, PAGESIZE, size_t); in fastboot_free_file()
735 contig_free((void *)fb->fb_va, fsize_roundup); in fastboot_free_file()
736 fb->fb_va = 0; in fastboot_free_file()
737 fb->fb_size = 0; in fastboot_free_file()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Diconv.c260 _win_iconv(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) in _win_iconv() argument
281 memcpy(*tb, *fb, fz); in _win_iconv()
294 …if ((tz = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)*fn, (LPWSTR)*tb, *tn)) && tz <… in _win_iconv()
311 while (!(tz = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)fz, (LPWSTR)*tb, 0))) in _win_iconv()
338 ub = (LPWSTR)*fb; in _win_iconv()
340 else if (!(un = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)*fn, (LPWSTR)*tb, 0))) in _win_iconv()
344 else if (!(un = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)*fn, (LPWSTR)ub, un))) in _win_iconv()
365 while (!(fz = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)bz, (LPWSTR)ub, un))) in _win_iconv()
395 if (ub != (LPWSTR)*fb) in _win_iconv()
399 *fb += fz; in _win_iconv()
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/backend/
H A Dfunction-ptr.c8 void arg(int a, int *p, int (*fb)(unsigned char), int (*fi)(int), int (*fl)(long), int (*fv)(void),…
9 void arg(int a, int *p, int (*fb)(unsigned char), int (*fi)(int), int (*fl)(long), int (*fv)(void),… in arg()
13 fb(a); in arg()
16 fb(123); in arg()
19 fb(123L); in arg()
22 fb(ival); in arg()
47 extern int (*fb)(unsigned char);
61 fb(a); in glb()
64 fb(123); in glb()
67 fb(123L); in glb()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/
H A Dfx_fire.c46 #define FAB_FIRE_PEC_BIT(fb) "ereport.io." PCIEX_FIRE "." FIRE_PEC_ ## fb argument
47 #define FAB_FIRE_DMC_BIT(fb) "ereport.io." PCIEX_FIRE "." FIRE_DMC_ ## fb argument
48 #define FAB_N2_DMU_BIT(fb) "ereport.io.n2.dmu." fb argument
49 #define FAB_OB_PEC_BIT(fb) "ereport.io." PCIEX_OBERON "." FIRE_PEC_ ## fb argument
51 #define FAB_FIRE_UE(fb, bit, sts, bdg) \ argument
52 FAB_FIRE_PEC_BIT(fb), PCIE_AER_UCE_ ## bit, sts, bdg
53 #define FAB_OB_UE(fb, bit, sts, bdg) \ argument
54 FAB_OB_PEC_BIT(fb), PCIE_AER_UCE_ ## bit, sts, bdg
72 #define FAB_FIRE_CE(fb, bit) \ argument
73 FAB_FIRE_PEC_BIT(fb), PCIE_AER_CE_ ## bit, 0, 0
[all …]
/illumos-gate/usr/src/cmd/svc/milestone/
H A Ddevices-local61 if [ -h /dev/fb ]; then
62 fblink=`ls -l /dev/fb | /usr/bin/awk '{ print $11 }'`
65 rm -f /dev/fb
66 ln -s $1 /dev/fb
69 rm -f /dev/fb
70 ln -s $1 /dev/fb
/illumos-gate/usr/src/cmd/refer/
H A Dinv6.c21 whash(FILE *ft, FILE *fa, FILE *fb, int nhash, int iflong, in whash() argument
47 if (iflong) putl(-1L, fb); in whash()
48 else putw(-1, fb); in whash()
60 putl(opoint = point, fb); in whash()
62 putw((int)(opoint = point), fb); in whash()
67 if (iflong) putl(-1L, fb); in whash()
68 else putw(-1, fb); in whash()
H A Dinv1.c39 FILE *fa, *fb, *fc, *fta, *ftb, *ftc; in main() local
111 fb = 0; in main()
113 if (fb = fopen(nmb, "r")) { in main()
118 nhash = recopy(ftb, fb, fopen(nma, "r")); in main()
149 fb = fopen(nmb, "w"); in main()
150 whash(fta, fa, fb, nhash, iflong, &keys, &hashes); in main()
H A Dhunt1.c57 static FILE *fa, *fb, *fc; in main() local
153 fclose(fb); in main()
161 fb = NULL; in main()
164 fb = fopen(nmb, "r"); in main()
167 if (fb == NULL || fc == NULL) { in main()
171 indexdate = gdate(fb); in main()
202 if (fb != NULL) { in main()
203 nfound = doquery(hpt, nhash, fb, nitem, qitem, master); in main()
H A Dhunt2.c35 doquery(long *hpt, int nhash, FILE *fb, int nitem, in doquery() argument
99 assert(fb != NULL); in doquery()
100 assert(fseek(fb, lp, 0) != -1); in doquery()
103 master.b[i] = getl(fb); in doquery()
105 master.a[i] = getw(fb); in doquery()
135 assert(fseek(fb, lp, 0) != -1); in doquery()
143 k = getl(fb); in doquery()
145 k = getw(fb); in doquery()
293 getl(FILE *fb) in getl() argument
295 return (getw(fb)); in getl()
H A Dinv5.c21 recopy(FILE *ft, FILE *fb, FILE *fa, int nhash) in recopy() argument
56 fseek(fb, lp, 0); in recopy()
57 while ((k = (*getfun)(fb)) != -1) in recopy()
60 fclose(fb); in recopy()
H A Dhunt8.c38 FILE *fa, *fb; in makefgrep() local
45 fb = iopen(indexname, ""); in makefgrep()
46 if (gdate(fb) > gdate(fa)) { in makefgrep()
54 unopen(fb); in makefgrep()
H A Dglue1.c61 static FILE *fa, *fb, *fc; in huntmain() local
146 unopen(fb); in huntmain()
154 fb = iopen(indexname, ".ib"); in huntmain()
158 fprintf(stderr, "opened f's as %o %o %o\n", fa, fb, fc); in huntmain()
160 indexdate = gdate(fb); in huntmain()
243 fprintf(stderr, "approaching doquery fb %o\n", fb); in huntmain()
245 nfound = doquery(hpt, nhash, fb, nitem, qitem, masterp); in huntmain()
/illumos-gate/usr/src/lib/libc/port/fp/
H A D__flt_decim.c268 __ieee_flags_type fb; in __fast_double_to_decimal() local
277 __get_ieee_flags(&fb); in __fast_double_to_decimal()
292 __set_ieee_flags(&fb); in __fast_double_to_decimal()
298 __set_ieee_flags(&fb); in __fast_double_to_decimal()
316 __get_ieee_flags(&fb); in __fast_double_to_decimal()
345 __set_ieee_flags(&fb); in __fast_double_to_decimal()
358 __set_ieee_flags(&fb); in __fast_double_to_decimal()
371 __set_ieee_flags(&fb); in __fast_double_to_decimal()
388 __set_ieee_flags(&fb); in __fast_double_to_decimal()
/illumos-gate/usr/src/cmd/mandoc/
H A Dread.c435 read_whole_file(struct mparse *curp, int fd, struct buf *fb, int *with_mmap) in read_whole_file() argument
461 fb->sz = (size_t)st.st_size; in read_whole_file()
462 fb->buf = mmap(NULL, fb->sz, PROT_READ, MAP_SHARED, fd, 0); in read_whole_file()
463 if (fb->buf != MAP_FAILED) in read_whole_file()
497 fb->sz = 0; in read_whole_file()
498 fb->buf = NULL; in read_whole_file()
500 if (off == fb->sz) { in read_whole_file()
501 if (fb->sz == (1U << 31)) { in read_whole_file()
505 resize_buf(fb, 65536); in read_whole_file()
508 gzread(gz, fb->buf + (int)off, fb->sz - off) : in read_whole_file()
[all …]
/illumos-gate/usr/src/cmd/sh/
H A Dmain.c459 Ldup(int fa, int fb) in Ldup() argument
463 dup(fa | DUPFLG, fb); in Ldup()
465 ioctl(fb, FIOCLEX, 0); in Ldup()
470 if (fa != fb) { in Ldup()
471 close(fb); in Ldup()
472 fcntl(fa, 0, fb); /* normal dup */ in Ldup()
475 fcntl(fb, 2, 1); /* autoclose for fb */ in Ldup()
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dio.c358 Prom_node *fb; in display_ffb() local
374 for (fb = dev_find_node_by_type(board->nodes, "device_type", "display"); in display_ffb()
375 fb != NULL; in display_ffb()
376 fb = dev_next_node_by_type(fb, "device_type", "display")) { in display_ffb()
377 value = get_prop_val(find_prop(fb, "name")); in display_ffb()
393 card.slot = get_id(fb); in display_ffb()
397 value = get_prop_val(find_prop(fb, "board_type")); in display_ffb()
414 value = get_prop_val(find_prop(fb, in display_ffb()
424 value = get_prop_val(find_prop(fb, "model")); in display_ffb()
441 value = get_prop_val(find_prop(fb, "upa-portid")); in display_ffb()
[all …]
/illumos-gate/usr/src/tools/ndrgen/
H A Dndr_anal.c194 char fb[NDLBUFSZ]; in type_ident_decl1() local
206 type_ident_decl1(tup->up, fb, NDLBUFSZ, ident); in type_ident_decl1()
208 "", ti->type_name->n_sym->name, *fb ? " " : "", fb); in type_ident_decl1()
212 type_ident_decl1(tup->up, fb, NDLBUFSZ, ident); in type_ident_decl1()
214 "struct ", ti->type_name->n_sym->name, *fb ? " " : "", fb); in type_ident_decl1()
218 type_ident_decl1(tup->up, fb, NDLBUFSZ, ident); in type_ident_decl1()
220 "union ", ti->type_name->n_sym->name, *fb ? " " : "", fb); in type_ident_decl1()
229 p = fb; in type_ident_decl1()
233 p = fb; in type_ident_decl1()
246 p = fb; in type_ident_decl1()
[all …]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipfstat.c814 struct frentry fb, *fg; local
820 fb.fr_next = fp;
829 rule.iri_rule = &fb;
907 struct frentry fb, *fg; local
912 fb.fr_next = fp;
918 fp = fb.fr_next;
919 if (kmemcpy((char *)&fb, (u_long)fb.fr_next,
920 sizeof(fb)) == -1) {
926 type = fb.fr_type & ~FR_T_BUILTIN;
928 if (fb.fr_dsize) {
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/hsi/mcp/
H A Dshmem.h631 #define SHMEM_ARRAY_BITPOS(i, eb, fb) \ argument
632 ((((32/(fb)) - 1 - ((i)/((fb)/(eb))) % (32/(fb))) * (fb)) + \
633 (((i)%((fb)/(eb))) * (eb)))
635 #define SHMEM_ARRAY_GET(a, i, eb, fb) \ argument
636 ((a[SHMEM_ARRAY_ENTRY(i, eb)] >> SHMEM_ARRAY_BITPOS(i, eb, fb)) & \
639 #define SHMEM_ARRAY_SET(a, i, eb, fb, val) \ argument
642 SHMEM_ARRAY_BITPOS(i, eb, fb)); \
644 SHMEM_ARRAY_BITPOS(i, eb, fb)); \
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dprintfr.c199 fakebpf_t *fb; local
203 i = fp->fr_dsize / sizeof(*fb);
205 for (fb = fp->fr_data, s = ""; i; i--, fb++, s = " ")
206 printf("%s%#x %#x %#x %#x", s, fb->fb_c, fb->fb_t,
207 fb->fb_f, fb->fb_k);
/illumos-gate/usr/src/test/util-tests/tests/dis/i386/
H A D64.bmi2.out25 libdis_test+0x7a: c4 e3 fb f0 d8 03 rorx $0x3,%rax,%rbx
26 libdis_test+0x80: c4 e3 fb f0 18 03 rorx $0x3,(%rax),%rbx
31 libdis_test+0x9a: c4 e2 fb f7 cb shrx %rax,%rbx,%rcx
32 libdis_test+0x9f: c4 e2 fb f7 0b shrx %rax,(%rbx),%rcx
H A Dtst.random.out3 libdis_test+0x7: 66 0f c7 fb rdseed %bx
4 libdis_test+0xb: 0f c7 fb rdseed %ebx
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dbase64.c51 base64encode(const void* fb, size_t fz, void** fn, void* tb, size_t tz, void** tn) in base64encode() argument
64 fp = fe = (unsigned char*)fb; in base64encode()
162 base64decode(const void* fb, size_t fz, void** fn, void* tb, size_t tz, void** tn) in base64decode() argument
184 fp = (unsigned char*)fb; in base64decode()

1234