Lines Matching refs:cfg
284 static int sc6000_hw_cfg_write(char __iomem *vport, const int *cfg) in sc6000_hw_cfg_write() argument
294 if (sc6000_write(vport, cfg[0]) < 0) { in sc6000_hw_cfg_write()
295 snd_printk(KERN_ERR "DATA 0x%x: failed!\n", cfg[0]); in sc6000_hw_cfg_write()
298 if (sc6000_write(vport, cfg[1]) < 0) { in sc6000_hw_cfg_write()
299 snd_printk(KERN_ERR "DATA 0x%x: failed!\n", cfg[1]); in sc6000_hw_cfg_write()
367 static void sc6000_hw_cfg_encode(char __iomem *vport, int *cfg, in sc6000_hw_cfg_encode() argument
371 cfg[0] = 0; in sc6000_hw_cfg_encode()
372 cfg[1] = 0; in sc6000_hw_cfg_encode()
374 cfg[0] |= 1; in sc6000_hw_cfg_encode()
376 cfg[0] |= (xmpu & 0x30) >> 2; in sc6000_hw_cfg_encode()
377 cfg[1] |= 0x20; in sc6000_hw_cfg_encode()
380 cfg[0] |= 0x10; in sc6000_hw_cfg_encode()
381 cfg[0] |= 0x40; /* always set */ in sc6000_hw_cfg_encode()
383 cfg[0] |= 0x02; in sc6000_hw_cfg_encode()
384 cfg[1] |= 0x80; /* enable WSS system */ in sc6000_hw_cfg_encode()
385 cfg[1] &= ~0x40; /* disable IDE */ in sc6000_hw_cfg_encode()
386 snd_printd("hw cfg %x, %x\n", cfg[0], cfg[1]); in sc6000_hw_cfg_encode()
433 int cfg[2]; in sc6000_init_board() local
434 sc6000_hw_cfg_encode(vport, &cfg[0], port[dev], mpu_port[dev], in sc6000_init_board()
436 if (sc6000_hw_cfg_write(vport, cfg) < 0) { in sc6000_init_board()