Home
last modified time | relevance | path

Searched refs:hdev (Results 1 – 3 of 3) sorted by relevance

/freebsd-12.1/usr.sbin/spi/
H A Dspi.c164 int err, ch, hdev, finfo, fdir; in main() local
171 hdev = -1; in main()
332 hdev = open(dev_name, O_RDWR); in main()
334 if (hdev == -1) { in main()
342 err = get_info(hdev, dev_name); in main()
349 err = set_mode(hdev, &opt); in main()
356 err = set_speed(hdev, &opt); in main()
365 err = perform_read(hdev, &opt); in main()
368 err = perform_write(hdev, &opt); in main()
376 if (hdev != -1) in main()
[all …]
/freebsd-12.1/sys/fs/cuse/
H A Dcuse.c114 TAILQ_HEAD(, cuse_server_dev) hdev;
674 while ((pcsd = TAILQ_FIRST(&pcs->hdev)) != NULL) { in cuse_server_unref()
675 TAILQ_REMOVE(&pcs->hdev, pcsd, entry); in cuse_server_unref()
755 TAILQ_INIT(&pcs->hdev); in cuse_server_open()
1228 TAILQ_INSERT_TAIL(&pcs->hdev, pcsd, entry); in cuse_server_ioctl()
1243 pcsd = TAILQ_FIRST(&pcs->hdev); in cuse_server_ioctl()
1246 TAILQ_REMOVE(&pcs->hdev, pcsd, entry); in cuse_server_ioctl()
1251 pcsd = TAILQ_FIRST(&pcs->hdev); in cuse_server_ioctl()
/freebsd-12.1/sys/dev/usb/controller/
H A Dxhci.c1387 struct xhci_hw_dev *hdev; in xhci_set_address() local
1401 hdev = &sc->sc_hw.devs[index]; in xhci_set_address()
1408 switch (hdev->state) { in xhci_set_address()
1412 hdev->state = XHCI_ST_ENABLED; in xhci_set_address()
1458 usbd_get_page(&hdev->input_pc, 0, &buf_inp); in xhci_set_address()
1480 usbd_get_page(&hdev->device_pc, 0, &buf_dev); in xhci_set_address()
1482 usb_pc_cpu_invalidate(&hdev->device_pc); in xhci_set_address()
1490 hdev->state = XHCI_ST_ADDRESSED; in xhci_set_address()
1492 hdev->state = XHCI_ST_DEFAULT; in xhci_set_address()