Lines Matching defs:context
72 read_nodedesc_ioctl(struct ibv_context *context,
75 write_nodedesc_ioctl(struct ibv_context *context,
140 struct ibv_context *context;
143 /* Get the context for the device */
144 context = ibv_open_device(device);
145 if (!context) {
150 if (context->device != device) {
174 rc = read_nodedesc_ioctl(context, nodedescp);
188 ibv_close_device(context);
196 struct ibv_context *context;
202 /* Get context for the device */
203 context = ibv_open_device(device);
204 if (!context) {
209 if (context->device != device) {
227 rc = write_nodedesc_ioctl(context, nodedescp);
234 ibv_close_device(context);
304 read_nodedesc_ioctl(struct ibv_context *context,
313 if (!context || !nodedesc) {
317 ret = ioctl(context->cmd_fd, UVERBS_IOCTL_GET_NODEDESC, nodedesc);
331 write_nodedesc_ioctl(struct ibv_context *context,
339 if (!context || !nodedesc)
342 ret = ioctl(context->cmd_fd, UVERBS_IOCTL_SET_NODEDESC, nodedesc);