Searched refs:mic (Results 1 - 200 of 200) sorted by relevance

/linux-4.1.27/drivers/isdn/hisax/
H A Dmic.c1 /* $Id: mic.c,v 1.12.2.4 2004/01/13 23:48:39 keil Exp $
3 * low level stuff for mic cards
68 return (readreg(cs->hw.mic.adr, cs->hw.mic.isac, offset)); ReadISAC()
74 writereg(cs->hw.mic.adr, cs->hw.mic.isac, offset, value); WriteISAC()
80 readfifo(cs->hw.mic.adr, cs->hw.mic.isac, 0, data, size); ReadISACfifo()
86 writefifo(cs->hw.mic.adr, cs->hw.mic.isac, 0, data, size); WriteISACfifo()
92 return (readreg(cs->hw.mic.adr, ReadHSCX()
93 cs->hw.mic.hscx, offset + (hscx ? 0x40 : 0))); ReadHSCX()
99 writereg(cs->hw.mic.adr, WriteHSCX()
100 cs->hw.mic.hscx, offset + (hscx ? 0x40 : 0), value); WriteHSCX()
107 #define READHSCX(cs, nr, reg) readreg(cs->hw.mic.adr, \
108 cs->hw.mic.hscx, reg + (nr ? 0x40 : 0))
109 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.mic.adr, \
110 cs->hw.mic.hscx, reg + (nr ? 0x40 : 0), data)
112 #define READHSCXFIFO(cs, nr, ptr, cnt) readfifo(cs->hw.mic.adr, \
113 cs->hw.mic.hscx, (nr ? 0x40 : 0), ptr, cnt)
115 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) writefifo(cs->hw.mic.adr, \
116 cs->hw.mic.hscx, (nr ? 0x40 : 0), ptr, cnt)
128 val = readreg(cs->hw.mic.adr, cs->hw.mic.hscx, HSCX_ISTA + 0x40); mic_interrupt()
132 val = readreg(cs->hw.mic.adr, cs->hw.mic.isac, ISAC_ISTA); mic_interrupt()
136 val = readreg(cs->hw.mic.adr, cs->hw.mic.hscx, HSCX_ISTA + 0x40); mic_interrupt()
142 val = readreg(cs->hw.mic.adr, cs->hw.mic.isac, ISAC_ISTA); mic_interrupt()
148 writereg(cs->hw.mic.adr, cs->hw.mic.hscx, HSCX_MASK, 0xFF); mic_interrupt()
149 writereg(cs->hw.mic.adr, cs->hw.mic.hscx, HSCX_MASK + 0x40, 0xFF); mic_interrupt()
150 writereg(cs->hw.mic.adr, cs->hw.mic.isac, ISAC_MASK, 0xFF); mic_interrupt()
151 writereg(cs->hw.mic.adr, cs->hw.mic.isac, ISAC_MASK, 0x0); mic_interrupt()
152 writereg(cs->hw.mic.adr, cs->hw.mic.hscx, HSCX_MASK, 0x0); mic_interrupt()
153 writereg(cs->hw.mic.adr, cs->hw.mic.hscx, HSCX_MASK + 0x40, 0x0); mic_interrupt()
163 if (cs->hw.mic.cfg_reg) release_io_mic()
164 release_region(cs->hw.mic.cfg_reg, bytecnt); release_io_mic()
197 printk(KERN_INFO "HiSax: mic driver Rev. %s\n", HiSax_getrev(tmp)); setup_mic()
202 cs->hw.mic.cfg_reg = card->para[1]; setup_mic()
204 cs->hw.mic.adr = cs->hw.mic.cfg_reg + MIC_ADR; setup_mic()
205 cs->hw.mic.isac = cs->hw.mic.cfg_reg + MIC_ISAC; setup_mic()
206 cs->hw.mic.hscx = cs->hw.mic.cfg_reg + MIC_HSCX; setup_mic()
208 if (!request_region(cs->hw.mic.cfg_reg, bytecnt, "mic isdn")) { setup_mic()
210 "HiSax: ith mic config port %x-%x already in use\n", setup_mic()
211 cs->hw.mic.cfg_reg, setup_mic()
212 cs->hw.mic.cfg_reg + bytecnt); setup_mic()
215 printk(KERN_INFO "mic: defined at 0x%x IRQ %d\n", setup_mic()
216 cs->hw.mic.cfg_reg, cs->irq); setup_mic()
227 ISACVersion(cs, "mic:"); setup_mic()
228 if (HscxVersion(cs, "mic:")) { setup_mic()
230 "mic: wrong HSCX versions check IO address\n"); setup_mic()
H A DMakefile45 hisax-$(CONFIG_HISAX_MIC) += mic.o isac.o arcofi.o hscx.o
H A Dhisax.h908 struct mic_hw mic; member in union:IsdnCardState::__anon5291
H A Dconfig.c90 "Sedlbauer Speed Card", "USR Sportster", "ith mic Linux",
/linux-4.1.27/Documentation/mic/mpssd/
H A Dmpssd.c46 static void init_mic(struct mic_info *mic);
131 static const char *mic_config_dir = "/etc/sysconfig/mic";
159 tap_configure(struct mic_info *mic, char *dev) tap_configure() argument
178 mic->name, strerror(errno)); tap_configure()
184 mic->name, strerror(errno)); tap_configure()
191 mic->name, strerror(errno)); tap_configure()
195 snprintf(ipaddr, IFNAMSIZ, "172.31.%d.254/24", mic->id); tap_configure()
210 mic->name, strerror(errno)); tap_configure()
216 mic->name, strerror(errno)); tap_configure()
223 mic->name, strerror(errno)); tap_configure()
227 mic->name, __func__, __LINE__); tap_configure()
231 static int tun_alloc(struct mic_info *mic, char *dev) tun_alloc() argument
253 mic->name, __func__, __LINE__, strerror(errno)); tun_alloc()
264 mic->name, __func__, __LINE__, strerror(errno)); tun_alloc()
279 static void set_dp(struct mic_info *mic, int type, void *dp) set_dp() argument
283 mic->mic_console.console_dp = dp; set_dp()
286 mic->mic_net.net_dp = dp; set_dp()
289 mic->mic_virtblk.block_dp = dp; set_dp()
292 mpsslog("%s %s %d not found\n", mic->name, __func__, type); set_dp()
296 static void *get_dp(struct mic_info *mic, int type) get_dp() argument
300 return mic->mic_console.console_dp; get_dp()
302 return mic->mic_net.net_dp; get_dp()
304 return mic->mic_virtblk.block_dp; get_dp()
306 mpsslog("%s %s %d not found\n", mic->name, __func__, type); get_dp()
311 static struct mic_device_desc *get_device_desc(struct mic_info *mic, int type) get_device_desc() argument
315 void *dp = get_dp(mic, type); get_device_desc()
329 mic->name, __func__, d->type, d); get_device_desc()
334 mpsslog("%s %s %d not found\n", mic->name, __func__, type); get_device_desc()
362 static inline void verify_out_len(struct mic_info *mic, verify_out_len() argument
367 mic->name, __func__, __LINE__, verify_out_len()
375 disp_iovec(struct mic_info *mic, struct mic_copy_desc *copy, disp_iovec() argument
382 mic->name, s, line, i, disp_iovec()
404 mic_virtio_copy(struct mic_info *mic, int fd, mic_virtio_copy() argument
412 mic->name, __func__, __LINE__, mic_virtio_copy()
423 init_vr(struct mic_info *mic, int fd, int type, init_vr() argument
435 mic->name, __func__, __LINE__, init_vr()
439 set_dp(mic, type, va); init_vr()
446 __func__, mic->name, vr0->va, vr0->info, vr_size, init_vr()
459 __func__, mic->name, vr1->va, vr1->info, vr_size, init_vr()
470 wait_for_card_driver(struct mic_info *mic, int fd, int type) wait_for_card_driver() argument
474 struct mic_device_desc *desc = get_device_desc(mic, type); wait_for_card_driver()
478 mic->name, __func__, type, desc->status); wait_for_card_driver()
485 mic->name, __func__, strerror(errno)); wait_for_card_driver()
491 mic->name, __func__, type, desc->status); wait_for_card_driver()
494 mic->name, __func__, pollfd.revents); wait_for_card_driver()
496 mic->name, __func__, type, wait_for_card_driver()
506 spin_for_descriptors(struct mic_info *mic, struct mic_vring *vr) spin_for_descriptors() argument
513 mic->name, __func__, spin_for_descriptors()
532 struct mic_info *mic = (struct mic_info *)arg; virtio_net() local
540 snprintf(if_name, IFNAMSIZ, "mic%d", mic->id); virtio_net()
541 mic->mic_net.tap_fd = tun_alloc(mic, if_name); virtio_net()
542 if (mic->mic_net.tap_fd < 0) virtio_net()
545 if (tap_configure(mic, if_name)) virtio_net()
547 mpsslog("MIC name %s id %d\n", mic->name, mic->id); virtio_net()
549 net_poll[NET_FD_VIRTIO_NET].fd = mic->mic_net.virtio_net_fd; virtio_net()
551 net_poll[NET_FD_TUN].fd = mic->mic_net.tap_fd; virtio_net()
554 if (MAP_FAILED == init_vr(mic, mic->mic_net.virtio_net_fd, virtio_net()
558 mic->name, strerror(errno)); virtio_net()
563 desc = get_device_desc(mic, VIRTIO_ID_NET); virtio_net()
579 wait_for_card_driver(mic, mic->mic_net.virtio_net_fd, virtio_net()
597 mpsslog("%s %s %d hdr->flags 0x%x ", mic->name, virtio_net()
603 disp_iovec(mic, copy, __func__, __LINE__); virtio_net()
605 mic->name, __func__, __LINE__, virtio_net()
608 spin_for_descriptors(mic, &tx_vr); virtio_net()
612 err = mic_virtio_copy(mic, virtio_net()
613 mic->mic_net.virtio_net_fd, &tx_vr, virtio_net()
617 mic->name, __func__, __LINE__, virtio_net()
621 verify_out_len(mic, &copy); virtio_net()
623 disp_iovec(mic, copy, __func__, __LINE__); virtio_net()
625 mic->name, __func__, __LINE__, virtio_net()
631 disp_iovec(mic, &copy, __func__, __LINE__); virtio_net()
632 mpsslog("%s %s %d read failed %s ", mic->name, virtio_net()
651 err = mic_virtio_copy(mic, virtio_net()
652 mic->mic_net.virtio_net_fd, &rx_vr, virtio_net()
661 mic->name, __func__, __LINE__, virtio_net()
670 verify_out_len(mic, &copy); virtio_net()
672 disp_iovec(mic, copy, __func__, virtio_net()
675 mic->name, __func__, __LINE__); virtio_net()
689 disp_iovec(mic, &copy, __func__, virtio_net()
692 mic->name, __func__, virtio_net()
700 mic->name, __func__, __LINE__, virtio_net()
707 mpsslog("%s: %s: POLLERR\n", __func__, mic->name); virtio_net()
728 struct mic_info *mic = (struct mic_info *)arg; virtio_console() local
749 printf("%s console message goes to %s\n", mic->name, pts_name); virtio_console()
750 mpsslog("%s console message goes to %s\n", mic->name, pts_name); virtio_console()
766 console_poll[VIRTIO_CONSOLE_FD].fd = mic->mic_console.virtio_console_fd; virtio_console()
769 if (MAP_FAILED == init_vr(mic, mic->mic_console.virtio_console_fd, virtio_console()
773 mic->name, strerror(errno)); virtio_console()
778 desc = get_device_desc(mic, VIRTIO_ID_CONSOLE); virtio_console()
790 wait_for_card_driver(mic, virtio_console()
791 mic->mic_console.virtio_console_fd, virtio_console()
799 disp_iovec(mic, copy, __func__, __LINE__); virtio_console()
801 mic->name, __func__, __LINE__, virtio_console()
804 spin_for_descriptors(mic, &tx_vr); virtio_console()
808 err = mic_virtio_copy(mic, virtio_console()
809 mic->mic_console.virtio_console_fd, virtio_console()
813 mic->name, __func__, __LINE__, virtio_console()
817 verify_out_len(mic, &copy); virtio_console()
819 disp_iovec(mic, copy, __func__, __LINE__); virtio_console()
821 mic->name, __func__, __LINE__, virtio_console()
827 disp_iovec(mic, &copy, __func__, __LINE__); virtio_console()
829 mic->name, __func__, __LINE__, virtio_console()
843 err = mic_virtio_copy(mic, virtio_console()
844 mic->mic_console.virtio_console_fd, virtio_console()
849 verify_out_len(mic, &copy); virtio_console()
851 disp_iovec(mic, copy, __func__, virtio_console()
854 mic->name, __func__, __LINE__); virtio_console()
868 disp_iovec(mic, copy, __func__, virtio_console()
871 mic->name, __func__, virtio_console()
879 mic->name, __func__, __LINE__, virtio_console()
886 mpsslog("%s: %s: POLLERR\n", __func__, mic->name); virtio_console()
895 add_virtio_device(struct mic_info *mic, struct mic_device_desc *dd) add_virtio_device() argument
900 snprintf(path, PATH_MAX, "/dev/mic%d", mic->id); add_virtio_device()
915 mic->mic_net.virtio_net_fd = fd; add_virtio_device()
916 mpsslog("Added VIRTIO_ID_NET for %s\n", mic->name); add_virtio_device()
919 mic->mic_console.virtio_console_fd = fd; add_virtio_device()
920 mpsslog("Added VIRTIO_ID_CONSOLE for %s\n", mic->name); add_virtio_device()
923 mic->mic_virtblk.virtio_block_fd = fd; add_virtio_device()
924 mpsslog("Added VIRTIO_ID_BLOCK for %s\n", mic->name); add_virtio_device()
930 set_backend_file(struct mic_info *mic) set_backend_file() argument
935 snprintf(buff, PATH_MAX, "%s/mpssd%03d.conf", mic_config_dir, mic->id); set_backend_file()
955 mic->mic_virtblk.backend_file = malloc(strlen(evv) + 1); set_backend_file()
956 if (mic->mic_virtblk.backend_file == NULL) { set_backend_file()
957 mpsslog("%s %d can't allocate memory\n", mic->name, mic->id); set_backend_file()
960 strcpy(mic->mic_virtblk.backend_file, evv + 1); set_backend_file()
966 set_backend_size(struct mic_info *mic) set_backend_size() argument
968 mic->mic_virtblk.backend_size = lseek(mic->mic_virtblk.backend, 0, set_backend_size()
970 if (mic->mic_virtblk.backend_size < 0) { set_backend_size()
972 mic->name, mic->mic_virtblk.backend_file); set_backend_size()
976 mic->mic_virtblk.backend_size / SECTOR_SIZE; set_backend_size()
977 if ((mic->mic_virtblk.backend_size % SECTOR_SIZE) != 0) set_backend_size()
987 open_backend(struct mic_info *mic) open_backend() argument
989 if (!set_backend_file(mic)) open_backend()
991 mic->mic_virtblk.backend = open(mic->mic_virtblk.backend_file, O_RDWR); open_backend()
992 if (mic->mic_virtblk.backend < 0) { open_backend()
993 mpsslog("%s: can't open: %s\n", mic->name, open_backend()
994 mic->mic_virtblk.backend_file); open_backend()
997 if (!set_backend_size(mic)) open_backend()
999 mic->mic_virtblk.backend_addr = mmap(NULL, open_backend()
1000 mic->mic_virtblk.backend_size, open_backend()
1002 mic->mic_virtblk.backend, 0L); open_backend()
1003 if (mic->mic_virtblk.backend_addr == MAP_FAILED) { open_backend()
1005 mic->name, mic->mic_virtblk.backend_file, open_backend()
1012 close(mic->mic_virtblk.backend); open_backend()
1014 free(mic->mic_virtblk.backend_file); open_backend()
1020 close_backend(struct mic_info *mic) close_backend() argument
1022 munmap(mic->mic_virtblk.backend_addr, mic->mic_virtblk.backend_size); close_backend()
1023 close(mic->mic_virtblk.backend); close_backend()
1024 free(mic->mic_virtblk.backend_file); close_backend()
1028 start_virtblk(struct mic_info *mic, struct mic_vring *vring) start_virtblk() argument
1032 mic->name); start_virtblk()
1035 add_virtio_device(mic, &virtblk_dev_page.dd); start_virtblk()
1036 if (MAP_FAILED == init_vr(mic, mic->mic_virtblk.virtio_block_fd, start_virtblk()
1040 mic->name, strerror(errno)); start_virtblk()
1047 stop_virtblk(struct mic_info *mic) stop_virtblk() argument
1053 ret = munmap(mic->mic_virtblk.block_dp, stop_virtblk()
1056 mpsslog("%s munmap errno %d\n", mic->name, errno); stop_virtblk()
1057 close(mic->mic_virtblk.virtio_block_fd); stop_virtblk()
1137 struct mic_info *mic = (struct mic_info *)arg; virtio_block() local
1151 if (!open_backend(mic)) { /* No virtblk */ virtio_block()
1152 for (mic->mic_virtblk.signaled = 0; virtio_block()
1153 !mic->mic_virtblk.signaled;) virtio_block()
1159 if (!start_virtblk(mic, &vring)) virtio_block()
1165 mic->name, strerror(ENOMEM)); virtio_block()
1169 block_poll.fd = mic->mic_virtblk.virtio_block_fd; virtio_block()
1171 for (mic->mic_virtblk.signaled = 0; virtio_block()
1172 !mic->mic_virtblk.signaled;) { virtio_block()
1210 mic->mic_virtblk.virtio_block_fd, virtio_block()
1215 mic->name, ret, virtio_block()
1222 fos = mic->mic_virtblk.backend_addr + virtio_block()
1256 mic->mic_virtblk.virtio_block_fd, virtio_block()
1267 mic->mic_virtblk.virtio_block_fd, virtio_block()
1278 stop_virtblk(mic); virtio_block()
1280 close_backend(mic); virtio_block()
1287 reset(struct mic_info *mic) reset() argument
1291 setsysfs(mic->name, "state", "reset"); reset()
1294 state = readsysfs(mic->name, "state"); reset()
1298 mic->name, __func__, __LINE__, state); reset()
1317 get_mic_shutdown_status(struct mic_info *mic, char *shutdown_status) get_mic_shutdown_status() argument
1329 mpsslog("%s: BUG invalid status %s\n", mic->name, shutdown_status); get_mic_shutdown_status()
1334 static int get_mic_state(struct mic_info *mic, char *state) get_mic_state() argument
1348 mpsslog("%s: BUG invalid state %s\n", mic->name, state); get_mic_state()
1353 static void mic_handle_shutdown(struct mic_info *mic) mic_handle_shutdown() argument
1359 shutdown_status = readsysfs(mic->name, "shutdown_status"); mic_handle_shutdown()
1363 mic->name, __func__, __LINE__, shutdown_status); mic_handle_shutdown()
1364 switch (get_mic_shutdown_status(mic, shutdown_status)) { mic_handle_shutdown()
1366 mic->restart = 1; mic_handle_shutdown()
1380 ret = kill(mic->pid, SIGTERM); mic_handle_shutdown()
1382 mic->name, __func__, __LINE__, mic_handle_shutdown()
1383 mic->pid, ret); mic_handle_shutdown()
1385 ret = waitpid(mic->pid, &stat, mic_handle_shutdown()
1388 mic->name, __func__, __LINE__, mic_handle_shutdown()
1389 ret, mic->pid); mic_handle_shutdown()
1391 if (ret == mic->pid) mic_handle_shutdown()
1392 reset(mic); mic_handle_shutdown()
1398 struct mic_info *mic = (struct mic_info *)arg; mic_config() local
1406 MICSYSFSDIR, mic->name, "state"); mic_config()
1411 mic->name, pathname, strerror(errno)); mic_config()
1419 mic->name, pathname, strerror(errno)); mic_config()
1425 mic->name, pathname, strerror(errno)); mic_config()
1429 state = readsysfs(mic->name, "state"); mic_config()
1433 mic->name, __func__, __LINE__, state); mic_config()
1434 switch (get_mic_state(mic, state)) { mic_config()
1436 mic_handle_shutdown(mic); mic_config()
1439 mic->boot_on_resume = 1; mic_config()
1440 setsysfs(mic->name, "state", "suspend"); mic_config()
1441 mic_handle_shutdown(mic); mic_config()
1444 if (mic->boot_on_resume) { mic_config()
1445 setsysfs(mic->name, "state", "boot"); mic_config()
1446 mic->boot_on_resume = 0; mic_config()
1459 mic->name, strerror(errno)); mic_config()
1468 init_mic(mic); mic_config()
1473 set_cmdline(struct mic_info *mic) set_cmdline() argument
1484 mic->id); set_cmdline()
1486 setsysfs(mic->name, "cmdline", buffer); set_cmdline()
1487 mpsslog("%s: Command line: \"%s\"\n", mic->name, buffer); set_cmdline()
1488 snprintf(buffer, PATH_MAX, "172.31.%d.1", mic->id); set_cmdline()
1489 mpsslog("%s: IPADDR: \"%s\"\n", mic->name, buffer); set_cmdline()
1493 set_log_buf_info(struct mic_info *mic) set_log_buf_info() argument
1497 char system_map[] = "/lib/firmware/mic/System.map"; set_log_buf_info()
1503 mic->name, errno); set_log_buf_info()
1509 mic->name, errno); set_log_buf_info()
1516 mic->name, errno); set_log_buf_info()
1522 mpsslog("%s: __log_buf not found: %d\n", mic->name, errno); set_log_buf_info()
1528 setsysfs(mic->name, "log_buf_addr", log_buf); set_log_buf_info()
1529 mpsslog("%s: log_buf_addr: %s\n", mic->name, log_buf); set_log_buf_info()
1532 mpsslog("%s: log_buf_len not found: %d\n", mic->name, errno); set_log_buf_info()
1538 setsysfs(mic->name, "log_buf_len", log_buf); set_log_buf_info()
1539 mpsslog("%s: log_buf_len: %s\n", mic->name, log_buf); set_log_buf_info()
1544 static void init_mic(struct mic_info *mic);
1549 struct mic_info *mic; change_virtblk_backend() local
1551 for (mic = mic_list.next; mic != NULL; mic = mic->next) change_virtblk_backend()
1552 mic->mic_virtblk.signaled = 1/* true */; change_virtblk_backend()
1556 init_mic(struct mic_info *mic) init_mic() argument
1581 mic->pid = fork(); init_mic()
1582 switch (mic->pid) { init_mic()
1584 set_log_buf_info(mic); init_mic()
1585 set_cmdline(mic); init_mic()
1586 add_virtio_device(mic, &virtcons_dev_page.dd); init_mic()
1587 add_virtio_device(mic, &virtnet_dev_page.dd); init_mic()
1588 err = pthread_create(&mic->mic_console.console_thread, NULL, init_mic()
1589 virtio_console, mic); init_mic()
1592 mic->name, strerror(err)); init_mic()
1593 err = pthread_create(&mic->mic_net.net_thread, NULL, init_mic()
1594 virtio_net, mic); init_mic()
1597 mic->name, strerror(err)); init_mic()
1598 err = pthread_create(&mic->mic_virtblk.block_thread, NULL, init_mic()
1599 virtio_block, mic); init_mic()
1602 mic->name, strerror(err)); init_mic()
1607 mic->name, strerror(errno)); init_mic()
1612 mic->name, mic->id, errno); init_mic()
1615 if (mic->restart) { init_mic()
1617 setsysfs(mic->name, "state", buffer); init_mic()
1618 mpsslog("%s restarting mic %d\n", init_mic()
1619 mic->name, mic->restart); init_mic()
1620 mic->restart = 0; init_mic()
1622 pthread_create(&mic->config_thread, NULL, mic_config, mic); init_mic()
1629 struct mic_info *mic; start_daemon() local
1631 for (mic = mic_list.next; mic != NULL; mic = mic->next) start_daemon()
1632 init_mic(mic); start_daemon()
1641 struct mic_info *mic = &mic_list; init_mic_list() local
1651 if (!strncmp(file->d_name, "mic", 3)) { init_mic_list()
1652 mic->next = calloc(1, sizeof(struct mic_info)); init_mic_list()
1653 if (mic->next) { init_mic_list()
1654 mic = mic->next; init_mic_list()
1655 mic->id = atoi(&file->d_name[3]); init_mic_list()
1656 mic->name = malloc(strlen(file->d_name) + 16); init_mic_list()
1657 if (mic->name) init_mic_list()
1658 strcpy(mic->name, file->d_name); init_mic_list()
1659 mpsslog("MIC name %s id %d\n", mic->name, init_mic_list()
1660 mic->id); init_mic_list()
H A Dmicctrl32 sysfs="/sys/class/mic"
42 if [ "`echo $1 | head -c3`" == "mic" ]; then
63 if [ "`echo $1 | head -c3`" == "mic" ]; then
80 echo "mic/uos.img" > $f/firmware
81 echo "mic/$1.image" > $f/ramdisk
87 if [ "`echo $1 | head -c3`" == "mic" ]; then
108 if [ "`echo $1 | head -c3`" == "mic" ]; then
133 if [ "`echo $1 | head -c3`" == "mic" ]; then
H A Dmpssd.h57 #define MICSYSFSDIR "/sys/class/mic"
H A Dmpss37 sysfs="/sys/class/mic"
/linux-4.1.27/Documentation/
H A DMakefile2 filesystems filesystems ia64 laptops mic misc-devices \
/linux-4.1.27/net/mac80211/
H A Daes_ccm.h19 u8 *data, size_t data_len, u8 *mic,
22 u8 *data, size_t data_len, u8 *mic,
H A Daes_cmac.h17 const u8 *data, size_t data_len, u8 *mic);
19 const u8 *data, size_t data_len, u8 *mic);
H A Daes_gcm.h15 u8 *data, size_t data_len, u8 *mic);
17 u8 *data, size_t data_len, u8 *mic);
H A Daes_ccm.c23 u8 *data, size_t data_len, u8 *mic, ieee80211_aes_ccm_encrypt()
39 sg_set_buf(&ct[1], mic, mic_len); ieee80211_aes_ccm_encrypt()
49 u8 *data, size_t data_len, u8 *mic, ieee80211_aes_ccm_decrypt()
67 sg_set_buf(&ct[1], mic, mic_len); ieee80211_aes_ccm_decrypt()
22 ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, u8 *data, size_t data_len, u8 *mic, size_t mic_len) ieee80211_aes_ccm_encrypt() argument
48 ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, u8 *data, size_t data_len, u8 *mic, size_t mic_len) ieee80211_aes_ccm_decrypt() argument
H A Daes_gcm.c20 u8 *data, size_t data_len, u8 *mic) ieee80211_aes_gcm_encrypt()
35 sg_set_buf(&ct[1], mic, IEEE80211_GCMP_MIC_LEN); ieee80211_aes_gcm_encrypt()
45 u8 *data, size_t data_len, u8 *mic) ieee80211_aes_gcm_decrypt()
62 sg_set_buf(&ct[1], mic, IEEE80211_GCMP_MIC_LEN); ieee80211_aes_gcm_decrypt()
19 ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad, u8 *data, size_t data_len, u8 *mic) ieee80211_aes_gcm_encrypt() argument
44 ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad, u8 *data, size_t data_len, u8 *mic) ieee80211_aes_gcm_decrypt() argument
H A Daes_gmac.h17 const u8 *data, size_t data_len, u8 *mic);
H A Dmichael.h23 const u8 *data, size_t data_len, u8 *mic);
H A Dmichael.c57 const u8 *data, size_t data_len, u8 *mic) michael_mic()
84 put_unaligned_le32(mctx.l, mic); michael_mic()
85 put_unaligned_le32(mctx.r, mic + 4); michael_mic()
56 michael_mic(const u8 *key, struct ieee80211_hdr *hdr, const u8 *data, size_t data_len, u8 *mic) michael_mic() argument
H A Daes_cmac.c96 const u8 *data, size_t data_len, u8 *mic) ieee80211_aes_cmac()
110 aes_cmac_vector(tfm, 3, addr, len, mic, CMAC_TLEN); ieee80211_aes_cmac()
114 const u8 *data, size_t data_len, u8 *mic) ieee80211_aes_cmac_256()
128 aes_cmac_vector(tfm, 3, addr, len, mic, CMAC_TLEN_256); ieee80211_aes_cmac_256()
95 ieee80211_aes_cmac(struct crypto_cipher *tfm, const u8 *aad, const u8 *data, size_t data_len, u8 *mic) ieee80211_aes_cmac() argument
113 ieee80211_aes_cmac_256(struct crypto_cipher *tfm, const u8 *aad, const u8 *data, size_t data_len, u8 *mic) ieee80211_aes_cmac_256() argument
H A Daes_gmac.c25 const u8 *data, size_t data_len, u8 *mic) ieee80211_aes_gmac()
50 sg_set_buf(&ct[0], mic, GMAC_MIC_LEN); ieee80211_aes_gmac()
24 ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, const u8 *data, size_t data_len, u8 *mic) ieee80211_aes_gmac() argument
H A Dwpa.c32 u8 *data, *key, *mic; ieee80211_tx_h_michael_mic_add() local
77 mic = skb_put(skb, MICHAEL_MIC_LEN); ieee80211_tx_h_michael_mic_add()
78 michael_mic(key, hdr, data, data_len, mic); ieee80211_tx_h_michael_mic_add()
80 mic[0]++; ieee80211_tx_h_michael_mic_add()
92 u8 mic[MICHAEL_MIC_LEN]; ieee80211_rx_h_michael_mic_verify() local
154 michael_mic(key, hdr, data, data_len, mic); ieee80211_rx_h_michael_mic_verify()
155 if (memcmp(mic, data + data_len, MICHAEL_MIC_LEN) != 0) ieee80211_rx_h_michael_mic_verify()
953 skb->data + 24, skb->len - 24, mmie->mic); ieee80211_crypto_aes_cmac_encrypt()
996 skb->data + 24, skb->len - 24, mmie->mic); ieee80211_crypto_aes_cmac_256_encrypt()
1008 u8 aad[20], mic[8], ipn[6]; ieee80211_crypto_aes_cmac_decrypt() local
1036 skb->data + 24, skb->len - 24, mic); ieee80211_crypto_aes_cmac_decrypt()
1037 if (memcmp(mic, mmie->mic, sizeof(mmie->mic)) != 0) { ieee80211_crypto_aes_cmac_decrypt()
1058 u8 aad[20], mic[16], ipn[6]; ieee80211_crypto_aes_cmac_256_decrypt() local
1086 skb->data + 24, skb->len - 24, mic); ieee80211_crypto_aes_cmac_256_decrypt()
1087 if (memcmp(mic, mmie->mic, sizeof(mmie->mic)) != 0) { ieee80211_crypto_aes_cmac_256_decrypt()
1144 skb->data + 24, skb->len - 24, mmie->mic) < 0) ieee80211_crypto_aes_gmac_encrypt()
1157 u8 aad[20], mic[16], ipn[6], nonce[12]; ieee80211_crypto_aes_gmac_decrypt() local
1190 mic) < 0 || ieee80211_crypto_aes_gmac_decrypt()
1191 memcmp(mic, mmie->mic, sizeof(mmie->mic)) != 0) { ieee80211_crypto_aes_gmac_decrypt()
H A Dkey.h77 /* number of mic failures */
H A Drx.c3183 /* must be after MMIC verify so header is counted in MPDU mic */ ieee80211_rx_handlers()
/linux-4.1.27/drivers/net/wireless/orinoco/
H A DMakefile4 orinoco-objs := main.o fw.o hw.o mic.o scan.o wext.o hermes_dld.o hermes.o cfg.o
H A Dmic.h20 u8 *data, size_t data_len, u8 *mic);
H A Dmic.c12 #include "mic.h"
48 u8 *data, size_t data_len, u8 *mic) orinoco_mic()
78 mic); orinoco_mic()
46 orinoco_mic(struct crypto_hash *tfm_michael, u8 *key, u8 *da, u8 *sa, u8 priority, u8 *data, size_t data_len, u8 *mic) orinoco_mic() argument
H A Dorinoco.h204 u8 *mic);
H A Dmain.c98 #include "mic.h"
417 u8 *mic = &mic_buf[0]; orinoco_process_xmit_skb() local
422 *mic = skb->data[skb->len - 1]; orinoco_process_xmit_skb()
423 mic++; orinoco_process_xmit_skb()
429 len, mic); orinoco_process_xmit_skb()
979 u8 mic[MICHAEL_MIC_LEN]; orinoco_rx() local
1001 skb->data, skb->len, &mic[0]); orinoco_rx()
1003 if (memcmp(mic, rxmic, orinoco_rx()
H A Dorinoco_usb.c68 #include "mic.h"
1188 u8 mic[MICHAEL_MIC_LEN + 1]; ezusb_xmit() local
1237 &mic[0]); ezusb_xmit()
1251 u8 *m = mic; ezusb_xmit()
H A Dwext.c20 #include "mic.h"
/linux-4.1.27/sound/pci/hda/
H A Dhda_auto_parser.h54 INPUT_PIN_ATTR_INT, /* internal mic/line-in */
55 INPUT_PIN_ATTR_DOCK, /* docking mic/line-in */
56 INPUT_PIN_ATTR_NORMAL, /* mic/line-in jack */
57 INPUT_PIN_ATTR_REAR, /* mic/line-in jack in rear */
58 INPUT_PIN_ATTR_FRONT, /* mic/line-in jack in front */
86 #define HDA_PINCFG_HEADSET_MIC (1 << 2) /* Try to find headset mic; mark seq number as 0xc to trigger */
87 #define HDA_PINCFG_HEADPHONE_MIC (1 << 3) /* Try to find headphone mic; mark seq number as 0xd to trigger */
H A Dpatch_analog.c293 { 0x1d, 0x90a7013e }, /* int mic */
301 { 0x1d, 0x90a7013e }, /* int mic */
313 { 0x1d, 0x01a19020 }, /* rear mic */
315 { 0x1f, 0x02a190f0 }, /* mic */
328 { 0x1f, 0x02a191f0 }, /* mic */
336 { 0x1d, 0x90a7013e }, /* int mic */
356 { 0x1d, 0x90a70130 }, /* int mic */
358 { 0x1f, 0x04a19040 }, /* mic */
694 * 0:Port-B (front mic)
698 * 4:Port-E/G/H (mic-in)
705 * 1:Port-B (front mic-in)
708 * 4:Port-E (mic-in)
719 * B front mic-in
722 * E rear mic-in
729 * B front mic
732 * E rear mic-in/CLFE
736 * B mic-in
739 * E/F quad mic array
895 { 0x14, 0x02a19122 }, /* front-mic */
898 { 0x17, 0x01a19020 }, /* mic */
950 * port-B - front line/mic-in
953 * port-C - rear line/mic-in
957 * AD1984 = AD1884 + two digital mic-ins
961 * port-B (0x14) - front mic-in
962 * port-E (0x1c) - rear mic-in
968 * AD1984A = AD1884A + digital-mic
1130 * port-B - front mic-in
1133 * port-E - rear mic-in, shared clfe-out (3stack)
H A Dpatch_conexant.c306 snd_hda_codec_write_cache(codec, 0x1c, 0, 0x410, 0x7c); /* enable merged mode for analog int-mic */ cxt_update_headset_mode()
309 snd_hda_codec_write_cache(codec, 0x1c, 0, 0x410, 0x54); /* disable merged mode for analog int-mic */ cxt_update_headset_mode()
388 /* Set up mic pins for port-B, C and F dynamically as the recording olpc_xo_update_mic_pins()
396 /* update port B (ext mic) and C (int mic) */ olpc_xo_update_mic_pins()
397 /* OLPC defers mic widget control until when capture is olpc_xo_update_mic_pins()
407 /* enable normal mic path */ olpc_xo_update_mic_pins()
412 /* disable normal mic path */ olpc_xo_update_mic_pins()
456 /* toggle spec->recording flag and update mic pins accordingly olpc_xo_capture_hook()
549 /* overriding mic boost put callback; update mic boost volume only when
579 * therefore we use a 50% mic bias in order to center the input signal cxt_fixup_olpc_xo()
584 /* override mic boost control */ cxt_fixup_olpc_xo()
638 { 0x17, 0x21a11000 }, /* dock-mic */
647 { 0x1a, 0x21a190f0 }, /* dock-mic */
654 { 0x1a, 0x90a10020 }, /* Internal mic */
655 { 0x1b, 0x03a11020 }, /* External mic */
688 /* 0x17 was falsely set up as a mic, it should 0x1d */
707 { 0x18, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
746 { 0x12, 0x02a1901e }, /* ext mic */
747 { 0x14, 0x95a70110 }, /* int mic */
754 { 0x12, 0x90a60160 }, /* int mic */
840 { .id = CXT_FIXUP_HEADPHONE_MIC_PIN, .name = "headphone-mic-pin" },
H A Dhda_generic.h55 /* mic/line-in auto switching entry */
158 /* shared hp/mic */
183 /* auto-mic stuff */
217 unsigned int hp_mic:1; /* Allow HP as a mic-in */
218 unsigned int suppress_hp_mic_detect:1; /* Don't detect HP/mic */
301 HDA_HINT_STEREO_MIX_AUTO, /* Add only if auto-mic is disabled */
H A Dpatch_realtek.c1162 { 0x19, 0x01a19950 }, /* mic-in */
1182 { 0x19, 0x01a19950 }, /* mic-in */
1222 { 0x18, 0x01a19950 }, /* mic-in */
1240 { 0x18, 0x90a60160 }, /* mic */
1259 { 0x18, 0x01a19c30 }, /* mic-in */
1262 { 0x1b, 0x02a19c40 }, /* front-mic */
1295 { 0x18, 0x01a19c30 }, /* mic-in */
1298 { 0x1b, 0x02a19c40 }, /* front-mic */
1331 { 0x18, 0x01a19c30 }, /* mic-in */
1332 { 0x19, 0x02a19c40 }, /* front-mic */
1554 { 0x12, 0x90a60160 }, /* int mic */ alc260_fixup_kn1()
1555 { 0x13, 0x02a19000 }, /* ext mic */ alc260_fixup_kn1()
2111 * useless. However, either the mic or the ALC889
2116 * turning it into a normal mono mic.
3172 /* The digital-mic unit sends PDM (differential signal) instead of alc269_fixup_stereo_dmic()
3226 /* update mute-LED according to the speaker mute state via mic VREF pin */ alc269_fixup_mic_mute_hook()
3341 /* turn on/off mic-mute LED via GPIO per capture hook */ alc_fixup_gpio_mic_mute_hook()
3396 /* turn on/off mic-mute LED per capture hook */ alc269_fixup_hp_cap_mic_mute_hook()
3507 GPIO2 = mic mute hotkey alc280_fixup_hp_gpio2_mic_hotkey()
3509 GPIO4 = mic mute LED */ alc280_fixup_hp_gpio2_mic_hotkey()
3554 /* Line2 = mic mute hotkey alc233_fixup_lenovo_line2_mic_hotkey()
3555 GPIO2 = mic mute LED */ alc233_fixup_lenovo_line2_mic_hotkey()
3781 codec_dbg(codec, "Headset jack set to mic-in mode.\n"); alc_headset_mode_mic_in()
4165 /* Find mic pins */ alc_probe_headset_mode()
4320 { 0x19, 0x21a11010 }, /* dock mic */ alc_fixup_tpt440_dock()
4354 /* mic pin 0x19 must be initialized with Vref Hi-Z, otherwise alc_fixup_dell_xps13()
4362 /* Make the internal mic the default input source. */ alc_fixup_dell_xps13()
4382 /* Disable boost for mic-in permanently. (This code is only called alc_fixup_headset_mode_alc662()
4401 /* Returns the nid of the external mic input pin, or 0 if it cannot be found. */ find_ext_mic_pin()
4447 /* The mic boosts on level 2 and 3 are too noisy alc269_fixup_limit_int_mic_boost()
4448 on the internal mic input. alc269_fixup_limit_int_mic_boost()
4590 /* for dell wmi mic mute led */
4772 { 0x1b, 0x23a11040 }, /* dock mic-in */
4781 { 0x19, 0x01a1903c }, /* headset mic, with jack detect */
4801 { 0x18, 0x01a19c20 }, /* mic */
4802 { 0x19, 0x99a3092f }, /* int-mic */
4809 { 0x12, 0x99a3092f }, /* int-mic */
4812 { 0x18, 0x01a19c20 }, /* mic */
4820 { 0x18, 0x01a19c20 }, /* mic */
4821 { 0x19, 0x99a3092f }, /* int-mic */
4829 { 0x12, 0x99a3092f }, /* int-mic */
4831 { 0x18, 0x01a19c20 }, /* mic */
4871 { 0x19, 0x23a11040 }, /* dock mic */
4887 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
4888 { 0x1a, 0x01a1913d }, /* use as headphone mic, without its own jack detect */
4898 { 0x19, 0x21a19030 }, /* dock mic */
4899 { 0x1a, 0x01a1913c }, /* use as headset mic, without its own jack detect */
4908 { 0x1a, 0x01a1913c }, /* use as headset mic, without its own jack detect */
4927 { 0x19, 0x01a1913c }, /* headset mic w/o jack detect */
4936 { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */
4960 { 0x18, 0x04a1182c }, /* Headset mic */
4970 { 0x19, 0x01a19c20 }, /* mic */
4971 { 0x1b, 0x99a7012f }, /* int-mic */
4991 { 0x12, 0x99a3092f }, /* int-mic */
4993 { 0x18, 0x03a11c20 }, /* mic */
5033 { 0x12, 0x99a3092f }, /* int-mic */
5034 { 0x18, 0x03a11d20 }, /* mic */
5104 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
5105 { 0x1a, 0x01a1913d }, /* use as headphone mic, without its own jack detect */
5114 { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */
5133 { 0x18, 0x01a1913d }, /* use as headphone mic, without its own jack detect */
5134 { 0x1a, 0x01a1913c }, /* use as headset mic, without its own jack detect */
5195 { 0x1a, 0x01a1903c }, /* headset mic */
5211 { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */
5212 { 0x1a, 0x01a1913d }, /* use as headphone mic, without its own jack detect */
5262 { 0x18, 0x01a1913c }, /* use as headset mic, without its own jack detect */
5263 { 0x1a, 0x01a1913d }, /* use as headphone mic, without its own jack detect */
5577 {.id = ALC269_FIXUP_HEADSET_MIC, .name = "headset-mic"},
6561 { 0x18, 0x01a19c20 }, /* mic */
6562 { 0x19, 0x99a3092f }, /* int-mic */
6573 { 0x18, 0x01a19820 }, /* mic */
6574 { 0x19, 0x99a3092f }, /* int-mic */
6586 { 0x18, 0x01a19840 }, /* mic */
6587 { 0x19, 0x99a3094f }, /* int-mic */
6599 { 0x18, 0x01a19840 }, /* mic */
6600 { 0x19, 0x99a3094f }, /* int-mic */
6613 { 0x18, 0x01a19840 }, /* mic */
6614 { 0x19, 0x99a3094f }, /* int-mic */
6625 { 0x18, 0x01a19840 }, /* mic */
6626 { 0x19, 0x99a3094f }, /* int-mic */
6638 { 0x18, 0x01a19840 }, /* mic */
6639 { 0x19, 0x99a3094f }, /* int-mic */
6651 { 0x12, 0x99a30970 }, /* int-mic */
6654 { 0x18, 0x01a19840 }, /* mic */
6697 { 0x19, 0x03a1113c }, /* use as headset mic, without its own jack detect */
6698 /* headphone mic by setting pin control of 0x1b (headphone out) to in + vref_50 */
6711 { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
6712 { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */
H A Dhda_auto_parser.c313 /* Find a pin that could be a headset or headphone mic */
340 codec_dbg(codec, "Told to look for a headset mic, but didn't find any.\n");
342 codec_dbg(codec, "Told to look for a headphone mic, but didn't find any.\n");
456 /* Windows may claim the internal mic to be BOTH, too */ snd_hda_get_input_pin_attr()
479 * for mic and line-in pins, and set an appropriate prefix like "Front",
531 * If all mic-jacks are in the same location (e.g. rear panel), we don't
568 * defined in autocfg and avoids the redundant mic/line prefix as much as
H A Dpatch_cirrus.c96 #define CS_COEF_ADC_MIC_SZC_MODE (3 << 0) /* SZC setup for mic */
99 #define CS_COEF_ADC_MIC_PGA_MODE (1 << 5) /* PGA setup for mic */
162 * auto-mute and auto-mic switching
460 { 0x0d, 0x90a00110 }, /* mic */
552 /* internal mic ADC2: right only, single ended */
681 { 0x18, 0x00ab9150 }, /* mic (audio-in) jack: disable detect */ cs4208_fixup_macmini()
H A Dpatch_ca0132.c3284 * If autodetect is enabled, mic will be selected based on jack detection.
3285 * If jack inserted, ext.mic will be selected, else built-in mic
3286 * If autodetect is disabled, mic will be selected based on selection.
3666 /* mic boost */ ca0132_switch_get()
3725 /* mic boost */ ca0132_switch_put()
4131 * Switch between Digital built-in mic and analog mic.
4292 /* set AMic1 and AMic2 as mono mic */ ca0132_setup_defaults()
4406 /* Delay enabling the HP amp, to let the mic-detection hp_callback()
4627 spec->adcs[0] = 0x7; /* digital mic / analog mic1 */ ca0132_config()
H A Dhda_generic.c2518 * shared headphone/mic handling
2579 * input pin is found, try to detect the shared hp/mic create_hp_mic()
2611 /* we can't handle auto-mic together with HP-mic */ create_hp_mic()
2871 * HP/mic shared jack mode
3780 * add mic boosts if needed
3847 /* check only line-in and mic pins */ parse_mic_boost()
4214 * Jack detections for HP auto-mute and mic-switch
4413 * snd_hda_gen_mic_autoswitch - standard mic auto-switch helper
4645 /* check whether all auto-mic pins are valid; setup indices if OK */ auto_mic_check_imux()
4677 * Check the availability of auto-mic switch;
4711 return 0; /* only mic is allowed */ check_auto_mic_availability()
4740 codec_dbg(codec, "Enable auto-mic switch on NID 0x%x/0x%x/0x%x\n", check_auto_mic_availability()
H A Dpatch_sigmatel.c186 unsigned int headset_jack:1; /* 4-pin headset jack (hp + mono mic) */
204 unsigned int mic_enabled; /* current mic mute state (bitmask) */
333 /* hook for controlling mic-mute LED GPIO */ stac_capture_led_hook()
2721 { .id = STAC_92HD83XXX_PWR_REF, .name = "mic-ref" },
2729 { .id = STAC_92HD83XXX_HP_MIC_LED, .name = "hp-mic-led" },
3897 /* correct the front input jack as a mic */
4975 {0x15, AC_VERB_SET_CONNECT_SEL, 0x1}, /* mic-sel: 0a,0d,14,02 */
H A Dhda_codec.c4368 * snd_hda_get_default_vref - Get the default (mic) VREF pin bits
/linux-4.1.27/drivers/xen/
H A Dmcelog.c221 struct mcinfo_common *mic; convert_log() local
227 mic = NULL; convert_log()
228 x86_mcinfo_lookup(&mic, mi, MC_TYPE_GLOBAL); convert_log()
229 if (unlikely(!mic)) { convert_log()
236 mc_global = (struct mcinfo_global *)mic; convert_log()
253 mic = NULL; convert_log()
254 x86_mcinfo_lookup(&mic, mi, MC_TYPE_BANK); convert_log()
255 if (unlikely(!mic)) { convert_log()
261 if ((!mic) || (mic->size == 0) || convert_log()
262 (mic->type != MC_TYPE_GLOBAL && convert_log()
263 mic->type != MC_TYPE_BANK && convert_log()
264 mic->type != MC_TYPE_EXTENDED && convert_log()
265 mic->type != MC_TYPE_RECOVERY)) convert_log()
268 if (mic->type == MC_TYPE_BANK) { convert_log()
269 mc_bank = (struct mcinfo_bank *)mic; convert_log()
279 mic = x86_mcinfo_next(mic); convert_log()
/linux-4.1.27/sound/pci/oxygen/
H A Dxonar_dg.h33 /* input select: mic/fp mic/line/aux */
H A Dxonar_cs43xx.c36 * GPIO 8 -> route input jack to line-in (0) or mic-in (1)
43 * MIC_IN <- mic
44 * FMIC_IN <- front mic
H A Dxonar_dg.c48 * input 0 <- mic
50 * input 2 <- front mic
H A Dxonar_pcm179x.c42 * FMIC_IN <- mic
64 * GPIO 8 -> route input jack to line-in (0) or mic-in (1)
74 * MIC_IN <- mic
123 * GPIO 8 -> route input jack to line-in (0) or mic-in (1)
134 * MIC_IN <- mic
167 * GPIO 8 -> route input jack to mic-in (0) or line-in (1)
175 * FMIC_IN <- mic
178 * GPO 1 -> route mic-in from input jack (0) or front panel header (1)
H A Dxonar_wm87x6.c29 * GPIO 6 -> route input jack to mic-in (0) or line-in (1)
36 * input 2 <- mic
37 * input 3 <- front mic
58 * input 1 <- mic
786 /* line-in and mic-in are exclusive */ wm8776_input_mux_put()
H A Doxygen.c46 * MIC_IN <- mic
/linux-4.1.27/sound/oss/
H A Dwaveartist.h85 #define MIX_GAIN_XMIC 3 /* crossover mic */
86 #define MIX_GAIN_MIC 4 /* normal mic */
87 #define MIX_GAIN_PREMIC 5 /* preamp mic */
H A Dvidc.c63 0, /* mic */
76 0, /* mic */
H A Dwaveartist.c1256 /* set default input device = internal mic waveartist_mixer_reset()
1640 case SOUND_MIXER_MIC: /* right mic only */ netwinder_decode_mixer()
1645 case SOUND_MIXER_LINE1: /* left mic only */ netwinder_decode_mixer()
1680 case SOUND_MIXER_MIC: /* builtin mic: right mic only */ netwinder_get_mixer()
1685 case SOUND_MIXER_LINE1: /* handset mic: left mic only */ netwinder_get_mixer()
1690 case SOUND_MIXER_PHONEIN: /* phone mic: left aux1 only */ netwinder_get_mixer()
H A Dsb_mixer.c430 * mic set_recmask()
608 /* The ESS seems to have stereo mic controls */ sb_mixer_ioctl()
H A Dad1848_mixer.h175 * MIC is level of mic monitoring direct to output. Same for CD, LINE, etc.
H A Dmsnd_pinnacle.c454 case SOUND_MIXER_MIC: /* mic pot control */ mixer_set()
/linux-4.1.27/drivers/dma/
H A Dmic_x100_dma.h52 * DCAR - bit 24 & 25 interrupt masks for mic owned & host owned channels
55 * DRAR_LO - lower 32 bits of descriptor ring's mic address
56 * DRAR_HI - 3:0 - remaining 4 bits of descriptor ring's mic address
58 * 25:21 mic smpt entry number
102 * @desc_ring_micpa: mic physical address of desc_ring
104 * @status_dest_micpa: mic address for status_dest,
110 * @cookie: mic_irq cookie used with mic irq request
132 * struct mic_dma_device - per mic device
135 * @mbdev: mic bus dma device
H A Dmic_x100_dma.c409 "%s %d error setting up mic dma chan %d\n", mic_dma_check_chan()
448 "mic dma_channel", ch, ch->ch_num); mic_dma_setup_irq()
/linux-4.1.27/sound/pci/vx222/
H A Dvx222.h38 int input_level[2]; /* input level for vx222 mic */
39 int mic_level; /* mic level for vx222 mic */
H A Dvx222.c41 static bool mic[SNDRV_CARDS]; /* microphone */ variable
50 module_param_array(mic, bool, NULL, 0444);
51 MODULE_PARM_DESC(mic, "Enable Microphone.");
217 if (mic[dev]) snd_vx222_probe()
H A Dvx222_ops.c912 /* mic level */ vx_mic_level_info()
/linux-4.1.27/sound/pcmcia/vx/
H A Dvxp_mixer.c32 * mic level control (for VXPocket)
84 * mic boost level control (for VXP440)
137 /* mic level */ vxp_add_mic_controls()
H A Dvxpocket.h35 int mic_level; /* analog mic level (or boost) */
H A Dvxp_ops.c465 * vx_set_mic_boost - set mic boost level (on vxp440 only)
507 * vx_set_mic_level - set mic level (on vxpocket only)
508 * @level: the mic level = 0 - 8 (max)
548 /* reset mic levels */ vxp_change_audio_source()
/linux-4.1.27/sound/soc/codecs/
H A Dalc5632.h32 #define ALC5632_MIC_VOL 0x0E /* mic in vol */
33 /* stero dac/mic routing */
66 #define ALC5632_MIC_CTRL 0x22 /* mic phone ctrl */
72 #define ALC5632_DIGI_BOOST_CTRL 0x24 /* digi mic / bost ctl */
H A Drt286.c302 static int rt286_jack_detect(struct rt286_priv *rt286, bool *hp, bool *mic) rt286_jack_detect() argument
307 *mic = false; rt286_jack_detect()
337 *mic = true; rt286_jack_detect()
345 *mic = true; rt286_jack_detect()
347 *mic = false; rt286_jack_detect()
353 *mic = false; rt286_jack_detect()
360 *mic = buf & 0x80000000; rt286_jack_detect()
378 bool mic = false; rt286_jack_detect_work() local
380 rt286_jack_detect(rt286, &hp, &mic); rt286_jack_detect_work()
385 if (mic == true) rt286_jack_detect_work()
1024 bool mic = false; rt286_irq() local
1027 rt286_jack_detect(rt286, &hp, &mic); rt286_irq()
1035 if (mic == true) rt286_irq()
H A Dwm8350.c68 struct wm8350_jack_data mic; member in struct:wm8350_data
1376 trace_snd_soc_jack_irq("WM8350 mic"); wm8350_mic_handler()
1381 report |= priv->mic.short_report; wm8350_mic_handler()
1383 report |= priv->mic.report; wm8350_mic_handler()
1385 snd_soc_jack_report(priv->mic.jack, report, wm8350_mic_handler()
1386 priv->mic.report | priv->mic.short_report); wm8350_mic_handler()
1409 priv->mic.jack = jack; wm8350_mic_jack_detect()
1410 priv->mic.report = detect_report; wm8350_mic_jack_detect()
1411 priv->mic.short_report = short_report; wm8350_mic_jack_detect()
1571 priv->mic.jack = NULL; wm8350_codec_remove()
H A Dtlv320aic3x.c190 * mic bias power on/off share the same register bits with
191 * output voltage of mic bias. when power on mic bias, we
206 /* change mic bias voltage to user defined */ mic_bias_event()
668 * Force pin on or construct a path with an input jack and mic bias
691 * Not a real mic bias widget but similar function. This is for dynamic
692 * control of GPIO1 digital mic modulator clock output function when
693 * using digital mic.
701 * Also similar function like mic bias. Selects digital mic with
916 * Logical path between digital mic enable and GPIO1 modulator clock
1601 /* set mic bias voltage */ aic3x_probe()
H A Dwm9713.c94 SOC_ENUM_SINGLE(AC97_LINE, 3, 4, wm9713_mic_mixer), /* record mic mixer 0 */
112 SOC_ENUM_SINGLE(AC97_3D_CONTROL, 12, 3, wm9713_mic_select), /* mic selection 18 */
113 SOC_ENUM_SINGLE_VIRT(2, wm9713_micb_select), /* mic selection 19 */
347 /* headphone mic mux */
373 /* mono mic mux */
421 /* mic source */
425 /* mic source B virtual control */
656 /* mic */
H A Dsn95031.c48 /* enables mic bias voltage */ sn95031_enable_mic_bias()
139 /* reads the ADC registers and gets the mic bias value in mV. */ sn95031_get_mic_bias()
162 pr_debug("mic bias = %dmV\n", mic_bias); sn95031_get_mic_bias()
398 /* all end points mic, hs etc */
409 SND_SOC_DAPM_INPUT("AMIC1"), /* headset mic */
565 /* Headset (AMIC1) mic */
H A Dsgtl5000.c148 * output impedance of mic bias, when power on mic bias, we
163 /* change mic bias resistor */ mic_bias_event()
408 /* tlv for mic gain, 0db 20db 30db 40db */
H A Dcs42l51.c214 /* analog/mic */
H A Dssm2602.c151 ARRAY_SIZE(ssm260x_output_mixer_controls) - 1), /* Last element is the mic */
H A Dtlv320aic31xx.c442 /* change mic bias voltage to user defined */ mic_bias_event()
450 /* turn mic bias off */ mic_bias_event()
H A Dmax98095.c2063 /* Configure mic for analog/digital mic mode */ max98095_handle_pdata()
2101 /* if mic, check its bit, and if set, clear it */ max98095_report_jack()
H A Dda9055.c1434 /* set mic bias source */ da9055_probe()
1443 /* set mic bias voltage */ da9055_probe()
H A Dab8500-codec.c1993 dev_dbg(codec->dev, "%s: Mic 1 mic-type: %s\n", __func__, ab8500_audio_setup_mics()
1998 dev_dbg(codec->dev, "%s: Mic 2 mic-type: %s\n", __func__, ab8500_audio_setup_mics()
H A Dmax98088.c1869 /* Configure mic for analog/digital mic mode */ max98088_handle_pdata()
H A Dwm8904.h197 * R9 (0x09) - mic Filter Control
H A Dwm8994.c3621 /* Deferred mic detection to allow for extra settling time */ wm1811_mic_work()
3640 dev_dbg(codec->dev, "Starting mic detection\n"); wm1811_mic_work()
3902 "Failed to read mic detect status: %d\n", wm8958_mic_irq()
H A Dmax98090.c2197 /* Strong pull up allows mic detection */ max98090_jack_work()
H A Dtwl4030.c1337 /* Analog/Digital mic path selection.
H A Dwm8903.c1624 /* Enable mic detection, this may not have been set through wm8903_mic_detect()
H A Dwm8904.c99 { 9, 0x9696 }, /* R9 - mic Filter Control */
H A Dwm8962.c3529 if (of_property_read_u32(np, "mic-cfg", &val32) >= 0) wm8962_set_pdata_from_of()
/linux-4.1.27/include/linux/mfd/arizona/
H A Dpdata.h121 /** GPIO used for mic isolation with HPDET */
124 /** Extra debounce timeout used during initial mic detection (ms) */
127 /** GPIO for mic detection polarity */
142 /** Force MICBIAS on for mic detect */
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt_ccmp.c211 /* mic = skb_put(skb, CCMP_MIC_LEN); */ ieee80211_ccmp_encrypt()
235 u8 *mic; ieee80211_ccmp_encrypt() local
241 /* mic is moved to here by john */ ieee80211_ccmp_encrypt()
242 mic = skb_put(skb, CCMP_MIC_LEN); ieee80211_ccmp_encrypt()
263 mic[i] = b[i] ^ s0[i]; ieee80211_ccmp_encrypt()
328 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; ieee80211_ccmp_decrypt() local
336 xor_block(mic, b, CCMP_MIC_LEN); ieee80211_ccmp_decrypt()
354 if (memcmp(mic, a, CCMP_MIC_LEN) != 0) { ieee80211_ccmp_decrypt()
H A Dieee80211_crypt_tkip.c502 u8 *data, size_t data_len, u8 *mic) michael_mic()
521 return crypto_hash_digest(&desc, sg, data_len + 16, mic); michael_mic()
612 u8 mic[8]; ieee80211_michael_mic_verify() local
629 skb->data + hdr_len, skb->len - 8 - hdr_len, mic)) ieee80211_michael_mic_verify()
631 if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) { ieee80211_michael_mic_verify()
501 michael_mic(struct crypto_hash *tfm_michael, u8 *key, u8 *hdr, u8 *data, size_t data_len, u8 *mic) michael_mic() argument
/linux-4.1.27/sound/soc/pxa/
H A Dspitz.c59 /* enable and unmute hp jack, disable mic bias */ spitz_ext_control()
68 /* enable mic jack and bias, mute hp */ spitz_ext_control()
77 /* enable line jack, disable mic bias and mute hp */ spitz_ext_control()
86 /* enable and unmute headset jack enable mic bias, mute L hp */ spitz_ext_control()
218 /* headset is a mic and mono headphone */
236 /* mic is connected to input 1 - with bias */
H A Dz2.c110 /* headset is a mic and mono headphone */
125 /* mic is connected to R input 2 - with bias */
H A Dpalm27x.c70 /* mic connected to MIC1 */
H A Dcorgi.c240 /* mic is connected to MICIN (via right channel of headphone jack) */
243 /* Same as the above but no mic bias for line signals */
H A Dzylonite.c59 /* Headphone mic */
63 /* On-board mic */
H A Dpxa2xx-ac97.c193 .name = "pxa2xx-ac97-mic",
H A Dtosa.c162 /* internal mic is connected to mic1, mic2 differential - with bias */
/linux-4.1.27/include/xen/interface/
H A Dxen-mca.h228 * struct mcinfo_common *x86_mcinfo_next(struct mcinfo_common *mic);
241 struct mcinfo_common *mic; x86_mcinfo_lookup() local
247 mic = x86_mcinfo_first(mi); x86_mcinfo_lookup()
249 if (mic->type == type) { x86_mcinfo_lookup()
253 mic = x86_mcinfo_next(mic); x86_mcinfo_lookup()
256 *ret = found ? mic : NULL; x86_mcinfo_lookup()
/linux-4.1.27/drivers/extcon/
H A Dextcon-arizona.c93 bool mic; member in struct:arizona_extcon_info
488 bool *mic) arizona_hpdet_do_id()
500 /* Only check the mic directly if we didn't already ID it */ arizona_hpdet_do_id()
502 dev_dbg(arizona->dev, "Measuring mic\n"); arizona_hpdet_do_id()
537 * If we measure the mic as high impedance arizona_hpdet_do_id()
540 dev_dbg(arizona->dev, "Detected mic\n"); arizona_hpdet_do_id()
541 *mic = true; arizona_hpdet_do_id()
564 bool mic = false; arizona_hpdet_irq() local
599 ret = arizona_hpdet_do_id(info, &reading, &mic); arizona_hpdet_irq()
633 /* If we have a mic then reenable MICDET */ arizona_hpdet_irq()
634 if (mic || info->mic) arizona_hpdet_irq()
665 if (info->mic) arizona_identify_headphone()
699 if (info->mic) arizona_identify_headphone()
709 bool mic; arizona_start_hpdet_acc_id() local
742 arizona_hpdet_do_id(info, &hp_reading, &mic); arizona_start_hpdet_acc_id()
854 info->mic = true; arizona_micd_detect()
890 if (info->mic) { arizona_micd_detect()
915 dev_warn(arizona->dev, "Button with no mic: %x\n", arizona_micd_detect()
1041 info->mic = false; arizona_jackdet()
1062 info->mic = false; arizona_jackdet()
487 arizona_hpdet_do_id(struct arizona_extcon_info *info, int *reading, bool *mic) arizona_hpdet_do_id() argument
/linux-4.1.27/drivers/staging/rtl8192e/
H A Drtllib_crypt_ccmp.c225 u8 *mic; rtllib_ccmp_encrypt() local
231 mic = skb_put(skb, CCMP_MIC_LEN); rtllib_ccmp_encrypt()
253 mic[i] = b[i] ^ s0[i]; rtllib_ccmp_encrypt()
312 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; rtllib_ccmp_decrypt() local
320 xor_block(mic, b, CCMP_MIC_LEN); rtllib_ccmp_decrypt()
338 if (memcmp(mic, a, CCMP_MIC_LEN) != 0) { rtllib_ccmp_decrypt()
H A Drtllib_crypt_tkip.c506 u8 *data, size_t data_len, u8 *mic) michael_mic()
524 return crypto_hash_digest(&desc, sg, data_len + 16, mic); michael_mic()
611 u8 mic[8]; rtllib_michael_mic_verify() local
624 skb->data + hdr_len, skb->len - 8 - hdr_len, mic)) rtllib_michael_mic_verify()
627 if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) { rtllib_michael_mic_verify()
636 memcmp(mic, skb->data + skb->len - 8, 8) != 0); rtllib_michael_mic_verify()
505 michael_mic(struct crypto_hash *tfm_michael, u8 *key, u8 *hdr, u8 *data, size_t data_len, u8 *mic) michael_mic() argument
/linux-4.1.27/net/wireless/
H A Dlib80211_crypt_ccmp.c222 u8 *pos, *mic; lib80211_ccmp_encrypt() local
257 mic = skb_put(skb, CCMP_MIC_LEN); lib80211_ccmp_encrypt()
259 mic[i] = b[i] ^ s0[i]; lib80211_ccmp_encrypt()
296 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; lib80211_ccmp_decrypt() local
345 xor_block(mic, b, CCMP_MIC_LEN); lib80211_ccmp_decrypt()
363 if (memcmp(mic, a, CCMP_MIC_LEN) != 0) { lib80211_ccmp_decrypt()
H A Dlib80211_crypt_tkip.c509 u8 * data, size_t data_len, u8 * mic) michael_mic()
527 return crypto_hash_digest(&desc, sg, data_len + 16, mic); michael_mic()
612 u8 mic[8]; lib80211_michael_mic_verify() local
619 skb->data + hdr_len, skb->len - 8 - hdr_len, mic)) lib80211_michael_mic_verify()
621 if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) { lib80211_michael_mic_verify()
508 michael_mic(struct crypto_hash *tfm_michael, u8 * key, u8 * hdr, u8 * data, size_t data_len, u8 * mic) michael_mic() argument
/linux-4.1.27/net/sunrpc/auth_gss/
H A Dsvcauth_gss.c724 struct xdr_netobj mic; gss_write_verf() local
735 mic.data = (u8 *)(p + 1); gss_write_verf()
736 maj_stat = gss_get_mic(ctx_id, &verf_data, &mic); gss_write_verf()
739 *p++ = htonl(mic.len); gss_write_verf()
740 memset((u8 *)p + mic.len, 0, round_up_to_quad(mic.len) - mic.len); gss_write_verf()
741 p += XDR_QUADLEN(mic.len); gss_write_verf()
831 struct xdr_netobj mic; unwrap_integ_data() local
845 /* copy out mic... */ unwrap_integ_data()
846 if (read_u32_from_xdr_buf(buf, integ_len, &mic.len)) unwrap_integ_data()
848 if (mic.len > RPC_MAX_AUTH_SIZE) unwrap_integ_data()
850 mic.data = kmalloc(mic.len, GFP_KERNEL); unwrap_integ_data()
851 if (!mic.data) unwrap_integ_data()
853 if (read_bytes_from_xdr_buf(buf, integ_len + 4, mic.data, mic.len)) unwrap_integ_data()
855 maj_stat = gss_verify_mic(ctx, &integ_buf, &mic); unwrap_integ_data()
860 /* trim off the mic and padding at the end before returning */ unwrap_integ_data()
861 xdr_buf_trim(buf, round_up_to_quad(mic.len) + 4); unwrap_integ_data()
864 kfree(mic.data); unwrap_integ_data()
1584 struct xdr_netobj mic; svcauth_gss_wrap_resp_integ() local
1608 mic.data = (u8 *)resv->iov_base + resv->iov_len + 4; svcauth_gss_wrap_resp_integ()
1609 if (gss_get_mic(gsd->rsci->mechctx, &integ_buf, &mic)) svcauth_gss_wrap_resp_integ()
1611 svc_putnl(resv, mic.len); svcauth_gss_wrap_resp_integ()
1612 memset(mic.data + mic.len, 0, svcauth_gss_wrap_resp_integ()
1613 round_up_to_quad(mic.len) - mic.len); svcauth_gss_wrap_resp_integ()
1614 resv->iov_len += XDR_QUADLEN(mic.len) << 2; svcauth_gss_wrap_resp_integ()
1616 resbuf->len += XDR_QUADLEN(mic.len) << 2; svcauth_gss_wrap_resp_integ()
H A Dauth_gss.c1486 struct xdr_netobj mic; gss_marshal() local
1516 mic.data = (u8 *)(p + 1); gss_marshal()
1517 maj_stat = gss_get_mic(ctx->gc_gss_ctx, &verf_buf, &mic); gss_marshal()
1524 p = xdr_encode_opaque(p, NULL, mic.len); gss_marshal()
1612 struct xdr_netobj mic; gss_validate() local
1628 mic.data = (u8 *)p; gss_validate()
1629 mic.len = len; gss_validate()
1632 maj_stat = gss_verify_mic(ctx->gc_gss_ctx, &verf_buf, &mic); gss_validate()
1671 struct xdr_netobj mic; gss_wrap_req_integ() local
1695 mic.data = (u8 *)(p + 1); gss_wrap_req_integ()
1697 maj_stat = gss_get_mic(ctx->gc_gss_ctx, &integ_buf, &mic); gss_wrap_req_integ()
1703 q = xdr_encode_opaque(p, NULL, mic.len); gss_wrap_req_integ()
1865 struct xdr_netobj mic; gss_unwrap_resp_integ() local
1885 if (xdr_buf_read_netobj(rcv_buf, &mic, mic_offset)) gss_unwrap_resp_integ()
1888 maj_stat = gss_verify_mic(ctx->gc_gss_ctx, &integ_buf, &mic); gss_unwrap_resp_integ()
H A Dgss_krb5_unseal.c70 /* read_token is a mic token, and message_buffer is the data that the mic was
H A Dgss_mech_switch.c401 /* gss_get_mic: compute a mic over message and return mic_token. */
/linux-4.1.27/drivers/net/wireless/ti/wl12xx/
H A Ddebugfs.c91 WL12XX_DEBUGFS_FWSTATS_FILE(mic, rx_pkts, "%u");
92 WL12XX_DEBUGFS_FWSTATS_FILE(mic, calc_failure, "%u");
201 DEBUGFS_FWSTATS_ADD(mic, rx_pkts); wl12xx_debugfs_add_files()
202 DEBUGFS_FWSTATS_ADD(mic, calc_failure); wl12xx_debugfs_add_files()
H A Dacx.h265 struct wl12xx_acx_mic_statistics mic; member in struct:wl12xx_acx_statistics
/linux-4.1.27/sound/soc/tegra/
H A Dtegra_wm8903.c290 "nvidia,int-mic-en-gpios", 0); tegra_wm8903_driver_probe()
294 /* Disable int mic; enable signal is active-high */ tegra_wm8903_driver_probe()
305 "nvidia,ext-mic-en-gpios", 0); tegra_wm8903_driver_probe()
309 /* Enable ext mic; enable signal is active-low */ tegra_wm8903_driver_probe()
H A Dtegra_max98090.c242 of_get_named_gpio(np, "nvidia,mic-det-gpios", 0); tegra_max98090_probe()
H A Dtegra_rt5677.c233 "nvidia,mic-present-gpios", 0); tegra_rt5677_probe()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
H A Drtw_xmit.c630 u8 *pframe, *payload, mic[8]; xmitframe_addmic() local
649 /* encode mic code */ xmitframe_addmic()
660 /* start to calculate the mic code */ xmitframe_addmic()
668 /* start to calculate the mic code */ xmitframe_addmic()
717 rtw_secgetmic(&micdata, &(mic[0])); xmitframe_addmic()
718 RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_, ("xmitframe_addmic: before add mic code!!!\n")); xmitframe_addmic()
720 RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_, ("xmitframe_addmic: mic[0]=0x%.2x , mic[1]=0x%.2x , mic[2]= 0x%.2x, mic[3]=0x%.2x\n\ xmitframe_addmic()
721 mic[4]= 0x%.2x , mic[5]= 0x%.2x , mic[6]= 0x%.2x , mic[7]= 0x%.2x !!!!\n", xmitframe_addmic()
722 mic[0], mic[1], mic[2], mic[3], mic[4], mic[5], mic[6], mic[7])); xmitframe_addmic()
723 /* add mic code and add the mic code length in last_txcmdsz */ xmitframe_addmic()
725 memcpy(payload, &(mic[0]), 8); xmitframe_addmic()
H A Drtw_security.c1078 u8 mic[8]; aes_cipher() local
1152 mic[j] = aes_out[j]; aes_cipher()
1156 pframe[payload_index+j] = mic[j]; aes_cipher()
1275 u8 mic[8]; aes_decipher() local
1292 num_blocks = (plen-8) / 16; /* plen including llc, payload_length and mic) */ aes_decipher()
1350 /* start to calculate the mic */ aes_decipher()
1396 mic[j] = aes_out[j]; aes_decipher()
1400 message[payload_index+j] = mic[j]; aes_decipher()
1438 /* compare the mic */ aes_decipher()
1442 ("aes_decipher:mic check error mic[%d]: pframe(%x)!=message(%x)\n", aes_decipher()
1444 DBG_88E("aes_decipher:mic check error mic[%d]: pframe(%x)!=message(%x)\n", aes_decipher()
H A Drtw_recv.c308 /* calculate mic code */ recvframe_chkmic()
325 /* icv_len included the mic code */ recvframe_chkmic()
399 RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, (" mic error :prxattrib->bdecrypted=%d ", prxattrib->bdecrypted)); recvframe_chkmic()
400 DBG_88E(" mic error :prxattrib->bdecrypted=%d\n", prxattrib->bdecrypted); recvframe_chkmic()
402 RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, (" mic error :prxattrib->bdecrypted=%d ", prxattrib->bdecrypted)); recvframe_chkmic()
403 DBG_88E(" mic error :prxattrib->bdecrypted=%d\n", prxattrib->bdecrypted); recvframe_chkmic()
407 /* mic checked ok */ recvframe_chkmic()
1605 /* after defrag we must check tkip mic code */ recvframe_chk_defrag()
/linux-4.1.27/drivers/usb/wusbcore/
H A Dcrypto.c148 * @mic: buffer for placing the computed MIC (Message Integrity
199 struct crypto_cipher *tfm_aes, void *mic, wusb_ccm_mac()
283 bytewise_xor(mic, &ax, iv, 8); wusb_ccm_mac()
373 u8 mic[8]; wusb_oob_mic_verify() local
395 result = wusb_oob_mic(mic, stv_hsmic_key, &stv_hsmic_n, &stv_hsmic_hs); wusb_oob_mic_verify()
398 else if (memcmp(stv_hsmic_hs.MIC, mic, sizeof(mic))) { wusb_oob_mic_verify()
408 wusb_key_dump(mic, sizeof(mic)); wusb_oob_mic_verify()
198 wusb_ccm_mac(struct crypto_blkcipher *tfm_cbc, struct crypto_cipher *tfm_aes, void *mic, const struct aes_ccm_nonce *n, const struct aes_ccm_label *a, const void *b, size_t blen) wusb_ccm_mac() argument
H A Dsecurity.c372 u8 mic[8]; wusb_dev_4way_handshake() local
461 result = wusb_oob_mic(mic, keydvt_out.kck, &ccm_n, &hs[1]); wusb_dev_4way_handshake()
468 if (memcmp(hs[1].MIC, mic, sizeof(hs[1].MIC))) { wusb_dev_4way_handshake()
528 memzero_explicit(mic, sizeof(mic)); wusb_dev_4way_handshake()
/linux-4.1.27/drivers/staging/rtl8723au/core/
H A Drtw_xmit.c643 u8 *pframe, *payload, mic[8]; xmitframe_addmic() local
669 /* encode mic code */ xmitframe_addmic()
682 /* start to calculate the mic code */ xmitframe_addmic()
689 /* start to calculate the mic code */ xmitframe_addmic()
763 rtw_secgetmic23a(&micdata, &mic[0]); xmitframe_addmic()
765 "xmitframe_addmic: before add mic code!!\n"); xmitframe_addmic()
770 "xmitframe_addmic: mic[0]= 0x%.2x , mic[1]=0x%.2x , mic[2]= 0x%.2x , mic[3]= 0x%.2x\nmic[4]= 0x%.2x , mic[5]= 0x%.2x , mic[6]= 0x%.2x , mic[7]= 0x%.2x !!!!\n", xmitframe_addmic()
771 mic[0], mic[1], mic[2], mic[3], xmitframe_addmic()
772 mic[4], mic[5], mic[6], mic[7]); xmitframe_addmic()
773 /* add mic code and add the mic code length xmitframe_addmic()
776 memcpy(payload, &mic[0], 8); xmitframe_addmic()
H A Drtw_security.c1151 u8 mic[8]; aes_cipher() local
1232 mic[j] = aes_out[j]; aes_cipher()
1236 pframe[payload_index + j] = mic[j]; aes_cipher()
1372 u8 mic[8]; aes_decipher() local
1386 num_blocks = (plen - 8) / 16; /* plen including llc, payload_length and mic) */ aes_decipher()
1456 /* start to calculate the mic */ aes_decipher()
1504 mic[j] = aes_out[j]; aes_decipher()
1508 message[payload_index + j] = mic[j]; aes_decipher()
1551 /* compare the mic */ aes_decipher()
1555 "%s:mic check error mic[%d]: pframe(%x) != message(%x)\n", aes_decipher()
1559 DBG_8723A("%s:mic check error mic[%d]: pframe(%x) != message(%x)\n", aes_decipher()
H A Drtw_recv.c306 /* calculate mic code */ recvframe_chkmic()
329 /* icv_len included the mic code */ recvframe_chkmic()
416 "mic error :prxattrib->bdecrypted =%d\n", recvframe_chkmic()
418 DBG_8723A(" mic error :prxattrib->" recvframe_chkmic()
424 "mic error :prxattrib->bdecrypted =%d\n", recvframe_chkmic()
426 DBG_8723A(" mic error :prxattrib->" recvframe_chkmic()
433 /* mic checked ok */ recvframe_chkmic()
1761 /* after defrag we must check tkip mic code */ recvframe_chk_defrag23a()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
H A Ddebugfs.c178 DEBUGFS_FWSTATS_FILE(mic, rx_pkts, 20, "%u");
179 DEBUGFS_FWSTATS_FILE(mic, calc_failure, 20, "%u");
318 DEBUGFS_FWSTATS_DEL(mic, rx_pkts); wl1251_debugfs_delete_files()
319 DEBUGFS_FWSTATS_DEL(mic, calc_failure); wl1251_debugfs_delete_files()
419 DEBUGFS_FWSTATS_ADD(mic, rx_pkts); wl1251_debugfs_add_files()
420 DEBUGFS_FWSTATS_ADD(mic, calc_failure); wl1251_debugfs_add_files()
H A Dacx.h1084 struct acx_mic_statistics mic; member in struct:acx_statistics
/linux-4.1.27/sound/pci/cs5535audio/
H A Dcs5535audio_olpc.c49 * OLPC XO-1's V_REFOUT is a mic bias enable.
184 /* turn off the mic by default */ olpc_quirks()
/linux-4.1.27/sound/usb/
H A Dmixer_maps.c78 /* 9: IT mic */
115 /* 2: IT mic */
256 { 3, NULL}, /* IT mic (No mic input on device) */
H A Dquirks.c658 * channels, enable stereo mic. snd_usb_cm106_boot_quirk()
/linux-4.1.27/sound/soc/
H A Dsoc-jack.c148 * snd_soc_jack_get_type - Based on the mic bias value, this function returns
152 * @micbias_voltage: mic bias voltage at adc channel when jack is plugged in
154 * Based on the mic bias value passed, this function helps identify
H A Dsoc-dapm.c17 * mic/headphone insertion events.
/linux-4.1.27/sound/soc/intel/boards/
H A Dmfld_machine.c45 /* mic bias volutage range for Headphones*/
47 /* mic bias volutage range for American Headset*/
49 /* mic bias volutage range for Headset*/
H A Dbyt-max98090.c76 .name = "mic-gpio",
/linux-4.1.27/arch/powerpc/platforms/cell/
H A Dqpace_setup.c89 platform_device_register_simple("cbe-mic", node, NULL, 0); for_each_online_node()
H A Dcbe_regs.c207 for_each_node_by_type(np, "mic-tm") cbe_fill_regs_map()
228 prop = of_get_property(cpu, "mic-tm", NULL); cbe_fill_regs_map()
H A Dras.c186 /* support for malta device trees, with be@/mic@ nodes */ cbe_ptcal_enable()
187 for_each_node_by_type(np, "mic-tm") { cbe_ptcal_enable()
H A Dspu_manage.c493 /* a neighbour might be spe, mic-tm, or bif0 */ init_affinity_node()
503 * "mic-tm" and "bif0" nodes do not have init_affinity_node()
511 if (!strcmp(name, "mic-tm")) { init_affinity_node()
H A Dsetup.c183 platform_device_register_simple("cbe-mic", node, NULL, 0); for_each_online_node()
/linux-4.1.27/sound/parisc/
H A Dharmony.h113 #define HARMONY_GAIN_IS_SHIFT 24 /* input select - 0 for line, 1 for mic */
/linux-4.1.27/sound/pci/ctxfi/
H A Dctdaio.h37 MIC, /* Dedicated mic on Titanium HD */
H A Dcthw20k2.c1145 unsigned char mic20db; /* boost mic by 20db if input is microphone */
1903 /* Configure GPIO bit 14 change to line-in/mic-in */ hw_adc_init()
H A Dcthw20k1.c1202 unsigned char mic20db; /* boost mic by 20db if input is microphone */
/linux-4.1.27/drivers/staging/rtl8712/
H A Drtl871x_xmit.c349 u8 *pframe, *payload, mic[8]; xmitframe_addmic() local
365 /*encode mic code*/ xmitframe_addmic()
376 /*start to calculate the mic code*/ xmitframe_addmic()
385 /* start to calculate the mic code */ xmitframe_addmic()
438 r8712_secgetmic(&micdata, &(mic[0])); xmitframe_addmic()
439 /* add mic code and add the mic code length in xmitframe_addmic()
441 memcpy(payload, &(mic[0]), 8); xmitframe_addmic()
H A Drtl871x_security.c1044 u8 mic[8]; aes_cipher() local
1111 mic[j] = aes_out[j]; aes_cipher()
1114 pframe[payload_index+j] = mic[j]; aes_cipher()
1215 u8 mic[8]; aes_decipher() local
1228 /*(plen including llc, payload and mic) */ aes_decipher()
1280 /* start to calculate the mic */ aes_decipher()
1317 mic[j] = aes_out[j]; aes_decipher()
1320 message[payload_index+j] = mic[j]; aes_decipher()
1354 /* compare the mic */ aes_decipher()
H A Drtl871x_recv.c173 /* calculate mic code */ r8712_recvframe_chkmic()
185 /*icv_len included the mic code*/ r8712_recvframe_chkmic()
206 /* mic checked ok */ r8712_recvframe_chkmic()
H A Drtl8712_recv.c319 /* after defrag we must check tkip mic code */ r8712_recvframe_chk_defrag()
H A Drtl871x_ioctl_linux.c128 if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */ handle_pairwise_key()
/linux-4.1.27/drivers/media/i2c/
H A Dtlv320aic23b.c175 /* turn off DAC & mic input */ tlv320aic23b_probe()
/linux-4.1.27/drivers/misc/mic/card/
H A Dmic_virtio.c408 dev_err(mdrv->dev, "Cannot allocate mic dev %u type %u\n", mic_add_device()
435 "Failed to register mic device %u type %u\n", mic_add_device()
440 dev_dbg(mic_dev(mvdev), "%s: registered mic device %u type %u mvdev %p\n", mic_add_device()
453 * match for a mic device with a specific desc pointer
H A Dmic_x100.c35 static const char mic_driver_name[] = "mic";
/linux-4.1.27/drivers/staging/vt6656/
H A Drxtx.h204 struct vnt_tx_mic_hdr mic; member in union:vnt_tx
H A Drxtx.c607 head = &tx_head->tx_rts.tx.mic.head; vnt_rxtx_rts()
634 head = &tx_head->tx_cts.tx.mic.head; vnt_rxtx_cts()
657 head = &tx_head->tx_ab.tx.mic.head; vnt_rxtx_ab()
693 tx_head.tx_rts.tx.mic.hdr; vnt_generate_tx_parameter()
700 *mic_hdr = &tx_buffer->tx_head.tx_cts.tx.mic.hdr; vnt_generate_tx_parameter()
706 *mic_hdr = &tx_buffer->tx_head.tx_ab.tx.mic.hdr; vnt_generate_tx_parameter()
/linux-4.1.27/sound/soc/samsung/
H A Dh1940_uda1380.c157 /* mic is connected to VINM */
H A Drx1950_uda1380.c115 /* mic is connected to VINM */
H A Dspeyside.c125 /* Re-run DAPM to make sure we're using the correct mic bias */ speyside_set_polarity()
H A Dac97.c308 .name = "samsung-ac97-mic",
/linux-4.1.27/drivers/net/wireless/
H A Dairo.c841 __be32 mic; member in struct:MICBuffer
955 u64 accum; // accumulated mic, reduced to u32 in final()
1150 static int decapsulate(struct airo_info *ai, MICBuffer *mic, etherHead *pPacket, u16 payLen);
1308 /* Age current mic Context */ age_mic_context()
1318 /* Give key to mic seed */ age_mic_context()
1322 /* micinit - Initialize mic seed */
1334 /* So next time we have a valid key and mic is enabled, we will micinit()
1384 * PacketTxLen will be updated with the mic'd packets size.
1387 * be big enough to hold the largets mic message possible.
1394 static int encapsulate(struct airo_info *ai ,etherHead *frame, MICBuffer *mic, int payLen) encapsulate() argument
1409 mic->typelen = htons(payLen + 16); //Length of Mic'd packet encapsulate()
1411 memcpy(&mic->u.snap, micsnap, sizeof(micsnap)); // Add Snap encapsulate()
1414 mic->seq = htonl(context->tx); encapsulate()
1419 emmh32_update(&context->seed,(u8*)&mic->typelen,10); // Type/Length and Snap encapsulate()
1420 emmh32_update(&context->seed,(u8*)&mic->seq,sizeof(mic->seq)); //SEQ encapsulate()
1422 emmh32_final(&context->seed, (u8*)&mic->mic); encapsulate()
1425 mic->typelen = 0; //Let NIC know it could be an oversized packet encapsulate()
1450 static int decapsulate(struct airo_info *ai, MICBuffer *mic, etherHead *eth, u16 payLen) decapsulate() argument
1469 if (ntohs(mic->typelen) == 0x888E) decapsulate()
1472 if (memcmp (mic->u.snap, micsnap, sizeof(micsnap)) != 0) { decapsulate()
1478 micSEQ = ntohl(mic->seq); //store SEQ as CPU order decapsulate()
1480 //At this point we a have a mic'd packet and mic is enabled decapsulate()
1481 //Now do the mic error checking. decapsulate()
1502 if (!mic->typelen) decapsulate()
1503 mic->typelen = htons(payLen + sizeof(MICBuffer) - 2); decapsulate()
1507 emmh32_update(&context->seed, (u8 *)&mic->typelen, sizeof(mic->typelen)+sizeof(mic->u.snap)); decapsulate()
1508 emmh32_update(&context->seed, (u8 *)&mic->seq,sizeof(mic->seq)); decapsulate()
1513 if (memcmp(digest, &mic->mic, 4)) { //Make sure the mics match decapsulate()
1544 * Inputs: miccntx - mic context to check seq against
1624 /* mic accumulate */
1659 /* prepare for calculation of a new mic */ emmh32_init()
1662 /* prepare for new mic calculation */ emmh32_init()
1667 /* add some bytes to the mic calculation */ emmh32_update()
1709 /* calculate the mic */ emmh32_final()
/linux-4.1.27/sound/pci/ac97/
H A Dac97_patch.c83 * shared line-in/mic controls
213 /* system has shared jacks with mic in enabled */ is_shared_micin()
1245 /* VARIOUS */ 0x0041 /* stereo mic */ patch_sigmatel_stac9758()
1662 #define AC97_AD198X_MBC 0x0003 /* mic boost */
1673 #define AC97_AD198X_2MIC 0x0040 /* 2-channel mic select */
1686 #define AC97_AD1986_MBC 0x0003 /* mic boost */
1698 #define AC97_AD1986_2MIC 0x0040 /* 2-channel mic select */
2531 /* turn on/off center-on-mic */ alc650_update_jacks()
2534 /* GPIO0 high for mic */ alc650_update_jacks()
2657 center on mic off, surround on line-in off patch_alc650()
2662 /* set GPIO0 for mic bias */ patch_alc650()
2805 center on mic off, surround on line-in off patch_alc655()
2892 center on mic off, surround on line-in off patch_alc850()
3095 /* bit 13: enable internal vref output for mic */ patch_cm9739()
3284 * bit 7: Mic/LFE share (mic/center/lfe) patch_cm9761()
3288 * bit 2: front mic patch_cm9761()
3289 * bit 1: stereo mic patch_cm9761()
3290 * bit 0: mic boost level (0=20dB, 1=30dB) patch_cm9761()
3671 /* mic jack */
H A Dac97_codec.c2328 /* surround, CLFE, mic powerdown */ snd_ac97_powerdown()
2731 /* ac97 tune: set up mic sharing for AD codecs */ tune_ad_sharing()
/linux-4.1.27/drivers/misc/mic/host/
H A Dmic_main.c39 static const char mic_driver_name[] = "mic";
370 mdev->attr_group, "mic%d", mdev->id); mic_probe()
H A Dmic_intr.c336 0, "mic-msi", mdev); mic_setup_msi()
375 IRQF_SHARED, "mic-intx", mdev); mic_setup_intx()
H A Dmic_virtio.c416 * Avoid lockdep false positive. The + 1 is for the mic mic_virtio_device_reset()
698 snprintf(irqname, sizeof(irqname), "mic%dvirtio%d", mdev->id, mic_virtio_add_device()
H A Dmic_smpt.c224 /* Set the smpt table appropriately and get 16G aligned mic address */ mic_map()
/linux-4.1.27/sound/soc/omap/
H A Drx51.c45 RX51_JACK_HP, /* headphone: stereo output, no mic */
46 RX51_JACK_HS, /* headset: stereo output with mic */
/linux-4.1.27/drivers/regulator/
H A Darizona-micsupp.c293 dev_err(arizona->dev, "Failed to register mic supply: %d\n", arizona_micsupp_probe()
/linux-4.1.27/drivers/edac/
H A Dcell_edac.c247 .name = "cbe-mic",
/linux-4.1.27/arch/arm/mach-lpc32xx/
H A Dirq.c408 { .compatible = "nxp,lpc3220-mic", .data = __lpc32xx_mic_of_init },
/linux-4.1.27/sound/isa/msnd/
H A Dmsnd_pinnacle_mixer.c213 case MSND_MIXER_MIC: /* mic pot control */ snd_msndmix_set()
/linux-4.1.27/sound/ppc/
H A Dawacs.h147 #define MASK_MIC_BOOST (0x4) /* screamer mic boost */
H A Dawacs.c539 * mic boost for screamer
/linux-4.1.27/sound/soc/atmel/
H A Dsam9g20_wm8731.c101 /* mic is connected to Mic Jack, with WM8731 Mic Bias */
/linux-4.1.27/sound/soc/fsl/
H A Dwm1133-ev1.c28 /* There is a silicon mic on the board optionally connected via a solder pad
/linux-4.1.27/sound/pci/pcxhr/
H A Dpcxhr_mix22.c708 /* mic level */
759 /* mic boost level */
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dcommon.c390 * With split mic keys the number of stations is limited ath9k_cmn_init_crypto()
/linux-4.1.27/include/linux/usb/
H A Dwusb.h366 * hs->mic is ignored (as we compute that value).
/linux-4.1.27/include/uapi/linux/
H A Dnvme.h51 __u8 mic; member in struct:nvme_id_ctrl
H A Dsoundcard.h777 #define SOUND_MIXER_MONITOR 24 /* Monitor (usually mic) volume */
802 "mic", "cd", "mix", "pcm2", "rec", "igain", "ogain", \
/linux-4.1.27/drivers/video/fbdev/
H A Dimsttfb.c587 __u8 tcc, mxc, lckl_n, mic; set_imstt_regvals_tvp() local
621 mic = 0x08; set_imstt_regvals_tvp()
637 par->cmap_regs[TVPIDATA] = mic; eieio(); set_imstt_regvals_tvp()
/linux-4.1.27/sound/mips/
H A Dad1843.c549 * mic gain to +20 dB. ad1843_init()
H A Dsgio2audio.c301 /* mic mixer control */
/linux-4.1.27/sound/soc/generic/
H A Dsimple-card.c469 "simple-audio-card,mic-det-gpio", 0, &flags);
/linux-4.1.27/drivers/isdn/hardware/mISDN/
H A Dw6692.c548 setvolume(struct w6692_ch *wch, int mic, struct sk_buff *skb)
563 if (mic) {
/linux-4.1.27/sound/aoa/codecs/
H A Donyx.c264 static void onyx_set_capture_source(struct onyx *onyx, int mic) onyx_set_capture_source() argument
271 if (mic) onyx_set_capture_source()
/linux-4.1.27/sound/pci/ca0106/
H A Dca0106.h669 int gpio_type; /* gpio_type = 1 -> shared mic-in/line-in
672 controls, phone, mic, line-in and aux. */
H A Dca0106_main.c110 * No sound out or mic input working yet.
/linux-4.1.27/drivers/net/wireless/iwlwifi/
H A Diwl-fw-file.h381 * @mic_len: mic length in bytes
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
H A Dioctl_linux.c460 if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */ wpa_set_encryption()
2346 /* set mic key */ rtw_set_encryption()
2389 /* set mic key */ rtw_set_encryption()
2420 /* set mic key */ rtw_set_encryption()
/linux-4.1.27/arch/ia64/include/asm/
H A Dprocessor.h159 __u64 mic : 4; member in struct:ia64_tpr::__anon1521
/linux-4.1.27/sound/aoa/fabrics/
H A Dlayout.c512 /* but it has an external mic?? how to select? */
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/
H A Dioctl_cfg80211.c548 /* set mic key */ rtw_cfg80211_ap_set_encryption()
622 /* set mic key */ rtw_cfg80211_ap_set_encryption()
666 /* set mic key */ rtw_cfg80211_ap_set_encryption()
/linux-4.1.27/sound/pci/
H A Dcmipci.c313 #define CM_VADMIC_MASK 0x0e /* mic gain level (0-3) << 1 */
315 #define CM_MICGAINZ 0x01 /* mic boost */
327 #define CM_MIC_CENTER_LFE 0x04 /* mic as center/lfe out? (model 039 or later?) */
H A Dbt87x.c105 #define CTL_A_SEL_SML (2 << 24) /* mic/line audio input */
/linux-4.1.27/sound/pci/emu10k1/
H A Demufx.c1307 /* AC'97 Playback Volume - used only for mic (renamed later) */ _snd_emu10k1_audigy_init_efx()
1312 /* AC'97 Capture Volume - used only for mic */ _snd_emu10k1_audigy_init_efx()
1318 /* mic capture buffer */ _snd_emu10k1_audigy_init_efx()
H A Demu10k1_main.c269 outl(tmp | 0x4, emu->port + A_IOCFG); /* Set bit 2 for mic input */ snd_emu10k1_init()
1439 * 2: Analog input 0 = line in, 1 = mic in
H A Demupcm.c1474 if ((err = snd_pcm_new(emu->card, "emu10k1 mic", device, 0, 1, &pcm)) < 0) snd_emu10k1_pcm_mic()
H A Demumixer.c1936 /* set capture source to mic */ snd_emu10k1_mixer()
/linux-4.1.27/drivers/media/usb/gspca/
H A Dgspca.c730 * has a usb audio class interface (a built in usb mic); and build_isoc_ep_tb()
734 * then skip the highest alt setting to spare bandwidth for the mic build_isoc_ep_tb()
/linux-4.1.27/include/linux/
H A Dieee80211.h1017 u8 mic[8]; member in struct:ieee80211_mmie
1026 u8 mic[16]; member in struct:ieee80211_mmie_16
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
H A Dmain.c686 "ap tkip mic error received from aid=%d\n", keyid); ath6kl_tkip_micerr_event()
/linux-4.1.27/drivers/net/wireless/mwifiex/
H A Dfw.h1835 u8 reg_domain; /*1=fcc, 2=etsi, 3=mic*/
/linux-4.1.27/drivers/staging/rtl8192e/rtl8192e/
H A Drtl_wx.c187 RT_TRACE(COMP_DBG, "%s(): force mic error !\n", __func__); r8192_wx_force_mic_error()
/linux-4.1.27/sound/isa/gus/
H A Dinterwave.c523 /* add new master and mic controls */ snd_interwave_mixer()
/linux-4.1.27/sound/isa/opti9xx/
H A Dmiro.c753 /* PCM12/PCM20 with mic-preamp */ snd_miro_mixer()
/linux-4.1.27/sound/pci/ice1712/
H A Dquartet.c122 /* Mic/Line select relay (0:line, 1:mic) */
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
H A Dhtt_rx.c903 "rx skb %p len %u peer %pM %s %s sn %u %s%s%s%s%s %srate_idx %u vht_nss %u freq %u band %u flag 0x%x fcs-err %i mic-err %i amsdu-more %i\n", ath10k_process_rx()
H A Dwmi.h3404 /* contains key followed by tx mic followed by rx mic */
/linux-4.1.27/sound/sparc/
H A Ddbri.c2432 /* FIXME: mic/line switch */
/linux-4.1.27/drivers/platform/x86/
H A Dthinkpad_acpi.c3230 * The mic mute button only sends 0x1a. It does not hotkey_init()
3231 * automatically mute the mic or change the mute light. hotkey_init()
/linux-4.1.27/include/net/
H A Dmac80211.h1500 * @mic_len: a mic length in bytes

Completed in 8161 milliseconds