Home
last modified time | relevance | path

Searched refs:idesc (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/sbin/fsck_ffs/
H A Ddir.c193 dirscan(struct inodesc *idesc) in dirscan() argument
201 if (idesc->id_type != DATA) in dirscan()
202 errx(EEXIT, "wrong type to dirscan %d", idesc->id_type); in dirscan()
203 if (idesc->id_entryno == 0 && in dirscan()
204 (idesc->id_filesize & (DIRBLKSIZ - 1)) != 0) in dirscan()
205 idesc->id_filesize = roundup(idesc->id_filesize, DIRBLKSIZ); in dirscan()
206 blksiz = idesc->id_numfrags * sblock.fs_fsize; in dirscan()
207 if (chkrange(idesc->id_blkno, idesc in dirscan()
239 fsck_readdir(struct inodesc * idesc) fsck_readdir() argument
311 dircheck(struct inodesc * idesc,struct bufarea * bp,struct direct * dp) dircheck() argument
451 adjust(struct inodesc * idesc,int lcnt) adjust() argument
525 mkentry(struct inodesc * idesc) mkentry() argument
551 chgino(struct inodesc * idesc) chgino() argument
570 struct inodesc idesc; linkup() local
706 struct inodesc idesc; changeino() local
736 struct inodesc idesc; makeentry() local
782 struct inodesc idesc; expanddir() local
[all...]
H A Dinode.c53 static int snapclean(struct inodesc *idesc);
58 ckinode(union dinode *dp, struct inodesc *idesc) in ckinode() argument
68 if (idesc->id_fix != IGNORE) in ckinode()
69 idesc->id_fix = DONTKNOW; in ckinode()
70 idesc->id_dp = dp; in ckinode()
71 idesc->id_lbn = -1; in ckinode()
72 idesc->id_lballoc = -1; in ckinode()
73 idesc->id_level = 0; in ckinode()
74 idesc->id_entryno = 0; in ckinode()
75 idesc->id_filesize = DIP(dp, di_size); in ckinode()
[all …]
H A Dpass2.c278 pass2check(struct inodesc *idesc) in pass2check() argument
280 struct direct *dirp = idesc->id_dirp; in pass2check()
292 if (idesc->id_entryno != 0) in pass2check()
295 if (dirp->d_ino != idesc->id_number) { in pass2check()
296 direrror(idesc->id_number, "BAD INODE NUMBER FOR '.'"); in pass2check()
298 dirp->d_ino = idesc->id_number; in pass2check()
303 direrror(idesc->id_number, "BAD TYPE VALUE FOR '.'"); in pass2check()
311 proto.d_ino = idesc->id_number; in pass2check()
316 direrror(idesc->id_number, "MISSING '.'"); in pass2check()
339 idesc->id_entryno++; in pass2check()
[all …]
H A Dpass1.c57 struct inodesc idesc; in pass1() local
87 memset(&idesc, 0, sizeof(struct inodesc)); in pass1()
88 idesc.id_func = pass1check; in pass1()
183 if (checkinode(inumber, &idesc, rebuiltcg) == 0 && in pass1()
247 checkinode(ino_t inumber, struct inodesc *idesc, int rebuiltcg) in checkinode() argument
398 idesc->id_number = inumber; in checkinode()
403 idesc->id_type = inoinfo(inumber)->ino_idtype; in checkinode()
404 (void)ckinode(dp, idesc); in checkinode()
410 idesc->id_numfrags = numfrags(&sblock, in checkinode()
413 idesc->id_numfrags = sblock.fs_frag; in checkinode()
[all …]
H A Dpass4.c49 struct inodesc idesc; in pass4() local
52 memset(&idesc, 0, sizeof(struct inodesc)); in pass4()
53 idesc.id_func = freeblock; in pass4()
70 idesc.id_number = inumber; in pass4()
71 idesc.id_type = inoinfo(inumber)->ino_idtype; in pass4()
77 clri(&idesc, "UNREF", 1); in pass4()
86 adjust(&idesc, (short)n); in pass4()
92 clri(&idesc, "UNREF", 1); in pass4()
101 clri(&idesc, "ZERO LENGTH", 1); in pass4()
108 clri(&idesc, "BAD/DUP", 1); in pass4()
H A Dpass1b.c49 struct inodesc idesc; in pass1b() local
52 memset(&idesc, 0, sizeof(struct inodesc)); in pass1b()
53 idesc.id_func = pass1bcheck; in pass1b()
78 idesc.id_number = inumber; in pass1b()
79 idesc.id_type = inoinfo(inumber)->ino_idtype; in pass1b()
81 (ckinode(dp, &idesc) & STOP)) { in pass1b()
92 pass1bcheck(struct inodesc *idesc) in pass1bcheck() argument
96 ufs2_daddr_t blkno = idesc->id_blkno; in pass1bcheck()
98 for (nfrags = idesc->id_numfrags; nfrags > 0; blkno++, nfrags--) { in pass1bcheck()
103 blkerror(idesc->id_number, "DUP", blkno); in pass1bcheck()
H A Dpass3.c49 struct inodesc idesc; in pass3() local
105 memset(&idesc, 0, sizeof(struct inodesc)); in pass3()
106 idesc.id_type = DATA; in pass3()
107 idesc.id_number = inp->i_parent; in pass3()
108 idesc.id_parent = orphan; in pass3()
109 idesc.id_func = findname; in pass3()
110 idesc.id_name = namebuf; in pass3()
112 if ((ckinode(ip.i_dp, &idesc) & FOUND) == 0) in pass3()
115 idesc.id_func = clearentry; in pass3()
116 if (ckinode(ip.i_dp, &idesc) & FOUND) in pass3()
H A Dgjournal.c70 struct inodesc idesc; in gjournal_check() local
131 memset(&idesc, 0, sizeof(struct inodesc)); in gjournal_check()
132 idesc.id_type = ADDR; in gjournal_check()
133 idesc.id_func = freeblock; in gjournal_check()
134 idesc.id_number = ino; in gjournal_check()
135 clri(&idesc, "UNREF", 1); in gjournal_check()
H A Dsetup.c277 struct inodesc idesc; in checksnapinfo() local
284 memset(&idesc, 0, sizeof(struct inodesc)); in checksnapinfo()
285 idesc.id_type = ADDR; in checksnapinfo()
286 idesc.id_func = getlbnblkno; in checksnapinfo()
287 idesc.id_number = snapip->i_number; in checksnapinfo()
289 idesc.id_parent = lbn; /* sought after blkno */ in checksnapinfo()
290 if ((ckinode(snapip->i_dp, &idesc) & FOUND) == 0) in checksnapinfo()
294 bp = getdatablk(idesc.id_parent, size, BT_DATA); in checksnapinfo()
353 getlbnblkno(struct inodesc *idesc) in getlbnblkno() argument
356 if (idesc->id_lbn < idesc->id_parent) in getlbnblkno()
[all …]
H A Dfsutil.c1269 struct inodesc idesc; in getpathname() local
1281 memset(&idesc, 0, sizeof(struct inodesc)); in getpathname()
1282 idesc.id_type = DATA; in getpathname()
1283 idesc.id_fix = IGNORE; in getpathname()
1287 idesc.id_parent = curdir; in getpathname()
1291 idesc.id_number = ino; in getpathname()
1292 idesc.id_func = findino; in getpathname()
1293 idesc.id_name = strdup(".."); in getpathname()
1295 if ((ckinode(ip.i_dp, &idesc) & FOUND) == 0) { in getpathname()
1297 free(idesc.id_name); in getpathname()
[all …]
H A Dea.c55 eascan(struct inodesc *idesc, struct ufs2_dinode *dp) in eascan() argument
66 (intmax_t)idesc->id_number, (uintmax_t)dp->di_extsize); in eascan()
H A Dpass5.c60 struct inodesc idesc[3]; in pass5() local
143 memset(&idesc[0], 0, sizeof idesc); in pass5()
145 idesc[i].id_type = ADDR; in pass5()
341 dofix(&idesc[0], "FREE BLK COUNT(S) WRONG IN SUPERBLK")) { in pass5()
352 dofix(&idesc[2], "SUMMARY INFORMATION BAD")) { in pass5()
360 dofix(&idesc[1], "BLK(S) MISSING IN BIT MAPS")) { in pass5()
368 && dofix(&idesc[0], "SUMMARY BLK COUNT(S) WRONG IN SUPERBLK")) { in pass5()
H A Dsuj.c2379 struct inodesc idesc; in suj_check() local
2417 idesc.id_type = DATA; in suj_check()
2418 idesc.id_fix = IGNORE; in suj_check()
2419 idesc.id_number = UFS_ROOTINO; in suj_check()
2420 idesc.id_func = findino; in suj_check()
2421 idesc.id_name = SUJ_FILE; in suj_check()
2433 if ((ckinode(dp, &idesc) & FOUND) == FOUND) { in suj_check()
2434 sujino = idesc.id_parent; in suj_check()
/freebsd/sbin/fsdb/
H A Dfsdb.c456 scannames(struct inodesc *idesc) in scannames() argument
458 struct direct *dirp = idesc->id_dirp; in scannames()
469 struct inodesc idesc; in CMDFUNCSTART() local
474 idesc.id_number = curinum; in CMDFUNCSTART()
475 idesc.id_func = scannames; in CMDFUNCSTART()
476 idesc.id_type = DATA; in CMDFUNCSTART()
477 idesc.id_fix = IGNORE; in CMDFUNCSTART()
478 ckinode(curinode, &idesc); in CMDFUNCSTART()
742 int findino(struct inodesc *idesc); /* from fsck */
748 struct inodesc idesc; in dolookup() local
[all …]
/freebsd/sys/dev/usb/input/
H A Duhid_snes.c540 struct usb_interface_descriptor *idesc; in uhid_snes_attach() local
551 idesc = usbd_get_interface_descriptor(uaa->iface); in uhid_snes_attach()
554 if (idesc == NULL) in uhid_snes_attach()
557 if ((idesc->bDescriptorType == UDESC_INTERFACE) && in uhid_snes_attach()
558 (idesc->bLength >= sizeof(*idesc))) { in uhid_snes_attach()
559 if (idesc->bInterfaceNumber != uaa->info.bIfaceNum) { in uhid_snes_attach()
563 if (idesc->bInterfaceClass == UICLASS_HID) in uhid_snes_attach()
569 idesc = (void *)usb_desc_foreach(cdesc, (void *)idesc); in uhid_snes_attach()
581 sc->sc_iface_num = idesc->bInterfaceNumber; in uhid_snes_attach()
/freebsd/sys/dev/usb/
H A Dusb_hid.c120 if ((iface == NULL) || (iface->idesc == NULL)) { in usbd_req_get_hid_desc()
124 (usbd_get_config_descriptor(udev), iface->idesc); in usbd_req_get_hid_desc()
H A Dusb_request.c1423 if ((iface == NULL) || (iface->idesc == NULL)) in usbd_req_get_alt_interface_no()
1429 req.wIndex[0] = iface->idesc->bInterfaceNumber; in usbd_req_get_alt_interface_no()
1450 if ((iface == NULL) || (iface->idesc == NULL)) in usbd_req_set_alt_interface_no()
1457 req.wIndex[0] = iface->idesc->bInterfaceNumber; in usbd_req_set_alt_interface_no()
1792 if ((iface == NULL) || (iface->idesc == NULL)) { in usbd_req_set_protocol()
1796 iface, report, iface->idesc->bInterfaceNumber); in usbd_req_set_protocol()
1801 req.wIndex[0] = iface->idesc->bInterfaceNumber; in usbd_req_set_protocol()
1821 if ((iface == NULL) || (iface->idesc == NULL)) { in usbd_req_set_report()
1829 req.wIndex[0] = iface->idesc->bInterfaceNumber; in usbd_req_set_report()
1849 if ((iface == NULL) || (iface->idesc == NULL)) { in usbd_req_get_report()
[all …]
H A Dusb_device.c930 iface->idesc = id; in usb_config_parse()
1090 iface->idesc->bAlternateSetting); in usbd_set_alt_interface_index()
1520 if (iface->idesc == NULL) { in usb_probe_and_attach()
1527 iface->idesc->bInterfaceClass; in usb_probe_and_attach()
1529 iface->idesc->bInterfaceSubClass; in usb_probe_and_attach()
1531 iface->idesc->bInterfaceProtocol; in usb_probe_and_attach()
1534 iface->idesc->bInterfaceNumber; in usb_probe_and_attach()
2675 return (iface->idesc); in usbd_get_interface_descriptor()
2750 if (iface->idesc == NULL) in usb_notify_addq()
2782 iface->idesc->bInterfaceNumber, in usb_notify_addq()
[all …]
H A Dusb_handle_request.c200 if (alt_index >= usbd_get_no_alts(udev->cdesc, iface->idesc)) in usb_check_alt_setting()
249 (iface->idesc == NULL)) { in usb_handle_iface_request()
273 (iface_parent->idesc == NULL)) { in usb_handle_iface_request()
H A Dusb_debug.c144 iface, iface->idesc, iface->alt_index); in usb_dump_iface()
H A Dusb_generic.c790 if ((iface == NULL) || (iface->idesc == NULL)) { in ugen_get_iface_driver()
1859 struct usb_interface_descriptor *idesc) in ugen_get_iface_desc() argument
1864 if (iface && iface->idesc) { in ugen_get_iface_desc()
1865 *idesc = *(iface->idesc); in ugen_get_iface_desc()
2221 struct usb_interface_descriptor *idesc; in ugen_ioctl_post() member
2278 if (iface && iface->idesc) { in ugen_ioctl_post()
/freebsd/usr.sbin/usbconfig/
H A Ddump.c302 struct LIBUSB20_INTERFACE_DESC_DECODED *idesc; in dump_iface() local
305 idesc = &iface->desc; in dump_iface()
306 LIBUSB20_INTERFACE_DESC(DUMP2, idesc); in dump_iface()
/freebsd/sys/dev/usb/net/
H A Duhso.c737 id = iface->idesc; in uhso_test_autoinst()
917 if (iface->idesc->bNumEndpoints < 3) { in uhso_probe_iface()
1048 iface->idesc->bInterfaceNumber, UDESC_CS_INTERFACE, 0xff, 0, 0); in uhso_attach_muxserial()
1084 &iface->idesc->bInterfaceNumber, sc->sc_xfer, in uhso_attach_muxserial()
1273 &iface->idesc->bInterfaceNumber, sc->sc_xfer, in uhso_attach_bulkserial()
1278 &iface->idesc->bInterfaceNumber, sc->sc_xfer, in uhso_attach_bulkserial()
1560 &iface->idesc->bInterfaceNumber, sc->sc_if_xfer, in uhso_attach_ifnet()
/freebsd/sys/netgraph/bluetooth/drivers/ubt/
H A Dng_ubt.c683 iface[0]->idesc == NULL || iface[1]->idesc == NULL) { in ubt_attach()
761 i = (id->bInterfaceNumber == iface[1]->idesc->bInterfaceNumber); in ubt_attach()
/freebsd/sys/dev/usb/serial/
H A Dugensa.c207 if (iface == NULL || iface->idesc->bInterfaceClass != UICLASS_VENDOR) in ugensa_attach()

12