Lines Matching refs:f_data

194 #define f_data f_fglob->fg_data
872 ((struct socket *)fp->f_data)->so_pgid = tmp;
895 *(int *)datap = ((struct socket *)fp->f_data)->so_pgid;
2323 socket_lock((struct socket *)fp->f_data, 1);
2324 np = ((struct socket *)fp->f_data)->so_evlist.tqh_first;
2327 PIPE_LOCK((struct pipe *)fp->f_data);
2328 np = ((struct pipe *)fp->f_data)->pipe_evlist.tqh_first;
2349 socket_unlock((struct socket *)fp->f_data, 1);
2352 PIPE_UNLOCK((struct pipe *)fp->f_data);
2367 TAILQ_INSERT_TAIL(&((struct socket *)fp->f_data)->so_evlist, evq, ee_slist);
2368 postevent((struct socket *)fp->f_data, 0, EV_RWBYTES); // catch existing events
2370 socket_unlock((struct socket *)fp->f_data, 1);
2374 TAILQ_INSERT_TAIL(&((struct pipe *)fp->f_data)->pipe_evlist, evq, ee_slist);
2375 postpipeevent((struct pipe *)fp->f_data, EV_RWBYTES);
2377 PIPE_UNLOCK((struct pipe *)fp->f_data);
2562 socket_lock((struct socket *)fp->f_data, 1);
2563 evq = ((struct socket *)fp->f_data)->so_evlist.tqh_first;
2566 PIPE_LOCK((struct pipe *)fp->f_data);
2567 evq = ((struct pipe *)fp->f_data)->pipe_evlist.tqh_first;
2592 socket_unlock((struct socket *)fp->f_data, 1);
2595 PIPE_UNLOCK((struct pipe *)fp->f_data);
2607 TAILQ_REMOVE(&((struct socket *)fp->f_data)->so_evlist, evq, ee_slist);
2608 socket_unlock((struct socket *)fp->f_data, 1);
2612 TAILQ_REMOVE(&((struct pipe *)fp->f_data)->pipe_evlist, evq, ee_slist);
2613 PIPE_UNLOCK((struct pipe *)fp->f_data);
2645 socket_unlock((struct socket *)fp->f_data, 1);
2648 PIPE_UNLOCK((struct pipe *)fp->f_data);
2678 postevent((struct socket *)fp->f_data, 0, flag);
2679 socket_unlock((struct socket *)fp->f_data, 1);
2683 postpipeevent((struct pipe *)fp->f_data, flag);
2684 PIPE_UNLOCK((struct pipe *)fp->f_data);
2687 KERNEL_DEBUG(DBG_MISC_MOD|DBG_FUNC_END, evq->ee_req.er_handle,evq->ee_eventmask,(uint32_t)fp->f_data,flag,0);
2702 socket_lock((struct socket *)fp->f_data, 1);
2703 evq = ((struct socket *)fp->f_data)->so_evlist.tqh_first;
2707 PIPE_LOCK((struct pipe *)fp->f_data);
2708 evq = ((struct pipe *)fp->f_data)->pipe_evlist.tqh_first;
2724 socket_unlock((struct socket *)fp->f_data, 1);
2727 PIPE_UNLOCK((struct pipe *)fp->f_data);
2737 TAILQ_REMOVE(&((struct socket *)fp->f_data)->so_evlist, evq, ee_slist);
2738 socket_unlock((struct socket *)fp->f_data, 1);
2742 TAILQ_REMOVE(&((struct pipe *)fp->f_data)->pipe_evlist, evq, ee_slist);
2743 PIPE_UNLOCK((struct pipe *)fp->f_data);