Lines Matching refs:fd
154 int fd;
156 if ((fd = fru_open_dev()) == -1) {
161 if (ioctl(fd, SGFRU_GETNUMSECTIONS, &numsections) != 0) {
173 int fd;
175 if ((fd = fru_open_dev()) == -1) {
181 if (ioctl(fd, SGFRU_GETSECTIONS, §ions) != 0) {
192 int fd;
194 if ((fd = fru_open_dev()) == -1) {
199 if (ioctl(fd, SGFRU_GETNUMSEGMENTS, &numsegments) != 0) {
211 int fd;
213 if ((fd = fru_open_dev()) == -1) {
219 if (ioctl(fd, SGFRU_GETSEGMENTS, &segments) != 0) {
231 int fd;
239 if ((fd = fru_open_dev()) == -1) {
245 if (ioctl(fd, SGFRU_ADDSEGMENT, &newsegment) != 0) {
261 int fd;
269 if ((fd = fru_open_dev()) == -1) {
273 if (ioctl(fd, SGFRU_DELETESEGMENT, &delsegment) != 0) {
287 int fd;
289 if ((fd = fru_open_dev()) == -1) {
295 if (ioctl(fd, SGFRU_READRAWSEGMENT, &readsegment) != 0) {
307 int fd;
309 if ((fd = fru_open_dev()) == -1) {
315 if (ioctl(fd, SGFRU_WRITERAWSEGMENT, &writesegment) != 0) {
328 int fd;
330 if ((fd = fru_open_dev()) == -1) {
335 if (ioctl(fd, SGFRU_GETNUMPACKETS, &numpackets) != 0) {
347 int fd;
349 if ((fd = fru_open_dev()) == -1) {
355 if (ioctl(fd, SGFRU_GETPACKETS, &packets) != 0) {
367 int fd;
369 if ((fd = fru_open_dev()) == -1) {
375 if (ioctl(fd, SGFRU_GETPAYLOAD, &payload) != 0) {
386 int fd;
394 if ((fd = fru_open_dev()) == -1) {
400 if (ioctl(fd, SGFRU_UPDATEPAYLOAD, &payload) != 0) {
413 int fd;
421 if ((fd = fru_open_dev()) == -1) {
428 if (ioctl(fd, SGFRU_APPENDPACKET, &appendpkt) != 0) {
445 int fd;
453 if ((fd = fru_open_dev()) == -1) {
457 if (ioctl(fd, SGFRU_DELETEPACKET, &delpacket) != 0) {