bt                 34 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	struct s3c2410_iobank_timing *bt;
bt                 38 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		bt = timings->bank[bank].io_2410;
bt                 39 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		if (!bt)
bt                 44 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		       print_ns(bt->tacs),
bt                 45 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		       print_ns(bt->tcos),
bt                 46 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		       print_ns(bt->tacc),
bt                 47 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		       print_ns(bt->tcoh),
bt                 48 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		       print_ns(bt->tcah));
bt                214 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 			     struct s3c2410_iobank_timing *bt)
bt                220 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	res  = bt->bankcon;
bt                230 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	ret  = calc_0124(bt->tacs, hclk, &res, S3C2410_BANKCON_Tacs_SHIFT);
bt                231 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	ret |= calc_0124(bt->tcos, hclk, &res, S3C2410_BANKCON_Tcos_SHIFT);
bt                232 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	ret |= calc_0124(bt->tcah, hclk, &res, S3C2410_BANKCON_Tcah_SHIFT);
bt                233 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	ret |= calc_0124(bt->tcoh, hclk, &res, S3C2410_BANKCON_Tcoh_SHIFT);
bt                238 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	ret |= calc_tacp(bt->tacp, hclk, &res);
bt                239 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	ret |= calc_tacc(bt->tacc, bt->nwait_en, hclk, &res);
bt                244 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	bt->bankcon = res;
bt                292 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 			      struct s3c2410_iobank_timing *bt)
bt                294 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	unsigned long bankcon = bt->bankcon;
bt                297 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	bt->tcah = get_0124(hclk, bankcon >> S3C2410_BANKCON_Tcah_SHIFT);
bt                298 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	bt->tcoh = get_0124(hclk, bankcon >> S3C2410_BANKCON_Tcoh_SHIFT);
bt                299 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	bt->tcos = get_0124(hclk, bankcon >> S3C2410_BANKCON_Tcos_SHIFT);
bt                300 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	bt->tacs = get_0124(hclk, bankcon >> S3C2410_BANKCON_Tacs_SHIFT);
bt                301 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	bt->tacc = get_tacc(hclk, bankcon >> S3C2410_BANKCON_Tacc_SHIFT);
bt                314 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	struct s3c2410_iobank_timing *bt = iob->io_2410;
bt                315 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	unsigned long bankcon = bt->bankcon;
bt                333 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		   print_ns(bt->tacs),
bt                334 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		   print_ns(bt->tcos),
bt                335 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		   print_ns(bt->tacc),
bt                336 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		   print_ns(bt->tcoh),
bt                337 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		   print_ns(bt->tcah));
bt                360 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	struct s3c2410_iobank_timing *bt;
bt                367 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		bt = iot->bank[bank].io_2410;
bt                369 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		if (!bt)
bt                372 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		bt->bankcon = bankcon;
bt                374 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		ret = s3c2410_calc_bank(cfg, bt);
bt                382 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 			       __func__, bank, bt->bankcon);
bt                402 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	struct s3c2410_iobank_timing *bt;
bt                408 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		bt = iot->bank[bank].io_2410;
bt                409 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		if (!bt)
bt                412 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		__raw_writel(bt->bankcon, bank_reg(bank));
bt                434 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 	struct s3c2410_iobank_timing *bt;
bt                452 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		bt = kzalloc(sizeof(*bt), GFP_KERNEL);
bt                453 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		if (!bt)
bt                461 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 				bt->nwait_en = 1;
bt                464 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		timings->bank[bank].io_2410 = bt;
bt                465 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		bt->bankcon = bankcon;
bt                467 arch/arm/mach-s3c24xx/iotiming-s3c2410.c 		s3c2410_iotiming_getbank(cfg, bt);
bt                 40 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	struct s3c2412_iobank_timing *bt;
bt                 44 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		bt = iot->bank[bank].io_2412;
bt                 45 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		if (!bt)
bt                 50 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		       print_ns(bt->idcy),
bt                 51 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		       print_ns(bt->wstrd),
bt                 52 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		       print_ns(bt->wstwr),
bt                 53 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		       print_ns(bt->wstoen),
bt                 54 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		       print_ns(bt->wstwen),
bt                 55 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		       print_ns(bt->wstbrd));
bt                 92 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 			     struct s3c2412_iobank_timing *bt)
bt                 97 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	bt->smbidcyr = calc_timing(bt->idcy, hclk, &err);
bt                 98 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	bt->smbwstrd = calc_timing(bt->wstrd, hclk, &err);
bt                 99 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	bt->smbwstwr = calc_timing(bt->wstwr, hclk, &err);
bt                100 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	bt->smbwstoen = calc_timing(bt->wstoen, hclk, &err);
bt                101 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	bt->smbwstwen = calc_timing(bt->wstwen, hclk, &err);
bt                102 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	bt->smbwstbrd = calc_timing(bt->wstbrd, hclk, &err);
bt                117 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	struct s3c2412_iobank_timing *bt = iob->io_2412;
bt                122 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		   print_ns(bt->idcy),
bt                123 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		   print_ns(bt->wstrd),
bt                124 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		   print_ns(bt->wstwr),
bt                125 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		   print_ns(bt->wstoen),
bt                126 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		   print_ns(bt->wstwen),
bt                127 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		   print_ns(bt->wstbrd));
bt                141 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	struct s3c2412_iobank_timing *bt;
bt                146 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		bt = iot->bank[bank].io_2412;
bt                147 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		if (!bt)
bt                150 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		ret = s3c2412_calc_bank(cfg, bt);
bt                174 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	struct s3c2412_iobank_timing *bt;
bt                181 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		bt = iot->bank[bank].io_2412;
bt                182 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		if (!bt)
bt                187 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		__raw_writel(bt->smbidcyr, regs + SMBIDCYR);
bt                188 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		__raw_writel(bt->smbwstrd, regs + SMBWSTRDR);
bt                189 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		__raw_writel(bt->smbwstwr, regs + SMBWSTWRR);
bt                190 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		__raw_writel(bt->smbwstoen, regs + SMBWSTOENR);
bt                191 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		__raw_writel(bt->smbwstwen, regs + SMBWSTWENR);
bt                192 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		__raw_writel(bt->smbwstbrd, regs + SMBWSTBRDR);
bt                202 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 				     struct s3c2412_iobank_timing *bt,
bt                208 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	bt->idcy = s3c2412_decode_timing(clk, __raw_readl(regs + SMBIDCYR));
bt                209 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	bt->wstrd = s3c2412_decode_timing(clk, __raw_readl(regs + SMBWSTRDR));
bt                210 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	bt->wstoen = s3c2412_decode_timing(clk, __raw_readl(regs + SMBWSTOENR));
bt                211 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	bt->wstwen = s3c2412_decode_timing(clk, __raw_readl(regs + SMBWSTWENR));
bt                212 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	bt->wstbrd = s3c2412_decode_timing(clk, __raw_readl(regs + SMBWSTBRDR));
bt                231 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 	struct s3c2412_iobank_timing *bt;
bt                241 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		bt = kzalloc(sizeof(*bt), GFP_KERNEL);
bt                242 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		if (!bt)
bt                245 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		timings->bank[bank].io_2412 = bt;
bt                246 arch/arm/mach-s3c24xx/iotiming-s3c2412.c 		s3c2412_iotiming_getbank(cfg, bt, bank);
bt                 35 arch/csky/abiv1/inc/abi/entry.h 	bt      1f
bt                 54 arch/csky/abiv1/inc/abi/entry.h 	bt	2f
bt                 90 arch/csky/abiv1/inc/abi/entry.h 	bt      1f
bt                114 arch/csky/abiv1/inc/abi/entry.h 	bt      2f
bt                197 arch/csky/abiv2/inc/abi/entry.h 	bt	1f
bt                 44 arch/ia64/oprofile/backtrace.c static __inline__ int next_frame(ia64_backtrace_t *bt)
bt                 51 arch/ia64/oprofile/backtrace.c 	if (in_ivt_code(bt->frame.ip))
bt                 62 arch/ia64/oprofile/backtrace.c 	if (bt->prev_pfs_loc && bt->regs && bt->frame.pfs_loc == bt->prev_pfs_loc)
bt                 63 arch/ia64/oprofile/backtrace.c 		bt->frame.pfs_loc = &bt->regs->ar_pfs;
bt                 64 arch/ia64/oprofile/backtrace.c 	bt->prev_pfs_loc = NULL;
bt                 66 arch/ia64/oprofile/backtrace.c 	return unw_unwind(&bt->frame) == 0;
bt                 72 arch/ia64/oprofile/backtrace.c 	ia64_backtrace_t *bt = vdata;
bt                 81 arch/ia64/oprofile/backtrace.c 	unw_init_frame_info(&bt->frame, current, sw);
bt                 85 arch/ia64/oprofile/backtrace.c 		unw_get_sp(&bt->frame, &sp);
bt                 86 arch/ia64/oprofile/backtrace.c 		if (sp >= (u_long)bt->regs)
bt                 88 arch/ia64/oprofile/backtrace.c 		if (!next_frame(bt))
bt                 93 arch/ia64/oprofile/backtrace.c 	while (bt->depth-- && next_frame(bt)) {
bt                 94 arch/ia64/oprofile/backtrace.c 		unw_get_ip(&bt->frame, &pc);
bt                 96 arch/ia64/oprofile/backtrace.c 		if (unw_is_intr_frame(&bt->frame)) {
bt                114 arch/ia64/oprofile/backtrace.c 	ia64_backtrace_t bt;
bt                125 arch/ia64/oprofile/backtrace.c 	bt.depth = depth;
bt                126 arch/ia64/oprofile/backtrace.c 	bt.regs = regs;
bt                127 arch/ia64/oprofile/backtrace.c 	bt.prev_pfs_loc = NULL;
bt                129 arch/ia64/oprofile/backtrace.c 	unw_init_running(do_ia64_backtrace, &bt);
bt                 48 arch/powerpc/boot/mktree.c 	boot_block_t	bt;
bt                 62 arch/powerpc/boot/mktree.c 	bt.bb_magic = htonl(0x0052504F);
bt                 65 arch/powerpc/boot/mktree.c 	bt.bb_dest = htonl(strtoul(argv[3], NULL, 0));
bt                 66 arch/powerpc/boot/mktree.c 	bt.bb_entry_point = htonl(strtoul(argv[4], NULL, 0));
bt                 72 arch/powerpc/boot/mktree.c 	bt.bb_num_512blocks = htonl(nblks);
bt                 73 arch/powerpc/boot/mktree.c 	bt.bb_debug_flag = 0;
bt                 75 arch/powerpc/boot/mktree.c 	bt.bb_checksum = 0;
bt                 79 arch/powerpc/boot/mktree.c 	bt.reserved[0] = 0;
bt                 80 arch/powerpc/boot/mktree.c 	bt.reserved[1] = 0;
bt                 93 arch/powerpc/boot/mktree.c 	cp = (void *)&bt;
bt                 94 arch/powerpc/boot/mktree.c 	for (i = 0; i < sizeof(bt) / sizeof(unsigned int); i++)
bt                119 arch/powerpc/boot/mktree.c 	if (write(out_fd, &bt, sizeof(bt)) != sizeof(bt)) {
bt                140 arch/powerpc/boot/mktree.c 	bt.bb_checksum = htonl(cksum);
bt                145 arch/powerpc/boot/mktree.c 	if (write(out_fd, &bt, sizeof(bt)) != sizeof(bt)) {
bt               1003 arch/powerpc/platforms/pseries/vio.c static ssize_t cmo_bus_##name##_show(struct bus_type *bt, char *buf)    \
bt               1012 arch/powerpc/platforms/pseries/vio.c cmo_##name##_##var##_show(struct bus_type *bt, char *buf)               \
bt               1027 arch/powerpc/platforms/pseries/vio.c static ssize_t cmo_high_show(struct bus_type *bt, char *buf)
bt               1032 arch/powerpc/platforms/pseries/vio.c static ssize_t cmo_high_store(struct bus_type *bt, const char *buf,
bt                221 arch/x86/entry/calling.h 	bt	\scratch_reg, THIS_CPU_user_pcid_flush_mask
bt                259 arch/x86/entry/calling.h 	bt	$PTI_USER_PGTABLE_BIT, \scratch_reg
bt                277 arch/x86/entry/calling.h 	bt	$PTI_USER_PGTABLE_BIT, \save_reg
bt                286 arch/x86/entry/calling.h 	bt	\scratch_reg, THIS_CPU_user_pcid_flush_mask
bt                214 arch/x86/include/asm/bitops.h 	asm volatile(__ASM_SIZE(bt) " %2,%1"
bt               1025 arch/x86/kvm/emulate.c FASTOP2W(bt);
bt               6320 block/bfq-iosched.c 				      struct sbitmap_queue *bt)
bt               6335 block/bfq-iosched.c 	bfqd->word_depths[0][0] = max((1U << bt->sb.shift) >> 1, 1U);
bt               6341 block/bfq-iosched.c 	bfqd->word_depths[0][1] = max(((1U << bt->sb.shift) * 3) >> 2, 1U);
bt               6351 block/bfq-iosched.c 	bfqd->word_depths[1][0] = max(((1U << bt->sb.shift) * 3) >> 4, 1U);
bt               6353 block/bfq-iosched.c 	bfqd->word_depths[1][1] = max(((1U << bt->sb.shift) * 6) >> 4, 1U);
bt                 72 block/blk-mq-tag.c 				  struct sbitmap_queue *bt)
bt                 84 block/blk-mq-tag.c 	if (bt->sb.depth == 1)
bt                 94 block/blk-mq-tag.c 	depth = max((bt->sb.depth + users - 1) / users, 4U);
bt                 99 block/blk-mq-tag.c 			    struct sbitmap_queue *bt)
bt                102 block/blk-mq-tag.c 	    !hctx_may_queue(data->hctx, bt))
bt                105 block/blk-mq-tag.c 		return __sbitmap_queue_get_shallow(bt, data->shallow_depth);
bt                107 block/blk-mq-tag.c 		return __sbitmap_queue_get(bt);
bt                113 block/blk-mq-tag.c 	struct sbitmap_queue *bt;
bt                124 block/blk-mq-tag.c 		bt = &tags->breserved_tags;
bt                127 block/blk-mq-tag.c 		bt = &tags->bitmap_tags;
bt                131 block/blk-mq-tag.c 	tag = __blk_mq_get_tag(data, bt);
bt                138 block/blk-mq-tag.c 	ws = bt_wait_ptr(bt, data->hctx);
bt                153 block/blk-mq-tag.c 		tag = __blk_mq_get_tag(data, bt);
bt                157 block/blk-mq-tag.c 		sbitmap_prepare_to_wait(bt, ws, &wait, TASK_UNINTERRUPTIBLE);
bt                159 block/blk-mq-tag.c 		tag = __blk_mq_get_tag(data, bt);
bt                163 block/blk-mq-tag.c 		bt_prev = bt;
bt                166 block/blk-mq-tag.c 		sbitmap_finish_wait(bt, ws, &wait);
bt                173 block/blk-mq-tag.c 			bt = &tags->breserved_tags;
bt                175 block/blk-mq-tag.c 			bt = &tags->bitmap_tags;
bt                182 block/blk-mq-tag.c 		if (bt != bt_prev)
bt                185 block/blk-mq-tag.c 		ws = bt_wait_ptr(bt, data->hctx);
bt                188 block/blk-mq-tag.c 	sbitmap_finish_wait(bt, ws, &wait);
bt                250 block/blk-mq-tag.c static void bt_for_each(struct blk_mq_hw_ctx *hctx, struct sbitmap_queue *bt,
bt                260 block/blk-mq-tag.c 	sbitmap_for_each_set(&bt->sb, bt_iter, &iter_data);
bt                304 block/blk-mq-tag.c static void bt_tags_for_each(struct blk_mq_tags *tags, struct sbitmap_queue *bt,
bt                315 block/blk-mq-tag.c 		sbitmap_for_each_set(&bt->sb, bt_tags_iter, &iter_data);
bt                436 block/blk-mq-tag.c static int bt_alloc(struct sbitmap_queue *bt, unsigned int depth,
bt                439 block/blk-mq-tag.c 	return sbitmap_queue_init_node(bt, depth, -1, round_robin, GFP_KERNEL,
bt                 39 block/blk-mq-tag.h static inline struct sbq_wait_state *bt_wait_ptr(struct sbitmap_queue *bt,
bt                 43 block/blk-mq-tag.h 		return &bt->ws[0];
bt                 44 block/blk-mq-tag.h 	return sbq_wait_ptr(bt, &hctx->wait_index);
bt                 72 drivers/char/ipmi/ipmi_bt_sm.c #define BT_STATE_CHANGE(X, Y) { bt->state = X; return Y; }
bt                110 drivers/char/ipmi/ipmi_bt_sm.c #define BT_STATUS	bt->io->inputb(bt->io, 0)
bt                111 drivers/char/ipmi/ipmi_bt_sm.c #define BT_CONTROL(x)	bt->io->outputb(bt->io, 0, x)
bt                113 drivers/char/ipmi/ipmi_bt_sm.c #define BMC2HOST	bt->io->inputb(bt->io, 1)
bt                114 drivers/char/ipmi/ipmi_bt_sm.c #define HOST2BMC(x)	bt->io->outputb(bt->io, 1, x)
bt                116 drivers/char/ipmi/ipmi_bt_sm.c #define BT_INTMASK_R	bt->io->inputb(bt->io, 2)
bt                117 drivers/char/ipmi/ipmi_bt_sm.c #define BT_INTMASK_W(x)	bt->io->outputb(bt->io, 2, x)
bt                142 drivers/char/ipmi/ipmi_bt_sm.c #define STATE2TXT state2txt(bt->state)
bt                173 drivers/char/ipmi/ipmi_bt_sm.c static unsigned int bt_init_data(struct si_sm_data *bt, struct si_sm_io *io)
bt                175 drivers/char/ipmi/ipmi_bt_sm.c 	memset(bt, 0, sizeof(struct si_sm_data));
bt                176 drivers/char/ipmi/ipmi_bt_sm.c 	if (bt->io != io) {
bt                178 drivers/char/ipmi/ipmi_bt_sm.c 		bt->io = io;
bt                179 drivers/char/ipmi/ipmi_bt_sm.c 		bt->seq = 0;
bt                181 drivers/char/ipmi/ipmi_bt_sm.c 	bt->state = BT_STATE_IDLE;	/* start here */
bt                182 drivers/char/ipmi/ipmi_bt_sm.c 	bt->complete = BT_STATE_IDLE;	/* end here */
bt                183 drivers/char/ipmi/ipmi_bt_sm.c 	bt->BT_CAP_req2rsp = BT_NORMAL_TIMEOUT * USEC_PER_SEC;
bt                184 drivers/char/ipmi/ipmi_bt_sm.c 	bt->BT_CAP_retries = BT_NORMAL_RETRY_LIMIT;
bt                190 drivers/char/ipmi/ipmi_bt_sm.c static void force_result(struct si_sm_data *bt, unsigned char completion_code)
bt                192 drivers/char/ipmi/ipmi_bt_sm.c 	bt->read_data[0] = 4;				/* # following bytes */
bt                193 drivers/char/ipmi/ipmi_bt_sm.c 	bt->read_data[1] = bt->write_data[1] | 4;	/* Odd NetFn/LUN */
bt                194 drivers/char/ipmi/ipmi_bt_sm.c 	bt->read_data[2] = bt->write_data[2];		/* seq (ignored) */
bt                195 drivers/char/ipmi/ipmi_bt_sm.c 	bt->read_data[3] = bt->write_data[3];		/* Command */
bt                196 drivers/char/ipmi/ipmi_bt_sm.c 	bt->read_data[4] = completion_code;
bt                197 drivers/char/ipmi/ipmi_bt_sm.c 	bt->read_count = 5;
bt                202 drivers/char/ipmi/ipmi_bt_sm.c static int bt_start_transaction(struct si_sm_data *bt,
bt                213 drivers/char/ipmi/ipmi_bt_sm.c 	if (bt->state == BT_STATE_LONG_BUSY)
bt                216 drivers/char/ipmi/ipmi_bt_sm.c 	if (bt->state != BT_STATE_IDLE)
bt                220 drivers/char/ipmi/ipmi_bt_sm.c 		dev_dbg(bt->io->dev, "+++++++++++++++++ New command\n");
bt                221 drivers/char/ipmi/ipmi_bt_sm.c 		dev_dbg(bt->io->dev, "NetFn/LUN CMD [%d data]:", size - 2);
bt                226 drivers/char/ipmi/ipmi_bt_sm.c 	bt->write_data[0] = size + 1;	/* all data plus seq byte */
bt                227 drivers/char/ipmi/ipmi_bt_sm.c 	bt->write_data[1] = *data;	/* NetFn/LUN */
bt                228 drivers/char/ipmi/ipmi_bt_sm.c 	bt->write_data[2] = bt->seq++;
bt                229 drivers/char/ipmi/ipmi_bt_sm.c 	memcpy(bt->write_data + 3, data + 1, size - 1);
bt                230 drivers/char/ipmi/ipmi_bt_sm.c 	bt->write_count = size + 2;
bt                231 drivers/char/ipmi/ipmi_bt_sm.c 	bt->error_retries = 0;
bt                232 drivers/char/ipmi/ipmi_bt_sm.c 	bt->nonzero_status = 0;
bt                233 drivers/char/ipmi/ipmi_bt_sm.c 	bt->truncated = 0;
bt                234 drivers/char/ipmi/ipmi_bt_sm.c 	bt->state = BT_STATE_XACTION_START;
bt                235 drivers/char/ipmi/ipmi_bt_sm.c 	bt->timeout = bt->BT_CAP_req2rsp;
bt                236 drivers/char/ipmi/ipmi_bt_sm.c 	force_result(bt, IPMI_ERR_UNSPECIFIED);
bt                245 drivers/char/ipmi/ipmi_bt_sm.c static int bt_get_result(struct si_sm_data *bt,
bt                251 drivers/char/ipmi/ipmi_bt_sm.c 	msg_len = bt->read_count - 2;		/* account for length & seq */
bt                253 drivers/char/ipmi/ipmi_bt_sm.c 		force_result(bt, IPMI_ERR_UNSPECIFIED);
bt                256 drivers/char/ipmi/ipmi_bt_sm.c 	data[0] = bt->read_data[1];
bt                257 drivers/char/ipmi/ipmi_bt_sm.c 	data[1] = bt->read_data[3];
bt                258 drivers/char/ipmi/ipmi_bt_sm.c 	if (length < msg_len || bt->truncated) {
bt                262 drivers/char/ipmi/ipmi_bt_sm.c 		memcpy(data + 2, bt->read_data + 4, msg_len - 2);
bt                265 drivers/char/ipmi/ipmi_bt_sm.c 		dev_dbg(bt->io->dev, "result %d bytes:", msg_len);
bt                276 drivers/char/ipmi/ipmi_bt_sm.c static void reset_flags(struct si_sm_data *bt)
bt                279 drivers/char/ipmi/ipmi_bt_sm.c 		dev_dbg(bt->io->dev, "flag reset %s\n", status2txt(BT_STATUS));
bt                292 drivers/char/ipmi/ipmi_bt_sm.c static void drain_BMC2HOST(struct si_sm_data *bt)
bt                305 drivers/char/ipmi/ipmi_bt_sm.c 		dev_dbg(bt->io->dev, "stale response %s; ",
bt                315 drivers/char/ipmi/ipmi_bt_sm.c static inline void write_all_bytes(struct si_sm_data *bt)
bt                320 drivers/char/ipmi/ipmi_bt_sm.c 		dev_dbg(bt->io->dev, "write %d bytes seq=0x%02X",
bt                321 drivers/char/ipmi/ipmi_bt_sm.c 			bt->write_count, bt->seq);
bt                322 drivers/char/ipmi/ipmi_bt_sm.c 		for (i = 0; i < bt->write_count; i++)
bt                323 drivers/char/ipmi/ipmi_bt_sm.c 			pr_cont(" %02x", bt->write_data[i]);
bt                326 drivers/char/ipmi/ipmi_bt_sm.c 	for (i = 0; i < bt->write_count; i++)
bt                327 drivers/char/ipmi/ipmi_bt_sm.c 		HOST2BMC(bt->write_data[i]);
bt                330 drivers/char/ipmi/ipmi_bt_sm.c static inline int read_all_bytes(struct si_sm_data *bt)
bt                339 drivers/char/ipmi/ipmi_bt_sm.c 	bt->read_data[0] = BMC2HOST;
bt                340 drivers/char/ipmi/ipmi_bt_sm.c 	bt->read_count = bt->read_data[0];
bt                342 drivers/char/ipmi/ipmi_bt_sm.c 	if (bt->read_count < 4 || bt->read_count >= IPMI_MAX_MSG_LENGTH) {
bt                344 drivers/char/ipmi/ipmi_bt_sm.c 			dev_dbg(bt->io->dev,
bt                345 drivers/char/ipmi/ipmi_bt_sm.c 				"bad raw rsp len=%d\n", bt->read_count);
bt                346 drivers/char/ipmi/ipmi_bt_sm.c 		bt->truncated = 1;
bt                349 drivers/char/ipmi/ipmi_bt_sm.c 	for (i = 1; i <= bt->read_count; i++)
bt                350 drivers/char/ipmi/ipmi_bt_sm.c 		bt->read_data[i] = BMC2HOST;
bt                351 drivers/char/ipmi/ipmi_bt_sm.c 	bt->read_count++;	/* Account internally for length byte */
bt                354 drivers/char/ipmi/ipmi_bt_sm.c 		int max = bt->read_count;
bt                356 drivers/char/ipmi/ipmi_bt_sm.c 		dev_dbg(bt->io->dev,
bt                357 drivers/char/ipmi/ipmi_bt_sm.c 			"got %d bytes seq=0x%02X", max, bt->read_data[2]);
bt                361 drivers/char/ipmi/ipmi_bt_sm.c 			pr_cont(" %02x", bt->read_data[i]);
bt                362 drivers/char/ipmi/ipmi_bt_sm.c 		pr_cont("%s\n", bt->read_count == max ? "" : " ...");
bt                366 drivers/char/ipmi/ipmi_bt_sm.c 	if ((bt->read_data[3] == bt->write_data[3]) &&
bt                367 drivers/char/ipmi/ipmi_bt_sm.c 	    (bt->read_data[2] == bt->write_data[2]) &&
bt                368 drivers/char/ipmi/ipmi_bt_sm.c 	    ((bt->read_data[1] & 0xF8) == (bt->write_data[1] & 0xF8)))
bt                372 drivers/char/ipmi/ipmi_bt_sm.c 		dev_dbg(bt->io->dev,
bt                374 drivers/char/ipmi/ipmi_bt_sm.c 			bt->write_data[1] | 0x04, bt->write_data[2],
bt                375 drivers/char/ipmi/ipmi_bt_sm.c 			bt->write_data[3],
bt                376 drivers/char/ipmi/ipmi_bt_sm.c 			bt->read_data[1],  bt->read_data[2],  bt->read_data[3]);
bt                382 drivers/char/ipmi/ipmi_bt_sm.c static enum si_sm_result error_recovery(struct si_sm_data *bt,
bt                388 drivers/char/ipmi/ipmi_bt_sm.c 	bt->timeout = bt->BT_CAP_req2rsp;
bt                399 drivers/char/ipmi/ipmi_bt_sm.c 	dev_warn(bt->io->dev, "IPMI BT: %s in %s %s ", /* open-ended line */
bt                406 drivers/char/ipmi/ipmi_bt_sm.c 	(bt->error_retries)++;
bt                407 drivers/char/ipmi/ipmi_bt_sm.c 	if (bt->error_retries < bt->BT_CAP_retries) {
bt                409 drivers/char/ipmi/ipmi_bt_sm.c 			bt->BT_CAP_retries - bt->error_retries);
bt                410 drivers/char/ipmi/ipmi_bt_sm.c 		bt->state = BT_STATE_RESTART;
bt                414 drivers/char/ipmi/ipmi_bt_sm.c 	dev_warn(bt->io->dev, "failed %d retries, sending error response\n",
bt                415 drivers/char/ipmi/ipmi_bt_sm.c 		 bt->BT_CAP_retries);
bt                416 drivers/char/ipmi/ipmi_bt_sm.c 	if (!bt->nonzero_status)
bt                417 drivers/char/ipmi/ipmi_bt_sm.c 		dev_err(bt->io->dev, "stuck, try power cycle\n");
bt                420 drivers/char/ipmi/ipmi_bt_sm.c 	else if (bt->seq <= (unsigned char)(bt->BT_CAP_retries & 0xFF)) {
bt                421 drivers/char/ipmi/ipmi_bt_sm.c 		dev_warn(bt->io->dev, "BT reset (takes 5 secs)\n");
bt                422 drivers/char/ipmi/ipmi_bt_sm.c 		bt->state = BT_STATE_RESET1;
bt                431 drivers/char/ipmi/ipmi_bt_sm.c 	bt->state = BT_STATE_IDLE;
bt                436 drivers/char/ipmi/ipmi_bt_sm.c 			bt->state = BT_STATE_LONG_BUSY;
bt                442 drivers/char/ipmi/ipmi_bt_sm.c 	force_result(bt, cCode);
bt                448 drivers/char/ipmi/ipmi_bt_sm.c static enum si_sm_result bt_event(struct si_sm_data *bt, long time)
bt                455 drivers/char/ipmi/ipmi_bt_sm.c 	bt->nonzero_status |= status;
bt                456 drivers/char/ipmi/ipmi_bt_sm.c 	if ((bt_debug & BT_DEBUG_STATES) && (bt->state != last_printed)) {
bt                457 drivers/char/ipmi/ipmi_bt_sm.c 		dev_dbg(bt->io->dev, "BT: %s %s TO=%ld - %ld\n",
bt                460 drivers/char/ipmi/ipmi_bt_sm.c 			bt->timeout,
bt                462 drivers/char/ipmi/ipmi_bt_sm.c 		last_printed = bt->state;
bt                472 drivers/char/ipmi/ipmi_bt_sm.c 	if ((bt->state < BT_STATE_WRITE_BYTES) && (status & BT_B2H_ATN)) {
bt                473 drivers/char/ipmi/ipmi_bt_sm.c 		drain_BMC2HOST(bt);
bt                477 drivers/char/ipmi/ipmi_bt_sm.c 	if ((bt->state != BT_STATE_IDLE) &&
bt                478 drivers/char/ipmi/ipmi_bt_sm.c 	    (bt->state <  BT_STATE_PRINTME)) {
bt                480 drivers/char/ipmi/ipmi_bt_sm.c 		bt->timeout -= time;
bt                481 drivers/char/ipmi/ipmi_bt_sm.c 		if ((bt->timeout < 0) && (bt->state < BT_STATE_RESET1))
bt                482 drivers/char/ipmi/ipmi_bt_sm.c 			return error_recovery(bt,
bt                487 drivers/char/ipmi/ipmi_bt_sm.c 	switch (bt->state) {
bt                517 drivers/char/ipmi/ipmi_bt_sm.c 		write_all_bytes(bt);
bt                559 drivers/char/ipmi/ipmi_bt_sm.c 		i = read_all_bytes(bt);		/* true == packet seq match */
bt                564 drivers/char/ipmi/ipmi_bt_sm.c 		bt->state = bt->complete;
bt                565 drivers/char/ipmi/ipmi_bt_sm.c 		return bt->state == BT_STATE_IDLE ?	/* where to next? */
bt                571 drivers/char/ipmi/ipmi_bt_sm.c 			reset_flags(bt);	/* next state is now IDLE */
bt                572 drivers/char/ipmi/ipmi_bt_sm.c 			bt_init_data(bt, bt->io);
bt                577 drivers/char/ipmi/ipmi_bt_sm.c 		reset_flags(bt);
bt                578 drivers/char/ipmi/ipmi_bt_sm.c 		drain_BMC2HOST(bt);
bt                589 drivers/char/ipmi/ipmi_bt_sm.c 		bt->timeout = BT_RESET_DELAY * USEC_PER_SEC;
bt                594 drivers/char/ipmi/ipmi_bt_sm.c 		if (bt->timeout > 0)
bt                596 drivers/char/ipmi/ipmi_bt_sm.c 		drain_BMC2HOST(bt);
bt                601 drivers/char/ipmi/ipmi_bt_sm.c 		bt->read_count = 0;
bt                602 drivers/char/ipmi/ipmi_bt_sm.c 		bt->nonzero_status = 0;
bt                603 drivers/char/ipmi/ipmi_bt_sm.c 		bt->timeout = bt->BT_CAP_req2rsp;
bt                608 drivers/char/ipmi/ipmi_bt_sm.c 		return error_recovery(bt,
bt                615 drivers/char/ipmi/ipmi_bt_sm.c static int bt_detect(struct si_sm_data *bt)
bt                631 drivers/char/ipmi/ipmi_bt_sm.c 	reset_flags(bt);
bt                636 drivers/char/ipmi/ipmi_bt_sm.c 	rv = bt_start_transaction(bt, GetBT_CAP, sizeof(GetBT_CAP));
bt                638 drivers/char/ipmi/ipmi_bt_sm.c 		dev_warn(bt->io->dev,
bt                648 drivers/char/ipmi/ipmi_bt_sm.c 			smi_result = bt_event(bt, jiffies_to_usecs(1));
bt                650 drivers/char/ipmi/ipmi_bt_sm.c 			smi_result = bt_event(bt, 0);
bt                655 drivers/char/ipmi/ipmi_bt_sm.c 	rv = bt_get_result(bt, BT_CAP, sizeof(BT_CAP));
bt                656 drivers/char/ipmi/ipmi_bt_sm.c 	bt_init_data(bt, bt->io);
bt                658 drivers/char/ipmi/ipmi_bt_sm.c 		dev_warn(bt->io->dev, "bt cap response too short: %d\n", rv);
bt                663 drivers/char/ipmi/ipmi_bt_sm.c 		dev_warn(bt->io->dev, "Error fetching bt cap: %x\n", BT_CAP[2]);
bt                665 drivers/char/ipmi/ipmi_bt_sm.c 		dev_warn(bt->io->dev, "using default values\n");
bt                667 drivers/char/ipmi/ipmi_bt_sm.c 		bt->BT_CAP_req2rsp = BT_CAP[6] * USEC_PER_SEC;
bt                668 drivers/char/ipmi/ipmi_bt_sm.c 		bt->BT_CAP_retries = BT_CAP[7];
bt                671 drivers/char/ipmi/ipmi_bt_sm.c 	dev_info(bt->io->dev, "req2rsp=%ld secs retries=%d\n",
bt                672 drivers/char/ipmi/ipmi_bt_sm.c 		 bt->BT_CAP_req2rsp / USEC_PER_SEC, bt->BT_CAP_retries);
bt                677 drivers/char/ipmi/ipmi_bt_sm.c static void bt_cleanup(struct si_sm_data *bt)
bt                253 drivers/gpu/drm/amd/amdgpu/si_dpm.h 	u32 bt;
bt                442 drivers/gpu/drm/drm_mode_config.c 	struct drm_property_blob *blob, *bt;
bt                482 drivers/gpu/drm/drm_mode_config.c 	list_for_each_entry_safe(blob, bt, &dev->mode_config.property_blob_list,
bt                615 drivers/gpu/drm/drm_property.c 	struct drm_property_blob *blob, *bt;
bt                621 drivers/gpu/drm/drm_property.c 	list_for_each_entry_safe(blob, bt, &file_priv->blobs, head_file) {
bt                826 drivers/gpu/drm/drm_property.c 	struct drm_property_blob *blob = NULL, *bt;
bt                839 drivers/gpu/drm/drm_property.c 	list_for_each_entry(bt, &file_priv->blobs, head_file) {
bt                840 drivers/gpu/drm/drm_property.c 		if (bt == blob) {
bt                754 drivers/gpu/drm/radeon/ni_dpm.c 			  drm_fixp_exp(drm_fixp_mul(div64_s64(drm_int2fixp(coeff->bt), 1000), temperature)));
bt               4207 drivers/gpu/drm/radeon/ni_dpm.c 	ni_pi->cac_data.leakage_coefficients.bt = 18;
bt                 78 drivers/gpu/drm/radeon/ni_dpm.h 	u32 bt;
bt                263 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 		enum vmw_ctx_binding_type bt, u32 shader_slot, u32 slot)
bt                265 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 	const struct vmw_binding_info *b = &vmw_binding_infos[bt];
bt                302 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 		vmw_binding_loc(cbs, bi->bt, shader_slot, slot);
bt                303 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 	const struct vmw_binding_info *b = &vmw_binding_infos[bi->bt];
bt                336 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 		memcpy(loc, bi, vmw_binding_infos[bi->bt].size);
bt                375 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 			(void) vmw_binding_infos[entry->bt].scrub_func
bt                417 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 			(void) vmw_binding_infos[entry->bt].scrub_func
bt                476 drivers/gpu/drm/vmwgfx/vmwgfx_binding.c 		ret = vmw_binding_infos[entry->bt].scrub_func(entry, true);
bt                 74 drivers/gpu/drm/vmwgfx/vmwgfx_binding.h 	enum vmw_ctx_binding_type bt;
bt                487 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 				 vmw_binding_dirtying(entry->bt));
bt                808 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		binding.bi.bt = binding_type;
bt                907 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		binding.bi.bt = vmw_ctx_binding_rt;
bt               1668 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 			binding.bi.bt = vmw_ctx_binding_tex;
bt               2051 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	binding.bi.bt = vmw_ctx_binding_shader;
bt               2136 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	binding.bi.bt = vmw_ctx_binding_cb;
bt               2231 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	binding.bi.bt = vmw_ctx_binding_dx_shader;
bt               2282 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		binding.bi.bt = vmw_ctx_binding_vb;
bt               2324 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 	binding.bi.bt = vmw_ctx_binding_ib;
bt               2494 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 		binding.bi.bt = vmw_ctx_binding_so,
bt                100 drivers/infiniband/hw/hns/hns_roce_hem.c static bool hns_roce_check_bt_null(u64 **bt, u64 start_idx, u32 bt_chunk_num)
bt                105 drivers/infiniband/hw/hns/hns_roce_hem.c 		if (bt[start_idx + i])
bt               1264 drivers/input/misc/wistron_btns.c 		u16 bt = bios_get_default_setting(BLUETOOTH);
bt               1265 drivers/input/misc/wistron_btns.c 		if (bt & 1)
bt               1266 drivers/input/misc/wistron_btns.c 			bluetooth_enabled = bt & 2;
bt                 48 drivers/media/dvb-frontends/or51211.c 	struct bt878* bt;
bt                229 drivers/media/i2c/ad9389b.c 	if (state->dv_timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) {
bt                245 drivers/media/i2c/ad9389b.c 		if (state->dv_timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) {
bt                603 drivers/media/i2c/ad9389b.c 	timings->bt.flags &= ~V4L2_DV_FL_REDUCED_FPS;
bt                613 drivers/media/i2c/ad9389b.c 		ad9389b_set_manual_pll_gear(sd, (u32)timings->bt.pixelclock);
bt                 96 drivers/media/i2c/adv748x/adv748x-hdmi.c 	fmt->field = hdmi->timings.bt.interlaced ?
bt                102 drivers/media/i2c/adv748x/adv748x-hdmi.c 	fmt->width = hdmi->timings.bt.width;
bt                103 drivers/media/i2c/adv748x/adv748x-hdmi.c 	fmt->height = hdmi->timings.bt.height;
bt                245 drivers/media/i2c/adv748x/adv748x-hdmi.c 		  timings->bt.interlaced ?
bt                277 drivers/media/i2c/adv748x/adv748x-hdmi.c 	struct v4l2_bt_timings *bt = &timings->bt;
bt                295 drivers/media/i2c/adv748x/adv748x-hdmi.c 	bt->pixelclock = pixelclock;
bt                296 drivers/media/i2c/adv748x/adv748x-hdmi.c 	bt->interlaced = hdmi_read(state, ADV748X_HDMI_F1H1) &
bt                299 drivers/media/i2c/adv748x/adv748x-hdmi.c 	bt->width = hdmi_read16(state, ADV748X_HDMI_LW1,
bt                301 drivers/media/i2c/adv748x/adv748x-hdmi.c 	bt->height = hdmi_read16(state, ADV748X_HDMI_F0H1,
bt                303 drivers/media/i2c/adv748x/adv748x-hdmi.c 	bt->hfrontporch = hdmi_read16(state, ADV748X_HDMI_HFRONT_PORCH,
bt                305 drivers/media/i2c/adv748x/adv748x-hdmi.c 	bt->hsync = hdmi_read16(state, ADV748X_HDMI_HSYNC_WIDTH,
bt                307 drivers/media/i2c/adv748x/adv748x-hdmi.c 	bt->hbackporch = hdmi_read16(state, ADV748X_HDMI_HBACK_PORCH,
bt                309 drivers/media/i2c/adv748x/adv748x-hdmi.c 	bt->vfrontporch = hdmi_read16(state, ADV748X_HDMI_VFRONT_PORCH,
bt                311 drivers/media/i2c/adv748x/adv748x-hdmi.c 	bt->vsync = hdmi_read16(state, ADV748X_HDMI_VSYNC_WIDTH,
bt                313 drivers/media/i2c/adv748x/adv748x-hdmi.c 	bt->vbackporch = hdmi_read16(state, ADV748X_HDMI_VBACK_PORCH,
bt                317 drivers/media/i2c/adv748x/adv748x-hdmi.c 	bt->polarities = (polarity & BIT(4) ? V4L2_DV_VSYNC_POS_POL : 0) |
bt                320 drivers/media/i2c/adv748x/adv748x-hdmi.c 	if (bt->interlaced == V4L2_DV_INTERLACED) {
bt                321 drivers/media/i2c/adv748x/adv748x-hdmi.c 		bt->height += hdmi_read16(state, 0x0b, 0x1fff);
bt                322 drivers/media/i2c/adv748x/adv748x-hdmi.c 		bt->il_vfrontporch = hdmi_read16(state, 0x2c, 0x3fff) / 2;
bt                323 drivers/media/i2c/adv748x/adv748x-hdmi.c 		bt->il_vsync = hdmi_read16(state, 0x30, 0x3fff) / 2;
bt                324 drivers/media/i2c/adv748x/adv748x-hdmi.c 		bt->il_vbackporch = hdmi_read16(state, 0x34, 0x3fff) / 2;
bt                408 drivers/media/i2c/adv748x/adv748x-hdmi.c 	return adv748x_csi2_set_pixelrate(tx, timings.bt.pixelclock);
bt                575 drivers/media/i2c/adv748x/adv748x-hdmi.c 	for (i = 0; stds[i].timings.bt.width; i++)
bt                392 drivers/media/i2c/adv7511-v4l2.c 		if (state->dv_timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) {
bt               1036 drivers/media/i2c/adv7511-v4l2.c 	struct v4l2_bt_timings *bt = &timings->bt;
bt               1054 drivers/media/i2c/adv7511-v4l2.c 		((bt->polarities & V4L2_DV_VSYNC_POS_POL) ? 0 : 0x40) |
bt               1055 drivers/media/i2c/adv7511-v4l2.c 		((bt->polarities & V4L2_DV_HSYNC_POS_POL) ? 0 : 0x20));
bt               1057 drivers/media/i2c/adv7511-v4l2.c 	fps = (u32)bt->pixelclock / (V4L2_DV_BT_FRAME_WIDTH(bt) * V4L2_DV_BT_FRAME_HEIGHT(bt));
bt               1255 drivers/media/i2c/adv7511-v4l2.c 	format->width = state->dv_timings.bt.width;
bt               1256 drivers/media/i2c/adv7511-v4l2.c 	format->height = state->dv_timings.bt.height;
bt                224 drivers/media/i2c/adv7604.c 	for (i = 0; adv76xx_timings_exceptions[i].bt.width; i++)
bt                918 drivers/media/i2c/adv7604.c 	for (i = 0; predef_vid_timings[i].timings.bt.width; i++) {
bt                980 drivers/media/i2c/adv7604.c 		const struct v4l2_bt_timings *bt)
bt                983 drivers/media/i2c/adv7604.c 	u32 width = htotal(bt);
bt                984 drivers/media/i2c/adv7604.c 	u32 height = vtotal(bt);
bt                985 drivers/media/i2c/adv7604.c 	u16 cp_start_sav = bt->hsync + bt->hbackporch - 4;
bt                986 drivers/media/i2c/adv7604.c 	u16 cp_start_eav = width - bt->hfrontporch;
bt                987 drivers/media/i2c/adv7604.c 	u16 cp_start_vbi = height - bt->vfrontporch;
bt                988 drivers/media/i2c/adv7604.c 	u16 cp_end_vbi = bt->vsync + bt->vbackporch;
bt                989 drivers/media/i2c/adv7604.c 	u16 ch1_fr_ll = (((u32)bt->pixelclock / 100) > 0) ?
bt                990 drivers/media/i2c/adv7604.c 		((width * (ADV76XX_FSC / 100)) / ((u32)bt->pixelclock / 100)) : 0;
bt               1139 drivers/media/i2c/adv7604.c 		if (state->timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) {
bt               1370 drivers/media/i2c/adv7604.c 	for (i = 0; v4l2_dv_timings_presets[i].bt.width; i++) {
bt               1371 drivers/media/i2c/adv7604.c 		const struct v4l2_bt_timings *bt = &v4l2_dv_timings_presets[i].bt;
bt               1377 drivers/media/i2c/adv7604.c 		if (vtotal(bt) != stdi->lcf + 1)
bt               1379 drivers/media/i2c/adv7604.c 		if (bt->vsync != stdi->lcvs)
bt               1382 drivers/media/i2c/adv7604.c 		pix_clk = hfreq * htotal(bt);
bt               1384 drivers/media/i2c/adv7604.c 		if ((pix_clk < bt->pixelclock + 1000000) &&
bt               1385 drivers/media/i2c/adv7604.c 		    (pix_clk > bt->pixelclock - 1000000)) {
bt               1541 drivers/media/i2c/adv7604.c 	struct v4l2_bt_timings *bt = &timings->bt;
bt               1560 drivers/media/i2c/adv7604.c 	bt->interlaced = stdi.interlaced ?
bt               1575 drivers/media/i2c/adv7604.c 		    bt->width == w && bt->height == h)
bt               1580 drivers/media/i2c/adv7604.c 		bt->width = w;
bt               1581 drivers/media/i2c/adv7604.c 		bt->height = h;
bt               1582 drivers/media/i2c/adv7604.c 		bt->pixelclock = info->read_hdmi_pixelclock(sd);
bt               1583 drivers/media/i2c/adv7604.c 		bt->hfrontporch = hdmi_read16(sd, 0x20, info->hfrontporch_mask);
bt               1584 drivers/media/i2c/adv7604.c 		bt->hsync = hdmi_read16(sd, 0x22, info->hsync_mask);
bt               1585 drivers/media/i2c/adv7604.c 		bt->hbackporch = hdmi_read16(sd, 0x24, info->hbackporch_mask);
bt               1586 drivers/media/i2c/adv7604.c 		bt->vfrontporch = hdmi_read16(sd, 0x2a,
bt               1588 drivers/media/i2c/adv7604.c 		bt->vsync = hdmi_read16(sd, 0x2e, info->field0_vsync_mask) / 2;
bt               1589 drivers/media/i2c/adv7604.c 		bt->vbackporch = hdmi_read16(sd, 0x32,
bt               1591 drivers/media/i2c/adv7604.c 		bt->polarities = ((hdmi_read(sd, 0x05) & 0x10) ? V4L2_DV_VSYNC_POS_POL : 0) |
bt               1593 drivers/media/i2c/adv7604.c 		if (bt->interlaced == V4L2_DV_INTERLACED) {
bt               1594 drivers/media/i2c/adv7604.c 			bt->height += hdmi_read16(sd, 0x0b,
bt               1596 drivers/media/i2c/adv7604.c 			bt->il_vfrontporch = hdmi_read16(sd, 0x2c,
bt               1598 drivers/media/i2c/adv7604.c 			bt->il_vsync = hdmi_read16(sd, 0x30,
bt               1600 drivers/media/i2c/adv7604.c 			bt->il_vbackporch = hdmi_read16(sd, 0x34,
bt               1652 drivers/media/i2c/adv7604.c 	if ((is_analog_input(sd) && bt->pixelclock > 170000000) ||
bt               1653 drivers/media/i2c/adv7604.c 			(is_digital_input(sd) && bt->pixelclock > 225000000)) {
bt               1655 drivers/media/i2c/adv7604.c 				__func__, (u32)bt->pixelclock);
bt               1670 drivers/media/i2c/adv7604.c 	struct v4l2_bt_timings *bt;
bt               1681 drivers/media/i2c/adv7604.c 	bt = &timings->bt;
bt               1691 drivers/media/i2c/adv7604.c 	cp_write_clr_set(sd, 0x91, 0x40, bt->interlaced ? 0x40 : 0x00);
bt               1698 drivers/media/i2c/adv7604.c 		configure_custom_video_timings(sd, bt);
bt               1830 drivers/media/i2c/adv7604.c 	format->width = state->timings.bt.width;
bt               1831 drivers/media/i2c/adv7604.c 	format->height = state->timings.bt.height;
bt               1835 drivers/media/i2c/adv7604.c 	if (state->timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO)
bt               1836 drivers/media/i2c/adv7604.c 		format->colorspace = (state->timings.bt.height <= 576) ?
bt               1928 drivers/media/i2c/adv7604.c 	sel->r.width	= state->timings.bt.width;
bt               1929 drivers/media/i2c/adv7604.c 	sel->r.height	= state->timings.bt.height;
bt                151 drivers/media/i2c/adv7842.c 	for (i = 0; adv7842_timings_exceptions[i].bt.width; i++)
bt                984 drivers/media/i2c/adv7842.c 	for (i = 0; predef_vid_timings[i].timings.bt.width; i++) {
bt               1051 drivers/media/i2c/adv7842.c 		const struct v4l2_bt_timings *bt)
bt               1055 drivers/media/i2c/adv7842.c 	u32 width = htotal(bt);
bt               1056 drivers/media/i2c/adv7842.c 	u32 height = vtotal(bt);
bt               1057 drivers/media/i2c/adv7842.c 	u16 cp_start_sav = bt->hsync + bt->hbackporch - 4;
bt               1058 drivers/media/i2c/adv7842.c 	u16 cp_start_eav = width - bt->hfrontporch;
bt               1059 drivers/media/i2c/adv7842.c 	u16 cp_start_vbi = height - bt->vfrontporch + 1;
bt               1060 drivers/media/i2c/adv7842.c 	u16 cp_end_vbi = bt->vsync + bt->vbackporch + 1;
bt               1061 drivers/media/i2c/adv7842.c 	u16 ch1_fr_ll = (((u32)bt->pixelclock / 100) > 0) ?
bt               1062 drivers/media/i2c/adv7842.c 		((width * (ADV7842_fsc / 100)) / ((u32)bt->pixelclock / 100)) : 0;
bt               1215 drivers/media/i2c/adv7842.c 		if (state->timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) {
bt               1424 drivers/media/i2c/adv7842.c 	for (i = 0; v4l2_dv_timings_presets[i].bt.width; i++) {
bt               1425 drivers/media/i2c/adv7842.c 		const struct v4l2_bt_timings *bt = &v4l2_dv_timings_presets[i].bt;
bt               1431 drivers/media/i2c/adv7842.c 		if (vtotal(bt) != stdi->lcf + 1)
bt               1433 drivers/media/i2c/adv7842.c 		if (bt->vsync != stdi->lcvs)
bt               1436 drivers/media/i2c/adv7842.c 		pix_clk = hfreq * htotal(bt);
bt               1438 drivers/media/i2c/adv7842.c 		if ((pix_clk < bt->pixelclock + 1000000) &&
bt               1439 drivers/media/i2c/adv7842.c 		    (pix_clk > bt->pixelclock - 1000000)) {
bt               1530 drivers/media/i2c/adv7842.c 	timings->bt.flags |= V4L2_DV_FL_CAN_DETECT_REDUCED_FPS;
bt               1537 drivers/media/i2c/adv7842.c 	struct v4l2_bt_timings *bt = &timings->bt;
bt               1554 drivers/media/i2c/adv7842.c 	bt->interlaced = stdi.interlaced ?
bt               1556 drivers/media/i2c/adv7842.c 	bt->standards = V4L2_DV_BT_STD_CEA861 | V4L2_DV_BT_STD_DMT |
bt               1564 drivers/media/i2c/adv7842.c 		bt->width = (hdmi_read(sd, 0x07) & 0x0f) * 256 + hdmi_read(sd, 0x08);
bt               1565 drivers/media/i2c/adv7842.c 		bt->height = (hdmi_read(sd, 0x09) & 0x0f) * 256 + hdmi_read(sd, 0x0a);
bt               1572 drivers/media/i2c/adv7842.c 		bt->pixelclock = freq;
bt               1573 drivers/media/i2c/adv7842.c 		bt->hfrontporch = (hdmi_read(sd, 0x20) & 0x03) * 256 +
bt               1575 drivers/media/i2c/adv7842.c 		bt->hsync = (hdmi_read(sd, 0x22) & 0x03) * 256 +
bt               1577 drivers/media/i2c/adv7842.c 		bt->hbackporch = (hdmi_read(sd, 0x24) & 0x03) * 256 +
bt               1579 drivers/media/i2c/adv7842.c 		bt->vfrontporch = ((hdmi_read(sd, 0x2a) & 0x1f) * 256 +
bt               1581 drivers/media/i2c/adv7842.c 		bt->vsync = ((hdmi_read(sd, 0x2e) & 0x1f) * 256 +
bt               1583 drivers/media/i2c/adv7842.c 		bt->vbackporch = ((hdmi_read(sd, 0x32) & 0x1f) * 256 +
bt               1585 drivers/media/i2c/adv7842.c 		bt->polarities = ((hdmi_read(sd, 0x05) & 0x10) ? V4L2_DV_VSYNC_POS_POL : 0) |
bt               1587 drivers/media/i2c/adv7842.c 		if (bt->interlaced == V4L2_DV_INTERLACED) {
bt               1588 drivers/media/i2c/adv7842.c 			bt->height += (hdmi_read(sd, 0x0b) & 0x0f) * 256 +
bt               1590 drivers/media/i2c/adv7842.c 			bt->il_vfrontporch = ((hdmi_read(sd, 0x2c) & 0x1f) * 256 +
bt               1592 drivers/media/i2c/adv7842.c 			bt->il_vsync = ((hdmi_read(sd, 0x30) & 0x1f) * 256 +
bt               1594 drivers/media/i2c/adv7842.c 			bt->il_vbackporch = ((hdmi_read(sd, 0x34) & 0x1f) * 256 +
bt               1597 drivers/media/i2c/adv7842.c 			bt->il_vfrontporch = 0;
bt               1598 drivers/media/i2c/adv7842.c 			bt->il_vsync = 0;
bt               1599 drivers/media/i2c/adv7842.c 			bt->il_vbackporch = 0;
bt               1602 drivers/media/i2c/adv7842.c 		if ((timings->bt.flags & V4L2_DV_FL_CAN_REDUCE_FPS) &&
bt               1603 drivers/media/i2c/adv7842.c 		    freq < bt->pixelclock) {
bt               1604 drivers/media/i2c/adv7842.c 			u32 reduced_freq = ((u32)bt->pixelclock / 1001) * 1000;
bt               1607 drivers/media/i2c/adv7842.c 			if (delta_freq < ((u32)bt->pixelclock - reduced_freq) / 2)
bt               1608 drivers/media/i2c/adv7842.c 				timings->bt.flags |= V4L2_DV_FL_REDUCED_FPS;
bt               1662 drivers/media/i2c/adv7842.c 	struct v4l2_bt_timings *bt;
bt               1675 drivers/media/i2c/adv7842.c 	bt = &timings->bt;
bt               1685 drivers/media/i2c/adv7842.c 	cp_write(sd, 0x91, bt->interlaced ? 0x40 : 0x00);
bt               1692 drivers/media/i2c/adv7842.c 		configure_custom_video_timings(sd, bt);
bt               2012 drivers/media/i2c/adv7842.c 	format->width = state->timings.bt.width;
bt               2013 drivers/media/i2c/adv7842.c 	format->height = state->timings.bt.height;
bt               2017 drivers/media/i2c/adv7842.c 	if (state->timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO)
bt               2018 drivers/media/i2c/adv7842.c 		format->colorspace = (state->timings.bt.height <= 576) ?
bt                307 drivers/media/i2c/tc358743.c 	struct v4l2_bt_timings *bt = &timings->bt;
bt                322 drivers/media/i2c/tc358743.c 	bt->interlaced = i2c_rd8(sd, VI_STATUS1) & MASK_S_V_INTERLACE ?
bt                340 drivers/media/i2c/tc358743.c 	bt->width = width;
bt                341 drivers/media/i2c/tc358743.c 	bt->height = height;
bt                342 drivers/media/i2c/tc358743.c 	bt->vsync = frame_height - height;
bt                343 drivers/media/i2c/tc358743.c 	bt->hsync = frame_width - width;
bt                344 drivers/media/i2c/tc358743.c 	bt->pixelclock = frame_width * frame_height * fps;
bt                345 drivers/media/i2c/tc358743.c 	if (bt->interlaced == V4L2_DV_INTERLACED) {
bt                346 drivers/media/i2c/tc358743.c 		bt->height *= 2;
bt                347 drivers/media/i2c/tc358743.c 		bt->il_vsync = bt->vsync + 1;
bt                348 drivers/media/i2c/tc358743.c 		bt->pixelclock /= 2;
bt                669 drivers/media/i2c/tc358743.c 	struct v4l2_bt_timings *bt = &state->timings.bt;
bt                673 drivers/media/i2c/tc358743.c 	u32 bps = bt->width * bt->height * fps(bt) * bits_pr_pixel;
bt               1676 drivers/media/i2c/tc358743.c 	format->format.width = state->timings.bt.width;
bt               1677 drivers/media/i2c/tc358743.c 	format->format.height = state->timings.bt.height;
bt                687 drivers/media/i2c/tda1997x.c 			if (state->timings.bt.height <= 576)
bt                693 drivers/media/i2c/tda1997x.c 			if (state->timings.bt.height <= 576)
bt                746 drivers/media/i2c/tda1997x.c 	const struct v4l2_bt_timings *bt = &state->timings.bt;
bt                755 drivers/media/i2c/tda1997x.c 	href_start = bt->hbackporch + bt->hsync + 1;
bt                756 drivers/media/i2c/tda1997x.c 	href_end = href_start + bt->width;
bt                757 drivers/media/i2c/tda1997x.c 	vref_f1_start = bt->height + bt->vbackporch + bt->vsync +
bt                758 drivers/media/i2c/tda1997x.c 			bt->il_vbackporch + bt->il_vsync +
bt                759 drivers/media/i2c/tda1997x.c 			bt->il_vfrontporch;
bt                760 drivers/media/i2c/tda1997x.c 	vref_f1_width = bt->vbackporch + bt->vsync + bt->vfrontporch;
bt                765 drivers/media/i2c/tda1997x.c 	if (bt->interlaced) {
bt                766 drivers/media/i2c/tda1997x.c 		vref_f2_start = (bt->height / 2) +
bt                767 drivers/media/i2c/tda1997x.c 				(bt->il_vbackporch + bt->il_vsync - 1);
bt                768 drivers/media/i2c/tda1997x.c 		vref_f2_width = bt->il_vbackporch + bt->il_vsync +
bt                769 drivers/media/i2c/tda1997x.c 				bt->il_vfrontporch;
bt                770 drivers/media/i2c/tda1997x.c 		fieldref_f2_start = vref_f2_start + bt->il_vfrontporch +
bt                775 drivers/media/i2c/tda1997x.c 	width = V4L2_DV_BT_FRAME_WIDTH(bt);
bt                776 drivers/media/i2c/tda1997x.c 	lines = V4L2_DV_BT_FRAME_HEIGHT(bt);
bt               1113 drivers/media/i2c/tda1997x.c 	for (i = 0; v4l2_dv_timings_presets[i].bt.width; i++) {
bt               1114 drivers/media/i2c/tda1997x.c 		const struct v4l2_bt_timings *bt;
bt               1119 drivers/media/i2c/tda1997x.c 		bt = &v4l2_dv_timings_presets[i].bt;
bt               1120 drivers/media/i2c/tda1997x.c 		width = V4L2_DV_BT_FRAME_WIDTH(bt);
bt               1121 drivers/media/i2c/tda1997x.c 		lines = V4L2_DV_BT_FRAME_HEIGHT(bt);
bt               1122 drivers/media/i2c/tda1997x.c 		_hper = (u32)bt->pixelclock / width;
bt               1123 drivers/media/i2c/tda1997x.c 		if (bt->interlaced)
bt               1132 drivers/media/i2c/tda1997x.c 		_hsper = 27000 * bt->hsync / ((u32)bt->pixelclock/1000);
bt               1224 drivers/media/i2c/tda1997x.c 						      state->timings.bt.height);
bt               1753 drivers/media/i2c/tda1997x.c 	const struct v4l2_bt_timings *bt;
bt               1756 drivers/media/i2c/tda1997x.c 	bt = &state->timings.bt;
bt               1757 drivers/media/i2c/tda1997x.c 	format->width = bt->width;
bt               1758 drivers/media/i2c/tda1997x.c 	format->height = bt->height;
bt               1760 drivers/media/i2c/tda1997x.c 	format->field = (bt->interlaced) ?
bt                 38 drivers/media/i2c/ths7303.c 	struct v4l2_bt_timings		bt;
bt                145 drivers/media/i2c/ths7303.c 		state->bt.pixelclock = 0;
bt                170 drivers/media/i2c/ths7303.c 	if (state->bt.pixelclock > 120000000)
bt                172 drivers/media/i2c/ths7303.c 	else if (state->bt.pixelclock > 70000000)
bt                174 drivers/media/i2c/ths7303.c 	else if (state->bt.pixelclock > 20000000)
bt                204 drivers/media/i2c/ths7303.c 	state->bt = dv_timings->bt;
bt                287 drivers/media/i2c/ths7303.c 	if (state->bt.pixelclock) {
bt                288 drivers/media/i2c/ths7303.c 		struct v4l2_bt_timings *bt = &state->bt;
bt                291 drivers/media/i2c/ths7303.c 		frame_width = V4L2_DV_BT_FRAME_WIDTH(bt);
bt                292 drivers/media/i2c/ths7303.c 		frame_height = V4L2_DV_BT_FRAME_HEIGHT(bt);
bt                295 drivers/media/i2c/ths7303.c 			  bt->width, bt->height, bt->interlaced ? "i" : "p",
bt                297 drivers/media/i2c/ths7303.c 			  (int)bt->pixelclock /
bt                300 drivers/media/i2c/ths7303.c 			  (int)bt->pixelclock, bt->polarities);
bt                214 drivers/media/i2c/ths8200.c static void ths8200_setup(struct v4l2_subdev *sd, struct v4l2_bt_timings *bt)
bt                217 drivers/media/i2c/ths8200.c 	uint16_t line_start_active_video = (bt->vsync + bt->vbackporch);
bt                218 drivers/media/i2c/ths8200.c 	uint16_t line_start_front_porch  = (vtotal(bt) - bt->vfrontporch);
bt                225 drivers/media/i2c/ths8200.c 	ths8200_write(sd, THS8200_DTG1_SPEC_A, bt->hsync);
bt                226 drivers/media/i2c/ths8200.c 	ths8200_write(sd, THS8200_DTG1_SPEC_B, bt->hfrontporch);
bt                229 drivers/media/i2c/ths8200.c 	if (!bt->interlaced)
bt                236 drivers/media/i2c/ths8200.c 		      (bt->hbackporch + bt->hsync) & 0xff);
bt                244 drivers/media/i2c/ths8200.c 		      ((bt->hbackporch + bt->hsync) & 0x100) >> 1);
bt                247 drivers/media/i2c/ths8200.c 	ths8200_write(sd, THS8200_DTG1_SPEC_K_LSB, (bt->hfrontporch) & 0xff);
bt                249 drivers/media/i2c/ths8200.c 		      ((bt->hfrontporch) & 0x700) >> 8);
bt                252 drivers/media/i2c/ths8200.c 	ths8200_write(sd, THS8200_DTG1_SPEC_G_LSB, (htotal(bt)/2) & 0xff);
bt                254 drivers/media/i2c/ths8200.c 		      ((htotal(bt)/2) >> 8) & 0x0f);
bt                257 drivers/media/i2c/ths8200.c 	ths8200_write(sd, THS8200_DTG1_TOT_PIXELS_MSB, htotal(bt) >> 8);
bt                258 drivers/media/i2c/ths8200.c 	ths8200_write(sd, THS8200_DTG1_TOT_PIXELS_LSB, htotal(bt) & 0xff);
bt                265 drivers/media/i2c/ths8200.c 		      ((vtotal(bt) >> 4) & 0xf0) + 0x7);
bt                266 drivers/media/i2c/ths8200.c 	ths8200_write(sd, THS8200_DTG1_FRAME_SZ_LSB, vtotal(bt) & 0xff);
bt                271 drivers/media/i2c/ths8200.c 	if (!bt->interlaced)
bt                292 drivers/media/i2c/ths8200.c 	ths8200_write(sd, THS8200_DTG2_BP3_4_MSB, ((vtotal(bt)) >> 4) & 0x70);
bt                295 drivers/media/i2c/ths8200.c 	ths8200_write(sd, THS8200_DTG2_BP3_LSB, (vtotal(bt)) & 0xff);
bt                302 drivers/media/i2c/ths8200.c 	ths8200_write(sd, THS8200_DTG2_HLENGTH_LSB, bt->hsync & 0xff);
bt                304 drivers/media/i2c/ths8200.c 			     (bt->hsync >> 2) & 0xc0);
bt                308 drivers/media/i2c/ths8200.c 			     (htotal(bt) >> 8) & 0x1f);
bt                309 drivers/media/i2c/ths8200.c 	ths8200_write(sd, THS8200_DTG2_HLENGTH_HDLY_LSB, htotal(bt));
bt                312 drivers/media/i2c/ths8200.c 	ths8200_write(sd, THS8200_DTG2_VLENGTH1_LSB, (bt->vsync + 1) & 0xff);
bt                314 drivers/media/i2c/ths8200.c 			     ((bt->vsync + 1) >> 2) & 0xc0);
bt                318 drivers/media/i2c/ths8200.c 			     ((vtotal(bt) + 1) >> 8) & 0x7);
bt                319 drivers/media/i2c/ths8200.c 	ths8200_write(sd, THS8200_DTG2_VDLY1_LSB, vtotal(bt) + 1);
bt                336 drivers/media/i2c/ths8200.c 	if (bt->polarities & V4L2_DV_HSYNC_POS_POL) {
bt                340 drivers/media/i2c/ths8200.c 	if (bt->polarities & V4L2_DV_VSYNC_POS_POL) {
bt                356 drivers/media/i2c/ths8200.c 		 "vertical: sync %d\n", __func__, htotal(bt), vtotal(bt),
bt                357 drivers/media/i2c/ths8200.c 		 polarity, bt->hfrontporch, bt->hbackporch,
bt                358 drivers/media/i2c/ths8200.c 		 bt->hsync, bt->vsync);
bt                378 drivers/media/i2c/ths8200.c 	timings->bt.flags &= ~V4L2_DV_FL_REDUCED_FPS;
bt                383 drivers/media/i2c/ths8200.c 	ths8200_setup(sd, &timings->bt);
bt                553 drivers/media/i2c/tvp7002.c 	const struct v4l2_bt_timings *bt = &dv_timings->bt;
bt                559 drivers/media/i2c/tvp7002.c 		const struct v4l2_bt_timings *t = &tvp7002_timings[i].timings.bt;
bt                561 drivers/media/i2c/tvp7002.c 		if (!memcmp(bt, t, &bt->standards - &bt->width)) {
bt                747 drivers/media/i2c/tvp7002.c 	const struct v4l2_bt_timings *bt;
bt                753 drivers/media/i2c/tvp7002.c 	bt = &device->current_timings->timings.bt;
bt                754 drivers/media/i2c/tvp7002.c 	v4l2_info(sd, "Selected DV Timings: %ux%u\n", bt->width, bt->height);
bt                758 drivers/media/i2c/tvp7002.c 		bt = &tvp7002_timings[detected].timings.bt;
bt                760 drivers/media/i2c/tvp7002.c 				bt->width, bt->height);
bt                825 drivers/media/i2c/tvp7002.c 	fmt->format.width = tvp7002->current_timings->timings.bt.width;
bt                826 drivers/media/i2c/tvp7002.c 	fmt->format.height = tvp7002->current_timings->timings.bt.height;
bt                 51 drivers/media/pci/bt8xx/bt878.c #define btwrite(dat,adr)    bmtwrite((dat), (bt->bt878_mem+(adr)))
bt                 52 drivers/media/pci/bt8xx/bt878.c #define btread(adr)         bmtread(bt->bt878_mem+(adr))
bt                 67 drivers/media/pci/bt8xx/bt878.c static void bt878_mem_free(struct bt878 *bt)
bt                 69 drivers/media/pci/bt8xx/bt878.c 	if (bt->buf_cpu) {
bt                 70 drivers/media/pci/bt8xx/bt878.c 		pci_free_consistent(bt->dev, bt->buf_size, bt->buf_cpu,
bt                 71 drivers/media/pci/bt8xx/bt878.c 				    bt->buf_dma);
bt                 72 drivers/media/pci/bt8xx/bt878.c 		bt->buf_cpu = NULL;
bt                 75 drivers/media/pci/bt8xx/bt878.c 	if (bt->risc_cpu) {
bt                 76 drivers/media/pci/bt8xx/bt878.c 		pci_free_consistent(bt->dev, bt->risc_size, bt->risc_cpu,
bt                 77 drivers/media/pci/bt8xx/bt878.c 				    bt->risc_dma);
bt                 78 drivers/media/pci/bt8xx/bt878.c 		bt->risc_cpu = NULL;
bt                 82 drivers/media/pci/bt8xx/bt878.c static int bt878_mem_alloc(struct bt878 *bt)
bt                 84 drivers/media/pci/bt8xx/bt878.c 	if (!bt->buf_cpu) {
bt                 85 drivers/media/pci/bt8xx/bt878.c 		bt->buf_size = 128 * 1024;
bt                 87 drivers/media/pci/bt8xx/bt878.c 		bt->buf_cpu = pci_zalloc_consistent(bt->dev, bt->buf_size,
bt                 88 drivers/media/pci/bt8xx/bt878.c 						    &bt->buf_dma);
bt                 89 drivers/media/pci/bt8xx/bt878.c 		if (!bt->buf_cpu)
bt                 93 drivers/media/pci/bt8xx/bt878.c 	if (!bt->risc_cpu) {
bt                 94 drivers/media/pci/bt8xx/bt878.c 		bt->risc_size = PAGE_SIZE;
bt                 95 drivers/media/pci/bt8xx/bt878.c 		bt->risc_cpu = pci_zalloc_consistent(bt->dev, bt->risc_size,
bt                 96 drivers/media/pci/bt8xx/bt878.c 						     &bt->risc_dma);
bt                 97 drivers/media/pci/bt8xx/bt878.c 		if (!bt->risc_cpu) {
bt                 98 drivers/media/pci/bt8xx/bt878.c 			bt878_mem_free(bt);
bt                120 drivers/media/pci/bt8xx/bt878.c #define RISC_FLUSH()		bt->risc_pos = 0
bt                121 drivers/media/pci/bt8xx/bt878.c #define RISC_INSTR(instr)	bt->risc_cpu[bt->risc_pos++] = cpu_to_le32(instr)
bt                123 drivers/media/pci/bt8xx/bt878.c static int bt878_make_risc(struct bt878 *bt)
bt                125 drivers/media/pci/bt8xx/bt878.c 	bt->block_bytes = bt->buf_size >> 4;
bt                126 drivers/media/pci/bt8xx/bt878.c 	bt->block_count = 1 << 4;
bt                127 drivers/media/pci/bt8xx/bt878.c 	bt->line_bytes = bt->block_bytes;
bt                128 drivers/media/pci/bt8xx/bt878.c 	bt->line_count = bt->block_count;
bt                130 drivers/media/pci/bt8xx/bt878.c 	while (bt->line_bytes > 4095) {
bt                131 drivers/media/pci/bt8xx/bt878.c 		bt->line_bytes >>= 1;
bt                132 drivers/media/pci/bt8xx/bt878.c 		bt->line_count <<= 1;
bt                135 drivers/media/pci/bt8xx/bt878.c 	if (bt->line_count > 255) {
bt                143 drivers/media/pci/bt8xx/bt878.c static void bt878_risc_program(struct bt878 *bt, u32 op_sync_orin)
bt                153 drivers/media/pci/bt8xx/bt878.c 			bt->line_count, bt->line_bytes);
bt                154 drivers/media/pci/bt8xx/bt878.c 	for (line = 0; line < bt->line_count; line++) {
bt                156 drivers/media/pci/bt8xx/bt878.c 		if (!(buf_pos % bt->block_bytes))
bt                160 drivers/media/pci/bt8xx/bt878.c 						 bt->block_bytes) +
bt                161 drivers/media/pci/bt8xx/bt878.c 						(bt->block_count -
bt                163 drivers/media/pci/bt8xx/bt878.c 					       bt->block_count) | bt->
bt                167 drivers/media/pci/bt8xx/bt878.c 				   bt->line_bytes);
bt                168 drivers/media/pci/bt8xx/bt878.c 		RISC_INSTR(bt->buf_dma + buf_pos);
bt                169 drivers/media/pci/bt8xx/bt878.c 		buf_pos += bt->line_bytes;
bt                176 drivers/media/pci/bt8xx/bt878.c 	RISC_INSTR(bt->risc_dma);
bt                178 drivers/media/pci/bt8xx/bt878.c 	btwrite((bt->line_count << 16) | bt->line_bytes, BT878_APACK_LEN);
bt                185 drivers/media/pci/bt8xx/bt878.c void bt878_start(struct bt878 *bt, u32 controlreg, u32 op_sync_orin,
bt                194 drivers/media/pci/bt8xx/bt878.c 	bt878_risc_program(bt, op_sync_orin);
bt                198 drivers/media/pci/bt8xx/bt878.c 	btwrite(bt->risc_dma, BT878_ARISC_START);
bt                219 drivers/media/pci/bt8xx/bt878.c void bt878_stop(struct bt878 *bt)
bt                237 drivers/media/pci/bt8xx/bt878.c 		bt->nr, i, stat);
bt                251 drivers/media/pci/bt8xx/bt878.c 	struct bt878 *bt;
bt                253 drivers/media/pci/bt8xx/bt878.c 	bt = (struct bt878 *) dev_id;
bt                269 drivers/media/pci/bt8xx/bt878.c 				       bt->nr,
bt                280 drivers/media/pci/bt8xx/bt878.c 				     bt->nr,
bt                293 drivers/media/pci/bt8xx/bt878.c 				     bt->nr,
bt                302 drivers/media/pci/bt8xx/bt878.c 			bt->finished_block = (stat & BT878_ARISCS) >> 28;
bt                303 drivers/media/pci/bt8xx/bt878.c 			tasklet_schedule(&bt->tasklet);
bt                311 drivers/media/pci/bt8xx/bt878.c 			       bt->nr);
bt                319 drivers/media/pci/bt8xx/bt878.c bt878_device_control(struct bt878 *bt, unsigned int cmd, union dst_gpio_packet *mp)
bt                324 drivers/media/pci/bt8xx/bt878.c 	if (mutex_lock_interruptible(&bt->gpio_lock))
bt                330 drivers/media/pci/bt8xx/bt878.c 		retval = bttv_gpio_enable(bt->bttv_nr,
bt                336 drivers/media/pci/bt8xx/bt878.c 		retval = bttv_write_gpio(bt->bttv_nr,
bt                343 drivers/media/pci/bt8xx/bt878.c 		retval =  bttv_read_gpio(bt->bttv_nr, &mp->rd.value);
bt                348 drivers/media/pci/bt8xx/bt878.c 		bt->TS_Size = mp->psize;
bt                355 drivers/media/pci/bt8xx/bt878.c 	mutex_unlock(&bt->gpio_lock);
bt                401 drivers/media/pci/bt8xx/bt878.c 	struct bt878 *bt;
bt                419 drivers/media/pci/bt8xx/bt878.c 	bt = &bt878[bt878_num];
bt                420 drivers/media/pci/bt8xx/bt878.c 	bt->dev = dev;
bt                421 drivers/media/pci/bt8xx/bt878.c 	bt->nr = bt878_num;
bt                422 drivers/media/pci/bt8xx/bt878.c 	bt->shutdown = 0;
bt                424 drivers/media/pci/bt8xx/bt878.c 	bt->id = dev->device;
bt                425 drivers/media/pci/bt8xx/bt878.c 	bt->irq = dev->irq;
bt                426 drivers/media/pci/bt8xx/bt878.c 	bt->bt878_adr = pci_resource_start(dev, 0);
bt                433 drivers/media/pci/bt8xx/bt878.c 	bt->revision = dev->revision;
bt                438 drivers/media/pci/bt8xx/bt878.c 	       bt878_num, bt->id, bt->revision, dev->bus->number,
bt                441 drivers/media/pci/bt8xx/bt878.c 	       bt->irq, lat, bt->bt878_adr);
bt                444 drivers/media/pci/bt8xx/bt878.c 	bt->bt878_mem = (unsigned char *) bt->bt878_adr;
bt                446 drivers/media/pci/bt8xx/bt878.c 	bt->bt878_mem = ioremap(bt->bt878_adr, 0x1000);
bt                452 drivers/media/pci/bt8xx/bt878.c 	result = request_irq(bt->irq, bt878_irq,
bt                453 drivers/media/pci/bt8xx/bt878.c 			     IRQF_SHARED, "bt878", (void *) bt);
bt                462 drivers/media/pci/bt8xx/bt878.c 		       bt878_num, bt->irq);
bt                469 drivers/media/pci/bt8xx/bt878.c 	pci_set_drvdata(dev, bt);
bt                471 drivers/media/pci/bt8xx/bt878.c 	if ((result = bt878_mem_alloc(bt))) {
bt                476 drivers/media/pci/bt8xx/bt878.c 	bt878_make_risc(bt);
bt                483 drivers/media/pci/bt8xx/bt878.c 	free_irq(bt->irq, bt);
bt                485 drivers/media/pci/bt8xx/bt878.c 	release_mem_region(pci_resource_start(bt->dev, 0),
bt                486 drivers/media/pci/bt8xx/bt878.c 			   pci_resource_len(bt->dev, 0));
bt                495 drivers/media/pci/bt8xx/bt878.c 	struct bt878 *bt = pci_get_drvdata(pci_dev);
bt                498 drivers/media/pci/bt8xx/bt878.c 		printk(KERN_INFO "bt878(%d): unloading\n", bt->nr);
bt                508 drivers/media/pci/bt8xx/bt878.c 	pci_read_config_byte(bt->dev, PCI_COMMAND, &command);
bt                511 drivers/media/pci/bt8xx/bt878.c 	pci_write_config_byte(bt->dev, PCI_COMMAND, command);
bt                513 drivers/media/pci/bt8xx/bt878.c 	free_irq(bt->irq, bt);
bt                514 drivers/media/pci/bt8xx/bt878.c 	printk(KERN_DEBUG "bt878_mem: 0x%p.\n", bt->bt878_mem);
bt                515 drivers/media/pci/bt8xx/bt878.c 	if (bt->bt878_mem)
bt                516 drivers/media/pci/bt8xx/bt878.c 		iounmap(bt->bt878_mem);
bt                518 drivers/media/pci/bt8xx/bt878.c 	release_mem_region(pci_resource_start(bt->dev, 0),
bt                519 drivers/media/pci/bt8xx/bt878.c 			   pci_resource_len(bt->dev, 0));
bt                524 drivers/media/pci/bt8xx/bt878.c 	bt->shutdown = 1;
bt                525 drivers/media/pci/bt8xx/bt878.c 	bt878_mem_free(bt);
bt                129 drivers/media/pci/bt8xx/bt878.h void bt878_start(struct bt878 *bt, u32 controlreg, u32 op_sync_orin,
bt                131 drivers/media/pci/bt8xx/bt878.h void bt878_stop(struct bt878 *bt);
bt                 52 drivers/media/pci/bt8xx/dst.c 	bt878_device_control(state->bt, DST_IG_TS, &bits);
bt                 67 drivers/media/pci/bt8xx/dst.c 	if ((err = bt878_device_control(state->bt, DST_IG_ENABLE, &enb)) < 0) {
bt                 80 drivers/media/pci/bt8xx/dst.c 	if ((err = bt878_device_control(state->bt, DST_IG_WRITE, &bits)) < 0) {
bt                 95 drivers/media/pci/bt8xx/dst.c 	if ((err = bt878_device_control(state->bt, DST_IG_READ, &rd_packet)) < 0) {
bt                 89 drivers/media/pci/bt8xx/dst_common.h 	struct bt878* bt;
bt                 36 drivers/media/pci/bt8xx/dst_priv.h int bt878_device_control(struct bt878 *bt, unsigned int cmd, union dst_gpio_packet *mp);
bt                 46 drivers/media/pci/bt8xx/dvb-bt8xx.c 	dprintk("%d\n", card->bt->finished_block);
bt                 48 drivers/media/pci/bt8xx/dvb-bt8xx.c 	while (card->bt->last_block != card->bt->finished_block) {
bt                 49 drivers/media/pci/bt8xx/dvb-bt8xx.c 		(card->bt->TS_Size ? dvb_dmx_swfilter_204 : dvb_dmx_swfilter)
bt                 51 drivers/media/pci/bt8xx/dvb-bt8xx.c 			 &card->bt->buf_cpu[card->bt->last_block *
bt                 52 drivers/media/pci/bt8xx/dvb-bt8xx.c 					    card->bt->block_bytes],
bt                 53 drivers/media/pci/bt8xx/dvb-bt8xx.c 			 card->bt->block_bytes);
bt                 54 drivers/media/pci/bt8xx/dvb-bt8xx.c 		card->bt->last_block = (card->bt->last_block + 1) %
bt                 55 drivers/media/pci/bt8xx/dvb-bt8xx.c 					card->bt->block_count;
bt                 74 drivers/media/pci/bt8xx/dvb-bt8xx.c 		bt878_start(card->bt, card->gpio_mode,
bt                 93 drivers/media/pci/bt8xx/dvb-bt8xx.c 		bt878_stop(card->bt);
bt                304 drivers/media/pci/bt8xx/dvb-bt8xx.c 	struct dvb_bt8xx_card* bt = (struct dvb_bt8xx_card*) fe->dvb->priv;
bt                306 drivers/media/pci/bt8xx/dvb-bt8xx.c 	return request_firmware(fw, name, &bt->bt->dev->dev);
bt                402 drivers/media/pci/bt8xx/dvb-bt8xx.c 	struct dvb_bt8xx_card* bt = (struct dvb_bt8xx_card*) fe->dvb->priv;
bt                404 drivers/media/pci/bt8xx/dvb-bt8xx.c 	return request_firmware(fw, name, &bt->bt->dev->dev);
bt                409 drivers/media/pci/bt8xx/dvb-bt8xx.c 	struct dvb_bt8xx_card *bt = fe->dvb->priv;
bt                410 drivers/media/pci/bt8xx/dvb-bt8xx.c 	bttv_write_gpio(bt->bttv_nr, 0x0002, mode);   /* Reset */
bt                416 drivers/media/pci/bt8xx/dvb-bt8xx.c 	struct dvb_bt8xx_card *bt = fe->dvb->priv;
bt                428 drivers/media/pci/bt8xx/dvb-bt8xx.c 	int ret = bttv_gpio_enable(bt->bttv_nr, 0x001F, 0x001F);
bt                431 drivers/media/pci/bt8xx/dvb-bt8xx.c 	bttv_write_gpio(bt->bttv_nr, 0x001F, 0x0000);   /* Reset */
bt                434 drivers/media/pci/bt8xx/dvb-bt8xx.c 	bttv_write_gpio(bt->bttv_nr, 0x0001F, 0x0001);
bt                441 drivers/media/pci/bt8xx/dvb-bt8xx.c 	struct dvb_bt8xx_card *bt = fe->dvb->priv;
bt                442 drivers/media/pci/bt8xx/dvb-bt8xx.c 	bttv_write_gpio(bt->bttv_nr, 0x0001, 0x0000);
bt                536 drivers/media/pci/bt8xx/dvb-bt8xx.c static void digitv_alps_tded4_reset(struct dvb_bt8xx_card *bt)
bt                545 drivers/media/pci/bt8xx/dvb-bt8xx.c 	int ret = bttv_gpio_enable(bt->bttv_nr, 0x08, 0x08);
bt                551 drivers/media/pci/bt8xx/dvb-bt8xx.c 	bttv_write_gpio(bt->bttv_nr, 0x08, 0x08); /* High */
bt                552 drivers/media/pci/bt8xx/dvb-bt8xx.c 	bttv_write_gpio(bt->bttv_nr, 0x08, 0x00); /* Low  */
bt                555 drivers/media/pci/bt8xx/dvb-bt8xx.c 	bttv_write_gpio(bt->bttv_nr, 0x08, 0x08); /* High */
bt                568 drivers/media/pci/bt8xx/dvb-bt8xx.c static void lgdt330x_reset(struct dvb_bt8xx_card *bt)
bt                573 drivers/media/pci/bt8xx/dvb-bt8xx.c 	bttv_write_gpio(bt->bttv_nr, 0x00e00007, 0x00000001); /* High */
bt                574 drivers/media/pci/bt8xx/dvb-bt8xx.c 	bttv_write_gpio(bt->bttv_nr, 0x00e00007, 0x00000000); /* Low  */
bt                577 drivers/media/pci/bt8xx/dvb-bt8xx.c 	bttv_write_gpio(bt->bttv_nr, 0x00e00007, 0x00000001); /* High */
bt                663 drivers/media/pci/bt8xx/dvb-bt8xx.c 		state->bt = card->bt;
bt                698 drivers/media/pci/bt8xx/dvb-bt8xx.c 		       card->bt->dev->vendor,
bt                699 drivers/media/pci/bt8xx/dvb-bt8xx.c 		       card->bt->dev->device,
bt                700 drivers/media/pci/bt8xx/dvb-bt8xx.c 		       card->bt->dev->subsystem_vendor,
bt                701 drivers/media/pci/bt8xx/dvb-bt8xx.c 		       card->bt->dev->subsystem_device);
bt                715 drivers/media/pci/bt8xx/dvb-bt8xx.c 				      THIS_MODULE, &card->bt->dev->dev,
bt                723 drivers/media/pci/bt8xx/dvb-bt8xx.c 	card->bt->adapter = card->i2c_adapter;
bt                780 drivers/media/pci/bt8xx/dvb-bt8xx.c 	tasklet_init(&card->bt->tasklet, dvb_bt8xx_task, (unsigned long) card);
bt                893 drivers/media/pci/bt8xx/dvb-bt8xx.c 	if (!(card->bt = dvb_bt8xx_878_match(card->bttv_nr, bttv_pci_dev))) {
bt                901 drivers/media/pci/bt8xx/dvb-bt8xx.c 	mutex_init(&card->bt->gpio_lock);
bt                902 drivers/media/pci/bt8xx/dvb-bt8xx.c 	card->bt->bttv_nr = sub->core->nr;
bt                919 drivers/media/pci/bt8xx/dvb-bt8xx.c 	bt878_stop(card->bt);
bt                920 drivers/media/pci/bt8xx/dvb-bt8xx.c 	tasklet_kill(&card->bt->tasklet);
bt                 34 drivers/media/pci/bt8xx/dvb-bt8xx.h 	struct bt878 *bt;
bt                 72 drivers/media/pci/cobalt/cobalt-irq.c 				ioread32(&vmr->vactive_area) != s->timings.bt.height ||
bt                 73 drivers/media/pci/cobalt/cobalt-irq.c 				ioread32(&vmr->hactive_area) != s->timings.bt.width) {
bt                144 drivers/media/pci/cobalt/cobalt-v4l2.c 	struct v4l2_bt_timings *bt = &s->timings.bt;
bt                152 drivers/media/pci/cobalt/cobalt-v4l2.c 	u64 clk = bt->pixelclock;
bt                154 drivers/media/pci/cobalt/cobalt-v4l2.c 	if (bt->flags & V4L2_DV_FL_REDUCED_FPS)
bt                165 drivers/media/pci/cobalt/cobalt-v4l2.c 	sd_fmt.format.width = bt->width;
bt                166 drivers/media/pci/cobalt/cobalt-v4l2.c 	sd_fmt.format.height = bt->height;
bt                181 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(bt->hsync, &vo->sync_generator_h_sync_length);
bt                182 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(bt->hbackporch, &vo->sync_generator_h_backporch_length);
bt                183 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(bt->width, &vo->sync_generator_h_active_length);
bt                184 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(bt->hfrontporch, &vo->sync_generator_h_frontporch_length);
bt                185 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(bt->vsync, &vo->sync_generator_v_sync_length);
bt                186 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(bt->vbackporch, &vo->sync_generator_v_backporch_length);
bt                187 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(bt->height, &vo->sync_generator_v_active_length);
bt                188 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(bt->vfrontporch, &vo->sync_generator_v_frontporch_length);
bt                289 drivers/media/pci/cobalt/cobalt-v4l2.c 	struct v4l2_bt_timings *bt = &s->timings.bt;
bt                309 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(bt->width, &cvi->frame_width);
bt                310 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(bt->height, &cvi->frame_height);
bt                311 drivers/media/pci/cobalt/cobalt-v4l2.c 	tot_size = V4L2_DV_BT_FRAME_WIDTH(bt) * V4L2_DV_BT_FRAME_HEIGHT(bt);
bt                312 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(div_u64((u64)V4L2_DV_BT_FRAME_WIDTH(bt) * COBALT_CLK * 4,
bt                313 drivers/media/pci/cobalt/cobalt-v4l2.c 			  bt->pixelclock), &vmr->hsync_timeout_val);
bt                319 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(div_u64(bt->pixelclock * 995, 1000000000),
bt                322 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(bt->width * bt->height, &fw->active_length);
bt                323 drivers/media/pci/cobalt/cobalt-v4l2.c 	iowrite32(div_u64((u64)clk_freq * tot_size, bt->pixelclock),
bt                643 drivers/media/pci/cobalt/cobalt-v4l2.c 		s->width = timings->bt.width;
bt                644 drivers/media/pci/cobalt/cobalt-v4l2.c 		s->height = timings->bt.height;
bt                645 drivers/media/pci/cobalt/cobalt-v4l2.c 		s->stride = timings->bt.width * s->bpp;
bt               1111 drivers/media/pci/cobalt/cobalt-v4l2.c 		sel->r.width = timings.bt.width;
bt               1112 drivers/media/pci/cobalt/cobalt-v4l2.c 		sel->r.height = timings.bt.height;
bt                364 drivers/media/platform/aspeed-video.c 	.bt = {
bt               1139 drivers/media/platform/aspeed-video.c 	if (timings->bt.width == video->active_timings.width &&
bt               1140 drivers/media/platform/aspeed-video.c 	    timings->bt.height == video->active_timings.height)
bt               1146 drivers/media/platform/aspeed-video.c 	video->active_timings = timings->bt;
bt               1150 drivers/media/platform/aspeed-video.c 	video->pix_fmt.width = timings->bt.width;
bt               1151 drivers/media/platform/aspeed-video.c 	video->pix_fmt.height = timings->bt.height;
bt               1165 drivers/media/platform/aspeed-video.c 	timings->bt = video->active_timings;
bt               1193 drivers/media/platform/aspeed-video.c 	timings->bt = video->detected_timings;
bt                482 drivers/media/platform/davinci/vpbe_venc.c 	u32 height = dv_timings->bt.height;
bt               1170 drivers/media/platform/davinci/vpif_capture.c 	struct v4l2_bt_timings *bt = &vid_ch->dv_timings.bt;
bt               1200 drivers/media/platform/davinci/vpif_capture.c 	if (!(timings->bt.width && timings->bt.height &&
bt               1201 drivers/media/platform/davinci/vpif_capture.c 				(timings->bt.hbackporch ||
bt               1202 drivers/media/platform/davinci/vpif_capture.c 				 timings->bt.hfrontporch ||
bt               1203 drivers/media/platform/davinci/vpif_capture.c 				 timings->bt.hsync) &&
bt               1204 drivers/media/platform/davinci/vpif_capture.c 				timings->bt.vfrontporch &&
bt               1205 drivers/media/platform/davinci/vpif_capture.c 				(timings->bt.vbackporch ||
bt               1206 drivers/media/platform/davinci/vpif_capture.c 				 timings->bt.vsync))) {
bt               1215 drivers/media/platform/davinci/vpif_capture.c 	std_info->eav2sav = V4L2_DV_BT_BLANKING_WIDTH(bt) - 8;
bt               1216 drivers/media/platform/davinci/vpif_capture.c 	std_info->sav2eav = bt->width;
bt               1219 drivers/media/platform/davinci/vpif_capture.c 	std_info->l3 = bt->vsync + bt->vbackporch + 1;
bt               1221 drivers/media/platform/davinci/vpif_capture.c 	std_info->vsize = V4L2_DV_BT_FRAME_HEIGHT(bt);
bt               1222 drivers/media/platform/davinci/vpif_capture.c 	if (bt->interlaced) {
bt               1223 drivers/media/platform/davinci/vpif_capture.c 		if (bt->il_vbackporch || bt->il_vfrontporch || bt->il_vsync) {
bt               1225 drivers/media/platform/davinci/vpif_capture.c 				(bt->vfrontporch - 1);
bt               1227 drivers/media/platform/davinci/vpif_capture.c 			std_info->l9 = std_info->l7 + bt->il_vsync +
bt               1228 drivers/media/platform/davinci/vpif_capture.c 				bt->il_vbackporch + 1;
bt               1230 drivers/media/platform/davinci/vpif_capture.c 				(bt->il_vfrontporch - 1);
bt               1236 drivers/media/platform/davinci/vpif_capture.c 		std_info->l5 = std_info->vsize - (bt->vfrontporch - 1);
bt               1240 drivers/media/platform/davinci/vpif_capture.c 	std_info->width = bt->width;
bt               1241 drivers/media/platform/davinci/vpif_capture.c 	std_info->height = bt->height;
bt               1242 drivers/media/platform/davinci/vpif_capture.c 	std_info->frm_fmt = bt->interlaced ? 0 : 1;
bt                464 drivers/media/platform/davinci/vpif_display.c 	if (!vid_ch->stdid && !vid_ch->dv_timings.bt.height)
bt                916 drivers/media/platform/davinci/vpif_display.c 	struct v4l2_bt_timings *bt = &vid_ch->dv_timings.bt;
bt                946 drivers/media/platform/davinci/vpif_display.c 	if (!(timings->bt.width && timings->bt.height &&
bt                947 drivers/media/platform/davinci/vpif_display.c 				(timings->bt.hbackporch ||
bt                948 drivers/media/platform/davinci/vpif_display.c 				 timings->bt.hfrontporch ||
bt                949 drivers/media/platform/davinci/vpif_display.c 				 timings->bt.hsync) &&
bt                950 drivers/media/platform/davinci/vpif_display.c 				timings->bt.vfrontporch &&
bt                951 drivers/media/platform/davinci/vpif_display.c 				(timings->bt.vbackporch ||
bt                952 drivers/media/platform/davinci/vpif_display.c 				 timings->bt.vsync))) {
bt                961 drivers/media/platform/davinci/vpif_display.c 	std_info->eav2sav = V4L2_DV_BT_BLANKING_WIDTH(bt) - 8;
bt                962 drivers/media/platform/davinci/vpif_display.c 	std_info->sav2eav = bt->width;
bt                965 drivers/media/platform/davinci/vpif_display.c 	std_info->l3 = bt->vsync + bt->vbackporch + 1;
bt                967 drivers/media/platform/davinci/vpif_display.c 	std_info->vsize = V4L2_DV_BT_FRAME_HEIGHT(bt);
bt                968 drivers/media/platform/davinci/vpif_display.c 	if (bt->interlaced) {
bt                969 drivers/media/platform/davinci/vpif_display.c 		if (bt->il_vbackporch || bt->il_vfrontporch || bt->il_vsync) {
bt                971 drivers/media/platform/davinci/vpif_display.c 				(bt->vfrontporch - 1);
bt                973 drivers/media/platform/davinci/vpif_display.c 			std_info->l9 = std_info->l7 + bt->il_vsync +
bt                974 drivers/media/platform/davinci/vpif_display.c 				bt->il_vbackporch + 1;
bt                976 drivers/media/platform/davinci/vpif_display.c 				(bt->il_vfrontporch - 1);
bt                982 drivers/media/platform/davinci/vpif_display.c 		std_info->l5 = std_info->vsize - (bt->vfrontporch - 1);
bt                986 drivers/media/platform/davinci/vpif_display.c 	std_info->width = bt->width;
bt                987 drivers/media/platform/davinci/vpif_display.c 	std_info->height = bt->height;
bt                988 drivers/media/platform/davinci/vpif_display.c 	std_info->frm_fmt = bt->interlaced ? 0 : 1;
bt                898 drivers/media/platform/vivid/vivid-core.c 	while (v4l2_dv_timings_presets[dev->query_dv_timings_size].bt.width)
bt                919 drivers/media/platform/vivid/vivid-core.c 		const struct v4l2_bt_timings *bt = &v4l2_dv_timings_presets[i].bt;
bt                925 drivers/media/platform/vivid/vivid-core.c 		htot = V4L2_DV_BT_FRAME_WIDTH(bt);
bt                926 drivers/media/platform/vivid/vivid-core.c 		vtot = V4L2_DV_BT_FRAME_HEIGHT(bt);
bt                928 drivers/media/platform/vivid/vivid-core.c 			bt->width, bt->height, bt->interlaced ? "i" : "p",
bt                929 drivers/media/platform/vivid/vivid-core.c 			(u32)bt->pixelclock / (htot * vtot));
bt                927 drivers/media/platform/vivid/vivid-ctrls.c 	struct v4l2_bt_timings *bt = &dev->dv_timings_out.bt;
bt                948 drivers/media/platform/vivid/vivid-ctrls.c 		if (!dev->dvi_d_out && (bt->flags & V4L2_DV_FL_IS_CE_VIDEO)) {
bt                949 drivers/media/platform/vivid/vivid-ctrls.c 			if (bt->width == 720 && bt->height <= 576)
bt                383 drivers/media/platform/vivid/vivid-vid-cap.c 	struct v4l2_bt_timings *bt = &dev->dv_timings_cap[dev->input].bt;
bt                412 drivers/media/platform/vivid/vivid-vid-cap.c 		dev->src_rect.width = bt->width;
bt                413 drivers/media/platform/vivid/vivid-vid-cap.c 		dev->src_rect.height = bt->height;
bt                414 drivers/media/platform/vivid/vivid-vid-cap.c 		size = V4L2_DV_BT_FRAME_WIDTH(bt) * V4L2_DV_BT_FRAME_HEIGHT(bt);
bt                415 drivers/media/platform/vivid/vivid-vid-cap.c 		if (dev->reduced_fps && can_reduce_fps(bt)) {
bt                416 drivers/media/platform/vivid/vivid-vid-cap.c 			pixelclock = div_u64(bt->pixelclock * 1000, 1001);
bt                417 drivers/media/platform/vivid/vivid-vid-cap.c 			bt->flags |= V4L2_DV_FL_REDUCED_FPS;
bt                419 drivers/media/platform/vivid/vivid-vid-cap.c 			pixelclock = bt->pixelclock;
bt                420 drivers/media/platform/vivid/vivid-vid-cap.c 			bt->flags &= ~V4L2_DV_FL_REDUCED_FPS;
bt                425 drivers/media/platform/vivid/vivid-vid-cap.c 		if (bt->interlaced)
bt                436 drivers/media/platform/vivid/vivid-vid-cap.c 		if (bt->flags & V4L2_DV_FL_IS_CE_VIDEO) {
bt                437 drivers/media/platform/vivid/vivid-vid-cap.c 			if (bt->width == 720 && bt->height <= 576)
bt                483 drivers/media/platform/vivid/vivid-vid-cap.c 		return dev->dv_timings_cap[dev->input].bt.interlaced ?
bt               1350 drivers/media/platform/vivid/vivid-vid-cap.c 	struct v4l2_bt_timings *bt = &dev->dv_timings_cap[dev->input].bt;
bt               1381 drivers/media/platform/vivid/vivid-vid-cap.c 			if (bt->flags & V4L2_DV_FL_IS_CE_VIDEO) {
bt               1653 drivers/media/platform/vivid/vivid-vid-cap.c 	struct v4l2_bt_timings *bt = &timings->bt;
bt               1662 drivers/media/platform/vivid/vivid-vid-cap.c 	total_h_pixel = V4L2_DV_BT_FRAME_WIDTH(bt);
bt               1663 drivers/media/platform/vivid/vivid-vid-cap.c 	total_v_lines = V4L2_DV_BT_FRAME_HEIGHT(bt);
bt               1665 drivers/media/platform/vivid/vivid-vid-cap.c 	h_freq = (u32)bt->pixelclock / total_h_pixel;
bt               1667 drivers/media/platform/vivid/vivid-vid-cap.c 	if (bt->standards == 0 || (bt->standards & V4L2_DV_BT_STD_CVT)) {
bt               1668 drivers/media/platform/vivid/vivid-vid-cap.c 		if (v4l2_detect_cvt(total_v_lines, h_freq, bt->vsync, bt->width,
bt               1669 drivers/media/platform/vivid/vivid-vid-cap.c 				    bt->polarities, bt->interlaced, timings))
bt               1673 drivers/media/platform/vivid/vivid-vid-cap.c 	if (bt->standards == 0 || (bt->standards & V4L2_DV_BT_STD_GTF)) {
bt               1676 drivers/media/platform/vivid/vivid-vid-cap.c 		find_aspect_ratio(bt->width, bt->height,
bt               1679 drivers/media/platform/vivid/vivid-vid-cap.c 		if (v4l2_detect_gtf(total_v_lines, h_freq, bt->vsync,
bt               1680 drivers/media/platform/vivid/vivid-vid-cap.c 				    bt->polarities, bt->interlaced,
bt               1725 drivers/media/platform/vivid/vivid-vid-cap.c 		timings->bt.pixelclock = vivid_dv_timings_cap.bt.max_pixelclock * 2;
bt                219 drivers/media/platform/vivid/vivid-vid-out.c 	struct v4l2_bt_timings *bt = &dev->dv_timings_out.bt;
bt                240 drivers/media/platform/vivid/vivid-vid-out.c 		dev->sink_rect.width = bt->width;
bt                241 drivers/media/platform/vivid/vivid-vid-out.c 		dev->sink_rect.height = bt->height;
bt                242 drivers/media/platform/vivid/vivid-vid-out.c 		size = V4L2_DV_BT_FRAME_WIDTH(bt) * V4L2_DV_BT_FRAME_HEIGHT(bt);
bt                244 drivers/media/platform/vivid/vivid-vid-out.c 		if (can_reduce_fps(bt) && (bt->flags & V4L2_DV_FL_REDUCED_FPS))
bt                245 drivers/media/platform/vivid/vivid-vid-out.c 			pixelclock = div_u64(bt->pixelclock * 1000, 1001);
bt                247 drivers/media/platform/vivid/vivid-vid-out.c 			pixelclock = bt->pixelclock;
bt                252 drivers/media/platform/vivid/vivid-vid-out.c 		if (bt->interlaced)
bt                256 drivers/media/platform/vivid/vivid-vid-out.c 		if (!dev->dvi_d_out && (bt->flags & V4L2_DV_FL_IS_CE_VIDEO)) {
bt                257 drivers/media/platform/vivid/vivid-vid-out.c 			if (bt->width == 720 && bt->height <= 576)
bt                298 drivers/media/platform/vivid/vivid-vid-out.c 		return dev->dv_timings_out.bt.interlaced ? V4L2_FIELD_ALTERNATE :
bt                353 drivers/media/platform/vivid/vivid-vid-out.c 	struct v4l2_bt_timings *bt = &dev->dv_timings_out.bt;
bt                430 drivers/media/platform/vivid/vivid-vid-out.c 	} else if (dev->dvi_d_out || !(bt->flags & V4L2_DV_FL_IS_CE_VIDEO)) {
bt                434 drivers/media/platform/vivid/vivid-vid-out.c 	} else if (bt->width == 720 && bt->height <= 576) {
bt               1150 drivers/media/platform/vivid/vivid-vid-out.c 	struct v4l2_bt_timings *bt = &timings->bt;
bt               1152 drivers/media/platform/vivid/vivid-vid-out.c 	if ((bt->standards & (V4L2_DV_BT_STD_CVT | V4L2_DV_BT_STD_GTF)) &&
bt                659 drivers/media/usb/hdpvr/hdpvr-video.c 	dev->width = hdpvr_dv_timings[i].bt.width;
bt                660 drivers/media/usb/hdpvr/hdpvr-video.c 	dev->height = hdpvr_dv_timings[i].bt.height;
bt                697 drivers/media/usb/hdpvr/hdpvr-video.c 		const struct v4l2_bt_timings *bt = &hdpvr_dv_timings[i].bt;
bt                702 drivers/media/usb/hdpvr/hdpvr-video.c 		hsize = V4L2_DV_BT_FRAME_WIDTH(bt);
bt                703 drivers/media/usb/hdpvr/hdpvr-video.c 		vsize = V4L2_DV_BT_FRAME_HEIGHT(bt);
bt                704 drivers/media/usb/hdpvr/hdpvr-video.c 		fps = (unsigned)bt->pixelclock / (hsize * vsize);
bt                705 drivers/media/usb/hdpvr/hdpvr-video.c 		if (bt->width != vid_info.width ||
bt                706 drivers/media/usb/hdpvr/hdpvr-video.c 		    bt->height != vid_info.height ||
bt                707 drivers/media/usb/hdpvr/hdpvr-video.c 		    bt->interlaced != interlaced ||
bt                745 drivers/media/usb/hdpvr/hdpvr-video.c 	cap->bt.min_width = 720;
bt                746 drivers/media/usb/hdpvr/hdpvr-video.c 	cap->bt.max_width = 1920;
bt                747 drivers/media/usb/hdpvr/hdpvr-video.c 	cap->bt.min_height = 480;
bt                748 drivers/media/usb/hdpvr/hdpvr-video.c 	cap->bt.max_height = 1080;
bt                749 drivers/media/usb/hdpvr/hdpvr-video.c 	cap->bt.min_pixelclock = 27000000;
bt                750 drivers/media/usb/hdpvr/hdpvr-video.c 	cap->bt.max_pixelclock = 74250000;
bt                751 drivers/media/usb/hdpvr/hdpvr-video.c 	cap->bt.standards = V4L2_DV_BT_STD_CEA861;
bt                752 drivers/media/usb/hdpvr/hdpvr-video.c 	cap->bt.capabilities = V4L2_DV_BT_CAP_INTERLACED | V4L2_DV_BT_CAP_PROGRESSIVE;
bt                145 drivers/media/v4l2-core/v4l2-dv-timings.c 	const struct v4l2_bt_timings *bt = &t->bt;
bt                146 drivers/media/v4l2-core/v4l2-dv-timings.c 	const struct v4l2_bt_timings_cap *cap = &dvcap->bt;
bt                152 drivers/media/v4l2-core/v4l2-dv-timings.c 	    bt->height < cap->min_height ||
bt                153 drivers/media/v4l2-core/v4l2-dv-timings.c 	    bt->height > cap->max_height ||
bt                154 drivers/media/v4l2-core/v4l2-dv-timings.c 	    bt->width < cap->min_width ||
bt                155 drivers/media/v4l2-core/v4l2-dv-timings.c 	    bt->width > cap->max_width ||
bt                156 drivers/media/v4l2-core/v4l2-dv-timings.c 	    bt->pixelclock < cap->min_pixelclock ||
bt                157 drivers/media/v4l2-core/v4l2-dv-timings.c 	    bt->pixelclock > cap->max_pixelclock ||
bt                159 drivers/media/v4l2-core/v4l2-dv-timings.c 	     cap->standards && bt->standards &&
bt                160 drivers/media/v4l2-core/v4l2-dv-timings.c 	     !(bt->standards & cap->standards)) ||
bt                161 drivers/media/v4l2-core/v4l2-dv-timings.c 	    (bt->interlaced && !(caps & V4L2_DV_BT_CAP_INTERLACED)) ||
bt                162 drivers/media/v4l2-core/v4l2-dv-timings.c 	    (!bt->interlaced && !(caps & V4L2_DV_BT_CAP_PROGRESSIVE)))
bt                176 drivers/media/v4l2-core/v4l2-dv-timings.c 	for (i = idx = 0; v4l2_dv_timings_presets[i].bt.width; i++) {
bt                199 drivers/media/v4l2-core/v4l2-dv-timings.c 	for (i = 0; i < v4l2_dv_timings_presets[i].bt.width; i++) {
bt                204 drivers/media/v4l2-core/v4l2-dv-timings.c 			u32 flags = t->bt.flags & V4L2_DV_FL_REDUCED_FPS;
bt                207 drivers/media/v4l2-core/v4l2-dv-timings.c 			if (can_reduce_fps(&t->bt))
bt                208 drivers/media/v4l2-core/v4l2-dv-timings.c 				t->bt.flags |= flags;
bt                221 drivers/media/v4l2-core/v4l2-dv-timings.c 	for (i = 0; i < v4l2_dv_timings_presets[i].bt.width; i++) {
bt                222 drivers/media/v4l2-core/v4l2-dv-timings.c 		const struct v4l2_bt_timings *bt =
bt                223 drivers/media/v4l2-core/v4l2-dv-timings.c 			&v4l2_dv_timings_presets[i].bt;
bt                225 drivers/media/v4l2-core/v4l2-dv-timings.c 		if ((bt->flags & V4L2_DV_FL_HAS_CEA861_VIC) &&
bt                226 drivers/media/v4l2-core/v4l2-dv-timings.c 		    bt->cea861_vic == vic) {
bt                251 drivers/media/v4l2-core/v4l2-dv-timings.c 	if (t1->bt.width == t2->bt.width &&
bt                252 drivers/media/v4l2-core/v4l2-dv-timings.c 	    t1->bt.height == t2->bt.height &&
bt                253 drivers/media/v4l2-core/v4l2-dv-timings.c 	    t1->bt.interlaced == t2->bt.interlaced &&
bt                254 drivers/media/v4l2-core/v4l2-dv-timings.c 	    t1->bt.polarities == t2->bt.polarities &&
bt                255 drivers/media/v4l2-core/v4l2-dv-timings.c 	    t1->bt.pixelclock >= t2->bt.pixelclock - pclock_delta &&
bt                256 drivers/media/v4l2-core/v4l2-dv-timings.c 	    t1->bt.pixelclock <= t2->bt.pixelclock + pclock_delta &&
bt                257 drivers/media/v4l2-core/v4l2-dv-timings.c 	    t1->bt.hfrontporch == t2->bt.hfrontporch &&
bt                258 drivers/media/v4l2-core/v4l2-dv-timings.c 	    t1->bt.hsync == t2->bt.hsync &&
bt                259 drivers/media/v4l2-core/v4l2-dv-timings.c 	    t1->bt.hbackporch == t2->bt.hbackporch &&
bt                260 drivers/media/v4l2-core/v4l2-dv-timings.c 	    t1->bt.vfrontporch == t2->bt.vfrontporch &&
bt                261 drivers/media/v4l2-core/v4l2-dv-timings.c 	    t1->bt.vsync == t2->bt.vsync &&
bt                262 drivers/media/v4l2-core/v4l2-dv-timings.c 	    t1->bt.vbackporch == t2->bt.vbackporch &&
bt                264 drivers/media/v4l2-core/v4l2-dv-timings.c 	     (t1->bt.flags & V4L2_DV_FL_REDUCED_FPS) ==
bt                265 drivers/media/v4l2-core/v4l2-dv-timings.c 		(t2->bt.flags & V4L2_DV_FL_REDUCED_FPS)) &&
bt                266 drivers/media/v4l2-core/v4l2-dv-timings.c 	    (!t1->bt.interlaced ||
bt                267 drivers/media/v4l2-core/v4l2-dv-timings.c 		(t1->bt.il_vfrontporch == t2->bt.il_vfrontporch &&
bt                268 drivers/media/v4l2-core/v4l2-dv-timings.c 		 t1->bt.il_vsync == t2->bt.il_vsync &&
bt                269 drivers/media/v4l2-core/v4l2-dv-timings.c 		 t1->bt.il_vbackporch == t2->bt.il_vbackporch)))
bt                278 drivers/media/v4l2-core/v4l2-dv-timings.c 	const struct v4l2_bt_timings *bt = &t->bt;
bt                285 drivers/media/v4l2-core/v4l2-dv-timings.c 	htot = V4L2_DV_BT_FRAME_WIDTH(bt);
bt                286 drivers/media/v4l2-core/v4l2-dv-timings.c 	vtot = V4L2_DV_BT_FRAME_HEIGHT(bt);
bt                287 drivers/media/v4l2-core/v4l2-dv-timings.c 	if (bt->interlaced)
bt                290 drivers/media/v4l2-core/v4l2-dv-timings.c 	fps = (htot * vtot) > 0 ? div_u64((100 * (u64)bt->pixelclock),
bt                297 drivers/media/v4l2-core/v4l2-dv-timings.c 		bt->width, bt->height, bt->interlaced ? "i" : "p",
bt                304 drivers/media/v4l2-core/v4l2-dv-timings.c 			dev_prefix, bt->hfrontporch,
bt                305 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->polarities & V4L2_DV_HSYNC_POS_POL) ? "+" : "-",
bt                306 drivers/media/v4l2-core/v4l2-dv-timings.c 			bt->hsync, bt->hbackporch);
bt                308 drivers/media/v4l2-core/v4l2-dv-timings.c 			dev_prefix, bt->vfrontporch,
bt                309 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->polarities & V4L2_DV_VSYNC_POS_POL) ? "+" : "-",
bt                310 drivers/media/v4l2-core/v4l2-dv-timings.c 			bt->vsync, bt->vbackporch);
bt                311 drivers/media/v4l2-core/v4l2-dv-timings.c 	if (bt->interlaced)
bt                313 drivers/media/v4l2-core/v4l2-dv-timings.c 			dev_prefix, bt->il_vfrontporch,
bt                314 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->polarities & V4L2_DV_VSYNC_POS_POL) ? "+" : "-",
bt                315 drivers/media/v4l2-core/v4l2-dv-timings.c 			bt->il_vsync, bt->il_vbackporch);
bt                316 drivers/media/v4l2-core/v4l2-dv-timings.c 	pr_info("%s: pixelclock: %llu\n", dev_prefix, bt->pixelclock);
bt                318 drivers/media/v4l2-core/v4l2-dv-timings.c 			dev_prefix, bt->flags,
bt                319 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->flags & V4L2_DV_FL_REDUCED_BLANKING) ?
bt                321 drivers/media/v4l2-core/v4l2-dv-timings.c 			((bt->flags & V4L2_DV_FL_REDUCED_BLANKING) &&
bt                322 drivers/media/v4l2-core/v4l2-dv-timings.c 			 bt->vsync == 8) ? " (V2)" : "",
bt                323 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->flags & V4L2_DV_FL_CAN_REDUCE_FPS) ?
bt                325 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->flags & V4L2_DV_FL_REDUCED_FPS) ?
bt                327 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->flags & V4L2_DV_FL_HALF_LINE) ?
bt                329 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->flags & V4L2_DV_FL_IS_CE_VIDEO) ?
bt                331 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->flags & V4L2_DV_FL_FIRST_FIELD_EXTRA_LINE) ?
bt                333 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->flags & V4L2_DV_FL_HAS_PICTURE_ASPECT) ?
bt                335 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->flags & V4L2_DV_FL_HAS_CEA861_VIC) ?
bt                337 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->flags & V4L2_DV_FL_HAS_HDMI_VIC) ?
bt                339 drivers/media/v4l2-core/v4l2-dv-timings.c 	pr_info("%s: standards (0x%x):%s%s%s%s%s\n", dev_prefix, bt->standards,
bt                340 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->standards & V4L2_DV_BT_STD_CEA861) ?  " CEA" : "",
bt                341 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->standards & V4L2_DV_BT_STD_DMT) ?  " DMT" : "",
bt                342 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->standards & V4L2_DV_BT_STD_CVT) ?  " CVT" : "",
bt                343 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->standards & V4L2_DV_BT_STD_GTF) ?  " GTF" : "",
bt                344 drivers/media/v4l2-core/v4l2-dv-timings.c 			(bt->standards & V4L2_DV_BT_STD_SDI) ?  " SDI" : "");
bt                345 drivers/media/v4l2-core/v4l2-dv-timings.c 	if (bt->flags & V4L2_DV_FL_HAS_PICTURE_ASPECT)
bt                347 drivers/media/v4l2-core/v4l2-dv-timings.c 			bt->picture_aspect.numerator,
bt                348 drivers/media/v4l2-core/v4l2-dv-timings.c 			bt->picture_aspect.denominator);
bt                349 drivers/media/v4l2-core/v4l2-dv-timings.c 	if (bt->flags & V4L2_DV_FL_HAS_CEA861_VIC)
bt                350 drivers/media/v4l2-core/v4l2-dv-timings.c 		pr_info("%s: CEA-861 VIC: %u\n", dev_prefix, bt->cea861_vic);
bt                351 drivers/media/v4l2-core/v4l2-dv-timings.c 	if (bt->flags & V4L2_DV_FL_HAS_HDMI_VIC)
bt                352 drivers/media/v4l2-core/v4l2-dv-timings.c 		pr_info("%s: HDMI VIC: %u\n", dev_prefix, bt->hdmi_vic);
bt                363 drivers/media/v4l2-core/v4l2-dv-timings.c 	if (!(t->bt.flags & V4L2_DV_FL_HAS_PICTURE_ASPECT))
bt                366 drivers/media/v4l2-core/v4l2-dv-timings.c 	ratio.numerator = t->bt.width * t->bt.picture_aspect.denominator;
bt                367 drivers/media/v4l2-core/v4l2-dv-timings.c 	ratio.denominator = t->bt.height * t->bt.picture_aspect.numerator;
bt                387 drivers/media/v4l2-core/v4l2-dv-timings.c 	const struct v4l2_bt_timings *bt = &t->bt;
bt                396 drivers/media/v4l2-core/v4l2-dv-timings.c 	htot = V4L2_DV_BT_FRAME_WIDTH(bt);
bt                397 drivers/media/v4l2-core/v4l2-dv-timings.c 	vtot = V4L2_DV_BT_FRAME_HEIGHT(bt);
bt                398 drivers/media/v4l2-core/v4l2-dv-timings.c 	pclk = bt->pixelclock;
bt                400 drivers/media/v4l2-core/v4l2-dv-timings.c 	if ((bt->flags & V4L2_DV_FL_CAN_DETECT_REDUCED_FPS) &&
bt                401 drivers/media/v4l2-core/v4l2-dv-timings.c 	    (bt->flags & V4L2_DV_FL_REDUCED_FPS))
bt                607 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.polarities = polarities;
bt                608 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.width = image_width;
bt                609 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.height = image_height;
bt                610 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.hfrontporch = h_fp;
bt                611 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.vfrontporch = v_fp;
bt                612 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.hsync = hsync;
bt                613 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.vsync = vsync;
bt                614 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.hbackporch = frame_width - image_width - h_fp - hsync;
bt                617 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.vbackporch = frame_height - image_height - v_fp - vsync;
bt                618 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.interlaced = V4L2_DV_PROGRESSIVE;
bt                620 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.vbackporch = (frame_height - image_height - 2 * v_fp -
bt                622 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.il_vbackporch = frame_height - image_height - 2 * v_fp -
bt                623 drivers/media/v4l2-core/v4l2-dv-timings.c 					2 * vsync - fmt->bt.vbackporch;
bt                624 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.il_vfrontporch = v_fp;
bt                625 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.il_vsync = vsync;
bt                626 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.flags |= V4L2_DV_FL_HALF_LINE;
bt                627 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.interlaced = V4L2_DV_INTERLACED;
bt                630 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.pixelclock = pix_clk;
bt                631 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.standards = V4L2_DV_BT_STD_CVT;
bt                634 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.flags |= V4L2_DV_FL_REDUCED_BLANKING;
bt                765 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.polarities = polarities;
bt                766 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.width = image_width;
bt                767 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.height = image_height;
bt                768 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.hfrontporch = h_fp;
bt                769 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.vfrontporch = v_fp;
bt                770 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.hsync = hsync;
bt                771 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.vsync = vsync;
bt                772 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.hbackporch = frame_width - image_width - h_fp - hsync;
bt                775 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.vbackporch = frame_height - image_height - v_fp - vsync;
bt                776 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.interlaced = V4L2_DV_PROGRESSIVE;
bt                778 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.vbackporch = (frame_height - image_height - 2 * v_fp -
bt                780 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.il_vbackporch = frame_height - image_height - 2 * v_fp -
bt                781 drivers/media/v4l2-core/v4l2-dv-timings.c 					2 * vsync - fmt->bt.vbackporch;
bt                782 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.il_vfrontporch = v_fp;
bt                783 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.il_vsync = vsync;
bt                784 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.flags |= V4L2_DV_FL_HALF_LINE;
bt                785 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.interlaced = V4L2_DV_INTERLACED;
bt                788 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.pixelclock = pix_clk;
bt                789 drivers/media/v4l2-core/v4l2-dv-timings.c 	fmt->bt.standards = V4L2_DV_BT_STD_GTF;
bt                792 drivers/media/v4l2-core/v4l2-dv-timings.c 		fmt->bt.flags |= V4L2_DV_FL_REDUCED_BLANKING;
bt                711 drivers/media/v4l2-core/v4l2-ioctl.c 				p->bt.interlaced, p->bt.pixelclock,
bt                712 drivers/media/v4l2-core/v4l2-ioctl.c 				p->bt.width, p->bt.height,
bt                713 drivers/media/v4l2-core/v4l2-ioctl.c 				p->bt.polarities, p->bt.hfrontporch,
bt                714 drivers/media/v4l2-core/v4l2-ioctl.c 				p->bt.hsync, p->bt.hbackporch,
bt                715 drivers/media/v4l2-core/v4l2-ioctl.c 				p->bt.vfrontporch, p->bt.vsync,
bt                716 drivers/media/v4l2-core/v4l2-ioctl.c 				p->bt.vbackporch, p->bt.il_vfrontporch,
bt                717 drivers/media/v4l2-core/v4l2-ioctl.c 				p->bt.il_vsync, p->bt.il_vbackporch,
bt                718 drivers/media/v4l2-core/v4l2-ioctl.c 				p->bt.standards, p->bt.flags);
bt                741 drivers/media/v4l2-core/v4l2-ioctl.c 			p->bt.min_width, p->bt.max_width,
bt                742 drivers/media/v4l2-core/v4l2-ioctl.c 			p->bt.min_height, p->bt.max_height,
bt                743 drivers/media/v4l2-core/v4l2-ioctl.c 			p->bt.min_pixelclock, p->bt.max_pixelclock,
bt                744 drivers/media/v4l2-core/v4l2-ioctl.c 			p->bt.standards, p->bt.capabilities);
bt               2762 drivers/media/v4l2-core/v4l2-ioctl.c 	IOCTL_INFO(VIDIOC_S_DV_TIMINGS, v4l_stub_s_dv_timings, v4l_print_dv_timings, INFO_FL_PRIO | INFO_FL_CLEAR(v4l2_dv_timings, bt.flags)),
bt               1129 drivers/mtd/nand/raw/nandsim.c static inline void accept_addr_byte(struct nandsim *ns, u_char bt)
bt               1131 drivers/mtd/nand/raw/nandsim.c 	uint byte = (uint)bt;
bt                355 drivers/net/can/at91_can.c 	const struct can_bittiming *bt = &priv->can.bittiming;
bt                359 drivers/net/can/at91_can.c 		((bt->brp - 1) << 16) | ((bt->sjw - 1) << 12) |
bt                360 drivers/net/can/at91_can.c 		((bt->prop_seg - 1) << 8) | ((bt->phase_seg1 - 1) << 4) |
bt                361 drivers/net/can/at91_can.c 		((bt->phase_seg2 - 1) << 0);
bt                519 drivers/net/can/c_can/c_can.c 	const struct can_bittiming *bt = &priv->can.bittiming;
bt                523 drivers/net/can/c_can/c_can.c 	ten_bit_brp = bt->brp - 1;
bt                527 drivers/net/can/c_can/c_can.c 	sjw = bt->sjw - 1;
bt                528 drivers/net/can/c_can/c_can.c 	tseg1 = bt->prop_seg + bt->phase_seg1 - 1;
bt                529 drivers/net/can/c_can/c_can.c 	tseg2 = bt->phase_seg2 - 1;
bt                357 drivers/net/can/cc770/cc770.c 	struct can_bittiming *bt = &priv->can.bittiming;
bt                360 drivers/net/can/cc770/cc770.c 	btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6);
bt                361 drivers/net/can/cc770/cc770.c 	btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) |
bt                362 drivers/net/can/cc770/cc770.c 		(((bt->phase_seg2 - 1) & 0x7) << 4);
bt                118 drivers/net/can/dev.c static int can_calc_bittiming(struct net_device *dev, struct can_bittiming *bt,
bt                134 drivers/net/can/dev.c 	if (bt->sample_point) {
bt                135 drivers/net/can/dev.c 		sample_point_nominal = bt->sample_point;
bt                137 drivers/net/can/dev.c 		if (bt->bitrate > 800000)
bt                139 drivers/net/can/dev.c 		else if (bt->bitrate > 500000)
bt                151 drivers/net/can/dev.c 		brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2;
bt                159 drivers/net/can/dev.c 		bitrate_error = abs(bt->bitrate - bitrate);
bt                186 drivers/net/can/dev.c 		do_div(v64, bt->bitrate);
bt                199 drivers/net/can/dev.c 	bt->sample_point = can_update_sample_point(btc, sample_point_nominal,
bt                205 drivers/net/can/dev.c 	bt->tq = (u32)v64;
bt                206 drivers/net/can/dev.c 	bt->prop_seg = tseg1 / 2;
bt                207 drivers/net/can/dev.c 	bt->phase_seg1 = tseg1 - bt->prop_seg;
bt                208 drivers/net/can/dev.c 	bt->phase_seg2 = tseg2;
bt                211 drivers/net/can/dev.c 	if (!bt->sjw || !btc->sjw_max) {
bt                212 drivers/net/can/dev.c 		bt->sjw = 1;
bt                215 drivers/net/can/dev.c 		if (bt->sjw > btc->sjw_max)
bt                216 drivers/net/can/dev.c 			bt->sjw = btc->sjw_max;
bt                218 drivers/net/can/dev.c 		if (tseg2 < bt->sjw)
bt                219 drivers/net/can/dev.c 			bt->sjw = tseg2;
bt                222 drivers/net/can/dev.c 	bt->brp = best_brp;
bt                225 drivers/net/can/dev.c 	bt->bitrate = priv->clock.freq /
bt                226 drivers/net/can/dev.c 		(bt->brp * (CAN_CALC_SYNC_SEG + tseg1 + tseg2));
bt                231 drivers/net/can/dev.c static int can_calc_bittiming(struct net_device *dev, struct can_bittiming *bt,
bt                244 drivers/net/can/dev.c static int can_fixup_bittiming(struct net_device *dev, struct can_bittiming *bt,
bt                251 drivers/net/can/dev.c 	tseg1 = bt->prop_seg + bt->phase_seg1;
bt                252 drivers/net/can/dev.c 	if (!bt->sjw)
bt                253 drivers/net/can/dev.c 		bt->sjw = 1;
bt                254 drivers/net/can/dev.c 	if (bt->sjw > btc->sjw_max ||
bt                256 drivers/net/can/dev.c 	    bt->phase_seg2 < btc->tseg2_min || bt->phase_seg2 > btc->tseg2_max)
bt                259 drivers/net/can/dev.c 	brp64 = (u64)priv->clock.freq * (u64)bt->tq;
bt                266 drivers/net/can/dev.c 	bt->brp = (u32)brp64;
bt                268 drivers/net/can/dev.c 	if (bt->brp < btc->brp_min || bt->brp > btc->brp_max)
bt                271 drivers/net/can/dev.c 	alltseg = bt->prop_seg + bt->phase_seg1 + bt->phase_seg2 + 1;
bt                272 drivers/net/can/dev.c 	bt->bitrate = priv->clock.freq / (bt->brp * alltseg);
bt                273 drivers/net/can/dev.c 	bt->sample_point = ((tseg1 + 1) * 1000) / alltseg;
bt                280 drivers/net/can/dev.c can_validate_bitrate(struct net_device *dev, struct can_bittiming *bt,
bt                288 drivers/net/can/dev.c 		if (bt->bitrate == bitrate_const[i])
bt                298 drivers/net/can/dev.c static int can_get_bittiming(struct net_device *dev, struct can_bittiming *bt,
bt                310 drivers/net/can/dev.c 	if (!bt->tq && bt->bitrate && btc)
bt                311 drivers/net/can/dev.c 		err = can_calc_bittiming(dev, bt, btc);
bt                312 drivers/net/can/dev.c 	else if (bt->tq && !bt->bitrate && btc)
bt                313 drivers/net/can/dev.c 		err = can_fixup_bittiming(dev, bt, btc);
bt                314 drivers/net/can/dev.c 	else if (!bt->tq && bt->bitrate && bitrate_const)
bt                315 drivers/net/can/dev.c 		err = can_validate_bitrate(dev, bt, bitrate_const,
bt                934 drivers/net/can/dev.c 		struct can_bittiming bt;
bt                948 drivers/net/can/dev.c 		memcpy(&bt, nla_data(data[IFLA_CAN_BITTIMING]), sizeof(bt));
bt                949 drivers/net/can/dev.c 		err = can_get_bittiming(dev, &bt,
bt                956 drivers/net/can/dev.c 		if (priv->bitrate_max && bt.bitrate > priv->bitrate_max) {
bt                962 drivers/net/can/dev.c 		memcpy(&priv->bittiming, &bt, sizeof(bt));
bt                999 drivers/net/can/flexcan.c 	const struct can_bittiming *bt = &priv->can.bittiming;
bt               1013 drivers/net/can/flexcan.c 	reg |= FLEXCAN_CTRL_PRESDIV(bt->brp - 1) |
bt               1014 drivers/net/can/flexcan.c 		FLEXCAN_CTRL_PSEG1(bt->phase_seg1 - 1) |
bt               1015 drivers/net/can/flexcan.c 		FLEXCAN_CTRL_PSEG2(bt->phase_seg2 - 1) |
bt               1016 drivers/net/can/flexcan.c 		FLEXCAN_CTRL_RJW(bt->sjw - 1) |
bt               1017 drivers/net/can/flexcan.c 		FLEXCAN_CTRL_PROPSEG(bt->prop_seg - 1);
bt                407 drivers/net/can/grcan.c 	struct can_bittiming *bt = &priv->can.bittiming;
bt                418 drivers/net/can/grcan.c 	rsj = bt->sjw;
bt                419 drivers/net/can/grcan.c 	ps1 = (bt->prop_seg + bt->phase_seg1) - 1; /* tseg1 - 1 */
bt                420 drivers/net/can/grcan.c 	ps2 = bt->phase_seg2;
bt                421 drivers/net/can/grcan.c 	scaler = (bt->brp - 1);
bt                658 drivers/net/can/ifi_canfd/ifi_canfd.c 	const struct can_bittiming *bt = &priv->can.bittiming;
bt                663 drivers/net/can/ifi_canfd/ifi_canfd.c 	brp = bt->brp - 2;
bt                664 drivers/net/can/ifi_canfd/ifi_canfd.c 	sjw = bt->sjw - 1;
bt                665 drivers/net/can/ifi_canfd/ifi_canfd.c 	tseg1 = bt->prop_seg + bt->phase_seg1 - 1;
bt                666 drivers/net/can/ifi_canfd/ifi_canfd.c 	tseg2 = bt->phase_seg2 - 2;
bt                778 drivers/net/can/janz-ican3.c 	struct can_bittiming *bt = &mod->can.bittiming;
bt                786 drivers/net/can/janz-ican3.c 	btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6);
bt                787 drivers/net/can/janz-ican3.c 	btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) |
bt                788 drivers/net/can/janz-ican3.c 		(((bt->phase_seg2 - 1) & 0x7) << 4);
bt                824 drivers/net/can/kvaser_pciefd.c 	struct can_bittiming *bt;
bt                827 drivers/net/can/kvaser_pciefd.c 		bt = &can->can.data_bittiming;
bt                829 drivers/net/can/kvaser_pciefd.c 		bt = &can->can.bittiming;
bt                831 drivers/net/can/kvaser_pciefd.c 	btrn = ((bt->phase_seg2 - 1) & 0x1f) <<
bt                833 drivers/net/can/kvaser_pciefd.c 	       (((bt->prop_seg + bt->phase_seg1) - 1) & 0x1ff) <<
bt                835 drivers/net/can/kvaser_pciefd.c 	       ((bt->sjw - 1) & 0xf) << KVASER_PCIEFD_KCAN_BTRN_SJW_SHIFT |
bt                836 drivers/net/can/kvaser_pciefd.c 	       ((bt->brp - 1) & 0x1fff);
bt               1014 drivers/net/can/m_can/m_can.c 	const struct can_bittiming *bt = &cdev->can.bittiming;
bt               1019 drivers/net/can/m_can/m_can.c 	brp = bt->brp - 1;
bt               1020 drivers/net/can/m_can/m_can.c 	sjw = bt->sjw - 1;
bt               1021 drivers/net/can/m_can/m_can.c 	tseg1 = bt->prop_seg + bt->phase_seg1 - 1;
bt               1022 drivers/net/can/m_can/m_can.c 	tseg2 = bt->phase_seg2 - 1;
bt                509 drivers/net/can/mscan/mscan.c 	struct can_bittiming *bt = &priv->can.bittiming;
bt                512 drivers/net/can/mscan/mscan.c 	btr0 = BTR0_SET_BRP(bt->brp) | BTR0_SET_SJW(bt->sjw);
bt                513 drivers/net/can/mscan/mscan.c 	btr1 = (BTR1_SET_TSEG1(bt->prop_seg + bt->phase_seg1) |
bt                514 drivers/net/can/mscan/mscan.c 		BTR1_SET_TSEG2(bt->phase_seg2) |
bt                775 drivers/net/can/pch_can.c 	const struct can_bittiming *bt = &priv->can.bittiming;
bt                782 drivers/net/can/pch_can.c 	canbit = (bt->brp - 1) & PCH_MSK_BITT_BRP;
bt                783 drivers/net/can/pch_can.c 	canbit |= (bt->sjw - 1) << PCH_BIT_SJW_SHIFT;
bt                784 drivers/net/can/pch_can.c 	canbit |= (bt->phase_seg1 + bt->prop_seg - 1) << PCH_BIT_TSEG1_SHIFT;
bt                785 drivers/net/can/pch_can.c 	canbit |= (bt->phase_seg2 - 1) << PCH_BIT_TSEG2_SHIFT;
bt                786 drivers/net/can/pch_can.c 	bepe = ((bt->brp - 1) & PCH_MSK_BRPE_BRPE) >> PCH_BIT_BRPE_BRPE_SHIFT;
bt                430 drivers/net/can/rcar/rcar_can.c 	struct can_bittiming *bt = &priv->can.bittiming;
bt                433 drivers/net/can/rcar/rcar_can.c 	bcr = RCAR_CAN_BCR_TSEG1(bt->phase_seg1 + bt->prop_seg - 1) |
bt                434 drivers/net/can/rcar/rcar_can.c 	      RCAR_CAN_BCR_BPR(bt->brp - 1) | RCAR_CAN_BCR_SJW(bt->sjw - 1) |
bt                435 drivers/net/can/rcar/rcar_can.c 	      RCAR_CAN_BCR_TSEG2(bt->phase_seg2 - 1);
bt               1180 drivers/net/can/rcar/rcar_canfd.c 	const struct can_bittiming *bt = &priv->can.bittiming;
bt               1187 drivers/net/can/rcar/rcar_canfd.c 	brp = bt->brp - 1;
bt               1188 drivers/net/can/rcar/rcar_canfd.c 	sjw = bt->sjw - 1;
bt               1189 drivers/net/can/rcar/rcar_canfd.c 	tseg1 = bt->prop_seg + bt->phase_seg1 - 1;
bt               1190 drivers/net/can/rcar/rcar_canfd.c 	tseg2 = bt->phase_seg2 - 1;
bt                247 drivers/net/can/sja1000/sja1000.c 	struct can_bittiming *bt = &priv->can.bittiming;
bt                250 drivers/net/can/sja1000/sja1000.c 	btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6);
bt                251 drivers/net/can/sja1000/sja1000.c 	btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) |
bt                252 drivers/net/can/sja1000/sja1000.c 		(((bt->phase_seg2 - 1) & 0x7) << 4);
bt                426 drivers/net/can/softing/softing_fw.c 	const struct can_bittiming *bt;
bt                493 drivers/net/can/softing/softing_fw.c 		bt = &priv->can.bittiming;
bt                494 drivers/net/can/softing/softing_fw.c 		iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]);
bt                495 drivers/net/can/softing/softing_fw.c 		iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]);
bt                496 drivers/net/can/softing/softing_fw.c 		iowrite16(bt->phase_seg1 + bt->prop_seg,
bt                498 drivers/net/can/softing/softing_fw.c 		iowrite16(bt->phase_seg2, &card->dpram[DPRAM_FCT_PARAM + 8]);
bt                533 drivers/net/can/softing/softing_fw.c 		bt = &priv->can.bittiming;
bt                534 drivers/net/can/softing/softing_fw.c 		iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]);
bt                535 drivers/net/can/softing/softing_fw.c 		iowrite16(bt->sjw, &card->dpram[DPRAM_FCT_PARAM + 4]);
bt                536 drivers/net/can/softing/softing_fw.c 		iowrite16(bt->phase_seg1 + bt->prop_seg,
bt                538 drivers/net/can/softing/softing_fw.c 		iowrite16(bt->phase_seg2, &card->dpram[DPRAM_FCT_PARAM + 8]);
bt                454 drivers/net/can/spi/hi311x.c 	struct can_bittiming *bt = &priv->can.bittiming;
bt                458 drivers/net/can/spi/hi311x.c 		     ((bt->sjw - 1) << HI3110_BTR0_SJW_SHIFT) |
bt                459 drivers/net/can/spi/hi311x.c 		     ((bt->brp - 1) << HI3110_BTR0_BRP_SHIFT));
bt                465 drivers/net/can/spi/hi311x.c 		     ((bt->phase_seg1 + bt->prop_seg - 1)
bt                467 drivers/net/can/spi/hi311x.c 		     ((bt->phase_seg2 - 1) << HI3110_BTR1_TSEG2_SHIFT));
bt                539 drivers/net/can/spi/mcp251x.c 	struct can_bittiming *bt = &priv->can.bittiming;
bt                542 drivers/net/can/spi/mcp251x.c 	mcp251x_write_reg(spi, CNF1, ((bt->sjw - 1) << CNF1_SJW_SHIFT) |
bt                543 drivers/net/can/spi/mcp251x.c 			  (bt->brp - 1));
bt                547 drivers/net/can/spi/mcp251x.c 			  ((bt->phase_seg1 - 1) << CNF2_PS1_SHIFT) |
bt                548 drivers/net/can/spi/mcp251x.c 			  (bt->prop_seg - 1));
bt                550 drivers/net/can/spi/mcp251x.c 			   (bt->phase_seg2 - 1));
bt                277 drivers/net/can/sun4i_can.c 	struct can_bittiming *bt = &priv->can.bittiming;
bt                280 drivers/net/can/sun4i_can.c 	cfg = ((bt->brp - 1) & 0x3FF) |
bt                281 drivers/net/can/sun4i_can.c 	     (((bt->sjw - 1) & 0x3) << 14) |
bt                282 drivers/net/can/sun4i_can.c 	     (((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) << 16) |
bt                283 drivers/net/can/sun4i_can.c 	     (((bt->phase_seg2 - 1) & 0x7) << 20);
bt                910 drivers/net/can/usb/ems_usb.c 	struct can_bittiming *bt = &dev->can.bittiming;
bt                913 drivers/net/can/usb/ems_usb.c 	btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6);
bt                914 drivers/net/can/usb/ems_usb.c 	btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) |
bt                915 drivers/net/can/usb/ems_usb.c 		(((bt->phase_seg2 - 1) & 0x7) << 4);
bt                892 drivers/net/can/usb/esd_usb2.c 	struct can_bittiming *bt = &priv->can.bittiming;
bt                902 drivers/net/can/usb/esd_usb2.c 	canbtr |= (bt->brp - 1) & (ESD_USB2_BRP_MAX - 1);
bt                910 drivers/net/can/usb/esd_usb2.c 	canbtr |= ((bt->sjw - 1) & (ESD_USB2_SJW_MAX - 1))
bt                912 drivers/net/can/usb/esd_usb2.c 	canbtr |= ((bt->prop_seg + bt->phase_seg1 - 1)
bt                915 drivers/net/can/usb/esd_usb2.c 	canbtr |= ((bt->phase_seg2 - 1) & (ESD_USB2_TSEG2_MAX - 1))
bt                412 drivers/net/can/usb/gs_usb.c 	struct can_bittiming *bt = &dev->can.bittiming;
bt                421 drivers/net/can/usb/gs_usb.c 	dbt->prop_seg = bt->prop_seg;
bt                422 drivers/net/can/usb/gs_usb.c 	dbt->phase_seg1 = bt->phase_seg1;
bt                423 drivers/net/can/usb/gs_usb.c 	dbt->phase_seg2 = bt->phase_seg2;
bt                424 drivers/net/can/usb/gs_usb.c 	dbt->sjw = bt->sjw;
bt                425 drivers/net/can/usb/gs_usb.c 	dbt->brp = bt->brp;
bt               1497 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	struct can_bittiming *bt = &priv->can.bittiming;
bt               1499 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	int tseg1 = bt->prop_seg + bt->phase_seg1;
bt               1500 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	int tseg2 = bt->phase_seg2;
bt               1501 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	int sjw = bt->sjw;
bt               1509 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c 	cmd->set_busparams_req.bitrate = cpu_to_le32(bt->bitrate);
bt               1249 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	struct can_bittiming *bt = &priv->can.bittiming;
bt               1262 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	cmd->u.busparams.bitrate = cpu_to_le32(bt->bitrate);
bt               1263 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	cmd->u.busparams.sjw = bt->sjw;
bt               1264 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	cmd->u.busparams.tseg1 = bt->prop_seg + bt->phase_seg1;
bt               1265 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c 	cmd->u.busparams.tseg2 = bt->phase_seg2;
bt                209 drivers/net/can/usb/peak_usb/pcan_usb.c 				  struct can_bittiming *bt)
bt                214 drivers/net/can/usb/peak_usb/pcan_usb.c 	btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6);
bt                215 drivers/net/can/usb/peak_usb/pcan_usb.c 	btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) |
bt                216 drivers/net/can/usb/peak_usb/pcan_usb.c 		(((bt->phase_seg2 - 1) & 0x7) << 4);
bt                684 drivers/net/can/usb/peak_usb/pcan_usb_core.c 		struct can_bittiming *bt = &dev->can.bittiming;
bt                685 drivers/net/can/usb/peak_usb/pcan_usb_core.c 		int err = pa->dev_set_bittiming(dev, bt);
bt                705 drivers/net/can/usb/peak_usb/pcan_usb_core.c 		struct can_bittiming *bt = &dev->can.data_bittiming;
bt                706 drivers/net/can/usb/peak_usb/pcan_usb_core.c 		int err = pa->dev_set_data_bittiming(dev, bt);
bt                 57 drivers/net/can/usb/peak_usb/pcan_usb_core.h 					struct can_bittiming *bt);
bt                 59 drivers/net/can/usb/peak_usb/pcan_usb_core.h 				      struct can_bittiming *bt);
bt                389 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 					  struct can_bittiming *bt)
bt                395 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	cmd->sjw_t = PUCAN_TSLOW_SJW_T(bt->sjw - 1,
bt                398 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	cmd->tseg2 = PUCAN_TSLOW_TSEG2(bt->phase_seg2 - 1);
bt                399 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	cmd->tseg1 = PUCAN_TSLOW_TSEG1(bt->prop_seg + bt->phase_seg1 - 1);
bt                400 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	cmd->brp = cpu_to_le16(PUCAN_TSLOW_BRP(bt->brp - 1));
bt                410 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 					  struct can_bittiming *bt)
bt                416 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	cmd->sjw = PUCAN_TFAST_SJW(bt->sjw - 1);
bt                417 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	cmd->tseg2 = PUCAN_TFAST_TSEG2(bt->phase_seg2 - 1);
bt                418 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	cmd->tseg1 = PUCAN_TFAST_TSEG1(bt->prop_seg + bt->phase_seg1 - 1);
bt                419 drivers/net/can/usb/peak_usb/pcan_usb_fd.c 	cmd->brp = cpu_to_le16(PUCAN_TFAST_BRP(bt->brp - 1));
bt                449 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 				      struct can_bittiming *bt)
bt                454 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 	ccbt |= (bt->sjw - 1) << 24;
bt                455 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 	ccbt |= (bt->phase_seg2 - 1) << 20;
bt                456 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 	ccbt |= (bt->prop_seg + bt->phase_seg1 - 1) << 16; /* = tseg1 */
bt                457 drivers/net/can/usb/peak_usb/pcan_usb_pro.c 	ccbt |= bt->brp - 1;
bt                243 drivers/net/can/usb/usb_8dev.c 	struct can_bittiming *bt = &priv->can.bittiming;
bt                254 drivers/net/can/usb/usb_8dev.c 	outmsg.data[0] = bt->prop_seg + bt->phase_seg1;
bt                255 drivers/net/can/usb/usb_8dev.c 	outmsg.data[1] = bt->phase_seg2;
bt                256 drivers/net/can/usb/usb_8dev.c 	outmsg.data[2] = bt->sjw;
bt                259 drivers/net/can/usb/usb_8dev.c 	bebrp = cpu_to_be16((u16)bt->brp);
bt                393 drivers/net/can/xilinx_can.c 	struct can_bittiming *bt = &priv->can.bittiming;
bt                410 drivers/net/can/xilinx_can.c 	btr0 = (bt->brp - 1);
bt                413 drivers/net/can/xilinx_can.c 	btr1 = (bt->prop_seg + bt->phase_seg1 - 1);
bt                416 drivers/net/can/xilinx_can.c 	btr1 |= (bt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift;
bt                419 drivers/net/can/xilinx_can.c 	btr1 |= (bt->sjw - 1) << priv->devtype.btr_sjw_shift;
bt               1429 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c 	struct statistics_bt_activity *bt, *accum_bt;
bt               1456 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c 	bt = &priv->statistics.bt_activity;
bt               1465 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c 			 le32_to_cpu(bt->hi_priority_tx_req_cnt),
bt               1469 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c 			 le32_to_cpu(bt->hi_priority_tx_denied_cnt),
bt               1473 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c 			 le32_to_cpu(bt->lo_priority_tx_req_cnt),
bt               1477 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c 			 le32_to_cpu(bt->lo_priority_tx_denied_cnt),
bt               1481 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c 			 le32_to_cpu(bt->hi_priority_rx_req_cnt),
bt               1485 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c 			 le32_to_cpu(bt->hi_priority_rx_denied_cnt),
bt               1489 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c 			 le32_to_cpu(bt->lo_priority_rx_req_cnt),
bt               1493 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c 			 le32_to_cpu(bt->lo_priority_rx_denied_cnt),
bt                789 drivers/net/wireless/realtek/rtw88/coex.c 					   chip->table_sant[type].bt,
bt                795 drivers/net/wireless/realtek/rtw88/coex.c 					   chip->table_nsant[type].bt,
bt                273 drivers/net/wireless/realtek/rtw88/coex.h 	u32 bt;
bt               1592 drivers/pinctrl/actions/pinctrl-s700.c 	[S700_MUX_BT] = FUNCTION(bt),
bt                961 drivers/pinctrl/qcom/pinctrl-msm8960.c 	FUNCTION(bt),
bt               1095 drivers/pinctrl/qcom/pinctrl-msm8960.c 	PINGROUP(28, bt, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
bt               1096 drivers/pinctrl/qcom/pinctrl-msm8960.c 	PINGROUP(29, bt, gsbi6, NA, NA, NA, NA, NA, NA, NA, NA, NA),
bt               1150 drivers/pinctrl/qcom/pinctrl-msm8960.c 	PINGROUP(83, bt, sdc4, NA, NA, NA, NA, NA, NA, NA, NA, NA),
bt                890 drivers/pinctrl/qcom/pinctrl-msm8x74.c 	FUNCTION(bt),
bt                933 drivers/pinctrl/qcom/pinctrl-msm8x74.c 	PINGROUP(35,  bt, sdc3, NA, NA, NA, NA, NA),
bt                941 drivers/pinctrl/qcom/pinctrl-msm8x74.c 	PINGROUP(43,  bt, blsp_spi7, blsp_uart7, blsp_i2c7, NA, NA, NA),
bt                942 drivers/pinctrl/qcom/pinctrl-msm8x74.c 	PINGROUP(44,  bt, blsp_spi7, blsp_uart7, blsp_i2c7, NA, NA, NA),
bt                620 drivers/platform/x86/acerhdf.c 	const struct bios_settings *bt = NULL;
bt                638 drivers/platform/x86/acerhdf.c 		for (bt = bios_tbl; bt->vendor[0]; bt++) {
bt                639 drivers/platform/x86/acerhdf.c 			pr_info("%-13s | %-17s | %-10s\n", bt->vendor,
bt                640 drivers/platform/x86/acerhdf.c 				bt->product, bt->version);
bt                663 drivers/platform/x86/acerhdf.c 	for (bt = bios_tbl; bt->vendor[0]; bt++) {
bt                668 drivers/platform/x86/acerhdf.c 		if (str_starts_with(vendor, bt->vendor) &&
bt                669 drivers/platform/x86/acerhdf.c 				str_starts_with(product, bt->product) &&
bt                670 drivers/platform/x86/acerhdf.c 				str_starts_with(version, bt->version)) {
bt                683 drivers/platform/x86/acerhdf.c 	ctrl_cfg.fanreg = bt->fanreg;
bt                684 drivers/platform/x86/acerhdf.c 	ctrl_cfg.tempreg = bt->tempreg;
bt                685 drivers/platform/x86/acerhdf.c 	memcpy(&ctrl_cfg.cmd, &bt->cmd, sizeof(struct fancmd));
bt                686 drivers/platform/x86/acerhdf.c 	ctrl_cfg.mcmd_enable = bt->mcmd_enable;
bt               1237 drivers/power/supply/bq27xxx_battery.c 	struct bq27xxx_dm_buf bt = BQ27XXX_DM_BUF(di, BQ27XXX_DM_TERMINATE_VOLTAGE);
bt               1256 drivers/power/supply/bq27xxx_battery.c 		bool same = bd.class == bt.class && bd.block == bt.block;
bt               1258 drivers/power/supply/bq27xxx_battery.c 			bq27xxx_battery_read_dm_block(di, &bt);
bt               1259 drivers/power/supply/bq27xxx_battery.c 		bq27xxx_battery_update_dm_block(di, same ? &bd : &bt,
bt               1264 drivers/power/supply/bq27xxx_battery.c 	updated = bd.dirty || bt.dirty;
bt               1267 drivers/power/supply/bq27xxx_battery.c 	bq27xxx_battery_write_dm_block(di, &bt);
bt                 55 drivers/power/supply/twl4030_madc_battery.c static int twl4030_madc_bat_get_charging_status(struct twl4030_madc_battery *bt)
bt                 57 drivers/power/supply/twl4030_madc_battery.c 	return (madc_read(bt->channel_ichg) > 0) ? 1 : 0;
bt                 60 drivers/power/supply/twl4030_madc_battery.c static int twl4030_madc_bat_get_voltage(struct twl4030_madc_battery *bt)
bt                 62 drivers/power/supply/twl4030_madc_battery.c 	return madc_read(bt->channel_vbat);
bt                 65 drivers/power/supply/twl4030_madc_battery.c static int twl4030_madc_bat_get_current(struct twl4030_madc_battery *bt)
bt                 67 drivers/power/supply/twl4030_madc_battery.c 	return madc_read(bt->channel_ichg) * 1000;
bt                 70 drivers/power/supply/twl4030_madc_battery.c static int twl4030_madc_bat_get_temp(struct twl4030_madc_battery *bt)
bt                 72 drivers/power/supply/twl4030_madc_battery.c 	return madc_read(bt->channel_temp) * 10;
bt                313 drivers/regulator/vctrl-regulator.c 	const struct vctrl_voltage_table *bt = b;
bt                315 drivers/regulator/vctrl-regulator.c 	return at->ctrl - bt->ctrl;
bt               3505 drivers/scsi/st.c 	int i, cmd_nr, cmd_type, bt;
bt               3819 drivers/scsi/st.c 		if ((i = get_location(STp, &blk, &bt, 0)) < 0) {
bt                 26 drivers/staging/fbtft/fb_ili9325.c static unsigned int bt = 6; /* VGL=Vci*4 , VGH=Vci*4 */
bt                 27 drivers/staging/fbtft/fb_ili9325.c module_param(bt, uint, 0000);
bt                 28 drivers/staging/fbtft/fb_ili9325.c MODULE_PARM_DESC(bt, "Sets the factor used in the step-up circuits");
bt                 91 drivers/staging/fbtft/fb_ili9325.c 	bt &= 0x07;
bt                120 drivers/staging/fbtft/fb_ili9325.c 		BIT(12) | (bt << 8) | BIT(7) | BIT(4));
bt                 75 drivers/staging/uwb/driver.c 	unsigned long bt;
bt                 77 drivers/staging/uwb/driver.c 	result = sscanf(buf, "%lu", &bt);
bt                 80 drivers/staging/uwb/driver.c 	beacon_timeout_ms = bt;
bt                143 drivers/video/fbdev/cg3.c 	struct bt_regs __iomem *bt = &par->regs->cmap;
bt                168 drivers/video/fbdev/cg3.c 	sbus_writel(D4M4(regno), &bt->addr);
bt                170 drivers/video/fbdev/cg3.c 		sbus_writel(*p32++, &bt->color_map);
bt                257 drivers/video/fbdev/cg6.c 	struct bt_regs		__iomem *bt;
bt                489 drivers/video/fbdev/cg6.c 	struct bt_regs __iomem *bt = par->bt;
bt                501 drivers/video/fbdev/cg6.c 	sbus_writel((u32)regno << 24, &bt->addr);
bt                502 drivers/video/fbdev/cg6.c 	sbus_writel((u32)red << 24, &bt->color_map);
bt                503 drivers/video/fbdev/cg6.c 	sbus_writel((u32)green << 24, &bt->color_map);
bt                504 drivers/video/fbdev/cg6.c 	sbus_writel((u32)blue << 24, &bt->color_map);
bt                655 drivers/video/fbdev/cg6.c 	struct bt_regs __iomem *bt = par->bt;
bt                657 drivers/video/fbdev/cg6.c 	sbus_writel(0x04 << 24, &bt->addr);	 /* color planes */
bt                658 drivers/video/fbdev/cg6.c 	sbus_writel(0xff << 24, &bt->control);
bt                659 drivers/video/fbdev/cg6.c 	sbus_writel(0x05 << 24, &bt->addr);
bt                660 drivers/video/fbdev/cg6.c 	sbus_writel(0x00 << 24, &bt->control);
bt                661 drivers/video/fbdev/cg6.c 	sbus_writel(0x06 << 24, &bt->addr);	 /* overlay plane */
bt                662 drivers/video/fbdev/cg6.c 	sbus_writel(0x73 << 24, &bt->control);
bt                663 drivers/video/fbdev/cg6.c 	sbus_writel(0x07 << 24, &bt->addr);
bt                664 drivers/video/fbdev/cg6.c 	sbus_writel(0x00 << 24, &bt->control);
bt                731 drivers/video/fbdev/cg6.c 	if (par->bt)
bt                732 drivers/video/fbdev/cg6.c 		of_iounmap(&op->resource[0], par->bt, sizeof(struct bt_regs));
bt                780 drivers/video/fbdev/cg6.c 	par->bt = of_ioremap(&op->resource[0], CG6_BROOKTREE_OFFSET,
bt                793 drivers/video/fbdev/cg6.c 	    !par->bt || !par->fhc || !info->screen_base)
bt                111 drivers/video/fbdev/tcx.c 	struct bt_regs		__iomem *bt;
bt                175 drivers/video/fbdev/tcx.c 	struct bt_regs __iomem *bt = par->bt;
bt                187 drivers/video/fbdev/tcx.c 	sbus_writel(regno << 24, &bt->addr);
bt                188 drivers/video/fbdev/tcx.c 	sbus_writel(red << 24, &bt->color_map);
bt                189 drivers/video/fbdev/tcx.c 	sbus_writel(green << 24, &bt->color_map);
bt                190 drivers/video/fbdev/tcx.c 	sbus_writel(blue << 24, &bt->color_map);
bt                355 drivers/video/fbdev/tcx.c 	if (par->bt)
bt                357 drivers/video/fbdev/tcx.c 			   par->bt, sizeof(struct bt_regs));
bt                398 drivers/video/fbdev/tcx.c 	par->bt = of_ioremap(&op->resource[8], 0,
bt                403 drivers/video/fbdev/tcx.c 	    !par->bt || !info->screen_base)
bt                446 drivers/video/fbdev/tcx.c 	sbus_writel(0x04 << 24, &par->bt->addr);         /* color planes */
bt                447 drivers/video/fbdev/tcx.c 	sbus_writel(0xff << 24, &par->bt->control);
bt                448 drivers/video/fbdev/tcx.c 	sbus_writel(0x05 << 24, &par->bt->addr);
bt                449 drivers/video/fbdev/tcx.c 	sbus_writel(0x00 << 24, &par->bt->control);
bt                450 drivers/video/fbdev/tcx.c 	sbus_writel(0x06 << 24, &par->bt->addr);         /* overlay plane */
bt                451 drivers/video/fbdev/tcx.c 	sbus_writel(0x73 << 24, &par->bt->control);
bt                452 drivers/video/fbdev/tcx.c 	sbus_writel(0x07 << 24, &par->bt->addr);
bt                453 drivers/video/fbdev/tcx.c 	sbus_writel(0x00 << 24, &par->bt->control);
bt                505 fs/proc/base.c 				unsigned long bt = lr->backtrace[q];
bt                507 fs/proc/base.c 				if (!bt)
bt                509 fs/proc/base.c 				seq_printf(m, " %ps", (void *)bt);
bt                354 fs/xfs/xfs_buf.h xfs_buftarg_dma_alignment(struct xfs_buftarg *bt)
bt                356 fs/xfs/xfs_buf.h 	return queue_dma_alignment(bt->bt_bdev->bd_disk->queue);
bt                 54 include/linux/blktrace_api.h 		struct blk_trace *bt;					\
bt                 57 include/linux/blktrace_api.h 		bt = rcu_dereference((q)->blk_trace);			\
bt                 58 include/linux/blktrace_api.h 		if (unlikely(bt))					\
bt                 59 include/linux/blktrace_api.h 			__trace_note_message(bt, cg, fmt, ##__VA_ARGS__);\
bt                 68 include/linux/blktrace_api.h 	struct blk_trace *bt;
bt                 72 include/linux/blktrace_api.h 	bt = rcu_dereference(q->blk_trace);
bt                 73 include/linux/blktrace_api.h 	ret = bt && (bt->act_mask & BLK_TC_NOTIFY);
bt                214 include/media/v4l2-dv-timings.h static inline  bool can_reduce_fps(struct v4l2_bt_timings *bt)
bt                216 include/media/v4l2-dv-timings.h 	if ((bt->standards & V4L2_DV_BT_STD_CVT) && (bt->vsync == 8))
bt                219 include/media/v4l2-dv-timings.h 	if ((bt->standards & V4L2_DV_BT_STD_CEA861) &&
bt                220 include/media/v4l2-dv-timings.h 	    (bt->flags & V4L2_DV_FL_CAN_REDUCE_FPS))
bt                682 include/net/bluetooth/l2cap.h 	struct bt_sock		bt;
bt                305 include/net/bluetooth/rfcomm.h 	struct bt_sock bt;
bt                 26 include/uapi/linux/v4l2-dv-timings.h 	{ .bt = { _width , ## args } }
bt                 29 include/uapi/linux/v4l2-dv-timings.h 	.bt = { _width , ## args }
bt               1494 include/uapi/linux/videodev2.h #define V4L2_DV_BT_BLANKING_WIDTH(bt) \
bt               1495 include/uapi/linux/videodev2.h 	((bt)->hfrontporch + (bt)->hsync + (bt)->hbackporch)
bt               1496 include/uapi/linux/videodev2.h #define V4L2_DV_BT_FRAME_WIDTH(bt) \
bt               1497 include/uapi/linux/videodev2.h 	((bt)->width + V4L2_DV_BT_BLANKING_WIDTH(bt))
bt               1498 include/uapi/linux/videodev2.h #define V4L2_DV_BT_BLANKING_HEIGHT(bt) \
bt               1499 include/uapi/linux/videodev2.h 	((bt)->vfrontporch + (bt)->vsync + (bt)->vbackporch + \
bt               1500 include/uapi/linux/videodev2.h 	 (bt)->il_vfrontporch + (bt)->il_vsync + (bt)->il_vbackporch)
bt               1501 include/uapi/linux/videodev2.h #define V4L2_DV_BT_FRAME_HEIGHT(bt) \
bt               1502 include/uapi/linux/videodev2.h 	((bt)->height + V4L2_DV_BT_BLANKING_HEIGHT(bt))
bt               1511 include/uapi/linux/videodev2.h 		struct v4l2_bt_timings	bt;
bt               1577 include/uapi/linux/videodev2.h 		struct v4l2_bt_timings_cap bt;
bt                231 kernel/latencytop.c 				unsigned long bt = lr->backtrace[q];
bt                233 kernel/latencytop.c 				if (!bt)
bt                236 kernel/latencytop.c 				seq_printf(m, " %ps", (void *)bt);
bt                 66 kernel/trace/blktrace.c static void trace_note(struct blk_trace *bt, pid_t pid, int action,
bt                 90 kernel/trace/blktrace.c 	if (!bt->rchan)
bt                 93 kernel/trace/blktrace.c 	t = relay_reserve(bt->rchan, sizeof(*t) + len + cgid_len);
bt                 98 kernel/trace/blktrace.c 		t->device = bt->dev;
bt                119 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt                123 kernel/trace/blktrace.c 	list_for_each_entry(bt, &running_trace_list, running_list) {
bt                124 kernel/trace/blktrace.c 		trace_note(bt, tsk->pid, BLK_TN_PROCESS, tsk->comm,
bt                130 kernel/trace/blktrace.c static void trace_note_time(struct blk_trace *bt)
bt                142 kernel/trace/blktrace.c 	trace_note(bt, 0, BLK_TN_TIMESTAMP, words, sizeof(words), NULL);
bt                146 kernel/trace/blktrace.c void __trace_note_message(struct blk_trace *bt, struct blkcg *blkcg,
bt                154 kernel/trace/blktrace.c 	if (unlikely(bt->trace_state != Blktrace_running &&
bt                162 kernel/trace/blktrace.c 	if (!(bt->act_mask & BLK_TC_NOTIFY))
bt                166 kernel/trace/blktrace.c 	buf = this_cpu_ptr(bt->msg_data);
bt                174 kernel/trace/blktrace.c 	trace_note(bt, 0, BLK_TN_MESSAGE, buf, n,
bt                177 kernel/trace/blktrace.c 	trace_note(bt, 0, BLK_TN_MESSAGE, buf, n, NULL);
bt                183 kernel/trace/blktrace.c static int act_log_check(struct blk_trace *bt, u32 what, sector_t sector,
bt                186 kernel/trace/blktrace.c 	if (((bt->act_mask << BLK_TC_SHIFT) & what) == 0)
bt                188 kernel/trace/blktrace.c 	if (sector && (sector < bt->start_lba || sector > bt->end_lba))
bt                190 kernel/trace/blktrace.c 	if (bt->pid && pid != bt->pid)
bt                213 kernel/trace/blktrace.c static void __blk_add_trace(struct blk_trace *bt, sector_t sector, int bytes,
bt                228 kernel/trace/blktrace.c 	if (unlikely(bt->trace_state != Blktrace_running && !blk_tracer))
bt                245 kernel/trace/blktrace.c 	if (act_log_check(bt, what, sector, pid))
bt                272 kernel/trace/blktrace.c 	t = relay_reserve(bt->rchan, sizeof(*t) + pdu_len + cgid_len);
bt                274 kernel/trace/blktrace.c 		sequence = per_cpu_ptr(bt->sequence, cpu);
bt                292 kernel/trace/blktrace.c 		t->device = bt->dev;
bt                310 kernel/trace/blktrace.c static void blk_trace_free(struct blk_trace *bt)
bt                312 kernel/trace/blktrace.c 	debugfs_remove(bt->msg_file);
bt                313 kernel/trace/blktrace.c 	debugfs_remove(bt->dropped_file);
bt                314 kernel/trace/blktrace.c 	relay_close(bt->rchan);
bt                315 kernel/trace/blktrace.c 	debugfs_remove(bt->dir);
bt                316 kernel/trace/blktrace.c 	free_percpu(bt->sequence);
bt                317 kernel/trace/blktrace.c 	free_percpu(bt->msg_data);
bt                318 kernel/trace/blktrace.c 	kfree(bt);
bt                337 kernel/trace/blktrace.c static void blk_trace_cleanup(struct blk_trace *bt)
bt                340 kernel/trace/blktrace.c 	blk_trace_free(bt);
bt                346 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt                348 kernel/trace/blktrace.c 	bt = xchg(&q->blk_trace, NULL);
bt                349 kernel/trace/blktrace.c 	if (!bt)
bt                352 kernel/trace/blktrace.c 	if (bt->trace_state != Blktrace_running)
bt                353 kernel/trace/blktrace.c 		blk_trace_cleanup(bt);
bt                373 kernel/trace/blktrace.c 	struct blk_trace *bt = filp->private_data;
bt                376 kernel/trace/blktrace.c 	snprintf(buf, sizeof(buf), "%u\n", atomic_read(&bt->dropped));
bt                392 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt                401 kernel/trace/blktrace.c 	bt = filp->private_data;
bt                402 kernel/trace/blktrace.c 	__trace_note_message(bt, NULL, "%s", msg);
bt                422 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt                427 kernel/trace/blktrace.c 	bt = buf->chan->private_data;
bt                428 kernel/trace/blktrace.c 	atomic_inc(&bt->dropped);
bt                455 kernel/trace/blktrace.c static void blk_trace_setup_lba(struct blk_trace *bt,
bt                464 kernel/trace/blktrace.c 		bt->start_lba = part->start_sect;
bt                465 kernel/trace/blktrace.c 		bt->end_lba = part->start_sect + part->nr_sects;
bt                467 kernel/trace/blktrace.c 		bt->start_lba = 0;
bt                468 kernel/trace/blktrace.c 		bt->end_lba = -1ULL;
bt                479 kernel/trace/blktrace.c 	struct blk_trace *bt = NULL;
bt                498 kernel/trace/blktrace.c 	bt = kzalloc(sizeof(*bt), GFP_KERNEL);
bt                499 kernel/trace/blktrace.c 	if (!bt)
bt                503 kernel/trace/blktrace.c 	bt->sequence = alloc_percpu(unsigned long);
bt                504 kernel/trace/blktrace.c 	if (!bt->sequence)
bt                507 kernel/trace/blktrace.c 	bt->msg_data = __alloc_percpu(BLK_TN_MAX_MSG, __alignof__(char));
bt                508 kernel/trace/blktrace.c 	if (!bt->msg_data)
bt                515 kernel/trace/blktrace.c 		bt->dir = dir = debugfs_create_dir(buts->name, blk_debugfs_root);
bt                517 kernel/trace/blktrace.c 	bt->dev = dev;
bt                518 kernel/trace/blktrace.c 	atomic_set(&bt->dropped, 0);
bt                519 kernel/trace/blktrace.c 	INIT_LIST_HEAD(&bt->running_list);
bt                522 kernel/trace/blktrace.c 	bt->dropped_file = debugfs_create_file("dropped", 0444, dir, bt,
bt                525 kernel/trace/blktrace.c 	bt->msg_file = debugfs_create_file("msg", 0222, dir, bt, &blk_msg_fops);
bt                527 kernel/trace/blktrace.c 	bt->rchan = relay_open("trace", dir, buts->buf_size,
bt                528 kernel/trace/blktrace.c 				buts->buf_nr, &blk_relay_callbacks, bt);
bt                529 kernel/trace/blktrace.c 	if (!bt->rchan)
bt                532 kernel/trace/blktrace.c 	bt->act_mask = buts->act_mask;
bt                533 kernel/trace/blktrace.c 	if (!bt->act_mask)
bt                534 kernel/trace/blktrace.c 		bt->act_mask = (u16) -1;
bt                536 kernel/trace/blktrace.c 	blk_trace_setup_lba(bt, bdev);
bt                540 kernel/trace/blktrace.c 		bt->start_lba = buts->start_lba;
bt                542 kernel/trace/blktrace.c 		bt->end_lba = buts->end_lba;
bt                544 kernel/trace/blktrace.c 	bt->pid = buts->pid;
bt                545 kernel/trace/blktrace.c 	bt->trace_state = Blktrace_setup;
bt                548 kernel/trace/blktrace.c 	if (cmpxchg(&q->blk_trace, NULL, bt))
bt                555 kernel/trace/blktrace.c 	if (dir && !bt->dir)
bt                558 kernel/trace/blktrace.c 		blk_trace_free(bt);
bt                634 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt                636 kernel/trace/blktrace.c 	bt = rcu_dereference_protected(q->blk_trace,
bt                638 kernel/trace/blktrace.c 	if (bt == NULL)
bt                647 kernel/trace/blktrace.c 		if (bt->trace_state == Blktrace_setup ||
bt                648 kernel/trace/blktrace.c 		    bt->trace_state == Blktrace_stopped) {
bt                651 kernel/trace/blktrace.c 			bt->trace_state = Blktrace_running;
bt                653 kernel/trace/blktrace.c 			list_add(&bt->running_list, &running_trace_list);
bt                656 kernel/trace/blktrace.c 			trace_note_time(bt);
bt                660 kernel/trace/blktrace.c 		if (bt->trace_state == Blktrace_running) {
bt                661 kernel/trace/blktrace.c 			bt->trace_state = Blktrace_stopped;
bt                663 kernel/trace/blktrace.c 			list_del_init(&bt->running_list);
bt                665 kernel/trace/blktrace.c 			relay_flush(bt->rchan);
bt                760 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt                763 kernel/trace/blktrace.c 	bt = rcu_dereference_protected(q->blk_trace, 1);
bt                764 kernel/trace/blktrace.c 	if (!bt || !(blk_tracer_flags.val & TRACE_BLK_OPT_CGROUP))
bt                808 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt                811 kernel/trace/blktrace.c 	bt = rcu_dereference(rq->q->blk_trace);
bt                812 kernel/trace/blktrace.c 	if (likely(!bt)) {
bt                822 kernel/trace/blktrace.c 	__blk_add_trace(bt, blk_rq_trace_sector(rq), nr_bytes, req_op(rq),
bt                870 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt                873 kernel/trace/blktrace.c 	bt = rcu_dereference(q->blk_trace);
bt                874 kernel/trace/blktrace.c 	if (likely(!bt)) {
bt                879 kernel/trace/blktrace.c 	__blk_add_trace(bt, bio->bi_iter.bi_sector, bio->bi_iter.bi_size,
bt                927 kernel/trace/blktrace.c 		struct blk_trace *bt;
bt                930 kernel/trace/blktrace.c 		bt = rcu_dereference(q->blk_trace);
bt                931 kernel/trace/blktrace.c 		if (bt)
bt                932 kernel/trace/blktrace.c 			__blk_add_trace(bt, 0, 0, rw, 0, BLK_TA_GETRQ, 0, 0,
bt                946 kernel/trace/blktrace.c 		struct blk_trace *bt;
bt                949 kernel/trace/blktrace.c 		bt = rcu_dereference(q->blk_trace);
bt                950 kernel/trace/blktrace.c 		if (bt)
bt                951 kernel/trace/blktrace.c 			__blk_add_trace(bt, 0, 0, rw, 0, BLK_TA_SLEEPRQ,
bt                959 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt                962 kernel/trace/blktrace.c 	bt = rcu_dereference(q->blk_trace);
bt                963 kernel/trace/blktrace.c 	if (bt)
bt                964 kernel/trace/blktrace.c 		__blk_add_trace(bt, 0, 0, 0, 0, BLK_TA_PLUG, 0, 0, NULL, NULL);
bt                971 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt                974 kernel/trace/blktrace.c 	bt = rcu_dereference(q->blk_trace);
bt                975 kernel/trace/blktrace.c 	if (bt) {
bt                984 kernel/trace/blktrace.c 		__blk_add_trace(bt, 0, 0, 0, 0, what, 0, sizeof(rpdu), &rpdu, NULL);
bt                993 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt                996 kernel/trace/blktrace.c 	bt = rcu_dereference(q->blk_trace);
bt                997 kernel/trace/blktrace.c 	if (bt) {
bt               1000 kernel/trace/blktrace.c 		__blk_add_trace(bt, bio->bi_iter.bi_sector,
bt               1025 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt               1029 kernel/trace/blktrace.c 	bt = rcu_dereference(q->blk_trace);
bt               1030 kernel/trace/blktrace.c 	if (likely(!bt)) {
bt               1039 kernel/trace/blktrace.c 	__blk_add_trace(bt, bio->bi_iter.bi_sector, bio->bi_iter.bi_size,
bt               1063 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt               1067 kernel/trace/blktrace.c 	bt = rcu_dereference(q->blk_trace);
bt               1068 kernel/trace/blktrace.c 	if (likely(!bt)) {
bt               1077 kernel/trace/blktrace.c 	__blk_add_trace(bt, blk_rq_pos(rq), blk_rq_bytes(rq),
bt               1098 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt               1101 kernel/trace/blktrace.c 	bt = rcu_dereference(q->blk_trace);
bt               1102 kernel/trace/blktrace.c 	if (likely(!bt)) {
bt               1107 kernel/trace/blktrace.c 	__blk_add_trace(bt, blk_rq_trace_sector(rq), blk_rq_bytes(rq), 0, 0,
bt               1630 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt               1632 kernel/trace/blktrace.c 	bt = xchg(&q->blk_trace, NULL);
bt               1633 kernel/trace/blktrace.c 	if (bt == NULL)
bt               1638 kernel/trace/blktrace.c 	blk_trace_free(bt);
bt               1648 kernel/trace/blktrace.c 	struct blk_trace *bt = NULL;
bt               1651 kernel/trace/blktrace.c 	bt = kzalloc(sizeof(*bt), GFP_KERNEL);
bt               1652 kernel/trace/blktrace.c 	if (!bt)
bt               1655 kernel/trace/blktrace.c 	bt->msg_data = __alloc_percpu(BLK_TN_MAX_MSG, __alignof__(char));
bt               1656 kernel/trace/blktrace.c 	if (!bt->msg_data)
bt               1659 kernel/trace/blktrace.c 	bt->dev = bdev->bd_dev;
bt               1660 kernel/trace/blktrace.c 	bt->act_mask = (u16)-1;
bt               1662 kernel/trace/blktrace.c 	blk_trace_setup_lba(bt, bdev);
bt               1665 kernel/trace/blktrace.c 	if (cmpxchg(&q->blk_trace, NULL, bt))
bt               1672 kernel/trace/blktrace.c 	blk_trace_free(bt);
bt               1799 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt               1812 kernel/trace/blktrace.c 	bt = rcu_dereference_protected(q->blk_trace,
bt               1815 kernel/trace/blktrace.c 		ret = sprintf(buf, "%u\n", !!bt);
bt               1819 kernel/trace/blktrace.c 	if (bt == NULL)
bt               1822 kernel/trace/blktrace.c 		ret = blk_trace_mask2str(buf, bt->act_mask);
bt               1824 kernel/trace/blktrace.c 		ret = sprintf(buf, "%u\n", bt->pid);
bt               1826 kernel/trace/blktrace.c 		ret = sprintf(buf, "%llu\n", bt->start_lba);
bt               1828 kernel/trace/blktrace.c 		ret = sprintf(buf, "%llu\n", bt->end_lba);
bt               1845 kernel/trace/blktrace.c 	struct blk_trace *bt;
bt               1876 kernel/trace/blktrace.c 	bt = rcu_dereference_protected(q->blk_trace,
bt               1879 kernel/trace/blktrace.c 		if (!!value == !!bt) {
bt               1891 kernel/trace/blktrace.c 	if (bt == NULL) {
bt               1893 kernel/trace/blktrace.c 		bt = rcu_dereference_protected(q->blk_trace,
bt               1899 kernel/trace/blktrace.c 			bt->act_mask = value;
bt               1901 kernel/trace/blktrace.c 			bt->pid = value;
bt               1903 kernel/trace/blktrace.c 			bt->start_lba = value;
bt               1905 kernel/trace/blktrace.c 			bt->end_lba = value;
bt               1566 lib/zstd/compress.c 	U32 *const bt = zc->chainTable;
bt               1579 lib/zstd/compress.c 	U32 *smallerPtr = bt + 2 * (curr & btMask);
bt               1589 lib/zstd/compress.c 		U32 *const nextPtr = bt + 2 * (matchIndex & btMask);
bt               1649 lib/zstd/compress.c 	U32 *const bt = zc->chainTable;
bt               1662 lib/zstd/compress.c 	U32 *smallerPtr = bt + 2 * (curr & btMask);
bt               1663 lib/zstd/compress.c 	U32 *largerPtr = bt + 2 * (curr & btMask) + 1;
bt               1671 lib/zstd/compress.c 		U32 *const nextPtr = bt + 2 * (matchIndex & btMask);
bt                244 lib/zstd/zstd_opt.h 	U32 *const bt = zc->chainTable;
bt                254 lib/zstd/zstd_opt.h 	U32 *smallerPtr = bt + 2 * (curr & btMask);
bt                255 lib/zstd/zstd_opt.h 	U32 *largerPtr = bt + 2 * (curr & btMask) + 1;
bt                296 lib/zstd/zstd_opt.h 		U32 *nextPtr = bt + 2 * (matchIndex & btMask);
bt                649 net/bluetooth/af_bluetooth.c 		struct bt_sock *bt = bt_sk(sk);
bt                659 net/bluetooth/af_bluetooth.c 			   bt->parent? sock_i_ino(bt->parent): 0LU);
bt                 52 net/bluetooth/hci_sock.c 	struct bt_sock    bt;
bt                 64 net/bluetooth/sco.c 	struct bt_sock	bt;
bt                331 samples/v4l/v4l2-pci-skeleton.c 		pix->width = skel->timings.bt.width;
bt                332 samples/v4l/v4l2-pci-skeleton.c 		pix->height = skel->timings.bt.height;
bt                333 samples/v4l/v4l2-pci-skeleton.c 		if (skel->timings.bt.interlaced) {
bt                746 scripts/unifdef.c static Linetype op_strict(int *p, int v, Linetype at, Linetype bt) {
bt                747 scripts/unifdef.c 	if(at == LT_IF || bt == LT_IF) return (LT_IF);
bt                750 scripts/unifdef.c static Linetype op_lt(int *p, Linetype at, int a, Linetype bt, int b) {
bt                751 scripts/unifdef.c 	return op_strict(p, a < b, at, bt);
bt                753 scripts/unifdef.c static Linetype op_gt(int *p, Linetype at, int a, Linetype bt, int b) {
bt                754 scripts/unifdef.c 	return op_strict(p, a > b, at, bt);
bt                756 scripts/unifdef.c static Linetype op_le(int *p, Linetype at, int a, Linetype bt, int b) {
bt                757 scripts/unifdef.c 	return op_strict(p, a <= b, at, bt);
bt                759 scripts/unifdef.c static Linetype op_ge(int *p, Linetype at, int a, Linetype bt, int b) {
bt                760 scripts/unifdef.c 	return op_strict(p, a >= b, at, bt);
bt                762 scripts/unifdef.c static Linetype op_eq(int *p, Linetype at, int a, Linetype bt, int b) {
bt                763 scripts/unifdef.c 	return op_strict(p, a == b, at, bt);
bt                765 scripts/unifdef.c static Linetype op_ne(int *p, Linetype at, int a, Linetype bt, int b) {
bt                766 scripts/unifdef.c 	return op_strict(p, a != b, at, bt);
bt                768 scripts/unifdef.c static Linetype op_or(int *p, Linetype at, int a, Linetype bt, int b) {
bt                769 scripts/unifdef.c 	if (!strictlogic && (at == LT_TRUE || bt == LT_TRUE))
bt                771 scripts/unifdef.c 	return op_strict(p, a || b, at, bt);
bt                773 scripts/unifdef.c static Linetype op_and(int *p, Linetype at, int a, Linetype bt, int b) {
bt                774 scripts/unifdef.c 	if (!strictlogic && (at == LT_FALSE || bt == LT_FALSE))
bt                776 scripts/unifdef.c 	return op_strict(p, a && b, at, bt);
bt                193 sound/soc/mediatek/common/mtk-btcvsd.c static void mtk_btcvsd_snd_irq_enable(struct mtk_btcvsd_snd *bt)
bt                195 sound/soc/mediatek/common/mtk-btcvsd.c 	regmap_update_bits(bt->infra, bt->infra_misc_offset,
bt                196 sound/soc/mediatek/common/mtk-btcvsd.c 			   bt->conn_bt_cvsd_mask, 0);
bt                199 sound/soc/mediatek/common/mtk-btcvsd.c static void mtk_btcvsd_snd_irq_disable(struct mtk_btcvsd_snd *bt)
bt                201 sound/soc/mediatek/common/mtk-btcvsd.c 	regmap_update_bits(bt->infra, bt->infra_misc_offset,
bt                202 sound/soc/mediatek/common/mtk-btcvsd.c 			   bt->conn_bt_cvsd_mask, bt->conn_bt_cvsd_mask);
bt                205 sound/soc/mediatek/common/mtk-btcvsd.c static void mtk_btcvsd_snd_set_state(struct mtk_btcvsd_snd *bt,
bt                209 sound/soc/mediatek/common/mtk-btcvsd.c 	dev_dbg(bt->dev, "%s(), stream %d, state %d, tx->state %d, rx->state %d, irq_disabled %d\n",
bt                212 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->tx->state, bt->rx->state, bt->irq_disabled);
bt                216 sound/soc/mediatek/common/mtk-btcvsd.c 	if (bt->tx->state == BT_SCO_STATE_IDLE &&
bt                217 sound/soc/mediatek/common/mtk-btcvsd.c 	    bt->rx->state == BT_SCO_STATE_IDLE) {
bt                218 sound/soc/mediatek/common/mtk-btcvsd.c 		if (!bt->irq_disabled) {
bt                219 sound/soc/mediatek/common/mtk-btcvsd.c 			disable_irq(bt->irq_id);
bt                220 sound/soc/mediatek/common/mtk-btcvsd.c 			mtk_btcvsd_snd_irq_disable(bt);
bt                221 sound/soc/mediatek/common/mtk-btcvsd.c 			bt->irq_disabled = 1;
bt                224 sound/soc/mediatek/common/mtk-btcvsd.c 		if (bt->irq_disabled) {
bt                225 sound/soc/mediatek/common/mtk-btcvsd.c 			enable_irq(bt->irq_id);
bt                226 sound/soc/mediatek/common/mtk-btcvsd.c 			mtk_btcvsd_snd_irq_enable(bt);
bt                227 sound/soc/mediatek/common/mtk-btcvsd.c 			bt->irq_disabled = 0;
bt                232 sound/soc/mediatek/common/mtk-btcvsd.c static int mtk_btcvsd_snd_tx_init(struct mtk_btcvsd_snd *bt)
bt                234 sound/soc/mediatek/common/mtk-btcvsd.c 	memset(bt->tx, 0, sizeof(*bt->tx));
bt                235 sound/soc/mediatek/common/mtk-btcvsd.c 	memset(bt->tx_packet_buf, 0, sizeof(bt->tx_packet_buf));
bt                237 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->tx->packet_size = BTCVSD_TX_PACKET_SIZE;
bt                238 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->tx->buf_size = BTCVSD_TX_BUF_SIZE;
bt                239 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->tx->timeout = 0;
bt                240 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->tx->rw_cnt = 0;
bt                241 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->tx->stream = SNDRV_PCM_STREAM_PLAYBACK;
bt                245 sound/soc/mediatek/common/mtk-btcvsd.c static int mtk_btcvsd_snd_rx_init(struct mtk_btcvsd_snd *bt)
bt                247 sound/soc/mediatek/common/mtk-btcvsd.c 	memset(bt->rx, 0, sizeof(*bt->rx));
bt                248 sound/soc/mediatek/common/mtk-btcvsd.c 	memset(bt->rx_packet_buf, 0, sizeof(bt->rx_packet_buf));
bt                250 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->rx->packet_size = BTCVSD_RX_PACKET_SIZE;
bt                251 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->rx->buf_size = BTCVSD_RX_BUF_SIZE;
bt                252 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->rx->timeout = 0;
bt                253 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->rx->rw_cnt = 0;
bt                254 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->rx->stream = SNDRV_PCM_STREAM_CAPTURE;
bt                258 sound/soc/mediatek/common/mtk-btcvsd.c static void get_tx_time_stamp(struct mtk_btcvsd_snd *bt,
bt                261 sound/soc/mediatek/common/mtk-btcvsd.c 	ts->time_stamp_us = bt->tx->time_stamp;
bt                262 sound/soc/mediatek/common/mtk-btcvsd.c 	ts->data_count_equi_time = bt->tx->buf_data_equivalent_time;
bt                265 sound/soc/mediatek/common/mtk-btcvsd.c static void get_rx_time_stamp(struct mtk_btcvsd_snd *bt,
bt                268 sound/soc/mediatek/common/mtk-btcvsd.c 	ts->time_stamp_us = bt->rx->time_stamp;
bt                269 sound/soc/mediatek/common/mtk-btcvsd.c 	ts->data_count_equi_time = bt->rx->buf_data_equivalent_time;
bt                318 sound/soc/mediatek/common/mtk-btcvsd.c static int btcvsd_tx_clean_buffer(struct mtk_btcvsd_snd *bt)
bt                323 sound/soc/mediatek/common/mtk-btcvsd.c 	enum BT_SCO_BAND band = bt->band;
bt                327 sound/soc/mediatek/common/mtk-btcvsd.c 		memset(bt->tx->temp_packet_buf, 170, SCO_PACKET_180);
bt                329 sound/soc/mediatek/common/mtk-btcvsd.c 		memcpy(bt->tx->temp_packet_buf,
bt                333 sound/soc/mediatek/common/mtk-btcvsd.c 	spin_lock_irqsave(&bt->tx_lock, flags);
bt                334 sound/soc/mediatek/common/mtk-btcvsd.c 	num_valid_addr = bt->tx->buffer_info.num_valid_addr;
bt                336 sound/soc/mediatek/common/mtk-btcvsd.c 	dev_info(bt->dev, "%s(), band %d, num_valid_addr %u\n",
bt                342 sound/soc/mediatek/common/mtk-btcvsd.c 		dev_info(bt->dev, "%s(), clean addr 0x%lx\n", __func__,
bt                343 sound/soc/mediatek/common/mtk-btcvsd.c 			 bt->tx->buffer_info.bt_sram_addr[i]);
bt                345 sound/soc/mediatek/common/mtk-btcvsd.c 		dst = (void *)bt->tx->buffer_info.bt_sram_addr[i];
bt                348 sound/soc/mediatek/common/mtk-btcvsd.c 					     bt->tx->temp_packet_buf, dst,
bt                349 sound/soc/mediatek/common/mtk-btcvsd.c 					     bt->tx->buffer_info.packet_length,
bt                350 sound/soc/mediatek/common/mtk-btcvsd.c 					     bt->tx->buffer_info.packet_num);
bt                352 sound/soc/mediatek/common/mtk-btcvsd.c 	spin_unlock_irqrestore(&bt->tx_lock, flags);
bt                357 sound/soc/mediatek/common/mtk-btcvsd.c static int mtk_btcvsd_read_from_bt(struct mtk_btcvsd_snd *bt,
bt                371 sound/soc/mediatek/common/mtk-btcvsd.c 	connsys_addr_rx = *bt->bt_reg_pkt_r;
bt                372 sound/soc/mediatek/common/mtk-btcvsd.c 	ap_addr_rx = (unsigned long)bt->bt_sram_bank2_base +
bt                377 sound/soc/mediatek/common/mtk-btcvsd.c 		dev_warn(bt->dev, "%s(), connsys_addr_rx == 0xdeadfeed",
bt                385 sound/soc/mediatek/common/mtk-btcvsd.c 				     bt->rx->temp_packet_buf, packet_length,
bt                388 sound/soc/mediatek/common/mtk-btcvsd.c 	spin_lock_irqsave(&bt->rx_lock, flags);
bt                390 sound/soc/mediatek/common/mtk-btcvsd.c 		packet_buf_ofs = (bt->rx->packet_w & SCO_RX_PACKET_MASK) *
bt                391 sound/soc/mediatek/common/mtk-btcvsd.c 				 bt->rx->packet_size;
bt                392 sound/soc/mediatek/common/mtk-btcvsd.c 		memcpy(bt->rx_packet_buf + packet_buf_ofs,
bt                393 sound/soc/mediatek/common/mtk-btcvsd.c 		       bt->rx->temp_packet_buf + (SCO_RX_PLC_SIZE * i),
bt                402 sound/soc/mediatek/common/mtk-btcvsd.c 		memcpy(bt->rx_packet_buf + packet_buf_ofs, (void *)&pv,
bt                404 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->rx->packet_w++;
bt                406 sound/soc/mediatek/common/mtk-btcvsd.c 	spin_unlock_irqrestore(&bt->rx_lock, flags);
bt                410 sound/soc/mediatek/common/mtk-btcvsd.c static int mtk_btcvsd_write_to_bt(struct mtk_btcvsd_snd *bt,
bt                422 sound/soc/mediatek/common/mtk-btcvsd.c 	connsys_addr_tx = *bt->bt_reg_pkt_w;
bt                423 sound/soc/mediatek/common/mtk-btcvsd.c 	ap_addr_tx = (unsigned long)bt->bt_sram_bank2_base +
bt                428 sound/soc/mediatek/common/mtk-btcvsd.c 		dev_warn(bt->dev, "%s(), connsys_addr_tx == 0xdeadfeed\n",
bt                433 sound/soc/mediatek/common/mtk-btcvsd.c 	spin_lock_irqsave(&bt->tx_lock, flags);
bt                435 sound/soc/mediatek/common/mtk-btcvsd.c 		memcpy(bt->tx->temp_packet_buf + (bt->tx->packet_size * i),
bt                436 sound/soc/mediatek/common/mtk-btcvsd.c 		       (bt->tx_packet_buf +
bt                437 sound/soc/mediatek/common/mtk-btcvsd.c 			(bt->tx->packet_r % SCO_TX_PACKER_BUF_NUM) *
bt                438 sound/soc/mediatek/common/mtk-btcvsd.c 			bt->tx->packet_size),
bt                439 sound/soc/mediatek/common/mtk-btcvsd.c 		       bt->tx->packet_size);
bt                441 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->tx->packet_r++;
bt                443 sound/soc/mediatek/common/mtk-btcvsd.c 	spin_unlock_irqrestore(&bt->tx_lock, flags);
bt                447 sound/soc/mediatek/common/mtk-btcvsd.c 	if (!bt->tx->mute) {
bt                449 sound/soc/mediatek/common/mtk-btcvsd.c 					     bt->tx->temp_packet_buf, dst,
bt                454 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->tx->buffer_info.packet_length = packet_length;
bt                455 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->tx->buffer_info.packet_num = packet_num;
bt                456 sound/soc/mediatek/common/mtk-btcvsd.c 	for (i = 0; i < bt->tx->buffer_info.num_valid_addr; i++) {
bt                457 sound/soc/mediatek/common/mtk-btcvsd.c 		if (bt->tx->buffer_info.bt_sram_addr[i] == ap_addr_tx) {
bt                465 sound/soc/mediatek/common/mtk-btcvsd.c 		spin_lock_irqsave(&bt->tx_lock, flags);
bt                466 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->tx->buffer_info.num_valid_addr++;
bt                467 sound/soc/mediatek/common/mtk-btcvsd.c 		next_idx = bt->tx->buffer_info.num_valid_addr - 1;
bt                468 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->tx->buffer_info.bt_sram_addr[next_idx] = ap_addr_tx;
bt                469 sound/soc/mediatek/common/mtk-btcvsd.c 		spin_unlock_irqrestore(&bt->tx_lock, flags);
bt                470 sound/soc/mediatek/common/mtk-btcvsd.c 		dev_info(bt->dev, "%s(), new ap_addr_tx = 0x%lx, num_valid_addr %d\n",
bt                472 sound/soc/mediatek/common/mtk-btcvsd.c 			 bt->tx->buffer_info.num_valid_addr);
bt                475 sound/soc/mediatek/common/mtk-btcvsd.c 	if (bt->tx->mute)
bt                476 sound/soc/mediatek/common/mtk-btcvsd.c 		btcvsd_tx_clean_buffer(bt);
bt                483 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = dev;
bt                487 sound/soc/mediatek/common/mtk-btcvsd.c 	if (bt->rx->state != BT_SCO_STATE_RUNNING &&
bt                488 sound/soc/mediatek/common/mtk-btcvsd.c 	    bt->rx->state != BT_SCO_STATE_ENDING &&
bt                489 sound/soc/mediatek/common/mtk-btcvsd.c 	    bt->tx->state != BT_SCO_STATE_RUNNING &&
bt                490 sound/soc/mediatek/common/mtk-btcvsd.c 	    bt->tx->state != BT_SCO_STATE_ENDING &&
bt                491 sound/soc/mediatek/common/mtk-btcvsd.c 	    bt->tx->state != BT_SCO_STATE_LOOPBACK) {
bt                492 sound/soc/mediatek/common/mtk-btcvsd.c 		dev_warn(bt->dev, "%s(), in idle state: rx->state: %d, tx->state: %d\n",
bt                493 sound/soc/mediatek/common/mtk-btcvsd.c 			 __func__, bt->rx->state, bt->tx->state);
bt                497 sound/soc/mediatek/common/mtk-btcvsd.c 	control = *bt->bt_reg_ctl;
bt                501 sound/soc/mediatek/common/mtk-btcvsd.c 		dev_warn(bt->dev, "%s(), ((control >> 31) & 1) == 0, control 0x%x\n",
bt                507 sound/soc/mediatek/common/mtk-btcvsd.c 		dev_warn(bt->dev, "%s(), invalid packet_type %u, exit\n",
bt                517 sound/soc/mediatek/common/mtk-btcvsd.c 	if (bt->tx->state == BT_SCO_STATE_LOOPBACK) {
bt                522 sound/soc/mediatek/common/mtk-btcvsd.c 		connsys_addr_rx = *bt->bt_reg_pkt_r;
bt                523 sound/soc/mediatek/common/mtk-btcvsd.c 		ap_addr_rx = (unsigned long)bt->bt_sram_bank2_base +
bt                526 sound/soc/mediatek/common/mtk-btcvsd.c 		connsys_addr_tx = *bt->bt_reg_pkt_w;
bt                527 sound/soc/mediatek/common/mtk-btcvsd.c 		ap_addr_tx = (unsigned long)bt->bt_sram_bank2_base +
bt                533 sound/soc/mediatek/common/mtk-btcvsd.c 			dev_warn(bt->dev, "%s(), connsys_addr_tx == 0xdeadfeed\n",
bt                542 sound/soc/mediatek/common/mtk-btcvsd.c 					     bt->tx->temp_packet_buf,
bt                546 sound/soc/mediatek/common/mtk-btcvsd.c 					     bt->tx->temp_packet_buf, dst,
bt                549 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->rx->rw_cnt++;
bt                550 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->tx->rw_cnt++;
bt                553 sound/soc/mediatek/common/mtk-btcvsd.c 	if (bt->rx->state == BT_SCO_STATE_RUNNING ||
bt                554 sound/soc/mediatek/common/mtk-btcvsd.c 	    bt->rx->state == BT_SCO_STATE_ENDING) {
bt                555 sound/soc/mediatek/common/mtk-btcvsd.c 		if (bt->rx->xrun) {
bt                556 sound/soc/mediatek/common/mtk-btcvsd.c 			if (bt->rx->packet_w - bt->rx->packet_r <=
bt                562 sound/soc/mediatek/common/mtk-btcvsd.c 				bt->rx->xrun = 0;
bt                563 sound/soc/mediatek/common/mtk-btcvsd.c 				dev_warn(bt->dev, "%s(), rx->xrun 0!\n",
bt                568 sound/soc/mediatek/common/mtk-btcvsd.c 		if (!bt->rx->xrun &&
bt                569 sound/soc/mediatek/common/mtk-btcvsd.c 		    (bt->rx->packet_w - bt->rx->packet_r <=
bt                571 sound/soc/mediatek/common/mtk-btcvsd.c 			mtk_btcvsd_read_from_bt(bt,
bt                577 sound/soc/mediatek/common/mtk-btcvsd.c 			bt->rx->rw_cnt++;
bt                579 sound/soc/mediatek/common/mtk-btcvsd.c 			bt->rx->xrun = 1;
bt                580 sound/soc/mediatek/common/mtk-btcvsd.c 			dev_warn(bt->dev, "%s(), rx->xrun 1\n", __func__);
bt                585 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->tx->timeout = 0;
bt                586 sound/soc/mediatek/common/mtk-btcvsd.c 	if ((bt->tx->state == BT_SCO_STATE_RUNNING ||
bt                587 sound/soc/mediatek/common/mtk-btcvsd.c 	     bt->tx->state == BT_SCO_STATE_ENDING) &&
bt                588 sound/soc/mediatek/common/mtk-btcvsd.c 	    bt->tx->trigger_start) {
bt                589 sound/soc/mediatek/common/mtk-btcvsd.c 		if (bt->tx->xrun) {
bt                593 sound/soc/mediatek/common/mtk-btcvsd.c 			if (bt->tx->packet_w - bt->tx->packet_r >=
bt                595 sound/soc/mediatek/common/mtk-btcvsd.c 				bt->tx->xrun = 0;
bt                596 sound/soc/mediatek/common/mtk-btcvsd.c 				dev_warn(bt->dev, "%s(), tx->xrun 0\n",
bt                601 sound/soc/mediatek/common/mtk-btcvsd.c 		if ((!bt->tx->xrun &&
bt                602 sound/soc/mediatek/common/mtk-btcvsd.c 		     (bt->tx->packet_w - bt->tx->packet_r >= buf_cnt_tx)) ||
bt                603 sound/soc/mediatek/common/mtk-btcvsd.c 		    bt->tx->state == BT_SCO_STATE_ENDING) {
bt                604 sound/soc/mediatek/common/mtk-btcvsd.c 			mtk_btcvsd_write_to_bt(bt,
bt                609 sound/soc/mediatek/common/mtk-btcvsd.c 			bt->tx->rw_cnt++;
bt                611 sound/soc/mediatek/common/mtk-btcvsd.c 			bt->tx->xrun = 1;
bt                612 sound/soc/mediatek/common/mtk-btcvsd.c 			dev_warn(bt->dev, "%s(), tx->xrun 1\n", __func__);
bt                616 sound/soc/mediatek/common/mtk-btcvsd.c 	*bt->bt_reg_ctl &= ~BT_CVSD_CLEAR;
bt                618 sound/soc/mediatek/common/mtk-btcvsd.c 	if (bt->rx->state == BT_SCO_STATE_RUNNING ||
bt                619 sound/soc/mediatek/common/mtk-btcvsd.c 	    bt->rx->state == BT_SCO_STATE_ENDING) {
bt                620 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->rx->wait_flag = 1;
bt                621 sound/soc/mediatek/common/mtk-btcvsd.c 		wake_up_interruptible(&bt->rx_wait);
bt                622 sound/soc/mediatek/common/mtk-btcvsd.c 		snd_pcm_period_elapsed(bt->rx->substream);
bt                624 sound/soc/mediatek/common/mtk-btcvsd.c 	if (bt->tx->state == BT_SCO_STATE_RUNNING ||
bt                625 sound/soc/mediatek/common/mtk-btcvsd.c 	    bt->tx->state == BT_SCO_STATE_ENDING) {
bt                626 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->tx->wait_flag = 1;
bt                627 sound/soc/mediatek/common/mtk-btcvsd.c 		wake_up_interruptible(&bt->tx_wait);
bt                628 sound/soc/mediatek/common/mtk-btcvsd.c 		snd_pcm_period_elapsed(bt->tx->substream);
bt                633 sound/soc/mediatek/common/mtk-btcvsd.c 	*bt->bt_reg_ctl &= ~BT_CVSD_CLEAR;
bt                637 sound/soc/mediatek/common/mtk-btcvsd.c static int wait_for_bt_irq(struct mtk_btcvsd_snd *bt,
bt                651 sound/soc/mediatek/common/mtk-btcvsd.c 			ret = wait_event_interruptible_timeout(bt->tx_wait,
bt                655 sound/soc/mediatek/common/mtk-btcvsd.c 			ret = wait_event_interruptible_timeout(bt->rx_wait,
bt                664 sound/soc/mediatek/common/mtk-btcvsd.c 			dev_warn(bt->dev, "%s(), stream %d, timeout %llu, limit %llu, ret %d, flag %d\n",
bt                675 sound/soc/mediatek/common/mtk-btcvsd.c 			dev_warn(bt->dev, "%s(), stream %d, error, trial left %d\n",
bt                684 sound/soc/mediatek/common/mtk-btcvsd.c 			dev_warn(bt->dev, "%s(), stream %d, error, timeout, condition is false, trial left %d\n",
bt                698 sound/soc/mediatek/common/mtk-btcvsd.c static ssize_t mtk_btcvsd_snd_read(struct mtk_btcvsd_snd *bt,
bt                706 sound/soc/mediatek/common/mtk-btcvsd.c 	unsigned int packet_size = bt->rx->packet_size;
bt                709 sound/soc/mediatek/common/mtk-btcvsd.c 		spin_lock_irqsave(&bt->rx_lock, flags);
bt                711 sound/soc/mediatek/common/mtk-btcvsd.c 		avail = (bt->rx->packet_w - bt->rx->packet_r) * packet_size;
bt                713 sound/soc/mediatek/common/mtk-btcvsd.c 		cur_read_idx = (bt->rx->packet_r & SCO_RX_PACKET_MASK) *
bt                715 sound/soc/mediatek/common/mtk-btcvsd.c 		spin_unlock_irqrestore(&bt->rx_lock, flags);
bt                718 sound/soc/mediatek/common/mtk-btcvsd.c 			int ret = wait_for_bt_irq(bt, bt->rx);
bt                729 sound/soc/mediatek/common/mtk-btcvsd.c 			dev_warn(bt->dev, "%s(), count %zu or d %lu is not multiple of packet_size %dd\n",
bt                742 sound/soc/mediatek/common/mtk-btcvsd.c 		cont = bt->rx->buf_size - cur_read_idx;
bt                747 sound/soc/mediatek/common/mtk-btcvsd.c 				 bt->rx_packet_buf + cur_read_idx,
bt                749 sound/soc/mediatek/common/mtk-btcvsd.c 			dev_warn(bt->dev, "%s(), copy_to_user fail\n",
bt                754 sound/soc/mediatek/common/mtk-btcvsd.c 		spin_lock_irqsave(&bt->rx_lock, flags);
bt                755 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->rx->packet_r += read_size / packet_size;
bt                756 sound/soc/mediatek/common/mtk-btcvsd.c 		spin_unlock_irqrestore(&bt->rx_lock, flags);
bt                767 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->rx->time_stamp = sched_clock();
bt                768 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->rx->buf_data_equivalent_time =
bt                769 sound/soc/mediatek/common/mtk-btcvsd.c 		(unsigned long long)(bt->rx->packet_w - bt->rx->packet_r) *
bt                771 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->rx->buf_data_equivalent_time += read_count * SCO_RX_PLC_SIZE *
bt                774 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->rx->buf_data_equivalent_time *= 1000;
bt                779 sound/soc/mediatek/common/mtk-btcvsd.c static ssize_t mtk_btcvsd_snd_write(struct mtk_btcvsd_snd *bt,
bt                786 sound/soc/mediatek/common/mtk-btcvsd.c 	unsigned int packet_size = bt->tx->packet_size;
bt                792 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->tx->time_stamp = sched_clock();
bt                793 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->tx->buf_data_equivalent_time =
bt                794 sound/soc/mediatek/common/mtk-btcvsd.c 		(unsigned long long)(bt->tx->packet_w - bt->tx->packet_r) *
bt                798 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->tx->buf_data_equivalent_time *= 1000;
bt                801 sound/soc/mediatek/common/mtk-btcvsd.c 		spin_lock_irqsave(&bt->tx_lock, flags);
bt                803 sound/soc/mediatek/common/mtk-btcvsd.c 		avail = bt->tx->buf_size -
bt                804 sound/soc/mediatek/common/mtk-btcvsd.c 			(bt->tx->packet_w - bt->tx->packet_r) * packet_size;
bt                806 sound/soc/mediatek/common/mtk-btcvsd.c 		cur_write_idx = (bt->tx->packet_w % SCO_TX_PACKER_BUF_NUM) *
bt                808 sound/soc/mediatek/common/mtk-btcvsd.c 		spin_unlock_irqrestore(&bt->tx_lock, flags);
bt                811 sound/soc/mediatek/common/mtk-btcvsd.c 			int ret = wait_for_bt_irq(bt, bt->rx);
bt                822 sound/soc/mediatek/common/mtk-btcvsd.c 			dev_warn(bt->dev, "%s(), count %zu or avail %d is not multiple of packet_size %d\n",
bt                834 sound/soc/mediatek/common/mtk-btcvsd.c 		cont = bt->tx->buf_size - cur_write_idx;
bt                838 sound/soc/mediatek/common/mtk-btcvsd.c 		if (copy_from_user(bt->tx_packet_buf +
bt                842 sound/soc/mediatek/common/mtk-btcvsd.c 			dev_warn(bt->dev, "%s(), copy_from_user fail\n",
bt                847 sound/soc/mediatek/common/mtk-btcvsd.c 		spin_lock_irqsave(&bt->tx_lock, flags);
bt                848 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->tx->packet_w += write_size / packet_size;
bt                849 sound/soc/mediatek/common/mtk-btcvsd.c 		spin_unlock_irqrestore(&bt->tx_lock, flags);
bt                858 sound/soc/mediatek/common/mtk-btcvsd.c 	(struct mtk_btcvsd_snd *bt, struct snd_pcm_substream *substream)
bt                861 sound/soc/mediatek/common/mtk-btcvsd.c 		return bt->tx;
bt                863 sound/soc/mediatek/common/mtk-btcvsd.c 		return bt->rx;
bt                883 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(component);
bt                886 sound/soc/mediatek/common/mtk-btcvsd.c 	dev_dbg(bt->dev, "%s(), stream %d, substream %p\n",
bt                892 sound/soc/mediatek/common/mtk-btcvsd.c 		ret = mtk_btcvsd_snd_tx_init(bt);
bt                893 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->tx->substream = substream;
bt                895 sound/soc/mediatek/common/mtk-btcvsd.c 		ret = mtk_btcvsd_snd_rx_init(bt);
bt                896 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->rx->substream = substream;
bt                907 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(component);
bt                908 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd_stream *bt_stream = get_bt_stream(bt, substream);
bt                910 sound/soc/mediatek/common/mtk-btcvsd.c 	dev_dbg(bt->dev, "%s(), stream %d\n", __func__, substream->stream);
bt                912 sound/soc/mediatek/common/mtk-btcvsd.c 	mtk_btcvsd_snd_set_state(bt, bt_stream, BT_SCO_STATE_IDLE);
bt                923 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(component);
bt                926 sound/soc/mediatek/common/mtk-btcvsd.c 	    params_buffer_bytes(hw_params) % bt->tx->packet_size != 0) {
bt                927 sound/soc/mediatek/common/mtk-btcvsd.c 		dev_warn(bt->dev, "%s(), error, buffer size %d not valid\n",
bt                942 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(component);
bt                945 sound/soc/mediatek/common/mtk-btcvsd.c 		btcvsd_tx_clean_buffer(bt);
bt                955 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(component);
bt                956 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd_stream *bt_stream = get_bt_stream(bt, substream);
bt                958 sound/soc/mediatek/common/mtk-btcvsd.c 	dev_dbg(bt->dev, "%s(), stream %d\n", __func__, substream->stream);
bt                960 sound/soc/mediatek/common/mtk-btcvsd.c 	mtk_btcvsd_snd_set_state(bt, bt_stream, BT_SCO_STATE_RUNNING);
bt                969 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(component);
bt                970 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd_stream *bt_stream = get_bt_stream(bt, substream);
bt                974 sound/soc/mediatek/common/mtk-btcvsd.c 	dev_dbg(bt->dev, "%s(), stream %d, cmd %d\n",
bt                989 sound/soc/mediatek/common/mtk-btcvsd.c 		mtk_btcvsd_snd_set_state(bt, bt_stream, BT_SCO_STATE_ENDING);
bt               1002 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(component);
bt               1012 sound/soc/mediatek/common/mtk-btcvsd.c 		lock = &bt->tx_lock;
bt               1013 sound/soc/mediatek/common/mtk-btcvsd.c 		bt_stream = bt->tx;
bt               1015 sound/soc/mediatek/common/mtk-btcvsd.c 		lock = &bt->rx_lock;
bt               1016 sound/soc/mediatek/common/mtk-btcvsd.c 		bt_stream = bt->rx;
bt               1021 sound/soc/mediatek/common/mtk-btcvsd.c 			bt->tx->packet_r : bt->rx->packet_w;
bt               1054 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(component);
bt               1057 sound/soc/mediatek/common/mtk-btcvsd.c 		mtk_btcvsd_snd_write(bt, buf, count);
bt               1059 sound/soc/mediatek/common/mtk-btcvsd.c 		mtk_btcvsd_snd_read(bt, buf, count);
bt               1087 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(cmpnt);
bt               1089 sound/soc/mediatek/common/mtk-btcvsd.c 	ucontrol->value.integer.value[0] = bt->band;
bt               1097 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(cmpnt);
bt               1103 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->band = ucontrol->value.integer.value[0];
bt               1104 sound/soc/mediatek/common/mtk-btcvsd.c 	dev_dbg(bt->dev, "%s(), band %d\n", __func__, bt->band);
bt               1112 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(cmpnt);
bt               1113 sound/soc/mediatek/common/mtk-btcvsd.c 	bool lpbk_en = bt->tx->state == BT_SCO_STATE_LOOPBACK;
bt               1123 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(cmpnt);
bt               1126 sound/soc/mediatek/common/mtk-btcvsd.c 		mtk_btcvsd_snd_set_state(bt, bt->tx, BT_SCO_STATE_LOOPBACK);
bt               1127 sound/soc/mediatek/common/mtk-btcvsd.c 		mtk_btcvsd_snd_set_state(bt, bt->rx, BT_SCO_STATE_LOOPBACK);
bt               1129 sound/soc/mediatek/common/mtk-btcvsd.c 		mtk_btcvsd_snd_set_state(bt, bt->tx, BT_SCO_STATE_RUNNING);
bt               1130 sound/soc/mediatek/common/mtk-btcvsd.c 		mtk_btcvsd_snd_set_state(bt, bt->rx, BT_SCO_STATE_RUNNING);
bt               1139 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(cmpnt);
bt               1141 sound/soc/mediatek/common/mtk-btcvsd.c 	if (!bt->tx) {
bt               1146 sound/soc/mediatek/common/mtk-btcvsd.c 	ucontrol->value.integer.value[0] = bt->tx->mute;
bt               1154 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(cmpnt);
bt               1156 sound/soc/mediatek/common/mtk-btcvsd.c 	if (!bt->tx)
bt               1159 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->tx->mute = ucontrol->value.integer.value[0];
bt               1167 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(cmpnt);
bt               1169 sound/soc/mediatek/common/mtk-btcvsd.c 	if (!bt->rx)
bt               1172 sound/soc/mediatek/common/mtk-btcvsd.c 	ucontrol->value.integer.value[0] = bt->rx->rw_cnt ? 1 : 0;
bt               1180 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(cmpnt);
bt               1182 sound/soc/mediatek/common/mtk-btcvsd.c 	if (!bt->rx)
bt               1185 sound/soc/mediatek/common/mtk-btcvsd.c 	ucontrol->value.integer.value[0] = bt->rx->timeout;
bt               1186 sound/soc/mediatek/common/mtk-btcvsd.c 	bt->rx->timeout = 0;
bt               1194 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(cmpnt);
bt               1201 sound/soc/mediatek/common/mtk-btcvsd.c 	get_rx_time_stamp(bt, &time_buffer_info_rx);
bt               1203 sound/soc/mediatek/common/mtk-btcvsd.c 	dev_dbg(bt->dev, "%s(), time_stamp_us %llu, data_count_equi_time %llu",
bt               1210 sound/soc/mediatek/common/mtk-btcvsd.c 		dev_warn(bt->dev, "%s(), copy_to_user fail", __func__);
bt               1221 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(cmpnt);
bt               1223 sound/soc/mediatek/common/mtk-btcvsd.c 	if (!bt->tx)
bt               1226 sound/soc/mediatek/common/mtk-btcvsd.c 	ucontrol->value.integer.value[0] = bt->tx->rw_cnt ? 1 : 0;
bt               1234 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(cmpnt);
bt               1236 sound/soc/mediatek/common/mtk-btcvsd.c 	ucontrol->value.integer.value[0] = bt->tx->timeout;
bt               1244 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd *bt = snd_soc_component_get_drvdata(cmpnt);
bt               1251 sound/soc/mediatek/common/mtk-btcvsd.c 	get_tx_time_stamp(bt, &time_buffer_info_tx);
bt               1253 sound/soc/mediatek/common/mtk-btcvsd.c 	dev_dbg(bt->dev, "%s(), time_stamp_us %llu, data_count_equi_time %llu",
bt               1260 sound/soc/mediatek/common/mtk-btcvsd.c 		dev_warn(bt->dev, "%s(), copy_to_user fail", __func__);
bt                438 sound/soc/samsung/tm2_wm5110.c SND_SOC_DAILINK_DEFS(bt,
bt                470 sound/soc/samsung/tm2_wm5110.c 		SND_SOC_DAILINK_REG(bt),
bt                 80 tools/perf/pmu-events/jevents.c 		     const char *a, jsmntok_t *bt)
bt                 84 tools/perf/pmu-events/jevents.c 	int blen = bt ? json_len(bt) : 0;
bt                 99 tools/perf/pmu-events/jevents.c 	if (bt)
bt                100 tools/perf/pmu-events/jevents.c 		strncat(*dst, map + bt->start, blen);
bt                 94 tools/perf/util/intel-pt-decoder/intel-pt-decoder.h #define BLK_TYPE(bt) [INTEL_PT_##bt] = INTEL_PT_##bt##_POS + 1