Home
last modified time | relevance | path

Searched refs:device_fd (Results 1 – 4 of 4) sorted by relevance

/titanic_44/usr/src/cmd/picl/plugins/sun4u/blade/fruaccess/
H A Dfru_access.c1053 int device_fd; in fru_get_sections() local
1074 device_fd = open(cont_object->u.cont_obj->device_pathname, in fru_get_sections()
1076 if (device_fd >= 0) { in fru_get_sections()
1081 if (device_fd < 0) { in fru_get_sections()
1089 get_section(device_fd, sec_hash, section); in fru_get_sections()
1093 (void) close(device_fd); in fru_get_sections()
1732 get_packet(int device_fd, void *buffer, int size, int offset) in get_packet() argument
1736 retval = pread(device_fd, (char *)buffer, size, offset); in get_packet()
1758 get_payload(int device_fd, hash_obj_t *packet, uint8_t *payload) in get_payload() argument
1770 retval = pread(device_fd, payload, packet_object->paylen, in get_payload()
[all …]
/titanic_44/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dfru_access.c764 int device_fd; in fru_open_container() local
824 device_fd = open(devpath, O_RDONLY); in fru_open_container()
825 if (device_fd < 0) { in fru_open_container()
830 retval = pread(device_fd, &first_byte, sizeof (first_byte), 0); in fru_open_container()
831 (void) close(device_fd); in fru_open_container()
1124 int device_fd; in fru_get_sections() local
1146 device_fd = in fru_get_sections()
1148 if (device_fd >= 0) { in fru_get_sections()
1153 if (device_fd < 0) { in fru_get_sections()
1161 get_section(device_fd, sec_hash, section); in fru_get_sections()
[all …]
/titanic_44/usr/src/cmd/boot/installgrub/
H A Dpcfs_glue.c170 read_stage2_blocklist(int device_fd, unsigned int *blkbuf) in read_stage2_blocklist() argument
176 dev_fd = device_fd; in read_stage2_blocklist()
/titanic_44/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/fruaccess/
H A Dlibfruaccess.c1496 int device_fd; in sun_fru_get_sections() local
1515 device_fd = open_file(); in sun_fru_get_sections()
1517 if (device_fd < 0) { in sun_fru_get_sections()
1525 get_section(device_fd, sec_hash, section); in sun_fru_get_sections()
1529 (void) close(device_fd); in sun_fru_get_sections()
2105 get_packet(int device_fd, void *buffer, int size, int offset, format_t *format) in get_packet() argument
2109 retval = pread_new(device_fd, (char *)buffer, size, offset, format); in get_packet()
2159 get_packets(hash_obj_t *seg_hash, int device_fd, int offset, int length) in get_packets() argument
2182 retval = get_packet(device_fd, &tag, sizeof (fru_tag_t), offset, in get_packets()
2229 retval = pread_new(device_fd, pkt_hash_obj->u.pkt_obj->payload, in get_packets()
[all …]