• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/

Lines Matching defs:stage

48  *		of pipeline stages (each stage is about 26 KB with my tape).
438 * A pipeline stage.
443 struct idetape_stage_s *next; /* Pointer to the next stage */
600 /* The first stage which will be removed from the pipeline */
602 /* The currently active stage */
608 /* Optional free stage which we can use */
611 /* Wasted space in each stage */
750 #define IDETAPE_PIPELINE_ERROR 3 /* Error detected in a pipeline stage */
807 REQ_IDETAPE_PC1 = (1 << 0), /* packet command (first stage) */
808 REQ_IDETAPE_PC2 = (1 << 1), /* packet command (second stage) */
1210 * idetape_active_next_stage will declare the next stage as "active".
1215 idetape_stage_t *stage = tape->next_stage;
1216 struct request *rq = &stage->rq;
1223 if (stage == NULL) {
1224 printk(KERN_ERR "ide-tape: bug: Trying to activate a non existing stage\n");
1231 rq->special = (void *)stage->bh;
1233 tape->active_stage = stage;
1234 tape->next_stage = stage->next;
1260 * idetape_kfree_stage calls kfree to completely free a stage, along with
1263 static void __idetape_kfree_stage (idetape_stage_t *stage)
1265 struct idetape_bh *prev_bh, *bh = stage->bh;
1281 kfree(stage);
1284 static void idetape_kfree_stage (idetape_tape_t *tape, idetape_stage_t *stage)
1286 __idetape_kfree_stage(stage);
1296 idetape_stage_t *stage;
1308 printk(KERN_ERR "ide-tape: bug: Trying to free our active pipeline stage\n");
1312 stage = tape->first_stage;
1313 tape->first_stage = stage->next;
1314 idetape_kfree_stage(tape, stage);
1335 idetape_stage_t *stage = new_last_stage->next;
1342 while (stage) {
1343 nstage = stage->next;
1344 idetape_kfree_stage(tape, stage);
1347 stage = nstage;
2231 * stage, along with all the necessary small buffers which together make
2235 * Returns a pointer to the new allocated stage, or NULL if we
2236 * can't (or don't want to) allocate a stage.
2243 idetape_stage_t *stage;
2248 if ((stage = kmalloc(sizeof (idetape_stage_t),GFP_KERNEL)) == NULL)
2250 stage->next = NULL;
2252 bh = stage->bh = kmalloc(sizeof(struct idetape_bh), GFP_KERNEL);
2295 return stage;
2297 __idetape_kfree_stage(stage);
2319 static int idetape_copy_stage_from_user (idetape_tape_t *tape, idetape_stage_t *stage, const char __user *buf, int n)
2349 static int idetape_copy_stage_to_user (idetape_tape_t *tape, char __user *buf, idetape_stage_t *stage, int n)
2394 static void idetape_switch_buffers (idetape_tape_t *tape, idetape_stage_t *stage)
2398 tmp = stage->bh;
2399 stage->bh = tape->merge_stage->bh;
2405 * idetape_add_stage_tail adds a new stage at the end of the pipeline.
2407 static void idetape_add_stage_tail (ide_drive_t *drive,idetape_stage_t *stage)
2417 stage->next = NULL;
2419 tape->last_stage->next=stage;
2421 tape->first_stage = tape->next_stage=stage;
2422 tape->last_stage = stage;
2452 /* The stage and its struct request have been deallocated */
2668 /* Remove merge stage. */
2857 * 1. Try to allocate a new pipeline stage.
2860 * 3. If we still can't allocate a stage, fallback to
2876 * Attempt to allocate a new stage.
3197 idetape_stage_t *stage;
3202 stage = tape->first_stage;
3203 while (stage != NULL) {
3204 rq = &stage->rq;
3208 stage = stage->next;
3318 * We have reached the active stage in the read pipeline.
4240 ide_add_setting(drive, "stage", SETTING_READ, TYPE_INT, 0, 0xffff, 1, 1024, &tape->stage_size, NULL);
4310 printk(KERN_NOTICE "ide-tape: decreasing stage size\n");