Lines Matching refs:fd
32 int fd = open(fileName, O_RDWR); in TrivalOpenRtgNode() local
33 if (fd < 0) { in TrivalOpenRtgNode()
37 return fd; in TrivalOpenRtgNode()
43 int fd = open(fileName, O_RDWR); in TrivalOpenAuthCtrlNode() local
44 if (fd < 0) { in TrivalOpenAuthCtrlNode()
48 return fd; in TrivalOpenAuthCtrlNode()
54 int fd = open(fileName, O_RDWR); in TrivalOpenQosCtrlNode() local
55 if (fd < 0) { in TrivalOpenQosCtrlNode()
59 return fd; in TrivalOpenQosCtrlNode()
71 int fd = TrivalOpenRtgNode(); in EnableRtg() local
72 if (fd < 0) { in EnableRtg()
73 return fd; in EnableRtg()
76 ret = ioctl(fd, CMD_ID_SET_ENABLE, &enableData); in EnableRtg()
81 close(fd); in EnableRtg()
89 int fd; in AuthEnable() local
92 fd = TrivalOpenAuthCtrlNode(); in AuthEnable()
93 if (fd < 0) { in AuthEnable()
94 return fd; in AuthEnable()
103 ret = ioctl(fd, BASIC_AUTH_CTRL_OPERATION, &data); in AuthEnable()
109 close(fd); in AuthEnable()
116 int fd; in AuthSwitch() local
119 fd = TrivalOpenAuthCtrlNode(); in AuthSwitch()
120 if (fd < 0) { in AuthSwitch()
121 return fd; in AuthSwitch()
130 ret = ioctl(fd, BASIC_AUTH_CTRL_OPERATION, &data); in AuthSwitch()
136 close(fd); in AuthSwitch()
143 int fd; in AuthDelete() local
146 fd = TrivalOpenAuthCtrlNode(); in AuthDelete()
147 if (fd < 0) { in AuthDelete()
148 return fd; in AuthDelete()
154 ret = ioctl(fd, BASIC_AUTH_CTRL_OPERATION, &data); in AuthDelete()
160 close(fd); in AuthDelete()
167 int fd; in AuthPause() local
170 fd = TrivalOpenAuthCtrlNode(); in AuthPause()
171 if (fd < 0) { in AuthPause()
172 return fd; in AuthPause()
181 ret = ioctl(fd, BASIC_AUTH_CTRL_OPERATION, &data); in AuthPause()
187 close(fd); in AuthPause()
194 int fd; in AuthGet() local
197 fd = TrivalOpenAuthCtrlNode(); in AuthGet()
198 if (fd < 0) { in AuthGet()
199 return fd; in AuthGet()
205 ret = ioctl(fd, BASIC_AUTH_CTRL_OPERATION, &data); in AuthGet()
209 close(fd); in AuthGet()
219 int fd = TrivalOpenAuthCtrlNode(); in AuthEnhance() local
220 if (fd < 0) { in AuthEnhance()
221 return fd; in AuthEnhance()
226 ret = ioctl(fd, ENHANCE_AUTH_CTRL_OPERATION, &data); in AuthEnhance()
227 close(fd); in AuthEnhance()
244 int fd; in QosApplyForOther() local
248 fd = TrivalOpenQosCtrlNode(); in QosApplyForOther()
249 if (fd < 0) { in QosApplyForOther()
250 return fd; in QosApplyForOther()
257 ret = ioctl(fd, QOS_CTRL_BASIC_OPERATION, &data); in QosApplyForOther()
261 close(fd); in QosApplyForOther()
268 int fd; in QosLeave() local
271 fd = TrivalOpenQosCtrlNode(); in QosLeave()
272 if (fd < 0) { in QosLeave()
273 return fd; in QosLeave()
279 ret = ioctl(fd, QOS_CTRL_BASIC_OPERATION, &data); in QosLeave()
283 close(fd); in QosLeave()
290 int fd; in QosLeaveForOther() local
293 fd = TrivalOpenQosCtrlNode(); in QosLeaveForOther()
294 if (fd < 0) { in QosLeaveForOther()
295 return fd; in QosLeaveForOther()
301 ret = ioctl(fd, QOS_CTRL_BASIC_OPERATION, &data); in QosLeaveForOther()
305 close(fd); in QosLeaveForOther()
311 int fd; in QosPolicySet() local
314 fd = TrivalOpenQosCtrlNode(); in QosPolicySet()
315 if (fd < 0) { in QosPolicySet()
316 return fd; in QosPolicySet()
319 ret = ioctl(fd, QOS_CTRL_POLICY_OPERATION, policyDatas); in QosPolicySet()
323 close(fd); in QosPolicySet()
335 int fd; in QosGetForOther() local
338 fd = TrivalOpenQosCtrlNode(); in QosGetForOther()
339 if (fd < 0) { in QosGetForOther()
340 return fd; in QosGetForOther()
348 ret = ioctl(fd, QOS_CTRL_BASIC_OPERATION, &data); in QosGetForOther()
354 close(fd); in QosGetForOther()