mic 158 arch/ia64/include/asm/processor.h __u64 mic : 4; mic 96 drivers/extcon/extcon-arizona.c bool mic; mic 525 drivers/extcon/extcon-arizona.c bool *mic) mic 578 drivers/extcon/extcon-arizona.c *mic = true; mic 601 drivers/extcon/extcon-arizona.c bool mic = false; mic 636 drivers/extcon/extcon-arizona.c ret = arizona_hpdet_do_id(info, &reading, &mic); mic 671 drivers/extcon/extcon-arizona.c if (mic || info->mic) mic 702 drivers/extcon/extcon-arizona.c if (info->mic) mic 735 drivers/extcon/extcon-arizona.c if (info->mic) mic 745 drivers/extcon/extcon-arizona.c bool mic; mic 778 drivers/extcon/extcon-arizona.c arizona_hpdet_do_id(info, &hp_reading, &mic); mic 899 drivers/extcon/extcon-arizona.c info->mic = false; mic 908 drivers/extcon/extcon-arizona.c info->mic = true; mic 961 drivers/extcon/extcon-arizona.c if (info->mic) { mic 1150 drivers/extcon/extcon-arizona.c info->mic = false; mic 1173 drivers/extcon/extcon-arizona.c info->mic = false; mic 108 drivers/gpu/drm/exynos/exynos_drm_mic.c static void mic_set_path(struct exynos_mic *mic, bool enable) mic 113 drivers/gpu/drm/exynos/exynos_drm_mic.c ret = regmap_read(mic->sysreg, DSD_CFG_MUX, &val); mic 115 drivers/gpu/drm/exynos/exynos_drm_mic.c DRM_DEV_ERROR(mic->dev, mic 121 drivers/gpu/drm/exynos/exynos_drm_mic.c if (mic->i80_mode) mic 130 drivers/gpu/drm/exynos/exynos_drm_mic.c ret = regmap_write(mic->sysreg, DSD_CFG_MUX, val); mic 132 drivers/gpu/drm/exynos/exynos_drm_mic.c DRM_DEV_ERROR(mic->dev, mic 136 drivers/gpu/drm/exynos/exynos_drm_mic.c static int mic_sw_reset(struct exynos_mic *mic) mic 141 drivers/gpu/drm/exynos/exynos_drm_mic.c writel(MIC_SW_RST, mic->reg + MIC_OP); mic 144 drivers/gpu/drm/exynos/exynos_drm_mic.c ret = readl(mic->reg + MIC_OP); mic 154 drivers/gpu/drm/exynos/exynos_drm_mic.c static void mic_set_porch_timing(struct exynos_mic *mic) mic 156 drivers/gpu/drm/exynos/exynos_drm_mic.c struct videomode vm = mic->vm; mic 162 drivers/gpu/drm/exynos/exynos_drm_mic.c writel(reg, mic->reg + MIC_V_TIMING_0); mic 166 drivers/gpu/drm/exynos/exynos_drm_mic.c writel(reg, mic->reg + MIC_V_TIMING_1); mic 171 drivers/gpu/drm/exynos/exynos_drm_mic.c writel(reg, mic->reg + MIC_INPUT_TIMING_0); mic 175 drivers/gpu/drm/exynos/exynos_drm_mic.c writel(reg, mic->reg + MIC_INPUT_TIMING_1); mic 178 drivers/gpu/drm/exynos/exynos_drm_mic.c static void mic_set_img_size(struct exynos_mic *mic) mic 180 drivers/gpu/drm/exynos/exynos_drm_mic.c struct videomode *vm = &mic->vm; mic 186 drivers/gpu/drm/exynos/exynos_drm_mic.c writel(reg, mic->reg + MIC_IMG_SIZE); mic 189 drivers/gpu/drm/exynos/exynos_drm_mic.c static void mic_set_output_timing(struct exynos_mic *mic) mic 191 drivers/gpu/drm/exynos/exynos_drm_mic.c struct videomode vm = mic->vm; mic 194 drivers/gpu/drm/exynos/exynos_drm_mic.c DRM_DEV_DEBUG(mic->dev, "w: %u, h: %u\n", vm.hactive, vm.vactive); mic 197 drivers/gpu/drm/exynos/exynos_drm_mic.c writel(reg, mic->reg + MIC_2D_OUTPUT_TIMING_2); mic 199 drivers/gpu/drm/exynos/exynos_drm_mic.c if (!mic->i80_mode) { mic 203 drivers/gpu/drm/exynos/exynos_drm_mic.c writel(reg, mic->reg + MIC_2D_OUTPUT_TIMING_0); mic 207 drivers/gpu/drm/exynos/exynos_drm_mic.c writel(reg, mic->reg + MIC_2D_OUTPUT_TIMING_1); mic 211 drivers/gpu/drm/exynos/exynos_drm_mic.c static void mic_set_reg_on(struct exynos_mic *mic, bool enable) mic 213 drivers/gpu/drm/exynos/exynos_drm_mic.c u32 reg = readl(mic->reg + MIC_OP); mic 220 drivers/gpu/drm/exynos/exynos_drm_mic.c if (mic->i80_mode) mic 227 drivers/gpu/drm/exynos/exynos_drm_mic.c writel(reg, mic->reg + MIC_OP); mic 234 drivers/gpu/drm/exynos/exynos_drm_mic.c struct exynos_mic *mic = bridge->driver_private; mic 237 drivers/gpu/drm/exynos/exynos_drm_mic.c if (!mic->enabled) mic 240 drivers/gpu/drm/exynos/exynos_drm_mic.c mic_set_path(mic, 0); mic 242 drivers/gpu/drm/exynos/exynos_drm_mic.c pm_runtime_put(mic->dev); mic 243 drivers/gpu/drm/exynos/exynos_drm_mic.c mic->enabled = 0; mic 253 drivers/gpu/drm/exynos/exynos_drm_mic.c struct exynos_mic *mic = bridge->driver_private; mic 256 drivers/gpu/drm/exynos/exynos_drm_mic.c drm_display_mode_to_videomode(mode, &mic->vm); mic 257 drivers/gpu/drm/exynos/exynos_drm_mic.c mic->i80_mode = to_exynos_crtc(bridge->encoder->crtc)->i80_mode; mic 263 drivers/gpu/drm/exynos/exynos_drm_mic.c struct exynos_mic *mic = bridge->driver_private; mic 267 drivers/gpu/drm/exynos/exynos_drm_mic.c if (mic->enabled) mic 270 drivers/gpu/drm/exynos/exynos_drm_mic.c ret = pm_runtime_get_sync(mic->dev); mic 274 drivers/gpu/drm/exynos/exynos_drm_mic.c mic_set_path(mic, 1); mic 276 drivers/gpu/drm/exynos/exynos_drm_mic.c ret = mic_sw_reset(mic); mic 278 drivers/gpu/drm/exynos/exynos_drm_mic.c DRM_DEV_ERROR(mic->dev, "Failed to reset\n"); mic 282 drivers/gpu/drm/exynos/exynos_drm_mic.c if (!mic->i80_mode) mic 283 drivers/gpu/drm/exynos/exynos_drm_mic.c mic_set_porch_timing(mic); mic 284 drivers/gpu/drm/exynos/exynos_drm_mic.c mic_set_img_size(mic); mic 285 drivers/gpu/drm/exynos/exynos_drm_mic.c mic_set_output_timing(mic); mic 286 drivers/gpu/drm/exynos/exynos_drm_mic.c mic_set_reg_on(mic, 1); mic 287 drivers/gpu/drm/exynos/exynos_drm_mic.c mic->enabled = 1; mic 293 drivers/gpu/drm/exynos/exynos_drm_mic.c pm_runtime_put(mic->dev); mic 311 drivers/gpu/drm/exynos/exynos_drm_mic.c struct exynos_mic *mic = dev_get_drvdata(dev); mic 313 drivers/gpu/drm/exynos/exynos_drm_mic.c mic->bridge.driver_private = mic; mic 321 drivers/gpu/drm/exynos/exynos_drm_mic.c struct exynos_mic *mic = dev_get_drvdata(dev); mic 324 drivers/gpu/drm/exynos/exynos_drm_mic.c if (!mic->enabled) mic 327 drivers/gpu/drm/exynos/exynos_drm_mic.c pm_runtime_put(mic->dev); mic 341 drivers/gpu/drm/exynos/exynos_drm_mic.c struct exynos_mic *mic = dev_get_drvdata(dev); mic 345 drivers/gpu/drm/exynos/exynos_drm_mic.c clk_disable_unprepare(mic->clks[i]); mic 352 drivers/gpu/drm/exynos/exynos_drm_mic.c struct exynos_mic *mic = dev_get_drvdata(dev); mic 356 drivers/gpu/drm/exynos/exynos_drm_mic.c ret = clk_prepare_enable(mic->clks[i]); mic 361 drivers/gpu/drm/exynos/exynos_drm_mic.c clk_disable_unprepare(mic->clks[i]); mic 378 drivers/gpu/drm/exynos/exynos_drm_mic.c struct exynos_mic *mic; mic 382 drivers/gpu/drm/exynos/exynos_drm_mic.c mic = devm_kzalloc(dev, sizeof(*mic), GFP_KERNEL); mic 383 drivers/gpu/drm/exynos/exynos_drm_mic.c if (!mic) { mic 390 drivers/gpu/drm/exynos/exynos_drm_mic.c mic->dev = dev; mic 397 drivers/gpu/drm/exynos/exynos_drm_mic.c mic->reg = devm_ioremap(dev, res.start, resource_size(&res)); mic 398 drivers/gpu/drm/exynos/exynos_drm_mic.c if (!mic->reg) { mic 404 drivers/gpu/drm/exynos/exynos_drm_mic.c mic->sysreg = syscon_regmap_lookup_by_phandle(dev->of_node, mic 406 drivers/gpu/drm/exynos/exynos_drm_mic.c if (IS_ERR(mic->sysreg)) { mic 408 drivers/gpu/drm/exynos/exynos_drm_mic.c ret = PTR_ERR(mic->sysreg); mic 413 drivers/gpu/drm/exynos/exynos_drm_mic.c mic->clks[i] = devm_clk_get(dev, clk_names[i]); mic 414 drivers/gpu/drm/exynos/exynos_drm_mic.c if (IS_ERR(mic->clks[i])) { mic 417 drivers/gpu/drm/exynos/exynos_drm_mic.c ret = PTR_ERR(mic->clks[i]); mic 422 drivers/gpu/drm/exynos/exynos_drm_mic.c platform_set_drvdata(pdev, mic); mic 424 drivers/gpu/drm/exynos/exynos_drm_mic.c mic->bridge.funcs = &mic_bridge_funcs; mic 425 drivers/gpu/drm/exynos/exynos_drm_mic.c mic->bridge.of_node = dev->of_node; mic 427 drivers/gpu/drm/exynos/exynos_drm_mic.c drm_bridge_add(&mic->bridge); mic 447 drivers/gpu/drm/exynos/exynos_drm_mic.c struct exynos_mic *mic = platform_get_drvdata(pdev); mic 452 drivers/gpu/drm/exynos/exynos_drm_mic.c drm_bridge_remove(&mic->bridge); mic 529 drivers/isdn/hardware/mISDN/w6692.c setvolume(struct w6692_ch *wch, int mic, struct sk_buff *skb) mic 544 drivers/isdn/hardware/mISDN/w6692.c if (mic) { mic 844 drivers/net/wireless/cisco/airo.c __be32 mic; mic 1153 drivers/net/wireless/cisco/airo.c static int decapsulate(struct airo_info *ai, MICBuffer *mic, etherHead *pPacket, u16 payLen); mic 1398 drivers/net/wireless/cisco/airo.c static int encapsulate(struct airo_info *ai ,etherHead *frame, MICBuffer *mic, int payLen) mic 1413 drivers/net/wireless/cisco/airo.c mic->typelen = htons(payLen + 16); //Length of Mic'd packet mic 1415 drivers/net/wireless/cisco/airo.c memcpy(&mic->u.snap, micsnap, sizeof(micsnap)); // Add Snap mic 1418 drivers/net/wireless/cisco/airo.c mic->seq = htonl(context->tx); mic 1423 drivers/net/wireless/cisco/airo.c emmh32_update(&context->seed,(u8*)&mic->typelen,10); // Type/Length and Snap mic 1424 drivers/net/wireless/cisco/airo.c emmh32_update(&context->seed,(u8*)&mic->seq,sizeof(mic->seq)); //SEQ mic 1426 drivers/net/wireless/cisco/airo.c emmh32_final(&context->seed, (u8*)&mic->mic); mic 1429 drivers/net/wireless/cisco/airo.c mic->typelen = 0; //Let NIC know it could be an oversized packet mic 1454 drivers/net/wireless/cisco/airo.c static int decapsulate(struct airo_info *ai, MICBuffer *mic, etherHead *eth, u16 payLen) mic 1473 drivers/net/wireless/cisco/airo.c if (ntohs(mic->typelen) == 0x888E) mic 1476 drivers/net/wireless/cisco/airo.c if (memcmp (mic->u.snap, micsnap, sizeof(micsnap)) != 0) { mic 1482 drivers/net/wireless/cisco/airo.c micSEQ = ntohl(mic->seq); //store SEQ as CPU order mic 1506 drivers/net/wireless/cisco/airo.c if (!mic->typelen) mic 1507 drivers/net/wireless/cisco/airo.c mic->typelen = htons(payLen + sizeof(MICBuffer) - 2); mic 1511 drivers/net/wireless/cisco/airo.c emmh32_update(&context->seed, (u8 *)&mic->typelen, sizeof(mic->typelen)+sizeof(mic->u.snap)); mic 1512 drivers/net/wireless/cisco/airo.c emmh32_update(&context->seed, (u8 *)&mic->seq,sizeof(mic->seq)); mic 1517 drivers/net/wireless/cisco/airo.c if (memcmp(digest, &mic->mic, 4)) { //Make sure the mics match mic 406 drivers/net/wireless/intersil/orinoco/main.c u8 *mic = &mic_buf[0]; mic 411 drivers/net/wireless/intersil/orinoco/main.c *mic = skb->data[skb->len - 1]; mic 412 drivers/net/wireless/intersil/orinoco/main.c mic++; mic 418 drivers/net/wireless/intersil/orinoco/main.c len, mic); mic 964 drivers/net/wireless/intersil/orinoco/main.c u8 mic[MICHAEL_MIC_LEN]; mic 986 drivers/net/wireless/intersil/orinoco/main.c skb->data, skb->len, &mic[0]); mic 988 drivers/net/wireless/intersil/orinoco/main.c if (memcmp(mic, rxmic, mic 48 drivers/net/wireless/intersil/orinoco/mic.c u8 *data, size_t data_len, u8 *mic) mic 85 drivers/net/wireless/intersil/orinoco/mic.c err = crypto_shash_final(desc, mic); mic 21 drivers/net/wireless/intersil/orinoco/mic.h u8 *data, size_t data_len, u8 *mic); mic 203 drivers/net/wireless/intersil/orinoco/orinoco.h u8 *mic); mic 1198 drivers/net/wireless/intersil/orinoco/orinoco_usb.c u8 mic[MICHAEL_MIC_LEN + 1]; mic 1247 drivers/net/wireless/intersil/orinoco/orinoco_usb.c &mic[0]); mic 1261 drivers/net/wireless/intersil/orinoco/orinoco_usb.c u8 *m = mic; mic 1070 drivers/net/wireless/ti/wl1251/acx.h struct acx_mic_statistics mic; mic 159 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_FWSTATS_FILE(mic, rx_pkts, 20, "%u"); mic 160 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_FWSTATS_FILE(mic, calc_failure, 20, "%u"); mic 299 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_FWSTATS_DEL(mic, rx_pkts); mic 300 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_FWSTATS_DEL(mic, calc_failure); mic 398 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_FWSTATS_ADD(mic, rx_pkts); mic 399 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_FWSTATS_ADD(mic, calc_failure); mic 251 drivers/net/wireless/ti/wl12xx/acx.h struct wl12xx_acx_mic_statistics mic; mic 77 drivers/net/wireless/ti/wl12xx/debugfs.c WL12XX_DEBUGFS_FWSTATS_FILE(mic, rx_pkts, "%u"); mic 78 drivers/net/wireless/ti/wl12xx/debugfs.c WL12XX_DEBUGFS_FWSTATS_FILE(mic, calc_failure, "%u"); mic 177 drivers/net/wireless/ti/wl12xx/debugfs.c DEBUGFS_FWSTATS_ADD(mic, rx_pkts); mic 178 drivers/net/wireless/ti/wl12xx/debugfs.c DEBUGFS_FWSTATS_ADD(mic, calc_failure); mic 344 drivers/staging/ks7010/ks_hostif.c u8 mic[MICHAEL_MIC_LEN]; mic 375 drivers/staging/ks7010/ks_hostif.c 0, mic); mic 378 drivers/staging/ks7010/ks_hostif.c if (memcmp(mic, recv_mic, sizeof(mic)) != 0) { mic 1178 drivers/staging/ks7010/ks_hostif.c u8 mic[MICHAEL_MIC_LEN]; mic 1182 drivers/staging/ks7010/ks_hostif.c 0, mic); mic 1186 drivers/staging/ks7010/ks_hostif.c memcpy(p, mic, sizeof(mic)); mic 1187 drivers/staging/ks7010/ks_hostif.c length += sizeof(mic); mic 1188 drivers/staging/ks7010/ks_hostif.c skb_len += sizeof(mic); mic 1189 drivers/staging/ks7010/ks_hostif.c p += sizeof(mic); mic 1099 drivers/staging/rtl8188eu/core/rtw_security.c u8 mic[8]; mic 1173 drivers/staging/rtl8188eu/core/rtw_security.c mic[j] = aes_out[j]; mic 1177 drivers/staging/rtl8188eu/core/rtw_security.c pframe[payload_index+j] = mic[j]; mic 591 drivers/staging/rtl8188eu/core/rtw_xmit.c u8 *pframe, *payload, mic[8]; mic 679 drivers/staging/rtl8188eu/core/rtw_xmit.c rtw_secgetmic(&micdata, &mic[0]); mic 684 drivers/staging/rtl8188eu/core/rtw_xmit.c __func__, mic[0], mic[1], mic[2], mic[3], mic[4], mic[5], mic[6], mic[7])); mic 687 drivers/staging/rtl8188eu/core/rtw_xmit.c memcpy(payload, &mic[0], 8); mic 500 drivers/staging/rtl8192e/rtllib_crypt_tkip.c u8 *data, size_t data_len, u8 *mic) mic 519 drivers/staging/rtl8192e/rtllib_crypt_tkip.c err = crypto_shash_final(desc, mic); mic 610 drivers/staging/rtl8192e/rtllib_crypt_tkip.c u8 mic[8]; mic 623 drivers/staging/rtl8192e/rtllib_crypt_tkip.c skb->data + hdr_len, skb->len - 8 - hdr_len, mic)) mic 626 drivers/staging/rtl8192e/rtllib_crypt_tkip.c if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) { mic 634 drivers/staging/rtl8192e/rtllib_crypt_tkip.c memcmp(mic, skb->data + skb->len - 8, 8) != 0); mic 496 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c u8 *data, size_t data_len, u8 *mic) mic 515 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c err = crypto_shash_final(desc, mic); mic 609 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c u8 mic[8]; mic 625 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c skb->data + hdr_len, skb->len - 8 - hdr_len, mic)) mic 627 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) { mic 1030 drivers/staging/rtl8712/rtl871x_security.c u8 mic[8]; mic 1098 drivers/staging/rtl8712/rtl871x_security.c mic[j] = aes_out[j]; mic 1101 drivers/staging/rtl8712/rtl871x_security.c pframe[payload_index + j] = mic[j]; mic 1202 drivers/staging/rtl8712/rtl871x_security.c u8 mic[8]; mic 1304 drivers/staging/rtl8712/rtl871x_security.c mic[j] = aes_out[j]; mic 1307 drivers/staging/rtl8712/rtl871x_security.c message[payload_index + j] = mic[j]; mic 349 drivers/staging/rtl8712/rtl871x_xmit.c u8 *pframe, *payload, mic[8]; mic 436 drivers/staging/rtl8712/rtl871x_xmit.c r8712_secgetmic(&micdata, &(mic[0])); mic 440 drivers/staging/rtl8712/rtl871x_xmit.c memcpy(payload, &(mic[0]), 8); mic 1345 drivers/staging/rtl8723bs/core/rtw_security.c u8 mic[8]; mic 1448 drivers/staging/rtl8723bs/core/rtw_security.c mic[j] = aes_out[j]; mic 1452 drivers/staging/rtl8723bs/core/rtw_security.c pframe[payload_index+j] = mic[j]; /* message[payload_index+j] = mic[j]; */ mic 1593 drivers/staging/rtl8723bs/core/rtw_security.c u8 mic[8]; mic 1766 drivers/staging/rtl8723bs/core/rtw_security.c mic[j] = aes_out[j]; mic 1770 drivers/staging/rtl8723bs/core/rtw_security.c message[payload_index+j] = mic[j]; mic 1946 drivers/staging/rtl8723bs/core/rtw_security.c u8 mic[16]; mic 1997 drivers/staging/rtl8723bs/core/rtw_security.c , BIP_AAD, ori_len, mic)) mic 2001 drivers/staging/rtl8723bs/core/rtw_security.c if (!memcmp(mic, pframe+pattrib->pkt_len-8, 8)) { mic 855 drivers/staging/rtl8723bs/core/rtw_xmit.c u8 *pframe, *payload, mic[8]; mic 959 drivers/staging/rtl8723bs/core/rtw_xmit.c rtw_secgetmic(&micdata, &(mic[0])); mic 964 drivers/staging/rtl8723bs/core/rtw_xmit.c mic[0], mic[1], mic[2], mic[3], mic[4], mic[5], mic[6], mic[7])); mic 967 drivers/staging/rtl8723bs/core/rtw_xmit.c memcpy(payload, &(mic[0]), 8); mic 1394 drivers/staging/rtl8723bs/core/rtw_xmit.c u8 mic[16]; mic 1429 drivers/staging/rtl8723bs/core/rtw_xmit.c , BIP_AAD, BIP_AAD_SIZE+frame_body_len, mic)) mic 1433 drivers/staging/rtl8723bs/core/rtw_xmit.c memcpy(pframe-8, mic, 8); mic 425 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c u8 mic[8]; mic 456 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c rtw_secgetmic(&micdata, &(mic[0])); mic 459 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c memcpy(pARPRspPkt, &(mic[0]), 8); mic 607 drivers/staging/vt6656/rxtx.c head = &tx_head->tx_rts.tx.mic.head; mic 634 drivers/staging/vt6656/rxtx.c head = &tx_head->tx_cts.tx.mic.head; mic 657 drivers/staging/vt6656/rxtx.c head = &tx_head->tx_ab.tx.mic.head; mic 692 drivers/staging/vt6656/rxtx.c &tx_buffer->tx_head.tx_rts.tx.mic.hdr; mic 699 drivers/staging/vt6656/rxtx.c *mic_hdr = &tx_buffer->tx_head.tx_cts.tx.mic.hdr; mic 705 drivers/staging/vt6656/rxtx.c *mic_hdr = &tx_buffer->tx_head.tx_ab.tx.mic.hdr; mic 191 drivers/staging/vt6656/rxtx.h struct vnt_tx_mic_hdr mic; mic 180 drivers/staging/wusbcore/crypto.c void *mic, mic 231 drivers/staging/wusbcore/crypto.c crypto_xor_cpy(mic, (u8 *)&scratch->ax, iv, 8); mic 305 drivers/staging/wusbcore/crypto.c u8 mic[8]; mic 323 drivers/staging/wusbcore/crypto.c result = wusb_oob_mic(mic, stv_hsmic_key, &stv_hsmic_n, &stv_hsmic_hs); mic 326 drivers/staging/wusbcore/crypto.c else if (memcmp(stv_hsmic_hs.MIC, mic, sizeof(mic))) { mic 336 drivers/staging/wusbcore/crypto.c wusb_key_dump(mic, sizeof(mic)); mic 359 drivers/staging/wusbcore/security.c u8 mic[8]; mic 445 drivers/staging/wusbcore/security.c result = wusb_oob_mic(mic, keydvt_out.kck, &ccm_n, &hs[1]); mic 452 drivers/staging/wusbcore/security.c if (memcmp(hs[1].MIC, mic, sizeof(hs[1].MIC))) { mic 512 drivers/staging/wusbcore/security.c memzero_explicit(mic, sizeof(mic)); mic 584 drivers/video/fbdev/imsttfb.c __u8 tcc, mxc, lckl_n, mic; mic 618 drivers/video/fbdev/imsttfb.c mic = 0x08; mic 634 drivers/video/fbdev/imsttfb.c par->cmap_regs[TVPIDATA] = mic; eieio(); mic 221 drivers/xen/mcelog.c struct mcinfo_common *mic; mic 227 drivers/xen/mcelog.c mic = NULL; mic 228 drivers/xen/mcelog.c x86_mcinfo_lookup(&mic, mi, MC_TYPE_GLOBAL); mic 229 drivers/xen/mcelog.c if (unlikely(!mic)) { mic 236 drivers/xen/mcelog.c mc_global = (struct mcinfo_global *)mic; mic 253 drivers/xen/mcelog.c mic = NULL; mic 254 drivers/xen/mcelog.c x86_mcinfo_lookup(&mic, mi, MC_TYPE_BANK); mic 255 drivers/xen/mcelog.c if (unlikely(!mic)) { mic 261 drivers/xen/mcelog.c if ((!mic) || (mic->size == 0) || mic 262 drivers/xen/mcelog.c (mic->type != MC_TYPE_GLOBAL && mic 263 drivers/xen/mcelog.c mic->type != MC_TYPE_BANK && mic 264 drivers/xen/mcelog.c mic->type != MC_TYPE_EXTENDED && mic 265 drivers/xen/mcelog.c mic->type != MC_TYPE_RECOVERY)) mic 268 drivers/xen/mcelog.c if (mic->type == MC_TYPE_BANK) { mic 269 drivers/xen/mcelog.c mc_bank = (struct mcinfo_bank *)mic; mic 279 drivers/xen/mcelog.c mic = x86_mcinfo_next(mic); mic 1079 include/linux/ieee80211.h u8 mic[8]; mic 1088 include/linux/ieee80211.h u8 mic[16]; mic 241 include/xen/interface/xen-mca.h struct mcinfo_common *mic; mic 247 include/xen/interface/xen-mca.h mic = x86_mcinfo_first(mi); mic 249 include/xen/interface/xen-mca.h if (mic->type == type) { mic 253 include/xen/interface/xen-mca.h mic = x86_mcinfo_next(mic); mic 256 include/xen/interface/xen-mca.h *ret = found ? mic : NULL; mic 19 net/mac80211/aead_api.c u8 *data, size_t data_len, u8 *mic) mic 37 net/mac80211/aead_api.c sg_set_buf(&sg[2], mic, mic_len); mic 50 net/mac80211/aead_api.c u8 *data, size_t data_len, u8 *mic) mic 72 net/mac80211/aead_api.c sg_set_buf(&sg[2], mic, mic_len); mic 15 net/mac80211/aead_api.h size_t data_len, u8 *mic); mic 19 net/mac80211/aead_api.h size_t data_len, u8 *mic); mic 23 net/mac80211/aes_ccm.h size_t data_len, u8 *mic) mic 27 net/mac80211/aes_ccm.h data, data_len, mic); mic 33 net/mac80211/aes_ccm.h size_t data_len, u8 *mic) mic 37 net/mac80211/aes_ccm.h data, data_len, mic); mic 25 net/mac80211/aes_cmac.c const u8 *data, size_t data_len, u8 *mic) mic 37 net/mac80211/aes_cmac.c memcpy(mic, out, CMAC_TLEN); mic 41 net/mac80211/aes_cmac.c const u8 *data, size_t data_len, u8 *mic) mic 50 net/mac80211/aes_cmac.c crypto_shash_finup(desc, zero, CMAC_TLEN_256, mic); mic 15 net/mac80211/aes_cmac.h const u8 *data, size_t data_len, u8 *mic); mic 17 net/mac80211/aes_cmac.h const u8 *data, size_t data_len, u8 *mic); mic 15 net/mac80211/aes_gcm.h size_t data_len, u8 *mic) mic 19 net/mac80211/aes_gcm.h data, data_len, mic); mic 24 net/mac80211/aes_gcm.h size_t data_len, u8 *mic) mic 28 net/mac80211/aes_gcm.h data, data_len, mic); mic 18 net/mac80211/aes_gmac.c const u8 *data, size_t data_len, u8 *mic) mic 40 net/mac80211/aes_gmac.c sg_set_buf(&sg[3], mic, GMAC_MIC_LEN); mic 18 net/mac80211/aes_gmac.h const u8 *data, size_t data_len, u8 *mic); mic 54 net/mac80211/michael.c const u8 *data, size_t data_len, u8 *mic) mic 81 net/mac80211/michael.c put_unaligned_le32(mctx.l, mic); mic 82 net/mac80211/michael.c put_unaligned_le32(mctx.r, mic + 4); mic 20 net/mac80211/michael.h const u8 *data, size_t data_len, u8 *mic); mic 31 net/mac80211/wpa.c u8 *data, *key, *mic; mic 76 net/mac80211/wpa.c mic = skb_put(skb, MICHAEL_MIC_LEN); mic 80 net/mac80211/wpa.c memset(mic, 0, MICHAEL_MIC_LEN); mic 85 net/mac80211/wpa.c michael_mic(key, hdr, data, data_len, mic); mic 87 net/mac80211/wpa.c mic[0]++; mic 99 net/mac80211/wpa.c u8 mic[MICHAEL_MIC_LEN]; mic 161 net/mac80211/wpa.c michael_mic(key, hdr, data, data_len, mic); mic 162 net/mac80211/wpa.c if (crypto_memneq(mic, data + data_len, MICHAEL_MIC_LEN)) mic 975 net/mac80211/wpa.c skb->data + 24, skb->len - 24, mmie->mic); mic 1018 net/mac80211/wpa.c skb->data + 24, skb->len - 24, mmie->mic); mic 1030 net/mac80211/wpa.c u8 aad[20], mic[8], ipn[6]; mic 1058 net/mac80211/wpa.c skb->data + 24, skb->len - 24, mic); mic 1059 net/mac80211/wpa.c if (crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { mic 1080 net/mac80211/wpa.c u8 aad[20], mic[16], ipn[6]; mic 1108 net/mac80211/wpa.c skb->data + 24, skb->len - 24, mic); mic 1109 net/mac80211/wpa.c if (crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { mic 1166 net/mac80211/wpa.c skb->data + 24, skb->len - 24, mmie->mic) < 0) mic 1179 net/mac80211/wpa.c u8 aad[GMAC_AAD_LEN], *mic, ipn[6], nonce[GMAC_NONCE_LEN]; mic 1210 net/mac80211/wpa.c mic = kmalloc(GMAC_MIC_LEN, GFP_ATOMIC); mic 1211 net/mac80211/wpa.c if (!mic) mic 1215 net/mac80211/wpa.c mic) < 0 || mic 1216 net/mac80211/wpa.c crypto_memneq(mic, mmie->mic, sizeof(mmie->mic))) { mic 1218 net/mac80211/wpa.c kfree(mic); mic 1221 net/mac80211/wpa.c kfree(mic); mic 1535 net/sunrpc/auth_gss/auth_gss.c struct xdr_netobj mic; mic 1575 net/sunrpc/auth_gss/auth_gss.c mic.data = (u8 *)(p + 1); mic 1576 net/sunrpc/auth_gss/auth_gss.c maj_stat = gss_get_mic(ctx->gc_gss_ctx, &verf_buf, &mic); mic 1581 net/sunrpc/auth_gss/auth_gss.c if (xdr_stream_encode_opaque_inline(xdr, (void **)&p, mic.len) < 0) mic 1679 net/sunrpc/auth_gss/auth_gss.c struct xdr_netobj mic; mic 1702 net/sunrpc/auth_gss/auth_gss.c mic.data = (u8 *)p; mic 1703 net/sunrpc/auth_gss/auth_gss.c mic.len = len; mic 1704 net/sunrpc/auth_gss/auth_gss.c maj_stat = gss_verify_mic(ctx->gc_gss_ctx, &verf_buf, &mic); mic 1733 net/sunrpc/auth_gss/auth_gss.c struct xdr_netobj mic; mic 1755 net/sunrpc/auth_gss/auth_gss.c mic.data = (u8 *)(p + 1); mic 1756 net/sunrpc/auth_gss/auth_gss.c maj_stat = gss_get_mic(ctx->gc_gss_ctx, &integ_buf, &mic); mic 1762 net/sunrpc/auth_gss/auth_gss.c if (xdr_stream_encode_opaque_inline(xdr, (void **)&p, mic.len) < 0) mic 1959 net/sunrpc/auth_gss/auth_gss.c struct xdr_netobj mic; mic 1963 net/sunrpc/auth_gss/auth_gss.c mic.data = NULL; mic 1993 net/sunrpc/auth_gss/auth_gss.c mic.len = len; mic 1994 net/sunrpc/auth_gss/auth_gss.c mic.data = kmalloc(len, GFP_NOFS); mic 1995 net/sunrpc/auth_gss/auth_gss.c if (!mic.data) mic 1997 net/sunrpc/auth_gss/auth_gss.c if (read_bytes_from_xdr_buf(rcv_buf, offset, mic.data, mic.len)) mic 2000 net/sunrpc/auth_gss/auth_gss.c maj_stat = gss_verify_mic(ctx->gc_gss_ctx, &gss_data, &mic); mic 2006 net/sunrpc/auth_gss/auth_gss.c auth->au_rslack = auth->au_verfsize + 2 + 1 + XDR_QUADLEN(mic.len); mic 2011 net/sunrpc/auth_gss/auth_gss.c kfree(mic.data); mic 746 net/sunrpc/auth_gss/svcauth_gss.c struct xdr_netobj mic; mic 761 net/sunrpc/auth_gss/svcauth_gss.c mic.data = (u8 *)(p + 1); mic 762 net/sunrpc/auth_gss/svcauth_gss.c maj_stat = gss_get_mic(ctx_id, &verf_data, &mic); mic 765 net/sunrpc/auth_gss/svcauth_gss.c *p++ = htonl(mic.len); mic 766 net/sunrpc/auth_gss/svcauth_gss.c memset((u8 *)p + mic.len, 0, round_up_to_quad(mic.len) - mic.len); mic 767 net/sunrpc/auth_gss/svcauth_gss.c p += XDR_QUADLEN(mic.len); mic 860 net/sunrpc/auth_gss/svcauth_gss.c struct xdr_netobj mic; mic 885 net/sunrpc/auth_gss/svcauth_gss.c if (read_u32_from_xdr_buf(buf, integ_len, &mic.len)) mic 887 net/sunrpc/auth_gss/svcauth_gss.c if (mic.len > RPC_MAX_AUTH_SIZE) mic 889 net/sunrpc/auth_gss/svcauth_gss.c mic.data = kmalloc(mic.len, GFP_KERNEL); mic 890 net/sunrpc/auth_gss/svcauth_gss.c if (!mic.data) mic 892 net/sunrpc/auth_gss/svcauth_gss.c if (read_bytes_from_xdr_buf(buf, integ_len + 4, mic.data, mic.len)) mic 894 net/sunrpc/auth_gss/svcauth_gss.c maj_stat = gss_verify_mic(ctx, &integ_buf, &mic); mic 900 net/sunrpc/auth_gss/svcauth_gss.c xdr_buf_trim(buf, round_up_to_quad(mic.len) + 4); mic 903 net/sunrpc/auth_gss/svcauth_gss.c kfree(mic.data); mic 1666 net/sunrpc/auth_gss/svcauth_gss.c struct xdr_netobj mic; mic 1692 net/sunrpc/auth_gss/svcauth_gss.c mic.data = (u8 *)resv->iov_base + resv->iov_len + 4; mic 1693 net/sunrpc/auth_gss/svcauth_gss.c if (gss_get_mic(gsd->rsci->mechctx, &integ_buf, &mic)) mic 1695 net/sunrpc/auth_gss/svcauth_gss.c svc_putnl(resv, mic.len); mic 1696 net/sunrpc/auth_gss/svcauth_gss.c memset(mic.data + mic.len, 0, mic 1697 net/sunrpc/auth_gss/svcauth_gss.c round_up_to_quad(mic.len) - mic.len); mic 1698 net/sunrpc/auth_gss/svcauth_gss.c resv->iov_len += XDR_QUADLEN(mic.len) << 2; mic 1700 net/sunrpc/auth_gss/svcauth_gss.c resbuf->len += XDR_QUADLEN(mic.len) << 2; mic 1291 net/sunrpc/xdr.c int xdr_buf_read_mic(struct xdr_buf *buf, struct xdr_netobj *mic, unsigned int offset) mic 1296 net/sunrpc/xdr.c if (xdr_decode_word(buf, offset, &mic->len)) mic 1302 net/sunrpc/xdr.c if (offset < boundary && (offset + mic->len) > boundary) mic 1307 net/sunrpc/xdr.c if (offset < boundary && (offset + mic->len) > boundary) mic 1310 net/sunrpc/xdr.c if (xdr_buf_subsegment(buf, &subbuf, offset, mic->len)) mic 1314 net/sunrpc/xdr.c mic->data = subbuf.head[0].iov_base; mic 1315 net/sunrpc/xdr.c if (subbuf.head[0].iov_len == mic->len) mic 1318 net/sunrpc/xdr.c mic->data = subbuf.tail[0].iov_base; mic 1319 net/sunrpc/xdr.c if (subbuf.tail[0].iov_len == mic->len) mic 1323 net/sunrpc/xdr.c if (mic->len > buf->buflen - buf->len) mic 1326 net/sunrpc/xdr.c mic->data = buf->tail[0].iov_base + buf->tail[0].iov_len; mic 1328 net/sunrpc/xdr.c mic->data = buf->head[0].iov_base + buf->head[0].iov_len; mic 1329 net/sunrpc/xdr.c __read_bytes_from_xdr_buf(&subbuf, mic->data, mic->len); mic 475 net/wireless/lib80211_crypt_tkip.c u8 *data, size_t data_len, u8 *mic) mic 499 net/wireless/lib80211_crypt_tkip.c err = crypto_shash_final(desc, mic); mic 588 net/wireless/lib80211_crypt_tkip.c u8 mic[8]; mic 595 net/wireless/lib80211_crypt_tkip.c skb->data + hdr_len, skb->len - 8 - hdr_len, mic)) mic 597 net/wireless/lib80211_crypt_tkip.c if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) { mic 147 samples/mic/mpssd/mpssd.c tap_configure(struct mic_info *mic, char *dev) mic 166 samples/mic/mpssd/mpssd.c mic->name, strerror(errno)); mic 172 samples/mic/mpssd/mpssd.c mic->name, strerror(errno)); mic 179 samples/mic/mpssd/mpssd.c mic->name, strerror(errno)); mic 183 samples/mic/mpssd/mpssd.c snprintf(ipaddr, IFNAMSIZ, "172.31.%d.254/24", mic->id + 1); mic 198 samples/mic/mpssd/mpssd.c mic->name, strerror(errno)); mic 204 samples/mic/mpssd/mpssd.c mic->name, strerror(errno)); mic 211 samples/mic/mpssd/mpssd.c mic->name, strerror(errno)); mic 215 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__); mic 219 samples/mic/mpssd/mpssd.c static int tun_alloc(struct mic_info *mic, char *dev) mic 241 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, strerror(errno)); mic 251 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, strerror(errno)); mic 266 samples/mic/mpssd/mpssd.c static void set_dp(struct mic_info *mic, int type, void *dp) mic 270 samples/mic/mpssd/mpssd.c mic->mic_console.console_dp = dp; mic 273 samples/mic/mpssd/mpssd.c mic->mic_net.net_dp = dp; mic 276 samples/mic/mpssd/mpssd.c mic->mic_virtblk.block_dp = dp; mic 279 samples/mic/mpssd/mpssd.c mpsslog("%s %s %d not found\n", mic->name, __func__, type); mic 283 samples/mic/mpssd/mpssd.c static void *get_dp(struct mic_info *mic, int type) mic 287 samples/mic/mpssd/mpssd.c return mic->mic_console.console_dp; mic 289 samples/mic/mpssd/mpssd.c return mic->mic_net.net_dp; mic 291 samples/mic/mpssd/mpssd.c return mic->mic_virtblk.block_dp; mic 293 samples/mic/mpssd/mpssd.c mpsslog("%s %s %d not found\n", mic->name, __func__, type); mic 298 samples/mic/mpssd/mpssd.c static struct mic_device_desc *get_device_desc(struct mic_info *mic, int type) mic 302 samples/mic/mpssd/mpssd.c void *dp = get_dp(mic, type); mic 316 samples/mic/mpssd/mpssd.c mic->name, __func__, d->type, d); mic 321 samples/mic/mpssd/mpssd.c mpsslog("%s %s %d not found\n", mic->name, __func__, type); mic 348 samples/mic/mpssd/mpssd.c static inline void verify_out_len(struct mic_info *mic, mic 353 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 361 samples/mic/mpssd/mpssd.c disp_iovec(struct mic_info *mic, struct mic_copy_desc *copy, mic 368 samples/mic/mpssd/mpssd.c mic->name, s, line, i, mic 390 samples/mic/mpssd/mpssd.c mic_virtio_copy(struct mic_info *mic, int fd, mic 398 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 416 samples/mic/mpssd/mpssd.c init_vr(struct mic_info *mic, int fd, int type, mic 429 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 433 samples/mic/mpssd/mpssd.c set_dp(mic, type, va); mic 440 samples/mic/mpssd/mpssd.c __func__, mic->name, vr0->va, vr0->info, vr_size, mic 453 samples/mic/mpssd/mpssd.c __func__, mic->name, vr1->va, vr1->info, vr_size, mic 464 samples/mic/mpssd/mpssd.c wait_for_card_driver(struct mic_info *mic, int fd, int type) mic 468 samples/mic/mpssd/mpssd.c struct mic_device_desc *desc = get_device_desc(mic, type); mic 476 samples/mic/mpssd/mpssd.c mic->name, __func__, type, desc->status); mic 484 samples/mic/mpssd/mpssd.c mic->name, __func__, strerror(errno)); mic 492 samples/mic/mpssd/mpssd.c mic->name, __func__, type, mic 498 samples/mic/mpssd/mpssd.c mic->name, __func__, pollfd.revents); mic 500 samples/mic/mpssd/mpssd.c mic->name, __func__, type, mic 511 samples/mic/mpssd/mpssd.c spin_for_descriptors(struct mic_info *mic, struct mic_vring *vr) mic 518 samples/mic/mpssd/mpssd.c mic->name, __func__, mic 537 samples/mic/mpssd/mpssd.c struct mic_info *mic = (struct mic_info *)arg; mic 545 samples/mic/mpssd/mpssd.c snprintf(if_name, IFNAMSIZ, "mic%d", mic->id); mic 546 samples/mic/mpssd/mpssd.c mic->mic_net.tap_fd = tun_alloc(mic, if_name); mic 547 samples/mic/mpssd/mpssd.c if (mic->mic_net.tap_fd < 0) mic 550 samples/mic/mpssd/mpssd.c if (tap_configure(mic, if_name)) mic 552 samples/mic/mpssd/mpssd.c mpsslog("MIC name %s id %d\n", mic->name, mic->id); mic 554 samples/mic/mpssd/mpssd.c net_poll[NET_FD_VIRTIO_NET].fd = mic->mic_net.virtio_net_fd; mic 556 samples/mic/mpssd/mpssd.c net_poll[NET_FD_TUN].fd = mic->mic_net.tap_fd; mic 559 samples/mic/mpssd/mpssd.c if (MAP_FAILED == init_vr(mic, mic->mic_net.virtio_net_fd, mic 563 samples/mic/mpssd/mpssd.c mic->name, strerror(errno)); mic 568 samples/mic/mpssd/mpssd.c desc = get_device_desc(mic, VIRTIO_ID_NET); mic 584 samples/mic/mpssd/mpssd.c err = wait_for_card_driver(mic, mic 585 samples/mic/mpssd/mpssd.c mic->mic_net.virtio_net_fd, mic 589 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__); mic 609 samples/mic/mpssd/mpssd.c mpsslog("%s %s %d hdr->flags 0x%x ", mic->name, mic 615 samples/mic/mpssd/mpssd.c disp_iovec(mic, copy, __func__, __LINE__); mic 617 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 620 samples/mic/mpssd/mpssd.c spin_for_descriptors(mic, &tx_vr); mic 624 samples/mic/mpssd/mpssd.c err = mic_virtio_copy(mic, mic 625 samples/mic/mpssd/mpssd.c mic->mic_net.virtio_net_fd, &tx_vr, mic 629 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 633 samples/mic/mpssd/mpssd.c verify_out_len(mic, ©); mic 635 samples/mic/mpssd/mpssd.c disp_iovec(mic, copy, __func__, __LINE__); mic 637 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 643 samples/mic/mpssd/mpssd.c disp_iovec(mic, ©, __func__, __LINE__); mic 644 samples/mic/mpssd/mpssd.c mpsslog("%s %s %d read failed %s ", mic->name, mic 663 samples/mic/mpssd/mpssd.c err = mic_virtio_copy(mic, mic 664 samples/mic/mpssd/mpssd.c mic->mic_net.virtio_net_fd, &rx_vr, mic 673 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 682 samples/mic/mpssd/mpssd.c verify_out_len(mic, ©); mic 684 samples/mic/mpssd/mpssd.c disp_iovec(mic, copy, __func__, mic 687 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__); mic 701 samples/mic/mpssd/mpssd.c disp_iovec(mic, ©, __func__, mic 704 samples/mic/mpssd/mpssd.c mic->name, __func__, mic 712 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 719 samples/mic/mpssd/mpssd.c mpsslog("%s: %s: POLLERR\n", __func__, mic->name); mic 740 samples/mic/mpssd/mpssd.c struct mic_info *mic = (struct mic_info *)arg; mic 761 samples/mic/mpssd/mpssd.c printf("%s console message goes to %s\n", mic->name, pts_name); mic 762 samples/mic/mpssd/mpssd.c mpsslog("%s console message goes to %s\n", mic->name, pts_name); mic 778 samples/mic/mpssd/mpssd.c console_poll[VIRTIO_CONSOLE_FD].fd = mic->mic_console.virtio_console_fd; mic 781 samples/mic/mpssd/mpssd.c if (MAP_FAILED == init_vr(mic, mic->mic_console.virtio_console_fd, mic 785 samples/mic/mpssd/mpssd.c mic->name, strerror(errno)); mic 790 samples/mic/mpssd/mpssd.c desc = get_device_desc(mic, VIRTIO_ID_CONSOLE); mic 802 samples/mic/mpssd/mpssd.c err = wait_for_card_driver(mic, mic 803 samples/mic/mpssd/mpssd.c mic->mic_console.virtio_console_fd, mic 807 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__); mic 817 samples/mic/mpssd/mpssd.c disp_iovec(mic, copy, __func__, __LINE__); mic 819 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 822 samples/mic/mpssd/mpssd.c spin_for_descriptors(mic, &tx_vr); mic 826 samples/mic/mpssd/mpssd.c err = mic_virtio_copy(mic, mic 827 samples/mic/mpssd/mpssd.c mic->mic_console.virtio_console_fd, mic 831 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 835 samples/mic/mpssd/mpssd.c verify_out_len(mic, ©); mic 837 samples/mic/mpssd/mpssd.c disp_iovec(mic, copy, __func__, __LINE__); mic 839 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 845 samples/mic/mpssd/mpssd.c disp_iovec(mic, ©, __func__, __LINE__); mic 847 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 861 samples/mic/mpssd/mpssd.c err = mic_virtio_copy(mic, mic 862 samples/mic/mpssd/mpssd.c mic->mic_console.virtio_console_fd, mic 867 samples/mic/mpssd/mpssd.c verify_out_len(mic, ©); mic 869 samples/mic/mpssd/mpssd.c disp_iovec(mic, copy, __func__, mic 872 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__); mic 886 samples/mic/mpssd/mpssd.c disp_iovec(mic, copy, __func__, mic 889 samples/mic/mpssd/mpssd.c mic->name, __func__, mic 897 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 904 samples/mic/mpssd/mpssd.c mpsslog("%s: %s: POLLERR\n", __func__, mic->name); mic 913 samples/mic/mpssd/mpssd.c add_virtio_device(struct mic_info *mic, struct mic_device_desc *dd) mic 918 samples/mic/mpssd/mpssd.c snprintf(path, PATH_MAX, "/dev/vop_virtio%d", mic->id); mic 933 samples/mic/mpssd/mpssd.c mic->mic_net.virtio_net_fd = fd; mic 934 samples/mic/mpssd/mpssd.c mpsslog("Added VIRTIO_ID_NET for %s\n", mic->name); mic 937 samples/mic/mpssd/mpssd.c mic->mic_console.virtio_console_fd = fd; mic 938 samples/mic/mpssd/mpssd.c mpsslog("Added VIRTIO_ID_CONSOLE for %s\n", mic->name); mic 941 samples/mic/mpssd/mpssd.c mic->mic_virtblk.virtio_block_fd = fd; mic 942 samples/mic/mpssd/mpssd.c mpsslog("Added VIRTIO_ID_BLOCK for %s\n", mic->name); mic 948 samples/mic/mpssd/mpssd.c set_backend_file(struct mic_info *mic) mic 953 samples/mic/mpssd/mpssd.c snprintf(buff, PATH_MAX, "%s/mpssd%03d.conf", mic_config_dir, mic->id); mic 973 samples/mic/mpssd/mpssd.c mic->mic_virtblk.backend_file = malloc(strlen(evv) + 1); mic 974 samples/mic/mpssd/mpssd.c if (mic->mic_virtblk.backend_file == NULL) { mic 975 samples/mic/mpssd/mpssd.c mpsslog("%s %d can't allocate memory\n", mic->name, mic->id); mic 978 samples/mic/mpssd/mpssd.c strcpy(mic->mic_virtblk.backend_file, evv + 1); mic 984 samples/mic/mpssd/mpssd.c set_backend_size(struct mic_info *mic) mic 986 samples/mic/mpssd/mpssd.c mic->mic_virtblk.backend_size = lseek(mic->mic_virtblk.backend, 0, mic 988 samples/mic/mpssd/mpssd.c if (mic->mic_virtblk.backend_size < 0) { mic 990 samples/mic/mpssd/mpssd.c mic->name, mic->mic_virtblk.backend_file); mic 994 samples/mic/mpssd/mpssd.c mic->mic_virtblk.backend_size / SECTOR_SIZE; mic 995 samples/mic/mpssd/mpssd.c if ((mic->mic_virtblk.backend_size % SECTOR_SIZE) != 0) mic 1005 samples/mic/mpssd/mpssd.c open_backend(struct mic_info *mic) mic 1007 samples/mic/mpssd/mpssd.c if (!set_backend_file(mic)) mic 1009 samples/mic/mpssd/mpssd.c mic->mic_virtblk.backend = open(mic->mic_virtblk.backend_file, O_RDWR); mic 1010 samples/mic/mpssd/mpssd.c if (mic->mic_virtblk.backend < 0) { mic 1011 samples/mic/mpssd/mpssd.c mpsslog("%s: can't open: %s\n", mic->name, mic 1012 samples/mic/mpssd/mpssd.c mic->mic_virtblk.backend_file); mic 1015 samples/mic/mpssd/mpssd.c if (!set_backend_size(mic)) mic 1017 samples/mic/mpssd/mpssd.c mic->mic_virtblk.backend_addr = mmap(NULL, mic 1018 samples/mic/mpssd/mpssd.c mic->mic_virtblk.backend_size, mic 1020 samples/mic/mpssd/mpssd.c mic->mic_virtblk.backend, 0L); mic 1021 samples/mic/mpssd/mpssd.c if (mic->mic_virtblk.backend_addr == MAP_FAILED) { mic 1023 samples/mic/mpssd/mpssd.c mic->name, mic->mic_virtblk.backend_file, mic 1030 samples/mic/mpssd/mpssd.c close(mic->mic_virtblk.backend); mic 1032 samples/mic/mpssd/mpssd.c free(mic->mic_virtblk.backend_file); mic 1038 samples/mic/mpssd/mpssd.c close_backend(struct mic_info *mic) mic 1040 samples/mic/mpssd/mpssd.c munmap(mic->mic_virtblk.backend_addr, mic->mic_virtblk.backend_size); mic 1041 samples/mic/mpssd/mpssd.c close(mic->mic_virtblk.backend); mic 1042 samples/mic/mpssd/mpssd.c free(mic->mic_virtblk.backend_file); mic 1046 samples/mic/mpssd/mpssd.c start_virtblk(struct mic_info *mic, struct mic_vring *vring) mic 1050 samples/mic/mpssd/mpssd.c mic->name); mic 1053 samples/mic/mpssd/mpssd.c add_virtio_device(mic, &virtblk_dev_page.dd); mic 1054 samples/mic/mpssd/mpssd.c if (MAP_FAILED == init_vr(mic, mic->mic_virtblk.virtio_block_fd, mic 1058 samples/mic/mpssd/mpssd.c mic->name, strerror(errno)); mic 1065 samples/mic/mpssd/mpssd.c stop_virtblk(struct mic_info *mic) mic 1072 samples/mic/mpssd/mpssd.c ret = munmap(mic->mic_virtblk.block_dp, mic 1075 samples/mic/mpssd/mpssd.c mpsslog("%s munmap errno %d\n", mic->name, errno); mic 1076 samples/mic/mpssd/mpssd.c close(mic->mic_virtblk.virtio_block_fd); mic 1160 samples/mic/mpssd/mpssd.c struct mic_info *mic = (struct mic_info *)arg; mic 1174 samples/mic/mpssd/mpssd.c if (!open_backend(mic)) { /* No virtblk */ mic 1175 samples/mic/mpssd/mpssd.c for (mic->mic_virtblk.signaled = 0; mic 1176 samples/mic/mpssd/mpssd.c !mic->mic_virtblk.signaled;) mic 1182 samples/mic/mpssd/mpssd.c if (!start_virtblk(mic, &vring)) mic 1188 samples/mic/mpssd/mpssd.c mic->name, strerror(ENOMEM)); mic 1192 samples/mic/mpssd/mpssd.c block_poll.fd = mic->mic_virtblk.virtio_block_fd; mic 1194 samples/mic/mpssd/mpssd.c for (mic->mic_virtblk.signaled = 0; mic 1195 samples/mic/mpssd/mpssd.c !mic->mic_virtblk.signaled;) { mic 1233 samples/mic/mpssd/mpssd.c mic->mic_virtblk.virtio_block_fd, mic 1238 samples/mic/mpssd/mpssd.c mic->name, ret, mic 1245 samples/mic/mpssd/mpssd.c fos = mic->mic_virtblk.backend_addr + mic 1279 samples/mic/mpssd/mpssd.c mic->mic_virtblk.virtio_block_fd, mic 1290 samples/mic/mpssd/mpssd.c mic->mic_virtblk.virtio_block_fd, mic 1301 samples/mic/mpssd/mpssd.c stop_virtblk(mic); mic 1303 samples/mic/mpssd/mpssd.c close_backend(mic); mic 1310 samples/mic/mpssd/mpssd.c reset(struct mic_info *mic) mic 1314 samples/mic/mpssd/mpssd.c setsysfs(mic->name, "state", "reset"); mic 1317 samples/mic/mpssd/mpssd.c state = readsysfs(mic->name, "state"); mic 1321 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, state); mic 1335 samples/mic/mpssd/mpssd.c get_mic_shutdown_status(struct mic_info *mic, char *shutdown_status) mic 1347 samples/mic/mpssd/mpssd.c mpsslog("%s: BUG invalid status %s\n", mic->name, shutdown_status); mic 1352 samples/mic/mpssd/mpssd.c static int get_mic_state(struct mic_info *mic) mic 1358 samples/mic/mpssd/mpssd.c state = readsysfs(mic->name, "state"); mic 1362 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, state); mic 1377 samples/mic/mpssd/mpssd.c mpsslog("%s: BUG invalid state %s\n", mic->name, state); mic 1385 samples/mic/mpssd/mpssd.c static void mic_handle_shutdown(struct mic_info *mic) mic 1391 samples/mic/mpssd/mpssd.c shutdown_status = readsysfs(mic->name, "shutdown_status"); mic 1397 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, shutdown_status); mic 1398 samples/mic/mpssd/mpssd.c switch (get_mic_shutdown_status(mic, shutdown_status)) { mic 1400 samples/mic/mpssd/mpssd.c mic->restart = 1; mic 1416 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, shutdown_status); mic 1417 samples/mic/mpssd/mpssd.c reset(mic); mic 1420 samples/mic/mpssd/mpssd.c static int open_state_fd(struct mic_info *mic) mic 1426 samples/mic/mpssd/mpssd.c MICSYSFSDIR, mic->name, "state"); mic 1431 samples/mic/mpssd/mpssd.c mic->name, pathname, strerror(errno)); mic 1435 samples/mic/mpssd/mpssd.c static int block_till_state_change(int fd, struct mic_info *mic) mic 1446 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, strerror(errno)); mic 1453 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, strerror(errno)); mic 1460 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, strerror(errno)); mic 1470 samples/mic/mpssd/mpssd.c struct mic_info *mic = (struct mic_info *)arg; mic 1473 samples/mic/mpssd/mpssd.c fd = open_state_fd(mic); mic 1476 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, strerror(errno)); mic 1481 samples/mic/mpssd/mpssd.c ret = block_till_state_change(fd, mic); mic 1484 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, strerror(errno)); mic 1488 samples/mic/mpssd/mpssd.c switch (get_mic_state(mic)) { mic 1490 samples/mic/mpssd/mpssd.c mic_handle_shutdown(mic); mic 1494 samples/mic/mpssd/mpssd.c ret = kill(mic->pid, SIGTERM); mic 1496 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 1497 samples/mic/mpssd/mpssd.c mic->pid, ret); mic 1499 samples/mic/mpssd/mpssd.c ret = waitpid(mic->pid, &stat, mic 1502 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, mic 1503 samples/mic/mpssd/mpssd.c ret, mic->pid); mic 1505 samples/mic/mpssd/mpssd.c if (mic->boot_on_resume) { mic 1506 samples/mic/mpssd/mpssd.c setsysfs(mic->name, "state", "boot"); mic 1507 samples/mic/mpssd/mpssd.c mic->boot_on_resume = 0; mic 1518 samples/mic/mpssd/mpssd.c init_mic(mic); mic 1523 samples/mic/mpssd/mpssd.c set_cmdline(struct mic_info *mic) mic 1534 samples/mic/mpssd/mpssd.c mic->id + 1); mic 1536 samples/mic/mpssd/mpssd.c setsysfs(mic->name, "cmdline", buffer); mic 1537 samples/mic/mpssd/mpssd.c mpsslog("%s: Command line: \"%s\"\n", mic->name, buffer); mic 1538 samples/mic/mpssd/mpssd.c snprintf(buffer, PATH_MAX, "172.31.%d.1", mic->id + 1); mic 1539 samples/mic/mpssd/mpssd.c mpsslog("%s: IPADDR: \"%s\"\n", mic->name, buffer); mic 1543 samples/mic/mpssd/mpssd.c set_log_buf_info(struct mic_info *mic) mic 1553 samples/mic/mpssd/mpssd.c mic->name, errno); mic 1559 samples/mic/mpssd/mpssd.c mic->name, errno); mic 1566 samples/mic/mpssd/mpssd.c mic->name, errno); mic 1572 samples/mic/mpssd/mpssd.c mpsslog("%s: __log_buf not found: %d\n", mic->name, errno); mic 1578 samples/mic/mpssd/mpssd.c setsysfs(mic->name, "log_buf_addr", log_buf); mic 1579 samples/mic/mpssd/mpssd.c mpsslog("%s: log_buf_addr: %s\n", mic->name, log_buf); mic 1582 samples/mic/mpssd/mpssd.c mpsslog("%s: log_buf_len not found: %d\n", mic->name, errno); mic 1588 samples/mic/mpssd/mpssd.c setsysfs(mic->name, "log_buf_len", log_buf); mic 1589 samples/mic/mpssd/mpssd.c mpsslog("%s: log_buf_len: %s\n", mic->name, log_buf); mic 1597 samples/mic/mpssd/mpssd.c struct mic_info *mic; mic 1599 samples/mic/mpssd/mpssd.c for (mic = mic_list.next; mic != NULL; mic = mic->next) mic 1600 samples/mic/mpssd/mpssd.c mic->mic_virtblk.signaled = 1/* true */; mic 1604 samples/mic/mpssd/mpssd.c set_mic_boot_params(struct mic_info *mic) mic 1606 samples/mic/mpssd/mpssd.c set_log_buf_info(mic); mic 1607 samples/mic/mpssd/mpssd.c set_cmdline(mic); mic 1613 samples/mic/mpssd/mpssd.c struct mic_info *mic = (struct mic_info *)arg; mic 1637 samples/mic/mpssd/mpssd.c fd = open_state_fd(mic); mic 1640 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, strerror(errno)); mic 1645 samples/mic/mpssd/mpssd.c if (mic->restart) { mic 1647 samples/mic/mpssd/mpssd.c setsysfs(mic->name, "state", buffer); mic 1649 samples/mic/mpssd/mpssd.c mic->name, mic->restart); mic 1650 samples/mic/mpssd/mpssd.c mic->restart = 0; mic 1654 samples/mic/mpssd/mpssd.c while (block_till_state_change(fd, mic)) { mic 1656 samples/mic/mpssd/mpssd.c mic->name, __func__, __LINE__, strerror(errno)); mic 1661 samples/mic/mpssd/mpssd.c if (get_mic_state(mic) == MIC_BOOTING) mic 1665 samples/mic/mpssd/mpssd.c mic->pid = fork(); mic 1666 samples/mic/mpssd/mpssd.c switch (mic->pid) { mic 1668 samples/mic/mpssd/mpssd.c add_virtio_device(mic, &virtcons_dev_page.dd); mic 1669 samples/mic/mpssd/mpssd.c add_virtio_device(mic, &virtnet_dev_page.dd); mic 1670 samples/mic/mpssd/mpssd.c err = pthread_create(&mic->mic_console.console_thread, NULL, mic 1671 samples/mic/mpssd/mpssd.c virtio_console, mic); mic 1674 samples/mic/mpssd/mpssd.c mic->name, strerror(err)); mic 1675 samples/mic/mpssd/mpssd.c err = pthread_create(&mic->mic_net.net_thread, NULL, mic 1676 samples/mic/mpssd/mpssd.c virtio_net, mic); mic 1679 samples/mic/mpssd/mpssd.c mic->name, strerror(err)); mic 1680 samples/mic/mpssd/mpssd.c err = pthread_create(&mic->mic_virtblk.block_thread, NULL, mic 1681 samples/mic/mpssd/mpssd.c virtio_block, mic); mic 1684 samples/mic/mpssd/mpssd.c mic->name, strerror(err)); mic 1689 samples/mic/mpssd/mpssd.c mic->name, strerror(errno)); mic 1694 samples/mic/mpssd/mpssd.c mic->name, mic->id, errno); mic 1697 samples/mic/mpssd/mpssd.c err = pthread_create(&mic->config_thread, NULL, mic 1698 samples/mic/mpssd/mpssd.c mic_config, mic); mic 1701 samples/mic/mpssd/mpssd.c mic->name, strerror(err)); mic 1710 samples/mic/mpssd/mpssd.c struct mic_info *mic; mic 1713 samples/mic/mpssd/mpssd.c for (mic = mic_list.next; mic; mic = mic->next) { mic 1714 samples/mic/mpssd/mpssd.c set_mic_boot_params(mic); mic 1715 samples/mic/mpssd/mpssd.c err = pthread_create(&mic->init_thread, NULL, init_mic, mic); mic 1718 samples/mic/mpssd/mpssd.c mic->name, strerror(err)); mic 1728 samples/mic/mpssd/mpssd.c struct mic_info *mic = &mic_list; mic 1739 samples/mic/mpssd/mpssd.c mic->next = calloc(1, sizeof(struct mic_info)); mic 1740 samples/mic/mpssd/mpssd.c if (mic->next) { mic 1741 samples/mic/mpssd/mpssd.c mic = mic->next; mic 1742 samples/mic/mpssd/mpssd.c mic->id = atoi(&file->d_name[3]); mic 1743 samples/mic/mpssd/mpssd.c mic->name = malloc(strlen(file->d_name) + 16); mic 1744 samples/mic/mpssd/mpssd.c if (mic->name) mic 1745 samples/mic/mpssd/mpssd.c strcpy(mic->name, file->d_name); mic 1746 samples/mic/mpssd/mpssd.c mpsslog("MIC name %s id %d\n", mic->name, mic 1747 samples/mic/mpssd/mpssd.c mic->id); mic 263 sound/aoa/codecs/onyx.c static void onyx_set_capture_source(struct onyx *onyx, int mic) mic 270 sound/aoa/codecs/onyx.c if (mic) mic 28 sound/pci/vx222/vx222.c static bool mic[SNDRV_CARDS]; /* microphone */ mic 37 sound/pci/vx222/vx222.c module_param_array(mic, bool, NULL, 0444); mic 38 sound/pci/vx222/vx222.c MODULE_PARM_DESC(mic, "Enable Microphone."); mic 204 sound/pci/vx222/vx222.c if (mic[dev]) mic 350 sound/soc/codecs/rt274.c static int rt274_jack_detect(struct rt274_priv *rt274, bool *hp, bool *mic) mic 356 sound/soc/codecs/rt274.c *mic = false; mic 370 sound/soc/codecs/rt274.c *mic = buf & 0x80000000; mic 372 sound/soc/codecs/rt274.c pr_debug("*hp = %d *mic = %d\n", *hp, *mic); mic 383 sound/soc/codecs/rt274.c bool mic = false; mic 385 sound/soc/codecs/rt274.c if (rt274_jack_detect(rt274, &hp, &mic) < 0) mic 391 sound/soc/codecs/rt274.c if (mic) mic 953 sound/soc/codecs/rt274.c bool mic = false; mic 960 sound/soc/codecs/rt274.c ret = rt274_jack_detect(rt274, &hp, &mic); mic 966 sound/soc/codecs/rt274.c if (mic) mic 212 sound/soc/codecs/rt286.c static int rt286_jack_detect(struct rt286_priv *rt286, bool *hp, bool *mic) mic 218 sound/soc/codecs/rt286.c *mic = false; mic 248 sound/soc/codecs/rt286.c *mic = true; mic 256 sound/soc/codecs/rt286.c *mic = true; mic 258 sound/soc/codecs/rt286.c *mic = false; mic 264 sound/soc/codecs/rt286.c *mic = false; mic 273 sound/soc/codecs/rt286.c *mic = buf & 0x80000000; mic 275 sound/soc/codecs/rt286.c if (!*mic) { mic 292 sound/soc/codecs/rt286.c bool mic = false; mic 294 sound/soc/codecs/rt286.c rt286_jack_detect(rt286, &hp, &mic); mic 299 sound/soc/codecs/rt286.c if (mic) mic 916 sound/soc/codecs/rt286.c bool mic = false; mic 919 sound/soc/codecs/rt286.c rt286_jack_detect(rt286, &hp, &mic); mic 927 sound/soc/codecs/rt286.c if (mic) mic 219 sound/soc/codecs/rt298.c static int rt298_jack_detect(struct rt298_priv *rt298, bool *hp, bool *mic) mic 225 sound/soc/codecs/rt298.c *mic = false; mic 263 sound/soc/codecs/rt298.c *mic = true; mic 271 sound/soc/codecs/rt298.c *mic = true; mic 273 sound/soc/codecs/rt298.c *mic = false; mic 279 sound/soc/codecs/rt298.c *mic = false; mic 288 sound/soc/codecs/rt298.c *mic = buf & 0x80000000; mic 290 sound/soc/codecs/rt298.c if (!*mic) { mic 298 sound/soc/codecs/rt298.c pr_debug("*hp = %d *mic = %d\n", *hp, *mic); mic 309 sound/soc/codecs/rt298.c bool mic = false; mic 311 sound/soc/codecs/rt298.c if (rt298_jack_detect(rt298, &hp, &mic) < 0) mic 317 sound/soc/codecs/rt298.c if (mic) mic 329 sound/soc/codecs/rt298.c bool mic = false; mic 344 sound/soc/codecs/rt298.c rt298_jack_detect(rt298, &hp, &mic); mic 348 sound/soc/codecs/rt298.c if (mic) mic 980 sound/soc/codecs/rt298.c bool mic = false; mic 983 sound/soc/codecs/rt298.c ret = rt298_jack_detect(rt298, &hp, &mic); mic 992 sound/soc/codecs/rt298.c if (mic) mic 65 sound/soc/codecs/wm8350.c struct wm8350_jack_data mic; mic 1376 sound/soc/codecs/wm8350.c report |= priv->mic.short_report; mic 1378 sound/soc/codecs/wm8350.c report |= priv->mic.report; mic 1380 sound/soc/codecs/wm8350.c snd_soc_jack_report(priv->mic.jack, report, mic 1381 sound/soc/codecs/wm8350.c priv->mic.report | priv->mic.short_report); mic 1404 sound/soc/codecs/wm8350.c priv->mic.jack = jack; mic 1405 sound/soc/codecs/wm8350.c priv->mic.report = detect_report; mic 1406 sound/soc/codecs/wm8350.c priv->mic.short_report = short_report; mic 1568 sound/soc/codecs/wm8350.c priv->mic.jack = NULL;