Home
last modified time | relevance | path

Searched refs:devno (Results 1 – 25 of 49) 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.c27 #define virt_to_bus(devno, v) pci_virt_to_mem(devno, (void *) (v)) argument
148 u64 paddr = virt_to_bus(sata->devno, pcmd); in sil_exec_cmd()
256 pcmd->sge.addr = cpu_to_le64(virt_to_bus(sata->devno, id)); in sil_cmd_identify_device()
330 pcmd->sge.addr = cpu_to_le64(virt_to_bus(sata->devno, buffer)); in sil_sata_rw_cmd()
377 pcmd->sge.addr = cpu_to_le64(virt_to_bus(sata->devno, buffer)); in sil_sata_rw_cmd_ext()
614 sata->devno = sata_info.devno;
631 pci_dev_t devno; local
640 devno = pci_find_devices(supported, idx++);
641 if (devno == -1)
644 pci_read_config_word(devno, PCI_DEVICE_ID, &word);
[all …]
/external/u-boot/board/freescale/mx6ullevk/
Dmx6ullevk.c46 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
48 return devno; in board_mmc_get_env_dev()
51 int mmc_map_to_kernel_blk(int devno) in mmc_map_to_kernel_blk() argument
53 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.c488 __weak int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
498 int devno; in mmc_get_boot_dev() local
513 devno = (soc_sbmr & 0x00001800) >> 11; in mmc_get_boot_dev()
515 return devno; in mmc_get_boot_dev()
520 int devno = mmc_get_boot_dev(); in mmc_get_env_dev() local
523 if (devno < 0) in mmc_get_env_dev()
526 return board_mmc_get_env_dev(devno); in mmc_get_env_dev()
530 __weak int board_mmc_get_env_part(int devno) in board_mmc_get_env_part() argument
537 int devno = mmc_get_boot_dev(); in mmc_get_env_part() local
540 if (devno < 0) in mmc_get_env_part()
[all …]
/external/u-boot/board/freescale/mx6sllevk/
Dmx6sllevk.c123 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
125 return devno; in board_mmc_get_env_dev()
128 int mmc_map_to_kernel_blk(int devno) in mmc_map_to_kernel_blk() argument
130 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/u-boot/board/tbs/tbs2910/
Dtbs2910.c51 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
53 return devno - 1; in board_mmc_get_env_dev()
56 int board_mmc_get_env_part(int devno) in board_mmc_get_env_part() argument
58 return (devno == 3) ? 1 : 0; /* part 0 for SD2 / SD3, part 1 for eMMC */ in board_mmc_get_env_part()
/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.c356 pci_dev_t devno; in hydra_initialize() local
359 for (i = 0; (devno = pci_find_devices(hydra_supported, i)) >= 0; i++) { in hydra_initialize()
372 pci_write_config_dword(devno, PCI_COMMAND, val); in hydra_initialize()
375 pci_read_config_dword(devno, PCI_COMMAND, &val); in hydra_initialize()
386 fpga = pci_map_bar(devno, PCI_BASE_ADDRESS_0, in hydra_initialize()
/external/u-boot/arch/arm/mach-imx/mx7ulp/
Dsoc.c314 __weak int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
321 int devno = 0; in mmc_get_env_dev() local
329 devno = (bt1_cfg >> 9) & 0x7; in mmc_get_env_dev()
331 return board_mmc_get_env_dev(devno); in mmc_get_env_dev()
/external/u-boot/drivers/net/
Dns8382x.c307 pci_dev_t devno; in ns8382x_initialize() local
317 if ((devno = pci_find_devices(supported, idx++)) < 0) in ns8382x_initialize()
320 pci_read_config_dword(devno, PCI_BASE_ADDRESS_1, &iobase); in ns8382x_initialize()
325 pci_write_config_dword(devno, PCI_COMMAND, in ns8382x_initialize()
329 pci_read_config_dword(devno, PCI_COMMAND, &status); in ns8382x_initialize()
347 dev->priv = (void *) devno; in ns8382x_initialize()
356 pci_read_config_dword(devno, PCIPM, &tmp); in ns8382x_initialize()
359 pci_write_config_dword(devno, PCIPM, newtmp); in ns8382x_initialize()
436 pci_write_config_byte(devno, PCI_LATENCY_TIMER, 0x60); in ns8382x_initialize()
Dnatsemi.c291 pci_dev_t devno; in natsemi_initialize() local
301 if ((devno = pci_find_devices(supported, idx++)) < 0) { in natsemi_initialize()
305 pci_read_config_dword(devno, PCI_BASE_ADDRESS_0, &iobase); in natsemi_initialize()
308 pci_write_config_dword(devno, PCI_COMMAND, in natsemi_initialize()
312 pci_read_config_dword(devno, PCI_COMMAND, &status); in natsemi_initialize()
333 dev->priv = (void *) devno; in natsemi_initialize()
344 pci_write_config_byte(devno, PCI_LATENCY_TIMER, 0x20); in natsemi_initialize()
351 pci_read_config_dword(devno, PCIPM, &tmp); in natsemi_initialize()
355 pci_write_config_dword(devno, PCIPM, newtmp); in natsemi_initialize()
Drtl8139.c200 pci_dev_t devno; in rtl8139_initialize() local
208 if ((devno = pci_find_devices(supported, idx++)) < 0) in rtl8139_initialize()
211 pci_read_config_dword(devno, PCI_BASE_ADDRESS_1, &iobase); in rtl8139_initialize()
225 dev->priv = (void *) devno; in rtl8139_initialize()
237 pci_write_config_byte (devno, PCI_LATENCY_TIMER, 0x20); in rtl8139_initialize()
/external/u-boot/board/freescale/imx8mm_evk/
Dimx8mm_evk.c59 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
61 return devno; in board_mmc_get_env_dev()
/external/u-boot/arch/arm/mach-imx/imx8/
Dcpu.c165 __weak int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
173 int devno; in mmc_get_env_dev() local
179 devno = 0; in mmc_get_env_dev()
182 devno = 1; in mmc_get_env_dev()
185 devno = 2; in mmc_get_env_dev()
192 return board_mmc_get_env_dev(devno); in mmc_get_env_dev()
/external/u-boot/board/toradex/apalis-imx8/
Dapalis-imx8.c112 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
114 return devno; in board_mmc_get_env_dev()
/external/u-boot/board/toradex/colibri-imx8x/
Dcolibri-imx8x.c124 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
126 return devno; in board_mmc_get_env_dev()
/external/u-boot/board/freescale/imx8qm_mek/
Dimx8qm_mek.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()
/external/u-boot/board/freescale/mx7dsabresd/
Dmx7dsabresd.c202 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
204 if (devno == 2) in board_mmc_get_env_dev()
205 devno--; in board_mmc_get_env_dev()
207 return devno; in board_mmc_get_env_dev()
/external/u-boot/board/advantech/imx8qm_rom7720_a1/
Dimx8qm_rom7720_a1.c123 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
125 return devno; in board_mmc_get_env_dev()
/external/u-boot/board/freescale/imx8mq_evk/
Dimx8mq_evk.c119 int board_mmc_get_env_dev(int devno) in board_mmc_get_env_dev() argument
121 return devno; in board_mmc_get_env_dev()

12