mxb 2169 drivers/block/drbd/drbd_int.h int mxb; mxb 2173 drivers/block/drbd/drbd_int.h mxb = nc ? nc->max_buffers : 1000000; /* arbitrary limit on open requests */ mxb 2176 drivers/block/drbd/drbd_int.h return mxb; mxb 2258 drivers/block/drbd/drbd_int.h int mxb = drbd_get_max_buffers(device); mxb 2275 drivers/block/drbd/drbd_int.h if (atomic_read(&device->ap_bio_cnt) > mxb) mxb 2310 drivers/block/drbd/drbd_int.h int mxb = drbd_get_max_buffers(device); mxb 2325 drivers/block/drbd/drbd_int.h if (ap_bio < mxb) mxb 267 drivers/block/drbd/drbd_receiver.c unsigned int mxb; mxb 271 drivers/block/drbd/drbd_receiver.c mxb = nc ? nc->max_buffers : 1000000; mxb 274 drivers/block/drbd/drbd_receiver.c if (atomic_read(&device->pp_in_use) < mxb) mxb 287 drivers/block/drbd/drbd_receiver.c if (atomic_read(&device->pp_in_use) < mxb) { mxb 302 drivers/block/drbd/drbd_receiver.c mxb = UINT_MAX; mxb 555 drivers/block/drbd/drbd_worker.c int number, mxb; mxb 561 drivers/block/drbd/drbd_worker.c mxb = drbd_get_max_buffers(device) / 2; mxb 581 drivers/block/drbd/drbd_worker.c if (mxb - device->rs_in_flight/8 < number) mxb 582 drivers/block/drbd/drbd_worker.c number = mxb - device->rs_in_flight/8; mxb 162 drivers/media/pci/saa7146/mxb.c #define saa7111a_call(mxb, o, f, args...) \ mxb 163 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->saa7111a, o, f, ##args) mxb 164 drivers/media/pci/saa7146/mxb.c #define tda9840_call(mxb, o, f, args...) \ mxb 165 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->tda9840, o, f, ##args) mxb 166 drivers/media/pci/saa7146/mxb.c #define tea6415c_call(mxb, o, f, args...) \ mxb 167 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->tea6415c, o, f, ##args) mxb 168 drivers/media/pci/saa7146/mxb.c #define tuner_call(mxb, o, f, args...) \ mxb 169 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->tuner, o, f, ##args) mxb 173 drivers/media/pci/saa7146/mxb.c static void mxb_update_audmode(struct mxb *mxb) mxb 176 drivers/media/pci/saa7146/mxb.c .audmode = mxb->cur_mode, mxb 179 drivers/media/pci/saa7146/mxb.c tda9840_call(mxb, tuner, s_tuner, &t); mxb 182 drivers/media/pci/saa7146/mxb.c static inline void tea6420_route(struct mxb *mxb, int idx) mxb 184 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->tea6420_1, audio, s_routing, mxb 186 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->tea6420_2, audio, s_routing, mxb 188 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->tea6420_1, audio, s_routing, mxb 190 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->tea6420_2, audio, s_routing, mxb 200 drivers/media/pci/saa7146/mxb.c struct mxb *mxb = dev->ext_priv; mxb 204 drivers/media/pci/saa7146/mxb.c mxb->cur_mute = ctrl->val; mxb 206 drivers/media/pci/saa7146/mxb.c tea6420_route(mxb, ctrl->val ? 6 : mxb 207 drivers/media/pci/saa7146/mxb.c video_audio_connect[mxb->cur_input]); mxb 222 drivers/media/pci/saa7146/mxb.c struct mxb *mxb = NULL; mxb 228 drivers/media/pci/saa7146/mxb.c mxb = kzalloc(sizeof(struct mxb), GFP_KERNEL); mxb 229 drivers/media/pci/saa7146/mxb.c if (mxb == NULL) { mxb 235 drivers/media/pci/saa7146/mxb.c snprintf(mxb->i2c_adapter.name, sizeof(mxb->i2c_adapter.name), "mxb%d", mxb_num); mxb 237 drivers/media/pci/saa7146/mxb.c saa7146_i2c_adapter_prepare(dev, &mxb->i2c_adapter, SAA7146_I2C_BUS_BIT_RATE_480); mxb 238 drivers/media/pci/saa7146/mxb.c if (i2c_add_adapter(&mxb->i2c_adapter) < 0) { mxb 240 drivers/media/pci/saa7146/mxb.c kfree(mxb); mxb 244 drivers/media/pci/saa7146/mxb.c mxb->saa7111a = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, mxb 246 drivers/media/pci/saa7146/mxb.c mxb->tea6420_1 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, mxb 248 drivers/media/pci/saa7146/mxb.c mxb->tea6420_2 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, mxb 250 drivers/media/pci/saa7146/mxb.c mxb->tea6415c = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, mxb 252 drivers/media/pci/saa7146/mxb.c mxb->tda9840 = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, mxb 254 drivers/media/pci/saa7146/mxb.c mxb->tuner = v4l2_i2c_new_subdev(&dev->v4l2_dev, &mxb->i2c_adapter, mxb 258 drivers/media/pci/saa7146/mxb.c if (!mxb->tea6420_1 || !mxb->tea6420_2 || !mxb->tea6415c || mxb 259 drivers/media/pci/saa7146/mxb.c !mxb->tda9840 || !mxb->saa7111a || !mxb->tuner) { mxb 261 drivers/media/pci/saa7146/mxb.c i2c_del_adapter(&mxb->i2c_adapter); mxb 262 drivers/media/pci/saa7146/mxb.c kfree(mxb); mxb 269 drivers/media/pci/saa7146/mxb.c dev->ext_priv = mxb; mxb 338 drivers/media/pci/saa7146/mxb.c struct mxb* mxb = (struct mxb*)dev->ext_priv; mxb 346 drivers/media/pci/saa7146/mxb.c tea6420_route(mxb, 6); mxb 349 drivers/media/pci/saa7146/mxb.c saa7111a_call(mxb, video, s_std, std); mxb 353 drivers/media/pci/saa7146/mxb.c saa7111a_call(mxb, video, s_routing, SAA7115_COMPOSITE0, mxb 360 drivers/media/pci/saa7146/mxb.c tuner_call(mxb, tuner, s_type_addr, &tun_setup); mxb 362 drivers/media/pci/saa7146/mxb.c mxb->cur_freq.tuner = 0; mxb 363 drivers/media/pci/saa7146/mxb.c mxb->cur_freq.type = V4L2_TUNER_ANALOG_TV; mxb 364 drivers/media/pci/saa7146/mxb.c mxb->cur_freq.frequency = freq; mxb 365 drivers/media/pci/saa7146/mxb.c tuner_call(mxb, tuner, s_frequency, &mxb->cur_freq); mxb 370 drivers/media/pci/saa7146/mxb.c saa7111a_call(mxb, core, s_gpio, 1); mxb 371 drivers/media/pci/saa7146/mxb.c saa7111a_call(mxb, video, s_std, std); mxb 372 drivers/media/pci/saa7146/mxb.c tuner_call(mxb, video, s_std, std); mxb 375 drivers/media/pci/saa7146/mxb.c tea6415c_call(mxb, video, s_routing, 3, 17, 0); mxb 378 drivers/media/pci/saa7146/mxb.c tea6415c_call(mxb, video, s_routing, 3, 13, 0); mxb 381 drivers/media/pci/saa7146/mxb.c mxb->cur_input = 0; mxb 382 drivers/media/pci/saa7146/mxb.c mxb->cur_audinput = video_audio_connect[mxb->cur_input]; mxb 383 drivers/media/pci/saa7146/mxb.c mxb->cur_mute = 1; mxb 385 drivers/media/pci/saa7146/mxb.c mxb->cur_mode = V4L2_TUNER_MODE_STEREO; mxb 386 drivers/media/pci/saa7146/mxb.c mxb_update_audmode(mxb); mxb 397 drivers/media/pci/saa7146/mxb.c err = i2c_transfer(&mxb->i2c_adapter, &msg, 1); mxb 411 drivers/media/pci/saa7146/mxb.c err = i2c_transfer(&mxb->i2c_adapter, &msg, 1); mxb 426 drivers/media/pci/saa7146/mxb.c saa7146_set_hps_source_and_sync(dev, input_port_selection[mxb->cur_input].hps_source, mxb 427 drivers/media/pci/saa7146/mxb.c input_port_selection[mxb->cur_input].hps_sync); mxb 461 drivers/media/pci/saa7146/mxb.c struct mxb *mxb = (struct mxb *)dev->ext_priv; mxb 462 drivers/media/pci/saa7146/mxb.c *i = mxb->cur_input; mxb 471 drivers/media/pci/saa7146/mxb.c struct mxb *mxb = (struct mxb *)dev->ext_priv; mxb 480 drivers/media/pci/saa7146/mxb.c mxb->cur_input = input; mxb 491 drivers/media/pci/saa7146/mxb.c err = tea6415c_call(mxb, video, s_routing, 3, 17, 0); mxb 495 drivers/media/pci/saa7146/mxb.c err = tea6415c_call(mxb, video, s_routing, 3, 13, 0); mxb 509 drivers/media/pci/saa7146/mxb.c err = tea6415c_call(mxb, video, s_routing, 1, 17, 0); mxb 517 drivers/media/pci/saa7146/mxb.c if (saa7111a_call(mxb, video, s_routing, i, SAA7111_FMT_CCIR, 0)) mxb 520 drivers/media/pci/saa7146/mxb.c mxb->cur_audinput = video_audio_connect[input]; mxb 522 drivers/media/pci/saa7146/mxb.c if (0 == mxb->cur_mute) mxb 523 drivers/media/pci/saa7146/mxb.c tea6420_route(mxb, mxb->cur_audinput); mxb 524 drivers/media/pci/saa7146/mxb.c if (mxb->cur_audinput == 0) mxb 525 drivers/media/pci/saa7146/mxb.c mxb_update_audmode(mxb); mxb 533 drivers/media/pci/saa7146/mxb.c struct mxb *mxb = (struct mxb *)dev->ext_priv; mxb 548 drivers/media/pci/saa7146/mxb.c t->audmode = mxb->cur_mode; mxb 555 drivers/media/pci/saa7146/mxb.c struct mxb *mxb = (struct mxb *)dev->ext_priv; mxb 563 drivers/media/pci/saa7146/mxb.c mxb->cur_mode = t->audmode; mxb 577 drivers/media/pci/saa7146/mxb.c struct mxb *mxb = (struct mxb *)dev->ext_priv; mxb 581 drivers/media/pci/saa7146/mxb.c *f = mxb->cur_freq; mxb 583 drivers/media/pci/saa7146/mxb.c DEB_EE("VIDIOC_G_FREQ: freq:0x%08x\n", mxb->cur_freq.frequency); mxb 590 drivers/media/pci/saa7146/mxb.c struct mxb *mxb = (struct mxb *)dev->ext_priv; mxb 599 drivers/media/pci/saa7146/mxb.c DEB_EE("VIDIOC_S_FREQUENCY: freq:0x%08x\n", mxb->cur_freq.frequency); mxb 602 drivers/media/pci/saa7146/mxb.c tuner_call(mxb, tuner, s_frequency, f); mxb 604 drivers/media/pci/saa7146/mxb.c mxb->cur_freq = *f; mxb 605 drivers/media/pci/saa7146/mxb.c tuner_call(mxb, tuner, g_frequency, &mxb->cur_freq); mxb 606 drivers/media/pci/saa7146/mxb.c if (mxb->cur_audinput == 0) mxb 607 drivers/media/pci/saa7146/mxb.c mxb_update_audmode(mxb); mxb 609 drivers/media/pci/saa7146/mxb.c if (mxb->cur_input) mxb 631 drivers/media/pci/saa7146/mxb.c struct mxb *mxb = (struct mxb *)dev->ext_priv; mxb 634 drivers/media/pci/saa7146/mxb.c *a = mxb_audios[mxb->cur_audinput]; mxb 641 drivers/media/pci/saa7146/mxb.c struct mxb *mxb = (struct mxb *)dev->ext_priv; mxb 644 drivers/media/pci/saa7146/mxb.c if (mxb_inputs[mxb->cur_input].audioset & (1 << a->index)) { mxb 645 drivers/media/pci/saa7146/mxb.c if (mxb->cur_audinput != a->index) { mxb 646 drivers/media/pci/saa7146/mxb.c mxb->cur_audinput = a->index; mxb 647 drivers/media/pci/saa7146/mxb.c tea6420_route(mxb, a->index); mxb 648 drivers/media/pci/saa7146/mxb.c if (mxb->cur_audinput == 0) mxb 649 drivers/media/pci/saa7146/mxb.c mxb_update_audmode(mxb); mxb 684 drivers/media/pci/saa7146/mxb.c struct mxb *mxb; mxb 693 drivers/media/pci/saa7146/mxb.c mxb = (struct mxb *)dev->ext_priv; mxb 710 drivers/media/pci/saa7146/mxb.c if (saa7146_register_device(&mxb->video_dev, dev, "mxb", VFL_TYPE_GRABBER)) { mxb 718 drivers/media/pci/saa7146/mxb.c if (saa7146_register_device(&mxb->vbi_dev, dev, "mxb", VFL_TYPE_VBI)) { mxb 732 drivers/media/pci/saa7146/mxb.c struct mxb *mxb = (struct mxb *)dev->ext_priv; mxb 737 drivers/media/pci/saa7146/mxb.c tea6420_route(mxb, 6); mxb 739 drivers/media/pci/saa7146/mxb.c saa7146_unregister_device(&mxb->video_dev,dev); mxb 741 drivers/media/pci/saa7146/mxb.c saa7146_unregister_device(&mxb->vbi_dev, dev); mxb 746 drivers/media/pci/saa7146/mxb.c i2c_del_adapter(&mxb->i2c_adapter); mxb 747 drivers/media/pci/saa7146/mxb.c kfree(mxb); mxb 754 drivers/media/pci/saa7146/mxb.c struct mxb *mxb = (struct mxb *)dev->ext_priv; mxb 762 drivers/media/pci/saa7146/mxb.c saa7111a_call(mxb, core, s_gpio, 0); mxb 763 drivers/media/pci/saa7146/mxb.c saa7111a_call(mxb, video, s_std, std); mxb 764 drivers/media/pci/saa7146/mxb.c if (mxb->cur_input == 0) mxb 765 drivers/media/pci/saa7146/mxb.c tuner_call(mxb, video, s_std, std); mxb 769 drivers/media/pci/saa7146/mxb.c if (mxb->cur_input) mxb 774 drivers/media/pci/saa7146/mxb.c saa7111a_call(mxb, core, s_gpio, 1); mxb 775 drivers/media/pci/saa7146/mxb.c saa7111a_call(mxb, video, s_std, std); mxb 776 drivers/media/pci/saa7146/mxb.c if (mxb->cur_input == 0) mxb 777 drivers/media/pci/saa7146/mxb.c tuner_call(mxb, video, s_std, std); mxb 806 drivers/media/pci/saa7146/mxb.c static struct saa7146_pci_extension_data mxb = { mxb 817 drivers/media/pci/saa7146/mxb.c .driver_data = (unsigned long)&mxb,