Lines Matching defs:arg
470 static int set_multcount(ide_drive_t *drive, int arg)
474 if (arg < 0 || arg > (drive->id[ATA_ID_MAX_MULTSECT] & 0xff))
483 drive->mult_req = arg;
488 return (drive->mult_count == arg) ? 0 : -EIO;
493 static int set_nowerr(ide_drive_t *drive, int arg)
495 if (arg < 0 || arg > 1)
498 if (arg)
503 drive->bad_wstat = arg ? BAD_R_STAT : BAD_W_STAT;
559 static int set_wcache(ide_drive_t *drive, int arg)
563 if (arg < 0 || arg > 1)
568 arg ? SETFEATURES_WC_ON : SETFEATURES_WC_OFF, 0);
570 if (arg)
599 static int set_acoustic(ide_drive_t *drive, int arg)
601 if (arg < 0 || arg > 254)
605 arg ? SETFEATURES_AAM_ON : SETFEATURES_AAM_OFF, arg);
607 drive->acoustic = arg;
620 static int set_addressing(ide_drive_t *drive, int arg)
622 if (arg < 0 || arg > 2)
625 if (arg && ((drive->hwif->host_flags & IDE_HFLAG_NO_LBA48) ||
629 if (arg == 2)
630 arg = 0;
632 if (arg)