bs                 43 arch/mips/txx9/generic/mem_tx4927.c 	unsigned int bs = 0;
bs                 58 arch/mips/txx9/generic/mem_tx4927.c 		bs = 2 << sdccr_bs;
bs                 64 arch/mips/txx9/generic/mem_tx4927.c 	return rs * cs * mw * bs;
bs                 49 arch/powerpc/include/asm/bitops.h #define PPC_BITMASK(bs, be)	((PPC_BIT(bs) - PPC_BIT(be)) | PPC_BIT(bs))
bs                 57 arch/powerpc/include/asm/bitops.h #define PPC_BITMASK32(bs, be)	((PPC_BIT32(bs) - PPC_BIT32(be))|PPC_BIT32(bs))
bs                 61 arch/powerpc/include/asm/bitops.h #define PPC_BITMASK8(bs, be)	((PPC_BIT8(bs) - PPC_BIT8(be))|PPC_BIT8(bs))
bs                158 arch/powerpc/lib/rheap.c 	unsigned long s, e, bs, be;
bs                175 arch/powerpc/lib/rheap.c 		bs = blk->start;
bs                176 arch/powerpc/lib/rheap.c 		be = bs + blk->size;
bs                178 arch/powerpc/lib/rheap.c 		if (next == NULL && s >= bs)
bs                184 arch/powerpc/lib/rheap.c 		if (e == bs)
bs                374 arch/powerpc/lib/rheap.c 	unsigned long s, e, m, bs, be;
bs                398 arch/powerpc/lib/rheap.c 		bs = blk->start;
bs                400 arch/powerpc/lib/rheap.c 		if (s >= bs && e <= be)
bs                409 arch/powerpc/lib/rheap.c 	if (bs == s && be == e) {
bs                417 arch/powerpc/lib/rheap.c 	if (bs == s || be == e) {
bs                418 arch/powerpc/lib/rheap.c 		if (bs == s)
bs                424 arch/powerpc/lib/rheap.c 		blk->size = s - bs;
bs                531 arch/powerpc/lib/rheap.c 	unsigned long s, e, m, bs = 0, be = 0;
bs                555 arch/powerpc/lib/rheap.c 		bs = blk->start;
bs                557 arch/powerpc/lib/rheap.c 		if (s >= bs && e <= be)
bs                566 arch/powerpc/lib/rheap.c 	if (bs == s && be == e) {
bs                579 arch/powerpc/lib/rheap.c 	if (bs == s || be == e) {
bs                580 arch/powerpc/lib/rheap.c 		if (bs == s)
bs                586 arch/powerpc/lib/rheap.c 		blk->size = s - bs;
bs                 46 arch/s390/include/asm/eadm.h 	u16 bs:4;
bs                 42 block/bio-integrity.c 	struct bio_set *bs = bio->bi_pool;
bs                 45 block/bio-integrity.c 	if (!bs || !mempool_initialized(&bs->bio_integrity_pool)) {
bs                 49 block/bio-integrity.c 		bip = mempool_alloc(&bs->bio_integrity_pool, gfp_mask);
bs                 62 block/bio-integrity.c 					  &bs->bvec_integrity_pool);
bs                 78 block/bio-integrity.c 	mempool_free(bip, &bs->bio_integrity_pool);
bs                 93 block/bio-integrity.c 	struct bio_set *bs = bio->bi_pool;
bs                 99 block/bio-integrity.c 	if (bs && mempool_initialized(&bs->bio_integrity_pool)) {
bs                100 block/bio-integrity.c 		bvec_free(&bs->bvec_integrity_pool, bip->bip_vec, bip->bip_slab);
bs                102 block/bio-integrity.c 		mempool_free(bip, &bs->bio_integrity_pool);
bs                428 block/bio-integrity.c int bioset_integrity_create(struct bio_set *bs, int pool_size)
bs                430 block/bio-integrity.c 	if (mempool_initialized(&bs->bio_integrity_pool))
bs                433 block/bio-integrity.c 	if (mempool_init_slab_pool(&bs->bio_integrity_pool,
bs                437 block/bio-integrity.c 	if (biovec_init_pool(&bs->bvec_integrity_pool, pool_size)) {
bs                438 block/bio-integrity.c 		mempool_exit(&bs->bio_integrity_pool);
bs                446 block/bio-integrity.c void bioset_integrity_free(struct bio_set *bs)
bs                448 block/bio-integrity.c 	mempool_exit(&bs->bio_integrity_pool);
bs                449 block/bio-integrity.c 	mempool_exit(&bs->bvec_integrity_pool);
bs                118 block/bio.c    static void bio_put_slab(struct bio_set *bs)
bs                126 block/bio.c    		if (bs->bio_slab == bio_slabs[i].slab) {
bs                244 block/bio.c    	struct bio_set *bs = bio->bi_pool;
bs                249 block/bio.c    	if (bs) {
bs                250 block/bio.c    		bvec_free(&bs->bvec_pool, bio->bi_io_vec, BVEC_POOL_IDX(bio));
bs                256 block/bio.c    		p -= bs->front_pad;
bs                258 block/bio.c    		mempool_free(p, &bs->bio_pool);
bs                342 block/bio.c    	struct bio_set *bs = container_of(work, struct bio_set, rescue_work);
bs                346 block/bio.c    		spin_lock(&bs->rescue_lock);
bs                347 block/bio.c    		bio = bio_list_pop(&bs->rescue_list);
bs                348 block/bio.c    		spin_unlock(&bs->rescue_lock);
bs                357 block/bio.c    static void punt_bios_to_rescuer(struct bio_set *bs)
bs                362 block/bio.c    	if (WARN_ON_ONCE(!bs->rescue_workqueue))
bs                379 block/bio.c    		bio_list_add(bio->bi_pool == bs ? &punt : &nopunt, bio);
bs                384 block/bio.c    		bio_list_add(bio->bi_pool == bs ? &punt : &nopunt, bio);
bs                387 block/bio.c    	spin_lock(&bs->rescue_lock);
bs                388 block/bio.c    	bio_list_merge(&bs->rescue_list, &punt);
bs                389 block/bio.c    	spin_unlock(&bs->rescue_lock);
bs                391 block/bio.c    	queue_work(bs->rescue_workqueue, &bs->rescue_work);
bs                430 block/bio.c    			     struct bio_set *bs)
bs                439 block/bio.c    	if (!bs) {
bs                450 block/bio.c    		if (WARN_ON_ONCE(!mempool_initialized(&bs->bvec_pool) &&
bs                477 block/bio.c    		    bs->rescue_workqueue)
bs                480 block/bio.c    		p = mempool_alloc(&bs->bio_pool, gfp_mask);
bs                482 block/bio.c    			punt_bios_to_rescuer(bs);
bs                484 block/bio.c    			p = mempool_alloc(&bs->bio_pool, gfp_mask);
bs                487 block/bio.c    		front_pad = bs->front_pad;
bs                500 block/bio.c    		bvl = bvec_alloc(gfp_mask, nr_iovecs, &idx, &bs->bvec_pool);
bs                502 block/bio.c    			punt_bios_to_rescuer(bs);
bs                504 block/bio.c    			bvl = bvec_alloc(gfp_mask, nr_iovecs, &idx, &bs->bvec_pool);
bs                515 block/bio.c    	bio->bi_pool = bs;
bs                521 block/bio.c    	mempool_free(p, &bs->bio_pool);
bs                657 block/bio.c    struct bio *bio_clone_fast(struct bio *bio, gfp_t gfp_mask, struct bio_set *bs)
bs                661 block/bio.c    	b = bio_alloc_bioset(gfp_mask, 0, bs);
bs               1891 block/bio.c    		      gfp_t gfp, struct bio_set *bs)
bs               1898 block/bio.c    	split = bio_clone_fast(bio, gfp, bs);
bs               1958 block/bio.c    void bioset_exit(struct bio_set *bs)
bs               1960 block/bio.c    	if (bs->rescue_workqueue)
bs               1961 block/bio.c    		destroy_workqueue(bs->rescue_workqueue);
bs               1962 block/bio.c    	bs->rescue_workqueue = NULL;
bs               1964 block/bio.c    	mempool_exit(&bs->bio_pool);
bs               1965 block/bio.c    	mempool_exit(&bs->bvec_pool);
bs               1967 block/bio.c    	bioset_integrity_free(bs);
bs               1968 block/bio.c    	if (bs->bio_slab)
bs               1969 block/bio.c    		bio_put_slab(bs);
bs               1970 block/bio.c    	bs->bio_slab = NULL;
bs               1995 block/bio.c    int bioset_init(struct bio_set *bs,
bs               2002 block/bio.c    	bs->front_pad = front_pad;
bs               2004 block/bio.c    	spin_lock_init(&bs->rescue_lock);
bs               2005 block/bio.c    	bio_list_init(&bs->rescue_list);
bs               2006 block/bio.c    	INIT_WORK(&bs->rescue_work, bio_alloc_rescue);
bs               2008 block/bio.c    	bs->bio_slab = bio_find_or_create_slab(front_pad + back_pad);
bs               2009 block/bio.c    	if (!bs->bio_slab)
bs               2012 block/bio.c    	if (mempool_init_slab_pool(&bs->bio_pool, pool_size, bs->bio_slab))
bs               2016 block/bio.c    	    biovec_init_pool(&bs->bvec_pool, pool_size))
bs               2022 block/bio.c    	bs->rescue_workqueue = alloc_workqueue("bioset", WQ_MEM_RECLAIM, 0);
bs               2023 block/bio.c    	if (!bs->rescue_workqueue)
bs               2028 block/bio.c    	bioset_exit(bs);
bs               2037 block/bio.c    int bioset_init_from_src(struct bio_set *bs, struct bio_set *src)
bs               2047 block/bio.c    	return bioset_init(bs, src->bio_pool.min_nr, src->front_pad, flags);
bs               1617 block/blk-core.c 		      struct bio_set *bs, gfp_t gfp_mask,
bs               1623 block/blk-core.c 	if (!bs)
bs               1624 block/blk-core.c 		bs = &fs_bio_set;
bs               1627 block/blk-core.c 		bio = bio_clone_fast(bio_src, gfp_mask, bs);
bs                 63 block/blk-merge.c 					 struct bio_set *bs,
bs                102 block/blk-merge.c 	return bio_split(bio, split_sectors, GFP_NOIO, bs);
bs                106 block/blk-merge.c 		struct bio *bio, struct bio_set *bs, unsigned *nsegs)
bs                116 block/blk-merge.c 	return bio_split(bio, q->limits.max_write_zeroes_sectors, GFP_NOIO, bs);
bs                121 block/blk-merge.c 					    struct bio_set *bs,
bs                132 block/blk-merge.c 	return bio_split(bio, q->limits.max_write_same_sectors, GFP_NOIO, bs);
bs                242 block/blk-merge.c 					 struct bio_set *bs,
bs                277 block/blk-merge.c 	return bio_split(bio, sectors, GFP_NOIO, bs);
bs                218 block/bounce.c 		struct bio_set *bs)
bs                246 block/bounce.c 	bio = bio_alloc_bioset(gfp_mask, bio_segments(bio_src), bs);
bs                181 crypto/ablkcipher.c 	unsigned bs = walk->blocksize;
bs                183 crypto/ablkcipher.c 	unsigned aligned_bs = ALIGN(bs, alignmask + 1);
bs                194 crypto/ablkcipher.c 	iv = ablkcipher_get_spot(iv, bs) + aligned_bs;
bs                195 crypto/ablkcipher.c 	iv = ablkcipher_get_spot(iv, bs) + aligned_bs;
bs                 59 crypto/algif_skcipher.c 	unsigned int bs = crypto_skcipher_chunksize(tfm);
bs                 90 crypto/algif_skcipher.c 		len -= len % bs;
bs                271 crypto/blkcipher.c 	unsigned bs = walk->walk_blocksize;
bs                272 crypto/blkcipher.c 	unsigned aligned_bs = ALIGN(bs, walk->alignmask + 1);
bs                284 crypto/blkcipher.c 	iv = blkcipher_get_spot(iv, bs) + aligned_bs;
bs                285 crypto/blkcipher.c 	iv = blkcipher_get_spot(iv, bs) + aligned_bs;
bs                843 crypto/ccm.c   	int bs = crypto_shash_digestsize(pdesc->tfm);
bs                844 crypto/ccm.c   	u8 *dg = (u8 *)ctx + crypto_shash_descsize(pdesc->tfm) - bs;
bs                847 crypto/ccm.c   	memset(dg, 0, bs);
bs                859 crypto/ccm.c   	int bs = crypto_shash_digestsize(parent);
bs                860 crypto/ccm.c   	u8 *dg = (u8 *)ctx + crypto_shash_descsize(parent) - bs;
bs                863 crypto/ccm.c   		unsigned int l = min(len, bs - ctx->len);
bs                870 crypto/ccm.c   		if (ctx->len == bs) {
bs                885 crypto/ccm.c   	int bs = crypto_shash_digestsize(parent);
bs                886 crypto/ccm.c   	u8 *dg = (u8 *)ctx + crypto_shash_descsize(parent) - bs;
bs                891 crypto/ccm.c   	memcpy(out, dg, bs);
bs                 54 crypto/cmac.c  	unsigned int bs = crypto_shash_blocksize(parent);
bs                 66 crypto/cmac.c  	memset(consts, 0, bs);
bs                 69 crypto/cmac.c  	switch (bs) {
bs                108 crypto/cmac.c  	int bs = crypto_shash_blocksize(pdesc->tfm);
bs                109 crypto/cmac.c  	u8 *prev = PTR_ALIGN((void *)ctx->ctx, alignmask + 1) + bs;
bs                112 crypto/cmac.c  	memset(prev, 0, bs);
bs                125 crypto/cmac.c  	int bs = crypto_shash_blocksize(parent);
bs                127 crypto/cmac.c  	u8 *prev = odds + bs;
bs                130 crypto/cmac.c  	if ((ctx->len + len) <= bs) {
bs                137 crypto/cmac.c  	memcpy(odds + ctx->len, p, bs - ctx->len);
bs                138 crypto/cmac.c  	len -= bs - ctx->len;
bs                139 crypto/cmac.c  	p += bs - ctx->len;
bs                141 crypto/cmac.c  	crypto_xor(prev, odds, bs);
bs                148 crypto/cmac.c  	while (len > bs) {
bs                149 crypto/cmac.c  		crypto_xor(prev, p, bs);
bs                151 crypto/cmac.c  		p += bs;
bs                152 crypto/cmac.c  		len -= bs;
bs                171 crypto/cmac.c  	int bs = crypto_shash_blocksize(parent);
bs                175 crypto/cmac.c  	u8 *prev = odds + bs;
bs                178 crypto/cmac.c  	if (ctx->len != bs) {
bs                185 crypto/cmac.c  		rlen = bs - ctx->len - 1;
bs                189 crypto/cmac.c  		offset += bs;
bs                192 crypto/cmac.c  	crypto_xor(prev, odds, bs);
bs                193 crypto/cmac.c  	crypto_xor(prev, consts + offset, bs);
bs                 43 crypto/hmac.c  	int bs = crypto_shash_blocksize(parent);
bs                 56 crypto/hmac.c  	if (keylen > bs) {
bs                 67 crypto/hmac.c  	memset(ipad + keylen, 0, bs - keylen);
bs                 68 crypto/hmac.c  	memcpy(opad, ipad, bs);
bs                 70 crypto/hmac.c  	for (i = 0; i < bs; i++) {
bs                 76 crypto/hmac.c  	       crypto_shash_update(shash, ipad, bs) ?:
bs                 79 crypto/hmac.c  	       crypto_shash_update(shash, opad, bs) ?:
bs                144 crypto/lrw.c   	const int bs = LRW_BLOCK_SIZE;
bs                184 crypto/lrw.c   		} while ((avail -= bs) >= bs);
bs                401 crypto/skcipher.c 	unsigned bs = walk->stride;
bs                406 crypto/skcipher.c 	aligned_bs = ALIGN(bs, alignmask + 1);
bs                417 crypto/skcipher.c 		size += (bs - 1) & ~(alignmask | a);
bs                425 crypto/skcipher.c 	iv = skcipher_get_spot(iv, bs) + aligned_bs;
bs                 58 crypto/xcbc.c  	int bs = sizeof(key1);
bs                 63 crypto/xcbc.c  	crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs);
bs                 64 crypto/xcbc.c  	crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2);
bs                 67 crypto/xcbc.c  	return crypto_cipher_setkey(ctx->child, key1, bs);
bs                 75 crypto/xcbc.c  	int bs = crypto_shash_blocksize(pdesc->tfm);
bs                 76 crypto/xcbc.c  	u8 *prev = PTR_ALIGN(&ctx->ctx[0], alignmask + 1) + bs;
bs                 79 crypto/xcbc.c  	memset(prev, 0, bs);
bs                 92 crypto/xcbc.c  	int bs = crypto_shash_blocksize(parent);
bs                 94 crypto/xcbc.c  	u8 *prev = odds + bs;
bs                 97 crypto/xcbc.c  	if ((ctx->len + len) <= bs) {
bs                104 crypto/xcbc.c  	memcpy(odds + ctx->len, p, bs - ctx->len);
bs                105 crypto/xcbc.c  	len -= bs - ctx->len;
bs                106 crypto/xcbc.c  	p += bs - ctx->len;
bs                108 crypto/xcbc.c  	crypto_xor(prev, odds, bs);
bs                115 crypto/xcbc.c  	while (len > bs) {
bs                116 crypto/xcbc.c  		crypto_xor(prev, p, bs);
bs                118 crypto/xcbc.c  		p += bs;
bs                119 crypto/xcbc.c  		len -= bs;
bs                138 crypto/xcbc.c  	int bs = crypto_shash_blocksize(parent);
bs                141 crypto/xcbc.c  	u8 *prev = odds + bs;
bs                144 crypto/xcbc.c  	if (ctx->len != bs) {
bs                151 crypto/xcbc.c  		rlen = bs - ctx->len -1;
bs                155 crypto/xcbc.c  		offset += bs;
bs                158 crypto/xcbc.c  	crypto_xor(prev, odds, bs);
bs                159 crypto/xcbc.c  	crypto_xor(prev, consts + offset, bs);
bs                 92 crypto/xts.c   	const int bs = XTS_BLOCK_SIZE;
bs                123 crypto/xts.c   				skcipher_walk_done(&w, avail - bs);
bs                129 crypto/xts.c   		} while ((avail -= bs) >= bs);
bs                109 drivers/atm/nicstarmac.c #define NICSTAR_REG_WRITE(bs, reg, val) \
bs                110 drivers/atm/nicstarmac.c 	while ( readl(bs + STAT) & 0x0200 ) ; \
bs                112 drivers/atm/nicstarmac.c #define NICSTAR_REG_READ(bs, reg) \
bs               1113 drivers/block/drbd/drbd_main.c 	struct bitstream bs;
bs               1132 drivers/block/drbd/drbd_main.c 	bitstream_init(&bs, p->code, size, 0);
bs               1171 drivers/block/drbd/drbd_main.c 		bits = vli_encode_bits(&bs, rl);
bs               1184 drivers/block/drbd/drbd_main.c 	len = bs.cur.b - p->code + !!bs.cur.bit;
bs               1200 drivers/block/drbd/drbd_main.c 	dcbp_set_pad_bits(p, (8 - bs.cur.bit) & 0x7);
bs               4736 drivers/block/drbd/drbd_receiver.c 	struct bitstream bs;
bs               4746 drivers/block/drbd/drbd_receiver.c 	bitstream_init(&bs, p->code, len, dcbp_get_pad_bits(p));
bs               4748 drivers/block/drbd/drbd_receiver.c 	bits = bitstream_get_bits(&bs, &look_ahead, 64);
bs               4769 drivers/block/drbd/drbd_receiver.c 				(unsigned int)(bs.cur.b - p->code),
bs               4770 drivers/block/drbd/drbd_receiver.c 				(unsigned int)bs.buf_len);
bs               4780 drivers/block/drbd/drbd_receiver.c 		bits = bitstream_get_bits(&bs, &tmp, 64 - have);
bs                226 drivers/block/drbd/drbd_vli.h static inline void bitstream_init(struct bitstream *bs, void *s, size_t len, unsigned int pad_bits)
bs                228 drivers/block/drbd/drbd_vli.h 	bs->buf = s;
bs                229 drivers/block/drbd/drbd_vli.h 	bs->buf_len = len;
bs                230 drivers/block/drbd/drbd_vli.h 	bs->pad_bits = pad_bits;
bs                231 drivers/block/drbd/drbd_vli.h 	bitstream_cursor_reset(&bs->cur, bs->buf);
bs                234 drivers/block/drbd/drbd_vli.h static inline void bitstream_rewind(struct bitstream *bs)
bs                236 drivers/block/drbd/drbd_vli.h 	bitstream_cursor_reset(&bs->cur, bs->buf);
bs                237 drivers/block/drbd/drbd_vli.h 	memset(bs->buf, 0, bs->buf_len);
bs                248 drivers/block/drbd/drbd_vli.h static inline int bitstream_put_bits(struct bitstream *bs, u64 val, const unsigned int bits)
bs                250 drivers/block/drbd/drbd_vli.h 	unsigned char *b = bs->cur.b;
bs                256 drivers/block/drbd/drbd_vli.h 	if ((bs->cur.b + ((bs->cur.bit + bits -1) >> 3)) - bs->buf >= bs->buf_len)
bs                263 drivers/block/drbd/drbd_vli.h 	*b++ |= (val & 0xff) << bs->cur.bit;
bs                265 drivers/block/drbd/drbd_vli.h 	for (tmp = 8 - bs->cur.bit; tmp < bits; tmp += 8)
bs                268 drivers/block/drbd/drbd_vli.h 	bitstream_cursor_advance(&bs->cur, bits);
bs                281 drivers/block/drbd/drbd_vli.h static inline int bitstream_get_bits(struct bitstream *bs, u64 *out, int bits)
bs                289 drivers/block/drbd/drbd_vli.h 	if (bs->cur.b + ((bs->cur.bit + bs->pad_bits + bits -1) >> 3) - bs->buf >= bs->buf_len)
bs                290 drivers/block/drbd/drbd_vli.h 		bits = ((bs->buf_len - (bs->cur.b - bs->buf)) << 3)
bs                291 drivers/block/drbd/drbd_vli.h 			- bs->cur.bit - bs->pad_bits;
bs                300 drivers/block/drbd/drbd_vli.h 	n = (bs->cur.bit + bits + 7) >> 3;
bs                304 drivers/block/drbd/drbd_vli.h 		memcpy(&val, bs->cur.b+1, n - 1);
bs                305 drivers/block/drbd/drbd_vli.h 		val = le64_to_cpu(val) << (8 - bs->cur.bit);
bs                309 drivers/block/drbd/drbd_vli.h 	val |= bs->cur.b[0] >> bs->cur.bit;
bs                314 drivers/block/drbd/drbd_vli.h 	bitstream_cursor_advance(&bs->cur, bits);
bs                328 drivers/block/drbd/drbd_vli.h static inline int vli_encode_bits(struct bitstream *bs, u64 in)
bs                336 drivers/block/drbd/drbd_vli.h 	return bitstream_put_bits(bs, code, bits);
bs                141 drivers/block/null_blk_main.c module_param_named(bs, g_bs, int, 0444);
bs                142 drivers/block/null_blk_main.c MODULE_PARM_DESC(bs, "Block size (in bytes)");
bs                631 drivers/block/paride/pf.c 	int bs;
bs                638 drivers/block/paride/pf.c 	bs = xl(buf, 4);
bs                639 drivers/block/paride/pf.c 	if (bs != 512) {
bs                644 drivers/block/paride/pf.c 			       pf->name, pf->drive, pf->lun, bs);
bs                223 drivers/block/paride/pt.c 	int bs;			/* block size */
bs                557 drivers/block/paride/pt.c 	tape->bs = 0;
bs                565 drivers/block/paride/pt.c 		tape->bs = xn(buf, 10, 2);
bs                577 drivers/block/paride/pt.c 		printk(", blocksize %d, %d MB\n", tape->bs, tape->capacity / 1024);
bs                792 drivers/block/paride/pt.c 		b = (n - 1 + tape->bs) / tape->bs;
bs                793 drivers/block/paride/pt.c 		n = b * tape->bs;	/* rounded up to even block */
bs                893 drivers/block/paride/pt.c 		b = (n - 1 + tape->bs) / tape->bs;
bs                894 drivers/block/paride/pt.c 		n = b * tape->bs;	/* rounded up to even block */
bs                 46 drivers/clk/bcm/clk-cygnus.c #define ENABLE_VAL(o, es, hs, bs) { .offset = o, .enable_shift = es, \
bs                 47 drivers/clk/bcm/clk-cygnus.c 	.hold_shift = hs, .bypass_shift = bs }
bs                 38 drivers/clk/bcm/clk-ns2.c #define ENABLE_VAL(o, es, hs, bs) { .offset = o, .enable_shift = es, \
bs                 39 drivers/clk/bcm/clk-ns2.c 	.hold_shift = hs, .bypass_shift = bs }
bs                 36 drivers/clk/bcm/clk-nsp.c #define ENABLE_VAL(o, es, hs, bs) { .offset = o, .enable_shift = es, \
bs                 37 drivers/clk/bcm/clk-nsp.c 	.hold_shift = hs, .bypass_shift = bs }
bs                 30 drivers/clk/bcm/clk-sr.c #define ENABLE_VAL(o, es, hs, bs) { .offset = o, .enable_shift = es, \
bs                 31 drivers/clk/bcm/clk-sr.c 	.hold_shift = hs, .bypass_shift = bs }
bs               1461 drivers/crypto/atmel-sha.c 	size_t bs = ctx->block_size;
bs               1480 drivers/crypto/atmel-sha.c 		if (!IS_ALIGNED(sg->length, bs))
bs               1759 drivers/crypto/atmel-sha.c 	size_t bs;
bs               1791 drivers/crypto/atmel-sha.c 	bs = ctx->block_size;
bs               1797 drivers/crypto/atmel-sha.c 	if (unlikely(keylen > bs))
bs               1802 drivers/crypto/atmel-sha.c 	memset((u8 *)hmac->ipad + keylen, 0, bs - keylen);
bs               1820 drivers/crypto/atmel-sha.c 	size_t bs = ctx->block_size;
bs               1826 drivers/crypto/atmel-sha.c 	memset((u8 *)hmac->ipad + ds, 0, bs - ds);
bs               1836 drivers/crypto/atmel-sha.c 	size_t bs = ctx->block_size;
bs               1837 drivers/crypto/atmel-sha.c 	size_t i, num_words = bs / sizeof(u32);
bs               1839 drivers/crypto/atmel-sha.c 	memcpy(hmac->opad, hmac->ipad, bs);
bs               1845 drivers/crypto/atmel-sha.c 	return atmel_sha_cpu_hash(dd, hmac->ipad, bs, false,
bs               1855 drivers/crypto/atmel-sha.c 	size_t bs = ctx->block_size;
bs               1861 drivers/crypto/atmel-sha.c 	return atmel_sha_cpu_hash(dd, hmac->opad, bs, false,
bs               1941 drivers/crypto/atmel-sha.c 	size_t bs = ctx->block_size;
bs               1945 drivers/crypto/atmel-sha.c 	ctx->digcnt[0] = bs;
bs               1960 drivers/crypto/atmel-sha.c 	size_t bs = ctx->block_size;
bs               1979 drivers/crypto/atmel-sha.c 	atmel_sha_write(dd, SHA_MSR, bs + ds);
bs               1590 drivers/crypto/chelsio/chcr_algo.c 	u8 remainder = 0, bs;
bs               1595 drivers/crypto/chelsio/chcr_algo.c 	bs = crypto_tfm_alg_blocksize(crypto_ahash_tfm(rtfm));
bs               1598 drivers/crypto/chelsio/chcr_algo.c 	if (nbytes + req_ctx->reqlen >= bs) {
bs               1599 drivers/crypto/chelsio/chcr_algo.c 		remainder = (nbytes + req_ctx->reqlen) % bs;
bs               1634 drivers/crypto/chelsio/chcr_algo.c 	params.sg_len = rounddown(params.sg_len + req_ctx->reqlen, bs) -
bs               1672 drivers/crypto/chelsio/chcr_algo.c static void create_last_hash_block(char *bfr_ptr, unsigned int bs, u64 scmd1)
bs               1674 drivers/crypto/chelsio/chcr_algo.c 	memset(bfr_ptr, 0, bs);
bs               1676 drivers/crypto/chelsio/chcr_algo.c 	if (bs == 64)
bs               1690 drivers/crypto/chelsio/chcr_algo.c 	u8 bs = crypto_tfm_alg_blocksize(crypto_ahash_tfm(rtfm));
bs               1719 drivers/crypto/chelsio/chcr_algo.c 		create_last_hash_block(req_ctx->reqbfr, bs, req_ctx->data_len);
bs               1723 drivers/crypto/chelsio/chcr_algo.c 		params.bfr_len = bs;
bs               1754 drivers/crypto/chelsio/chcr_algo.c 	u8  bs;
bs               1757 drivers/crypto/chelsio/chcr_algo.c 	bs = crypto_tfm_alg_blocksize(crypto_ahash_tfm(rtfm));
bs               1796 drivers/crypto/chelsio/chcr_algo.c 		params.sg_len = rounddown(params.sg_len + req_ctx->reqlen, bs)
bs               1813 drivers/crypto/chelsio/chcr_algo.c 		create_last_hash_block(req_ctx->reqbfr, bs, req_ctx->data_len);
bs               1817 drivers/crypto/chelsio/chcr_algo.c 		params.bfr_len = bs;
bs               1846 drivers/crypto/chelsio/chcr_algo.c 	u8  bs;
bs               1850 drivers/crypto/chelsio/chcr_algo.c 	bs = crypto_tfm_alg_blocksize(crypto_ahash_tfm(rtfm));
bs               1890 drivers/crypto/chelsio/chcr_algo.c 		params.sg_len = rounddown(params.sg_len, bs);
bs               1906 drivers/crypto/chelsio/chcr_algo.c 		create_last_hash_block(req_ctx->reqbfr, bs, 0);
bs               1908 drivers/crypto/chelsio/chcr_algo.c 		params.bfr_len = bs;
bs               1936 drivers/crypto/chelsio/chcr_algo.c 	u8  bs;
bs               1939 drivers/crypto/chelsio/chcr_algo.c 	bs = crypto_tfm_alg_blocksize(crypto_ahash_tfm(rtfm));
bs               1962 drivers/crypto/chelsio/chcr_algo.c 		params.sg_len = rounddown(params.sg_len, bs);
bs               2104 drivers/crypto/chelsio/chcr_algo.c 	unsigned int bs = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
bs               2114 drivers/crypto/chelsio/chcr_algo.c 	if (keylen > bs) {
bs               2123 drivers/crypto/chelsio/chcr_algo.c 	memset(hmacctx->ipad + keylen, 0, bs - keylen);
bs               2124 drivers/crypto/chelsio/chcr_algo.c 	memcpy(hmacctx->opad, hmacctx->ipad, bs);
bs               2126 drivers/crypto/chelsio/chcr_algo.c 	for (i = 0; i < bs / sizeof(int); i++) {
bs               2209 drivers/crypto/chelsio/chcr_algo.c 	unsigned int bs = crypto_tfm_alg_blocksize(crypto_ahash_tfm(rtfm));
bs               2212 drivers/crypto/chelsio/chcr_algo.c 	req_ctx->data_len = bs;
bs               3410 drivers/crypto/chelsio/chcr_algo.c 	unsigned int bs, subtype;
bs               3482 drivers/crypto/chelsio/chcr_algo.c 		bs = crypto_shash_blocksize(base_hash);
bs               3486 drivers/crypto/chelsio/chcr_algo.c 		if (keys.authkeylen > bs) {
bs               3499 drivers/crypto/chelsio/chcr_algo.c 		memset(pad + keys.authkeylen, 0, bs - keys.authkeylen);
bs               3501 drivers/crypto/chelsio/chcr_algo.c 		for (i = 0; i < bs >> 2; i++)
bs               3508 drivers/crypto/chelsio/chcr_algo.c 		memset(pad + keys.authkeylen, 0, bs - keys.authkeylen);
bs               3510 drivers/crypto/chelsio/chcr_algo.c 		for (i = 0; i < bs >> 2; i++)
bs                246 drivers/crypto/chelsio/chcr_algo.h #define KEYCTX_ALIGN_PAD(bs) ({unsigned int _bs = (bs);\
bs                 93 drivers/crypto/mediatek/mtk-sha.c 	size_t bs;
bs                367 drivers/crypto/mediatek/mtk-sha.c 	       crypto_shash_update(shash, bctx->opad, ctx->bs) ?:
bs                384 drivers/crypto/mediatek/mtk-sha.c 		ctx->bs = SHA1_BLOCK_SIZE;
bs                388 drivers/crypto/mediatek/mtk-sha.c 		ctx->bs = SHA224_BLOCK_SIZE;
bs                392 drivers/crypto/mediatek/mtk-sha.c 		ctx->bs = SHA256_BLOCK_SIZE;
bs                396 drivers/crypto/mediatek/mtk-sha.c 		ctx->bs = SHA384_BLOCK_SIZE;
bs                400 drivers/crypto/mediatek/mtk-sha.c 		ctx->bs = SHA512_BLOCK_SIZE;
bs                413 drivers/crypto/mediatek/mtk-sha.c 		memcpy(ctx->buffer, bctx->ipad, ctx->bs);
bs                414 drivers/crypto/mediatek/mtk-sha.c 		ctx->bufcnt = ctx->bs;
bs                530 drivers/crypto/mediatek/mtk-sha.c 	if (!sg_is_last(sg) && !IS_ALIGNED(sg->length, ctx->bs))
bs                539 drivers/crypto/mediatek/mtk-sha.c 			tail = len & (ctx->bs - 1);
bs                553 drivers/crypto/mediatek/mtk-sha.c 		tail = len & (ctx->bs - 1);
bs                804 drivers/crypto/mediatek/mtk-sha.c 	size_t bs = crypto_shash_blocksize(bctx->shash);
bs                812 drivers/crypto/mediatek/mtk-sha.c 	if (keylen > bs) {
bs                821 drivers/crypto/mediatek/mtk-sha.c 	memset(bctx->ipad + keylen, 0, bs - keylen);
bs                822 drivers/crypto/mediatek/mtk-sha.c 	memcpy(bctx->opad, bctx->ipad, bs);
bs                824 drivers/crypto/mediatek/mtk-sha.c 	for (i = 0; i < bs; i++) {
bs                465 drivers/crypto/n2_core.c 	int err, bs, ds;
bs                474 drivers/crypto/n2_core.c 	bs = crypto_shash_blocksize(child_shash);
bs                477 drivers/crypto/n2_core.c 	if (keylen > bs) {
bs                 16 drivers/crypto/omap-crypto.c static int omap_crypto_copy_sg_lists(int total, int bs,
bs                 55 drivers/crypto/omap-crypto.c static int omap_crypto_copy_sgs(int total, int bs, struct scatterlist **sg,
bs                 62 drivers/crypto/omap-crypto.c 	new_len = ALIGN(total, bs);
bs                 88 drivers/crypto/omap-crypto.c static int omap_crypto_check_sg(struct scatterlist *sg, int total, int bs,
bs                 94 drivers/crypto/omap-crypto.c 	if (!IS_ALIGNED(total, bs))
bs                102 drivers/crypto/omap-crypto.c 		if (!IS_ALIGNED(sg->length, bs))
bs                125 drivers/crypto/omap-crypto.c int omap_crypto_align_sg(struct scatterlist **sg, int total, int bs,
bs                136 drivers/crypto/omap-crypto.c 		ret = omap_crypto_check_sg(*sg, total, bs, flags);
bs                139 drivers/crypto/omap-crypto.c 		ret = omap_crypto_copy_sgs(total, bs, sg, new_sg, flags);
bs                144 drivers/crypto/omap-crypto.c 		ret = omap_crypto_copy_sg_lists(total, bs, sg, new_sg, flags);
bs                 27 drivers/crypto/omap-crypto.h int omap_crypto_align_sg(struct scatterlist **sg, int total, int bs,
bs                468 drivers/crypto/omap-sham.c 		int bs, nr_dr;
bs                473 drivers/crypto/omap-sham.c 			bs = get_block_size(ctx);
bs                474 drivers/crypto/omap-sham.c 			nr_dr = bs / (2 * sizeof(u32));
bs                480 drivers/crypto/omap-sham.c 			ctx->digcnt += bs;
bs                641 drivers/crypto/omap-sham.c 				   struct scatterlist *sg, int bs, int new_len)
bs                698 drivers/crypto/omap-sham.c 			      struct scatterlist *sg, int bs, int new_len)
bs                731 drivers/crypto/omap-sham.c 			       int nbytes, int bs, bool final,
bs                750 drivers/crypto/omap-sham.c 		new_len = DIV_ROUND_UP(new_len, bs) * bs;
bs                752 drivers/crypto/omap-sham.c 		new_len = (new_len - 1) / bs * bs;
bs                773 drivers/crypto/omap-sham.c 			if (!IS_ALIGNED(sg_tmp->length - offset, bs)) {
bs                798 drivers/crypto/omap-sham.c 		return omap_sham_copy_sgs(rctx, sg, bs, new_len);
bs                800 drivers/crypto/omap-sham.c 		return omap_sham_copy_sg_lists(rctx, sg, bs, new_len);
bs                811 drivers/crypto/omap-sham.c 	int bs;
bs                817 drivers/crypto/omap-sham.c 	bs = get_block_size(rctx);
bs                829 drivers/crypto/omap-sham.c 	if (nbytes && (!IS_ALIGNED(rctx->bufcnt, bs))) {
bs                830 drivers/crypto/omap-sham.c 		int len = bs - rctx->bufcnt % bs;
bs                844 drivers/crypto/omap-sham.c 	ret = omap_sham_align_sgs(req->src, nbytes, bs, final, rctx);
bs                850 drivers/crypto/omap-sham.c 	if (!IS_ALIGNED(xmit_len, bs)) {
bs                852 drivers/crypto/omap-sham.c 			xmit_len = DIV_ROUND_UP(xmit_len, bs) * bs;
bs                854 drivers/crypto/omap-sham.c 			xmit_len = xmit_len / bs * bs;
bs                856 drivers/crypto/omap-sham.c 		xmit_len -= bs;
bs                927 drivers/crypto/omap-sham.c 	int bs = 0;
bs                951 drivers/crypto/omap-sham.c 		bs = SHA1_BLOCK_SIZE;
bs                955 drivers/crypto/omap-sham.c 		bs = SHA1_BLOCK_SIZE;
bs                959 drivers/crypto/omap-sham.c 		bs = SHA224_BLOCK_SIZE;
bs                963 drivers/crypto/omap-sham.c 		bs = SHA256_BLOCK_SIZE;
bs                967 drivers/crypto/omap-sham.c 		bs = SHA384_BLOCK_SIZE;
bs                971 drivers/crypto/omap-sham.c 		bs = SHA512_BLOCK_SIZE;
bs                985 drivers/crypto/omap-sham.c 			memcpy(ctx->buffer, bctx->ipad, bs);
bs                986 drivers/crypto/omap-sham.c 			ctx->bufcnt = bs;
bs               1050 drivers/crypto/omap-sham.c 	int bs = crypto_shash_blocksize(bctx->shash);
bs               1057 drivers/crypto/omap-sham.c 	       crypto_shash_update(shash, bctx->opad, bs) ?:
bs               1303 drivers/crypto/omap-sham.c 	int bs = crypto_shash_blocksize(bctx->shash);
bs               1324 drivers/crypto/omap-sham.c 	if (keylen > bs) {
bs               1335 drivers/crypto/omap-sham.c 	memset(bctx->ipad + keylen, 0, bs - keylen);
bs               1338 drivers/crypto/omap-sham.c 		memcpy(bctx->opad, bctx->ipad, bs);
bs               1340 drivers/crypto/omap-sham.c 		for (i = 0; i < bs; i++) {
bs                932 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c 			const u32 bs = attrib * gr->ppc_tpc_nr[gpc][ppc];
bs                937 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c 			mmio_wr32(info, o + 0xc0, bs);
bs                943 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c 			mmio_wr32(info, u, ((bs / 3) << 16) | bs);
bs                 75 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c 			const u32 bs = attrib * gr->ppc_tpc_max;
bs                 80 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c 			mmio_wr32(info, o + 0xc0, bs);
bs                 82 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c 			mmio_wr32(info, o + 0xf0, bs);
bs                 87 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c 			mmio_wr32(info, u, bs);
bs                 71 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c 			const u32 bs = attrib * gr->ppc_tpc_max;
bs                 79 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c 			mmio_wr32(info, p, bs);
bs                 81 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c 			mmio_wr32(info, o + 0xf0, bs);
bs                 86 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c 			mmio_wr32(info, u, bs);
bs                 92 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c 			const u32 bs = attrib * gr->ppc_tpc_nr[gpc][ppc];
bs                100 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c 			mmio_wr32(info, o + 0xf0, bs);
bs                105 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c 			mmio_wr32(info, u, bs);
bs               1768 drivers/infiniband/hw/efa/efa_verbs.c 	struct efa_com_basic_stats *bs;
bs               1780 drivers/infiniband/hw/efa/efa_verbs.c 	bs = &result.basic_stats;
bs               1781 drivers/infiniband/hw/efa/efa_verbs.c 	stats->value[EFA_TX_BYTES] = bs->tx_bytes;
bs               1782 drivers/infiniband/hw/efa/efa_verbs.c 	stats->value[EFA_TX_PKTS] = bs->tx_pkts;
bs               1783 drivers/infiniband/hw/efa/efa_verbs.c 	stats->value[EFA_RX_BYTES] = bs->rx_bytes;
bs               1784 drivers/infiniband/hw/efa/efa_verbs.c 	stats->value[EFA_RX_PKTS] = bs->rx_pkts;
bs               1785 drivers/infiniband/hw/efa/efa_verbs.c 	stats->value[EFA_RX_DROPS] = bs->rx_drops;
bs                419 drivers/input/tablet/aiptek.c 	int retval, macro, x, y, z, left, right, middle, p, dv, tip, bs, pck;
bs                522 drivers/input/tablet/aiptek.c 			bs = (data[5] & aiptek->curSetting.stylusButtonLower) != 0 ? 1 : 0;
bs                550 drivers/input/tablet/aiptek.c 					input_report_key(inputdev, BTN_STYLUS, bs);
bs                657 drivers/input/tablet/aiptek.c 		bs = (data[1] & aiptek->curSetting.stylusButtonLower) != 0 ? 1 : 0;
bs                486 drivers/md/dm-cache-target.c 	struct bio_set bs;
bs                925 drivers/md/dm-cache-target.c 	struct bio *origin_bio = bio_clone_fast(bio, GFP_NOIO, &cache->bs);
bs               2026 drivers/md/dm-cache-target.c 	bioset_exit(&cache->bs);
bs               2490 drivers/md/dm-cache-target.c 		r = bioset_init(&cache->bs, BIO_POOL_SIZE, 0, 0);
bs                 89 drivers/md/dm-core.h 	struct bio_set bs;
bs                204 drivers/md/dm-crypt.c 	struct bio_set bs;
bs                334 drivers/md/dm-crypt.c 	unsigned bs;
bs                338 drivers/md/dm-crypt.c 		bs = crypto_aead_blocksize(any_tfm_aead(cc));
bs                340 drivers/md/dm-crypt.c 		bs = crypto_skcipher_blocksize(any_tfm(cc));
bs                341 drivers/md/dm-crypt.c 	log = ilog2(bs);
bs                346 drivers/md/dm-crypt.c 	if (1 << log != bs) {
bs               1309 drivers/md/dm-crypt.c 	clone = bio_alloc_bioset(GFP_NOIO, nr_iovecs, &cc->bs);
bs               1465 drivers/md/dm-crypt.c 	clone = bio_clone_fast(io->base_bio, gfp, &cc->bs);
bs               2133 drivers/md/dm-crypt.c 	bioset_exit(&cc->bs);
bs               2660 drivers/md/dm-crypt.c 	ret = bioset_init(&cc->bs, MIN_IOS, 0, BIOSET_NEED_BVECS);
bs                258 drivers/md/dm-log.c static inline int log_test_bit(uint32_t *bs, unsigned bit)
bs                260 drivers/md/dm-log.c 	return test_bit_le(bit, bs) ? 1 : 0;
bs                264 drivers/md/dm-log.c 			       uint32_t *bs, unsigned bit)
bs                266 drivers/md/dm-log.c 	__set_bit_le(bit, bs);
bs                271 drivers/md/dm-log.c 				 uint32_t *bs, unsigned bit)
bs                273 drivers/md/dm-log.c 	__clear_bit_le(bit, bs);
bs                347 drivers/md/dm-rq.c 	r = blk_rq_prep_clone(clone, rq, &tio->md->bs, gfp_mask,
bs                151 drivers/md/dm.c 	struct bio_set bs;
bs                606 drivers/md/dm.c 		struct bio *clone = bio_alloc_bioset(gfp_mask, 0, &ci->io->md->bs);
bs               1884 drivers/md/dm.c 	bioset_exit(&md->bs);
bs               2059 drivers/md/dm.c 		bioset_exit(&md->bs);
bs               2062 drivers/md/dm.c 	} else if (bioset_initialized(&md->bs)) {
bs               2075 drivers/md/dm.c 	       bioset_initialized(&md->bs) ||
bs               2078 drivers/md/dm.c 	ret = bioset_init_from_src(&md->bs, &p->bs);
bs               2083 drivers/md/dm.c 		bioset_exit(&md->bs);
bs               3021 drivers/md/dm.c 	ret = bioset_init(&pools->bs, pool_size, front_pad, 0);
bs               3025 drivers/md/dm.c 	if (integrity && bioset_integrity_create(&pools->bs, pool_size))
bs               3041 drivers/md/dm.c 	bioset_exit(&pools->bs);
bs                120 drivers/md/raid5-cache.c 	struct bio_set bs;
bs                740 drivers/md/raid5-cache.c 	struct bio *bio = bio_alloc_bioset(GFP_NOIO, BIO_MAX_PAGES, &log->bs);
bs               1639 drivers/md/raid5-cache.c 	ctx->ra_bio = bio_alloc_bioset(GFP_KERNEL, BIO_MAX_PAGES, &log->bs);
bs               3119 drivers/md/raid5-cache.c 	ret = bioset_init(&log->bs, R5L_POOL_SIZE, 0, BIOSET_NEED_BVECS);
bs               3159 drivers/md/raid5-cache.c 	bioset_exit(&log->bs);
bs               3181 drivers/md/raid5-cache.c 	bioset_exit(&log->bs);
bs                101 drivers/md/raid5-ppl.c 	struct bio_set bs;
bs                500 drivers/md/raid5-ppl.c 					       &ppl_conf->bs);
bs               1244 drivers/md/raid5-ppl.c 	bioset_exit(&ppl_conf->bs);
bs               1388 drivers/md/raid5-ppl.c 	ret = bioset_init(&ppl_conf->bs, conf->raid_disks, 0, BIOSET_NEED_BVECS);
bs                146 drivers/media/pci/bt8xx/dvb-bt8xx.c 	unsigned char bs = 0;
bs                162 drivers/media/pci/bt8xx/dvb-bt8xx.c 		bs = 0x03;
bs                164 drivers/media/pci/bt8xx/dvb-bt8xx.c 		bs = 0x02;
bs                166 drivers/media/pci/bt8xx/dvb-bt8xx.c 		bs = 0x08;
bs                172 drivers/media/pci/bt8xx/dvb-bt8xx.c 	pllbuf[4] = bs;
bs                341 drivers/media/pci/bt8xx/dvb-bt8xx.c 	unsigned char bs = 0;
bs                368 drivers/media/pci/bt8xx/dvb-bt8xx.c 		bs = 0x01;
bs                370 drivers/media/pci/bt8xx/dvb-bt8xx.c 		bs = 0x01;
bs                372 drivers/media/pci/bt8xx/dvb-bt8xx.c 		bs = 0x02;
bs                374 drivers/media/pci/bt8xx/dvb-bt8xx.c 		bs = 0x02;
bs                376 drivers/media/pci/bt8xx/dvb-bt8xx.c 		bs = 0x02;
bs                378 drivers/media/pci/bt8xx/dvb-bt8xx.c 		bs = 0x02;
bs                380 drivers/media/pci/bt8xx/dvb-bt8xx.c 		bs = 0x08;
bs                386 drivers/media/pci/bt8xx/dvb-bt8xx.c 	pllbuf[4] = bs;
bs                 31 drivers/media/pci/tw5864/tw5864-h264.c static void bs_init(struct bs *s, void *buf, int size)
bs                 39 drivers/media/pci/tw5864/tw5864-h264.c static int bs_len(struct bs *s)
bs                 44 drivers/media/pci/tw5864/tw5864-h264.c static void bs_write(struct bs *s, int count, u32 bits)
bs                 64 drivers/media/pci/tw5864/tw5864-h264.c static void bs_write1(struct bs *s, u32 bit)
bs                 77 drivers/media/pci/tw5864/tw5864-h264.c static void bs_write_ue(struct bs *s, u32 val)
bs                 87 drivers/media/pci/tw5864/tw5864-h264.c static void bs_write_se(struct bs *s, int val)
bs                 92 drivers/media/pci/tw5864/tw5864-h264.c static void bs_rbsp_trailing(struct bs *s)
bs                103 drivers/media/pci/tw5864/tw5864-h264.c 	struct bs bs, *s;
bs                105 drivers/media/pci/tw5864/tw5864-h264.c 	s = &bs;
bs                132 drivers/media/pci/tw5864/tw5864-h264.c 	struct bs bs, *s;
bs                134 drivers/media/pci/tw5864/tw5864-h264.c 	s = &bs;
bs                160 drivers/media/pci/tw5864/tw5864-h264.c 	struct bs bs, *s;
bs                163 drivers/media/pci/tw5864/tw5864-h264.c 	s = &bs;
bs                763 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 				 struct mtk_jpeg_bs *bs)
bs                765 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	bs->str_addr = vb2_dma_contig_plane_dma_addr(src_buf, 0);
bs                766 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	bs->end_addr = bs->str_addr +
bs                768 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	bs->size = mtk_jpeg_align(vb2_plane_size(src_buf, 0), 128);
bs                806 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	struct mtk_jpeg_bs bs;
bs                828 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 	mtk_jpeg_set_dec_src(ctx, &src_buf->vb2_buf, &bs);
bs                835 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c 				&jpeg_src_buf->dec_param, &bs, &fb);
bs                377 drivers/media/platform/mtk-jpeg/mtk_jpeg_hw.c 			     struct mtk_jpeg_bs *bs,
bs                384 drivers/media/platform/mtk-jpeg/mtk_jpeg_hw.c 	mtk_jpeg_dec_set_bs_info(base, bs->str_addr, bs->size);
bs                385 drivers/media/platform/mtk-jpeg/mtk_jpeg_hw.c 	mtk_jpeg_dec_set_bs_write_ptr(base, bs->end_addr);
bs                 78 drivers/media/platform/mtk-jpeg/mtk_jpeg_hw.h 			     struct mtk_jpeg_bs *bs,
bs                337 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c static int vdec_h264_decode(void *h_vdec, struct mtk_vcodec_mem *bs,
bs                357 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c 	if (bs == NULL)
bs                360 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c 	buf = (unsigned char *)bs->va;
bs                361 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c 	buf_sz = bs->size;
bs                383 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c 	inst->vsi->dec.bs_dma = (uint64_t)bs->dma_addr;
bs                432 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static int vdec_vp8_decode(void *h_vdec, struct mtk_vcodec_mem *bs,
bs                445 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	if (bs == NULL) {
bs                457 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	dec->bs_dma = (unsigned long)bs->dma_addr;
bs                458 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	dec->bs_sz = bs->size;
bs                468 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c 	bs_va = (unsigned char *)bs->va;
bs                140 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c 	struct mtk_vcodec_mem bs;
bs                815 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static int vdec_vp9_decode(void *h_vdec, struct mtk_vcodec_mem *bs,
bs                826 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c 	if ((bs == NULL) && (fb == NULL)) {
bs                832 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c 	if (bs == NULL) {
bs                837 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c 	mtk_vcodec_debug(inst, "Input BS Size = %zu", bs->size);
bs                842 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c 		data[0] = *((unsigned int *)bs->va);
bs                843 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c 		data[1] = *((unsigned int *)(bs->va + 4));
bs                844 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c 		data[2] = *((unsigned int *)(bs->va + 8));
bs                846 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c 		vsi->bs = *bs;
bs                857 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c 			sf_bs_sz = bs->size > VP9_SUPER_FRAME_BS_SZ ?
bs                858 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c 					VP9_SUPER_FRAME_BS_SZ : bs->size;
bs                860 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c 			sf_bs_src = bs->va + bs->size - sf_bs_sz;
bs                868 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c 				memcpy((void *)bs->va,
bs                869 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c 					(void *)(bs->va +
bs                 29 drivers/media/platform/mtk-vcodec/vdec_drv_base.h 	int (*decode)(void *h_vdec, struct mtk_vcodec_mem *bs,
bs                 45 drivers/media/platform/mtk-vcodec/vdec_drv_if.c int vdec_if_decode(struct mtk_vcodec_ctx *ctx, struct mtk_vcodec_mem *bs,
bs                 50 drivers/media/platform/mtk-vcodec/vdec_drv_if.c 	if (bs) {
bs                 51 drivers/media/platform/mtk-vcodec/vdec_drv_if.c 		if ((bs->dma_addr & 63) != 0) {
bs                 73 drivers/media/platform/mtk-vcodec/vdec_drv_if.c 	ret = ctx->dec_if->decode(ctx->drv_handle, bs, fb, res_chg);
bs                 87 drivers/media/platform/mtk-vcodec/vdec_drv_if.h int vdec_if_decode(struct mtk_vcodec_ctx *ctx, struct mtk_vcodec_mem *bs,
bs                 84 drivers/media/tuners/tda827x.c 	u8  bs;
bs                 92 drivers/media/tuners/tda827x.c 	{ .lomax =  62000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 1},
bs                 93 drivers/media/tuners/tda827x.c 	{ .lomax =  66000000, .spd = 3, .bs = 3, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 1},
bs                 94 drivers/media/tuners/tda827x.c 	{ .lomax =  76000000, .spd = 3, .bs = 1, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 0},
bs                 95 drivers/media/tuners/tda827x.c 	{ .lomax =  84000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 0},
bs                 96 drivers/media/tuners/tda827x.c 	{ .lomax =  93000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 1, .div1p5 = 0},
bs                 97 drivers/media/tuners/tda827x.c 	{ .lomax =  98000000, .spd = 3, .bs = 3, .bp = 0, .cp = 0, .gc3 = 1, .div1p5 = 0},
bs                 98 drivers/media/tuners/tda827x.c 	{ .lomax = 109000000, .spd = 3, .bs = 3, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 0},
bs                 99 drivers/media/tuners/tda827x.c 	{ .lomax = 123000000, .spd = 2, .bs = 2, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 1},
bs                100 drivers/media/tuners/tda827x.c 	{ .lomax = 133000000, .spd = 2, .bs = 3, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 1},
bs                101 drivers/media/tuners/tda827x.c 	{ .lomax = 151000000, .spd = 2, .bs = 1, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 0},
bs                102 drivers/media/tuners/tda827x.c 	{ .lomax = 154000000, .spd = 2, .bs = 2, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 0},
bs                103 drivers/media/tuners/tda827x.c 	{ .lomax = 181000000, .spd = 2, .bs = 2, .bp = 1, .cp = 0, .gc3 = 0, .div1p5 = 0},
bs                104 drivers/media/tuners/tda827x.c 	{ .lomax = 185000000, .spd = 2, .bs = 2, .bp = 2, .cp = 0, .gc3 = 1, .div1p5 = 0},
bs                105 drivers/media/tuners/tda827x.c 	{ .lomax = 217000000, .spd = 2, .bs = 3, .bp = 2, .cp = 0, .gc3 = 1, .div1p5 = 0},
bs                106 drivers/media/tuners/tda827x.c 	{ .lomax = 244000000, .spd = 1, .bs = 2, .bp = 2, .cp = 0, .gc3 = 1, .div1p5 = 1},
bs                107 drivers/media/tuners/tda827x.c 	{ .lomax = 265000000, .spd = 1, .bs = 3, .bp = 2, .cp = 0, .gc3 = 1, .div1p5 = 1},
bs                108 drivers/media/tuners/tda827x.c 	{ .lomax = 302000000, .spd = 1, .bs = 1, .bp = 2, .cp = 0, .gc3 = 1, .div1p5 = 0},
bs                109 drivers/media/tuners/tda827x.c 	{ .lomax = 324000000, .spd = 1, .bs = 2, .bp = 2, .cp = 0, .gc3 = 1, .div1p5 = 0},
bs                110 drivers/media/tuners/tda827x.c 	{ .lomax = 370000000, .spd = 1, .bs = 2, .bp = 3, .cp = 0, .gc3 = 1, .div1p5 = 0},
bs                111 drivers/media/tuners/tda827x.c 	{ .lomax = 454000000, .spd = 1, .bs = 3, .bp = 3, .cp = 0, .gc3 = 1, .div1p5 = 0},
bs                112 drivers/media/tuners/tda827x.c 	{ .lomax = 493000000, .spd = 0, .bs = 2, .bp = 3, .cp = 0, .gc3 = 1, .div1p5 = 1},
bs                113 drivers/media/tuners/tda827x.c 	{ .lomax = 530000000, .spd = 0, .bs = 3, .bp = 3, .cp = 0, .gc3 = 1, .div1p5 = 1},
bs                114 drivers/media/tuners/tda827x.c 	{ .lomax = 554000000, .spd = 0, .bs = 1, .bp = 3, .cp = 0, .gc3 = 1, .div1p5 = 0},
bs                115 drivers/media/tuners/tda827x.c 	{ .lomax = 604000000, .spd = 0, .bs = 1, .bp = 4, .cp = 0, .gc3 = 0, .div1p5 = 0},
bs                116 drivers/media/tuners/tda827x.c 	{ .lomax = 696000000, .spd = 0, .bs = 2, .bp = 4, .cp = 0, .gc3 = 0, .div1p5 = 0},
bs                117 drivers/media/tuners/tda827x.c 	{ .lomax = 740000000, .spd = 0, .bs = 2, .bp = 4, .cp = 1, .gc3 = 0, .div1p5 = 0},
bs                118 drivers/media/tuners/tda827x.c 	{ .lomax = 820000000, .spd = 0, .bs = 3, .bp = 4, .cp = 0, .gc3 = 0, .div1p5 = 0},
bs                119 drivers/media/tuners/tda827x.c 	{ .lomax = 865000000, .spd = 0, .bs = 3, .bp = 4, .cp = 1, .gc3 = 0, .div1p5 = 0},
bs                120 drivers/media/tuners/tda827x.c 	{ .lomax =         0, .spd = 0, .bs = 0, .bp = 0, .cp = 0, .gc3 = 0, .div1p5 = 0}
bs                182 drivers/media/tuners/tda827x.c 				(tda827x_table[i].bs << 3) +
bs                271 drivers/media/tuners/tda827x.c 		       (tda827x_table[i].bs     << 3) + tda827x_table[i].bp;
bs                 92 drivers/misc/cxl/pci.c #define EXTRACT_PPC_BITS(val, bs, be)	((val & PPC_BITMASK(bs, be)) >> PPC_BITLSHIFT(be))
bs                139 drivers/misc/sgi-gru/grukservices.c static void gru_load_kernel_context(struct gru_blade_state *bs, int blade_id)
bs                146 drivers/misc/sgi-gru/grukservices.c 	up_read(&bs->bs_kgts_sema);
bs                147 drivers/misc/sgi-gru/grukservices.c 	down_write(&bs->bs_kgts_sema);
bs                149 drivers/misc/sgi-gru/grukservices.c 	if (!bs->bs_kgts) {
bs                151 drivers/misc/sgi-gru/grukservices.c 			bs->bs_kgts = gru_alloc_gts(NULL, 0, 0, 0, 0, 0);
bs                152 drivers/misc/sgi-gru/grukservices.c 			if (!IS_ERR(bs->bs_kgts))
bs                156 drivers/misc/sgi-gru/grukservices.c 		bs->bs_kgts->ts_user_blade_id = blade_id;
bs                158 drivers/misc/sgi-gru/grukservices.c 	kgts = bs->bs_kgts;
bs                164 drivers/misc/sgi-gru/grukservices.c 			GRU_NUM_KERNEL_CBR * ncpus + bs->bs_async_cbrs);
bs                167 drivers/misc/sgi-gru/grukservices.c 				bs->bs_async_dsr_bytes);
bs                173 drivers/misc/sgi-gru/grukservices.c 		gru = bs->bs_kgts->ts_gru;
bs                176 drivers/misc/sgi-gru/grukservices.c 		bs->kernel_cb = get_gseg_base_address_cb(vaddr, ctxnum, 0);
bs                177 drivers/misc/sgi-gru/grukservices.c 		bs->kernel_dsr = get_gseg_base_address_ds(vaddr, ctxnum, 0);
bs                179 drivers/misc/sgi-gru/grukservices.c 	downgrade_write(&bs->bs_kgts_sema);
bs                188 drivers/misc/sgi-gru/grukservices.c 	struct gru_blade_state *bs;
bs                193 drivers/misc/sgi-gru/grukservices.c 		bs = gru_base[bid];
bs                194 drivers/misc/sgi-gru/grukservices.c 		if (!bs)
bs                198 drivers/misc/sgi-gru/grukservices.c 		if (down_write_trylock(&bs->bs_kgts_sema)) {
bs                199 drivers/misc/sgi-gru/grukservices.c 			kgts = bs->bs_kgts;
bs                202 drivers/misc/sgi-gru/grukservices.c 			bs->bs_kgts = NULL;
bs                203 drivers/misc/sgi-gru/grukservices.c 			up_write(&bs->bs_kgts_sema);
bs                217 drivers/misc/sgi-gru/grukservices.c 	struct gru_blade_state *bs;
bs                223 drivers/misc/sgi-gru/grukservices.c 	bs = gru_base[bid];
bs                226 drivers/misc/sgi-gru/grukservices.c 	down_read(&bs->bs_kgts_sema);
bs                228 drivers/misc/sgi-gru/grukservices.c 		up_read(&bs->bs_kgts_sema);
bs                231 drivers/misc/sgi-gru/grukservices.c 	if (!bs->bs_kgts || !bs->bs_kgts->ts_gru)
bs                232 drivers/misc/sgi-gru/grukservices.c 		gru_load_kernel_context(bs, bid);
bs                233 drivers/misc/sgi-gru/grukservices.c 	return bs;
bs                243 drivers/misc/sgi-gru/grukservices.c 	struct gru_blade_state *bs;
bs                245 drivers/misc/sgi-gru/grukservices.c 	bs = gru_base[blade_id];
bs                246 drivers/misc/sgi-gru/grukservices.c 	up_read(&bs->bs_kgts_sema);
bs                256 drivers/misc/sgi-gru/grukservices.c 	struct gru_blade_state *bs;
bs                261 drivers/misc/sgi-gru/grukservices.c 	bs = gru_lock_kernel_context(-1);
bs                263 drivers/misc/sgi-gru/grukservices.c 	*cb = bs->kernel_cb + lcpu * GRU_HANDLE_STRIDE;
bs                264 drivers/misc/sgi-gru/grukservices.c 	*dsr = bs->kernel_dsr + lcpu * GRU_NUM_KERNEL_DSR_BYTES;
bs                292 drivers/misc/sgi-gru/grukservices.c 	struct gru_blade_state *bs;
bs                296 drivers/misc/sgi-gru/grukservices.c 	bs = gru_base[blade_id];
bs                298 drivers/misc/sgi-gru/grukservices.c 	down_write(&bs->bs_kgts_sema);
bs                301 drivers/misc/sgi-gru/grukservices.c 	if (bs->bs_async_dsr_bytes + bs->bs_async_cbrs)
bs                303 drivers/misc/sgi-gru/grukservices.c 	bs->bs_async_dsr_bytes = dsr_bytes;
bs                304 drivers/misc/sgi-gru/grukservices.c 	bs->bs_async_cbrs = cbrs;
bs                305 drivers/misc/sgi-gru/grukservices.c 	bs->bs_async_wq = cmp;
bs                306 drivers/misc/sgi-gru/grukservices.c 	kgts = bs->bs_kgts;
bs                314 drivers/misc/sgi-gru/grukservices.c 	up_write(&bs->bs_kgts_sema);
bs                326 drivers/misc/sgi-gru/grukservices.c 	struct gru_blade_state *bs = ASYNC_HAN_TO_BS(han);
bs                328 drivers/misc/sgi-gru/grukservices.c 	down_write(&bs->bs_kgts_sema);
bs                329 drivers/misc/sgi-gru/grukservices.c 	bs->bs_async_dsr_bytes = 0;
bs                330 drivers/misc/sgi-gru/grukservices.c 	bs->bs_async_cbrs = 0;
bs                331 drivers/misc/sgi-gru/grukservices.c 	bs->bs_async_wq = NULL;
bs                332 drivers/misc/sgi-gru/grukservices.c 	up_write(&bs->bs_kgts_sema);
bs                343 drivers/misc/sgi-gru/grukservices.c 	struct gru_blade_state *bs = ASYNC_HAN_TO_BS(han);
bs                345 drivers/misc/sgi-gru/grukservices.c 	wait_for_completion(bs->bs_async_wq);
bs                360 drivers/misc/sgi-gru/grukservices.c 	struct gru_blade_state *bs = ASYNC_HAN_TO_BS(han);
bs                367 drivers/misc/sgi-gru/grukservices.c 		*cb = bs->kernel_cb + ncpus * GRU_HANDLE_STRIDE;
bs                369 drivers/misc/sgi-gru/grukservices.c 		*dsr = bs->kernel_dsr + ncpus * GRU_NUM_KERNEL_DSR_BYTES;
bs                750 drivers/misc/sgi-gru/grumain.c 		struct gru_blade_state *bs)
bs                753 drivers/misc/sgi-gru/grumain.c 		return down_write_trylock(&bs->bs_kgts_sema);
bs                759 drivers/misc/sgi-gru/grumain.c 		struct gru_blade_state *bs)
bs                762 drivers/misc/sgi-gru/grumain.c 		up_write(&bs->bs_kgts_sema);
bs                162 drivers/mmc/core/mmc_test.c 	unsigned int *bs;
bs               2135 drivers/mmc/core/mmc_test.c 		ret = mmc_test_rw_multiple(test, rw, rw->bs[i], rw->size, 0);
bs               2162 drivers/mmc/core/mmc_test.c 	unsigned int bs[] = {1 << 12, 1 << 13, 1 << 14, 1 << 15, 1 << 16,
bs               2165 drivers/mmc/core/mmc_test.c 		.bs = bs,
bs               2167 drivers/mmc/core/mmc_test.c 		.len = ARRAY_SIZE(bs),
bs               2181 drivers/mmc/core/mmc_test.c 	unsigned int bs[] = {1 << 12, 1 << 13, 1 << 14, 1 << 15, 1 << 16,
bs               2184 drivers/mmc/core/mmc_test.c 		.bs = bs,
bs               2186 drivers/mmc/core/mmc_test.c 		.len = ARRAY_SIZE(bs),
bs               2200 drivers/mmc/core/mmc_test.c 	unsigned int bs[] = {1 << 12, 1 << 13, 1 << 14, 1 << 15, 1 << 16,
bs               2203 drivers/mmc/core/mmc_test.c 		.bs = bs,
bs               2205 drivers/mmc/core/mmc_test.c 		.len = ARRAY_SIZE(bs),
bs               2219 drivers/mmc/core/mmc_test.c 	unsigned int bs[] = {1 << 12, 1 << 13, 1 << 14, 1 << 15, 1 << 16,
bs               2222 drivers/mmc/core/mmc_test.c 		.bs = bs,
bs               2224 drivers/mmc/core/mmc_test.c 		.len = ARRAY_SIZE(bs),
bs                544 drivers/mmc/host/mtk-sd.c static void sdr_set_bits(void __iomem *reg, u32 bs)
bs                548 drivers/mmc/host/mtk-sd.c 	val |= bs;
bs                552 drivers/mmc/host/mtk-sd.c static void sdr_clr_bits(void __iomem *reg, u32 bs)
bs                556 drivers/mmc/host/mtk-sd.c 	val &= ~bs;
bs                314 drivers/net/phy/dp83867.c 	int ret, val, bs;
bs                326 drivers/net/phy/dp83867.c 	bs = phy_read_mmd(phydev, DP83867_DEVADDR, DP83867_STRAP_STS2);
bs                327 drivers/net/phy/dp83867.c 	if (bs & DP83867_STRAP_STS2_STRAP_FLD) {
bs                357 drivers/net/phy/dp83867.c 		bs = phy_read_mmd(phydev, DP83867_DEVADDR, DP83867_STRAP_STS1);
bs                358 drivers/net/phy/dp83867.c 		if (bs & DP83867_STRAP_STS1_RESERVED)
bs                553 drivers/net/wireless/ath/ath9k/beacon.c 	struct ath9k_beacon_state bs;
bs                555 drivers/net/wireless/ath/ath9k/beacon.c 	if (ath9k_cmn_beacon_config_sta(ah, conf, &bs) == -EPERM)
bs                559 drivers/net/wireless/ath/ath9k/beacon.c 	ath9k_hw_set_sta_beacon_timers(ah, &bs);
bs                 43 drivers/net/wireless/ath/ath9k/common-beacon.c 				 struct ath9k_beacon_state *bs)
bs                 56 drivers/net/wireless/ath/ath9k/common-beacon.c 	memset(bs, 0, sizeof(*bs));
bs                 72 drivers/net/wireless/ath/ath9k/common-beacon.c 	bs->bs_intval = TU_TO_USEC(conf->intval);
bs                 73 drivers/net/wireless/ath/ath9k/common-beacon.c 	bs->bs_dtimperiod = conf->dtim_period * bs->bs_intval;
bs                 74 drivers/net/wireless/ath/ath9k/common-beacon.c 	bs->bs_nexttbtt = conf->nexttbtt;
bs                 75 drivers/net/wireless/ath/ath9k/common-beacon.c 	bs->bs_nextdtim = conf->nexttbtt;
bs                 77 drivers/net/wireless/ath/ath9k/common-beacon.c 		bs->bs_nextdtim = ath9k_get_next_tbtt(ah, tsf, dtim_intval);
bs                 85 drivers/net/wireless/ath/ath9k/common-beacon.c 	bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval);
bs                 86 drivers/net/wireless/ath/ath9k/common-beacon.c 	if (bs->bs_bmissthreshold > 15)
bs                 87 drivers/net/wireless/ath/ath9k/common-beacon.c 		bs->bs_bmissthreshold = 15;
bs                 88 drivers/net/wireless/ath/ath9k/common-beacon.c 	else if (bs->bs_bmissthreshold <= 0)
bs                 89 drivers/net/wireless/ath/ath9k/common-beacon.c 		bs->bs_bmissthreshold = 1;
bs                100 drivers/net/wireless/ath/ath9k/common-beacon.c 	bs->bs_sleepduration = TU_TO_USEC(roundup(IEEE80211_MS_TO_TU(100),
bs                102 drivers/net/wireless/ath/ath9k/common-beacon.c 	if (bs->bs_sleepduration > bs->bs_dtimperiod)
bs                103 drivers/net/wireless/ath/ath9k/common-beacon.c 		bs->bs_sleepduration = bs->bs_dtimperiod;
bs                106 drivers/net/wireless/ath/ath9k/common-beacon.c 	bs->bs_tsfoor_threshold = ATH9K_TSFOOR_THRESHOLD;
bs                109 drivers/net/wireless/ath/ath9k/common-beacon.c 		bs->bs_bmissthreshold, bs->bs_sleepduration);
bs                 21 drivers/net/wireless/ath/ath9k/common-beacon.h 				struct ath9k_beacon_state *bs);
bs                 95 drivers/net/wireless/ath/ath9k/htc_drv_beacon.c 	struct ath9k_beacon_state bs;
bs                101 drivers/net/wireless/ath/ath9k/htc_drv_beacon.c 	if (ath9k_cmn_beacon_config_sta(priv->ah, bss_conf, &bs) == -EPERM)
bs                105 drivers/net/wireless/ath/ath9k/htc_drv_beacon.c 	ath9k_hw_set_sta_beacon_timers(priv->ah, &bs);
bs               2325 drivers/net/wireless/ath/ath9k/hw.c 				    const struct ath9k_beacon_state *bs)
bs               2333 drivers/net/wireless/ath/ath9k/hw.c 	REG_WRITE(ah, AR_NEXT_TBTT_TIMER, bs->bs_nexttbtt);
bs               2334 drivers/net/wireless/ath/ath9k/hw.c 	REG_WRITE(ah, AR_BEACON_PERIOD, bs->bs_intval);
bs               2335 drivers/net/wireless/ath/ath9k/hw.c 	REG_WRITE(ah, AR_DMA_BEACON_PERIOD, bs->bs_intval);
bs               2340 drivers/net/wireless/ath/ath9k/hw.c 		      AR_RSSI_THR_BM_THR, bs->bs_bmissthreshold);
bs               2342 drivers/net/wireless/ath/ath9k/hw.c 	beaconintval = bs->bs_intval;
bs               2344 drivers/net/wireless/ath/ath9k/hw.c 	if (bs->bs_sleepduration > beaconintval)
bs               2345 drivers/net/wireless/ath/ath9k/hw.c 		beaconintval = bs->bs_sleepduration;
bs               2347 drivers/net/wireless/ath/ath9k/hw.c 	dtimperiod = bs->bs_dtimperiod;
bs               2348 drivers/net/wireless/ath/ath9k/hw.c 	if (bs->bs_sleepduration > dtimperiod)
bs               2349 drivers/net/wireless/ath/ath9k/hw.c 		dtimperiod = bs->bs_sleepduration;
bs               2352 drivers/net/wireless/ath/ath9k/hw.c 		nextTbtt = bs->bs_nextdtim;
bs               2354 drivers/net/wireless/ath/ath9k/hw.c 		nextTbtt = bs->bs_nexttbtt;
bs               2356 drivers/net/wireless/ath/ath9k/hw.c 	ath_dbg(common, BEACON, "next DTIM %u\n", bs->bs_nextdtim);
bs               2363 drivers/net/wireless/ath/ath9k/hw.c 	REG_WRITE(ah, AR_NEXT_DTIM, bs->bs_nextdtim - SLEEP_SLOP);
bs               2388 drivers/net/wireless/ath/ath9k/hw.c 	REG_WRITE(ah, AR_TSFOOR_THRESHOLD, bs->bs_tsfoor_threshold);
bs               1071 drivers/net/wireless/ath/ath9k/hw.h 				    const struct ath9k_beacon_state *bs);
bs               1716 drivers/nvme/host/core.c 	unsigned short bs = 1 << ns->lba_shift;
bs               1732 drivers/nvme/host/core.c 		max_sectors = ((u32)(USHRT_MAX + 1) * bs) >> 9;
bs               1734 drivers/nvme/host/core.c 		max_sectors = ((u32)(ns->ctrl->max_hw_sectors + 1) * bs) >> 9;
bs               1771 drivers/nvme/host/core.c 	unsigned short bs = 1 << ns->lba_shift;
bs               1776 drivers/nvme/host/core.c 		bs = (1 << 9);
bs               1788 drivers/nvme/host/core.c 			atomic_bs = (1 + le16_to_cpu(id->nawupf)) * bs;
bs               1790 drivers/nvme/host/core.c 			atomic_bs = (1 + ns->ctrl->subsys->awupf) * bs;
bs               1792 drivers/nvme/host/core.c 		atomic_bs = bs;
bs               1794 drivers/nvme/host/core.c 	phys_bs = bs;
bs               1795 drivers/nvme/host/core.c 	io_opt = bs;
bs               1803 drivers/nvme/host/core.c 	blk_queue_logical_block_size(disk->queue, bs);
bs               3470 drivers/nvme/host/core.c 		unsigned int bs = 1 << ns->lba_shift;
bs               3472 drivers/nvme/host/core.c 		blk_queue_io_min(ns->queue, bs * ns->sws);
bs               3474 drivers/nvme/host/core.c 			blk_queue_io_opt(ns->queue, bs * ns->sws * ns->sgs);
bs                 69 drivers/pcmcia/sa11xx_base.h #define MECR_SET(mecr, sock, shift, mask, bs) \
bs                 72 drivers/pcmcia/sa11xx_base.h         (((bs)<<(shift))<<((sock)==0?MECR_SOCKET_0_SHIFT:MECR_SOCKET_1_SHIFT)))
bs                 78 drivers/pcmcia/sa11xx_base.h #define MECR_BSIO_SET(mecr, sock, bs) \
bs                 79 drivers/pcmcia/sa11xx_base.h MECR_SET((mecr), (sock), MECR_BSIO_SHIFT, MECR_BS_MASK, (bs))
bs                 84 drivers/pcmcia/sa11xx_base.h #define MECR_BSA_SET(mecr, sock, bs) \
bs                 85 drivers/pcmcia/sa11xx_base.h MECR_SET((mecr), (sock), MECR_BSA_SHIFT, MECR_BS_MASK, (bs))
bs                 90 drivers/pcmcia/sa11xx_base.h #define MECR_BSM_SET(mecr, sock, bs) \
bs                 91 drivers/pcmcia/sa11xx_base.h MECR_SET((mecr), (sock), MECR_BSM_SHIFT, MECR_BS_MASK, (bs))
bs                194 drivers/s390/block/scm_blk.c 	msb->bs = MSB_BS_4K;
bs               5090 drivers/scsi/be2iscsi/be_main.c 	struct boot_struct *bs = &phba->boot_struct;
bs               5093 drivers/scsi/be2iscsi/be_main.c 	if (bs->boot_kset) {
bs               5099 drivers/scsi/be2iscsi/be_main.c 	bs->boot_kset = iscsi_boot_create_host_kset(phba->shost->host_no);
bs               5100 drivers/scsi/be2iscsi/be_main.c 	if (!bs->boot_kset) {
bs               5110 drivers/scsi/be2iscsi/be_main.c 	boot_kobj = iscsi_boot_create_target(bs->boot_kset, 0, phba,
bs               5120 drivers/scsi/be2iscsi/be_main.c 	boot_kobj = iscsi_boot_create_initiator(bs->boot_kset, 0, phba,
bs               5130 drivers/scsi/be2iscsi/be_main.c 	boot_kobj = iscsi_boot_create_ethernet(bs->boot_kset, 0, phba,
bs               5142 drivers/scsi/be2iscsi/be_main.c 	iscsi_boot_destroy_kset(bs->boot_kset);
bs               5143 drivers/scsi/be2iscsi/be_main.c 	bs->boot_kset = NULL;
bs               5151 drivers/scsi/be2iscsi/be_main.c 	struct boot_struct *bs = &phba->boot_struct;
bs               5186 drivers/scsi/be2iscsi/be_main.c 		if (bs->retry--)
bs                819 drivers/scsi/be2iscsi/be_mgmt.c 	struct boot_struct *bs;
bs                835 drivers/scsi/be2iscsi/be_mgmt.c 	bs = &phba->boot_struct;
bs                838 drivers/scsi/be2iscsi/be_mgmt.c 	switch (bs->action) {
bs                842 drivers/scsi/be2iscsi/be_mgmt.c 			bs->action = BEISCSI_BOOT_GET_SHANDLE;
bs                844 drivers/scsi/be2iscsi/be_mgmt.c 			bs->retry--;
bs                850 drivers/scsi/be2iscsi/be_mgmt.c 			bs->s_handle = boot_resp->boot_session_handle;
bs                852 drivers/scsi/be2iscsi/be_mgmt.c 		if (bs->s_handle == BE_BOOT_INVALID_SHANDLE) {
bs                853 drivers/scsi/be2iscsi/be_mgmt.c 			bs->action = BEISCSI_BOOT_REOPEN_SESS;
bs                854 drivers/scsi/be2iscsi/be_mgmt.c 			bs->retry--;
bs                856 drivers/scsi/be2iscsi/be_mgmt.c 			bs->action = BEISCSI_BOOT_GET_SINFO;
bs                861 drivers/scsi/be2iscsi/be_mgmt.c 						    &bs->nonemb_cmd);
bs                863 drivers/scsi/be2iscsi/be_mgmt.c 			sess_resp = bs->nonemb_cmd.va;
bs                864 drivers/scsi/be2iscsi/be_mgmt.c 			memcpy(&bs->boot_sess, &sess_resp->session_info,
bs                866 drivers/scsi/be2iscsi/be_mgmt.c 			bs->action = BEISCSI_BOOT_LOGOUT_SESS;
bs                873 drivers/scsi/be2iscsi/be_mgmt.c 		dma_free_coherent(&phba->ctrl.pdev->dev, bs->nonemb_cmd.size,
bs                874 drivers/scsi/be2iscsi/be_mgmt.c 				    bs->nonemb_cmd.va, bs->nonemb_cmd.dma);
bs                875 drivers/scsi/be2iscsi/be_mgmt.c 		bs->nonemb_cmd.va = NULL;
bs                888 drivers/scsi/be2iscsi/be_mgmt.c 		bs->action = BEISCSI_BOOT_CREATE_KSET;
bs                895 drivers/scsi/be2iscsi/be_mgmt.c 	bs->tag = 0;
bs                896 drivers/scsi/be2iscsi/be_mgmt.c 	if (!bs->retry) {
bs                900 drivers/scsi/be2iscsi/be_mgmt.c 			      status, bs->action);
bs                 89 drivers/soc/fsl/qbman/qman_test_stash.c static int bstrap_fn(void *bs)
bs                 91 drivers/soc/fsl/qbman/qman_test_stash.c 	struct bstrap *bstrap = bs;
bs                154 drivers/spi/spi-bcm2835.c static void bcm2835_debugfs_create(struct bcm2835_spi *bs,
bs                165 drivers/spi/spi-bcm2835.c 	bs->debugfs_dir = dir;
bs                169 drivers/spi/spi-bcm2835.c 			   &bs->count_transfer_polling);
bs                171 drivers/spi/spi-bcm2835.c 			   &bs->count_transfer_irq);
bs                173 drivers/spi/spi-bcm2835.c 			   &bs->count_transfer_irq_after_polling);
bs                175 drivers/spi/spi-bcm2835.c 			   &bs->count_transfer_dma);
bs                178 drivers/spi/spi-bcm2835.c static void bcm2835_debugfs_remove(struct bcm2835_spi *bs)
bs                180 drivers/spi/spi-bcm2835.c 	debugfs_remove_recursive(bs->debugfs_dir);
bs                181 drivers/spi/spi-bcm2835.c 	bs->debugfs_dir = NULL;
bs                184 drivers/spi/spi-bcm2835.c static void bcm2835_debugfs_create(struct bcm2835_spi *bs,
bs                189 drivers/spi/spi-bcm2835.c static void bcm2835_debugfs_remove(struct bcm2835_spi *bs)
bs                194 drivers/spi/spi-bcm2835.c static inline u32 bcm2835_rd(struct bcm2835_spi *bs, unsigned reg)
bs                196 drivers/spi/spi-bcm2835.c 	return readl(bs->regs + reg);
bs                199 drivers/spi/spi-bcm2835.c static inline void bcm2835_wr(struct bcm2835_spi *bs, unsigned reg, u32 val)
bs                201 drivers/spi/spi-bcm2835.c 	writel(val, bs->regs + reg);
bs                204 drivers/spi/spi-bcm2835.c static inline void bcm2835_rd_fifo(struct bcm2835_spi *bs)
bs                208 drivers/spi/spi-bcm2835.c 	while ((bs->rx_len) &&
bs                209 drivers/spi/spi-bcm2835.c 	       (bcm2835_rd(bs, BCM2835_SPI_CS) & BCM2835_SPI_CS_RXD)) {
bs                210 drivers/spi/spi-bcm2835.c 		byte = bcm2835_rd(bs, BCM2835_SPI_FIFO);
bs                211 drivers/spi/spi-bcm2835.c 		if (bs->rx_buf)
bs                212 drivers/spi/spi-bcm2835.c 			*bs->rx_buf++ = byte;
bs                213 drivers/spi/spi-bcm2835.c 		bs->rx_len--;
bs                217 drivers/spi/spi-bcm2835.c static inline void bcm2835_wr_fifo(struct bcm2835_spi *bs)
bs                221 drivers/spi/spi-bcm2835.c 	while ((bs->tx_len) &&
bs                222 drivers/spi/spi-bcm2835.c 	       (bcm2835_rd(bs, BCM2835_SPI_CS) & BCM2835_SPI_CS_TXD)) {
bs                223 drivers/spi/spi-bcm2835.c 		byte = bs->tx_buf ? *bs->tx_buf++ : 0;
bs                224 drivers/spi/spi-bcm2835.c 		bcm2835_wr(bs, BCM2835_SPI_FIFO, byte);
bs                225 drivers/spi/spi-bcm2835.c 		bs->tx_len--;
bs                239 drivers/spi/spi-bcm2835.c static inline void bcm2835_rd_fifo_count(struct bcm2835_spi *bs, int count)
bs                244 drivers/spi/spi-bcm2835.c 	bs->rx_len -= count;
bs                247 drivers/spi/spi-bcm2835.c 		val = bcm2835_rd(bs, BCM2835_SPI_FIFO);
bs                249 drivers/spi/spi-bcm2835.c 		memcpy(bs->rx_buf, &val, len);
bs                250 drivers/spi/spi-bcm2835.c 		bs->rx_buf += len;
bs                265 drivers/spi/spi-bcm2835.c static inline void bcm2835_wr_fifo_count(struct bcm2835_spi *bs, int count)
bs                270 drivers/spi/spi-bcm2835.c 	bs->tx_len -= count;
bs                273 drivers/spi/spi-bcm2835.c 		if (bs->tx_buf) {
bs                275 drivers/spi/spi-bcm2835.c 			memcpy(&val, bs->tx_buf, len);
bs                276 drivers/spi/spi-bcm2835.c 			bs->tx_buf += len;
bs                280 drivers/spi/spi-bcm2835.c 		bcm2835_wr(bs, BCM2835_SPI_FIFO, val);
bs                293 drivers/spi/spi-bcm2835.c static inline void bcm2835_wait_tx_fifo_empty(struct bcm2835_spi *bs)
bs                295 drivers/spi/spi-bcm2835.c 	while (!(bcm2835_rd(bs, BCM2835_SPI_CS) & BCM2835_SPI_CS_DONE))
bs                304 drivers/spi/spi-bcm2835.c static inline void bcm2835_rd_fifo_blind(struct bcm2835_spi *bs, int count)
bs                308 drivers/spi/spi-bcm2835.c 	count = min(count, bs->rx_len);
bs                309 drivers/spi/spi-bcm2835.c 	bs->rx_len -= count;
bs                312 drivers/spi/spi-bcm2835.c 		val = bcm2835_rd(bs, BCM2835_SPI_FIFO);
bs                313 drivers/spi/spi-bcm2835.c 		if (bs->rx_buf)
bs                314 drivers/spi/spi-bcm2835.c 			*bs->rx_buf++ = val;
bs                324 drivers/spi/spi-bcm2835.c static inline void bcm2835_wr_fifo_blind(struct bcm2835_spi *bs, int count)
bs                328 drivers/spi/spi-bcm2835.c 	count = min(count, bs->tx_len);
bs                329 drivers/spi/spi-bcm2835.c 	bs->tx_len -= count;
bs                332 drivers/spi/spi-bcm2835.c 		val = bs->tx_buf ? *bs->tx_buf++ : 0;
bs                333 drivers/spi/spi-bcm2835.c 		bcm2835_wr(bs, BCM2835_SPI_FIFO, val);
bs                340 drivers/spi/spi-bcm2835.c 	struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
bs                341 drivers/spi/spi-bcm2835.c 	u32 cs = bcm2835_rd(bs, BCM2835_SPI_CS);
bs                359 drivers/spi/spi-bcm2835.c 	bcm2835_wr(bs, BCM2835_SPI_CS, cs);
bs                361 drivers/spi/spi-bcm2835.c 	bcm2835_wr(bs, BCM2835_SPI_DLEN, 0);
bs                367 drivers/spi/spi-bcm2835.c 	struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
bs                368 drivers/spi/spi-bcm2835.c 	u32 cs = bcm2835_rd(bs, BCM2835_SPI_CS);
bs                375 drivers/spi/spi-bcm2835.c 		bcm2835_rd_fifo_blind(bs, BCM2835_SPI_FIFO_SIZE);
bs                377 drivers/spi/spi-bcm2835.c 		bcm2835_rd_fifo_blind(bs, BCM2835_SPI_FIFO_SIZE_3_4);
bs                379 drivers/spi/spi-bcm2835.c 	if (bs->tx_len && cs & BCM2835_SPI_CS_DONE)
bs                380 drivers/spi/spi-bcm2835.c 		bcm2835_wr_fifo_blind(bs, BCM2835_SPI_FIFO_SIZE);
bs                383 drivers/spi/spi-bcm2835.c 	bcm2835_rd_fifo(bs);
bs                385 drivers/spi/spi-bcm2835.c 	bcm2835_wr_fifo(bs);
bs                387 drivers/spi/spi-bcm2835.c 	if (!bs->rx_len) {
bs                402 drivers/spi/spi-bcm2835.c 	struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
bs                405 drivers/spi/spi-bcm2835.c 	bs->count_transfer_irq++;
bs                411 drivers/spi/spi-bcm2835.c 	bcm2835_wr(bs, BCM2835_SPI_CS, cs | BCM2835_SPI_CS_TA);
bs                415 drivers/spi/spi-bcm2835.c 		bcm2835_wr_fifo_blind(bs, BCM2835_SPI_FIFO_SIZE);
bs                416 drivers/spi/spi-bcm2835.c 	bcm2835_wr_fifo(bs);
bs                420 drivers/spi/spi-bcm2835.c 	bcm2835_wr(bs, BCM2835_SPI_CS, cs);
bs                474 drivers/spi/spi-bcm2835.c 					  struct bcm2835_spi *bs,
bs                479 drivers/spi/spi-bcm2835.c 	bs->tfr		 = tfr;
bs                480 drivers/spi/spi-bcm2835.c 	bs->tx_prologue  = 0;
bs                481 drivers/spi/spi-bcm2835.c 	bs->rx_prologue  = 0;
bs                482 drivers/spi/spi-bcm2835.c 	bs->tx_spillover = false;
bs                484 drivers/spi/spi-bcm2835.c 	if (bs->tx_buf && !sg_is_last(&tfr->tx_sg.sgl[0]))
bs                485 drivers/spi/spi-bcm2835.c 		bs->tx_prologue = sg_dma_len(&tfr->tx_sg.sgl[0]) & 3;
bs                487 drivers/spi/spi-bcm2835.c 	if (bs->rx_buf && !sg_is_last(&tfr->rx_sg.sgl[0])) {
bs                488 drivers/spi/spi-bcm2835.c 		bs->rx_prologue = sg_dma_len(&tfr->rx_sg.sgl[0]) & 3;
bs                490 drivers/spi/spi-bcm2835.c 		if (bs->rx_prologue > bs->tx_prologue) {
bs                491 drivers/spi/spi-bcm2835.c 			if (!bs->tx_buf || sg_is_last(&tfr->tx_sg.sgl[0])) {
bs                492 drivers/spi/spi-bcm2835.c 				bs->tx_prologue  = bs->rx_prologue;
bs                494 drivers/spi/spi-bcm2835.c 				bs->tx_prologue += 4;
bs                495 drivers/spi/spi-bcm2835.c 				bs->tx_spillover =
bs                502 drivers/spi/spi-bcm2835.c 	if (!bs->tx_prologue)
bs                506 drivers/spi/spi-bcm2835.c 	if (bs->rx_prologue) {
bs                507 drivers/spi/spi-bcm2835.c 		bcm2835_wr(bs, BCM2835_SPI_DLEN, bs->rx_prologue);
bs                508 drivers/spi/spi-bcm2835.c 		bcm2835_wr(bs, BCM2835_SPI_CS, cs | BCM2835_SPI_CS_TA
bs                510 drivers/spi/spi-bcm2835.c 		bcm2835_wr_fifo_count(bs, bs->rx_prologue);
bs                511 drivers/spi/spi-bcm2835.c 		bcm2835_wait_tx_fifo_empty(bs);
bs                512 drivers/spi/spi-bcm2835.c 		bcm2835_rd_fifo_count(bs, bs->rx_prologue);
bs                513 drivers/spi/spi-bcm2835.c 		bcm2835_wr(bs, BCM2835_SPI_CS, cs | BCM2835_SPI_CS_CLEAR_RX
bs                519 drivers/spi/spi-bcm2835.c 					   bs->rx_prologue, DMA_FROM_DEVICE);
bs                521 drivers/spi/spi-bcm2835.c 		sg_dma_address(&tfr->rx_sg.sgl[0]) += bs->rx_prologue;
bs                522 drivers/spi/spi-bcm2835.c 		sg_dma_len(&tfr->rx_sg.sgl[0])     -= bs->rx_prologue;
bs                525 drivers/spi/spi-bcm2835.c 	if (!bs->tx_buf)
bs                532 drivers/spi/spi-bcm2835.c 	tx_remaining = bs->tx_prologue - bs->rx_prologue;
bs                534 drivers/spi/spi-bcm2835.c 		bcm2835_wr(bs, BCM2835_SPI_DLEN, tx_remaining);
bs                535 drivers/spi/spi-bcm2835.c 		bcm2835_wr(bs, BCM2835_SPI_CS, cs | BCM2835_SPI_CS_TA
bs                537 drivers/spi/spi-bcm2835.c 		bcm2835_wr_fifo_count(bs, tx_remaining);
bs                538 drivers/spi/spi-bcm2835.c 		bcm2835_wait_tx_fifo_empty(bs);
bs                539 drivers/spi/spi-bcm2835.c 		bcm2835_wr(bs, BCM2835_SPI_CS, cs | BCM2835_SPI_CS_CLEAR_TX
bs                543 drivers/spi/spi-bcm2835.c 	if (likely(!bs->tx_spillover)) {
bs                544 drivers/spi/spi-bcm2835.c 		sg_dma_address(&tfr->tx_sg.sgl[0]) += bs->tx_prologue;
bs                545 drivers/spi/spi-bcm2835.c 		sg_dma_len(&tfr->tx_sg.sgl[0])     -= bs->tx_prologue;
bs                561 drivers/spi/spi-bcm2835.c static void bcm2835_spi_undo_prologue(struct bcm2835_spi *bs)
bs                563 drivers/spi/spi-bcm2835.c 	struct spi_transfer *tfr = bs->tfr;
bs                565 drivers/spi/spi-bcm2835.c 	if (!bs->tx_prologue)
bs                568 drivers/spi/spi-bcm2835.c 	if (bs->rx_prologue) {
bs                569 drivers/spi/spi-bcm2835.c 		sg_dma_address(&tfr->rx_sg.sgl[0]) -= bs->rx_prologue;
bs                570 drivers/spi/spi-bcm2835.c 		sg_dma_len(&tfr->rx_sg.sgl[0])     += bs->rx_prologue;
bs                573 drivers/spi/spi-bcm2835.c 	if (!bs->tx_buf)
bs                576 drivers/spi/spi-bcm2835.c 	if (likely(!bs->tx_spillover)) {
bs                577 drivers/spi/spi-bcm2835.c 		sg_dma_address(&tfr->tx_sg.sgl[0]) -= bs->tx_prologue;
bs                578 drivers/spi/spi-bcm2835.c 		sg_dma_len(&tfr->tx_sg.sgl[0])     += bs->tx_prologue;
bs                580 drivers/spi/spi-bcm2835.c 		sg_dma_len(&tfr->tx_sg.sgl[0])      = bs->tx_prologue - 4;
bs                585 drivers/spi/spi-bcm2835.c 	bs->tx_prologue = 0;
bs                597 drivers/spi/spi-bcm2835.c 	struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
bs                605 drivers/spi/spi-bcm2835.c 	bs->tx_dma_active = false;
bs                606 drivers/spi/spi-bcm2835.c 	bs->rx_dma_active = false;
bs                607 drivers/spi/spi-bcm2835.c 	bcm2835_spi_undo_prologue(bs);
bs                625 drivers/spi/spi-bcm2835.c 	struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
bs                628 drivers/spi/spi-bcm2835.c 	while (!(bcm2835_rd(bs, BCM2835_SPI_CS) & BCM2835_SPI_CS_DONE))
bs                629 drivers/spi/spi-bcm2835.c 		bcm2835_wr(bs, BCM2835_SPI_CS,
bs                630 drivers/spi/spi-bcm2835.c 			   bs->clear_rx_cs[bs->chip_select]);
bs                632 drivers/spi/spi-bcm2835.c 	bs->tx_dma_active = false;
bs                640 drivers/spi/spi-bcm2835.c 	if (cmpxchg(&bs->rx_dma_active, true, false))
bs                643 drivers/spi/spi-bcm2835.c 	bcm2835_spi_undo_prologue(bs);
bs                662 drivers/spi/spi-bcm2835.c 				  struct bcm2835_spi *bs,
bs                702 drivers/spi/spi-bcm2835.c 		bs->chip_select = spi->chip_select;
bs                763 drivers/spi/spi-bcm2835.c 	struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
bs                768 drivers/spi/spi-bcm2835.c 	bs->count_transfer_dma++;
bs                774 drivers/spi/spi-bcm2835.c 	bcm2835_spi_transfer_prologue(ctlr, tfr, bs, cs);
bs                777 drivers/spi/spi-bcm2835.c 	if (bs->tx_buf) {
bs                778 drivers/spi/spi-bcm2835.c 		ret = bcm2835_spi_prepare_sg(ctlr, spi, tfr, bs, true);
bs                780 drivers/spi/spi-bcm2835.c 		cookie = dmaengine_submit(bs->fill_tx_desc);
bs                787 drivers/spi/spi-bcm2835.c 	bcm2835_wr(bs, BCM2835_SPI_DLEN, bs->tx_len);
bs                790 drivers/spi/spi-bcm2835.c 	bcm2835_wr(bs, BCM2835_SPI_CS,
bs                793 drivers/spi/spi-bcm2835.c 	bs->tx_dma_active = true;
bs                803 drivers/spi/spi-bcm2835.c 	if (bs->rx_buf) {
bs                804 drivers/spi/spi-bcm2835.c 		ret = bcm2835_spi_prepare_sg(ctlr, spi, tfr, bs, false);
bs                806 drivers/spi/spi-bcm2835.c 		cookie = dmaengine_submit(bs->clear_rx_desc[spi->chip_select]);
bs                812 drivers/spi/spi-bcm2835.c 		bs->tx_dma_active = false;
bs                818 drivers/spi/spi-bcm2835.c 	bs->rx_dma_active = true;
bs                825 drivers/spi/spi-bcm2835.c 	if (!bs->rx_buf && !bs->tx_dma_active &&
bs                826 drivers/spi/spi-bcm2835.c 	    cmpxchg(&bs->rx_dma_active, true, false)) {
bs                836 drivers/spi/spi-bcm2835.c 	bcm2835_spi_undo_prologue(bs);
bs                853 drivers/spi/spi-bcm2835.c 				struct bcm2835_spi *bs)
bs                860 drivers/spi/spi-bcm2835.c 		if (bs->fill_tx_desc)
bs                861 drivers/spi/spi-bcm2835.c 			dmaengine_desc_free(bs->fill_tx_desc);
bs                863 drivers/spi/spi-bcm2835.c 		if (bs->fill_tx_addr)
bs                865 drivers/spi/spi-bcm2835.c 					     bs->fill_tx_addr, sizeof(u32),
bs                877 drivers/spi/spi-bcm2835.c 			if (bs->clear_rx_desc[i])
bs                878 drivers/spi/spi-bcm2835.c 				dmaengine_desc_free(bs->clear_rx_desc[i]);
bs                880 drivers/spi/spi-bcm2835.c 		if (bs->clear_rx_addr)
bs                882 drivers/spi/spi-bcm2835.c 					 bs->clear_rx_addr,
bs                883 drivers/spi/spi-bcm2835.c 					 sizeof(bs->clear_rx_cs),
bs                892 drivers/spi/spi-bcm2835.c 			     struct bcm2835_spi *bs)
bs                931 drivers/spi/spi-bcm2835.c 	bs->fill_tx_addr = dma_map_page_attrs(ctlr->dma_tx->device->dev,
bs                935 drivers/spi/spi-bcm2835.c 	if (dma_mapping_error(ctlr->dma_tx->device->dev, bs->fill_tx_addr)) {
bs                937 drivers/spi/spi-bcm2835.c 		bs->fill_tx_addr = 0;
bs                941 drivers/spi/spi-bcm2835.c 	bs->fill_tx_desc = dmaengine_prep_dma_cyclic(ctlr->dma_tx,
bs                942 drivers/spi/spi-bcm2835.c 						     bs->fill_tx_addr,
bs                945 drivers/spi/spi-bcm2835.c 	if (!bs->fill_tx_desc) {
bs                950 drivers/spi/spi-bcm2835.c 	ret = dmaengine_desc_set_reuse(bs->fill_tx_desc);
bs                970 drivers/spi/spi-bcm2835.c 	bs->clear_rx_addr = dma_map_single(ctlr->dma_rx->device->dev,
bs                971 drivers/spi/spi-bcm2835.c 					   bs->clear_rx_cs,
bs                972 drivers/spi/spi-bcm2835.c 					   sizeof(bs->clear_rx_cs),
bs                974 drivers/spi/spi-bcm2835.c 	if (dma_mapping_error(ctlr->dma_rx->device->dev, bs->clear_rx_addr)) {
bs                976 drivers/spi/spi-bcm2835.c 		bs->clear_rx_addr = 0;
bs                981 drivers/spi/spi-bcm2835.c 		bs->clear_rx_desc[i] = dmaengine_prep_dma_cyclic(ctlr->dma_rx,
bs                982 drivers/spi/spi-bcm2835.c 					   bs->clear_rx_addr + i * sizeof(u32),
bs                985 drivers/spi/spi-bcm2835.c 		if (!bs->clear_rx_desc[i]) {
bs                990 drivers/spi/spi-bcm2835.c 		ret = dmaengine_desc_set_reuse(bs->clear_rx_desc[i]);
bs               1006 drivers/spi/spi-bcm2835.c 	bcm2835_dma_release(ctlr, bs);
bs               1016 drivers/spi/spi-bcm2835.c 	struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
bs               1020 drivers/spi/spi-bcm2835.c 	bs->count_transfer_polling++;
bs               1023 drivers/spi/spi-bcm2835.c 	bcm2835_wr(bs, BCM2835_SPI_CS, cs | BCM2835_SPI_CS_TA);
bs               1029 drivers/spi/spi-bcm2835.c 	bcm2835_wr_fifo_blind(bs, BCM2835_SPI_FIFO_SIZE);
bs               1035 drivers/spi/spi-bcm2835.c 	while (bs->rx_len) {
bs               1037 drivers/spi/spi-bcm2835.c 		bcm2835_wr_fifo(bs);
bs               1040 drivers/spi/spi-bcm2835.c 		bcm2835_rd_fifo(bs);
bs               1045 drivers/spi/spi-bcm2835.c 		if (bs->rx_len && time_after(jiffies, timeout)) {
bs               1049 drivers/spi/spi-bcm2835.c 					    bs->tx_len, bs->rx_len);
bs               1053 drivers/spi/spi-bcm2835.c 			bs->count_transfer_irq_after_polling++;
bs               1070 drivers/spi/spi-bcm2835.c 	struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
bs               1073 drivers/spi/spi-bcm2835.c 	u32 cs = bs->prepare_cs[spi->chip_select];
bs               1077 drivers/spi/spi-bcm2835.c 	clk_hz = clk_get_rate(bs->clk);
bs               1092 drivers/spi/spi-bcm2835.c 	bcm2835_wr(bs, BCM2835_SPI_CLK, cdiv);
bs               1099 drivers/spi/spi-bcm2835.c 	bs->tx_buf = tfr->tx_buf;
bs               1100 drivers/spi/spi-bcm2835.c 	bs->rx_buf = tfr->rx_buf;
bs               1101 drivers/spi/spi-bcm2835.c 	bs->tx_len = tfr->len;
bs               1102 drivers/spi/spi-bcm2835.c 	bs->rx_len = tfr->len;
bs               1132 drivers/spi/spi-bcm2835.c 	struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
bs               1151 drivers/spi/spi-bcm2835.c 	bcm2835_wr(bs, BCM2835_SPI_CS, bs->prepare_cs[spi->chip_select]);
bs               1159 drivers/spi/spi-bcm2835.c 	struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
bs               1163 drivers/spi/spi-bcm2835.c 	bs->tx_dma_active = false;
bs               1165 drivers/spi/spi-bcm2835.c 	bs->rx_dma_active = false;
bs               1166 drivers/spi/spi-bcm2835.c 	bcm2835_spi_undo_prologue(bs);
bs               1180 drivers/spi/spi-bcm2835.c 	struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
bs               1196 drivers/spi/spi-bcm2835.c 	bs->prepare_cs[spi->chip_select] = cs;
bs               1203 drivers/spi/spi-bcm2835.c 		bs->clear_rx_cs[spi->chip_select] = cs |
bs               1208 drivers/spi/spi-bcm2835.c 					   bs->clear_rx_addr,
bs               1209 drivers/spi/spi-bcm2835.c 					   sizeof(bs->clear_rx_cs),
bs               1277 drivers/spi/spi-bcm2835.c 	struct bcm2835_spi *bs;
bs               1280 drivers/spi/spi-bcm2835.c 	ctlr = spi_alloc_master(&pdev->dev, ALIGN(sizeof(*bs),
bs               1297 drivers/spi/spi-bcm2835.c 	bs = spi_controller_get_devdata(ctlr);
bs               1299 drivers/spi/spi-bcm2835.c 	bs->regs = devm_platform_ioremap_resource(pdev, 0);
bs               1300 drivers/spi/spi-bcm2835.c 	if (IS_ERR(bs->regs)) {
bs               1301 drivers/spi/spi-bcm2835.c 		err = PTR_ERR(bs->regs);
bs               1305 drivers/spi/spi-bcm2835.c 	bs->clk = devm_clk_get(&pdev->dev, NULL);
bs               1306 drivers/spi/spi-bcm2835.c 	if (IS_ERR(bs->clk)) {
bs               1307 drivers/spi/spi-bcm2835.c 		err = PTR_ERR(bs->clk);
bs               1312 drivers/spi/spi-bcm2835.c 	bs->irq = platform_get_irq(pdev, 0);
bs               1313 drivers/spi/spi-bcm2835.c 	if (bs->irq <= 0) {
bs               1314 drivers/spi/spi-bcm2835.c 		err = bs->irq ? bs->irq : -ENODEV;
bs               1318 drivers/spi/spi-bcm2835.c 	clk_prepare_enable(bs->clk);
bs               1320 drivers/spi/spi-bcm2835.c 	bcm2835_dma_init(ctlr, &pdev->dev, bs);
bs               1323 drivers/spi/spi-bcm2835.c 	bcm2835_wr(bs, BCM2835_SPI_CS,
bs               1326 drivers/spi/spi-bcm2835.c 	err = devm_request_irq(&pdev->dev, bs->irq, bcm2835_spi_interrupt, 0,
bs               1340 drivers/spi/spi-bcm2835.c 	bcm2835_debugfs_create(bs, dev_name(&pdev->dev));
bs               1345 drivers/spi/spi-bcm2835.c 	clk_disable_unprepare(bs->clk);
bs               1354 drivers/spi/spi-bcm2835.c 	struct bcm2835_spi *bs = spi_controller_get_devdata(ctlr);
bs               1356 drivers/spi/spi-bcm2835.c 	bcm2835_debugfs_remove(bs);
bs               1361 drivers/spi/spi-bcm2835.c 	bcm2835_wr(bs, BCM2835_SPI_CS,
bs               1364 drivers/spi/spi-bcm2835.c 	clk_disable_unprepare(bs->clk);
bs               1366 drivers/spi/spi-bcm2835.c 	bcm2835_dma_release(ctlr, bs);
bs                108 drivers/spi/spi-bcm2835aux.c static void bcm2835aux_debugfs_create(struct bcm2835aux_spi *bs,
bs                119 drivers/spi/spi-bcm2835aux.c 	bs->debugfs_dir = dir;
bs                123 drivers/spi/spi-bcm2835aux.c 			   &bs->count_transfer_polling);
bs                125 drivers/spi/spi-bcm2835aux.c 			   &bs->count_transfer_irq);
bs                127 drivers/spi/spi-bcm2835aux.c 			   &bs->count_transfer_irq_after_poll);
bs                130 drivers/spi/spi-bcm2835aux.c static void bcm2835aux_debugfs_remove(struct bcm2835aux_spi *bs)
bs                132 drivers/spi/spi-bcm2835aux.c 	debugfs_remove_recursive(bs->debugfs_dir);
bs                133 drivers/spi/spi-bcm2835aux.c 	bs->debugfs_dir = NULL;
bs                136 drivers/spi/spi-bcm2835aux.c static void bcm2835aux_debugfs_create(struct bcm2835aux_spi *bs,
bs                141 drivers/spi/spi-bcm2835aux.c static void bcm2835aux_debugfs_remove(struct bcm2835aux_spi *bs)
bs                146 drivers/spi/spi-bcm2835aux.c static inline u32 bcm2835aux_rd(struct bcm2835aux_spi *bs, unsigned reg)
bs                148 drivers/spi/spi-bcm2835aux.c 	return readl(bs->regs + reg);
bs                151 drivers/spi/spi-bcm2835aux.c static inline void bcm2835aux_wr(struct bcm2835aux_spi *bs, unsigned reg,
bs                154 drivers/spi/spi-bcm2835aux.c 	writel(val, bs->regs + reg);
bs                157 drivers/spi/spi-bcm2835aux.c static inline void bcm2835aux_rd_fifo(struct bcm2835aux_spi *bs)
bs                160 drivers/spi/spi-bcm2835aux.c 	int count = min(bs->rx_len, 3);
bs                162 drivers/spi/spi-bcm2835aux.c 	data = bcm2835aux_rd(bs, BCM2835_AUX_SPI_IO);
bs                163 drivers/spi/spi-bcm2835aux.c 	if (bs->rx_buf) {
bs                166 drivers/spi/spi-bcm2835aux.c 			*bs->rx_buf++ = (data >> 16) & 0xff;
bs                169 drivers/spi/spi-bcm2835aux.c 			*bs->rx_buf++ = (data >> 8) & 0xff;
bs                172 drivers/spi/spi-bcm2835aux.c 			*bs->rx_buf++ = (data >> 0) & 0xff;
bs                176 drivers/spi/spi-bcm2835aux.c 	bs->rx_len -= count;
bs                177 drivers/spi/spi-bcm2835aux.c 	bs->pending -= count;
bs                180 drivers/spi/spi-bcm2835aux.c static inline void bcm2835aux_wr_fifo(struct bcm2835aux_spi *bs)
bs                188 drivers/spi/spi-bcm2835aux.c 	count = min(bs->tx_len, 3);
bs                191 drivers/spi/spi-bcm2835aux.c 		byte = bs->tx_buf ? *bs->tx_buf++ : 0;
bs                199 drivers/spi/spi-bcm2835aux.c 	bs->tx_len -= count;
bs                200 drivers/spi/spi-bcm2835aux.c 	bs->pending += count;
bs                203 drivers/spi/spi-bcm2835aux.c 	if (bs->tx_len)
bs                204 drivers/spi/spi-bcm2835aux.c 		bcm2835aux_wr(bs, BCM2835_AUX_SPI_TXHOLD, data);
bs                206 drivers/spi/spi-bcm2835aux.c 		bcm2835aux_wr(bs, BCM2835_AUX_SPI_IO, data);
bs                209 drivers/spi/spi-bcm2835aux.c static void bcm2835aux_spi_reset_hw(struct bcm2835aux_spi *bs)
bs                212 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, 0);
bs                213 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL0,
bs                217 drivers/spi/spi-bcm2835aux.c static void bcm2835aux_spi_transfer_helper(struct bcm2835aux_spi *bs)
bs                219 drivers/spi/spi-bcm2835aux.c 	u32 stat = bcm2835aux_rd(bs, BCM2835_AUX_SPI_STAT);
bs                222 drivers/spi/spi-bcm2835aux.c 	for (; bs->rx_len && (stat & BCM2835_AUX_SPI_STAT_RX_LVL);
bs                223 drivers/spi/spi-bcm2835aux.c 	     stat = bcm2835aux_rd(bs, BCM2835_AUX_SPI_STAT))
bs                224 drivers/spi/spi-bcm2835aux.c 		bcm2835aux_rd_fifo(bs);
bs                227 drivers/spi/spi-bcm2835aux.c 	while (bs->tx_len &&
bs                228 drivers/spi/spi-bcm2835aux.c 	       (bs->pending < 12) &&
bs                229 drivers/spi/spi-bcm2835aux.c 	       (!(bcm2835aux_rd(bs, BCM2835_AUX_SPI_STAT) &
bs                231 drivers/spi/spi-bcm2835aux.c 		bcm2835aux_wr_fifo(bs);
bs                238 drivers/spi/spi-bcm2835aux.c 	struct bcm2835aux_spi *bs = spi_master_get_devdata(master);
bs                241 drivers/spi/spi-bcm2835aux.c 	if (!(bcm2835aux_rd(bs, BCM2835_AUX_SPI_CNTL1) &
bs                246 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_spi_transfer_helper(bs);
bs                248 drivers/spi/spi-bcm2835aux.c 	if (!bs->tx_len) {
bs                250 drivers/spi/spi-bcm2835aux.c 		bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1] |
bs                255 drivers/spi/spi-bcm2835aux.c 	if (!bs->rx_len) {
bs                256 drivers/spi/spi-bcm2835aux.c 		bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1]);
bs                267 drivers/spi/spi-bcm2835aux.c 	struct bcm2835aux_spi *bs = spi_master_get_devdata(master);
bs                270 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1] |
bs                282 drivers/spi/spi-bcm2835aux.c 	struct bcm2835aux_spi *bs = spi_master_get_devdata(master);
bs                285 drivers/spi/spi-bcm2835aux.c 	bs->count_transfer_irq++;
bs                288 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1]);
bs                289 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL0, bs->cntl[0]);
bs                292 drivers/spi/spi-bcm2835aux.c 	while ((bs->tx_len) &&
bs                293 drivers/spi/spi-bcm2835aux.c 	       (bs->pending < 12) &&
bs                294 drivers/spi/spi-bcm2835aux.c 	       (!(bcm2835aux_rd(bs, BCM2835_AUX_SPI_STAT) &
bs                296 drivers/spi/spi-bcm2835aux.c 		bcm2835aux_wr_fifo(bs);
bs                307 drivers/spi/spi-bcm2835aux.c 	struct bcm2835aux_spi *bs = spi_master_get_devdata(master);
bs                311 drivers/spi/spi-bcm2835aux.c 	bs->count_transfer_polling++;
bs                314 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1]);
bs                315 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL0, bs->cntl[0]);
bs                321 drivers/spi/spi-bcm2835aux.c 	while (bs->rx_len) {
bs                324 drivers/spi/spi-bcm2835aux.c 		bcm2835aux_spi_transfer_helper(bs);
bs                327 drivers/spi/spi-bcm2835aux.c 		if (bs->rx_len && time_after(jiffies, timeout)) {
bs                331 drivers/spi/spi-bcm2835aux.c 					    bs->tx_len, bs->rx_len);
bs                333 drivers/spi/spi-bcm2835aux.c 			bs->count_transfer_irq_after_poll++;
bs                347 drivers/spi/spi-bcm2835aux.c 	struct bcm2835aux_spi *bs = spi_master_get_devdata(master);
bs                361 drivers/spi/spi-bcm2835aux.c 	clk_hz = clk_get_rate(bs->clk);
bs                373 drivers/spi/spi-bcm2835aux.c 	bs->cntl[0] &= ~(BCM2835_AUX_SPI_CNTL0_SPEED);
bs                375 drivers/spi/spi-bcm2835aux.c 	bs->cntl[0] |= speed << BCM2835_AUX_SPI_CNTL0_SPEED_SHIFT;
bs                380 drivers/spi/spi-bcm2835aux.c 	bs->tx_buf = tfr->tx_buf;
bs                381 drivers/spi/spi-bcm2835aux.c 	bs->rx_buf = tfr->rx_buf;
bs                382 drivers/spi/spi-bcm2835aux.c 	bs->tx_len = tfr->len;
bs                383 drivers/spi/spi-bcm2835aux.c 	bs->rx_len = tfr->len;
bs                384 drivers/spi/spi-bcm2835aux.c 	bs->pending = 0;
bs                408 drivers/spi/spi-bcm2835aux.c 	struct bcm2835aux_spi *bs = spi_master_get_devdata(master);
bs                410 drivers/spi/spi-bcm2835aux.c 	bs->cntl[0] = BCM2835_AUX_SPI_CNTL0_ENABLE |
bs                413 drivers/spi/spi-bcm2835aux.c 	bs->cntl[1] = BCM2835_AUX_SPI_CNTL1_MSBF_IN;
bs                417 drivers/spi/spi-bcm2835aux.c 		bs->cntl[0] |= BCM2835_AUX_SPI_CNTL0_CPOL;
bs                418 drivers/spi/spi-bcm2835aux.c 		bs->cntl[0] |= BCM2835_AUX_SPI_CNTL0_OUT_RISING;
bs                420 drivers/spi/spi-bcm2835aux.c 		bs->cntl[0] |= BCM2835_AUX_SPI_CNTL0_IN_RISING;
bs                422 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1]);
bs                423 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL0, bs->cntl[0]);
bs                431 drivers/spi/spi-bcm2835aux.c 	struct bcm2835aux_spi *bs = spi_master_get_devdata(master);
bs                433 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_spi_reset_hw(bs);
bs                441 drivers/spi/spi-bcm2835aux.c 	struct bcm2835aux_spi *bs = spi_master_get_devdata(master);
bs                443 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_spi_reset_hw(bs);
bs                493 drivers/spi/spi-bcm2835aux.c 	struct bcm2835aux_spi *bs;
bs                497 drivers/spi/spi-bcm2835aux.c 	master = spi_alloc_master(&pdev->dev, sizeof(*bs));
bs                523 drivers/spi/spi-bcm2835aux.c 	bs = spi_master_get_devdata(master);
bs                526 drivers/spi/spi-bcm2835aux.c 	bs->regs = devm_platform_ioremap_resource(pdev, 0);
bs                527 drivers/spi/spi-bcm2835aux.c 	if (IS_ERR(bs->regs)) {
bs                528 drivers/spi/spi-bcm2835aux.c 		err = PTR_ERR(bs->regs);
bs                532 drivers/spi/spi-bcm2835aux.c 	bs->clk = devm_clk_get(&pdev->dev, NULL);
bs                533 drivers/spi/spi-bcm2835aux.c 	if (IS_ERR(bs->clk)) {
bs                534 drivers/spi/spi-bcm2835aux.c 		err = PTR_ERR(bs->clk);
bs                539 drivers/spi/spi-bcm2835aux.c 	bs->irq = platform_get_irq(pdev, 0);
bs                540 drivers/spi/spi-bcm2835aux.c 	if (bs->irq <= 0) {
bs                541 drivers/spi/spi-bcm2835aux.c 		err = bs->irq ? bs->irq : -ENODEV;
bs                546 drivers/spi/spi-bcm2835aux.c 	err = clk_prepare_enable(bs->clk);
bs                553 drivers/spi/spi-bcm2835aux.c 	clk_hz = clk_get_rate(bs->clk);
bs                561 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_spi_reset_hw(bs);
bs                563 drivers/spi/spi-bcm2835aux.c 	err = devm_request_irq(&pdev->dev, bs->irq,
bs                578 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_debugfs_create(bs, dev_name(&pdev->dev));
bs                583 drivers/spi/spi-bcm2835aux.c 	clk_disable_unprepare(bs->clk);
bs                592 drivers/spi/spi-bcm2835aux.c 	struct bcm2835aux_spi *bs = spi_master_get_devdata(master);
bs                594 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_debugfs_remove(bs);
bs                598 drivers/spi/spi-bcm2835aux.c 	bcm2835aux_spi_reset_hw(bs);
bs                601 drivers/spi/spi-bcm2835aux.c 	clk_disable_unprepare(bs->clk);
bs                112 drivers/spi/spi-bcm63xx-hsspi.c static void bcm63xx_hsspi_set_cs(struct bcm63xx_hsspi *bs, unsigned int cs,
bs                117 drivers/spi/spi-bcm63xx-hsspi.c 	mutex_lock(&bs->bus_mutex);
bs                118 drivers/spi/spi-bcm63xx-hsspi.c 	reg = __raw_readl(bs->regs + HSSPI_GLOBAL_CTRL_REG);
bs                121 drivers/spi/spi-bcm63xx-hsspi.c 	if (active == !(bs->cs_polarity & BIT(cs)))
bs                124 drivers/spi/spi-bcm63xx-hsspi.c 	__raw_writel(reg, bs->regs + HSSPI_GLOBAL_CTRL_REG);
bs                125 drivers/spi/spi-bcm63xx-hsspi.c 	mutex_unlock(&bs->bus_mutex);
bs                128 drivers/spi/spi-bcm63xx-hsspi.c static void bcm63xx_hsspi_set_clk(struct bcm63xx_hsspi *bs,
bs                134 drivers/spi/spi-bcm63xx-hsspi.c 	reg = DIV_ROUND_UP(2048, DIV_ROUND_UP(bs->speed_hz, hz));
bs                136 drivers/spi/spi-bcm63xx-hsspi.c 		     bs->regs + HSSPI_PROFILE_CLK_CTRL_REG(profile));
bs                138 drivers/spi/spi-bcm63xx-hsspi.c 	reg = __raw_readl(bs->regs + HSSPI_PROFILE_SIGNAL_CTRL_REG(profile));
bs                143 drivers/spi/spi-bcm63xx-hsspi.c 	__raw_writel(reg, bs->regs + HSSPI_PROFILE_SIGNAL_CTRL_REG(profile));
bs                145 drivers/spi/spi-bcm63xx-hsspi.c 	mutex_lock(&bs->bus_mutex);
bs                147 drivers/spi/spi-bcm63xx-hsspi.c 	reg = __raw_readl(bs->regs + HSSPI_GLOBAL_CTRL_REG);
bs                151 drivers/spi/spi-bcm63xx-hsspi.c 	__raw_writel(reg, bs->regs + HSSPI_GLOBAL_CTRL_REG);
bs                152 drivers/spi/spi-bcm63xx-hsspi.c 	mutex_unlock(&bs->bus_mutex);
bs                157 drivers/spi/spi-bcm63xx-hsspi.c 	struct bcm63xx_hsspi *bs = spi_master_get_devdata(spi->master);
bs                165 drivers/spi/spi-bcm63xx-hsspi.c 	bcm63xx_hsspi_set_clk(bs, spi, t->speed_hz);
bs                166 drivers/spi/spi-bcm63xx-hsspi.c 	bcm63xx_hsspi_set_cs(bs, spi->chip_select, true);
bs                184 drivers/spi/spi-bcm63xx-hsspi.c 		     bs->regs + HSSPI_PROFILE_MODE_CTRL_REG(chip_select));
bs                189 drivers/spi/spi-bcm63xx-hsspi.c 		reinit_completion(&bs->done);
bs                191 drivers/spi/spi-bcm63xx-hsspi.c 			memcpy_toio(bs->fifo + HSSPI_OPCODE_LEN, tx, curr_step);
bs                195 drivers/spi/spi-bcm63xx-hsspi.c 		__raw_writew(opcode | curr_step, bs->fifo);
bs                199 drivers/spi/spi-bcm63xx-hsspi.c 			     bs->regs + HSSPI_INT_MASK_REG);
bs                205 drivers/spi/spi-bcm63xx-hsspi.c 			     bs->regs + HSSPI_PINGPONG_COMMAND_REG(0));
bs                207 drivers/spi/spi-bcm63xx-hsspi.c 		if (wait_for_completion_timeout(&bs->done, HZ) == 0) {
bs                208 drivers/spi/spi-bcm63xx-hsspi.c 			dev_err(&bs->pdev->dev, "transfer timed out!\n");
bs                213 drivers/spi/spi-bcm63xx-hsspi.c 			memcpy_fromio(rx, bs->fifo, curr_step);
bs                225 drivers/spi/spi-bcm63xx-hsspi.c 	struct bcm63xx_hsspi *bs = spi_master_get_devdata(spi->master);
bs                228 drivers/spi/spi-bcm63xx-hsspi.c 	reg = __raw_readl(bs->regs +
bs                235 drivers/spi/spi-bcm63xx-hsspi.c 	__raw_writel(reg, bs->regs +
bs                238 drivers/spi/spi-bcm63xx-hsspi.c 	mutex_lock(&bs->bus_mutex);
bs                239 drivers/spi/spi-bcm63xx-hsspi.c 	reg = __raw_readl(bs->regs + HSSPI_GLOBAL_CTRL_REG);
bs                242 drivers/spi/spi-bcm63xx-hsspi.c 	if ((reg & GLOBAL_CTRL_CS_POLARITY_MASK) == bs->cs_polarity) {
bs                247 drivers/spi/spi-bcm63xx-hsspi.c 		__raw_writel(reg, bs->regs + HSSPI_GLOBAL_CTRL_REG);
bs                251 drivers/spi/spi-bcm63xx-hsspi.c 		bs->cs_polarity |= BIT(spi->chip_select);
bs                253 drivers/spi/spi-bcm63xx-hsspi.c 		bs->cs_polarity &= ~BIT(spi->chip_select);
bs                255 drivers/spi/spi-bcm63xx-hsspi.c 	mutex_unlock(&bs->bus_mutex);
bs                263 drivers/spi/spi-bcm63xx-hsspi.c 	struct bcm63xx_hsspi *bs = spi_master_get_devdata(master);
bs                285 drivers/spi/spi-bcm63xx-hsspi.c 	bcm63xx_hsspi_set_cs(bs, dummy_cs, true);
bs                298 drivers/spi/spi-bcm63xx-hsspi.c 			bcm63xx_hsspi_set_cs(bs, spi->chip_select, false);
bs                301 drivers/spi/spi-bcm63xx-hsspi.c 	mutex_lock(&bs->bus_mutex);
bs                302 drivers/spi/spi-bcm63xx-hsspi.c 	reg = __raw_readl(bs->regs + HSSPI_GLOBAL_CTRL_REG);
bs                304 drivers/spi/spi-bcm63xx-hsspi.c 	reg |= bs->cs_polarity;
bs                305 drivers/spi/spi-bcm63xx-hsspi.c 	__raw_writel(reg, bs->regs + HSSPI_GLOBAL_CTRL_REG);
bs                306 drivers/spi/spi-bcm63xx-hsspi.c 	mutex_unlock(&bs->bus_mutex);
bs                316 drivers/spi/spi-bcm63xx-hsspi.c 	struct bcm63xx_hsspi *bs = (struct bcm63xx_hsspi *)dev_id;
bs                318 drivers/spi/spi-bcm63xx-hsspi.c 	if (__raw_readl(bs->regs + HSSPI_INT_STATUS_MASKED_REG) == 0)
bs                321 drivers/spi/spi-bcm63xx-hsspi.c 	__raw_writel(HSSPI_INT_CLEAR_ALL, bs->regs + HSSPI_INT_STATUS_REG);
bs                322 drivers/spi/spi-bcm63xx-hsspi.c 	__raw_writel(0, bs->regs + HSSPI_INT_MASK_REG);
bs                324 drivers/spi/spi-bcm63xx-hsspi.c 	complete(&bs->done);
bs                332 drivers/spi/spi-bcm63xx-hsspi.c 	struct bcm63xx_hsspi *bs;
bs                376 drivers/spi/spi-bcm63xx-hsspi.c 	master = spi_alloc_master(&pdev->dev, sizeof(*bs));
bs                382 drivers/spi/spi-bcm63xx-hsspi.c 	bs = spi_master_get_devdata(master);
bs                383 drivers/spi/spi-bcm63xx-hsspi.c 	bs->pdev = pdev;
bs                384 drivers/spi/spi-bcm63xx-hsspi.c 	bs->clk = clk;
bs                385 drivers/spi/spi-bcm63xx-hsspi.c 	bs->pll_clk = pll_clk;
bs                386 drivers/spi/spi-bcm63xx-hsspi.c 	bs->regs = regs;
bs                387 drivers/spi/spi-bcm63xx-hsspi.c 	bs->speed_hz = rate;
bs                388 drivers/spi/spi-bcm63xx-hsspi.c 	bs->fifo = (u8 __iomem *)(bs->regs + HSSPI_FIFO_REG(0));
bs                390 drivers/spi/spi-bcm63xx-hsspi.c 	mutex_init(&bs->bus_mutex);
bs                391 drivers/spi/spi-bcm63xx-hsspi.c 	init_completion(&bs->done);
bs                414 drivers/spi/spi-bcm63xx-hsspi.c 	__raw_writel(0, bs->regs + HSSPI_INT_MASK_REG);
bs                417 drivers/spi/spi-bcm63xx-hsspi.c 	__raw_writel(HSSPI_INT_CLEAR_ALL, bs->regs + HSSPI_INT_STATUS_REG);
bs                420 drivers/spi/spi-bcm63xx-hsspi.c 	reg = __raw_readl(bs->regs + HSSPI_GLOBAL_CTRL_REG);
bs                421 drivers/spi/spi-bcm63xx-hsspi.c 	bs->cs_polarity = reg & GLOBAL_CTRL_CS_POLARITY_MASK;
bs                423 drivers/spi/spi-bcm63xx-hsspi.c 		     bs->regs + HSSPI_GLOBAL_CTRL_REG);
bs                426 drivers/spi/spi-bcm63xx-hsspi.c 			       pdev->name, bs);
bs                451 drivers/spi/spi-bcm63xx-hsspi.c 	struct bcm63xx_hsspi *bs = spi_master_get_devdata(master);
bs                454 drivers/spi/spi-bcm63xx-hsspi.c 	__raw_writel(0, bs->regs + HSSPI_INT_MASK_REG);
bs                455 drivers/spi/spi-bcm63xx-hsspi.c 	clk_disable_unprepare(bs->pll_clk);
bs                456 drivers/spi/spi-bcm63xx-hsspi.c 	clk_disable_unprepare(bs->clk);
bs                465 drivers/spi/spi-bcm63xx-hsspi.c 	struct bcm63xx_hsspi *bs = spi_master_get_devdata(master);
bs                468 drivers/spi/spi-bcm63xx-hsspi.c 	clk_disable_unprepare(bs->pll_clk);
bs                469 drivers/spi/spi-bcm63xx-hsspi.c 	clk_disable_unprepare(bs->clk);
bs                477 drivers/spi/spi-bcm63xx-hsspi.c 	struct bcm63xx_hsspi *bs = spi_master_get_devdata(master);
bs                480 drivers/spi/spi-bcm63xx-hsspi.c 	ret = clk_prepare_enable(bs->clk);
bs                484 drivers/spi/spi-bcm63xx-hsspi.c 	if (bs->pll_clk) {
bs                485 drivers/spi/spi-bcm63xx-hsspi.c 		ret = clk_prepare_enable(bs->pll_clk);
bs                153 drivers/spi/spi-bcm63xx.c static inline u8 bcm_spi_readb(struct bcm63xx_spi *bs,
bs                156 drivers/spi/spi-bcm63xx.c 	return readb(bs->regs + bs->reg_offsets[offset]);
bs                159 drivers/spi/spi-bcm63xx.c static inline u16 bcm_spi_readw(struct bcm63xx_spi *bs,
bs                163 drivers/spi/spi-bcm63xx.c 	return ioread16be(bs->regs + bs->reg_offsets[offset]);
bs                165 drivers/spi/spi-bcm63xx.c 	return readw(bs->regs + bs->reg_offsets[offset]);
bs                169 drivers/spi/spi-bcm63xx.c static inline void bcm_spi_writeb(struct bcm63xx_spi *bs,
bs                172 drivers/spi/spi-bcm63xx.c 	writeb(value, bs->regs + bs->reg_offsets[offset]);
bs                175 drivers/spi/spi-bcm63xx.c static inline void bcm_spi_writew(struct bcm63xx_spi *bs,
bs                179 drivers/spi/spi-bcm63xx.c 	iowrite16be(value, bs->regs + bs->reg_offsets[offset]);
bs                181 drivers/spi/spi-bcm63xx.c 	writew(value, bs->regs + bs->reg_offsets[offset]);
bs                198 drivers/spi/spi-bcm63xx.c 	struct bcm63xx_spi *bs = spi_master_get_devdata(spi->master);
bs                214 drivers/spi/spi-bcm63xx.c 	reg = bcm_spi_readb(bs, SPI_CLK_CFG);
bs                218 drivers/spi/spi-bcm63xx.c 	bcm_spi_writeb(bs, reg, SPI_CLK_CFG);
bs                229 drivers/spi/spi-bcm63xx.c 	struct bcm63xx_spi *bs = spi_master_get_devdata(spi->master);
bs                238 drivers/spi/spi-bcm63xx.c 	bcm_spi_writeb(bs, 0, SPI_INT_MASK);
bs                250 drivers/spi/spi-bcm63xx.c 			memcpy_toio(bs->tx_io + len, t->tx_buf, t->len);
bs                270 drivers/spi/spi-bcm63xx.c 	reinit_completion(&bs->done);
bs                276 drivers/spi/spi-bcm63xx.c 		msg_ctl |= (SPI_FD_RW << bs->msg_type_shift);
bs                278 drivers/spi/spi-bcm63xx.c 		msg_ctl |= (SPI_HD_R << bs->msg_type_shift);
bs                280 drivers/spi/spi-bcm63xx.c 		msg_ctl |= (SPI_HD_W << bs->msg_type_shift);
bs                282 drivers/spi/spi-bcm63xx.c 	switch (bs->msg_ctl_width) {
bs                284 drivers/spi/spi-bcm63xx.c 		bcm_spi_writeb(bs, msg_ctl, SPI_MSG_CTL);
bs                287 drivers/spi/spi-bcm63xx.c 		bcm_spi_writew(bs, msg_ctl, SPI_MSG_CTL);
bs                295 drivers/spi/spi-bcm63xx.c 	bcm_spi_writew(bs, cmd, SPI_CMD);
bs                298 drivers/spi/spi-bcm63xx.c 	bcm_spi_writeb(bs, SPI_INTR_CMD_DONE, SPI_INT_MASK);
bs                300 drivers/spi/spi-bcm63xx.c 	timeout = wait_for_completion_timeout(&bs->done, HZ);
bs                312 drivers/spi/spi-bcm63xx.c 			memcpy_fromio(t->rx_buf, bs->rx_io + len, t->len);
bs                327 drivers/spi/spi-bcm63xx.c 	struct bcm63xx_spi *bs = spi_master_get_devdata(master);
bs                355 drivers/spi/spi-bcm63xx.c 		     total_len > (bs->fifo_size + BCM63XX_SPI_MAX_PREPEND)) ||
bs                356 drivers/spi/spi-bcm63xx.c 		    (!can_use_prepend && total_len > bs->fifo_size)) {
bs                358 drivers/spi/spi-bcm63xx.c 				total_len, bs->fifo_size);
bs                408 drivers/spi/spi-bcm63xx.c 	struct bcm63xx_spi *bs = spi_master_get_devdata(master);
bs                412 drivers/spi/spi-bcm63xx.c 	intr = bcm_spi_readb(bs, SPI_INT_STATUS);
bs                413 drivers/spi/spi-bcm63xx.c 	bcm_spi_writeb(bs, SPI_INTR_CLEAR_ALL, SPI_INT_STATUS);
bs                414 drivers/spi/spi-bcm63xx.c 	bcm_spi_writeb(bs, 0, SPI_INT_MASK);
bs                418 drivers/spi/spi-bcm63xx.c 		complete(&bs->done);
bs                425 drivers/spi/spi-bcm63xx.c 	struct bcm63xx_spi *bs = spi_master_get_devdata(spi->master);
bs                427 drivers/spi/spi-bcm63xx.c 	return bs->fifo_size;
bs                493 drivers/spi/spi-bcm63xx.c 	struct bcm63xx_spi *bs;
bs                532 drivers/spi/spi-bcm63xx.c 	master = spi_alloc_master(dev, sizeof(*bs));
bs                538 drivers/spi/spi-bcm63xx.c 	bs = spi_master_get_devdata(master);
bs                539 drivers/spi/spi-bcm63xx.c 	init_completion(&bs->done);
bs                542 drivers/spi/spi-bcm63xx.c 	bs->pdev = pdev;
bs                545 drivers/spi/spi-bcm63xx.c 	bs->regs = devm_ioremap_resource(&pdev->dev, r);
bs                546 drivers/spi/spi-bcm63xx.c 	if (IS_ERR(bs->regs)) {
bs                547 drivers/spi/spi-bcm63xx.c 		ret = PTR_ERR(bs->regs);
bs                551 drivers/spi/spi-bcm63xx.c 	bs->irq = irq;
bs                552 drivers/spi/spi-bcm63xx.c 	bs->clk = clk;
bs                553 drivers/spi/spi-bcm63xx.c 	bs->reg_offsets = bcm63xx_spireg;
bs                554 drivers/spi/spi-bcm63xx.c 	bs->fifo_size = bs->reg_offsets[SPI_MSG_DATA_SIZE];
bs                572 drivers/spi/spi-bcm63xx.c 	bs->msg_type_shift = bs->reg_offsets[SPI_MSG_TYPE_SHIFT];
bs                573 drivers/spi/spi-bcm63xx.c 	bs->msg_ctl_width = bs->reg_offsets[SPI_MSG_CTL_WIDTH];
bs                574 drivers/spi/spi-bcm63xx.c 	bs->tx_io = (u8 *)(bs->regs + bs->reg_offsets[SPI_MSG_DATA]);
bs                575 drivers/spi/spi-bcm63xx.c 	bs->rx_io = (const u8 *)(bs->regs + bs->reg_offsets[SPI_RX_DATA]);
bs                578 drivers/spi/spi-bcm63xx.c 	ret = clk_prepare_enable(bs->clk);
bs                582 drivers/spi/spi-bcm63xx.c 	bcm_spi_writeb(bs, SPI_INTR_CLEAR_ALL, SPI_INT_STATUS);
bs                592 drivers/spi/spi-bcm63xx.c 		 r, irq, bs->fifo_size);
bs                606 drivers/spi/spi-bcm63xx.c 	struct bcm63xx_spi *bs = spi_master_get_devdata(master);
bs                609 drivers/spi/spi-bcm63xx.c 	bcm_spi_writeb(bs, 0, SPI_INT_MASK);
bs                612 drivers/spi/spi-bcm63xx.c 	clk_disable_unprepare(bs->clk);
bs                621 drivers/spi/spi-bcm63xx.c 	struct bcm63xx_spi *bs = spi_master_get_devdata(master);
bs                625 drivers/spi/spi-bcm63xx.c 	clk_disable_unprepare(bs->clk);
bs                633 drivers/spi/spi-bcm63xx.c 	struct bcm63xx_spi *bs = spi_master_get_devdata(master);
bs                636 drivers/spi/spi-bcm63xx.c 	ret = clk_prepare_enable(bs->clk);
bs                 30 drivers/staging/fbtft/fb_pcd8544.c static unsigned int bs = 4;
bs                 31 drivers/staging/fbtft/fb_pcd8544.c module_param(bs, uint, 0000);
bs                 32 drivers/staging/fbtft/fb_pcd8544.c MODULE_PARM_DESC(bs, "BS[2:0] Bias voltage level: 0-7 (default: 4)");
bs                 63 drivers/staging/fbtft/fb_pcd8544.c 	write_reg(par, 0x10 | (bs & 0x7));
bs                 29 drivers/staging/fbtft/fb_tls8204.c static unsigned int bs = 4;
bs                 30 drivers/staging/fbtft/fb_tls8204.c module_param(bs, uint, 0000);
bs                 31 drivers/staging/fbtft/fb_tls8204.c MODULE_PARM_DESC(bs, "BS[2:0] Bias voltage level: 0-7 (default: 4)");
bs                 46 drivers/staging/fbtft/fb_tls8204.c 	write_reg(par, 0x10 | (bs & 0x7));
bs                459 drivers/staging/uwb/beacon.c 	struct uwb_rc_evt_beacon_size *bs;
bs                462 drivers/staging/uwb/beacon.c 	if (evt->notif.size < sizeof(*bs)) {
bs                465 drivers/staging/uwb/beacon.c 			evt->notif.size, sizeof(*bs));
bs                468 drivers/staging/uwb/beacon.c 	bs = container_of(evt->notif.rceb, struct uwb_rc_evt_beacon_size, rceb);
bs                471 drivers/staging/uwb/beacon.c 			"(FIXME: action?)\n", le16_to_cpu(bs->wNewBeaconSize));
bs                121 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h #define BITSET_IS_SET(bs, b)  (bs[BITSET_WORD(b)] & BITSET_BIT(b))
bs                122 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h #define BITSET_SET(bs, b)     (bs[BITSET_WORD(b)] |= BITSET_BIT(b))
bs                123 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h #define BITSET_CLR(bs, b)     (bs[BITSET_WORD(b)] &= ~BITSET_BIT(b))
bs                131 drivers/target/target_core_iblock.c 		struct bio_set *bs = &ib_dev->ibd_bio_set;
bs                148 drivers/target/target_core_iblock.c 			if (bioset_integrity_create(bs, IBLOCK_BIO_POOL_SIZE) < 0) {
bs                154 drivers/target/target_core_iblock.c 				 &bs->bio_integrity_pool);
bs               3404 drivers/tty/cyclades.c 	const struct zfile_block *b, *bs;
bs               3413 drivers/tty/cyclades.c 	bs = ptr + h->block_offset;
bs               3416 drivers/tty/cyclades.c 			(void *)(bs + h->n_blocks) > ptr + len) {
bs               3447 drivers/tty/cyclades.c 	for (b = bs; b < bs + h->n_blocks; b++)
bs               3459 drivers/tty/cyclades.c 		b = &bs[c->block_list[a]];
bs               2138 drivers/tty/vt/vt.c 		bs(vc);
bs               2988 drivers/tty/vt/vt.c 				bs(vc);
bs                213 drivers/video/fbdev/core/bitblit.c 	unsigned int bs = info->var.yres - bh;
bs                229 drivers/video/fbdev/core/bitblit.c 		region.dy = info->var.yoffset + bs;
bs                198 drivers/video/fbdev/core/fbcon_ccw.c 	unsigned int bs = vc->vc_rows*ch;
bs                213 drivers/video/fbdev/core/fbcon_ccw.c 		region.dx = info->var.xoffset + bs;
bs                161 fs/afs/vl_list.c 	struct dns_server_list_v1_server bs;
bs                198 fs/afs/vl_list.c 	while (end - b >= sizeof(bs)) {
bs                199 fs/afs/vl_list.c 		bs.name_len	= afs_extract_le16(&b);
bs                200 fs/afs/vl_list.c 		bs.priority	= afs_extract_le16(&b);
bs                201 fs/afs/vl_list.c 		bs.weight	= afs_extract_le16(&b);
bs                202 fs/afs/vl_list.c 		bs.port		= afs_extract_le16(&b);
bs                203 fs/afs/vl_list.c 		bs.source	= *b++;
bs                204 fs/afs/vl_list.c 		bs.status	= *b++;
bs                205 fs/afs/vl_list.c 		bs.protocol	= *b++;
bs                206 fs/afs/vl_list.c 		bs.nr_addrs	= *b++;
bs                209 fs/afs/vl_list.c 		       bs.name_len, bs.priority, bs.weight,
bs                210 fs/afs/vl_list.c 		       bs.port, bs.protocol, bs.nr_addrs,
bs                211 fs/afs/vl_list.c 		       bs.name_len, bs.name_len, b);
bs                213 fs/afs/vl_list.c 		if (end - b < bs.name_len)
bs                217 fs/afs/vl_list.c 		if (bs.protocol == DNS_SERVER_PROTOCOL_UNSPECIFIED) {
bs                218 fs/afs/vl_list.c 			bs.protocol = DNS_SERVER_PROTOCOL_UDP;
bs                219 fs/afs/vl_list.c 		} else if (bs.protocol != DNS_SERVER_PROTOCOL_UDP) {
bs                220 fs/afs/vl_list.c 			_leave(" = [proto %u]", bs.protocol);
bs                224 fs/afs/vl_list.c 		if (bs.port == 0)
bs                225 fs/afs/vl_list.c 			bs.port = AFS_VL_PORT;
bs                226 fs/afs/vl_list.c 		if (bs.source > NR__dns_record_source)
bs                227 fs/afs/vl_list.c 			bs.source = NR__dns_record_source;
bs                228 fs/afs/vl_list.c 		if (bs.status > NR__dns_lookup_status)
bs                229 fs/afs/vl_list.c 			bs.status = NR__dns_lookup_status;
bs                236 fs/afs/vl_list.c 			if (p->name_len == bs.name_len &&
bs                237 fs/afs/vl_list.c 			    p->port == bs.port &&
bs                238 fs/afs/vl_list.c 			    strncasecmp(b, p->name, bs.name_len) == 0) {
bs                246 fs/afs/vl_list.c 			server = afs_alloc_vlserver(b, bs.name_len, bs.port);
bs                251 fs/afs/vl_list.c 		b += bs.name_len;
bs                256 fs/afs/vl_list.c 		addrs = afs_extract_vl_addrs(&b, end, bs.nr_addrs, bs.port);
bs                269 fs/afs/vl_list.c 		addrs->source = bs.source;
bs                270 fs/afs/vl_list.c 		addrs->status = bs.status;
bs                293 fs/afs/vl_list.c 			if (bs.priority < vllist->servers[j].priority)
bs                295 fs/afs/vl_list.c 			if (bs.priority == vllist->servers[j].priority &&
bs                296 fs/afs/vl_list.c 			    bs.weight > vllist->servers[j].weight)
bs                308 fs/afs/vl_list.c 		vllist->servers[j].priority = bs.priority;
bs                309 fs/afs/vl_list.c 		vllist->servers[j].weight = bs.weight;
bs               3247 fs/btrfs/ioctl.c 	const u64 bs = BTRFS_I(src)->root->fs_info->sb->s_blocksize;
bs               3255 fs/btrfs/ioctl.c 	ret = btrfs_clone(src, dst, loff, len, ALIGN(len, bs), dst_loff, 1);
bs               3764 fs/btrfs/ioctl.c 	u64 bs = fs_info->sb->s_blocksize;
bs               3784 fs/btrfs/ioctl.c 		len = ALIGN(src->i_size, bs) - off;
bs               3787 fs/btrfs/ioctl.c 		const u64 wb_start = ALIGN_DOWN(inode->i_size, bs);
bs               3831 fs/btrfs/ioctl.c 	u64 bs = BTRFS_I(inode_out)->root->fs_info->sb->s_blocksize;
bs               3868 fs/btrfs/ioctl.c 		wb_len = ALIGN(inode_in->i_size, bs) - ALIGN_DOWN(pos_in, bs);
bs               3870 fs/btrfs/ioctl.c 		wb_len = ALIGN(*len, bs);
bs               3902 fs/btrfs/ioctl.c 	ret = btrfs_wait_ordered_range(inode_in, ALIGN_DOWN(pos_in, bs),
bs               3906 fs/btrfs/ioctl.c 	ret = btrfs_wait_ordered_range(inode_out, ALIGN_DOWN(pos_out, bs),
bs               5342 fs/btrfs/send.c 	u64 bs = sctx->send_root->fs_info->sb->s_blocksize;
bs               5370 fs/btrfs/send.c 	if (clone_root && IS_ALIGNED(offset + len, bs)) {
bs               1812 fs/ext4/xattr.c 		      struct ext4_xattr_block_find *bs)
bs               1822 fs/ext4/xattr.c 		bs->bh = ext4_sb_bread(sb, EXT4_I(inode)->i_file_acl, REQ_PRIO);
bs               1823 fs/ext4/xattr.c 		if (IS_ERR(bs->bh))
bs               1824 fs/ext4/xattr.c 			return PTR_ERR(bs->bh);
bs               1825 fs/ext4/xattr.c 		ea_bdebug(bs->bh, "b_count=%d, refcount=%d",
bs               1826 fs/ext4/xattr.c 			atomic_read(&(bs->bh->b_count)),
bs               1827 fs/ext4/xattr.c 			le32_to_cpu(BHDR(bs->bh)->h_refcount));
bs               1828 fs/ext4/xattr.c 		error = ext4_xattr_check_block(inode, bs->bh);
bs               1832 fs/ext4/xattr.c 		bs->s.base = BHDR(bs->bh);
bs               1833 fs/ext4/xattr.c 		bs->s.first = BFIRST(bs->bh);
bs               1834 fs/ext4/xattr.c 		bs->s.end = bs->bh->b_data + bs->bh->b_size;
bs               1835 fs/ext4/xattr.c 		bs->s.here = bs->s.first;
bs               1836 fs/ext4/xattr.c 		error = xattr_find_entry(inode, &bs->s.here, bs->s.end,
bs               1840 fs/ext4/xattr.c 		bs->s.not_found = error;
bs               1848 fs/ext4/xattr.c 		     struct ext4_xattr_block_find *bs)
bs               1852 fs/ext4/xattr.c 	struct ext4_xattr_search s_copy = bs->s;
bs               1865 fs/ext4/xattr.c 		BUFFER_TRACE(bs->bh, "get_write_access");
bs               1866 fs/ext4/xattr.c 		error = ext4_journal_get_write_access(handle, bs->bh);
bs               1869 fs/ext4/xattr.c 		lock_buffer(bs->bh);
bs               1872 fs/ext4/xattr.c 			__u32 hash = le32_to_cpu(BHDR(bs->bh)->h_hash);
bs               1881 fs/ext4/xattr.c 						      bs->bh->b_blocknr);
bs               1882 fs/ext4/xattr.c 			ea_bdebug(bs->bh, "modifying in-place");
bs               1885 fs/ext4/xattr.c 			ext4_xattr_block_csum_set(inode, bs->bh);
bs               1886 fs/ext4/xattr.c 			unlock_buffer(bs->bh);
bs               1892 fs/ext4/xattr.c 								   bs->bh);
bs               1897 fs/ext4/xattr.c 			int offset = (char *)s->here - bs->bh->b_data;
bs               1899 fs/ext4/xattr.c 			unlock_buffer(bs->bh);
bs               1900 fs/ext4/xattr.c 			ea_bdebug(bs->bh, "cloning");
bs               1901 fs/ext4/xattr.c 			s->base = kmalloc(bs->bh->b_size, GFP_NOFS);
bs               1905 fs/ext4/xattr.c 			memcpy(s->base, BHDR(bs->bh), bs->bh->b_size);
bs               1909 fs/ext4/xattr.c 			s->end = s->base + bs->bh->b_size;
bs               1985 fs/ext4/xattr.c 			if (new_bh == bs->bh)
bs               2049 fs/ext4/xattr.c 		} else if (bs->bh && s->base == bs->bh->b_data) {
bs               2051 fs/ext4/xattr.c 			ea_bdebug(bs->bh, "keeping this block");
bs               2052 fs/ext4/xattr.c 			ext4_xattr_block_cache_insert(ea_block_cache, bs->bh);
bs               2053 fs/ext4/xattr.c 			new_bh = bs->bh;
bs               2129 fs/ext4/xattr.c 	if (bs->bh && bs->bh != new_bh) {
bs               2132 fs/ext4/xattr.c 		ext4_xattr_release_block(handle, inode, bs->bh,
bs               2157 fs/ext4/xattr.c 	if (!(bs->bh && s->base == bs->bh->b_data))
bs               2309 fs/ext4/xattr.c 	struct ext4_xattr_block_find bs = {
bs               2358 fs/ext4/xattr.c 		error = ext4_xattr_block_find(inode, &i, &bs);
bs               2361 fs/ext4/xattr.c 	if (is.s.not_found && bs.s.not_found) {
bs               2377 fs/ext4/xattr.c 		else if (!bs.s.not_found)
bs               2378 fs/ext4/xattr.c 			error = ext4_xattr_block_set(handle, inode, &i, &bs);
bs               2384 fs/ext4/xattr.c 		if (!bs.s.not_found && ext4_xattr_value_same(&bs.s, &i))
bs               2393 fs/ext4/xattr.c 		if (!error && !bs.s.not_found) {
bs               2395 fs/ext4/xattr.c 			error = ext4_xattr_block_set(handle, inode, &i, &bs);
bs               2397 fs/ext4/xattr.c 			if (EXT4_I(inode)->i_file_acl && !bs.s.base) {
bs               2398 fs/ext4/xattr.c 				brelse(bs.bh);
bs               2399 fs/ext4/xattr.c 				bs.bh = NULL;
bs               2400 fs/ext4/xattr.c 				error = ext4_xattr_block_find(inode, &i, &bs);
bs               2404 fs/ext4/xattr.c 			error = ext4_xattr_block_set(handle, inode, &i, &bs);
bs               2439 fs/ext4/xattr.c 	brelse(bs.bh);
bs               2551 fs/ext4/xattr.c 	struct ext4_xattr_block_find *bs = NULL;
bs               2564 fs/ext4/xattr.c 	bs = kzalloc(sizeof(struct ext4_xattr_block_find), GFP_NOFS);
bs               2567 fs/ext4/xattr.c 	if (!is || !bs || !buffer || !b_entry_name) {
bs               2573 fs/ext4/xattr.c 	bs->s.not_found = -ENODATA;
bs               2575 fs/ext4/xattr.c 	bs->bh = NULL;
bs               2606 fs/ext4/xattr.c 	error = ext4_xattr_block_find(inode, &i, bs);
bs               2611 fs/ext4/xattr.c 	error = ext4_xattr_block_set(handle, inode, &i, bs);
bs               2620 fs/ext4/xattr.c 	if (bs)
bs               2621 fs/ext4/xattr.c 		brelse(bs->bh);
bs               2623 fs/ext4/xattr.c 	kfree(bs);
bs                119 fs/hpfs/alloc.c 	unsigned bs = near & ~0x3fff;
bs                129 fs/hpfs/alloc.c 	if (bs != ~0x3fff) {
bs                135 fs/hpfs/alloc.c 		ret = bs + nr;
bs                150 fs/hpfs/alloc.c 		ret = bs + q;
bs                173 fs/hpfs/alloc.c 			ret = bs + q;
bs                181 fs/hpfs/alloc.c 		if (hpfs_sb(s)->sb_chk && ((ret >> 14) != (bs >> 14) || (le32_to_cpu(bmp[(ret & 0x3fff) >> 5]) | ~(((1 << n) - 1) << (ret & 0x1f))) != 0xffffffff)) {
bs                202 fs/nfs/nfs4file.c 	unsigned int bs = server->clone_blksize;
bs                218 fs/nfs/nfs4file.c 	if (bs) {
bs                219 fs/nfs/nfs4file.c 		if (!IS_ALIGNED(src_off, bs) || !IS_ALIGNED(dst_off, bs))
bs                221 fs/nfs/nfs4file.c 		if (!IS_ALIGNED(count, bs) && i_size_read(src_inode) != (src_off + count))
bs               1064 fs/nfsd/nfs3xdr.c 	u64		bs = s->f_bsize;
bs               1069 fs/nfsd/nfs3xdr.c 		p = xdr_encode_hyper(p, bs * s->f_blocks);	/* total bytes */
bs               1070 fs/nfsd/nfs3xdr.c 		p = xdr_encode_hyper(p, bs * s->f_bfree);	/* free bytes */
bs               1071 fs/nfsd/nfs3xdr.c 		p = xdr_encode_hyper(p, bs * s->f_bavail);	/* user available bytes */
bs               1311 fs/udf/inode.c 	int bs = inode->i_sb->s_blocksize;
bs               1411 fs/udf/inode.c 		ret = udf_alloc_i_data(inode, bs -
bs               1417 fs/udf/inode.c 		       bs - sizeof(struct extendedFileEntry));
bs               1421 fs/udf/inode.c 		ret = udf_alloc_i_data(inode, bs - sizeof(struct fileEntry));
bs               1426 fs/udf/inode.c 		       bs - sizeof(struct fileEntry));
bs               1433 fs/udf/inode.c 		ret = udf_alloc_i_data(inode, bs -
bs               1439 fs/udf/inode.c 		       bs - sizeof(struct unallocSpaceEntry));
bs               1529 fs/udf/inode.c 	if (iinfo->i_lenEAttr > bs || iinfo->i_lenAlloc > bs)
bs               1532 fs/udf/inode.c 	if (udf_file_entry_alloc_offset(inode) + iinfo->i_lenAlloc > bs)
bs               1543 fs/udf/inode.c 		if (inode->i_size > bs - udf_file_entry_alloc_offset(inode))
bs                423 fs/xfs/libxfs/xfs_fs.h bstat_get_projid(const struct xfs_bstat *bs)
bs                425 fs/xfs/libxfs/xfs_fs.h 	return (uint32_t)bs->bs_projid_hi << 16 | bs->bs_projid_lo;
bs                188 fs/xfs/libxfs/xfs_health.h void xfs_bulkstat_health(struct xfs_inode *ip, struct xfs_bulkstat *bs);
bs                 93 fs/xfs/scrub/alloc.c 	struct xchk_btree	*bs,
bs                 96 fs/xfs/scrub/alloc.c 	struct xfs_mount	*mp = bs->cur->bc_mp;
bs                 97 fs/xfs/scrub/alloc.c 	xfs_agnumber_t		agno = bs->cur->bc_private.a.agno;
bs                107 fs/xfs/scrub/alloc.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                109 fs/xfs/scrub/alloc.c 	xchk_allocbt_xref(bs->sc, bno, len);
bs                370 fs/xfs/scrub/bmap.c 	struct xchk_btree	*bs,
bs                376 fs/xfs/scrub/bmap.c 	struct xchk_bmap_info	*info = bs->private;
bs                377 fs/xfs/scrub/bmap.c 	struct xfs_inode	*ip = bs->cur->bc_private.b.ip;
bs                388 fs/xfs/scrub/bmap.c 	if (xfs_sb_version_hascrc(&bs->cur->bc_mp->m_sb) &&
bs                389 fs/xfs/scrub/bmap.c 	    bs->cur->bc_ptrs[0] == 1) {
bs                390 fs/xfs/scrub/bmap.c 		for (i = 0; i < bs->cur->bc_nlevels - 1; i++) {
bs                391 fs/xfs/scrub/bmap.c 			block = xfs_btree_get_block(bs->cur, i, &bp);
bs                394 fs/xfs/scrub/bmap.c 				xchk_fblock_set_corrupt(bs->sc,
bs                416 fs/xfs/scrub/bmap.c 		xchk_fblock_set_corrupt(bs->sc, info->whichfork,
bs                126 fs/xfs/scrub/btree.c 	struct xchk_btree	*bs)
bs                128 fs/xfs/scrub/btree.c 	struct xfs_btree_cur	*cur = bs->cur;
bs                140 fs/xfs/scrub/btree.c 	trace_xchk_btree_rec(bs->sc, cur, 0);
bs                143 fs/xfs/scrub/btree.c 	if (!bs->firstrec && !cur->bc_ops->recs_inorder(cur, &bs->lastrec, rec))
bs                144 fs/xfs/scrub/btree.c 		xchk_btree_set_corrupt(bs->sc, cur, 0);
bs                145 fs/xfs/scrub/btree.c 	bs->firstrec = false;
bs                146 fs/xfs/scrub/btree.c 	memcpy(&bs->lastrec, rec, cur->bc_ops->rec_len);
bs                156 fs/xfs/scrub/btree.c 		xchk_btree_set_corrupt(bs->sc, cur, 1);
bs                165 fs/xfs/scrub/btree.c 		xchk_btree_set_corrupt(bs->sc, cur, 1);
bs                174 fs/xfs/scrub/btree.c 	struct xchk_btree	*bs,
bs                177 fs/xfs/scrub/btree.c 	struct xfs_btree_cur	*cur = bs->cur;
bs                187 fs/xfs/scrub/btree.c 	trace_xchk_btree_key(bs->sc, cur, level);
bs                190 fs/xfs/scrub/btree.c 	if (!bs->firstkey[level] &&
bs                191 fs/xfs/scrub/btree.c 	    !cur->bc_ops->keys_inorder(cur, &bs->lastkey[level], key))
bs                192 fs/xfs/scrub/btree.c 		xchk_btree_set_corrupt(bs->sc, cur, level);
bs                193 fs/xfs/scrub/btree.c 	bs->firstkey[level] = false;
bs                194 fs/xfs/scrub/btree.c 	memcpy(&bs->lastkey[level], key, cur->bc_ops->key_len);
bs                203 fs/xfs/scrub/btree.c 		xchk_btree_set_corrupt(bs->sc, cur, level);
bs                212 fs/xfs/scrub/btree.c 		xchk_btree_set_corrupt(bs->sc, cur, level);
bs                221 fs/xfs/scrub/btree.c 	struct xchk_btree	*bs,
bs                228 fs/xfs/scrub/btree.c 	if ((bs->cur->bc_flags & XFS_BTREE_ROOT_IN_INODE) &&
bs                229 fs/xfs/scrub/btree.c 	    level == bs->cur->bc_nlevels)
bs                233 fs/xfs/scrub/btree.c 	if (bs->cur->bc_flags & XFS_BTREE_LONG_PTRS)
bs                234 fs/xfs/scrub/btree.c 		res = xfs_btree_check_lptr(bs->cur, be64_to_cpu(ptr->l), level);
bs                236 fs/xfs/scrub/btree.c 		res = xfs_btree_check_sptr(bs->cur, be32_to_cpu(ptr->s), level);
bs                238 fs/xfs/scrub/btree.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, level);
bs                246 fs/xfs/scrub/btree.c 	struct xchk_btree	*bs,
bs                251 fs/xfs/scrub/btree.c 	struct xfs_btree_cur	*cur = bs->cur;
bs                260 fs/xfs/scrub/btree.c 	if (!xchk_btree_process_error(bs->sc, cur, level + 1, &error) ||
bs                274 fs/xfs/scrub/btree.c 			xchk_btree_set_corrupt(bs->sc, cur, level);
bs                284 fs/xfs/scrub/btree.c 	if (!xchk_btree_process_error(bs->sc, cur, level + 1, &error))
bs                287 fs/xfs/scrub/btree.c 		xchk_btree_set_corrupt(bs->sc, cur, level + 1);
bs                294 fs/xfs/scrub/btree.c 	if (!xchk_btree_ptr_ok(bs, level + 1, pp))
bs                297 fs/xfs/scrub/btree.c 		xchk_buffer_recheck(bs->sc, pbp);
bs                300 fs/xfs/scrub/btree.c 		xchk_btree_set_corrupt(bs->sc, cur, level);
bs                309 fs/xfs/scrub/btree.c 	struct xchk_btree	*bs,
bs                312 fs/xfs/scrub/btree.c 	struct xfs_btree_cur	*cur = bs->cur;
bs                326 fs/xfs/scrub/btree.c 			xchk_btree_set_corrupt(bs->sc, cur, level);
bs                335 fs/xfs/scrub/btree.c 	error = xchk_btree_block_check_sibling(bs, level, -1, &leftsib);
bs                338 fs/xfs/scrub/btree.c 	error = xchk_btree_block_check_sibling(bs, level, 1, &rightsib);
bs                357 fs/xfs/scrub/btree.c 	struct xchk_btree	*bs,
bs                367 fs/xfs/scrub/btree.c 	if (!bs->cur)
bs                370 fs/xfs/scrub/btree.c 	btnum = bs->cur->bc_btnum;
bs                371 fs/xfs/scrub/btree.c 	agno = xfs_daddr_to_agno(bs->cur->bc_mp, daddr);
bs                372 fs/xfs/scrub/btree.c 	agbno = xfs_daddr_to_agbno(bs->cur->bc_mp, daddr);
bs                374 fs/xfs/scrub/btree.c 	init_sa = bs->cur->bc_flags & XFS_BTREE_LONG_PTRS;
bs                376 fs/xfs/scrub/btree.c 		error = xchk_ag_init(bs->sc, agno, &bs->sc->sa);
bs                377 fs/xfs/scrub/btree.c 		if (!xchk_btree_xref_process_error(bs->sc, bs->cur,
bs                382 fs/xfs/scrub/btree.c 	xchk_xref_is_used_space(bs->sc, agbno, 1);
bs                388 fs/xfs/scrub/btree.c 	if (!bs->sc->sa.bno_cur && btnum == XFS_BTNUM_BNO)
bs                389 fs/xfs/scrub/btree.c 		bs->cur = NULL;
bs                391 fs/xfs/scrub/btree.c 	xchk_xref_is_owned_by(bs->sc, agbno, 1, bs->oinfo);
bs                392 fs/xfs/scrub/btree.c 	if (!bs->sc->sa.rmap_cur && btnum == XFS_BTNUM_RMAP)
bs                393 fs/xfs/scrub/btree.c 		bs->cur = NULL;
bs                396 fs/xfs/scrub/btree.c 		xchk_ag_free(bs->sc, &bs->sc->sa);
bs                404 fs/xfs/scrub/btree.c 	struct xchk_btree	*bs,
bs                408 fs/xfs/scrub/btree.c 	struct xfs_btree_cur	*cur = bs->cur;
bs                419 fs/xfs/scrub/btree.c 			xchk_btree_set_corrupt(bs->sc, bs->cur, level);
bs                438 fs/xfs/scrub/btree.c 		list_add_tail(&co->list, &bs->to_check);
bs                442 fs/xfs/scrub/btree.c 	return xchk_btree_check_block_owner(bs, level, XFS_BUF_ADDR(bp));
bs                451 fs/xfs/scrub/btree.c 	struct xchk_btree	*bs,
bs                461 fs/xfs/scrub/btree.c 	if (numrecs >= bs->cur->bc_ops->get_minrecs(bs->cur, level))
bs                474 fs/xfs/scrub/btree.c 	ok_level = bs->cur->bc_nlevels - 1;
bs                475 fs/xfs/scrub/btree.c 	if (bs->cur->bc_flags & XFS_BTREE_ROOT_IN_INODE)
bs                480 fs/xfs/scrub/btree.c 	xchk_btree_set_corrupt(bs->sc, bs->cur, level);
bs                489 fs/xfs/scrub/btree.c 	struct xchk_btree	*bs,
bs                501 fs/xfs/scrub/btree.c 	error = xfs_btree_lookup_get_block(bs->cur, level, pp, pblock);
bs                502 fs/xfs/scrub/btree.c 	if (!xchk_btree_process_error(bs->sc, bs->cur, level, &error) ||
bs                506 fs/xfs/scrub/btree.c 	xfs_btree_get_block(bs->cur, level, pbp);
bs                507 fs/xfs/scrub/btree.c 	if (bs->cur->bc_flags & XFS_BTREE_LONG_PTRS)
bs                508 fs/xfs/scrub/btree.c 		failed_at = __xfs_btree_check_lblock(bs->cur, *pblock,
bs                511 fs/xfs/scrub/btree.c 		failed_at = __xfs_btree_check_sblock(bs->cur, *pblock,
bs                514 fs/xfs/scrub/btree.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, level);
bs                518 fs/xfs/scrub/btree.c 		xchk_buffer_recheck(bs->sc, *pbp);
bs                520 fs/xfs/scrub/btree.c 	xchk_btree_check_minrecs(bs, level, *pblock);
bs                526 fs/xfs/scrub/btree.c 	error = xchk_btree_check_owner(bs, level, *pbp);
bs                534 fs/xfs/scrub/btree.c 	return xchk_btree_block_check_siblings(bs, *pblock);
bs                543 fs/xfs/scrub/btree.c 	struct xchk_btree	*bs,
bs                548 fs/xfs/scrub/btree.c 	struct xfs_btree_cur	*cur = bs->cur;
bs                567 fs/xfs/scrub/btree.c 		xchk_btree_set_corrupt(bs->sc, cur, 1);
bs                578 fs/xfs/scrub/btree.c 		xchk_btree_set_corrupt(bs->sc, cur, 1);
bs                594 fs/xfs/scrub/btree.c 	struct xchk_btree		bs = {
bs                615 fs/xfs/scrub/btree.c 		bs.firstkey[i] = true;
bs                616 fs/xfs/scrub/btree.c 	INIT_LIST_HEAD(&bs.to_check);
bs                630 fs/xfs/scrub/btree.c 	if (!xchk_btree_ptr_ok(&bs, cur->bc_nlevels, &ptr))
bs                632 fs/xfs/scrub/btree.c 	error = xchk_btree_get_block(&bs, level, &ptr, &block, &bp);
bs                645 fs/xfs/scrub/btree.c 				xchk_btree_block_keys(&bs, level, block);
bs                653 fs/xfs/scrub/btree.c 			xchk_btree_rec(&bs);
bs                657 fs/xfs/scrub/btree.c 			error = bs.scrub_rec(&bs, recp);
bs                670 fs/xfs/scrub/btree.c 			xchk_btree_block_keys(&bs, level, block);
bs                678 fs/xfs/scrub/btree.c 		xchk_btree_key(&bs, level);
bs                682 fs/xfs/scrub/btree.c 		if (!xchk_btree_ptr_ok(&bs, level, pp)) {
bs                687 fs/xfs/scrub/btree.c 		error = xchk_btree_get_block(&bs, level, pp, &block, &bp);
bs                696 fs/xfs/scrub/btree.c 	list_for_each_entry_safe(co, n, &bs.to_check, list) {
bs                697 fs/xfs/scrub/btree.c 		if (!error && bs.cur)
bs                698 fs/xfs/scrub/btree.c 			error = xchk_btree_check_block_owner(&bs,
bs                 29 fs/xfs/scrub/btree.h 	struct xchk_btree	*bs,
bs                101 fs/xfs/scrub/ialloc.c 	struct xchk_btree		*bs,
bs                106 fs/xfs/scrub/ialloc.c 	struct xfs_mount		*mp = bs->cur->bc_mp;
bs                107 fs/xfs/scrub/ialloc.c 	xfs_agnumber_t			agno = bs->cur->bc_private.a.agno;
bs                114 fs/xfs/scrub/ialloc.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                116 fs/xfs/scrub/ialloc.c 	xchk_iallocbt_chunk_xref(bs->sc, irec, agino, bno, len);
bs                146 fs/xfs/scrub/ialloc.c 	struct xchk_btree		*bs,
bs                151 fs/xfs/scrub/ialloc.c 	struct xfs_mount		*mp = bs->cur->bc_mp;
bs                159 fs/xfs/scrub/ialloc.c 	if (xchk_should_terminate(bs->sc, &error))
bs                167 fs/xfs/scrub/ialloc.c 	fsino = XFS_AGINO_TO_INO(mp, bs->cur->bc_private.a.agno, agino);
bs                172 fs/xfs/scrub/ialloc.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                176 fs/xfs/scrub/ialloc.c 	error = xfs_icache_inode_is_allocated(mp, bs->cur->bc_tp, fsino,
bs                181 fs/xfs/scrub/ialloc.c 		if (!(bs->sc->flags & XCHK_TRY_HARDER) && !freemask_ok)
bs                195 fs/xfs/scrub/ialloc.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                209 fs/xfs/scrub/ialloc.c 	struct xchk_btree		*bs,
bs                214 fs/xfs/scrub/ialloc.c 	struct xfs_mount		*mp = bs->cur->bc_mp;
bs                218 fs/xfs/scrub/ialloc.c 	xfs_agnumber_t			agno = bs->cur->bc_private.a.agno;
bs                253 fs/xfs/scrub/ialloc.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                265 fs/xfs/scrub/ialloc.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                271 fs/xfs/scrub/ialloc.c 		xchk_xref_is_not_owned_by(bs->sc, agbno,
bs                277 fs/xfs/scrub/ialloc.c 	xchk_xref_is_owned_by(bs->sc, agbno, M_IGEO(mp)->blocks_per_cluster,
bs                281 fs/xfs/scrub/ialloc.c 	error = xfs_imap_to_bp(mp, bs->cur->bc_tp, &imap, &dip, &cluster_bp,
bs                283 fs/xfs/scrub/ialloc.c 	if (!xchk_btree_xref_process_error(bs->sc, bs->cur, 0, &error))
bs                291 fs/xfs/scrub/ialloc.c 			xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                296 fs/xfs/scrub/ialloc.c 		error = xchk_iallocbt_check_cluster_ifree(bs, irec,
bs                303 fs/xfs/scrub/ialloc.c 	xfs_trans_brelse(bs->cur->bc_tp, cluster_bp);
bs                314 fs/xfs/scrub/ialloc.c 	struct xchk_btree		*bs,
bs                329 fs/xfs/scrub/ialloc.c 	     cluster_base += M_IGEO(bs->sc->mp)->inodes_per_cluster) {
bs                330 fs/xfs/scrub/ialloc.c 		error = xchk_iallocbt_check_cluster(bs, irec, cluster_base);
bs                346 fs/xfs/scrub/ialloc.c 	struct xchk_btree		*bs,
bs                349 fs/xfs/scrub/ialloc.c 	struct xfs_mount		*mp = bs->sc->mp;
bs                350 fs/xfs/scrub/ialloc.c 	struct xchk_iallocbt		*iabt = bs->private;
bs                365 fs/xfs/scrub/ialloc.c 	if (bs->cur->bc_btnum == XFS_BTNUM_FINO) {
bs                371 fs/xfs/scrub/ialloc.c 			xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                382 fs/xfs/scrub/ialloc.c 			xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                398 fs/xfs/scrub/ialloc.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                403 fs/xfs/scrub/ialloc.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                422 fs/xfs/scrub/ialloc.c 	struct xchk_btree		*bs,
bs                425 fs/xfs/scrub/ialloc.c 	struct xfs_mount		*mp = bs->cur->bc_mp;
bs                426 fs/xfs/scrub/ialloc.c 	struct xchk_iallocbt		*iabt = bs->private;
bs                429 fs/xfs/scrub/ialloc.c 	xfs_agnumber_t			agno = bs->cur->bc_private.a.agno;
bs                442 fs/xfs/scrub/ialloc.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                447 fs/xfs/scrub/ialloc.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                453 fs/xfs/scrub/ialloc.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                457 fs/xfs/scrub/ialloc.c 	xchk_iallocbt_rec_alignment(bs, &irec);
bs                458 fs/xfs/scrub/ialloc.c 	if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)
bs                468 fs/xfs/scrub/ialloc.c 			xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                470 fs/xfs/scrub/ialloc.c 		if (!xchk_iallocbt_chunk(bs, &irec, agino, len))
bs                483 fs/xfs/scrub/ialloc.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                488 fs/xfs/scrub/ialloc.c 		else if (!xchk_iallocbt_chunk(bs, &irec, agino, len))
bs                496 fs/xfs/scrub/ialloc.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                499 fs/xfs/scrub/ialloc.c 	error = xchk_iallocbt_check_clusters(bs, &irec);
bs                334 fs/xfs/scrub/refcount.c 	struct xchk_btree	*bs,
bs                337 fs/xfs/scrub/refcount.c 	struct xfs_mount	*mp = bs->cur->bc_mp;
bs                338 fs/xfs/scrub/refcount.c 	xfs_agblock_t		*cow_blocks = bs->private;
bs                339 fs/xfs/scrub/refcount.c 	xfs_agnumber_t		agno = bs->cur->bc_private.a.agno;
bs                352 fs/xfs/scrub/refcount.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                361 fs/xfs/scrub/refcount.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                364 fs/xfs/scrub/refcount.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                366 fs/xfs/scrub/refcount.c 	xchk_refcountbt_xref(bs->sc, bno, len, refcount);
bs                 90 fs/xfs/scrub/rmap.c 	struct xchk_btree	*bs,
bs                 93 fs/xfs/scrub/rmap.c 	struct xfs_mount	*mp = bs->cur->bc_mp;
bs                 95 fs/xfs/scrub/rmap.c 	xfs_agnumber_t		agno = bs->cur->bc_private.a.agno;
bs                103 fs/xfs/scrub/rmap.c 	if (!xchk_btree_process_error(bs->sc, bs->cur, 0, &error))
bs                108 fs/xfs/scrub/rmap.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                118 fs/xfs/scrub/rmap.c 			xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                127 fs/xfs/scrub/rmap.c 			xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                137 fs/xfs/scrub/rmap.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                140 fs/xfs/scrub/rmap.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                143 fs/xfs/scrub/rmap.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                146 fs/xfs/scrub/rmap.c 		xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                150 fs/xfs/scrub/rmap.c 			xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                155 fs/xfs/scrub/rmap.c 			xchk_btree_set_corrupt(bs->sc, bs->cur, 0);
bs                158 fs/xfs/scrub/rmap.c 	xchk_rmapbt_xref(bs->sc, &irec);
bs                372 fs/xfs/xfs_health.c 	struct xfs_bulkstat		*bs)
bs                378 fs/xfs/xfs_health.c 	bs->bs_sick = 0;
bs                379 fs/xfs/xfs_health.c 	bs->bs_checked = 0;
bs                384 fs/xfs/xfs_health.c 			bs->bs_checked |= m->ioctl_mask;
bs                386 fs/xfs/xfs_health.c 			bs->bs_sick |= m->ioctl_mask;
bs                360 include/linux/bio.h 			     gfp_t gfp, struct bio_set *bs);
bs                373 include/linux/bio.h 					 gfp_t gfp, struct bio_set *bs)
bs                378 include/linux/bio.h 	return bio_split(bio, sectors, gfp, bs);
bs                388 include/linux/bio.h extern int bioset_init_from_src(struct bio_set *bs, struct bio_set *src);
bs                730 include/linux/bio.h static inline bool bioset_initialized(struct bio_set *bs)
bs                732 include/linux/bio.h 	return bs->bio_slab != NULL;
bs                767 include/linux/bio.h static inline int bioset_integrity_create(struct bio_set *bs, int pool_size)
bs                772 include/linux/bio.h static inline void bioset_integrity_free (struct bio_set *bs)
bs                858 include/linux/blkdev.h 			     struct bio_set *bs, gfp_t gfp_mask,
bs                110 kernel/trace/trace_probe.c 		unsigned long bs;
bs                117 kernel/trace/trace_probe.c 		if (kstrtoul(type, 0, &bs))
bs                120 kernel/trace/trace_probe.c 		switch (bs) {
bs                 63 lib/ts_bm.c    	int shift = bm->patlen - 1, bs;
bs                 85 lib/ts_bm.c    next:			bs = bm->bad_shift[text[shift-i]];
bs                 88 lib/ts_bm.c    			shift = max_t(int, shift-i+bs, shift+bm->good_shift[i]);
bs               2984 mm/filemap.c   	loff_t bs = inode_out->i_sb->s_blocksize;
bs               2988 mm/filemap.c   	if (!IS_ALIGNED(pos_in, bs) || !IS_ALIGNED(pos_out, bs))
bs               3021 mm/filemap.c   		bcount = ALIGN(size_in, bs) - pos_in;
bs               3023 mm/filemap.c   		if (!IS_ALIGNED(count, bs))
bs               3024 mm/filemap.c   			count = ALIGN_DOWN(count, bs);
bs                100 net/netfilter/nf_conntrack_h323_asn1.c #define INC_BIT(bs) if((++(bs)->bit)>7){(bs)->cur++;(bs)->bit=0;}
bs                101 net/netfilter/nf_conntrack_h323_asn1.c #define INC_BITS(bs,b) if(((bs)->bit+=(b))>7){(bs)->cur+=(bs)->bit>>3;(bs)->bit&=7;}
bs                102 net/netfilter/nf_conntrack_h323_asn1.c #define BYTE_ALIGN(bs) if((bs)->bit){(bs)->cur++;(bs)->bit=0;}
bs                103 net/netfilter/nf_conntrack_h323_asn1.c static unsigned int get_len(struct bitstr *bs);
bs                104 net/netfilter/nf_conntrack_h323_asn1.c static unsigned int get_bit(struct bitstr *bs);
bs                105 net/netfilter/nf_conntrack_h323_asn1.c static unsigned int get_bits(struct bitstr *bs, unsigned int b);
bs                106 net/netfilter/nf_conntrack_h323_asn1.c static unsigned int get_bitmap(struct bitstr *bs, unsigned int b);
bs                107 net/netfilter/nf_conntrack_h323_asn1.c static unsigned int get_uint(struct bitstr *bs, int b);
bs                110 net/netfilter/nf_conntrack_h323_asn1.c static int decode_nul(struct bitstr *bs, const struct field_t *f, char *base, int level);
bs                111 net/netfilter/nf_conntrack_h323_asn1.c static int decode_bool(struct bitstr *bs, const struct field_t *f, char *base, int level);
bs                112 net/netfilter/nf_conntrack_h323_asn1.c static int decode_oid(struct bitstr *bs, const struct field_t *f, char *base, int level);
bs                113 net/netfilter/nf_conntrack_h323_asn1.c static int decode_int(struct bitstr *bs, const struct field_t *f, char *base, int level);
bs                114 net/netfilter/nf_conntrack_h323_asn1.c static int decode_enum(struct bitstr *bs, const struct field_t *f, char *base, int level);
bs                115 net/netfilter/nf_conntrack_h323_asn1.c static int decode_bitstr(struct bitstr *bs, const struct field_t *f, char *base, int level);
bs                116 net/netfilter/nf_conntrack_h323_asn1.c static int decode_numstr(struct bitstr *bs, const struct field_t *f, char *base, int level);
bs                117 net/netfilter/nf_conntrack_h323_asn1.c static int decode_octstr(struct bitstr *bs, const struct field_t *f, char *base, int level);
bs                118 net/netfilter/nf_conntrack_h323_asn1.c static int decode_bmpstr(struct bitstr *bs, const struct field_t *f, char *base, int level);
bs                119 net/netfilter/nf_conntrack_h323_asn1.c static int decode_seq(struct bitstr *bs, const struct field_t *f, char *base, int level);
bs                120 net/netfilter/nf_conntrack_h323_asn1.c static int decode_seqof(struct bitstr *bs, const struct field_t *f, char *base, int level);
bs                121 net/netfilter/nf_conntrack_h323_asn1.c static int decode_choice(struct bitstr *bs, const struct field_t *f, char *base, int level);
bs                150 net/netfilter/nf_conntrack_h323_asn1.c static unsigned int get_len(struct bitstr *bs)
bs                154 net/netfilter/nf_conntrack_h323_asn1.c 	v = *bs->cur++;
bs                159 net/netfilter/nf_conntrack_h323_asn1.c 		v += *bs->cur++;
bs                165 net/netfilter/nf_conntrack_h323_asn1.c static int nf_h323_error_boundary(struct bitstr *bs, size_t bytes, size_t bits)
bs                167 net/netfilter/nf_conntrack_h323_asn1.c 	bits += bs->bit;
bs                172 net/netfilter/nf_conntrack_h323_asn1.c 	if (bs->cur + bytes > bs->end)
bs                178 net/netfilter/nf_conntrack_h323_asn1.c static unsigned int get_bit(struct bitstr *bs)
bs                180 net/netfilter/nf_conntrack_h323_asn1.c 	unsigned int b = (*bs->cur) & (0x80 >> bs->bit);
bs                182 net/netfilter/nf_conntrack_h323_asn1.c 	INC_BIT(bs);
bs                188 net/netfilter/nf_conntrack_h323_asn1.c static unsigned int get_bits(struct bitstr *bs, unsigned int b)
bs                192 net/netfilter/nf_conntrack_h323_asn1.c 	v = (*bs->cur) & (0xffU >> bs->bit);
bs                193 net/netfilter/nf_conntrack_h323_asn1.c 	l = b + bs->bit;
bs                197 net/netfilter/nf_conntrack_h323_asn1.c 		bs->bit = l;
bs                199 net/netfilter/nf_conntrack_h323_asn1.c 		bs->cur++;
bs                200 net/netfilter/nf_conntrack_h323_asn1.c 		bs->bit = 0;
bs                204 net/netfilter/nf_conntrack_h323_asn1.c 		v += *(++bs->cur);
bs                206 net/netfilter/nf_conntrack_h323_asn1.c 		bs->bit = l - 8;
bs                213 net/netfilter/nf_conntrack_h323_asn1.c static unsigned int get_bitmap(struct bitstr *bs, unsigned int b)
bs                220 net/netfilter/nf_conntrack_h323_asn1.c 	l = bs->bit + b;
bs                223 net/netfilter/nf_conntrack_h323_asn1.c 		v = (unsigned int)(*bs->cur) << (bs->bit + 24);
bs                224 net/netfilter/nf_conntrack_h323_asn1.c 		bs->bit = l;
bs                226 net/netfilter/nf_conntrack_h323_asn1.c 		v = (unsigned int)(*bs->cur++) << (bs->bit + 24);
bs                227 net/netfilter/nf_conntrack_h323_asn1.c 		bs->bit = 0;
bs                231 net/netfilter/nf_conntrack_h323_asn1.c 			v |= (unsigned int)(*bs->cur++) << shift;
bs                234 net/netfilter/nf_conntrack_h323_asn1.c 			v |= (unsigned int)(*bs->cur) << shift;
bs                235 net/netfilter/nf_conntrack_h323_asn1.c 			v <<= bs->bit;
bs                237 net/netfilter/nf_conntrack_h323_asn1.c 			v <<= bs->bit;
bs                238 net/netfilter/nf_conntrack_h323_asn1.c 			v |= (*bs->cur) >> (8 - bs->bit);
bs                241 net/netfilter/nf_conntrack_h323_asn1.c 		bs->bit = l & 0x7;
bs                252 net/netfilter/nf_conntrack_h323_asn1.c static unsigned int get_uint(struct bitstr *bs, int b)
bs                258 net/netfilter/nf_conntrack_h323_asn1.c 		v |= *bs->cur++;
bs                262 net/netfilter/nf_conntrack_h323_asn1.c 		v |= *bs->cur++;
bs                266 net/netfilter/nf_conntrack_h323_asn1.c 		v |= *bs->cur++;
bs                270 net/netfilter/nf_conntrack_h323_asn1.c 		v |= *bs->cur++;
bs                276 net/netfilter/nf_conntrack_h323_asn1.c static int decode_nul(struct bitstr *bs, const struct field_t *f,
bs                284 net/netfilter/nf_conntrack_h323_asn1.c static int decode_bool(struct bitstr *bs, const struct field_t *f,
bs                289 net/netfilter/nf_conntrack_h323_asn1.c 	INC_BIT(bs);
bs                290 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, 0))
bs                295 net/netfilter/nf_conntrack_h323_asn1.c static int decode_oid(struct bitstr *bs, const struct field_t *f,
bs                302 net/netfilter/nf_conntrack_h323_asn1.c 	BYTE_ALIGN(bs);
bs                303 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 1, 0))
bs                306 net/netfilter/nf_conntrack_h323_asn1.c 	len = *bs->cur++;
bs                307 net/netfilter/nf_conntrack_h323_asn1.c 	bs->cur += len;
bs                308 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, 0))
bs                314 net/netfilter/nf_conntrack_h323_asn1.c static int decode_int(struct bitstr *bs, const struct field_t *f,
bs                323 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                324 net/netfilter/nf_conntrack_h323_asn1.c 		bs->cur++;
bs                327 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                328 net/netfilter/nf_conntrack_h323_asn1.c 		bs->cur += 2;
bs                331 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 0, 2))
bs                333 net/netfilter/nf_conntrack_h323_asn1.c 		len = get_bits(bs, 2) + 1;
bs                334 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                336 net/netfilter/nf_conntrack_h323_asn1.c 			unsigned int v = get_uint(bs, len) + f->lb;
bs                340 net/netfilter/nf_conntrack_h323_asn1.c 		bs->cur += len;
bs                343 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                344 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 2, 0))
bs                346 net/netfilter/nf_conntrack_h323_asn1.c 		len = get_len(bs);
bs                347 net/netfilter/nf_conntrack_h323_asn1.c 		bs->cur += len;
bs                350 net/netfilter/nf_conntrack_h323_asn1.c 		INC_BITS(bs, f->sz);
bs                356 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, 0))
bs                361 net/netfilter/nf_conntrack_h323_asn1.c static int decode_enum(struct bitstr *bs, const struct field_t *f,
bs                366 net/netfilter/nf_conntrack_h323_asn1.c 	if ((f->attr & EXT) && get_bit(bs)) {
bs                367 net/netfilter/nf_conntrack_h323_asn1.c 		INC_BITS(bs, 7);
bs                369 net/netfilter/nf_conntrack_h323_asn1.c 		INC_BITS(bs, f->sz);
bs                372 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, 0))
bs                377 net/netfilter/nf_conntrack_h323_asn1.c static int decode_bitstr(struct bitstr *bs, const struct field_t *f,
bs                384 net/netfilter/nf_conntrack_h323_asn1.c 	BYTE_ALIGN(bs);
bs                390 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 2, 0))
bs                392 net/netfilter/nf_conntrack_h323_asn1.c 		len = (*bs->cur++) << 8;
bs                393 net/netfilter/nf_conntrack_h323_asn1.c 		len += (*bs->cur++) + f->lb;
bs                396 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 2, 0))
bs                398 net/netfilter/nf_conntrack_h323_asn1.c 		len = get_len(bs);
bs                405 net/netfilter/nf_conntrack_h323_asn1.c 	bs->cur += len >> 3;
bs                406 net/netfilter/nf_conntrack_h323_asn1.c 	bs->bit = len & 7;
bs                408 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, 0))
bs                413 net/netfilter/nf_conntrack_h323_asn1.c static int decode_numstr(struct bitstr *bs, const struct field_t *f,
bs                421 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, f->sz))
bs                423 net/netfilter/nf_conntrack_h323_asn1.c 	len = get_bits(bs, f->sz) + f->lb;
bs                425 net/netfilter/nf_conntrack_h323_asn1.c 	BYTE_ALIGN(bs);
bs                426 net/netfilter/nf_conntrack_h323_asn1.c 	INC_BITS(bs, (len << 2));
bs                428 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, 0))
bs                433 net/netfilter/nf_conntrack_h323_asn1.c static int decode_octstr(struct bitstr *bs, const struct field_t *f,
bs                443 net/netfilter/nf_conntrack_h323_asn1.c 			BYTE_ALIGN(bs);
bs                448 net/netfilter/nf_conntrack_h323_asn1.c 					     bs->cur[0], bs->cur[1],
bs                449 net/netfilter/nf_conntrack_h323_asn1.c 					     bs->cur[2], bs->cur[3],
bs                450 net/netfilter/nf_conntrack_h323_asn1.c 					     bs->cur[4] * 256 + bs->cur[5]));
bs                452 net/netfilter/nf_conntrack_h323_asn1.c 				    bs->cur - bs->buf;
bs                458 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                459 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 1, 0))
bs                461 net/netfilter/nf_conntrack_h323_asn1.c 		len = (*bs->cur++) + f->lb;
bs                464 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                465 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 2, 0))
bs                467 net/netfilter/nf_conntrack_h323_asn1.c 		len = get_len(bs) + f->lb;
bs                470 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 0, f->sz))
bs                472 net/netfilter/nf_conntrack_h323_asn1.c 		len = get_bits(bs, f->sz) + f->lb;
bs                473 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                477 net/netfilter/nf_conntrack_h323_asn1.c 	bs->cur += len;
bs                481 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, 0))
bs                486 net/netfilter/nf_conntrack_h323_asn1.c static int decode_bmpstr(struct bitstr *bs, const struct field_t *f,
bs                495 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                496 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 1, 0))
bs                498 net/netfilter/nf_conntrack_h323_asn1.c 		len = (*bs->cur++) + f->lb;
bs                501 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 0, f->sz))
bs                503 net/netfilter/nf_conntrack_h323_asn1.c 		len = get_bits(bs, f->sz) + f->lb;
bs                504 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                508 net/netfilter/nf_conntrack_h323_asn1.c 	bs->cur += len << 1;
bs                510 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, 0))
bs                515 net/netfilter/nf_conntrack_h323_asn1.c static int decode_seq(struct bitstr *bs, const struct field_t *f,
bs                529 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, 1))
bs                531 net/netfilter/nf_conntrack_h323_asn1.c 	ext = (f->attr & EXT) ? get_bit(bs) : 0;
bs                534 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, f->sz))
bs                536 net/netfilter/nf_conntrack_h323_asn1.c 	bmp = get_bitmap(bs, f->sz);
bs                555 net/netfilter/nf_conntrack_h323_asn1.c 			if (nf_h323_error_boundary(bs, 2, 0))
bs                557 net/netfilter/nf_conntrack_h323_asn1.c 			len = get_len(bs);
bs                558 net/netfilter/nf_conntrack_h323_asn1.c 			if (nf_h323_error_boundary(bs, len, 0))
bs                563 net/netfilter/nf_conntrack_h323_asn1.c 				bs->cur += len;
bs                566 net/netfilter/nf_conntrack_h323_asn1.c 			beg = bs->cur;
bs                569 net/netfilter/nf_conntrack_h323_asn1.c 			if ((err = (Decoders[son->type]) (bs, son, base,
bs                574 net/netfilter/nf_conntrack_h323_asn1.c 			bs->cur = beg + len;
bs                575 net/netfilter/nf_conntrack_h323_asn1.c 			bs->bit = 0;
bs                576 net/netfilter/nf_conntrack_h323_asn1.c 		} else if ((err = (Decoders[son->type]) (bs, son, base,
bs                587 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, 7))
bs                589 net/netfilter/nf_conntrack_h323_asn1.c 	bmp2_len = get_bits(bs, 7) + 1;
bs                590 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, bmp2_len))
bs                592 net/netfilter/nf_conntrack_h323_asn1.c 	bmp2 = get_bitmap(bs, bmp2_len);
bs                596 net/netfilter/nf_conntrack_h323_asn1.c 	BYTE_ALIGN(bs);
bs                602 net/netfilter/nf_conntrack_h323_asn1.c 			if (nf_h323_error_boundary(bs, 2, 0))
bs                604 net/netfilter/nf_conntrack_h323_asn1.c 			len = get_len(bs);
bs                605 net/netfilter/nf_conntrack_h323_asn1.c 			if (nf_h323_error_boundary(bs, len, 0))
bs                607 net/netfilter/nf_conntrack_h323_asn1.c 			bs->cur += len;
bs                620 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 2, 0))
bs                622 net/netfilter/nf_conntrack_h323_asn1.c 		len = get_len(bs);
bs                623 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, len, 0))
bs                628 net/netfilter/nf_conntrack_h323_asn1.c 			bs->cur += len;
bs                631 net/netfilter/nf_conntrack_h323_asn1.c 		beg = bs->cur;
bs                633 net/netfilter/nf_conntrack_h323_asn1.c 		if ((err = (Decoders[son->type]) (bs, son, base,
bs                638 net/netfilter/nf_conntrack_h323_asn1.c 		bs->cur = beg + len;
bs                639 net/netfilter/nf_conntrack_h323_asn1.c 		bs->bit = 0;
bs                644 net/netfilter/nf_conntrack_h323_asn1.c static int decode_seqof(struct bitstr *bs, const struct field_t *f,
bs                660 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                661 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 1, 0))
bs                663 net/netfilter/nf_conntrack_h323_asn1.c 		count = *bs->cur++;
bs                666 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                667 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 2, 0))
bs                669 net/netfilter/nf_conntrack_h323_asn1.c 		count = *bs->cur++;
bs                671 net/netfilter/nf_conntrack_h323_asn1.c 		count += *bs->cur++;
bs                674 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                675 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 2, 0))
bs                677 net/netfilter/nf_conntrack_h323_asn1.c 		count = get_len(bs);
bs                680 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 0, f->sz))
bs                682 net/netfilter/nf_conntrack_h323_asn1.c 		count = get_bits(bs, f->sz);
bs                700 net/netfilter/nf_conntrack_h323_asn1.c 			BYTE_ALIGN(bs);
bs                701 net/netfilter/nf_conntrack_h323_asn1.c 			if (nf_h323_error_boundary(bs, 2, 0))
bs                703 net/netfilter/nf_conntrack_h323_asn1.c 			len = get_len(bs);
bs                704 net/netfilter/nf_conntrack_h323_asn1.c 			if (nf_h323_error_boundary(bs, len, 0))
bs                709 net/netfilter/nf_conntrack_h323_asn1.c 				bs->cur += len;
bs                712 net/netfilter/nf_conntrack_h323_asn1.c 			beg = bs->cur;
bs                714 net/netfilter/nf_conntrack_h323_asn1.c 			if ((err = (Decoders[son->type]) (bs, son,
bs                722 net/netfilter/nf_conntrack_h323_asn1.c 			bs->cur = beg + len;
bs                723 net/netfilter/nf_conntrack_h323_asn1.c 			bs->bit = 0;
bs                725 net/netfilter/nf_conntrack_h323_asn1.c 			if ((err = (Decoders[son->type]) (bs, son,
bs                740 net/netfilter/nf_conntrack_h323_asn1.c static int decode_choice(struct bitstr *bs, const struct field_t *f,
bs                754 net/netfilter/nf_conntrack_h323_asn1.c 	if (nf_h323_error_boundary(bs, 0, 1))
bs                756 net/netfilter/nf_conntrack_h323_asn1.c 	if ((f->attr & EXT) && get_bit(bs)) {
bs                758 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 0, 7))
bs                760 net/netfilter/nf_conntrack_h323_asn1.c 		type = get_bits(bs, 7) + f->lb;
bs                763 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 0, f->sz))
bs                765 net/netfilter/nf_conntrack_h323_asn1.c 		type = get_bits(bs, f->sz);
bs                776 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                777 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, 2, 0))
bs                779 net/netfilter/nf_conntrack_h323_asn1.c 		len = get_len(bs);
bs                780 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, len, 0))
bs                782 net/netfilter/nf_conntrack_h323_asn1.c 		bs->cur += len;
bs                794 net/netfilter/nf_conntrack_h323_asn1.c 		BYTE_ALIGN(bs);
bs                795 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, len, 0))
bs                797 net/netfilter/nf_conntrack_h323_asn1.c 		len = get_len(bs);
bs                798 net/netfilter/nf_conntrack_h323_asn1.c 		if (nf_h323_error_boundary(bs, len, 0))
bs                803 net/netfilter/nf_conntrack_h323_asn1.c 			bs->cur += len;
bs                806 net/netfilter/nf_conntrack_h323_asn1.c 		beg = bs->cur;
bs                808 net/netfilter/nf_conntrack_h323_asn1.c 		if ((err = (Decoders[son->type]) (bs, son, base, level + 1)) <
bs                812 net/netfilter/nf_conntrack_h323_asn1.c 		bs->cur = beg + len;
bs                813 net/netfilter/nf_conntrack_h323_asn1.c 		bs->bit = 0;
bs                814 net/netfilter/nf_conntrack_h323_asn1.c 	} else if ((err = (Decoders[son->type]) (bs, son, base, level + 1)) <
bs                827 net/netfilter/nf_conntrack_h323_asn1.c 	struct bitstr bs;
bs                829 net/netfilter/nf_conntrack_h323_asn1.c 	bs.buf = bs.beg = bs.cur = buf;
bs                830 net/netfilter/nf_conntrack_h323_asn1.c 	bs.end = buf + sz;
bs                831 net/netfilter/nf_conntrack_h323_asn1.c 	bs.bit = 0;
bs                833 net/netfilter/nf_conntrack_h323_asn1.c 	return decode_choice(&bs, &ras_message, (char *) ras, 0);
bs                843 net/netfilter/nf_conntrack_h323_asn1.c 	struct bitstr bs;
bs                845 net/netfilter/nf_conntrack_h323_asn1.c 	bs.buf = buf;
bs                846 net/netfilter/nf_conntrack_h323_asn1.c 	bs.beg = bs.cur = beg;
bs                847 net/netfilter/nf_conntrack_h323_asn1.c 	bs.end = beg + sz;
bs                848 net/netfilter/nf_conntrack_h323_asn1.c 	bs.bit = 0;
bs                850 net/netfilter/nf_conntrack_h323_asn1.c 	return decode_seq(&bs, &h323_userinformation, (char *) uuie, 0);
bs                861 net/netfilter/nf_conntrack_h323_asn1.c 	struct bitstr bs;
bs                863 net/netfilter/nf_conntrack_h323_asn1.c 	bs.buf = bs.beg = bs.cur = buf;
bs                864 net/netfilter/nf_conntrack_h323_asn1.c 	bs.end = buf + sz;
bs                865 net/netfilter/nf_conntrack_h323_asn1.c 	bs.bit = 0;
bs                867 net/netfilter/nf_conntrack_h323_asn1.c 	return decode_choice(&bs, &multimediasystemcontrolmessage,
bs                 71 net/nfc/digital_dep.c 	u8 bs;
bs                 82 net/nfc/digital_dep.c 	u8 bs;
bs                508 net/nfc/digital_dep.c 	atr_req->bs = 0;
bs                129 tools/perf/builtin-annotate.c static void process_branch_stack(struct branch_stack *bs, struct addr_location *al,
bs                136 tools/perf/builtin-annotate.c 	if (!bs || !bs->nr)
bs                143 tools/perf/builtin-annotate.c 	for (i = bs->nr - 1; i >= 0; i--) {
bs                963 tools/perf/util/cs-etm.c 	struct branch_stack *bs = tidq->last_branch_rb;
bs                977 tools/perf/util/cs-etm.c 	be       = &bs->entries[tidq->last_branch_pos];
bs                988 tools/perf/util/cs-etm.c 	if (bs->nr < etmq->etm->synth_opts.last_branch_sz)
bs                989 tools/perf/util/cs-etm.c 		bs->nr += 1;
bs               2571 tools/perf/util/hist.c void hist__account_cycles(struct branch_stack *bs, struct addr_location *al,
bs               2577 tools/perf/util/hist.c 	if (bs && bs->nr && bs->entries[0].flags.cycles) {
bs               2594 tools/perf/util/hist.c 			for (i = bs->nr - 1; i >= 0; i--) {
bs                529 tools/perf/util/hist.h void hist__account_cycles(struct branch_stack *bs, struct addr_location *al,
bs               1165 tools/perf/util/intel-pt.c 	struct branch_stack *bs = ptq->last_branch_rb;
bs               1173 tools/perf/util/intel-pt.c 	be              = &bs->entries[ptq->last_branch_pos];
bs               1181 tools/perf/util/intel-pt.c 	if (bs->nr < ptq->pt->synth_opts.last_branch_sz)
bs               1182 tools/perf/util/intel-pt.c 		bs->nr += 1;
bs                137 tools/perf/util/jitdump.c 	ssize_t bs, bsz = 0;
bs                213 tools/perf/util/jitdump.c 	bs = header.total_size - sizeof(header);
bs                215 tools/perf/util/jitdump.c 	if (bs > bsz) {
bs                216 tools/perf/util/jitdump.c 		n = realloc(buf, bs);
bs                219 tools/perf/util/jitdump.c 		bsz = bs;
bs                222 tools/perf/util/jitdump.c 		ret = fread(buf, bs - bsz, 1, jd->in);
bs                245 tools/perf/util/jitdump.c 	size_t bs, size;
bs                280 tools/perf/util/jitdump.c 	bs = (size_t)size;
bs                281 tools/perf/util/jitdump.c 	if (bs < sizeof(*prefix))
bs                287 tools/perf/util/jitdump.c 	if (bs > jd->bufsize) {
bs                289 tools/perf/util/jitdump.c 		n = realloc(jd->buf, bs);
bs                293 tools/perf/util/jitdump.c 		jd->bufsize = bs;
bs                298 tools/perf/util/jitdump.c 	ret = fread(addr, bs - sizeof(*prefix), 1, jd->in);
bs               2083 tools/perf/util/machine.c 	const struct branch_stack *bs = sample->branch_stack;
bs               2084 tools/perf/util/machine.c 	struct branch_info *bi = calloc(bs->nr, sizeof(struct branch_info));
bs               2089 tools/perf/util/machine.c 	for (i = 0; i < bs->nr; i++) {
bs               2090 tools/perf/util/machine.c 		ip__resolve_ams(al->thread, &bi[i].to, bs->entries[i].to);
bs               2091 tools/perf/util/machine.c 		ip__resolve_ams(al->thread, &bi[i].from, bs->entries[i].from);
bs               2092 tools/perf/util/machine.c 		bi[i].flags = bs->entries[i].flags;
bs               2184 tools/perf/util/parse-events.c 	const char * const *bs = b;
bs               2186 tools/perf/util/parse-events.c 	return strcmp(*as, *bs);
bs               1350 tools/perf/util/pmu.c 	const struct sevent *bs = b;
bs               1353 tools/perf/util/pmu.c 	if (!!as->desc != !!bs->desc)
bs               1354 tools/perf/util/pmu.c 		return !!as->desc - !!bs->desc;
bs               1355 tools/perf/util/pmu.c 	if (as->topic && bs->topic) {
bs               1356 tools/perf/util/pmu.c 		int n = strcmp(as->topic, bs->topic);
bs               1361 tools/perf/util/pmu.c 	return strcmp(as->name, bs->name);