Home
last modified time | relevance | path

Searched refs:bt (Results 1 – 25 of 103) sorted by relevance

12345

/drivers/char/ipmi/
Dipmi_bt_sm.c72 #define BT_STATE_CHANGE(X, Y) { bt->state = X; return Y; }
110 #define BT_STATUS bt->io->inputb(bt->io, 0)
111 #define BT_CONTROL(x) bt->io->outputb(bt->io, 0, x)
113 #define BMC2HOST bt->io->inputb(bt->io, 1)
114 #define HOST2BMC(x) bt->io->outputb(bt->io, 1, x)
116 #define BT_INTMASK_R bt->io->inputb(bt->io, 2)
117 #define BT_INTMASK_W(x) bt->io->outputb(bt->io, 2, x)
142 #define STATE2TXT state2txt(bt->state)
173 static unsigned int bt_init_data(struct si_sm_data *bt, struct si_sm_io *io) in bt_init_data() argument
175 memset(bt, 0, sizeof(struct si_sm_data)); in bt_init_data()
[all …]
/drivers/media/pci/bt8xx/
Dbt878.c51 #define btwrite(dat,adr) bmtwrite((dat), (bt->bt878_mem+(adr)))
52 #define btread(adr) bmtread(bt->bt878_mem+(adr))
67 static void bt878_mem_free(struct bt878 *bt) in bt878_mem_free() argument
69 if (bt->buf_cpu) { in bt878_mem_free()
70 dma_free_coherent(&bt->dev->dev, bt->buf_size, bt->buf_cpu, in bt878_mem_free()
71 bt->buf_dma); in bt878_mem_free()
72 bt->buf_cpu = NULL; in bt878_mem_free()
75 if (bt->risc_cpu) { in bt878_mem_free()
76 dma_free_coherent(&bt->dev->dev, bt->risc_size, bt->risc_cpu, in bt878_mem_free()
77 bt->risc_dma); in bt878_mem_free()
[all …]
Ddvb-bt8xx.c44 struct bt878 *bt = from_tasklet(bt, t, tasklet); in dvb_bt8xx_task() local
45 struct dvb_bt8xx_card *card = dev_get_drvdata(&bt->adapter->dev); in dvb_bt8xx_task()
47 dprintk("%d\n", card->bt->finished_block); in dvb_bt8xx_task()
49 while (card->bt->last_block != card->bt->finished_block) { in dvb_bt8xx_task()
50 (card->bt->TS_Size ? dvb_dmx_swfilter_204 : dvb_dmx_swfilter) in dvb_bt8xx_task()
52 &card->bt->buf_cpu[card->bt->last_block * in dvb_bt8xx_task()
53 card->bt->block_bytes], in dvb_bt8xx_task()
54 card->bt->block_bytes); in dvb_bt8xx_task()
55 card->bt->last_block = (card->bt->last_block + 1) % in dvb_bt8xx_task()
56 card->bt->block_count; in dvb_bt8xx_task()
[all …]
/drivers/media/v4l2-core/
Dv4l2-dv-timings.c145 const struct v4l2_bt_timings *bt = &t->bt; in v4l2_valid_dv_timings() local
146 const struct v4l2_bt_timings_cap *cap = &dvcap->bt; in v4l2_valid_dv_timings()
149 u32 max_hor = 3 * bt->width; in v4l2_valid_dv_timings()
154 bt->height < cap->min_height || in v4l2_valid_dv_timings()
155 bt->height > cap->max_height || in v4l2_valid_dv_timings()
156 bt->width < cap->min_width || in v4l2_valid_dv_timings()
157 bt->width > cap->max_width || in v4l2_valid_dv_timings()
158 bt->pixelclock < cap->min_pixelclock || in v4l2_valid_dv_timings()
159 bt->pixelclock > cap->max_pixelclock || in v4l2_valid_dv_timings()
161 cap->standards && bt->standards && in v4l2_valid_dv_timings()
[all …]
/drivers/net/can/dev/
Dbittiming.c14 static int can_fixup_bittiming(const struct net_device *dev, struct can_bittiming *bt, in can_fixup_bittiming() argument
21 tseg1 = bt->prop_seg + bt->phase_seg1; in can_fixup_bittiming()
22 if (!bt->sjw) in can_fixup_bittiming()
23 bt->sjw = 1; in can_fixup_bittiming()
24 if (bt->sjw > btc->sjw_max || in can_fixup_bittiming()
26 bt->phase_seg2 < btc->tseg2_min || bt->phase_seg2 > btc->tseg2_max) in can_fixup_bittiming()
29 brp64 = (u64)priv->clock.freq * (u64)bt->tq; in can_fixup_bittiming()
36 bt->brp = (u32)brp64; in can_fixup_bittiming()
38 if (bt->brp < btc->brp_min || bt->brp > btc->brp_max) in can_fixup_bittiming()
41 alltseg = bt->prop_seg + bt->phase_seg1 + bt->phase_seg2 + 1; in can_fixup_bittiming()
[all …]
Dcalc_bittiming.c65 int can_calc_bittiming(const struct net_device *dev, struct can_bittiming *bt, in can_calc_bittiming() argument
81 if (bt->sample_point) { in can_calc_bittiming()
82 sample_point_nominal = bt->sample_point; in can_calc_bittiming()
84 if (bt->bitrate > 800 * KILO /* BPS */) in can_calc_bittiming()
86 else if (bt->bitrate > 500 * KILO /* BPS */) in can_calc_bittiming()
98 brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2; in can_calc_bittiming()
106 bitrate_error = abs(bt->bitrate - bitrate); in can_calc_bittiming()
133 do_div(v64, bt->bitrate); in can_calc_bittiming()
146 bt->sample_point = can_update_sample_point(btc, sample_point_nominal, in can_calc_bittiming()
152 bt->tq = (u32)v64; in can_calc_bittiming()
[all …]
/drivers/media/i2c/
Dths8200.c214 static void ths8200_setup(struct v4l2_subdev *sd, struct v4l2_bt_timings *bt) in ths8200_setup() argument
217 uint16_t line_start_active_video = (bt->vsync + bt->vbackporch); in ths8200_setup()
218 uint16_t line_start_front_porch = (vtotal(bt) - bt->vfrontporch); in ths8200_setup()
225 ths8200_write(sd, THS8200_DTG1_SPEC_A, bt->hsync); in ths8200_setup()
226 ths8200_write(sd, THS8200_DTG1_SPEC_B, bt->hfrontporch); in ths8200_setup()
229 if (!bt->interlaced) in ths8200_setup()
236 (bt->hbackporch + bt->hsync) & 0xff); in ths8200_setup()
244 ((bt->hbackporch + bt->hsync) & 0x100) >> 1); in ths8200_setup()
247 ths8200_write(sd, THS8200_DTG1_SPEC_K_LSB, (bt->hfrontporch) & 0xff); in ths8200_setup()
249 ((bt->hfrontporch) & 0x700) >> 8); in ths8200_setup()
[all …]
Dths7303.c38 struct v4l2_bt_timings bt; member
145 state->bt.pixelclock = 0; in ths7303_s_std_output()
170 if (state->bt.pixelclock > 120000000) in ths7303_config()
172 else if (state->bt.pixelclock > 70000000) in ths7303_config()
174 else if (state->bt.pixelclock > 20000000) in ths7303_config()
204 state->bt = dv_timings->bt; in ths7303_s_dv_timings()
287 if (state->bt.pixelclock) { in ths7303_log_status()
288 struct v4l2_bt_timings *bt = &state->bt; in ths7303_log_status() local
291 frame_width = V4L2_DV_BT_FRAME_WIDTH(bt); in ths7303_log_status()
292 frame_height = V4L2_DV_BT_FRAME_HEIGHT(bt); in ths7303_log_status()
[all …]
Dtda1997x.c687 if (state->timings.bt.height <= 576) in tda1997x_configure_csc()
693 if (state->timings.bt.height <= 576) in tda1997x_configure_csc()
746 const struct v4l2_bt_timings *bt = &state->timings.bt; in tda1997x_configure_vhref() local
755 href_start = bt->hbackporch + bt->hsync + 1; in tda1997x_configure_vhref()
756 href_end = href_start + bt->width; in tda1997x_configure_vhref()
757 vref_f1_start = bt->height + bt->vbackporch + bt->vsync + in tda1997x_configure_vhref()
758 bt->il_vbackporch + bt->il_vsync + in tda1997x_configure_vhref()
759 bt->il_vfrontporch; in tda1997x_configure_vhref()
760 vref_f1_width = bt->vbackporch + bt->vsync + bt->vfrontporch; in tda1997x_configure_vhref()
765 if (bt->interlaced) { in tda1997x_configure_vhref()
[all …]
Dtvp7002.c553 const struct v4l2_bt_timings *bt = &dv_timings->bt; in tvp7002_s_dv_timings() local
559 const struct v4l2_bt_timings *t = &tvp7002_timings[i].timings.bt; in tvp7002_s_dv_timings()
561 if (!memcmp(bt, t, &bt->standards - &bt->width)) { in tvp7002_s_dv_timings()
749 const struct v4l2_bt_timings *bt; in tvp7002_log_status() local
755 bt = &device->current_timings->timings.bt; in tvp7002_log_status()
756 v4l2_info(sd, "Selected DV Timings: %ux%u\n", bt->width, bt->height); in tvp7002_log_status()
760 bt = &tvp7002_timings[detected].timings.bt; in tvp7002_log_status()
762 bt->width, bt->height); in tvp7002_log_status()
829 fmt->format.width = tvp7002->current_timings->timings.bt.width; in tvp7002_get_pad_format()
830 fmt->format.height = tvp7002->current_timings->timings.bt.height; in tvp7002_get_pad_format()
Dadv7842.c153 for (i = 0; adv7842_timings_exceptions[i].bt.width; i++) in adv7842_check_dv_timings()
972 for (i = 0; predef_vid_timings[i].timings.bt.width; i++) { in find_and_set_predefined_video_timings()
1039 const struct v4l2_bt_timings *bt) in configure_custom_video_timings() argument
1043 u32 width = htotal(bt); in configure_custom_video_timings()
1044 u32 height = vtotal(bt); in configure_custom_video_timings()
1045 u16 cp_start_sav = bt->hsync + bt->hbackporch - 4; in configure_custom_video_timings()
1046 u16 cp_start_eav = width - bt->hfrontporch; in configure_custom_video_timings()
1047 u16 cp_start_vbi = height - bt->vfrontporch + 1; in configure_custom_video_timings()
1048 u16 cp_end_vbi = bt->vsync + bt->vbackporch + 1; in configure_custom_video_timings()
1049 u16 ch1_fr_ll = (((u32)bt->pixelclock / 100) > 0) ? in configure_custom_video_timings()
[all …]
Dadv7604.c231 for (i = 0; adv76xx_timings_exceptions[i].bt.width; i++) in adv76xx_check_dv_timings()
932 for (i = 0; predef_vid_timings[i].timings.bt.width; i++) { in find_and_set_predefined_video_timings()
994 const struct v4l2_bt_timings *bt) in configure_custom_video_timings() argument
997 u32 width = htotal(bt); in configure_custom_video_timings()
998 u32 height = vtotal(bt); in configure_custom_video_timings()
999 u16 cp_start_sav = bt->hsync + bt->hbackporch - 4; in configure_custom_video_timings()
1000 u16 cp_start_eav = width - bt->hfrontporch; in configure_custom_video_timings()
1001 u16 cp_start_vbi = height - bt->vfrontporch; in configure_custom_video_timings()
1002 u16 cp_end_vbi = bt->vsync + bt->vbackporch; in configure_custom_video_timings()
1003 u16 ch1_fr_ll = (((u32)bt->pixelclock / 100) > 0) ? in configure_custom_video_timings()
[all …]
/drivers/video/fbdev/
Dtcx.c111 struct bt_regs __iomem *bt; member
175 struct bt_regs __iomem *bt = par->bt; in tcx_setcolreg() local
187 sbus_writel(regno << 24, &bt->addr); in tcx_setcolreg()
188 sbus_writel(red << 24, &bt->color_map); in tcx_setcolreg()
189 sbus_writel(green << 24, &bt->color_map); in tcx_setcolreg()
190 sbus_writel(blue << 24, &bt->color_map); in tcx_setcolreg()
355 if (par->bt) in tcx_unmap_regs()
357 par->bt, sizeof(struct bt_regs)); in tcx_unmap_regs()
398 par->bt = of_ioremap(&op->resource[8], 0, in tcx_probe()
403 !par->bt || !info->screen_base) in tcx_probe()
[all …]
Dcg6.c257 struct bt_regs __iomem *bt; member
489 struct bt_regs __iomem *bt = par->bt; in cg6_setcolreg() local
501 sbus_writel((u32)regno << 24, &bt->addr); in cg6_setcolreg()
502 sbus_writel((u32)red << 24, &bt->color_map); in cg6_setcolreg()
503 sbus_writel((u32)green << 24, &bt->color_map); in cg6_setcolreg()
504 sbus_writel((u32)blue << 24, &bt->color_map); in cg6_setcolreg()
655 struct bt_regs __iomem *bt = par->bt; in cg6_bt_init() local
657 sbus_writel(0x04 << 24, &bt->addr); /* color planes */ in cg6_bt_init()
658 sbus_writel(0xff << 24, &bt->control); in cg6_bt_init()
659 sbus_writel(0x05 << 24, &bt->addr); in cg6_bt_init()
[all …]
/drivers/media/i2c/adv748x/
Dadv748x-hdmi.c96 fmt->field = hdmi->timings.bt.interlaced ? in adv748x_hdmi_fill_format()
102 fmt->width = hdmi->timings.bt.width; in adv748x_hdmi_fill_format()
103 fmt->height = hdmi->timings.bt.height; in adv748x_hdmi_fill_format()
245 timings->bt.interlaced ? in adv748x_hdmi_s_dv_timings()
277 struct v4l2_bt_timings *bt = &timings->bt; in adv748x_hdmi_query_dv_timings() local
295 bt->pixelclock = pixelclock; in adv748x_hdmi_query_dv_timings()
296 bt->interlaced = hdmi_read(state, ADV748X_HDMI_F1H1) & in adv748x_hdmi_query_dv_timings()
299 bt->width = hdmi_read16(state, ADV748X_HDMI_LW1, in adv748x_hdmi_query_dv_timings()
301 bt->height = hdmi_read16(state, ADV748X_HDMI_F0H1, in adv748x_hdmi_query_dv_timings()
303 bt->hfrontporch = hdmi_read16(state, ADV748X_HDMI_HFRONT_PORCH, in adv748x_hdmi_query_dv_timings()
[all …]
/drivers/platform/x86/
Dacerhdf.c591 const struct bios_settings *bt = NULL; in acerhdf_check_hardware() local
609 for (bt = bios_tbl; bt->vendor[0]; bt++) { in acerhdf_check_hardware()
610 pr_info("%-13s | %-17s | %-10s\n", bt->vendor, in acerhdf_check_hardware()
611 bt->product, bt->version); in acerhdf_check_hardware()
634 for (bt = bios_tbl; bt->vendor[0]; bt++) { in acerhdf_check_hardware()
639 if (strstarts(vendor, bt->vendor) && in acerhdf_check_hardware()
640 strstarts(product, bt->product) && in acerhdf_check_hardware()
641 strstarts(version, bt->version)) { in acerhdf_check_hardware()
654 ctrl_cfg.fanreg = bt->fanreg; in acerhdf_check_hardware()
655 ctrl_cfg.tempreg = bt->tempreg; in acerhdf_check_hardware()
[all …]
/drivers/net/wireless/realtek/rtw89/
Dcoex.c618 struct rtw89_btc_bt_info *bt = &btc->cx.bt; in _reset_btc_var() local
619 struct rtw89_btc_bt_link_info *bt_linfo = &bt->link_info; in _reset_btc_var()
628 memset(bt, 0, sizeof(*bt)); in _reset_btc_var()
671 struct rtw89_btc_bt_info *bt = &cx->bt; in _chk_btc_err() local
768 bt->enable.now) || (!dm->cnt_dm[BTC_DCNT_BTCNT_FREEZE] && in _chk_btc_err()
769 !bt->enable.now)) in _chk_btc_err()
789 struct rtw89_btc_bt_info *bt = &btc->cx.bt; in _update_bt_report() local
790 struct rtw89_btc_bt_link_info *bt_linfo = &bt->link_info; in _update_bt_report()
808 bt->ver_info.fw = le32_to_cpu(pver->fw_ver); in _update_bt_report()
809 bt->ver_info.fw_coex = le32_get_bits(pver->coex_ver, GENMASK(7, 0)); in _update_bt_report()
[all …]
/drivers/power/supply/
Dtwl4030_madc_battery.c55 static int twl4030_madc_bat_get_charging_status(struct twl4030_madc_battery *bt) in twl4030_madc_bat_get_charging_status() argument
57 return (madc_read(bt->channel_ichg) > 0) ? 1 : 0; in twl4030_madc_bat_get_charging_status()
60 static int twl4030_madc_bat_get_voltage(struct twl4030_madc_battery *bt) in twl4030_madc_bat_get_voltage() argument
62 return madc_read(bt->channel_vbat); in twl4030_madc_bat_get_voltage()
65 static int twl4030_madc_bat_get_current(struct twl4030_madc_battery *bt) in twl4030_madc_bat_get_current() argument
67 return madc_read(bt->channel_ichg) * 1000; in twl4030_madc_bat_get_current()
70 static int twl4030_madc_bat_get_temp(struct twl4030_madc_battery *bt) in twl4030_madc_bat_get_temp() argument
72 return madc_read(bt->channel_temp) * 10; in twl4030_madc_bat_get_temp()
/drivers/media/pci/cobalt/
Dcobalt-v4l2.c144 struct v4l2_bt_timings *bt = &s->timings.bt; in cobalt_enable_output() local
152 u64 clk = bt->pixelclock; in cobalt_enable_output()
154 if (bt->flags & V4L2_DV_FL_REDUCED_FPS) in cobalt_enable_output()
165 sd_fmt.format.width = bt->width; in cobalt_enable_output()
166 sd_fmt.format.height = bt->height; in cobalt_enable_output()
181 iowrite32(bt->hsync, &vo->sync_generator_h_sync_length); in cobalt_enable_output()
182 iowrite32(bt->hbackporch, &vo->sync_generator_h_backporch_length); in cobalt_enable_output()
183 iowrite32(bt->width, &vo->sync_generator_h_active_length); in cobalt_enable_output()
184 iowrite32(bt->hfrontporch, &vo->sync_generator_h_frontporch_length); in cobalt_enable_output()
185 iowrite32(bt->vsync, &vo->sync_generator_v_sync_length); in cobalt_enable_output()
[all …]
/drivers/media/platform/ti/davinci/
Dvpif_display.c464 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()
959 std_info->eav2sav = V4L2_DV_BT_BLANKING_WIDTH(bt) - 8; in vpif_s_dv_timings()
[all …]
Dvpif_capture.c1157 struct v4l2_bt_timings *bt = &vid_ch->dv_timings.bt; in vpif_s_dv_timings() local
1187 if (!(timings->bt.width && timings->bt.height && in vpif_s_dv_timings()
1188 (timings->bt.hbackporch || in vpif_s_dv_timings()
1189 timings->bt.hfrontporch || in vpif_s_dv_timings()
1190 timings->bt.hsync) && in vpif_s_dv_timings()
1191 timings->bt.vfrontporch && in vpif_s_dv_timings()
1192 (timings->bt.vbackporch || in vpif_s_dv_timings()
1193 timings->bt.vsync))) { in vpif_s_dv_timings()
1202 std_info->eav2sav = V4L2_DV_BT_BLANKING_WIDTH(bt) - 8; in vpif_s_dv_timings()
1203 std_info->sav2eav = bt->width; in vpif_s_dv_timings()
[all …]
/drivers/media/test-drivers/vivid/
Dvivid-vid-cap.c383 struct v4l2_bt_timings *bt = &dev->dv_timings_cap[dev->input].bt; in vivid_update_format_cap() local
413 dev->src_rect.width = bt->width; in vivid_update_format_cap()
414 dev->src_rect.height = bt->height; in vivid_update_format_cap()
415 size = V4L2_DV_BT_FRAME_WIDTH(bt) * V4L2_DV_BT_FRAME_HEIGHT(bt); in vivid_update_format_cap()
416 if (dev->reduced_fps && can_reduce_fps(bt)) { in vivid_update_format_cap()
417 pixelclock = div_u64(bt->pixelclock * 1000, 1001); in vivid_update_format_cap()
418 bt->flags |= V4L2_DV_FL_REDUCED_FPS; in vivid_update_format_cap()
420 pixelclock = bt->pixelclock; in vivid_update_format_cap()
421 bt->flags &= ~V4L2_DV_FL_REDUCED_FPS; in vivid_update_format_cap()
426 if (bt->interlaced) in vivid_update_format_cap()
[all …]
/drivers/net/can/softing/
Dsofting_fw.c426 const struct can_bittiming *bt; in softing_startstop() local
493 bt = &priv->can.bittiming; in softing_startstop()
494 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
495 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop()
496 iowrite16(bt->phase_seg1 + bt->prop_seg, in softing_startstop()
498 iowrite16(bt->phase_seg2, &card->dpram[DPRAM_FCT_PARAM + 8]); in softing_startstop()
533 bt = &priv->can.bittiming; in softing_startstop()
534 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
535 iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]); in softing_startstop()
536 iowrite16(bt->phase_seg1 + bt->prop_seg, in softing_startstop()
[all …]
/drivers/staging/fbtft/
Dfb_ili9325.c25 static unsigned int bt = 6; /* VGL=Vci*4 , VGH=Vci*4 */ variable
26 module_param(bt, uint, 0000);
27 MODULE_PARM_DESC(bt, "Sets the factor used in the step-up circuits");
87 bt &= 0x07; in init_display()
116 BIT(12) | (bt << 8) | BIT(7) | BIT(4)); in init_display()
/drivers/media/usb/hdpvr/
Dhdpvr-video.c658 dev->width = hdpvr_dv_timings[i].bt.width; in vidioc_s_dv_timings()
659 dev->height = hdpvr_dv_timings[i].bt.height; in vidioc_s_dv_timings()
696 const struct v4l2_bt_timings *bt = &hdpvr_dv_timings[i].bt; in vidioc_query_dv_timings() local
701 hsize = V4L2_DV_BT_FRAME_WIDTH(bt); in vidioc_query_dv_timings()
702 vsize = V4L2_DV_BT_FRAME_HEIGHT(bt); in vidioc_query_dv_timings()
703 fps = (unsigned)bt->pixelclock / (hsize * vsize); in vidioc_query_dv_timings()
704 if (bt->width != vid_info.width || in vidioc_query_dv_timings()
705 bt->height != vid_info.height || in vidioc_query_dv_timings()
706 bt->interlaced != interlaced || in vidioc_query_dv_timings()
744 cap->bt.min_width = 720; in vidioc_dv_timings_cap()
[all …]

12345