Home
last modified time | relevance | path

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

/openbmc/u-boot/common/
H A Dhwconfig.c30 size_t *arglen) in hwconfig_parse() argument
48 if (!arglen) in hwconfig_parse()
56 *arglen = min(maxlen, strlen(str)) - optlen - 1; in hwconfig_parse()
58 *arglen = arg_end - end - 1; in hwconfig_parse()
71 static const char *__hwconfig(const char *opt, size_t *arglen, in __hwconfig() argument
88 opt, ";", ':', arglen); in __hwconfig()
94 opt, ";", ':', arglen); in __hwconfig()
99 opt, ";", ':', arglen); in __hwconfig()
140 const char *hwconfig_arg_f(const char *opt, size_t *arglen, char *buf) in hwconfig_arg_f() argument
142 return __hwconfig(opt, arglen, buf); in hwconfig_arg_f()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/core/
H A 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 …]
/openbmc/qemu/hw/sd/
H A Dssi-sd.c64 int32_t arglen; member
149 s->arglen = sdbus_do_command(&s->sdbus, &request, longresp); in OBJECT_DECLARE_SIMPLE_TYPE()
150 if (s->arglen <= 0) { in OBJECT_DECLARE_SIMPLE_TYPE()
151 s->arglen = 1; in OBJECT_DECLARE_SIMPLE_TYPE()
156 s->arglen = 1; in OBJECT_DECLARE_SIMPLE_TYPE()
166 s->arglen = 0; in OBJECT_DECLARE_SIMPLE_TYPE()
169 if (s->arglen == 4) { in OBJECT_DECLARE_SIMPLE_TYPE()
174 s->arglen = sdbus_do_command(&s->sdbus, &request, longresp); in OBJECT_DECLARE_SIMPLE_TYPE()
175 if (s->arglen <= 0) { in OBJECT_DECLARE_SIMPLE_TYPE()
176 s->arglen = 1; in OBJECT_DECLARE_SIMPLE_TYPE()
[all …]
/openbmc/u-boot/include/
H A Dhwconfig.h20 extern const char *hwconfig_arg_f(const char *opt, size_t *arglen, char *buf);
34 static inline const char *hwconfig_arg_f(const char *opt, size_t *arglen, in hwconfig_arg_f() argument
37 *arglen = 0; in hwconfig_arg_f()
72 static inline const char *hwconfig_arg(const char *opt, size_t *arglen) in hwconfig_arg() argument
74 return hwconfig_arg_f(opt, arglen, NULL); in hwconfig_arg()
/openbmc/linux/drivers/firmware/
H A Dqcom_scm-legacy.c137 u8 arglen = desc->arginfo & 0xf; in scm_legacy_call() local
144 const size_t cmd_len = arglen * sizeof(__le32); in scm_legacy_call()
161 for (i = 0; i < arglen; i++) in scm_legacy_call()
230 size_t arglen = desc->arginfo & 0xf; in scm_legacy_call_atomic() local
232 BUG_ON(arglen > SCM_LEGACY_ATOMIC_N_REG_ARGS); in scm_legacy_call_atomic()
234 arm_smccc_smc(SCM_LEGACY_ATOMIC_ID(desc->svc, desc->cmd, arglen), in scm_legacy_call_atomic()
H A Dqcom_scm-smc.c153 int arglen = desc->arginfo & 0xf; in __scm_smc_call() local
174 if (unlikely(arglen > SCM_SMC_N_REG_ARGS)) { in __scm_smc_call()
/openbmc/linux/init/
H A Dversion.c24 size_t arglen; in early_hostname() local
26 arglen = strlcpy(init_uts_ns.name.nodename, arg, bufsize); in early_hostname()
27 if (arglen > maxlen) { in early_hostname()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dbase.c497 nvkm_clk_nstate(struct nvkm_clk *clk, const char *mode, int arglen) in nvkm_clk_nstate() argument
501 if (clk->allow_reclock && !strncasecmpz(mode, "auto", arglen)) in nvkm_clk_nstate()
504 if (strncasecmpz(mode, "disabled", arglen)) { in nvkm_clk_nstate()
505 char save = mode[arglen]; in nvkm_clk_nstate()
508 ((char *)mode)[arglen] = '\0'; in nvkm_clk_nstate()
514 ((char *)mode)[arglen] = save; in nvkm_clk_nstate()
653 int ret, idx, arglen; in nvkm_clk_ctor() local
690 mode = nvkm_stropt(device->cfgopt, "NvClkMode", &arglen); in nvkm_clk_ctor()
692 clk->ustate_ac = nvkm_clk_nstate(clk, mode, arglen); in nvkm_clk_ctor()
693 clk->ustate_dc = nvkm_clk_nstate(clk, mode, arglen); in nvkm_clk_ctor()
[all …]
/openbmc/u-boot/board/freescale/p1022ds/
H A Dp1022ds.c105 size_t arglen; in misc_init_r() local
158 audclk = hwconfig_arg("audclk", &arglen); in misc_init_r()
317 size_t arglen; in ft_codec_setup() local
320 audclk = hwconfig_arg("audclk", &arglen); in ft_codec_setup()
/openbmc/qemu/trace/
H A Dsimple.h33 int trace_record_start(TraceBufferRecord *rec, uint32_t id, size_t arglen);
/openbmc/linux/drivers/scsi/
H A 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()
/openbmc/qemu/linux-user/
H A Dmain.c561 int arglen = strlen(arginfo->argv); in usage() local
563 arglen += strlen(arginfo->example) + 1; in usage()
568 if (arglen > maxarglen) { in usage()
569 maxarglen = arglen; in usage()
/openbmc/linux/drivers/block/
H A Dps3disk.c57 u32 arglen; member
348 ata_cmnd.size = ata_cmnd.arglen = ATA_ID_WORDS * 2; in ps3disk_identify()
356 ata_cmnd.arglen); in ps3disk_identify()
/openbmc/linux/drivers/leds/
H A 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()
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dfsl_corenet_serdes.c503 size_t arglen; in fsl_serdes_init() local
555 hwconfig_subarg_f("serdes", srds_lpd_opt, &arglen, buf); in fsl_serdes_init()
/openbmc/linux/arch/x86/kernel/cpu/
H A Dintel.c1031 static inline bool match_option(const char *arg, int arglen, const char *opt)
1049 return len == arglen; in match_option()
1035 match_option(const char * arg,int arglen,const char * opt) match_option() argument
H A Dcommon.c1530 int arglen, taint = 0; in cpu_parse_early_param() local
1556 arglen = cmdline_find_option(boot_command_line, "clearcpuid", arg, sizeof(arg)); in cpu_parse_early_param()
1557 if (arglen <= 0) in cpu_parse_early_param()
H A Dbugs.c1230 static inline bool match_option(const char *arg, int arglen, const char *opt) in match_option() argument
1234 return len == arglen && !strncmp(arg, opt, len); in match_option()
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
H A Dcpu.c1049 size_t arglen; in config_core_prefetch() local
1057 &arglen, buf); in config_core_prefetch()