/linux-6.3-rc2/net/netfilter/ |
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 172 if (bs->cur + bytes > bs->end) in nf_h323_error_boundary() 238 v |= (*bs->cur) >> (8 - bs->bit); in get_bitmap() 448 bs->cur[0], bs->cur[1], in decode_octstr() 449 bs->cur[2], bs->cur[3], in decode_octstr() 452 bs->cur - bs->buf; in decode_octstr() 829 bs.buf = bs.beg = bs.cur = buf; in DecodeRasMessage() 846 bs.beg = bs.cur = beg; in DecodeH323_UserInformation() [all …]
|
/linux-6.3-rc2/drivers/spi/ |
A D | spi-bcm2835aux.c | 190 byte = bs->tx_buf ? *bs->tx_buf++ : 0; in bcm2835aux_wr_fifo() 249 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1] | in bcm2835aux_spi_interrupt() 255 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1]); in bcm2835aux_spi_interrupt() 269 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1] | in __bcm2835aux_spi_transfer_one_irq() 287 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1]); in bcm2835aux_spi_transfer_one_irq() 288 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL0, bs->cntl[0]); in bcm2835aux_spi_transfer_one_irq() 313 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1]); in bcm2835aux_spi_transfer_one_poll() 314 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL0, bs->cntl[0]); in bcm2835aux_spi_transfer_one_poll() 330 bs->tx_len, bs->rx_len); in bcm2835aux_spi_transfer_one_poll() 421 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1]); in bcm2835aux_spi_prepare_message() [all …]
|
A D | spi-bcm2835.c | 232 byte = bs->tx_buf ? *bs->tx_buf++ : 0; in bcm2835_wr_fifo() 340 val = bs->tx_buf ? *bs->tx_buf++ : 0; in bcm2835_wr_fifo_blind() 499 if (bs->rx_prologue > bs->tx_prologue) { in bcm2835_spi_transfer_prologue() 501 bs->tx_prologue = bs->rx_prologue; in bcm2835_spi_transfer_prologue() 519 bcm2835_wr_fifo_count(bs, bs->rx_prologue); in bcm2835_spi_transfer_prologue() 521 bcm2835_rd_fifo_count(bs, bs->rx_prologue); in bcm2835_spi_transfer_prologue() 795 bcm2835_wr(bs, BCM2835_SPI_DLEN, bs->tx_len); in bcm2835_spi_transfer_one_dma() 833 if (!bs->rx_buf && !bs->tx_dma_active && in bcm2835_spi_transfer_one_dma() 1031 bs->tx_len, bs->rx_len); in bcm2835_spi_transfer_one_poll() 1363 return bs->irq ? bs->irq : -ENODEV; in bcm2835_spi_probe() [all …]
|
A D | spi-bcm63xx-hsspi.c | 173 bs->wait_mode = val; in wait_mode_store() 209 bs->xfer_mode = val; in xfer_mode_store() 282 bs->prepend_cnt = 0; in bcm63xx_prepare_prepend_transfer() 308 memcpy(bs->prepend_buf + bs->prepend_cnt, t->tx_buf, t->len); in bcm63xx_prepare_prepend_transfer() 398 memcpy_toio(bs->fifo + HSSPI_OPCODE_LEN, bs->prepend_buf, in bcm63xx_hsspi_do_prepend_txrx() 401 memcpy_toio(bs->fifo + HSSPI_OPCODE_LEN + bs->prepend_cnt, tx, in bcm63xx_hsspi_do_prepend_txrx() 789 bs->pdev = pdev; in bcm63xx_hsspi_probe() 790 bs->clk = clk; in bcm63xx_hsspi_probe() 792 bs->regs = regs; in bcm63xx_hsspi_probe() 794 bs->fifo = (u8 __iomem *)(bs->regs + HSSPI_FIFO_REG(0)); in bcm63xx_hsspi_probe() [all …]
|
A D | spi-bcmbca-hsspi.c | 151 bs->wait_mode = val; in wait_mode_store() 427 complete(&bs->done); in bcmbca_hsspi_interrupt() 435 struct bcmbca_hsspi *bs; in bcmbca_hsspi_probe() local 497 bs->pdev = pdev; in bcmbca_hsspi_probe() 498 bs->clk = clk; in bcmbca_hsspi_probe() 499 bs->pll_clk = pll_clk; in bcmbca_hsspi_probe() 500 bs->regs = regs; in bcmbca_hsspi_probe() 502 bs->speed_hz = rate; in bcmbca_hsspi_probe() 503 bs->fifo = (u8 __iomem *) (bs->regs + HSSPI_FIFO_REG(0)); in bcmbca_hsspi_probe() 544 pdev->name, bs); in bcmbca_hsspi_probe() [all …]
|
A D | spi-bcm63xx.c | 157 return readb(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readb() 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() 173 writeb(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writeb() 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() 559 bs->fifo_size = bs->reg_offsets[SPI_MSG_DATA_SIZE]; in bcm63xx_spi_probe() 577 bs->msg_type_shift = bs->reg_offsets[SPI_MSG_TYPE_SHIFT]; in bcm63xx_spi_probe() 578 bs->msg_ctl_width = bs->reg_offsets[SPI_MSG_CTL_WIDTH]; in bcm63xx_spi_probe() 579 bs->tx_io = (u8 *)(bs->regs + bs->reg_offsets[SPI_MSG_DATA]); in bcm63xx_spi_probe() [all …]
|
/linux-6.3-rc2/fs/xfs/scrub/ |
A D | btree.c | 239 xchk_btree_set_corrupt(bs->sc, bs->cur, level); in xchk_btree_ptr_ok() 368 if (!bs->cur) in xchk_btree_check_block_owner() 378 if (!xchk_btree_xref_process_error(bs->sc, bs->cur, in xchk_btree_check_block_owner() 392 xchk_xref_is_owned_by(bs->sc, agbno, 1, bs->oinfo); in xchk_btree_check_block_owner() 398 xchk_ag_free(bs->sc, &bs->sc->sa); in xchk_btree_check_block_owner() 420 xchk_btree_set_corrupt(bs->sc, bs->cur, level); in xchk_btree_check_owner() 552 xchk_btree_set_corrupt(bs->sc, bs->cur, level); in xchk_btree_get_block() 655 if (!bs) in xchk_btree() 661 bs->sc = sc; in xchk_btree() 700 error = bs->scrub_rec(bs, recp); in xchk_btree() [all …]
|
A D | ialloc.c | 113 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_chunk() 171 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster_ifree() 194 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster_ifree() 251 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster() 263 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster() 288 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster() 395 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec_alignment() 400 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec_alignment() 439 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec() 444 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec() [all …]
|
A D | rmap.c | 90 struct xchk_btree *bs, in xchk_rmapbt_rec() argument 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() 146 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() 150 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_rmapbt_rec() [all …]
|
/linux-6.3-rc2/drivers/block/drbd/ |
A D | drbd_vli.h | 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() 236 bitstream_cursor_reset(&bs->cur, bs->buf); in bitstream_rewind() 237 memset(bs->buf, 0, bs->buf_len); in bitstream_rewind() 256 if ((bs->cur.b + ((bs->cur.bit + bits -1) >> 3)) - bs->buf >= bs->buf_len) in bitstream_put_bits() 289 if (bs->cur.b + ((bs->cur.bit + bs->pad_bits + bits -1) >> 3) - bs->buf >= bs->buf_len) in bitstream_get_bits() 290 bits = ((bs->buf_len - (bs->cur.b - bs->buf)) << 3) in bitstream_get_bits() 291 - bs->cur.bit - bs->pad_bits; in bitstream_get_bits() [all …]
|
/linux-6.3-rc2/fs/afs/ |
A D | vl_list.c | 197 bs.source = *b++; in afs_extract_vlserver_list() 198 bs.status = *b++; in afs_extract_vlserver_list() 199 bs.protocol = *b++; in afs_extract_vlserver_list() 200 bs.nr_addrs = *b++; in afs_extract_vlserver_list() 203 bs.name_len, bs.priority, bs.weight, in afs_extract_vlserver_list() 204 bs.port, bs.protocol, bs.nr_addrs, in afs_extract_vlserver_list() 205 bs.name_len, bs.name_len, b); in afs_extract_vlserver_list() 218 if (bs.port == 0) in afs_extract_vlserver_list() 240 server = afs_alloc_vlserver(b, bs.name_len, bs.port); in afs_extract_vlserver_list() 245 b += bs.name_len; in afs_extract_vlserver_list() [all …]
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath9k/ |
A 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() 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() 86 if (bs->bs_bmissthreshold > 15) in ath9k_cmn_beacon_config_sta() 87 bs->bs_bmissthreshold = 15; in ath9k_cmn_beacon_config_sta() 89 bs->bs_bmissthreshold = 1; in ath9k_cmn_beacon_config_sta() 102 if (bs->bs_sleepduration > bs->bs_dtimperiod) in ath9k_cmn_beacon_config_sta() 103 bs->bs_sleepduration = bs->bs_dtimperiod; in ath9k_cmn_beacon_config_sta() [all …]
|
/linux-6.3-rc2/crypto/ |
A D | xcbc.c | 59 int bs = sizeof(key1); in crypto_xcbc_digest_setkey() local 65 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey() 80 memset(prev, 0, bs); in crypto_xcbc_digest_init() 95 u8 *prev = odds + bs; in crypto_xcbc_digest_update() 106 len -= bs - ctx->len; in crypto_xcbc_digest_update() 107 p += bs - ctx->len; in crypto_xcbc_digest_update() 116 while (len > bs) { in crypto_xcbc_digest_update() 119 p += bs; in crypto_xcbc_digest_update() 120 len -= bs; in crypto_xcbc_digest_update() 142 u8 *prev = odds + bs; in crypto_xcbc_digest_final() [all …]
|
A D | cmac.c | 67 memset(consts, 0, bs); in crypto_cmac_digest_setkey() 70 switch (bs) { in crypto_cmac_digest_setkey() 113 memset(prev, 0, bs); in crypto_cmac_digest_init() 128 u8 *prev = odds + bs; in crypto_cmac_digest_update() 139 len -= bs - ctx->len; in crypto_cmac_digest_update() 140 p += bs - ctx->len; in crypto_cmac_digest_update() 149 while (len > bs) { in crypto_cmac_digest_update() 152 p += bs; in crypto_cmac_digest_update() 153 len -= bs; in crypto_cmac_digest_update() 176 u8 *prev = odds + bs; in crypto_cmac_digest_final() [all …]
|
/linux-6.3-rc2/block/ |
A D | bio.c | 115 return bs->front_pad + sizeof(struct bio) + bs->back_pad; in bs_bio_slab_size() 234 WARN_ON_ONCE(!bs); in bio_free() 238 mempool_free(p - bs->front_pad, &bs->bio_pool); in bio_free() 413 queue_work(bs->rescue_workqueue, &bs->rescue_work); in punt_bios_to_rescuer() 454 bio->bi_pool = bs; in bio_alloc_percpu_cache() 734 if (bs->cache) { in bio_cpu_dead() 746 if (!bs->cache) in bio_alloc_cache_destroy() 757 bs->cache = NULL; in bio_alloc_cache_destroy() 1752 bs->bio_slab = bio_find_or_create_slab(bs); in bioset_init() 1771 if (!bs->cache) in bioset_init() [all …]
|
A D | bio-integrity.c | 25 static void __bio_integrity_free(struct bio_set *bs, in __bio_integrity_free() argument 28 if (bs && mempool_initialized(&bs->bio_integrity_pool)) { in __bio_integrity_free() 32 mempool_free(bip, &bs->bio_integrity_pool); in __bio_integrity_free() 53 struct bio_set *bs = bio->bi_pool; in bio_integrity_alloc() local 59 if (!bs || !mempool_initialized(&bs->bio_integrity_pool)) { in bio_integrity_alloc() 89 __bio_integrity_free(bs, bip); in bio_integrity_alloc() 104 struct bio_set *bs = bio->bi_pool; in bio_integrity_free() local 109 __bio_integrity_free(bs, bip); in bio_integrity_free() 431 mempool_exit(&bs->bio_integrity_pool); in bioset_integrity_create() 441 mempool_exit(&bs->bio_integrity_pool); in bioset_integrity_free() [all …]
|
/linux-6.3-rc2/drivers/misc/sgi-gru/ |
A D | grukservices.c | 150 if (!bs->bs_kgts) { in gru_load_kernel_context() 159 kgts = bs->bs_kgts; in gru_load_kernel_context() 194 bs = gru_base[bid]; in gru_free_kernel_contexts() 195 if (!bs) in gru_free_kernel_contexts() 200 kgts = bs->bs_kgts; in gru_free_kernel_contexts() 203 bs->bs_kgts = NULL; in gru_free_kernel_contexts() 224 bs = gru_base[bid]; in gru_lock_kernel_context() 232 if (!bs->bs_kgts || !bs->bs_kgts->ts_gru) in gru_lock_kernel_context() 234 return bs; in gru_lock_kernel_context() 302 if (bs->bs_async_dsr_bytes + bs->bs_async_cbrs) in gru_reserve_async_resources() [all …]
|
/linux-6.3-rc2/drivers/media/pci/tw5864/ |
A D | tw5864-h264.c | 24 struct bs { struct 39 static int bs_len(struct bs *s) in bs_len() 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() 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() 132 struct bs bs, *s; in tw5864_h264_gen_pps_rbsp() local 134 s = &bs; in tw5864_h264_gen_pps_rbsp() 160 struct bs bs, *s; in tw5864_h264_gen_slice_head() local [all …]
|
/linux-6.3-rc2/tools/testing/selftests/net/forwarding/ |
A D | sch_tbf_etsprio.sh | 15 local bs=$1; shift 18 rate 400Mbit burst $bs limit 1M 20 rate 800Mbit burst $bs limit 1M 22 do_tbf_test 10 400 $bs 23 do_tbf_test 11 800 $bs 39 local bs=128K 44 tbf rate 400Mbit burst $bs limit 1M 54 do_tbf_test 10 400 $bs 55 do_tbf_test 11 400 $bs
|
/linux-6.3-rc2/drivers/pcmcia/ |
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-6.3-rc2/sound/soc/meson/ |
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-6.3-rc2/drivers/crypto/ |
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-6.3-rc2/arch/powerpc/include/asm/ |
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-6.3-rc2/drivers/media/tuners/ |
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}, 182 (tda827x_table[i].bs << 3) + in tda827xo_set_params() [all …]
|
/linux-6.3-rc2/arch/powerpc/lib/ |
A D | rheap.c | 175 bs = blk->start; in attach_free_block() 176 be = bs + blk->size; in attach_free_block() 184 if (e == bs) in attach_free_block() 398 bs = blk->start; in rh_detach_region() 400 if (s >= bs && e <= be) in rh_detach_region() 418 if (bs == s) in rh_detach_region() 424 blk->size = s - bs; in rh_detach_region() 555 bs = blk->start; in rh_alloc_fixed() 557 if (s >= bs && e <= be) in rh_alloc_fixed() 580 if (bs == s) in rh_alloc_fixed() [all …]
|