Lines Matching defs:fd
51 mfi_ctrl_get_properties(int fd, struct mfi_ctrl_props *info)
54 return (mfi_dcmd_command(fd, MFI_DCMD_CTRL_GET_PROPS, info,
59 mfi_ctrl_set_properties(int fd, struct mfi_ctrl_props *info)
62 return (mfi_dcmd_command(fd, MFI_DCMD_CTRL_SET_PROPS, info,
73 int error, fd;
81 fd = mfi_open(mfi_unit, O_RDWR);
82 if (fd < 0) {
88 error = mfi_ctrl_get_properties(fd, &ctrl_props);
92 close(fd);
100 error = mfi_ctrl_set_properties(fd, &ctrl_props);
104 close(fd);
108 error = mfi_ctrl_get_properties(fd, &ctrl_props);
112 close(fd);
125 int error, fd;
133 fd = mfi_open(mfi_unit, O_RDWR);
134 if (fd < 0) {
140 error = mfi_ctrl_get_properties(fd, &ctrl_props);
144 close(fd);
152 error = mfi_ctrl_set_properties(fd, &ctrl_props);
156 close(fd);
160 error = mfi_ctrl_get_properties(fd, &ctrl_props);
164 close(fd);