Home
last modified time | relevance | path

Searched refs:arglen (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/core/
Doption.c28 nvkm_stropt(const char *optstr, const char *opt, int *arglen) in nvkm_stropt() argument
36 *arglen = strcspn(optstr, ",="); in nvkm_stropt()
37 return *arglen ? optstr : NULL; in nvkm_stropt()
56 int arglen; in nvkm_boolopt() local
58 optstr = nvkm_stropt(optstr, opt, &arglen); in nvkm_boolopt()
60 if (!strncasecmpz(optstr, "0", arglen) || in nvkm_boolopt()
61 !strncasecmpz(optstr, "no", arglen) || in nvkm_boolopt()
62 !strncasecmpz(optstr, "off", arglen) || in nvkm_boolopt()
63 !strncasecmpz(optstr, "false", arglen)) in nvkm_boolopt()
66 if (!strncasecmpz(optstr, "1", arglen) || in nvkm_boolopt()
[all …]
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dbase.c496 nvkm_clk_nstate(struct nvkm_clk *clk, const char *mode, int arglen) in nvkm_clk_nstate() argument
500 if (clk->allow_reclock && !strncasecmpz(mode, "auto", arglen)) in nvkm_clk_nstate()
503 if (strncasecmpz(mode, "disabled", arglen)) { in nvkm_clk_nstate()
504 char save = mode[arglen]; in nvkm_clk_nstate()
507 ((char *)mode)[arglen] = '\0'; in nvkm_clk_nstate()
513 ((char *)mode)[arglen] = save; in nvkm_clk_nstate()
656 int ret, idx, arglen; in nvkm_clk_ctor() local
698 mode = nvkm_stropt(device->cfgopt, "NvClkMode", &arglen); in nvkm_clk_ctor()
700 clk->ustate_ac = nvkm_clk_nstate(clk, mode, arglen); in nvkm_clk_ctor()
701 clk->ustate_dc = nvkm_clk_nstate(clk, mode, arglen); in nvkm_clk_ctor()
[all …]
/Linux-v5.4/drivers/scsi/
Dps3rom.c48 u32 arglen; /* length above */ member
99 atapi_cmnd.blocks = atapi_cmnd.arglen = scsi_bufflen(cmd); in ps3rom_atapi_request()
130 atapi_cmnd.arglen, &dev->tag); in ps3rom_atapi_request()
/Linux-v5.4/drivers/block/
Dps3disk.c58 u32 arglen; member
363 ata_cmnd.size = ata_cmnd.arglen = ATA_ID_WORDS * 2; in ps3disk_identify()
371 ata_cmnd.arglen); in ps3disk_identify()
/Linux-v5.4/drivers/leds/
Dleds-blinkm.c297 int arglen = blinkm_cmds[cmd].nr_args; in blinkm_write() local
303 if (arglen == 0) in blinkm_write()
306 for (i = 0; i < arglen; i++) { in blinkm_write()
/Linux-v5.4/drivers/firmware/
Dqcom_scm-64.c79 int arglen = desc->arginfo & 0xf; in qcom_scm_call() local
88 if (unlikely(arglen > N_REGISTER_ARGS)) { in qcom_scm_call()
/Linux-v5.4/arch/x86/kernel/cpu/
Dbugs.c489 static inline bool match_option(const char *arg, int arglen, const char *opt) in match_option() argument
493 return len == arglen && !strncmp(arg, opt, len); in match_option()