cls
cls();
void cls(void);
cls();
cls();
cls();
cls();
cls();
cls();
cls();
cls();
cls();
cls();
cls();
struct mixer_devinfo dev, cls;
cls.index = dev.mixer_class;
if (ioctl(hdl->fd, AUDIO_MIXER_DEVINFO, &cls) < 0)
if (strcmp(cls.label.name, cn) == 0 &&
range2cidrlist(struct cidr *list, u_int *cli, u_int *cls, u_int32_t start,
if (*cls <= *cli + 1) { /* one extra for terminator */
tmp = reallocarray(list, *cls + 32,
*cls += 32;
u_int cli, cls, i;
cls = (blc / 2) + (blc / 20) + 1;
cl = reallocarray(NULL, cls, sizeof(struct cidr));
cl = range2cidrlist(cl, &cli, &cls, bstart, addr - 1);
log_debug(int cls, int level, const char *fmt, ...)
log_debug_buf(int cls, int level, const char *header, const u_int8_t *buf,
int cls, level;
if (sscanf(optarg, "%d=%d", &cls, &level) != 2) {
for (cls = 0; cls < LOG_ENDCLASS;
cls++)
log_debug_cmd(cls, level);
log_debug_cmd(cls, level);
log_debug(int cls, int level, const char *fmt, ...)
if (cls >= 0 && (log_level[cls] == 0 || level > log_level[cls]))
_log_print(0, LOG_INFO, fmt, ap, cls, level);
log_debug_buf(int cls, int level, const char *header, const u_int8_t *buf,
if (cls >= 0 && (log_level[cls] == 0 || level > log_level[cls]))
log_debug(cls, level, "%s:", header);
log_debug(cls, level, "%s", s);
log_debug(cls, level, "%s", s);
log_debug_cmd(int cls, int level)
if (cls < 0 || cls >= LOG_ENDCLASS) {
log_print("log_debug_cmd: invalid debugging class %d", cls);
"class %d", level, cls);
if (level == log_level[cls])
cls);
"for class %d", log_level[cls], level, cls);
log_level[cls] = level;
sa_dump(int cls, int level, char *header, struct sa *sa)
LOG_DBG((cls, level, "%s: %p %s phase %d doi %d flags 0x%x", header,
LOG_DBG((cls, level, "%s: icookie %08x%08x rcookie %08x%08x", header,
LOG_DBG((cls, level, "%s: msgid %08x refcnt %d", header,
LOG_DBG((cls, level, "%s: life secs %llu kb %llu", header, sa->seconds,
LOG_DBG((cls, level, "%s: suite %d proto %d", header,
LOG_DBG((cls, level,
LOG_DBG((cls, level, "%s: %s, %s", header,
LOG_DBG_BUF((cls, level, spi_header,
int cls, level;
if (sscanf(cmd, "D %d %d", &cls, &level) == 2) {
log_debug_cmd(cls, level);
for (cls = 0; cls < LOG_ENDCLASS; cls++)
log_debug_cmd(cls, level);
u_int fat, bss, rds, cls, dir, lsn, x, x1, x2;
cls = (bpb.bsec - x1) / bpb.spc;
if (cls > x)
cls = x;
cls);
if (cls < mincls(fat))
errx(1, "%u clusters too few clusters for FAT%u, need %u", cls, fat,
if (cls > maxcls(fat)) {
cls = maxcls(fat);
bpb.bsec = x1 + (cls + 1) * bpb.spc - 1;
"(%u bytes/cluster)\n", fname, cls * bpb.spc,
cls * bpb.spc == 1 ? "" : "s", cls, fat,
cls == 1 ? "" : "s", bpb.bps * bpb.spc);
struct mixer_devinfo *dev, *cls;
cls = malloc(sizeof(struct mixer_devinfo), M_TEMP, M_WAITOK);
cls->index = dev->mixer_class;
if (sc->ops->query_devinfo(sc->arg, cls) != 0)
if (strcmp(cls->label.name, cn) == 0 &&
free(cls, M_TEMP, sizeof(struct mixer_devinfo));
pcireg_t cls, reg40, reg44;
cls = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG);
cls = (cls >> PCI_CACHELINE_SHIFT) & PCI_CACHELINE_MASK;
cls *= 4;
if (cls > 224) {
cls = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG);
cls &= ~(PCI_CACHELINE_MASK << PCI_CACHELINE_SHIFT);
cls |= ((224/4) << PCI_CACHELINE_SHIFT);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG, cls);
cls = 224;
if (cls < 32)
cls = 32;
cls = (cls + 31) / 32;
if ((reg40 & 0x7) < cls)
ba5_write_4(sc, 0x40, (reg40 & ~0x07) | cls);
if ((reg44 & 0x7) < cls)
ba5_write_4(sc, 0x44, (reg44 & ~0x07) | cls);
int cls = fields[i].infp->mixer_class;
if (cls >= 0 && cls < ndev)
catstr(infos[cls].label.name, fields[i].name,
u_int bss, rds, cls, dir, lsn, x, x1, x2;
cls = (bpb.bsec - x1) / bpb.spc;
if (cls > x)
cls = x;
cls);
if (cls < mincls(o.fat_type)) {
warnx("%u clusters too few clusters for FAT%u, need %u", cls,
if (cls > maxcls(o.fat_type)) {
cls = maxcls(o.fat_type);
bpb.bsec = x1 + (cls + 1) * bpb.spc - 1;
"(%u bytes/cluster)\n", fname, cls * bpb.spc,
cls * bpb.spc == 1 ? "" : "s", cls, o.fat_type,
cls == 1 ? "" : "s", bpb.bps * bpb.spc);