/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/media/v4l2-core/ |
D | v4l2-dv-timings.c | 154 const struct v4l2_bt_timings *bt = &t->bt; in v4l2_valid_dv_timings() local 155 const struct v4l2_bt_timings_cap *cap = &dvcap->bt; in v4l2_valid_dv_timings() 161 bt->height < cap->min_height || in v4l2_valid_dv_timings() 162 bt->height > cap->max_height || in v4l2_valid_dv_timings() 163 bt->width < cap->min_width || in v4l2_valid_dv_timings() 164 bt->width > cap->max_width || in v4l2_valid_dv_timings() 165 bt->pixelclock < cap->min_pixelclock || in v4l2_valid_dv_timings() 166 bt->pixelclock > cap->max_pixelclock || in v4l2_valid_dv_timings() 167 (cap->standards && bt->standards && in v4l2_valid_dv_timings() 168 !(bt->standards & cap->standards)) || in v4l2_valid_dv_timings() [all …]
|
D | v4l2-ioctl.c | 690 p->bt.interlaced, p->bt.pixelclock, in v4l_print_dv_timings() 691 p->bt.width, p->bt.height, in v4l_print_dv_timings() 692 p->bt.polarities, p->bt.hfrontporch, in v4l_print_dv_timings() 693 p->bt.hsync, p->bt.hbackporch, in v4l_print_dv_timings() 694 p->bt.vfrontporch, p->bt.vsync, in v4l_print_dv_timings() 695 p->bt.vbackporch, p->bt.il_vfrontporch, in v4l_print_dv_timings() 696 p->bt.il_vsync, p->bt.il_vbackporch, in v4l_print_dv_timings() 697 p->bt.standards, p->bt.flags); in v4l_print_dv_timings() 721 p->bt.min_width, p->bt.max_width, in v4l_print_dv_timings_cap() 722 p->bt.min_height, p->bt.max_height, in v4l_print_dv_timings_cap() [all …]
|
/drivers/media/i2c/ |
D | ths8200.c | 224 static void ths8200_setup(struct v4l2_subdev *sd, struct v4l2_bt_timings *bt) in ths8200_setup() argument 227 uint16_t line_start_active_video = (bt->vsync + bt->vbackporch); in ths8200_setup() 228 uint16_t line_start_front_porch = (vtotal(bt) - bt->vfrontporch); in ths8200_setup() 235 ths8200_write(sd, THS8200_DTG1_SPEC_A, bt->hsync); in ths8200_setup() 236 ths8200_write(sd, THS8200_DTG1_SPEC_B, bt->hfrontporch); in ths8200_setup() 239 if (!bt->interlaced) in ths8200_setup() 246 (bt->hbackporch + bt->hsync) & 0xff); in ths8200_setup() 254 ((bt->hbackporch + bt->hsync) & 0x100) >> 1); in ths8200_setup() 257 ths8200_write(sd, THS8200_DTG1_SPEC_K_LSB, (bt->hfrontporch) & 0xff); in ths8200_setup() 259 ((bt->hfrontporch) & 0x700) >> 8); in ths8200_setup() [all …]
|
D | ths7303.c | 38 struct v4l2_bt_timings bt; member 149 state->bt.pixelclock = 0; in ths7303_s_std_output() 174 if (state->bt.pixelclock > 120000000) in ths7303_config() 176 else if (state->bt.pixelclock > 70000000) in ths7303_config() 178 else if (state->bt.pixelclock > 20000000) in ths7303_config() 208 state->bt = dv_timings->bt; in ths7303_s_dv_timings() 291 if (state->bt.pixelclock) { in ths7303_log_status() 292 struct v4l2_bt_timings *bt = bt = &state->bt; in ths7303_log_status() local 295 frame_width = V4L2_DV_BT_FRAME_WIDTH(bt); in ths7303_log_status() 296 frame_height = V4L2_DV_BT_FRAME_HEIGHT(bt); in ths7303_log_status() [all …]
|
D | adv7604.c | 941 for (i = 0; predef_vid_timings[i].timings.bt.width; i++) { in find_and_set_predefined_video_timings() 1003 const struct v4l2_bt_timings *bt) in configure_custom_video_timings() argument 1006 u32 width = htotal(bt); in configure_custom_video_timings() 1007 u32 height = vtotal(bt); in configure_custom_video_timings() 1008 u16 cp_start_sav = bt->hsync + bt->hbackporch - 4; in configure_custom_video_timings() 1009 u16 cp_start_eav = width - bt->hfrontporch; in configure_custom_video_timings() 1010 u16 cp_start_vbi = height - bt->vfrontporch; in configure_custom_video_timings() 1011 u16 cp_end_vbi = bt->vsync + bt->vbackporch; in configure_custom_video_timings() 1012 u16 ch1_fr_ll = (((u32)bt->pixelclock / 100) > 0) ? in configure_custom_video_timings() 1013 ((width * (ADV7604_fsc / 100)) / ((u32)bt->pixelclock / 100)) : 0; in configure_custom_video_timings() [all …]
|
D | tvp7002.c | 566 const struct v4l2_bt_timings *bt = &dv_timings->bt; in tvp7002_s_dv_timings() local 572 const struct v4l2_bt_timings *t = &tvp7002_timings[i].timings.bt; in tvp7002_s_dv_timings() 574 if (!memcmp(bt, t, &bt->standards - &bt->width)) { in tvp7002_s_dv_timings() 625 const struct v4l2_bt_timings *bt = &device->current_timings->timings.bt; in tvp7002_mbus_fmt() local 627 f->width = bt->width; in tvp7002_mbus_fmt() 628 f->height = bt->height; in tvp7002_mbus_fmt() 804 const struct v4l2_bt_timings *bt; in tvp7002_log_status() local 810 bt = &device->current_timings->timings.bt; in tvp7002_log_status() 811 v4l2_info(sd, "Selected DV Timings: %ux%u\n", bt->width, bt->height); in tvp7002_log_status() 815 bt = &tvp7002_timings[detected].timings.bt; in tvp7002_log_status() [all …]
|
D | adv7842.c | 122 for (i = 0; adv7842_timings_exceptions[i].bt.width; i++) in adv7842_check_dv_timings() 905 for (i = 0; predef_vid_timings[i].timings.bt.width; i++) { in find_and_set_predefined_video_timings() 972 const struct v4l2_bt_timings *bt) in configure_custom_video_timings() argument 976 u32 width = htotal(bt); in configure_custom_video_timings() 977 u32 height = vtotal(bt); in configure_custom_video_timings() 978 u16 cp_start_sav = bt->hsync + bt->hbackporch - 4; in configure_custom_video_timings() 979 u16 cp_start_eav = width - bt->hfrontporch; in configure_custom_video_timings() 980 u16 cp_start_vbi = height - bt->vfrontporch + 1; in configure_custom_video_timings() 981 u16 cp_end_vbi = bt->vsync + bt->vbackporch + 1; in configure_custom_video_timings() 982 u16 ch1_fr_ll = (((u32)bt->pixelclock / 100) > 0) ? in configure_custom_video_timings() [all …]
|
/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 115 if (bt->sample_point) { in can_calc_bittiming() 116 sampl_pt = bt->sample_point; in can_calc_bittiming() 118 if (bt->bitrate > 800000) in can_calc_bittiming() 120 else if (bt->bitrate > 500000) in can_calc_bittiming() 131 brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2; in can_calc_bittiming() 137 error = bt->bitrate - rate; in can_calc_bittiming() 162 error = (best_error * 1000) / bt->bitrate; in can_calc_bittiming() 175 bt->sample_point = can_update_spt(btc, sampl_pt, best_tseg, in can_calc_bittiming() 180 bt->tq = (u32)v64; in can_calc_bittiming() [all …]
|
/drivers/video/fbdev/ |
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/platform/davinci/ |
D | vpif_display.c | 457 if (!vid_ch->stdid && !vid_ch->dv_timings.bt.height) in vpif_update_resolution() 914 struct v4l2_bt_timings *bt = &vid_ch->dv_timings.bt; in vpif_s_dv_timings() local 944 if (!(timings->bt.width && timings->bt.height && in vpif_s_dv_timings() 945 (timings->bt.hbackporch || in vpif_s_dv_timings() 946 timings->bt.hfrontporch || in vpif_s_dv_timings() 947 timings->bt.hsync) && in vpif_s_dv_timings() 948 timings->bt.vfrontporch && in vpif_s_dv_timings() 949 (timings->bt.vbackporch || in vpif_s_dv_timings() 950 timings->bt.vsync))) { in vpif_s_dv_timings() 963 std_info->eav2sav = V4L2_DV_BT_BLANKING_WIDTH(bt) - 8; in vpif_s_dv_timings() [all …]
|
D | vpif_capture.c | 1113 struct v4l2_bt_timings *bt = &vid_ch->dv_timings.bt; in vpif_s_dv_timings() local 1143 if (!(timings->bt.width && timings->bt.height && in vpif_s_dv_timings() 1144 (timings->bt.hbackporch || in vpif_s_dv_timings() 1145 timings->bt.hfrontporch || in vpif_s_dv_timings() 1146 timings->bt.hsync) && in vpif_s_dv_timings() 1147 timings->bt.vfrontporch && in vpif_s_dv_timings() 1148 (timings->bt.vbackporch || in vpif_s_dv_timings() 1149 timings->bt.vsync))) { in vpif_s_dv_timings() 1162 std_info->eav2sav = V4L2_DV_BT_BLANKING_WIDTH(bt) - 8; in vpif_s_dv_timings() 1163 std_info->sav2eav = bt->width; 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 | 437 const struct can_bittiming *bt; in softing_startstop() local 504 bt = &priv->can.bittiming; in softing_startstop() 505 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop() 506 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop() 507 iowrite16(bt->phase_seg1 + bt->prop_seg, in softing_startstop() 509 iowrite16(bt->phase_seg2, &card->dpram[DPRAM_FCT_PARAM + 8]); in softing_startstop() 544 bt = &priv->can.bittiming; in softing_startstop() 545 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop() 546 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop() 547 iowrite16(bt->phase_seg1 + bt->prop_seg, in softing_startstop() [all …]
|
/drivers/media/usb/hdpvr/ |
D | hdpvr-video.c | 650 dev->width = hdpvr_dv_timings[i].bt.width; in vidioc_s_dv_timings() 651 dev->height = hdpvr_dv_timings[i].bt.height; in vidioc_s_dv_timings() 688 const struct v4l2_bt_timings *bt = &hdpvr_dv_timings[i].bt; in vidioc_query_dv_timings() local 693 hsize = V4L2_DV_BT_FRAME_WIDTH(bt); in vidioc_query_dv_timings() 694 vsize = V4L2_DV_BT_FRAME_HEIGHT(bt); in vidioc_query_dv_timings() 695 fps = (unsigned)bt->pixelclock / (hsize * vsize); in vidioc_query_dv_timings() 696 if (bt->width != vid_info.width || in vidioc_query_dv_timings() 697 bt->height != vid_info.height || in vidioc_query_dv_timings() 698 bt->interlaced != interlaced || in vidioc_query_dv_timings() 736 cap->bt.min_width = 720; in vidioc_dv_timings_cap() [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/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() 234 cap->bt.min_pixelclock = 27000000; in hdmiphy_dv_timings_cap() 235 cap->bt.max_pixelclock = 148500000; in hdmiphy_dv_timings_cap()
|
/drivers/media/platform/vivid/ |
D | vivid-vid-out.c | 222 struct v4l2_bt_timings *bt = &dev->dv_timings_out.bt; in vivid_update_format_out() local 242 dev->sink_rect.width = bt->width; in vivid_update_format_out() 243 dev->sink_rect.height = bt->height; in vivid_update_format_out() 244 size = V4L2_DV_BT_FRAME_WIDTH(bt) * V4L2_DV_BT_FRAME_HEIGHT(bt); in vivid_update_format_out() 246 size / 100, (u32)bt->pixelclock / 100 in vivid_update_format_out() 248 if (bt->interlaced) in vivid_update_format_out() 252 if (!dev->dvi_d_out && (bt->standards & V4L2_DV_BT_STD_CEA861)) { in vivid_update_format_out() 253 if (bt->width == 720 && bt->height <= 576) in vivid_update_format_out() 290 return dev->dv_timings_out.bt.interlaced ? V4L2_FIELD_ALTERNATE : in vivid_field_out() 334 struct v4l2_bt_timings *bt = &dev->dv_timings_out.bt; in vivid_try_fmt_vid_out() local [all …]
|
D | vivid-vid-cap.c | 399 struct v4l2_bt_timings *bt = &dev->dv_timings_cap.bt; in vivid_update_format_cap() local 427 dev->src_rect.width = bt->width; in vivid_update_format_cap() 428 dev->src_rect.height = bt->height; in vivid_update_format_cap() 429 size = V4L2_DV_BT_FRAME_WIDTH(bt) * V4L2_DV_BT_FRAME_HEIGHT(bt); in vivid_update_format_cap() 431 size / 100, (u32)bt->pixelclock / 100 in vivid_update_format_cap() 433 if (bt->interlaced) in vivid_update_format_cap() 444 if (bt->standards & V4L2_DV_BT_STD_CEA861) { in vivid_update_format_cap() 445 if (bt->width == 720 && bt->height <= 576) in vivid_update_format_cap() 489 return dev->dv_timings_cap.bt.interlaced ? V4L2_FIELD_ALTERNATE : in vivid_field_cap() 1286 struct v4l2_bt_timings *bt = &dev->dv_timings_cap.bt; in vidioc_s_input() local [all …]
|
/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/sja1000/ |
D | sja1000.c | 244 struct can_bittiming *bt = &priv->can.bittiming; in sja1000_set_bittiming() local 247 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in sja1000_set_bittiming() 248 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in sja1000_set_bittiming() 249 (((bt->phase_seg2 - 1) & 0x7) << 4); in sja1000_set_bittiming()
|