Home
last modified time | relevance | path

Searched refs:devno (Results 1 – 25 of 44) sorted by relevance

12

/external/e2fsprogs/lib/blkid/
Ddevno.c97 void blkid__scan_dir(const char *dirname, dev_t devno, struct dir_list **list, in blkid__scan_dir() argument
122 if (blkidP_is_disk_device(st.st_mode) && st.st_rdev == devno) { in blkid__scan_dir()
125 printf("found 0x%llx at %s (%p)\n", (long long)devno, in blkid__scan_dir()
145 char *blkid_devno_to_devname(dev_t devno) in blkid_devno_to_devname() argument
163 blkid__scan_dir(current->name, devno, &new_list, &devname); in blkid_devno_to_devname()
183 (unsigned long) devno)); in blkid_devno_to_devname()
186 printf("found devno 0x%04llx as %s\n", (long long)devno, devname)); in blkid_devno_to_devname()
198 dev_t devno; in main() local
209 devno = strtoul(argv[1], &tmp, 0); in main()
225 devno = makedev(major, minor); in main()
[all …]
Ddevname.c185 dev_t devno, int pri, int only_if_new) in probe_one() argument
196 if (tmp->bid_devno == devno) { in probe_one()
205 if (dev && dev->bid_devno == devno) in probe_one()
214 blkid__scan_dir("/dev/mapper", devno, 0, &devname); in probe_one()
231 dev->bid_devno == devno) in probe_one()
236 st.st_rdev == devno) { in probe_one()
245 blkid__scan_dir("/dev/mapper", devno, 0, &devname); in probe_one()
247 devname = blkid_devno_to_devname(devno); in probe_one()
DMakefile.in21 OBJS= cache.o dev.o devname.o devno.o getsize.o llseek.o probe.o \
24 SRCS= $(srcdir)/cache.c $(srcdir)/dev.c $(srcdir)/devname.c $(srcdir)/devno.c \
90 tst_devno: $(srcdir)/devno.c $(DEPLIBS_BLKID)
92 $(Q) $(CC) -o tst_devno -DTEST_PROGRAM $(srcdir)/devno.c $(LIBS_BLKID) $(ALL_CFLAGS)
205 devno.o: $(srcdir)/devno.c $(top_builddir)/lib/config.h \
/external/u-boot/drivers/ata/
Dsata_sil3114.c104 u8 cmd = 0, status = 0, devno = num; in sata_identify() local
149 ata_id_c_string (iobuf, (unsigned char *)sata_dev_desc[devno].revision, in sata_identify()
150 ATA_ID_FW_REV, sizeof (sata_dev_desc[devno].revision)); in sata_identify()
151 ata_id_c_string (iobuf, (unsigned char *)sata_dev_desc[devno].vendor, in sata_identify()
152 ATA_ID_PROD, sizeof (sata_dev_desc[devno].vendor)); in sata_identify()
153 ata_id_c_string (iobuf, (unsigned char *)sata_dev_desc[devno].product, in sata_identify()
154 ATA_ID_SERNO, sizeof (sata_dev_desc[devno].product)); in sata_identify()
157 sata_dev_desc[devno].removable = 0; in sata_identify()
159 sata_dev_desc[devno].lba = (u32) n_sectors; in sata_identify()
160 debug("lba=0x%lx\n", sata_dev_desc[devno].lba); in sata_identify()
[all …]
Dsata_sil.c21 #define virt_to_bus(devno, v) pci_virt_to_mem(devno, (void *) (v)) argument
135 u64 paddr = virt_to_bus(sata->devno, pcmd); in sil_exec_cmd()
219 pcmd->sge.addr = cpu_to_le64(virt_to_bus(sata->devno, id)); in sil_cmd_identify_device()
295 pcmd->sge.addr = cpu_to_le64(virt_to_bus(sata->devno, buffer)); in sil_sata_rw_cmd()
343 pcmd->sge.addr = cpu_to_le64(virt_to_bus(sata->devno, buffer)); in sil_sata_rw_cmd_ext()
517 pci_dev_t devno; in init_sata() local
526 devno = pci_find_devices(supported, idx++); in init_sata()
527 if (devno == -1) in init_sata()
530 pci_read_config_word(devno, PCI_DEVICE_ID, &word); in init_sata()
537 sata_info.devno = devno; in init_sata()
[all …]
Dsata_sil.h23 pci_dev_t devno; member
32 pci_dev_t devno; member
/external/u-boot/board/freescale/mx6ullevk/
Dmx6ullevk.c44 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
46 return devno; in board_mmc_get_env_dev()
49 int mmc_map_to_kernel_blk(int devno) in mmc_map_to_kernel_blk() argument
51 return devno; in mmc_map_to_kernel_blk()
/external/u-boot/board/gdsys/a38x/
Dhydra.c60 pci_dev_t devno; in hydra_initialize() local
63 for (i = 0; (devno = pci_find_devices(hydra_supported, i)) >= 0; i++) { in hydra_initialize()
68 pci_write_config_dword(devno, PCI_COMMAND, val); in hydra_initialize()
71 pci_read_config_dword(devno, PCI_COMMAND, &val); in hydra_initialize()
82 fpga = pci_map_bar(devno, PCI_BASE_ADDRESS_0, in hydra_initialize()
/external/u-boot/arch/arm/mach-imx/mx6/
Dsoc.c449 __weak int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
459 int devno; in mmc_get_boot_dev() local
474 devno = (soc_sbmr & 0x00001800) >> 11; in mmc_get_boot_dev()
476 return devno; in mmc_get_boot_dev()
481 int devno = mmc_get_boot_dev(); in mmc_get_env_dev() local
484 if (devno < 0) in mmc_get_env_dev()
487 return board_mmc_get_env_dev(devno); in mmc_get_env_dev()
491 __weak int board_mmc_get_env_part(int devno) in board_mmc_get_env_part() argument
498 int devno = mmc_get_boot_dev(); in mmc_get_env_part() local
501 if (devno < 0) in mmc_get_env_part()
[all …]
/external/u-boot/board/freescale/mx6sllevk/
Dmx6sllevk.c122 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
124 return devno; in board_mmc_get_env_dev()
127 int mmc_map_to_kernel_blk(int devno) in mmc_map_to_kernel_blk() argument
129 return devno; in mmc_map_to_kernel_blk()
/external/u-boot/arch/arm/mach-imx/
Dmmc_env.c12 __weak int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
21 int devno = (*p)->boot_dev_instance; in mmc_get_env_dev() local
28 return board_mmc_get_env_dev(devno); in mmc_get_env_dev()
/external/libmtp/util/
Dmtp-probe.c289 int devno; in main() local
300 devno = atoi(argv[3]); in main()
302 syslog(LOG_INFO, "checking bus %d, device %d: \"%s\"\n", busno, devno, fname); in main()
311 ret = LIBMTP_Check_Specific_Device(busno, devno); in main()
313 syslog(LOG_INFO, "bus: %d, device: %d was an MTP device\n", busno, devno); in main()
316 syslog(LOG_INFO, "bus: %d, device: %d was not an MTP device\n", busno, devno); in main()
/external/u-boot/arch/arm/mach-imx/mx7ulp/
Dsoc.c227 __weak int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
234 int devno = 0; in mmc_get_env_dev() local
242 devno = (bt1_cfg >> 9) & 0x7; in mmc_get_env_dev()
244 return board_mmc_get_env_dev(devno); in mmc_get_env_dev()
/external/blktrace/btt/
Ddevmap.c26 char device[32], devno[32]; member
39 if (sscanf(line, "%s %s", dmp->device, dmp->devno) != 2) { in dev_map_add()
57 if (!strcmp(this, dmp->devno)) in dev_map_find()
/external/u-boot/board/gdsys/p1022/
Dcontrolcenterd.c354 pci_dev_t devno; in hydra_initialize() local
357 for (i = 0; (devno = pci_find_devices(hydra_supported, i)) >= 0; i++) { in hydra_initialize()
370 pci_write_config_dword(devno, PCI_COMMAND, val); in hydra_initialize()
373 pci_read_config_dword(devno, PCI_COMMAND, &val); in hydra_initialize()
384 fpga = pci_map_bar(devno, PCI_BASE_ADDRESS_0, in hydra_initialize()
/external/u-boot/drivers/net/
Dnatsemi.c292 pci_dev_t devno; in natsemi_initialize() local
302 if ((devno = pci_find_devices(supported, idx++)) < 0) { in natsemi_initialize()
306 pci_read_config_dword(devno, PCI_BASE_ADDRESS_0, &iobase); in natsemi_initialize()
309 pci_write_config_dword(devno, PCI_COMMAND, in natsemi_initialize()
313 pci_read_config_dword(devno, PCI_COMMAND, &status); in natsemi_initialize()
334 dev->priv = (void *) devno; in natsemi_initialize()
345 pci_write_config_byte(devno, PCI_LATENCY_TIMER, 0x20); in natsemi_initialize()
352 pci_read_config_dword(devno, PCIPM, &tmp); in natsemi_initialize()
356 pci_write_config_dword(devno, PCIPM, newtmp); in natsemi_initialize()
Dns8382x.c308 pci_dev_t devno; in ns8382x_initialize() local
318 if ((devno = pci_find_devices(supported, idx++)) < 0) in ns8382x_initialize()
321 pci_read_config_dword(devno, PCI_BASE_ADDRESS_1, &iobase); in ns8382x_initialize()
326 pci_write_config_dword(devno, PCI_COMMAND, in ns8382x_initialize()
330 pci_read_config_dword(devno, PCI_COMMAND, &status); in ns8382x_initialize()
348 dev->priv = (void *) devno; in ns8382x_initialize()
357 pci_read_config_dword(devno, PCIPM, &tmp); in ns8382x_initialize()
360 pci_write_config_dword(devno, PCIPM, newtmp); in ns8382x_initialize()
437 pci_write_config_byte(devno, PCI_LATENCY_TIMER, 0x60); in ns8382x_initialize()
Drtl8139.c205 pci_dev_t devno; in rtl8139_initialize() local
213 if ((devno = pci_find_devices(supported, idx++)) < 0) in rtl8139_initialize()
216 pci_read_config_dword(devno, PCI_BASE_ADDRESS_1, &iobase); in rtl8139_initialize()
230 dev->priv = (void *) devno; in rtl8139_initialize()
244 pci_write_config_byte (devno, PCI_LATENCY_TIMER, 0x20); in rtl8139_initialize()
Deepro100.c391 pci_dev_t devno; in eepro100_initialize() local
400 if ((devno = pci_find_devices (supported, idx++)) < 0) { in eepro100_initialize()
404 pci_read_config_dword (devno, PCI_BASE_ADDRESS_0, &iobase); in eepro100_initialize()
412 pci_write_config_dword (devno, in eepro100_initialize()
418 pci_read_config_dword (devno, PCI_COMMAND, &status); in eepro100_initialize()
437 dev->priv = (void *) devno; /* this have to come before bus_to_phys() */ in eepro100_initialize()
465 pci_write_config_byte (devno, PCI_LATENCY_TIMER, 0x20); in eepro100_initialize()
Duli526x.c204 pci_dev_t devno; in uli526x_initialize() local
214 devno = pci_find_devices(uli526x_pci_tbl, idx++); in uli526x_initialize()
215 if (devno < 0) in uli526x_initialize()
218 pci_read_config_dword(devno, PCI_BASE_ADDRESS_1, &iobase); in uli526x_initialize()
232 db->pdev = devno; in uli526x_initialize()
244 pci_read_config_dword(devno, PCI_VENDOR_ID, &db->chip_id); in uli526x_initialize()
251 pci_write_config_byte(devno, PCI_LATENCY_TIMER, 0x20); in uli526x_initialize()
Drtl8169.c1102 pci_dev_t devno; in rtl8169_initialize() local
1114 if ((devno = pci_find_devices(supported, idx++)) < 0) in rtl8169_initialize()
1117 pci_read_config_word(devno, PCI_DEVICE_ID, &device); in rtl8169_initialize()
1128 pci_read_config_dword(devno, PCI_BASE_ADDRESS_0 + (region * 4), &iobase); in rtl8169_initialize()
1142 dev->priv = (void *)(unsigned long)devno; in rtl8169_initialize()
1143 dev->iobase = (int)pci_mem_to_phys(devno, iobase); in rtl8169_initialize()
/external/u-boot/board/engicam/imx6q/
Dimx6q.c191 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
194 return (devno == 0) ? 0: (devno - 1); in board_mmc_get_env_dev()
/external/u-boot/board/freescale/mx7dsabresd/
Dmx7dsabresd.c204 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
206 if (devno == 2) in board_mmc_get_env_dev()
207 devno--; in board_mmc_get_env_dev()
209 return devno; in board_mmc_get_env_dev()
/external/u-boot/board/engicam/imx6ul/
Dimx6ul.c91 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
94 return (devno == 0) ? 0 : 1; in board_mmc_get_env_dev()
/external/u-boot/board/tbs/tbs2910/
Dtbs2910.c261 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
263 return devno - 1; in board_mmc_get_env_dev()
266 int board_mmc_get_env_part(int devno) in board_mmc_get_env_part() argument
268 return (devno == 3) ? 1 : 0; /* part 0 for SD2 / SD3, part 1 for eMMC */ in board_mmc_get_env_part()

12