/kernel/linux/linux-5.10/net/netfilter/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-bcm2835.c | 158 static void bcm2835_debugfs_create(struct bcm2835_spi *bs, in bcm2835_debugfs_create() argument 169 bs->debugfs_dir = dir; in bcm2835_debugfs_create() 173 &bs->count_transfer_polling); in bcm2835_debugfs_create() 175 &bs->count_transfer_irq); in bcm2835_debugfs_create() 177 &bs->count_transfer_irq_after_polling); in bcm2835_debugfs_create() 179 &bs->count_transfer_dma); in bcm2835_debugfs_create() 182 static void bcm2835_debugfs_remove(struct bcm2835_spi *bs) in bcm2835_debugfs_remove() argument 184 debugfs_remove_recursive(bs->debugfs_dir); in bcm2835_debugfs_remove() 185 bs->debugfs_dir = NULL; in bcm2835_debugfs_remove() 188 static void bcm2835_debugfs_create(struct bcm2835_spi *bs, in bcm2835_debugfs_create() argument [all …]
|
D | spi-bcm2835aux.c | 108 static void bcm2835aux_debugfs_create(struct bcm2835aux_spi *bs, in bcm2835aux_debugfs_create() argument 119 bs->debugfs_dir = dir; in bcm2835aux_debugfs_create() 123 &bs->count_transfer_polling); in bcm2835aux_debugfs_create() 125 &bs->count_transfer_irq); in bcm2835aux_debugfs_create() 127 &bs->count_transfer_irq_after_poll); in bcm2835aux_debugfs_create() 130 static void bcm2835aux_debugfs_remove(struct bcm2835aux_spi *bs) in bcm2835aux_debugfs_remove() argument 132 debugfs_remove_recursive(bs->debugfs_dir); in bcm2835aux_debugfs_remove() 133 bs->debugfs_dir = NULL; in bcm2835aux_debugfs_remove() 136 static void bcm2835aux_debugfs_create(struct bcm2835aux_spi *bs, in bcm2835aux_debugfs_create() argument 141 static void bcm2835aux_debugfs_remove(struct bcm2835aux_spi *bs) in bcm2835aux_debugfs_remove() argument [all …]
|
D | spi-bcm63xx-hsspi.c | 113 static void bcm63xx_hsspi_set_cs(struct bcm63xx_hsspi *bs, unsigned int cs, in bcm63xx_hsspi_set_cs() argument 118 mutex_lock(&bs->bus_mutex); in bcm63xx_hsspi_set_cs() 119 reg = __raw_readl(bs->regs + HSSPI_GLOBAL_CTRL_REG); in bcm63xx_hsspi_set_cs() 122 if (active == !(bs->cs_polarity & BIT(cs))) in bcm63xx_hsspi_set_cs() 125 __raw_writel(reg, bs->regs + HSSPI_GLOBAL_CTRL_REG); in bcm63xx_hsspi_set_cs() 126 mutex_unlock(&bs->bus_mutex); in bcm63xx_hsspi_set_cs() 129 static void bcm63xx_hsspi_set_clk(struct bcm63xx_hsspi *bs, in bcm63xx_hsspi_set_clk() argument 135 reg = DIV_ROUND_UP(2048, DIV_ROUND_UP(bs->speed_hz, hz)); in bcm63xx_hsspi_set_clk() 137 bs->regs + HSSPI_PROFILE_CLK_CTRL_REG(profile)); in bcm63xx_hsspi_set_clk() 139 reg = __raw_readl(bs->regs + HSSPI_PROFILE_SIGNAL_CTRL_REG(profile)); in bcm63xx_hsspi_set_clk() [all …]
|
D | spi-bcm63xx.c | 154 static inline u8 bcm_spi_readb(struct bcm63xx_spi *bs, in bcm_spi_readb() argument 157 return readb(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readb() 160 static inline u16 bcm_spi_readw(struct bcm63xx_spi *bs, in bcm_spi_readw() argument 164 return ioread16be(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readw() 166 return readw(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readw() 170 static inline void bcm_spi_writeb(struct bcm63xx_spi *bs, in bcm_spi_writeb() argument 173 writeb(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writeb() 176 static inline void bcm_spi_writew(struct bcm63xx_spi *bs, in bcm_spi_writew() argument 180 iowrite16be(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writew() 182 writew(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writew() [all …]
|
/kernel/linux/linux-5.10/fs/xfs/scrub/ |
D | btree.c | 126 struct xchk_btree *bs) in xchk_btree_rec() argument 128 struct xfs_btree_cur *cur = bs->cur; in xchk_btree_rec() 140 trace_xchk_btree_rec(bs->sc, cur, 0); in xchk_btree_rec() 143 if (!bs->firstrec && !cur->bc_ops->recs_inorder(cur, &bs->lastrec, rec)) in xchk_btree_rec() 144 xchk_btree_set_corrupt(bs->sc, cur, 0); in xchk_btree_rec() 145 bs->firstrec = false; in xchk_btree_rec() 146 memcpy(&bs->lastrec, rec, cur->bc_ops->rec_len); in xchk_btree_rec() 156 xchk_btree_set_corrupt(bs->sc, cur, 1); in xchk_btree_rec() 165 xchk_btree_set_corrupt(bs->sc, cur, 1); in xchk_btree_rec() 174 struct xchk_btree *bs, in xchk_btree_key() argument [all …]
|
D | ialloc.c | 101 struct xchk_btree *bs, in xchk_iallocbt_chunk() argument 106 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_chunk() 107 xfs_agnumber_t agno = bs->cur->bc_ag.agno; in xchk_iallocbt_chunk() 114 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_chunk() 116 xchk_iallocbt_chunk_xref(bs->sc, irec, agino, bno, len); in xchk_iallocbt_chunk() 146 struct xchk_btree *bs, in xchk_iallocbt_check_cluster_ifree() argument 151 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_iallocbt_check_cluster_ifree() 159 if (xchk_should_terminate(bs->sc, &error)) in xchk_iallocbt_check_cluster_ifree() 167 fsino = XFS_AGINO_TO_INO(mp, bs->cur->bc_ag.agno, agino); in xchk_iallocbt_check_cluster_ifree() 172 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster_ifree() [all …]
|
D | rmap.c | 90 struct xchk_btree *bs, in xchk_rmapbt_rec() argument 93 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_rmapbt_rec() 95 xfs_agnumber_t agno = bs->cur->bc_ag.agno; in xchk_rmapbt_rec() 103 if (!xchk_btree_process_error(bs->sc, bs->cur, 0, &error)) in xchk_rmapbt_rec() 108 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() 118 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() 127 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() 137 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() 140 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() 143 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() [all …]
|
D | alloc.c | 93 struct xchk_btree *bs, in xchk_allocbt_rec() argument 96 struct xfs_mount *mp = bs->cur->bc_mp; in xchk_allocbt_rec() 97 xfs_agnumber_t agno = bs->cur->bc_ag.agno; in xchk_allocbt_rec() 107 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_allocbt_rec() 109 xchk_allocbt_xref(bs->sc, bno, len); in xchk_allocbt_rec()
|
/kernel/linux/linux-5.10/drivers/block/drbd/ |
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 …]
|
/kernel/linux/linux-5.10/fs/afs/ |
D | vl_list.c | 162 struct dns_server_list_v1_server bs; in afs_extract_vlserver_list() local 199 while (end - b >= sizeof(bs)) { in afs_extract_vlserver_list() 200 bs.name_len = afs_extract_le16(&b); in afs_extract_vlserver_list() 201 bs.priority = afs_extract_le16(&b); in afs_extract_vlserver_list() 202 bs.weight = afs_extract_le16(&b); in afs_extract_vlserver_list() 203 bs.port = afs_extract_le16(&b); in afs_extract_vlserver_list() 204 bs.source = *b++; in afs_extract_vlserver_list() 205 bs.status = *b++; in afs_extract_vlserver_list() 206 bs.protocol = *b++; in afs_extract_vlserver_list() 207 bs.nr_addrs = *b++; in afs_extract_vlserver_list() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
D | common-beacon.c | 43 struct ath9k_beacon_state *bs) in ath9k_cmn_beacon_config_sta() argument 56 memset(bs, 0, sizeof(*bs)); in ath9k_cmn_beacon_config_sta() 72 bs->bs_intval = TU_TO_USEC(conf->intval); in ath9k_cmn_beacon_config_sta() 73 bs->bs_dtimperiod = conf->dtim_period * bs->bs_intval; in ath9k_cmn_beacon_config_sta() 74 bs->bs_nexttbtt = conf->nexttbtt; in ath9k_cmn_beacon_config_sta() 75 bs->bs_nextdtim = conf->nexttbtt; in ath9k_cmn_beacon_config_sta() 77 bs->bs_nextdtim = ath9k_get_next_tbtt(ah, tsf, dtim_intval); in ath9k_cmn_beacon_config_sta() 85 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); in ath9k_cmn_beacon_config_sta() 86 if (bs->bs_bmissthreshold > 15) in ath9k_cmn_beacon_config_sta() 87 bs->bs_bmissthreshold = 15; in ath9k_cmn_beacon_config_sta() [all …]
|
/kernel/linux/linux-5.10/crypto/ |
D | xcbc.c | 58 int bs = sizeof(key1); in crypto_xcbc_digest_setkey() local 63 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs); in crypto_xcbc_digest_setkey() 64 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey() 67 return crypto_cipher_setkey(ctx->child, key1, bs); in crypto_xcbc_digest_setkey() 75 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_xcbc_digest_init() local 76 u8 *prev = PTR_ALIGN(&ctx->ctx[0], alignmask + 1) + bs; in crypto_xcbc_digest_init() 79 memset(prev, 0, bs); in crypto_xcbc_digest_init() 92 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_update() local 94 u8 *prev = odds + bs; in crypto_xcbc_digest_update() 97 if ((ctx->len + len) <= bs) { in crypto_xcbc_digest_update() [all …]
|
D | cmac.c | 54 unsigned int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_setkey() local 66 memset(consts, 0, bs); in crypto_cmac_digest_setkey() 69 switch (bs) { in crypto_cmac_digest_setkey() 108 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_cmac_digest_init() local 109 u8 *prev = PTR_ALIGN((void *)ctx->ctx, alignmask + 1) + bs; in crypto_cmac_digest_init() 112 memset(prev, 0, bs); in crypto_cmac_digest_init() 125 int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_update() local 127 u8 *prev = odds + bs; in crypto_cmac_digest_update() 130 if ((ctx->len + len) <= bs) { in crypto_cmac_digest_update() 137 memcpy(odds + ctx->len, p, bs - ctx->len); in crypto_cmac_digest_update() [all …]
|
/kernel/linux/linux-5.10/drivers/misc/sgi-gru/ |
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 …]
|
/kernel/linux/linux-5.10/drivers/media/pci/tw5864/ |
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 …]
|
/kernel/linux/linux-5.10/block/ |
D | bio.c | 120 static void bio_put_slab(struct bio_set *bs) in bio_put_slab() argument 128 if (bs->bio_slab == bio_slabs[i].slab) { in bio_put_slab() 252 struct bio_set *bs = bio->bi_pool; in bio_free() local 257 if (bs) { in bio_free() 258 bvec_free(&bs->bvec_pool, bio->bi_io_vec, BVEC_POOL_IDX(bio)); in bio_free() 264 p -= bs->front_pad; in bio_free() 266 mempool_free(p, &bs->bio_pool); in bio_free() 350 struct bio_set *bs = container_of(work, struct bio_set, rescue_work); in bio_alloc_rescue() local 354 spin_lock(&bs->rescue_lock); in bio_alloc_rescue() 355 bio = bio_list_pop(&bs->rescue_list); in bio_alloc_rescue() [all …]
|
D | bio-integrity.c | 27 static void __bio_integrity_free(struct bio_set *bs, in __bio_integrity_free() argument 30 if (bs && mempool_initialized(&bs->bio_integrity_pool)) { in __bio_integrity_free() 32 bvec_free(&bs->bvec_integrity_pool, bip->bip_vec, in __bio_integrity_free() 34 mempool_free(bip, &bs->bio_integrity_pool); in __bio_integrity_free() 55 struct bio_set *bs = bio->bi_pool; in bio_integrity_alloc() local 61 if (!bs || !mempool_initialized(&bs->bio_integrity_pool)) { in bio_integrity_alloc() 65 bip = mempool_alloc(&bs->bio_integrity_pool, gfp_mask); in bio_integrity_alloc() 78 &bs->bvec_integrity_pool); in bio_integrity_alloc() 94 __bio_integrity_free(bs, bip); in bio_integrity_alloc() 109 struct bio_set *bs = bio->bi_pool; in bio_integrity_free() local [all …]
|
/kernel/linux/linux-5.10/drivers/pcmcia/ |
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))
|
/kernel/linux/linux-5.10/sound/soc/meson/ |
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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
D | sch_tbf_etsprio.sh | 12 local bs=$1; shift 15 rate 400Mbit burst $bs limit 1M 17 rate 800Mbit burst $bs limit 1M 19 do_tbf_test 10 400 $bs 20 do_tbf_test 11 800 $bs
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
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
|
/kernel/linux/linux-5.10/drivers/crypto/ |
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()
|
/kernel/linux/linux-5.10/drivers/media/tuners/ |
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 …]
|
/kernel/linux/linux-5.10/arch/powerpc/lib/ |
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 …]
|