• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/miscutils/

Lines Matching refs:parse_opts

1884 static void parse_opts(smallint *get, smallint *set, unsigned long *value, int min, int max)
1941 if (c == 'u') parse_opts(&get_unmask, &set_unmask, &unmask, 0, 1);
1942 USE_FEATURE_HDPARM_HDIO_GETSET_DMA(if (c == 'd') parse_opts(&get_dma, &set_dma, &dma, 0, 9));
1943 if (c == 'n') parse_opts(&get_nowerr, &set_nowerr, &nowerr, 0, 1);
1945 if (c == 'r') parse_opts(&get_readonly, &set_readonly, &readonly, 0, 1);
1946 if (c == 'm') parse_opts(&get_mult, &set_mult, &mult, 0, INT_MAX /*32*/);
1947 if (c == 'c') parse_opts(&get_io32bit, &set_io32bit, &io32bit, 0, INT_MAX /*8*/);
1948 if (c == 'k') parse_opts(&get_keep, &set_keep, &keep, 0, 1);
1949 if (c == 'a') parse_opts(&get_readahead, &set_readahead, &Xreadahead, 0, INT_MAX);
1950 if (c == 'B') parse_opts(&get_apmmode, &set_apmmode, &apmmode, 1, 255);
1954 if (c == 'S') parse_opts(&get_standby, &set_standby, &standby_requested, 0, INT_MAX);
1955 if (c == 'D') parse_opts(&get_defects, &set_defects, &defects, 0, INT_MAX);
1956 if (c == 'P') parse_opts(&get_prefetch, &set_prefetch, &prefetch, 0, INT_MAX);
1958 if (c == 'K') parse_opts(&get_dkeep, &set_dkeep, &prefetch, 0, 1);
1959 if (c == 'A') parse_opts(&get_lookahead, &set_lookahead, &lookahead, 0, 1);
1960 if (c == 'L') parse_opts(&get_doorlock, &set_doorlock, &doorlock, 0, 1);
1961 if (c == 'W') parse_opts(&get_wcache, &set_wcache, &wcache, 0, 1);
1968 USE_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF(if (c == 'U') parse_opts(NULL, &unregister_hwif, &hwif, 0, INT_MAX));
1972 parse_opts(&get_dma_q, &set_dma_q, &dma_q, 0, INT_MAX);
1974 parse_opts(&get_dma_q, NULL, NULL, 0, 0);
1979 USE_FEATURE_HDPARM_HDIO_TRISTATE_HWIF(if (c == 'x') parse_opts(NULL, &perform_tristate, &tristate, 0, 1));
1980 USE_FEATURE_HDPARM_HDIO_TRISTATE_HWIF(if (c == 'b') parse_opts(&get_busstate, &set_busstate, &busstate, 0, 2));
1983 parse_opts(NULL, &scan_hwif, &hwif_data, 0, INT_MAX);