Home
last modified time | relevance | path

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

12345678910>>...20

/linux-6.12.1/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 …]
/linux-6.12.1/sound/soc/mediatek/common/
Dmtk-btcvsd.c193 static void mtk_btcvsd_snd_irq_enable(struct mtk_btcvsd_snd *bt) in mtk_btcvsd_snd_irq_enable() argument
195 regmap_update_bits(bt->infra, bt->infra_misc_offset, in mtk_btcvsd_snd_irq_enable()
196 bt->conn_bt_cvsd_mask, 0); in mtk_btcvsd_snd_irq_enable()
199 static void mtk_btcvsd_snd_irq_disable(struct mtk_btcvsd_snd *bt) in mtk_btcvsd_snd_irq_disable() argument
201 regmap_update_bits(bt->infra, bt->infra_misc_offset, in mtk_btcvsd_snd_irq_disable()
202 bt->conn_bt_cvsd_mask, bt->conn_bt_cvsd_mask); in mtk_btcvsd_snd_irq_disable()
205 static void mtk_btcvsd_snd_set_state(struct mtk_btcvsd_snd *bt, in mtk_btcvsd_snd_set_state() argument
209 dev_dbg(bt->dev, "%s(), stream %d, state %d, tx->state %d, rx->state %d, irq_disabled %d\n", in mtk_btcvsd_snd_set_state()
212 bt->tx->state, bt->rx->state, bt->irq_disabled); in mtk_btcvsd_snd_set_state()
216 if (bt->tx->state == BT_SCO_STATE_IDLE && in mtk_btcvsd_snd_set_state()
[all …]
/linux-6.12.1/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_work(bt, t, bh_work); in dvb_bt8xx_work() local
45 struct dvb_bt8xx_card *card = dev_get_drvdata(&bt->adapter->dev); in dvb_bt8xx_work()
47 dprintk("%d\n", card->bt->finished_block); in dvb_bt8xx_work()
49 while (card->bt->last_block != card->bt->finished_block) { in dvb_bt8xx_work()
50 (card->bt->TS_Size ? dvb_dmx_swfilter_204 : dvb_dmx_swfilter) in dvb_bt8xx_work()
52 &card->bt->buf_cpu[card->bt->last_block * in dvb_bt8xx_work()
53 card->bt->block_bytes], in dvb_bt8xx_work()
54 card->bt->block_bytes); in dvb_bt8xx_work()
55 card->bt->last_block = (card->bt->last_block + 1) % in dvb_bt8xx_work()
56 card->bt->block_count; in dvb_bt8xx_work()
[all …]
/linux-6.12.1/drivers/net/can/dev/
Dbittiming.c9 void can_sjw_set_default(struct can_bittiming *bt) in can_sjw_set_default() argument
11 if (bt->sjw) in can_sjw_set_default()
15 bt->sjw = max(1U, min(bt->phase_seg1, bt->phase_seg2 / 2)); in can_sjw_set_default()
18 int can_sjw_check(const struct net_device *dev, const struct can_bittiming *bt, in can_sjw_check() argument
21 if (bt->sjw > btc->sjw_max) { in can_sjw_check()
23 bt->sjw, btc->sjw_max); in can_sjw_check()
27 if (bt->sjw > bt->phase_seg1) { in can_sjw_check()
30 bt->sjw, bt->phase_seg1); in can_sjw_check()
34 if (bt->sjw > bt->phase_seg2) { in can_sjw_check()
37 bt->sjw, bt->phase_seg2); in can_sjw_check()
[all …]
Dcalc_bittiming.c65 int can_calc_bittiming(const struct net_device *dev, struct can_bittiming *bt, in can_calc_bittiming() argument
82 if (bt->sample_point) { in can_calc_bittiming()
83 sample_point_nominal = bt->sample_point; in can_calc_bittiming()
85 if (bt->bitrate > 800 * KILO /* BPS */) in can_calc_bittiming()
87 else if (bt->bitrate > 500 * KILO /* BPS */) in can_calc_bittiming()
99 brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2; in can_calc_bittiming()
107 bitrate_error = abs(bt->bitrate - bitrate); in can_calc_bittiming()
134 do_div(v64, bt->bitrate); in can_calc_bittiming()
148 bt->sample_point = can_update_sample_point(btc, sample_point_nominal, in can_calc_bittiming()
154 bt->tq = (u32)v64; in can_calc_bittiming()
[all …]
Dnetlink.c39 static int can_validate_bittiming(const struct can_bittiming *bt, in can_validate_bittiming() argument
43 if (bt->sample_point >= 1000) { in can_validate_bittiming()
109 struct can_bittiming bt; in can_validate() local
111 memcpy(&bt, nla_data(data[IFLA_CAN_BITTIMING]), sizeof(bt)); in can_validate()
112 err = can_validate_bittiming(&bt, extack); in can_validate()
128 struct can_bittiming bt; in can_validate() local
130 memcpy(&bt, nla_data(data[IFLA_CAN_DATA_BITTIMING]), sizeof(bt)); in can_validate()
131 err = can_validate_bittiming(&bt, extack); in can_validate()
246 struct can_bittiming bt; in can_changelink() local
261 memcpy(&bt, nla_data(data[IFLA_CAN_BITTIMING]), sizeof(bt)); in can_changelink()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/kernel/trace/
Dblktrace.c69 static void trace_note(struct blk_trace *bt, pid_t pid, int action, in trace_note() argument
92 if (!bt->rchan) in trace_note()
95 t = relay_reserve(bt->rchan, sizeof(*t) + len + cgid_len); in trace_note()
100 t->device = bt->dev; in trace_note()
121 struct blk_trace *bt; in trace_note_tsk() local
125 list_for_each_entry(bt, &running_trace_list, running_list) { in trace_note_tsk()
126 trace_note(bt, tsk->pid, BLK_TN_PROCESS, tsk->comm, in trace_note_tsk()
132 static void trace_note_time(struct blk_trace *bt) in trace_note_time() argument
144 trace_note(bt, 0, BLK_TN_TIMESTAMP, words, sizeof(words), 0); in trace_note_time()
148 void __blk_trace_note_message(struct blk_trace *bt, in __blk_trace_note_message() argument
[all …]
/linux-6.12.1/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()
286 if (state->bt.pixelclock) { in ths7303_log_status()
287 struct v4l2_bt_timings *bt = &state->bt; in ths7303_log_status() local
290 frame_width = V4L2_DV_BT_FRAME_WIDTH(bt); in ths7303_log_status()
291 frame_height = V4L2_DV_BT_FRAME_HEIGHT(bt); in ths7303_log_status()
[all …]
/linux-6.12.1/arch/powerpc/boot/
Dmktree.c48 boot_block_t bt; in main() local
62 bt.bb_magic = htonl(0x0052504F); in main()
65 bt.bb_dest = htonl(strtoul(argv[3], NULL, 0)); in main()
66 bt.bb_entry_point = htonl(strtoul(argv[4], NULL, 0)); in main()
72 bt.bb_num_512blocks = htonl(nblks); in main()
73 bt.bb_debug_flag = 0; in main()
75 bt.bb_checksum = 0; in main()
79 bt.reserved[0] = 0; in main()
80 bt.reserved[1] = 0; in main()
93 cp = (void *)&bt; in main()
[all …]
/linux-6.12.1/drivers/media/pci/mgb4/
Dmgb4_io.h46 struct v4l2_bt_timings *bt = &timings->bt; in pixel_size() local
48 u32 height = bt->height + bt->vfrontporch + bt->vsync + bt->vbackporch; in pixel_size()
49 u32 width = bt->width + bt->hfrontporch + bt->hsync + bt->hbackporch; in pixel_size()
Dmgb4_vin.c66 .bt = {
157 timings->bt.width = resolution >> 16; in get_timings()
158 timings->bt.height = resolution & 0xFFFF; in get_timings()
160 timings->bt.polarities |= V4L2_DV_HSYNC_POS_POL; in get_timings()
162 timings->bt.polarities |= V4L2_DV_VSYNC_POS_POL; in get_timings()
163 timings->bt.pixelclock = pclk * 1000; in get_timings()
164 timings->bt.hsync = (signal & 0x00FF0000) >> 16; in get_timings()
165 timings->bt.vsync = (signal2 & 0x00FF0000) >> 16; in get_timings()
166 timings->bt.hbackporch = (signal & 0x0000FF00) >> 8; in get_timings()
167 timings->bt.hfrontporch = signal & 0x000000FF; in get_timings()
[all …]
/linux-6.12.1/include/linux/can/
Dbittiming.h118 int can_calc_bittiming(const struct net_device *dev, struct can_bittiming *bt,
126 can_calc_bittiming(const struct net_device *dev, struct can_bittiming *bt, in can_calc_bittiming() argument
141 void can_sjw_set_default(struct can_bittiming *bt);
143 int can_sjw_check(const struct net_device *dev, const struct can_bittiming *bt,
146 int can_get_bittiming(const struct net_device *dev, struct can_bittiming *bt,
160 static inline unsigned int can_bit_time(const struct can_bittiming *bt) in can_bit_time() argument
162 return CAN_SYNC_SEG + bt->prop_seg + bt->phase_seg1 + bt->phase_seg2; in can_bit_time()
/linux-6.12.1/block/
Dblk-mq-tag.c107 struct sbitmap_queue *bt) in __blk_mq_get_tag() argument
110 !hctx_may_queue(data->hctx, bt)) in __blk_mq_get_tag()
114 return sbitmap_queue_get_shallow(bt, data->shallow_depth); in __blk_mq_get_tag()
116 return __sbitmap_queue_get(bt); in __blk_mq_get_tag()
123 struct sbitmap_queue *bt = &tags->bitmap_tags; in blk_mq_get_tags() local
129 ret = __sbitmap_queue_get_batch(bt, nr_tags, offset); in blk_mq_get_tags()
137 struct sbitmap_queue *bt; in blk_mq_get_tag() local
148 bt = &tags->breserved_tags; in blk_mq_get_tag()
151 bt = &tags->bitmap_tags; in blk_mq_get_tag()
155 tag = __blk_mq_get_tag(data, bt); in blk_mq_get_tag()
[all …]
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/
Dbench-lookups.c214 struct bench_tests *bt = &bench_results[i]; in server_fn() local
233 bench_delete(lsk, &bt->add_key, &bt->delete_last_key, in server_fn()
236 nr_keys[i], &bt->add_key); in server_fn()
238 nr_keys[i], &bt->delete_last_key); in server_fn()
240 bench_delete(lsk, &bt->add_key, &bt->delete_rand_key, in server_fn()
243 nr_keys[i], &bt->delete_rand_key); in server_fn()
245 bench_delete(lsk, &bt->add_key, &bt->delete_async, in server_fn()
247 test_print_stats("Delete: async", nr_keys[i], &bt->delete_async); in server_fn()
292 static void bench_connect_client(size_t port_off, struct bench_tests *bt, in bench_connect_client() argument
300 con = &bt->connect_rand_key; in bench_connect_client()
[all …]
/linux-6.12.1/include/linux/
Dblktrace_api.h33 __printf(3, 4) void __blk_trace_note_message(struct blk_trace *bt,
51 struct blk_trace *bt; \
54 bt = rcu_dereference((q)->blk_trace); \
55 if (unlikely(bt)) \
56 __blk_trace_note_message(bt, css, fmt, ##__VA_ARGS__);\
65 struct blk_trace *bt; in blk_trace_note_message_enabled() local
69 bt = rcu_dereference(q->blk_trace); in blk_trace_note_message_enabled()
70 ret = bt && (bt->act_mask & BLK_TC_NOTIFY); in blk_trace_note_message_enabled()
/linux-6.12.1/drivers/platform/x86/
Dacerhdf.c537 const struct bios_settings *bt = NULL; in acerhdf_check_hardware() local
555 for (bt = bios_tbl; bt->vendor[0]; bt++) { in acerhdf_check_hardware()
556 pr_info("%-13s | %-17s | %-10s\n", bt->vendor, in acerhdf_check_hardware()
557 bt->product, bt->version); in acerhdf_check_hardware()
580 for (bt = bios_tbl; bt->vendor[0]; bt++) { in acerhdf_check_hardware()
585 if (strstarts(vendor, bt->vendor) && in acerhdf_check_hardware()
586 strstarts(product, bt->product) && in acerhdf_check_hardware()
587 strstarts(version, bt->version)) { in acerhdf_check_hardware()
600 ctrl_cfg.fanreg = bt->fanreg; in acerhdf_check_hardware()
601 ctrl_cfg.tempreg = bt->tempreg; in acerhdf_check_hardware()
[all …]
/linux-6.12.1/drivers/video/fbdev/
Dtcx.c105 struct bt_regs __iomem *bt; member
169 struct bt_regs __iomem *bt = par->bt; in tcx_setcolreg() local
181 sbus_writel(regno << 24, &bt->addr); in tcx_setcolreg()
182 sbus_writel(red << 24, &bt->color_map); in tcx_setcolreg()
183 sbus_writel(green << 24, &bt->color_map); in tcx_setcolreg()
184 sbus_writel(blue << 24, &bt->color_map); in tcx_setcolreg()
348 if (par->bt) in tcx_unmap_regs()
350 par->bt, sizeof(struct bt_regs)); in tcx_unmap_regs()
390 par->bt = of_ioremap(&op->resource[8], 0, in tcx_probe()
395 !par->bt || !info->screen_base) in tcx_probe()
[all …]
/linux-6.12.1/arch/sh/lib/
Dstrlen.S17 bt/s 1f
28 bt 8f
33 bt 8f
38 bt 8f
57 bt/s 8f
62 bt/s 8f
67 bt 8f
/linux-6.12.1/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
305 bt->pixelclock = pixelclock; in adv748x_hdmi_query_dv_timings()
306 bt->interlaced = hdmi_read(state, ADV748X_HDMI_F1H1) & in adv748x_hdmi_query_dv_timings()
309 bt->width = hdmi_read16(state, ADV748X_HDMI_LW1, in adv748x_hdmi_query_dv_timings()
311 bt->height = hdmi_read16(state, ADV748X_HDMI_F0H1, in adv748x_hdmi_query_dv_timings()
313 bt->hfrontporch = hdmi_read16(state, ADV748X_HDMI_HFRONT_PORCH, in adv748x_hdmi_query_dv_timings()
[all …]
/linux-6.12.1/drivers/net/can/esd/
Desdacc.c361 const struct can_bittiming *bt = &priv->can.bittiming; in acc_set_bittiming() local
369 bt->brp, bt->prop_seg, in acc_set_bittiming()
370 bt->phase_seg1, bt->phase_seg2, bt->sjw); in acc_set_bittiming()
372 brp = FIELD_PREP(ACC_REG_BRP_FD_MASK_BRP, bt->brp - 1); in acc_set_bittiming()
374 btr = FIELD_PREP(ACC_REG_BTR_FD_MASK_TSEG1, bt->phase_seg1 + bt->prop_seg - 1); in acc_set_bittiming()
375 btr |= FIELD_PREP(ACC_REG_BTR_FD_MASK_TSEG2, bt->phase_seg2 - 1); in acc_set_bittiming()
376 btr |= FIELD_PREP(ACC_REG_BTR_FD_MASK_SJW, bt->sjw - 1); in acc_set_bittiming()
386 bt->brp, bt->prop_seg, in acc_set_bittiming()
387 bt->phase_seg1, bt->phase_seg2, bt->sjw); in acc_set_bittiming()
389 brp = FIELD_PREP(ACC_REG_BRP_CL_MASK_BRP, bt->brp - 1); in acc_set_bittiming()
[all …]
/linux-6.12.1/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()
/linux-6.12.1/arch/csky/abiv2/
Dstrcmp.S22 bt 2f
31 bt 2f
38 bt 2f
45 bt 2f
52 bt 2f
59 bt 2f
66 bt 2f
73 bt 2f

12345678910>>...20