| /linux/net/netfilter/ |
| H A D | nf_conntrack_h323_asn1.c | 100 #define INC_BIT(bs) if((++(bs)->bit)>7){(bs)->cur++;(bs)->bit=0;} argument 101 #define INC_BITS(bs,b) if(((bs)->bit+=(b))>7){(bs)->cur+=(bs)->bit>>3;(bs)->bit&=7;} argument 102 #define BYTE_ALIGN(bs) if((bs)->bit){(bs)->cur++;(bs)->bit=0;} argument 103 static unsigned int get_len(struct bitstr *bs); 104 static unsigned int get_bit(struct bitstr *bs); 105 static unsigned int get_bits(struct bitstr *bs, unsigned int b); 106 static unsigned int get_bitmap(struct bitstr *bs, unsigned int b); 107 static unsigned int get_uint(struct bitstr *bs, int b); 110 static int decode_nul(struct bitstr *bs, const struct field_t *f, char *base, int level); 111 static int decode_bool(struct bitstr *bs, const struct field_t *f, char *base, int level); [all …]
|
| /linux/drivers/spi/ |
| H A D | spi-bcm63xx-hsspi.c | 122 #define bcm63xx_prepend_printk_on_checkfail(bs, fmt, ...) \ argument 124 if (bs->xfer_mode == HSSPI_XFER_MODE_AUTO) \ 125 dev_dbg(&bs->pdev->dev, fmt, ##__VA_ARGS__); \ 126 else if (bs->xfer_mode == HSSPI_XFER_MODE_PREPEND) \ 127 dev_err(&bs->pdev->dev, fmt, ##__VA_ARGS__); \ 152 struct bcm63xx_hsspi *bs = spi_controller_get_devdata(ctrl); in wait_mode_show() local 154 return sprintf(buf, "%d\n", bs->wait_mode); in wait_mode_show() 161 struct bcm63xx_hsspi *bs = spi_controller_get_devdata(ctrl); in wait_mode_store() local 172 mutex_lock(&bs->msg_mutex); in wait_mode_store() 173 bs->wait_mode = val; in wait_mode_store() [all …]
|
| H A D | spi-bcmbca-hsspi.c | 130 struct bcmbca_hsspi *bs = spi_controller_get_devdata(ctrl); in wait_mode_show() local 132 return sprintf(buf, "%d\n", bs->wait_mode); in wait_mode_show() 139 struct bcmbca_hsspi *bs = spi_controller_get_devdata(ctrl); in wait_mode_store() local 150 mutex_lock(&bs->msg_mutex); in wait_mode_store() 151 bs->wait_mode = val; in wait_mode_store() 154 __raw_writel(HSSPI_INT_CLEAR_ALL, bs->regs + HSSPI_INT_STATUS_REG); in wait_mode_store() 155 mutex_unlock(&bs->msg_mutex); in wait_mode_store() 171 static void bcmbca_hsspi_set_cs(struct bcmbca_hsspi *bs, unsigned int cs, in bcmbca_hsspi_set_cs() argument 180 mutex_lock(&bs->bus_mutex); in bcmbca_hsspi_set_cs() 182 reg = __raw_readl(bs->spim_ctrl); in bcmbca_hsspi_set_cs() [all …]
|
| /linux/fs/xfs/scrub/ |
| H A D | btree.c | 138 struct xchk_btree *bs) in xchk_btree_rec() argument 140 struct xfs_btree_cur *cur = bs->cur; in xchk_btree_rec() 152 trace_xchk_btree_rec(bs->sc, cur, 0); in xchk_btree_rec() 155 if (bs->lastrec_valid && in xchk_btree_rec() 156 !cur->bc_ops->recs_inorder(cur, &bs->lastrec, rec)) in xchk_btree_rec() 157 xchk_btree_set_corrupt(bs->sc, cur, 0); in xchk_btree_rec() 158 memcpy(&bs->lastrec, rec, cur->bc_ops->rec_len); in xchk_btree_rec() 159 bs->lastrec_valid = true; in xchk_btree_rec() 169 xchk_btree_set_corrupt(bs->sc, cur, 1); in xchk_btree_rec() 178 xchk_btree_set_corrupt(bs->sc, cur, 1); in xchk_btree_rec() [all …]
|
| H A D | ialloc.c | 254 struct xchk_btree *bs, in xchk_iallocbt_chunk() argument 259 struct xfs_scrub *sc = bs->sc; in xchk_iallocbt_chunk() 260 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_chunk() 261 struct xfs_perag *pag = to_perag(bs->cur->bc_group); in xchk_iallocbt_chunk() 269 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_chunk() 271 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_iallocbt_chunk() 301 struct xchk_btree *bs, in xchk_iallocbt_check_cluster_ifree() argument 313 if (xchk_should_terminate(bs->sc, &error)) in xchk_iallocbt_check_cluster_ifree() 321 fsino = xfs_agino_to_ino(to_perag(bs->cur->bc_group), agino); in xchk_iallocbt_check_cluster_ifree() 326 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster_ifree() [all …]
|
| H A D | rtrmap.c | 96 struct xchk_btree *bs, in xchk_rtrmapbt_check_overlapping() argument 102 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_rtrmapbt_check_overlapping() 115 if (!xchk_rtrmapbt_is_shareable(bs->sc, &cr->overlap_rec) || in xchk_rtrmapbt_check_overlapping() 116 !xchk_rtrmapbt_is_shareable(bs->sc, irec)) in xchk_rtrmapbt_check_overlapping() 117 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rtrmapbt_check_overlapping() 155 struct xchk_btree *bs, in xchk_rtrmapbt_check_mergeable() argument 159 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_rtrmapbt_check_mergeable() 163 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rtrmapbt_check_mergeable() 221 struct xchk_btree *bs, in xchk_rtrmapbt_rec() argument 224 struct xchk_rtrmap *cr = bs->private; in xchk_rtrmapbt_rec() [all …]
|
| H A D | rtrefcount.c | 396 struct xchk_btree *bs, in xchk_rtrefcountbt_check_mergeable() argument 400 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_rtrefcountbt_check_mergeable() 404 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rtrefcountbt_check_mergeable() 459 struct xchk_btree *bs, in xchk_rtrefcountbt_rec() argument 462 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_rtrefcountbt_rec() 463 struct xchk_rtrefcbt_records *rrc = bs->private; in xchk_rtrefcountbt_rec() 468 if (xfs_rtrefcount_check_irec(to_rtg(bs->cur->bc_group), &irec) != in xchk_rtrefcountbt_rec() 470 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rtrefcountbt_rec() 477 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rtrefcountbt_rec() 480 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rtrefcountbt_rec() [all …]
|
| H A D | refcount.c | 433 struct xchk_btree *bs, in xchk_refcountbt_check_mergeable() argument 437 if (bs->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_refcountbt_check_mergeable() 441 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_refcountbt_check_mergeable() 449 struct xchk_btree *bs, in xchk_refcountbt_rec() argument 453 struct xchk_refcbt_records *rrc = bs->private; in xchk_refcountbt_rec() 456 if (xfs_refcount_check_irec(to_perag(bs->cur->bc_group), &irec) != in xchk_refcountbt_rec() 458 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_refcountbt_rec() 468 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_refcountbt_rec() 471 xchk_refcountbt_check_mergeable(bs, rrc, &irec); in xchk_refcountbt_rec() 472 xchk_refcountbt_xref(bs->sc, &irec); in xchk_refcountbt_rec() [all …]
|
| /linux/drivers/block/drbd/ |
| H A D | drbd_vli.h | 226 static inline void bitstream_init(struct bitstream *bs, void *s, size_t len, unsigned int pad_bits) in bitstream_init() argument 228 bs->buf = s; in bitstream_init() 229 bs->buf_len = len; in bitstream_init() 230 bs->pad_bits = pad_bits; in bitstream_init() 231 bitstream_cursor_reset(&bs->cur, bs->buf); in bitstream_init() 234 static inline void bitstream_rewind(struct bitstream *bs) in bitstream_rewind() argument 236 bitstream_cursor_reset(&bs->cur, bs->buf); in bitstream_rewind() 237 memset(bs->buf, 0, bs->buf_len); in bitstream_rewind() 248 static inline int bitstream_put_bits(struct bitstream *bs, u64 val, const unsigned int bits) in bitstream_put_bits() argument 250 unsigned char *b = bs->cur.b; in bitstream_put_bits() [all …]
|
| /linux/fs/afs/ |
| H A D | vl_list.c | 164 struct dns_server_list_v1_server bs; in afs_extract_vlserver_list() local 201 while (end - b >= sizeof(bs)) { in afs_extract_vlserver_list() 202 bs.name_len = afs_extract_le16(&b); in afs_extract_vlserver_list() 203 bs.priority = afs_extract_le16(&b); in afs_extract_vlserver_list() 204 bs.weight = afs_extract_le16(&b); in afs_extract_vlserver_list() 205 bs.port = afs_extract_le16(&b); in afs_extract_vlserver_list() 206 bs.source = *b++; in afs_extract_vlserver_list() 207 bs.status = *b++; in afs_extract_vlserver_list() 208 bs.protocol = *b++; in afs_extract_vlserver_list() 209 bs.nr_addrs = *b++; in afs_extract_vlserver_list() [all …]
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | common-beacon.c | 44 struct ath9k_beacon_state *bs) in ath9k_cmn_beacon_config_sta() argument 57 memset(bs, 0, sizeof(*bs)); in ath9k_cmn_beacon_config_sta() 73 bs->bs_intval = TU_TO_USEC(conf->intval); in ath9k_cmn_beacon_config_sta() 74 bs->bs_dtimperiod = conf->dtim_period * bs->bs_intval; in ath9k_cmn_beacon_config_sta() 75 bs->bs_nexttbtt = conf->nexttbtt; in ath9k_cmn_beacon_config_sta() 76 bs->bs_nextdtim = conf->nexttbtt; in ath9k_cmn_beacon_config_sta() 78 bs->bs_nextdtim = ath9k_get_next_tbtt(ah, tsf, dtim_intval); in ath9k_cmn_beacon_config_sta() 86 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); in ath9k_cmn_beacon_config_sta() 87 if (bs->bs_bmissthreshold > 15) in ath9k_cmn_beacon_config_sta() 88 bs->bs_bmissthreshold = 15; in ath9k_cmn_beacon_config_sta() [all …]
|
| /linux/drivers/misc/sgi-gru/ |
| H A D | grukservices.c | 140 static void gru_load_kernel_context(struct gru_blade_state *bs, int blade_id) in gru_load_kernel_context() argument 147 up_read(&bs->bs_kgts_sema); in gru_load_kernel_context() 148 down_write(&bs->bs_kgts_sema); in gru_load_kernel_context() 150 if (!bs->bs_kgts) { in gru_load_kernel_context() 152 bs->bs_kgts = gru_alloc_gts(NULL, 0, 0, 0, 0, 0); in gru_load_kernel_context() 153 if (!IS_ERR(bs->bs_kgts)) in gru_load_kernel_context() 157 bs->bs_kgts->ts_user_blade_id = blade_id; in gru_load_kernel_context() 159 kgts = bs->bs_kgts; in gru_load_kernel_context() 165 GRU_NUM_KERNEL_CBR * ncpus + bs->bs_async_cbrs); in gru_load_kernel_context() 168 bs->bs_async_dsr_bytes); in gru_load_kernel_context() [all …]
|
| /linux/block/ |
| H A D | bio.c | 112 static inline unsigned int bs_bio_slab_size(struct bio_set *bs) in bs_bio_slab_size() argument 114 return bs->front_pad + sizeof(struct bio) + bs->back_pad; in bs_bio_slab_size() 117 static struct kmem_cache *bio_find_or_create_slab(struct bio_set *bs) in bio_find_or_create_slab() argument 119 unsigned int size = bs_bio_slab_size(bs); in bio_find_or_create_slab() 135 static void bio_put_slab(struct bio_set *bs) in bio_put_slab() argument 138 unsigned int slab_size = bs_bio_slab_size(bs); in bio_put_slab() 146 WARN_ON_ONCE(bslab->slab != bs->bio_slab); in bio_put_slab() 230 struct bio_set *bs = bio->bi_pool; in bio_free() local 233 WARN_ON_ONCE(!bs); in bio_free() 236 bvec_free(&bs->bvec_pool, bio->bi_io_vec, bio->bi_max_vecs); in bio_free() [all …]
|
| /linux/drivers/media/pci/tw5864/ |
| H A D | tw5864-h264.c | 24 struct bs { struct 31 static void bs_init(struct bs *s, void *buf, int size) in bs_init() argument 39 static int bs_len(struct bs *s) in bs_len() 44 static void bs_write(struct bs *s, int count, u32 bits) in bs_write() 64 static void bs_write1(struct bs *s, u32 bit) in bs_write1() 77 static void bs_write_ue(struct bs *s, u32 val) in bs_write_ue() 87 static void bs_write_se(struct bs *s, int val) in bs_write_se() 92 static void bs_rbsp_trailing(struct bs *s) in bs_rbsp_trailing() 103 struct bs bs, *s; in tw5864_h264_gen_sps_rbsp() local 105 s = &bs; in tw5864_h264_gen_sps_rbsp() [all …]
|
| /linux/sound/soc/meson/ |
| H A D | aiu-encoder-i2s.c | 83 unsigned int bs) in aiu_encoder_i2s_set_legacy_div() argument 85 switch (bs) { in aiu_encoder_i2s_set_legacy_div() 94 dev_err(component->dev, "Unsupported i2s divider: %u\n", bs); in aiu_encoder_i2s_set_legacy_div() 101 __ffs(bs))); in aiu_encoder_i2s_set_legacy_div() 113 unsigned int bs) in aiu_encoder_i2s_set_more_div() argument 123 if (bs % 2) { in aiu_encoder_i2s_set_more_div() 128 bs += bs / 2; in aiu_encoder_i2s_set_more_div() 139 bs - 1)); in aiu_encoder_i2s_set_more_div() 149 unsigned int fs, bs; in aiu_encoder_i2s_set_clocks() local 169 bs = fs / 64; in aiu_encoder_i2s_set_clocks() [all …]
|
| /linux/drivers/pcmcia/ |
| H A D | sa11xx_base.h | 69 #define MECR_SET(mecr, sock, shift, mask, bs) \ argument 72 (((bs)<<(shift))<<((sock)==0?MECR_SOCKET_0_SHIFT:MECR_SOCKET_1_SHIFT))) 78 #define MECR_BSIO_SET(mecr, sock, bs) \ argument 79 MECR_SET((mecr), (sock), MECR_BSIO_SHIFT, MECR_BS_MASK, (bs)) 84 #define MECR_BSA_SET(mecr, sock, bs) \ argument 85 MECR_SET((mecr), (sock), MECR_BSA_SHIFT, MECR_BS_MASK, (bs)) 90 #define MECR_BSM_SET(mecr, sock, bs) \ argument 91 MECR_SET((mecr), (sock), MECR_BSM_SHIFT, MECR_BS_MASK, (bs))
|
| /linux/drivers/crypto/ |
| H A D | omap-crypto.c | 16 static int omap_crypto_copy_sg_lists(int total, int bs, in omap_crypto_copy_sg_lists() argument 55 static int omap_crypto_copy_sgs(int total, int bs, struct scatterlist **sg, in omap_crypto_copy_sgs() argument 62 new_len = ALIGN(total, bs); in omap_crypto_copy_sgs() 88 static int omap_crypto_check_sg(struct scatterlist *sg, int total, int bs, in omap_crypto_check_sg() argument 94 if (!IS_ALIGNED(total, bs)) in omap_crypto_check_sg() 102 if (!IS_ALIGNED(sg->length, bs)) in omap_crypto_check_sg() 125 int omap_crypto_align_sg(struct scatterlist **sg, int total, int bs, in omap_crypto_align_sg() argument 136 ret = omap_crypto_check_sg(*sg, total, bs, flags); in omap_crypto_align_sg() 139 ret = omap_crypto_copy_sgs(total, bs, sg, new_sg, flags); in omap_crypto_align_sg() 144 ret = omap_crypto_copy_sg_lists(total, bs, sg, new_sg, flags); in omap_crypto_align_sg()
|
| /linux/arch/s390/crypto/ |
| H A D | phmac_s390.c | 109 #define SHA2_CV_SIZE(bs) ((bs) >> 1) argument 110 #define SHA2_IMBL_SIZE(bs) ((bs) >> 3) argument 112 #define SHA2_IMBL_OFFSET(bs) (SHA2_CV_SIZE(bs)) argument 113 #define SHA2_KEY_OFFSET(bs) (SHA2_CV_SIZE(bs) + SHA2_IMBL_SIZE(bs)) argument 406 unsigned int bs = crypto_ahash_blocksize(tfm); in phmac_kmac_update() local 419 offset = ctx->buflen[0] % bs; in phmac_kmac_update() 420 if (offset + hwh->walkbytes < bs) in phmac_kmac_update() 425 n = bs - offset; in phmac_kmac_update() 429 k = _cpacf_kmac(&ctx->gr0.reg, ctx->param, ctx->buf, bs); in phmac_kmac_update() 430 if (likely(k == bs)) in phmac_kmac_update() [all …]
|
| /linux/drivers/media/tuners/ |
| H A D | tda827x.c | 84 u8 bs; member 92 { .lomax = 62000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 1}, 93 { .lomax = 66000000, .spd = 3, .bs = 3, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 1}, 94 { .lomax = 76000000, .spd = 3, .bs = 1, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 0}, 95 { .lomax = 84000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 0}, 96 { .lomax = 93000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 1, .div1p5 = 0}, 97 { .lomax = 98000000, .spd = 3, .bs = 3, .bp = 0, .cp = 0, .gc3 = 1, .div1p5 = 0}, 98 { .lomax = 109000000, .spd = 3, .bs = 3, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 0}, 99 { .lomax = 123000000, .spd = 2, .bs = 2, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 1}, 100 { .lomax = 133000000, .spd = 2, .bs = 3, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 1}, [all …]
|
| /linux/arch/powerpc/include/asm/ |
| H A D | bitops.h | 48 #define PPC_BITMASK(bs, be) ((PPC_BIT(bs) - PPC_BIT(be)) | PPC_BIT(bs)) argument 56 #define PPC_BITMASK32(bs, be) ((PPC_BIT32(bs) - PPC_BIT32(be))|PPC_BIT32(bs)) argument 60 #define PPC_BITMASK8(bs, be) ((PPC_BIT8(bs) - PPC_BIT8(be))|PPC_BIT8(bs)) argument
|
| /linux/arch/powerpc/lib/ |
| H A D | rheap.c | 158 unsigned long s, e, bs, be; in attach_free_block() local 175 bs = blk->start; in attach_free_block() 176 be = bs + blk->size; in attach_free_block() 178 if (next == NULL && s >= bs) in attach_free_block() 184 if (e == bs) in attach_free_block() 374 unsigned long s, e, m, bs, be; in rh_detach_region() local 398 bs = blk->start; in rh_detach_region() 400 if (s >= bs && e <= be) in rh_detach_region() 409 if (bs == s && be == e) { in rh_detach_region() 417 if (bs == s || be == e) { in rh_detach_region() [all …]
|
| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-hash.c | 52 int bs = crypto_ahash_blocksize(ahash); in sun8i_ss_hmac_setkey() local 57 if (keylen > bs) { in sun8i_ss_hmac_setkey() 67 tfmctx->ipad = kzalloc(bs, GFP_KERNEL); in sun8i_ss_hmac_setkey() 70 tfmctx->opad = kzalloc(bs, GFP_KERNEL); in sun8i_ss_hmac_setkey() 76 memset(tfmctx->key + tfmctx->keylen, 0, bs - tfmctx->keylen); in sun8i_ss_hmac_setkey() 79 for (i = 0; i < bs; i++) { in sun8i_ss_hmac_setkey() 417 static u64 hash_pad(__le32 *buf, unsigned int bufsize, u64 padi, u64 byte_count, bool le, int bs) in hash_pad() argument 426 if (bs == 64) { in hash_pad() 435 fill += bs; in hash_pad() 452 if (bs == 64) { in hash_pad() [all …]
|
| /linux/drivers/staging/fbtft/ |
| H A D | fb_pcd8544.c | 30 static unsigned int bs = 4; variable 31 module_param(bs, uint, 0000); 32 MODULE_PARM_DESC(bs, "BS[2:0] Bias voltage level: 0-7 (default: 4)"); 63 write_reg(par, 0x10 | (bs & 0x7)); in init_display()
|
| H A D | fb_tls8204.c | 29 static unsigned int bs = 4; variable 30 module_param(bs, uint, 0000); 31 MODULE_PARM_DESC(bs, "BS[2:0] Bias voltage level: 0-7 (default: 4)"); 46 write_reg(par, 0x10 | (bs & 0x7)); in init_display()
|
| /linux/tools/testing/selftests/sysctl/ |
| H A D | sysctl.sh | 265 dd if="${TEST_FILE}" of="${TARGET}" bs=4096 2>/dev/null 275 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 skip=1 2>/dev/null 285 dd if="${TEST_FILE}" of="${TARGET}" bs=20 seek=2 2>/dev/null 296 dd of="${TARGET}" bs=50 2>/dev/null 551 dd if="${TEST_FILE}" of="${TARGET}" bs=1 2>/dev/null 561 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 2>/dev/null 572 dd of="${TARGET}" bs="${MAXLEN}" 2>/dev/null 583 dd of="${TARGET}" bs=$(( MAXLEN - 1 )) 2>/dev/null 594 dd of="${TARGET}" bs="${MAXLEN}" 2>/dev/null 605 dd of="${TARGET}" bs=$(( $MAXLEN + 1 )) 2>/dev/null
|