Searched refs:dev (Results 1 - 25 of 446) sorted by relevance

1234567891011>>

/osnet-11/usr/src/grub/grub-0.97/netboot/
H A Dconfig.c14 static int pci_probe(struct dev *dev, const char *type_name) argument
26 struct pci_probe_state *state = &dev->state.pci;
28 if (dev->how_probe == PROBE_FIRST) {
30 state->dev.driver = 0;
31 state->dev.bus = 0;
32 state->dev.devfn = 0;
33 dev->index = -1;
36 if ((dev->how_probe != PROBE_AWAKE) && state->advance) {
37 find_pci(dev
71 isa_probe(struct dev *dev, const char *type_name) argument
122 probe(struct dev *dev) argument
159 disable(struct dev *dev) argument
[all...]
H A Ddev.h24 struct pci_device dev; member in struct:pci_probe_state
46 struct dev struct
48 void (*disable)P((struct dev *));
80 extern int probe(struct dev *dev);
81 extern void disable(struct dev *dev);
H A Dnic.h11 #include "dev.h"
25 struct dev dev; /* This must come first */ member in struct:nic
40 extern int eth_probe(struct dev *dev);
/osnet-11/usr/src/grub/grub2/grub-core/lib/i386/pc/
H A Dbiosnum.c29 grub_device_t dev; local
36 dev = grub_device_open (0);
37 if (dev && dev->disk && dev->disk->dev
38 && dev->disk->dev->id == GRUB_DISK_DEVICE_BIOSDISK_ID)
39 ret = (int) dev->disk->id;
41 if (dev)
[all...]
/osnet-11/usr/src/lib/libntfs/common/libntfs/
H A Dunix_io.c64 #define DEV_FD(dev) (*(int *)dev->d_private)
73 * @dev:
80 static int ntfs_device_unix_io_open(struct ntfs_device *dev, int flags) argument
86 if (NDevOpen(dev)) {
90 if (!(dev->d_private = ntfs_malloc(sizeof(int))))
92 *(int*)dev->d_private = open(dev->d_name, flags);
93 if (*(int*)dev->d_private == -1) {
99 NDevSetReadOnly(dev);
139 ntfs_device_unix_io_close(struct ntfs_device *dev) argument
176 ntfs_device_unix_io_seek(struct ntfs_device *dev, s64 offset, int whence) argument
192 ntfs_device_unix_io_read(struct ntfs_device *dev, void *buf, s64 count) argument
208 ntfs_device_unix_io_write(struct ntfs_device *dev, const void *buf, s64 count) argument
230 ntfs_device_unix_io_pread(struct ntfs_device *dev, void *buf, s64 count, s64 offset) argument
247 ntfs_device_unix_io_pwrite(struct ntfs_device *dev, const void *buf, s64 count, s64 offset) argument
266 ntfs_device_unix_io_sync(struct ntfs_device *dev) argument
286 ntfs_device_unix_io_stat(struct ntfs_device *dev, struct stat *buf) argument
301 ntfs_device_unix_io_ioctl(struct ntfs_device *dev, int request, void *argp) argument
[all...]
H A Ddevice.c108 struct ntfs_device *dev; local
115 dev = (struct ntfs_device *)ntfs_malloc(sizeof(struct ntfs_device));
116 if (dev) {
117 if (!(dev->d_name = strdup(name))) {
119 free(dev);
123 dev->d_ops = dops;
124 dev->d_state = state;
125 dev->d_private = priv_data;
127 return dev;
132 * @dev
141 ntfs_device_free(struct ntfs_device *dev) argument
166 fake_pread(struct ntfs_device *dev, void *b, s64 count, s64 pos __attribute__((unused))) argument
191 ntfs_pread(struct ntfs_device *dev, const s64 pos, s64 count, void *b) argument
252 fake_pwrite(struct ntfs_device *dev, const void *b, s64 count, s64 pos __attribute__((unused))) argument
277 ntfs_pwrite(struct ntfs_device *dev, const s64 pos, s64 count, const void *b) argument
369 ntfs_mst_pread(struct ntfs_device *dev, const s64 pos, s64 count, const u32 bksize, void *b) argument
426 ntfs_mst_pwrite(struct ntfs_device *dev, const s64 pos, s64 count, const u32 bksize, void *b) argument
541 ntfs_device_offset_valid(struct ntfs_device *dev, s64 ofs) argument
563 ntfs_device_size_get(struct ntfs_device *dev, int block_size) argument
634 ntfs_device_partition_start_sector_get(struct ntfs_device *dev) argument
667 ntfs_device_heads_get(struct ntfs_device *dev) argument
701 ntfs_device_sectors_per_track_get(struct ntfs_device *dev) argument
735 ntfs_device_sector_size_get(struct ntfs_device *dev) argument
770 ntfs_device_block_size_set(struct ntfs_device *dev, int block_size __attribute__((unused))) argument
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/
H A Ddevice.c55 _device_register (PedDevice* dev) argument
60 walk->next = dev;
62 devices = dev;
63 dev->next = NULL;
67 _device_unregister (PedDevice* dev) argument
73 if (walk == dev) break;
87 last->next = dev->next;
89 devices = dev->next;
95 * If dev is NULL, returns the first device.
97 * \return NULL if dev i
100 ped_device_get_next(const PedDevice* dev) argument
111 PedDevice* dev; local
186 ped_device_destroy(PedDevice* dev) argument
199 ped_device_cache_remove(PedDevice *dev) argument
205 ped_device_is_busy(PedDevice* dev) argument
223 ped_device_open(PedDevice* dev) argument
247 ped_device_close(PedDevice* dev) argument
284 ped_device_begin_external_access(PedDevice* dev) argument
304 ped_device_end_external_access(PedDevice* dev) argument
323 ped_device_read(const PedDevice* dev, void* buffer, PedSector start, PedSector count) argument
344 ped_device_write(PedDevice* dev, const void* buffer, PedSector start, PedSector count) argument
356 ped_device_check(PedDevice* dev, void* buffer, PedSector start, PedSector count) argument
374 ped_device_sync(PedDevice* dev) argument
391 ped_device_sync_fast(PedDevice* dev) argument
416 ped_device_get_constraint(const PedDevice* dev) argument
431 _ped_device_get_aligned_constraint(const PedDevice *dev, PedAlignment* start_align) argument
475 ped_device_get_minimal_aligned_constraint(const PedDevice *dev) argument
493 ped_device_get_optimal_aligned_constraint(const PedDevice *dev) argument
514 ped_device_get_minimum_alignment(const PedDevice *dev) argument
540 ped_device_get_optimum_alignment(const PedDevice *dev) argument
[all...]
H A Dunit.c114 ped_unit_get_size (const PedDevice* dev, PedUnit unit) argument
116 PedSector cyl_size = dev->bios_geom.heads * dev->bios_geom.sectors;
119 case PED_UNIT_SECTOR: return dev->sector_size;
129 case PED_UNIT_CYLINDER: return cyl_size * dev->sector_size;
130 case PED_UNIT_CHS: return dev->sector_size;
133 return dev->length * dev->sector_size / 100;
188 * device \p dev.
194 ped_unit_format_custom_byte (const PedDevice* dev, PedSecto argument
267 ped_unit_format_byte(const PedDevice* dev, PedSector byte) argument
280 ped_unit_format_custom(const PedDevice* dev, PedSector sector, PedUnit unit) argument
294 ped_unit_format(const PedDevice* dev, PedSector sector) argument
313 ped_unit_parse(const char* str, const PedDevice* dev, PedSector *sector, PedGeometry** range) argument
368 parse_chs(const char* str, const PedDevice* dev, PedSector* sector, PedGeometry** range) argument
430 clip(const PedDevice* dev, PedSector sector) argument
440 geometry_from_centre_radius(const PedDevice* dev, PedSector sector, PedSector radius) argument
500 ped_unit_parse_custom(const char* str, const PedDevice* dev, PedUnit unit, PedSector* sector, PedGeometry** range) argument
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/disk/
H A Dahci.c136 grub_ahci_readwrite_real (struct grub_ahci_device *dev,
165 init_port (struct grub_ahci_device *dev) argument
183 grub_dprintf ("ahci", "found device ahci%d (port %d)\n", dev->num, dev->port);
185 dev->hba->ports[dev->port].command &= ~GRUB_AHCI_HBA_PORT_CMD_FRE;
187 while ((dev->hba->ports[dev->port].command & GRUB_AHCI_HBA_PORT_CMD_FR))
194 dev->hba->ports[dev
257 grub_ahci_pciinit(grub_pci_device_t dev, grub_pci_id_t pciid __attribute__ ((unused))) argument
403 struct grub_ahci_device *dev; local
459 struct grub_ahci_device *dev; local
506 grub_ahci_readwrite_real(struct grub_ahci_device *dev, struct grub_disk_ata_pass_through_parms *parms, int spinup) argument
679 struct grub_ahci_device *dev; local
[all...]
H A Dcryptodisk.c50 static inline int GF_PER_SECTOR (const struct grub_cryptodisk *dev) argument
52 return 1U << (dev->log_sector_size - GRUB_CRYPTODISK_GF_LOG_BYTES);
140 const struct grub_cryptodisk *dev,
148 & (GF_PER_SECTOR (dev) - 1));
149 sec->low_byte_c = (((GF_PER_SECTOR (dev) - 1) & ~sec->low_byte) + 1);
150 idx[GRUB_CRYPTODISK_GF_BYTES - 1] &= ~(GF_PER_SECTOR (dev) - 1);
151 gf_mul_be (sec->low, dev->lrw_key, idx);
155 c = idx[GRUB_CRYPTODISK_GF_BYTES - 1] + GF_PER_SECTOR (dev);
166 gf_mul_be (sec->high, dev->lrw_key, idx);
171 const struct grub_cryptodisk *dev,
139 generate_lrw_sector(struct lrw_sector *sec, const struct grub_cryptodisk *dev, const grub_uint8_t *iv) argument
170 lrw_xor(const struct lrw_sector *sec, const struct grub_cryptodisk *dev, grub_uint8_t *b) argument
193 grub_cryptodisk_decrypt(struct grub_cryptodisk *dev, grub_uint8_t * data, grub_size_t len, grub_disk_addr_t sector) argument
336 grub_cryptodisk_setkey(grub_cryptodisk_t dev, grub_uint8_t *key, grub_size_t keysize) argument
418 grub_cryptodisk_t dev; local
474 grub_cryptodisk_t dev = (grub_cryptodisk_t) disk->data; local
496 grub_cryptodisk_t dev = (grub_cryptodisk_t) disk->data; local
548 grub_cryptodisk_t dev = (grub_cryptodisk_t) disk->data; local
565 grub_cryptodisk_t dev = cryptodisk_list; local
603 grub_cryptodisk_t dev; local
613 grub_cryptodisk_t dev; local
647 grub_cryptodisk_t dev = (grub_cryptodisk_t) disk->data; local
668 grub_cryptodisk_t dev = (grub_cryptodisk_t) disk->data; local
678 cryptodisk_close(grub_cryptodisk_t dev) argument
690 grub_cryptodisk_t dev; local
728 grub_cryptodisk_t dev; local
800 grub_cryptodisk_t dev; local
831 grub_cryptodisk_t dev; local
[all...]
H A Dpata.c61 grub_pata_regset (struct grub_pata_device *dev, int reg, int val) argument
63 grub_outb (val, dev->ioaddress + reg);
67 grub_pata_regget (struct grub_pata_device *dev, int reg) argument
69 return grub_inb (dev->ioaddress + reg);
74 grub_pata_wait_not_busy (struct grub_pata_device *dev, int milliseconds) argument
83 while ((sts = grub_pata_regget (dev, GRUB_ATA_REG_STATUS))
101 grub_pata_check_ready (struct grub_pata_device *dev, int spinup) argument
103 if (grub_pata_regget (dev, GRUB_ATA_REG_STATUS) & GRUB_ATA_STATUS_BUSY)
104 return grub_pata_wait_not_busy (dev, spinup ? GRUB_ATA_TOUT_SPINUP
117 grub_pata_pio_read (struct grub_pata_device *dev, cha argument
132 grub_pata_pio_write(struct grub_pata_device *dev, char *buf, grub_size_t size) argument
147 struct grub_pata_device *dev = (struct grub_pata_device *) disk->data; local
275 check_device(struct grub_pata_device *dev) argument
302 struct grub_pata_device *dev; local
333 grub_pata_pciinit(grub_pci_device_t dev, grub_pci_id_t pciid) argument
460 struct grub_pata_device *dev; local
496 struct grub_pata_device *dev; local
[all...]
/osnet-11/usr/src/lib/libparted/common/include/parted/
H A Ddevice.h69 /** A block device - for example, /dev/hda, not /dev/hda3 */
75 char* path; /**< device /dev entry */
104 void (*destroy) (PedDevice* dev);
105 int (*is_busy) (PedDevice* dev);
106 int (*open) (PedDevice* dev);
107 int (*refresh_open) (PedDevice* dev);
108 int (*close) (PedDevice* dev);
109 int (*refresh_close) (PedDevice* dev);
110 int (*read) (const PedDevice* dev, voi
[all...]
/osnet-11/usr/src/grub/grub2/include/grub/
H A Dpciutils.h27 grub_pci_get_bus (grub_pci_device_t dev) argument
29 return dev->bus;
33 grub_pci_get_device (grub_pci_device_t dev) argument
35 return dev->dev;
39 grub_pci_get_function (grub_pci_device_t dev) argument
41 return dev->func;
46 grub_pci_device_t dev; member in struct:grub_pci_address
56 pci_device_cfg_read_u32 (addr.dev, &ret, addr.pos);
64 pci_device_cfg_read_u16 (addr.dev,
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/bus/usb/
H A Dusbhub.c39 grub_usb_device_t dev; member in struct:grub_usb_hub
49 grub_usb_device_t dev; local
53 dev = grub_zalloc (sizeof (struct grub_usb_device));
54 if (! dev)
57 dev->controller = *controller;
58 dev->speed = speed;
60 err = grub_usb_device_initialize (dev);
63 grub_free (dev);
77 grub_free (dev->config[i].descconf);
78 grub_free (dev);
110 grub_usb_add_hub(grub_usb_device_t dev) argument
182 grub_usb_device_t dev; local
287 detach_device(grub_usb_device_t dev) argument
314 poll_nonroot_hub(grub_usb_device_t dev) argument
537 grub_usb_device_t dev = grub_usb_devs[i]; local
550 grub_usb_iterate(int (*hook) (grub_usb_device_t dev)) argument
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/bus/
H A Dpci.c84 grub_pci_make_address (grub_pci_device_t dev, int reg) argument
86 return (1 << 31) | (dev.bus << 16) | (dev.device << 11)
87 | (dev.function << 8) | reg;
93 grub_pci_device_t dev; local
98 for (dev.bus = 0; dev.bus < GRUB_PCI_NUM_BUS; dev.bus++)
100 for (dev.device = 0; dev
[all...]
H A Dcs5536.c36 auto int NESTED_FUNC_ATTR hook (grub_pci_device_t dev,
39 int NESTED_FUNC_ATTR hook (grub_pci_device_t dev, argument
44 *devp = dev;
57 grub_cs5536_read_msr (grub_pci_device_t dev, grub_uint32_t addr) argument
60 grub_pci_write (grub_pci_make_address (dev, GRUB_CS5536_MSR_MAILBOX_ADDR),
63 grub_pci_read (grub_pci_make_address (dev, GRUB_CS5536_MSR_MAILBOX_DATA0));
65 grub_pci_read (grub_pci_make_address (dev,
72 grub_cs5536_write_msr (grub_pci_device_t dev, grub_uint32_t addr, argument
75 grub_pci_write (grub_pci_make_address (dev, GRUB_CS5536_MSR_MAILBOX_ADDR),
77 grub_pci_write (grub_pci_make_address (dev, GRUB_CS5536_MSR_MAILBOX_DATA
103 grub_cs5536_read_spd_byte(grub_port_t smbbase, grub_uint8_t dev, grub_uint8_t addr, grub_uint8_t *res) argument
161 grub_cs5536_init_smbus(grub_pci_device_t dev, grub_uint16_t divisor, grub_port_t *smbbase) argument
195 grub_cs5536_read_spd(grub_port_t smbbase, grub_uint8_t dev, struct grub_smbus_spd *res) argument
222 set_io_space(grub_pci_device_t dev, int num, grub_uint16_t start, grub_uint16_t len) argument
237 set_iod(grub_pci_device_t dev, int num, int dest, int start, int mask) argument
248 set_p2d(grub_pci_device_t dev, int num, int dest, grub_uint32_t start) argument
259 grub_cs5536_init_geode(grub_pci_device_t dev) argument
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/bus/emu/
H A Dpci.c26 grub_pci_make_address (grub_pci_device_t dev, int reg) argument
29 ret.dev = dev;
39 struct pci_device *dev; local
42 slot.dev = PCI_MATCH_ANY;
45 while ((dev = pci_device_next (iter)))
46 hook (dev, dev->vendor_id | (dev->device_id << 16));
51 grub_pci_device_map_range (grub_pci_device_t dev, grub_addr_ argument
63 grub_pci_device_unmap_range(grub_pci_device_t dev, void *mem, grub_size_t size) argument
[all...]
/osnet-11/usr/src/lib/libc/port/sys/
H A Dustat.c37 ustat(dev_t dev, struct ustat *buf) argument
39 if (utssys(buf, dev, UTS_USTAT) == -1)
H A Dmknod.c32 mknodat(int fd, const char *path, mode_t mode, dev_t dev) argument
34 return (syscall(SYS_mknodat, fd, path, mode, dev));
39 mknod(const char *path, mode_t mode, dev_t dev) argument
41 return (mknodat(AT_FDCWD, path, mode, dev));
/osnet-11/usr/src/lib/libparted/common/libparted/arch/
H A Dsolaris.c71 #define SOLARIS_SPECIFIC(dev) ((SolarisSpecific*) (dev)->arch_specific)
82 #define PARTITION(dev) (minor(dev) & 0x07)
102 _device_stat(PedDevice* dev, struct stat *dev_stat) argument
104 PED_ASSERT(dev != NULL, return (0));
105 PED_ASSERT(!dev->external_mode, return (0));
108 if (!stat(dev->path, dev_stat)) {
115 dev->path, strerror(errno)) != PED_EXCEPTION_RETRY)
122 _device_set_length_and_sector_size(PedDevice* dev) argument
200 _device_probe_geometry(PedDevice* dev) argument
234 init_ide(PedDevice *dev) argument
265 PedDevice* dev; local
307 solaris_destroy(PedDevice* dev) argument
323 _device_get_part_path(PedDevice* dev, int num) argument
416 getpartition(PedDevice* dev, char *pathname) argument
502 checkswap(PedDevice* dev, diskaddr_t start, diskaddr_t end) argument
558 checkdevinuse(PedDevice *dev, diskaddr_t start, diskaddr_t end, int print) argument
784 checkmount(PedDevice* dev, diskaddr_t start, diskaddr_t end) argument
854 solaris_is_busy(PedDevice* dev) argument
881 solaris_open(PedDevice* dev) argument
948 solaris_refresh_open(PedDevice* dev) argument
954 solaris_close(PedDevice* dev) argument
967 _do_fsync(PedDevice* dev) argument
1006 solaris_refresh_close(PedDevice* dev) argument
1014 _device_seek(const PedDevice* dev, PedSector sector) argument
1035 solaris_read(const PedDevice* dev, void* vbuffer, PedSector start, PedSector count) argument
1128 solaris_write(PedDevice* dev, const void* buffer, PedSector start, PedSector count) argument
1238 solaris_check(PedDevice* dev, void* buffer, PedSector start, PedSector count) argument
1277 solaris_sync(PedDevice* dev) argument
[all...]
/osnet-11/usr/src/lib/pybootmgmt/i386/
H A Dbootmgmt-helper-chain.ksh69 dev=$1
74 sig=`dd if=${rdev} bs=512 count=1 2>/dev/null |strings 2>/dev/null | head -1 | awk '{ print $1 }'`
87 dev=$1
96 fs=`fstyp ${dev}s$i 2> /dev/null`
98 mount -o ro ${dev}s$i $tmp 2> /dev/null
111 umount $tmp > /dev/null 2>&1
122 dev
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/kern/
H A Ddevice.c35 grub_device_t dev = 0; local
47 dev = grub_malloc (sizeof (*dev));
48 if (! dev)
51 dev->net = NULL;
53 dev->disk = grub_disk_open (name);
54 if (dev->disk)
55 return dev;
59 dev->net = grub_net_open (name);
62 if (dev
106 grub_device_t dev; local
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/parttool/
H A Dmsdospart.c43 static grub_err_t grub_pcpart_boot (const grub_device_t dev, argument
50 if (dev->disk->partition->offset)
53 index = dev->disk->partition->index;
54 part = dev->disk->partition;
55 dev->disk->partition = part->parent;
58 if (grub_disk_read (dev->disk, 0, 0, sizeof (mbr), &mbr))
60 dev->disk->partition = part;
78 grub_disk_write (dev->disk, 0, 0, sizeof (mbr), &mbr);
80 dev->disk->partition = part;
92 static grub_err_t grub_pcpart_type (const grub_device_t dev, argument
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/normal/
H A Dmisc.c35 grub_device_t dev; local
51 dev = grub_device_open (name);
52 if (! dev)
54 else if (dev->disk)
58 fs = grub_fs_probe (dev);
68 (fs->label) (dev, &label);
84 (fs->mtime) (dev, &tm);
101 (fs->uuid) (dev, &uuid);
114 if (dev->disk->partition)
116 (unsigned long long) grub_partition_get_start (dev
[all...]
/osnet-11/usr/src/grub/grub2/include/grub/i386/pc/
H A Dchainloader.h25 grub_chainloader_patch_bpb (void *bs, grub_device_t dev, grub_uint8_t dl);

Completed in 122 milliseconds

1234567891011>>