• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/block/

Lines Matching refs:iop

26  * @iop:      The parent iopoll structure
33 void blk_iopoll_sched(struct blk_iopoll *iop)
38 list_add_tail(&iop->list, &__get_cpu_var(blk_cpu_iopoll));
45 * __blk_iopoll_complete - Mark this @iop as un-polled again
46 * @iop: The parent iopoll structure
52 void __blk_iopoll_complete(struct blk_iopoll *iop)
54 list_del(&iop->list);
56 clear_bit_unlock(IOPOLL_F_SCHED, &iop->state);
61 * blk_iopoll_complete - Mark this @iop as un-polled again
62 * @iop: The parent iopoll structure
89 struct blk_iopoll *iop;
107 iop = list_entry(list->next, struct blk_iopoll, list);
109 weight = iop->weight;
111 if (test_bit(IOPOLL_F_SCHED, &iop->state))
112 work = iop->poll(iop, weight);
127 if (blk_iopoll_disable_pending(iop))
128 __blk_iopoll_complete(iop);
130 list_move_tail(&iop->list, list);
141 * blk_iopoll_disable - Disable iopoll on this @iop
142 * @iop: The parent iopoll structure
147 void blk_iopoll_disable(struct blk_iopoll *iop)
149 set_bit(IOPOLL_F_DISABLE, &iop->state);
150 while (test_and_set_bit(IOPOLL_F_SCHED, &iop->state))
152 clear_bit(IOPOLL_F_DISABLE, &iop->state);
157 * blk_iopoll_enable - Enable iopoll on this @iop
158 * @iop: The parent iopoll structure
161 * Enable iopoll on this @iop. Note that the handler run will not be
164 void blk_iopoll_enable(struct blk_iopoll *iop)
166 BUG_ON(!test_bit(IOPOLL_F_SCHED, &iop->state));
168 clear_bit_unlock(IOPOLL_F_SCHED, &iop->state);
173 * blk_iopoll_init - Initialize this @iop
174 * @iop: The parent iopoll structure
182 void blk_iopoll_init(struct blk_iopoll *iop, int weight, blk_iopoll_fn *poll_fn)
184 memset(iop, 0, sizeof(*iop));
185 INIT_LIST_HEAD(&iop->list);
186 iop->weight = weight;
187 iop->poll = poll_fn;
188 set_bit(IOPOLL_F_SCHED, &iop->state);