mbus 190 drivers/bus/mvebu-mbus.c static bool mvebu_mbus_window_is_remappable(struct mvebu_mbus_state *mbus, mbus 193 drivers/bus/mvebu-mbus.c return mbus->soc->win_remap_offset(win) != MVEBU_MBUS_NO_REMAP; mbus 200 drivers/bus/mvebu-mbus.c static void mvebu_mbus_read_window(struct mvebu_mbus_state *mbus, mbus 205 drivers/bus/mvebu-mbus.c void __iomem *addr = mbus->mbuswins_base + mbus 206 drivers/bus/mvebu-mbus.c mbus->soc->win_cfg_offset(win); mbus 227 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_remappable(mbus, win)) { mbus 229 drivers/bus/mvebu-mbus.c void __iomem *addr_rmp = mbus->mbuswins_base + mbus 230 drivers/bus/mvebu-mbus.c mbus->soc->win_remap_offset(win); mbus 239 drivers/bus/mvebu-mbus.c static void mvebu_mbus_disable_window(struct mvebu_mbus_state *mbus, mbus 244 drivers/bus/mvebu-mbus.c addr = mbus->mbuswins_base + mbus->soc->win_cfg_offset(win); mbus 248 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_remappable(mbus, win)) { mbus 249 drivers/bus/mvebu-mbus.c addr = mbus->mbuswins_base + mbus->soc->win_remap_offset(win); mbus 257 drivers/bus/mvebu-mbus.c static int mvebu_mbus_window_is_free(struct mvebu_mbus_state *mbus, mbus 260 drivers/bus/mvebu-mbus.c void __iomem *addr = mbus->mbuswins_base + mbus 261 drivers/bus/mvebu-mbus.c mbus->soc->win_cfg_offset(win); mbus 271 drivers/bus/mvebu-mbus.c static int mvebu_mbus_window_conflicts(struct mvebu_mbus_state *mbus, mbus 278 drivers/bus/mvebu-mbus.c for (win = 0; win < mbus->soc->num_wins; win++) { mbus 284 drivers/bus/mvebu-mbus.c mvebu_mbus_read_window(mbus, win, mbus 304 drivers/bus/mvebu-mbus.c static int mvebu_mbus_find_window(struct mvebu_mbus_state *mbus, mbus 309 drivers/bus/mvebu-mbus.c for (win = 0; win < mbus->soc->num_wins; win++) { mbus 314 drivers/bus/mvebu-mbus.c mvebu_mbus_read_window(mbus, win, mbus 328 drivers/bus/mvebu-mbus.c static int mvebu_mbus_setup_window(struct mvebu_mbus_state *mbus, mbus 333 drivers/bus/mvebu-mbus.c void __iomem *addr = mbus->mbuswins_base + mbus 334 drivers/bus/mvebu-mbus.c mbus->soc->win_cfg_offset(win); mbus 352 drivers/bus/mvebu-mbus.c if (mbus->hw_io_coherency) mbus 358 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_remappable(mbus, win)) { mbus 359 drivers/bus/mvebu-mbus.c void __iomem *addr_rmp = mbus->mbuswins_base + mbus 360 drivers/bus/mvebu-mbus.c mbus->soc->win_remap_offset(win); mbus 373 drivers/bus/mvebu-mbus.c static int mvebu_mbus_alloc_window(struct mvebu_mbus_state *mbus, mbus 381 drivers/bus/mvebu-mbus.c for (win = 0; win < mbus->soc->num_wins; win++) { mbus 382 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_remappable(mbus, win)) mbus 385 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_free(mbus, win)) mbus 386 drivers/bus/mvebu-mbus.c return mvebu_mbus_setup_window(mbus, win, base, mbus 392 drivers/bus/mvebu-mbus.c for (win = 0; win < mbus->soc->num_wins; win++) { mbus 395 drivers/bus/mvebu-mbus.c !mvebu_mbus_window_is_remappable(mbus, win)) mbus 398 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_free(mbus, win)) mbus 399 drivers/bus/mvebu-mbus.c return mvebu_mbus_setup_window(mbus, win, base, size, mbus 411 drivers/bus/mvebu-mbus.c static int mvebu_sdram_debug_show_orion(struct mvebu_mbus_state *mbus, mbus 417 drivers/bus/mvebu-mbus.c u32 basereg = readl(mbus->sdramwins_base + DDR_BASE_CS_OFF(i)); mbus 418 drivers/bus/mvebu-mbus.c u32 sizereg = readl(mbus->sdramwins_base + DDR_SIZE_CS_OFF(i)); mbus 441 drivers/bus/mvebu-mbus.c static int mvebu_sdram_debug_show_dove(struct mvebu_mbus_state *mbus, mbus 447 drivers/bus/mvebu-mbus.c u32 map = readl(mbus->sdramwins_base + DOVE_DDR_BASE_CS_OFF(i)); mbus 469 drivers/bus/mvebu-mbus.c struct mvebu_mbus_state *mbus = &mbus_state; mbus 470 drivers/bus/mvebu-mbus.c return mbus->soc->show_cpu_target(mbus, seq, v); mbus 487 drivers/bus/mvebu-mbus.c struct mvebu_mbus_state *mbus = &mbus_state; mbus 490 drivers/bus/mvebu-mbus.c for (win = 0; win < mbus->soc->num_wins; win++) { mbus 496 drivers/bus/mvebu-mbus.c mvebu_mbus_read_window(mbus, win, mbus 513 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_remappable(mbus, win)) { mbus 642 drivers/bus/mvebu-mbus.c mvebu_mbus_setup_cpu_target_nooverlap(struct mvebu_mbus_state *mbus) mbus 685 drivers/bus/mvebu-mbus.c if (mbus->hw_io_coherency) mbus 696 drivers/bus/mvebu-mbus.c mvebu_mbus_default_setup_cpu_target(struct mvebu_mbus_state *mbus) mbus 704 drivers/bus/mvebu-mbus.c u32 base = readl(mbus->sdramwins_base + DDR_BASE_CS_OFF(i)); mbus 705 drivers/bus/mvebu-mbus.c u32 size = readl(mbus->sdramwins_base + DDR_SIZE_CS_OFF(i)); mbus 720 drivers/bus/mvebu-mbus.c if (mbus->hw_io_coherency) mbus 730 drivers/bus/mvebu-mbus.c mvebu_mbus_default_save_cpu_target(struct mvebu_mbus_state *mbus, mbus 736 drivers/bus/mvebu-mbus.c u32 base = readl(mbus->sdramwins_base + DDR_BASE_CS_OFF(i)); mbus 737 drivers/bus/mvebu-mbus.c u32 size = readl(mbus->sdramwins_base + DDR_SIZE_CS_OFF(i)); mbus 739 drivers/bus/mvebu-mbus.c writel(mbus->sdramwins_phys_base + DDR_BASE_CS_OFF(i), mbus 742 drivers/bus/mvebu-mbus.c writel(mbus->sdramwins_phys_base + DDR_SIZE_CS_OFF(i), mbus 752 drivers/bus/mvebu-mbus.c mvebu_mbus_dove_setup_cpu_target(struct mvebu_mbus_state *mbus) mbus 760 drivers/bus/mvebu-mbus.c u32 map = readl(mbus->sdramwins_base + DOVE_DDR_BASE_CS_OFF(i)); mbus 782 drivers/bus/mvebu-mbus.c mvebu_mbus_dove_save_cpu_target(struct mvebu_mbus_state *mbus, mbus 788 drivers/bus/mvebu-mbus.c u32 map = readl(mbus->sdramwins_base + DOVE_DDR_BASE_CS_OFF(i)); mbus 790 drivers/bus/mvebu-mbus.c writel(mbus->sdramwins_phys_base + DOVE_DDR_BASE_CS_OFF(i), mbus 1097 drivers/bus/mvebu-mbus.c static int __init mvebu_mbus_common_init(struct mvebu_mbus_state *mbus, mbus 1108 drivers/bus/mvebu-mbus.c mbus->mbuswins_base = ioremap(mbuswins_phys_base, mbuswins_size); mbus 1109 drivers/bus/mvebu-mbus.c if (!mbus->mbuswins_base) mbus 1112 drivers/bus/mvebu-mbus.c mbus->sdramwins_base = ioremap(sdramwins_phys_base, sdramwins_size); mbus 1113 drivers/bus/mvebu-mbus.c if (!mbus->sdramwins_base) { mbus 1118 drivers/bus/mvebu-mbus.c mbus->sdramwins_phys_base = sdramwins_phys_base; mbus 1121 drivers/bus/mvebu-mbus.c mbus->mbusbridge_base = ioremap(mbusbridge_phys_base, mbus 1123 drivers/bus/mvebu-mbus.c if (!mbus->mbusbridge_base) { mbus 1124 drivers/bus/mvebu-mbus.c iounmap(mbus->sdramwins_base); mbus 1125 drivers/bus/mvebu-mbus.c iounmap(mbus->mbuswins_base); mbus 1129 drivers/bus/mvebu-mbus.c mbus->mbusbridge_base = NULL; mbus 1131 drivers/bus/mvebu-mbus.c for (win = 0; win < mbus->soc->num_wins; win++) mbus 1132 drivers/bus/mvebu-mbus.c mvebu_mbus_disable_window(mbus, win); mbus 1134 drivers/bus/mvebu-mbus.c mbus->soc->setup_cpu_target(mbus); mbus 1135 drivers/bus/mvebu-mbus.c mvebu_mbus_setup_cpu_target_nooverlap(mbus); mbus 1139 drivers/bus/mvebu-mbus.c mbus->mbuswins_base + UNIT_SYNC_BARRIER_OFF); mbus 1183 drivers/bus/mvebu-mbus.c static int __init mbus_dt_setup_win(struct mvebu_mbus_state *mbus, mbus 1187 drivers/bus/mvebu-mbus.c if (!mvebu_mbus_window_conflicts(mbus, base, size, target, attr)) { mbus 1193 drivers/bus/mvebu-mbus.c if (mvebu_mbus_alloc_window(mbus, base, size, MVEBU_MBUS_NO_REMAP, mbus 1238 drivers/bus/mvebu-mbus.c static int __init mbus_dt_setup(struct mvebu_mbus_state *mbus, mbus 1269 drivers/bus/mvebu-mbus.c ret = mbus_dt_setup_win(mbus, base, size, target, attr); mbus 1125 drivers/dma/amba-pl08x.c struct pl08x_bus_data **mbus, mbus 1149 drivers/dma/amba-pl08x.c *mbus = &bd->dstbus; mbus 1152 drivers/dma/amba-pl08x.c *mbus = &bd->srcbus; mbus 1156 drivers/dma/amba-pl08x.c *mbus = &bd->dstbus; mbus 1159 drivers/dma/amba-pl08x.c *mbus = &bd->srcbus; mbus 1260 drivers/dma/amba-pl08x.c struct pl08x_bus_data *mbus, *sbus; mbus 1294 drivers/dma/amba-pl08x.c pl08x_choose_master_bus(pl08x, &bd, &mbus, &sbus, cctl); mbus 1306 drivers/dma/amba-pl08x.c mbus == &bd.srcbus ? "src" : "dst", mbus 1368 drivers/dma/amba-pl08x.c if (bd.remainder < mbus->buswidth) mbus 1370 drivers/dma/amba-pl08x.c else if (!IS_BUS_ALIGNED(mbus)) { mbus 1371 drivers/dma/amba-pl08x.c early_bytes = mbus->buswidth - mbus 1372 drivers/dma/amba-pl08x.c (mbus->addr & (mbus->buswidth - 1)); mbus 1373 drivers/dma/amba-pl08x.c if ((bd.remainder - early_bytes) < mbus->buswidth) mbus 1412 drivers/dma/amba-pl08x.c while (bd.remainder > (mbus->buswidth - 1)) { mbus 1427 drivers/dma/amba-pl08x.c width = max(mbus->buswidth, sbus->buswidth); mbus 767 drivers/dma/mic_x100_dma.c MODULE_DEVICE_TABLE(mbus, id_table); mbus 23 drivers/mcb/mcb-pci.c struct mcb_bus *mbus = mdev->bus; mbus 24 drivers/mcb/mcb-pci.c struct device *dev = mbus->carrier; mbus 214 drivers/media/platform/am437x/am437x-vpfe.c const struct v4l2_mbus_framefmt *mbus, mbus 221 drivers/media/platform/am437x/am437x-vpfe.c fmt = find_format_by_code(mbus->code); mbus 229 drivers/media/platform/am437x/am437x-vpfe.c v4l2_fill_pix_format(pix, mbus); mbus 1596 drivers/media/platform/am437x/am437x-vpfe.c struct v4l2_mbus_framefmt mbus; mbus 1624 drivers/media/platform/am437x/am437x-vpfe.c pix_to_mbus(vpfe, &pix, &mbus); mbus 1629 drivers/media/platform/am437x/am437x-vpfe.c fse.code = mbus.code; mbus 79 drivers/media/platform/cadence/cdns-csi2tx.c u32 mbus; mbus 122 drivers/media/platform/cadence/cdns-csi2tx.c .mbus = MEDIA_BUS_FMT_UYVY8_1X16, mbus 127 drivers/media/platform/cadence/cdns-csi2tx.c .mbus = MEDIA_BUS_FMT_RGB888_1X24, mbus 147 drivers/media/platform/cadence/cdns-csi2tx.c static const struct csi2tx_fmt *csi2tx_get_fmt_from_mbus(u32 mbus) mbus 152 drivers/media/platform/cadence/cdns-csi2tx.c if (csi2tx_formats[i].mbus == mbus) mbus 165 drivers/media/platform/cadence/cdns-csi2tx.c code->code = csi2tx_formats[code->index].mbus; mbus 141 drivers/media/platform/omap3isp/ispvideo.c const struct v4l2_mbus_framefmt *mbus, mbus 149 drivers/media/platform/omap3isp/ispvideo.c pix->width = mbus->width; mbus 150 drivers/media/platform/omap3isp/ispvideo.c pix->height = mbus->height; mbus 153 drivers/media/platform/omap3isp/ispvideo.c if (formats[i].code == mbus->code) mbus 177 drivers/media/platform/omap3isp/ispvideo.c pix->colorspace = mbus->colorspace; mbus 178 drivers/media/platform/omap3isp/ispvideo.c pix->field = mbus->field; mbus 184 drivers/media/platform/omap3isp/ispvideo.c struct v4l2_mbus_framefmt *mbus) mbus 188 drivers/media/platform/omap3isp/ispvideo.c memset(mbus, 0, sizeof(*mbus)); mbus 189 drivers/media/platform/omap3isp/ispvideo.c mbus->width = pix->width; mbus 190 drivers/media/platform/omap3isp/ispvideo.c mbus->height = pix->height; mbus 200 drivers/media/platform/omap3isp/ispvideo.c mbus->code = formats[i].code; mbus 201 drivers/media/platform/omap3isp/ispvideo.c mbus->colorspace = pix->colorspace; mbus 202 drivers/media/platform/omap3isp/ispvideo.c mbus->field = pix->field; mbus 244 drivers/media/platform/qcom/camss/camss-video.c static int video_mbus_to_pix_mp(const struct v4l2_mbus_framefmt *mbus, mbus 253 drivers/media/platform/qcom/camss/camss-video.c v4l2_fill_pix_format_mplane(pix, mbus); mbus 94 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.h u32 mbus; mbus 105 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.h const u32 *mbus); mbus 24 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c .mbus = MEDIA_BUS_FMT_YUYV8_2X8, mbus 36 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c const u32 *mbus) mbus 44 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c if (mbus && *mbus != sun4i_csi_formats[i].mbus) mbus 332 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c struct v4l2_subdev_mbus_code_enum *mbus) mbus 334 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c if (mbus->index >= ARRAY_SIZE(sun4i_csi_formats)) mbus 337 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c mbus->code = sun4i_csi_formats[mbus->index].mbus; mbus 137 drivers/media/platform/vsp1/vsp1_drm.c format.format.code = rpf->fmtinfo->mbus; mbus 38 drivers/media/platform/vsp1/vsp1_pipe.h unsigned int mbus; mbus 78 drivers/media/platform/vsp1/vsp1_video.c if (video->rwpf->fmtinfo->mbus != fmt.format.code || mbus 781 drivers/misc/mic/vop/vop_main.c MODULE_DEVICE_TABLE(mbus, id_table); mbus 221 drivers/staging/media/imx/imx-media-utils.c static void init_mbus_colorimetry(struct v4l2_mbus_framefmt *mbus, mbus 224 drivers/staging/media/imx/imx-media-utils.c mbus->colorspace = (fmt->cs == IPUV3_COLORSPACE_RGB) ? mbus 226 drivers/staging/media/imx/imx-media-utils.c mbus->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(mbus->colorspace); mbus 227 drivers/staging/media/imx/imx-media-utils.c mbus->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(mbus->colorspace); mbus 228 drivers/staging/media/imx/imx-media-utils.c mbus->quantization = mbus 230 drivers/staging/media/imx/imx-media-utils.c mbus->colorspace, mbus 231 drivers/staging/media/imx/imx-media-utils.c mbus->ycbcr_enc); mbus 457 drivers/staging/media/imx/imx-media-utils.c int imx_media_init_mbus_fmt(struct v4l2_mbus_framefmt *mbus, mbus 463 drivers/staging/media/imx/imx-media-utils.c mbus->width = width; mbus 464 drivers/staging/media/imx/imx-media-utils.c mbus->height = height; mbus 465 drivers/staging/media/imx/imx-media-utils.c mbus->field = field; mbus 475 drivers/staging/media/imx/imx-media-utils.c mbus->code = code; mbus 476 drivers/staging/media/imx/imx-media-utils.c init_mbus_colorimetry(mbus, lcc); mbus 575 drivers/staging/media/imx/imx-media-utils.c struct v4l2_mbus_framefmt *mbus, mbus 582 drivers/staging/media/imx/imx-media-utils.c cc = imx_media_find_ipu_format(mbus->code, CS_SEL_ANY); mbus 584 drivers/staging/media/imx/imx-media-utils.c cc = imx_media_find_mbus_format(mbus->code, CS_SEL_ANY, mbus 602 drivers/staging/media/imx/imx-media-utils.c width = round_up(mbus->width, 8); mbus 611 drivers/staging/media/imx/imx-media-utils.c pix->height = mbus->height; mbus 613 drivers/staging/media/imx/imx-media-utils.c pix->colorspace = mbus->colorspace; mbus 614 drivers/staging/media/imx/imx-media-utils.c pix->xfer_func = mbus->xfer_func; mbus 615 drivers/staging/media/imx/imx-media-utils.c pix->ycbcr_enc = mbus->ycbcr_enc; mbus 616 drivers/staging/media/imx/imx-media-utils.c pix->quantization = mbus->quantization; mbus 617 drivers/staging/media/imx/imx-media-utils.c pix->field = mbus->field; mbus 627 drivers/staging/media/imx/imx-media-utils.c struct v4l2_mbus_framefmt *mbus) mbus 633 drivers/staging/media/imx/imx-media-utils.c ret = imx_media_mbus_fmt_to_pix_fmt(&image->pix, mbus, NULL); mbus 637 drivers/staging/media/imx/imx-media-utils.c image->rect.width = mbus->width; mbus 638 drivers/staging/media/imx/imx-media-utils.c image->rect.height = mbus->height; mbus 644 drivers/staging/media/imx/imx-media-utils.c int imx_media_ipu_image_to_mbus_fmt(struct v4l2_mbus_framefmt *mbus, mbus 653 drivers/staging/media/imx/imx-media-utils.c memset(mbus, 0, sizeof(*mbus)); mbus 654 drivers/staging/media/imx/imx-media-utils.c mbus->width = image->pix.width; mbus 655 drivers/staging/media/imx/imx-media-utils.c mbus->height = image->pix.height; mbus 656 drivers/staging/media/imx/imx-media-utils.c mbus->code = fmt->codes[0]; mbus 657 drivers/staging/media/imx/imx-media-utils.c mbus->field = image->pix.field; mbus 658 drivers/staging/media/imx/imx-media-utils.c mbus->colorspace = image->pix.colorspace; mbus 659 drivers/staging/media/imx/imx-media-utils.c mbus->xfer_func = image->pix.xfer_func; mbus 660 drivers/staging/media/imx/imx-media-utils.c mbus->ycbcr_enc = image->pix.ycbcr_enc; mbus 661 drivers/staging/media/imx/imx-media-utils.c mbus->quantization = image->pix.quantization; mbus 170 drivers/staging/media/imx/imx-media.h int imx_media_init_mbus_fmt(struct v4l2_mbus_framefmt *mbus, mbus 178 drivers/staging/media/imx/imx-media.h struct v4l2_mbus_framefmt *mbus, mbus 181 drivers/staging/media/imx/imx-media.h struct v4l2_mbus_framefmt *mbus); mbus 182 drivers/staging/media/imx/imx-media.h int imx_media_ipu_image_to_mbus_fmt(struct v4l2_mbus_framefmt *mbus, mbus 117 drivers/staging/media/omap4iss/iss_video.c const struct v4l2_mbus_framefmt *mbus, mbus 125 drivers/staging/media/omap4iss/iss_video.c pix->width = mbus->width; mbus 126 drivers/staging/media/omap4iss/iss_video.c pix->height = mbus->height; mbus 133 drivers/staging/media/omap4iss/iss_video.c if (formats[i].code == mbus->code) mbus 155 drivers/staging/media/omap4iss/iss_video.c pix->colorspace = mbus->colorspace; mbus 156 drivers/staging/media/omap4iss/iss_video.c pix->field = mbus->field; mbus 166 drivers/staging/media/omap4iss/iss_video.c struct v4l2_mbus_framefmt *mbus) mbus 170 drivers/staging/media/omap4iss/iss_video.c memset(mbus, 0, sizeof(*mbus)); mbus 171 drivers/staging/media/omap4iss/iss_video.c mbus->width = pix->width; mbus 172 drivers/staging/media/omap4iss/iss_video.c mbus->height = pix->height; mbus 183 drivers/staging/media/omap4iss/iss_video.c mbus->code = formats[i].code; mbus 184 drivers/staging/media/omap4iss/iss_video.c mbus->colorspace = pix->colorspace; mbus 185 drivers/staging/media/omap4iss/iss_video.c mbus->field = pix->field; mbus 675 drivers/usb/mon/mon_bin.c struct mon_bus *mbus; mbus 681 drivers/usb/mon/mon_bin.c mbus = mon_bus_lookup(iminor(inode)); mbus 682 drivers/usb/mon/mon_bin.c if (mbus == NULL) { mbus 686 drivers/usb/mon/mon_bin.c if (mbus != &mon_bus0 && mbus->u_bus == NULL) { mbus 711 drivers/usb/mon/mon_bin.c rp->r.m_bus = mbus; mbus 717 drivers/usb/mon/mon_bin.c mon_reader_add(mbus, &rp->r); mbus 781 drivers/usb/mon/mon_bin.c struct mon_bus* mbus = rp->r.m_bus; mbus 785 drivers/usb/mon/mon_bin.c if (mbus->nreaders <= 0) { mbus 790 drivers/usb/mon/mon_bin.c mon_reader_del(mbus, &rp->r); mbus 1351 drivers/usb/mon/mon_bin.c int mon_bin_add(struct mon_bus *mbus, const struct usb_bus *ubus) mbus 1365 drivers/usb/mon/mon_bin.c mbus->classdev = dev; mbus 1369 drivers/usb/mon/mon_bin.c void mon_bin_del(struct mon_bus *mbus) mbus 1371 drivers/usb/mon/mon_bin.c device_destroy(mon_bin_class, mbus->classdev->devt); mbus 21 drivers/usb/mon/mon_main.c static void mon_stop(struct mon_bus *mbus); mbus 22 drivers/usb/mon/mon_main.c static void mon_dissolve(struct mon_bus *mbus, struct usb_bus *ubus); mbus 36 drivers/usb/mon/mon_main.c void mon_reader_add(struct mon_bus *mbus, struct mon_reader *r) mbus 41 drivers/usb/mon/mon_main.c spin_lock_irqsave(&mbus->lock, flags); mbus 42 drivers/usb/mon/mon_main.c if (mbus->nreaders == 0) { mbus 43 drivers/usb/mon/mon_main.c if (mbus == &mon_bus0) { mbus 50 drivers/usb/mon/mon_main.c mbus->u_bus->monitored = 1; mbus 53 drivers/usb/mon/mon_main.c mbus->nreaders++; mbus 54 drivers/usb/mon/mon_main.c list_add_tail(&r->r_link, &mbus->r_list); mbus 55 drivers/usb/mon/mon_main.c spin_unlock_irqrestore(&mbus->lock, flags); mbus 57 drivers/usb/mon/mon_main.c kref_get(&mbus->ref); mbus 65 drivers/usb/mon/mon_main.c void mon_reader_del(struct mon_bus *mbus, struct mon_reader *r) mbus 69 drivers/usb/mon/mon_main.c spin_lock_irqsave(&mbus->lock, flags); mbus 71 drivers/usb/mon/mon_main.c --mbus->nreaders; mbus 72 drivers/usb/mon/mon_main.c if (mbus->nreaders == 0) mbus 73 drivers/usb/mon/mon_main.c mon_stop(mbus); mbus 74 drivers/usb/mon/mon_main.c spin_unlock_irqrestore(&mbus->lock, flags); mbus 76 drivers/usb/mon/mon_main.c kref_put(&mbus->ref, mon_bus_drop); mbus 81 drivers/usb/mon/mon_main.c static void mon_bus_submit(struct mon_bus *mbus, struct urb *urb) mbus 87 drivers/usb/mon/mon_main.c spin_lock_irqsave(&mbus->lock, flags); mbus 88 drivers/usb/mon/mon_main.c mbus->cnt_events++; mbus 89 drivers/usb/mon/mon_main.c list_for_each (pos, &mbus->r_list) { mbus 93 drivers/usb/mon/mon_main.c spin_unlock_irqrestore(&mbus->lock, flags); mbus 98 drivers/usb/mon/mon_main.c struct mon_bus *mbus; mbus 100 drivers/usb/mon/mon_main.c mbus = ubus->mon_bus; mbus 101 drivers/usb/mon/mon_main.c if (mbus != NULL) mbus 102 drivers/usb/mon/mon_main.c mon_bus_submit(mbus, urb); mbus 108 drivers/usb/mon/mon_main.c static void mon_bus_submit_error(struct mon_bus *mbus, struct urb *urb, int error) mbus 114 drivers/usb/mon/mon_main.c spin_lock_irqsave(&mbus->lock, flags); mbus 115 drivers/usb/mon/mon_main.c mbus->cnt_events++; mbus 116 drivers/usb/mon/mon_main.c list_for_each (pos, &mbus->r_list) { mbus 120 drivers/usb/mon/mon_main.c spin_unlock_irqrestore(&mbus->lock, flags); mbus 125 drivers/usb/mon/mon_main.c struct mon_bus *mbus; mbus 127 drivers/usb/mon/mon_main.c mbus = ubus->mon_bus; mbus 128 drivers/usb/mon/mon_main.c if (mbus != NULL) mbus 129 drivers/usb/mon/mon_main.c mon_bus_submit_error(mbus, urb, error); mbus 135 drivers/usb/mon/mon_main.c static void mon_bus_complete(struct mon_bus *mbus, struct urb *urb, int status) mbus 141 drivers/usb/mon/mon_main.c spin_lock_irqsave(&mbus->lock, flags); mbus 142 drivers/usb/mon/mon_main.c mbus->cnt_events++; mbus 143 drivers/usb/mon/mon_main.c list_for_each (pos, &mbus->r_list) { mbus 147 drivers/usb/mon/mon_main.c spin_unlock_irqrestore(&mbus->lock, flags); mbus 152 drivers/usb/mon/mon_main.c struct mon_bus *mbus; mbus 154 drivers/usb/mon/mon_main.c mbus = ubus->mon_bus; mbus 155 drivers/usb/mon/mon_main.c if (mbus != NULL) mbus 156 drivers/usb/mon/mon_main.c mon_bus_complete(mbus, urb, status); mbus 165 drivers/usb/mon/mon_main.c static void mon_stop(struct mon_bus *mbus) mbus 170 drivers/usb/mon/mon_main.c if (mbus == &mon_bus0) { mbus 172 drivers/usb/mon/mon_main.c mbus = list_entry(p, struct mon_bus, bus_link); mbus 176 drivers/usb/mon/mon_main.c if (mbus->nreaders == 0 && (ubus = mbus->u_bus) != NULL) mbus 184 drivers/usb/mon/mon_main.c if (mon_bus0.nreaders == 0 && (ubus = mbus->u_bus) != NULL) { mbus 211 drivers/usb/mon/mon_main.c struct mon_bus *mbus = ubus->mon_bus; mbus 214 drivers/usb/mon/mon_main.c list_del(&mbus->bus_link); mbus 215 drivers/usb/mon/mon_main.c if (mbus->text_inited) mbus 216 drivers/usb/mon/mon_main.c mon_text_del(mbus); mbus 217 drivers/usb/mon/mon_main.c if (mbus->bin_inited) mbus 218 drivers/usb/mon/mon_main.c mon_bin_del(mbus); mbus 220 drivers/usb/mon/mon_main.c mon_dissolve(mbus, ubus); mbus 221 drivers/usb/mon/mon_main.c kref_put(&mbus->ref, mon_bus_drop); mbus 254 drivers/usb/mon/mon_main.c static void mon_dissolve(struct mon_bus *mbus, struct usb_bus *ubus) mbus 263 drivers/usb/mon/mon_main.c mbus->u_bus = NULL; mbus 273 drivers/usb/mon/mon_main.c struct mon_bus *mbus = container_of(r, struct mon_bus, ref); mbus 274 drivers/usb/mon/mon_main.c kfree(mbus); mbus 285 drivers/usb/mon/mon_main.c struct mon_bus *mbus; mbus 287 drivers/usb/mon/mon_main.c mbus = kzalloc(sizeof(struct mon_bus), GFP_KERNEL); mbus 288 drivers/usb/mon/mon_main.c if (mbus == NULL) mbus 290 drivers/usb/mon/mon_main.c kref_init(&mbus->ref); mbus 291 drivers/usb/mon/mon_main.c spin_lock_init(&mbus->lock); mbus 292 drivers/usb/mon/mon_main.c INIT_LIST_HEAD(&mbus->r_list); mbus 298 drivers/usb/mon/mon_main.c mbus->u_bus = ubus; mbus 299 drivers/usb/mon/mon_main.c ubus->mon_bus = mbus; mbus 301 drivers/usb/mon/mon_main.c mbus->text_inited = mon_text_add(mbus, ubus); mbus 302 drivers/usb/mon/mon_main.c mbus->bin_inited = mon_bin_add(mbus, ubus); mbus 305 drivers/usb/mon/mon_main.c list_add_tail(&mbus->bus_link, &mon_buses); mbus 315 drivers/usb/mon/mon_main.c struct mon_bus *mbus = &mon_bus0; mbus 317 drivers/usb/mon/mon_main.c kref_init(&mbus->ref); mbus 318 drivers/usb/mon/mon_main.c spin_lock_init(&mbus->lock); mbus 319 drivers/usb/mon/mon_main.c INIT_LIST_HEAD(&mbus->r_list); mbus 321 drivers/usb/mon/mon_main.c mbus->text_inited = mon_text_add(mbus, NULL); mbus 322 drivers/usb/mon/mon_main.c mbus->bin_inited = mon_bin_add(mbus, NULL); mbus 336 drivers/usb/mon/mon_main.c struct mon_bus *mbus; mbus 342 drivers/usb/mon/mon_main.c mbus = list_entry(p, struct mon_bus, bus_link); mbus 343 drivers/usb/mon/mon_main.c if (mbus->u_bus->busnum == num) { mbus 344 drivers/usb/mon/mon_main.c return mbus; mbus 386 drivers/usb/mon/mon_main.c struct mon_bus *mbus; mbus 396 drivers/usb/mon/mon_main.c mbus = list_entry(p, struct mon_bus, bus_link); mbus 399 drivers/usb/mon/mon_main.c if (mbus->text_inited) mbus 400 drivers/usb/mon/mon_main.c mon_text_del(mbus); mbus 401 drivers/usb/mon/mon_main.c if (mbus->bin_inited) mbus 402 drivers/usb/mon/mon_main.c mon_bin_del(mbus); mbus 409 drivers/usb/mon/mon_main.c if (mbus->nreaders) { mbus 412 drivers/usb/mon/mon_main.c mbus->nreaders, mbus->u_bus->busnum); mbus 413 drivers/usb/mon/mon_main.c kref_get(&mbus->ref); /* Force leak */ mbus 416 drivers/usb/mon/mon_main.c mon_dissolve(mbus, mbus->u_bus); mbus 417 drivers/usb/mon/mon_main.c kref_put(&mbus->ref, mon_bus_drop); mbus 420 drivers/usb/mon/mon_main.c mbus = &mon_bus0; mbus 421 drivers/usb/mon/mon_main.c if (mbus->text_inited) mbus 422 drivers/usb/mon/mon_main.c mon_text_del(mbus); mbus 423 drivers/usb/mon/mon_main.c if (mbus->bin_inited) mbus 424 drivers/usb/mon/mon_main.c mon_bin_del(mbus); mbus 29 drivers/usb/mon/mon_stat.c struct mon_bus *mbus; mbus 36 drivers/usb/mon/mon_stat.c mbus = inode->i_private; mbus 40 drivers/usb/mon/mon_stat.c mbus->nreaders, mbus->cnt_events, mbus->cnt_text_lost); mbus 132 drivers/usb/mon/mon_text.c struct urb *urb, char ev_type, struct mon_bus *mbus) mbus 146 drivers/usb/mon/mon_text.c int len, char ev_type, struct mon_bus *mbus) mbus 305 drivers/usb/mon/mon_text.c struct mon_bus *mbus) mbus 310 drivers/usb/mon/mon_text.c spin_lock_irqsave(&mbus->lock, flags); mbus 312 drivers/usb/mon/mon_text.c spin_unlock_irqrestore(&mbus->lock, flags); mbus 318 drivers/usb/mon/mon_text.c spin_unlock_irqrestore(&mbus->lock, flags); mbus 326 drivers/usb/mon/mon_text.c struct mon_bus *mbus; mbus 331 drivers/usb/mon/mon_text.c mbus = inode->i_private; mbus 349 drivers/usb/mon/mon_text.c rp->r.m_bus = mbus; mbus 364 drivers/usb/mon/mon_text.c mon_reader_add(mbus, &rp->r); mbus 483 drivers/usb/mon/mon_text.c struct mon_bus *mbus = rp->r.m_bus; mbus 489 drivers/usb/mon/mon_text.c while ((ep = mon_text_fetch(rp, mbus)) == NULL) { mbus 645 drivers/usb/mon/mon_text.c struct mon_bus *mbus; mbus 651 drivers/usb/mon/mon_text.c mbus = inode->i_private; mbus 653 drivers/usb/mon/mon_text.c if (mbus->nreaders <= 0) { mbus 658 drivers/usb/mon/mon_text.c mon_reader_del(mbus, &rp->r); mbus 701 drivers/usb/mon/mon_text.c int mon_text_add(struct mon_bus *mbus, const struct usb_bus *ubus) mbus 715 drivers/usb/mon/mon_text.c mbus->dent_t = debugfs_create_file(name, 0600, mon_dir, mbus, mbus 722 drivers/usb/mon/mon_text.c mbus->dent_u = debugfs_create_file(name, 0600, mon_dir, mbus, mbus 728 drivers/usb/mon/mon_text.c mbus->dent_s = debugfs_create_file(name, 0600, mon_dir, mbus, mbus 734 drivers/usb/mon/mon_text.c debugfs_remove(mbus->dent_u); mbus 735 drivers/usb/mon/mon_text.c mbus->dent_u = NULL; mbus 738 drivers/usb/mon/mon_text.c debugfs_remove(mbus->dent_t); mbus 739 drivers/usb/mon/mon_text.c mbus->dent_t = NULL; mbus 745 drivers/usb/mon/mon_text.c void mon_text_del(struct mon_bus *mbus) mbus 747 drivers/usb/mon/mon_text.c debugfs_remove(mbus->dent_u); mbus 748 drivers/usb/mon/mon_text.c debugfs_remove(mbus->dent_t); mbus 749 drivers/usb/mon/mon_text.c debugfs_remove(mbus->dent_s); mbus 53 drivers/usb/mon/usb_mon.h void mon_reader_add(struct mon_bus *mbus, struct mon_reader *r); mbus 54 drivers/usb/mon/usb_mon.h void mon_reader_del(struct mon_bus *mbus, struct mon_reader *r); mbus 58 drivers/usb/mon/usb_mon.h int /*bool*/ mon_text_add(struct mon_bus *mbus, const struct usb_bus *ubus); mbus 59 drivers/usb/mon/usb_mon.h void mon_text_del(struct mon_bus *mbus); mbus 60 drivers/usb/mon/usb_mon.h int /*bool*/ mon_bin_add(struct mon_bus *mbus, const struct usb_bus *ubus); mbus 61 drivers/usb/mon/usb_mon.h void mon_bin_del(struct mon_bus *mbus);