/drivers/char/ipmi/ |
D | ipmi_bt_sm.c | 90 #define BT_STATE_CHANGE(X, Y) { bt->state = X; return Y; } 129 #define BT_STATUS bt->io->inputb(bt->io, 0) 130 #define BT_CONTROL(x) bt->io->outputb(bt->io, 0, x) 132 #define BMC2HOST bt->io->inputb(bt->io, 1) 133 #define HOST2BMC(x) bt->io->outputb(bt->io, 1, x) 135 #define BT_INTMASK_R bt->io->inputb(bt->io, 2) 136 #define BT_INTMASK_W(x) bt->io->outputb(bt->io, 2, x) 163 #define STATE2TXT state2txt(bt->state) 194 static unsigned int bt_init_data(struct si_sm_data *bt, struct si_sm_io *io) in bt_init_data() argument 196 memset(bt, 0, sizeof(struct si_sm_data)); in bt_init_data() [all …]
|
/drivers/media/pci/bt8xx/ |
D | bt878.c | 68 #define btwrite(dat,adr) bmtwrite((dat), (bt->bt878_mem+(adr))) 69 #define btread(adr) bmtread(bt->bt878_mem+(adr)) 84 static void bt878_mem_free(struct bt878 *bt) in bt878_mem_free() argument 86 if (bt->buf_cpu) { in bt878_mem_free() 87 pci_free_consistent(bt->dev, bt->buf_size, bt->buf_cpu, in bt878_mem_free() 88 bt->buf_dma); in bt878_mem_free() 89 bt->buf_cpu = NULL; in bt878_mem_free() 92 if (bt->risc_cpu) { in bt878_mem_free() 93 pci_free_consistent(bt->dev, bt->risc_size, bt->risc_cpu, in bt878_mem_free() 94 bt->risc_dma); in bt878_mem_free() [all …]
|
D | dvb-bt8xx.c | 60 while (card->bt->last_block != card->bt->finished_block) { in dvb_bt8xx_task() 61 (card->bt->TS_Size ? dvb_dmx_swfilter_204 : dvb_dmx_swfilter) in dvb_bt8xx_task() 63 &card->bt->buf_cpu[card->bt->last_block * in dvb_bt8xx_task() 64 card->bt->block_bytes], in dvb_bt8xx_task() 65 card->bt->block_bytes); in dvb_bt8xx_task() 66 card->bt->last_block = (card->bt->last_block + 1) % in dvb_bt8xx_task() 67 card->bt->block_count; in dvb_bt8xx_task() 86 bt878_start(card->bt, card->gpio_mode, in dvb_bt8xx_start_feed() 105 bt878_stop(card->bt); in dvb_bt8xx_stop_feed() 316 struct dvb_bt8xx_card* bt = (struct dvb_bt8xx_card*) fe->dvb->priv; in microtune_mt7202dtf_request_firmware() local [all …]
|
D | bt878.h | 141 void bt878_start(struct bt878 *bt, u32 controlreg, u32 op_sync_orin, 143 void bt878_stop(struct bt878 *bt);
|
/drivers/net/can/ |
D | dev.c | 103 static int can_calc_bittiming(struct net_device *dev, struct can_bittiming *bt) in can_calc_bittiming() argument 118 if (bt->sample_point) { in can_calc_bittiming() 119 sampl_pt = bt->sample_point; in can_calc_bittiming() 121 if (bt->bitrate > 800000) in can_calc_bittiming() 123 else if (bt->bitrate > 500000) in can_calc_bittiming() 134 brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2; in can_calc_bittiming() 140 error = bt->bitrate - rate; in can_calc_bittiming() 166 error = (best_error * 1000) / bt->bitrate; in can_calc_bittiming() 179 bt->sample_point = can_update_spt(btc, sampl_pt, best_tseg, in can_calc_bittiming() 184 bt->tq = (u32)v64; in can_calc_bittiming() [all …]
|
D | bfin_can.c | 68 struct can_bittiming *bt = &priv->can.bittiming; in bfin_can_set_bittiming() local 71 clk = bt->brp - 1; in bfin_can_set_bittiming() 72 timing = ((bt->sjw - 1) << 8) | (bt->prop_seg + bt->phase_seg1 - 1) | in bfin_can_set_bittiming() 73 ((bt->phase_seg2 - 1) << 4); in bfin_can_set_bittiming()
|
/drivers/media/v4l2-core/ |
D | v4l2-common.c | 566 if (t1->bt.width == t2->bt.width && in v4l_match_dv_timings() 567 t1->bt.height == t2->bt.height && in v4l_match_dv_timings() 568 t1->bt.interlaced == t2->bt.interlaced && in v4l_match_dv_timings() 569 t1->bt.polarities == t2->bt.polarities && in v4l_match_dv_timings() 570 t1->bt.pixelclock >= t2->bt.pixelclock - pclock_delta && in v4l_match_dv_timings() 571 t1->bt.pixelclock <= t2->bt.pixelclock + pclock_delta && in v4l_match_dv_timings() 572 t1->bt.hfrontporch == t2->bt.hfrontporch && in v4l_match_dv_timings() 573 t1->bt.vfrontporch == t2->bt.vfrontporch && in v4l_match_dv_timings() 574 t1->bt.vsync == t2->bt.vsync && in v4l_match_dv_timings() 575 t1->bt.vbackporch == t2->bt.vbackporch && in v4l_match_dv_timings() [all …]
|
D | v4l2-ioctl.c | 677 p->bt.interlaced, p->bt.pixelclock, in v4l_print_dv_timings() 678 p->bt.width, p->bt.height, in v4l_print_dv_timings() 679 p->bt.polarities, p->bt.hfrontporch, in v4l_print_dv_timings() 680 p->bt.hsync, p->bt.hbackporch, in v4l_print_dv_timings() 681 p->bt.vfrontporch, p->bt.vsync, in v4l_print_dv_timings() 682 p->bt.vbackporch, p->bt.il_vfrontporch, in v4l_print_dv_timings() 683 p->bt.il_vsync, p->bt.il_vbackporch, in v4l_print_dv_timings() 684 p->bt.standards, p->bt.flags); in v4l_print_dv_timings() 708 p->bt.min_width, p->bt.max_width, in v4l_print_dv_timings_cap() 709 p->bt.min_height, p->bt.max_height, in v4l_print_dv_timings_cap() [all …]
|
/drivers/media/i2c/ |
D | ths7303.c | 39 struct v4l2_bt_timings bt; member 150 state->bt.pixelclock = 0; in ths7303_s_std_output() 175 if (state->bt.pixelclock > 120000000) in ths7303_config() 177 else if (state->bt.pixelclock > 70000000) in ths7303_config() 179 else if (state->bt.pixelclock > 20000000) in ths7303_config() 209 state->bt = dv_timings->bt; in ths7303_s_dv_timings() 315 if (state->bt.pixelclock) { in ths7303_log_status() 316 struct v4l2_bt_timings *bt = bt = &state->bt; in ths7303_log_status() local 319 frame_width = bt->width + bt->hfrontporch + in ths7303_log_status() 320 bt->hsync + bt->hbackporch; in ths7303_log_status() [all …]
|
D | adv7604.c | 776 for (i = 0; predef_vid_timings[i].timings.bt.width; i++) { in find_and_set_predefined_video_timings() 841 const struct v4l2_bt_timings *bt) in configure_custom_video_timings() argument 845 u32 width = htotal(bt); in configure_custom_video_timings() 846 u32 height = vtotal(bt); in configure_custom_video_timings() 847 u16 cp_start_sav = bt->hsync + bt->hbackporch - 4; in configure_custom_video_timings() 848 u16 cp_start_eav = width - bt->hfrontporch; in configure_custom_video_timings() 849 u16 cp_start_vbi = height - bt->vfrontporch; in configure_custom_video_timings() 850 u16 cp_end_vbi = bt->vsync + bt->vbackporch; in configure_custom_video_timings() 851 u16 ch1_fr_ll = (((u32)bt->pixelclock / 100) > 0) ? in configure_custom_video_timings() 852 ((width * (ADV7604_fsc / 100)) / ((u32)bt->pixelclock / 100)) : 0; in configure_custom_video_timings() [all …]
|
D | ad9389b.c | 247 if (state->dv_timings.bt.standards & V4L2_DV_BT_STD_CEA861) { in ad9389b_set_IT_content_AVI_InfoFrame() 263 if (state->dv_timings.bt.standards & V4L2_DV_BT_STD_CEA861) { in ad9389b_set_rgb_quantization_mode() 466 struct v4l2_bt_timings *bt = bt = &state->dv_timings.bt; in ad9389b_log_status() local 467 u32 frame_width = bt->width + bt->hfrontporch + in ad9389b_log_status() 468 bt->hsync + bt->hbackporch; in ad9389b_log_status() 469 u32 frame_height = bt->height + bt->vfrontporch + in ad9389b_log_status() 470 bt->vsync + bt->vbackporch; in ad9389b_log_status() 474 bt->width, bt->height, bt->interlaced ? "i" : "p", in ad9389b_log_status() 475 frame_size > 0 ? (unsigned)bt->pixelclock / frame_size : 0, in ad9389b_log_status() 477 (unsigned)bt->pixelclock, bt->polarities); in ad9389b_log_status() [all …]
|
D | tvp7002.c | 587 const struct v4l2_bt_timings *bt = &dv_timings->bt; in tvp7002_s_dv_timings() local 593 const struct v4l2_bt_timings *t = &tvp7002_timings[i].timings.bt; in tvp7002_s_dv_timings() 595 if (!memcmp(bt, t, &bt->standards - &bt->width)) { in tvp7002_s_dv_timings() 646 const struct v4l2_bt_timings *bt = &device->current_timings->timings.bt; in tvp7002_mbus_fmt() local 648 f->width = bt->width; in tvp7002_mbus_fmt() 649 f->height = bt->height; in tvp7002_mbus_fmt() 844 const struct v4l2_bt_timings *bt; in tvp7002_log_status() local 850 bt = &device->current_timings->timings.bt; in tvp7002_log_status() 851 v4l2_info(sd, "Selected DV Timings: %ux%u\n", bt->width, bt->height); in tvp7002_log_status() 855 bt = &tvp7002_timings[detected].timings.bt; in tvp7002_log_status() [all …]
|
/drivers/video/ |
D | tcx.c | 110 struct bt_regs __iomem *bt; member 174 struct bt_regs __iomem *bt = par->bt; in tcx_setcolreg() local 186 sbus_writel(regno << 24, &bt->addr); in tcx_setcolreg() 187 sbus_writel(red << 24, &bt->color_map); in tcx_setcolreg() 188 sbus_writel(green << 24, &bt->color_map); in tcx_setcolreg() 189 sbus_writel(blue << 24, &bt->color_map); in tcx_setcolreg() 354 if (par->bt) in tcx_unmap_regs() 356 par->bt, sizeof(struct bt_regs)); in tcx_unmap_regs() 397 par->bt = of_ioremap(&op->resource[8], 0, in tcx_probe() 402 !par->bt || !info->screen_base) in tcx_probe() [all …]
|
D | cg6.c | 256 struct bt_regs __iomem *bt; member 488 struct bt_regs __iomem *bt = par->bt; in cg6_setcolreg() local 500 sbus_writel((u32)regno << 24, &bt->addr); in cg6_setcolreg() 501 sbus_writel((u32)red << 24, &bt->color_map); in cg6_setcolreg() 502 sbus_writel((u32)green << 24, &bt->color_map); in cg6_setcolreg() 503 sbus_writel((u32)blue << 24, &bt->color_map); in cg6_setcolreg() 654 struct bt_regs __iomem *bt = par->bt; in cg6_bt_init() local 656 sbus_writel(0x04 << 24, &bt->addr); /* color planes */ in cg6_bt_init() 657 sbus_writel(0xff << 24, &bt->control); in cg6_bt_init() 658 sbus_writel(0x05 << 24, &bt->addr); in cg6_bt_init() [all …]
|
/drivers/media/usb/hdpvr/ |
D | hdpvr-video.c | 645 dev->width = hdpvr_dv_timings[i].bt.width; in vidioc_s_dv_timings() 646 dev->height = hdpvr_dv_timings[i].bt.height; in vidioc_s_dv_timings() 681 const struct v4l2_bt_timings *bt = &hdpvr_dv_timings[i].bt; in vidioc_query_dv_timings() local 686 hsize = bt->hfrontporch + bt->hsync + bt->hbackporch + bt->width; in vidioc_query_dv_timings() 687 vsize = bt->vfrontporch + bt->vsync + bt->vbackporch + in vidioc_query_dv_timings() 688 bt->il_vfrontporch + bt->il_vsync + bt->il_vbackporch + in vidioc_query_dv_timings() 689 bt->height; in vidioc_query_dv_timings() 690 fps = (unsigned)bt->pixelclock / (hsize * vsize); in vidioc_query_dv_timings() 691 if (bt->width != vid_info->width || in vidioc_query_dv_timings() 692 bt->height != vid_info->height || in vidioc_query_dv_timings() [all …]
|
/drivers/media/platform/davinci/ |
D | vpif_display.c | 539 if (!vid_ch->stdid && !vid_ch->dv_timings.bt.height) in vpif_update_resolution() 1421 struct v4l2_bt_timings *bt = &vid_ch->dv_timings.bt; in vpif_s_dv_timings() local 1438 if (!(timings->bt.width && timings->bt.height && in vpif_s_dv_timings() 1439 (timings->bt.hbackporch || in vpif_s_dv_timings() 1440 timings->bt.hfrontporch || in vpif_s_dv_timings() 1441 timings->bt.hsync) && in vpif_s_dv_timings() 1442 timings->bt.vfrontporch && in vpif_s_dv_timings() 1443 (timings->bt.vbackporch || in vpif_s_dv_timings() 1444 timings->bt.vsync))) { in vpif_s_dv_timings() 1457 std_info->eav2sav = bt->hbackporch + bt->hfrontporch + in vpif_s_dv_timings() [all …]
|
D | vpif_capture.c | 1778 struct v4l2_bt_timings *bt = &vid_ch->dv_timings.bt; in vpif_s_dv_timings() local 1795 if (!(timings->bt.width && timings->bt.height && in vpif_s_dv_timings() 1796 (timings->bt.hbackporch || in vpif_s_dv_timings() 1797 timings->bt.hfrontporch || in vpif_s_dv_timings() 1798 timings->bt.hsync) && in vpif_s_dv_timings() 1799 timings->bt.vfrontporch && in vpif_s_dv_timings() 1800 (timings->bt.vbackporch || in vpif_s_dv_timings() 1801 timings->bt.vsync))) { in vpif_s_dv_timings() 1814 std_info->eav2sav = bt->hbackporch + bt->hfrontporch + in vpif_s_dv_timings() 1815 bt->hsync - 8; in vpif_s_dv_timings() [all …]
|
/drivers/platform/x86/ |
D | acerhdf.c | 562 const struct bios_settings_t *bt = NULL; in acerhdf_check_hardware() local 593 for (bt = bios_tbl; bt->vendor[0]; bt++) { in acerhdf_check_hardware() 598 if (str_starts_with(vendor, bt->vendor) && in acerhdf_check_hardware() 599 str_starts_with(product, bt->product) && in acerhdf_check_hardware() 600 str_starts_with(version, bt->version)) { in acerhdf_check_hardware() 601 bios_cfg = bt; in acerhdf_check_hardware()
|
/drivers/net/can/softing/ |
D | softing_fw.c | 438 const struct can_bittiming *bt; in softing_startstop() local 505 bt = &priv->can.bittiming; in softing_startstop() 506 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop() 507 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop() 508 iowrite16(bt->phase_seg1 + bt->prop_seg, in softing_startstop() 510 iowrite16(bt->phase_seg2, &card->dpram[DPRAM_FCT_PARAM + 8]); in softing_startstop() 545 bt = &priv->can.bittiming; in softing_startstop() 546 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop() 547 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop() 548 iowrite16(bt->phase_seg1 + bt->prop_seg, in softing_startstop() [all …]
|
/drivers/uwb/ |
D | driver.c | 89 unsigned long bt; in beacon_timeout_ms_store() local 91 result = sscanf(buf, "%lu", &bt); in beacon_timeout_ms_store() 94 beacon_timeout_ms = bt; in beacon_timeout_ms_store()
|
/drivers/media/platform/blackfin/ |
D | bfin_capture.c | 388 struct v4l2_bt_timings *bt = &bcap_dev->dv_timings.bt; in bcap_start_streaming() local 390 params.hdelay = bt->hsync + bt->hbackporch; in bcap_start_streaming() 391 params.vdelay = bt->vsync + bt->vbackporch; in bcap_start_streaming() 392 params.line = bt->hfrontporch + bt->hsync in bcap_start_streaming() 393 + bt->hbackporch + bt->width; in bcap_start_streaming() 394 params.frame = bt->vfrontporch + bt->vsync in bcap_start_streaming() 395 + bt->vbackporch + bt->height; in bcap_start_streaming() 396 if (bt->interlaced) in bcap_start_streaming() 397 params.frame += bt->il_vfrontporch + bt->il_vsync in bcap_start_streaming() 398 + bt->il_vbackporch; in bcap_start_streaming()
|
/drivers/media/platform/s5p-tv/ |
D | hdmiphy_drv.c | 203 unsigned long pixclk = timings->bt.pixelclock; in hdmiphy_s_dv_timings() 206 if ((timings->bt.flags & V4L2_DV_FL_REDUCED_FPS) && pixclk == 74250000) in hdmiphy_s_dv_timings() 231 cap->bt.min_pixelclock = 27000000; in hdmiphy_dv_timings_cap() 232 cap->bt.max_pixelclock = 148500000; in hdmiphy_dv_timings_cap()
|
/drivers/net/can/sja1000/ |
D | sja1000.c | 210 struct can_bittiming *bt = &priv->can.bittiming; in sja1000_set_bittiming() local 213 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in sja1000_set_bittiming() 214 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in sja1000_set_bittiming() 215 (((bt->phase_seg2 - 1) & 0x7) << 4); in sja1000_set_bittiming()
|
/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 217 struct can_bittiming *bt) in pcan_usb_set_bittiming() argument 222 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in pcan_usb_set_bittiming() 223 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in pcan_usb_set_bittiming() 224 (((bt->phase_seg2 - 1) & 0x7) << 4); in pcan_usb_set_bittiming()
|
/drivers/net/can/mscan/ |
D | mscan.c | 542 struct can_bittiming *bt = &priv->can.bittiming; in mscan_do_set_bittiming() local 545 btr0 = BTR0_SET_BRP(bt->brp) | BTR0_SET_SJW(bt->sjw); in mscan_do_set_bittiming() 546 btr1 = (BTR1_SET_TSEG1(bt->prop_seg + bt->phase_seg1) | in mscan_do_set_bittiming() 547 BTR1_SET_TSEG2(bt->phase_seg2) | in mscan_do_set_bittiming()
|