Home
last modified time | relevance | path

Searched refs:bs (Results 1 – 25 of 202) sorted by relevance

123456789

/linux/net/netfilter/
A Dnf_conntrack_h323_asn1.c100 #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/drivers/spi/
A Dspi-bcm2835aux.c191 byte = bs->tx_buf ? *bs->tx_buf++ : 0; in bcm2835aux_wr_fifo()
250 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1] | in bcm2835aux_spi_interrupt()
256 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1]); in bcm2835aux_spi_interrupt()
270 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1] | in __bcm2835aux_spi_transfer_one_irq()
288 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1]); in bcm2835aux_spi_transfer_one_irq()
289 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL0, bs->cntl[0]); in bcm2835aux_spi_transfer_one_irq()
314 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1]); in bcm2835aux_spi_transfer_one_poll()
315 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL0, bs->cntl[0]); in bcm2835aux_spi_transfer_one_poll()
331 bs->tx_len, bs->rx_len); in bcm2835aux_spi_transfer_one_poll()
422 bcm2835aux_wr(bs, BCM2835_AUX_SPI_CNTL1, bs->cntl[1]); in bcm2835aux_spi_prepare_message()
[all …]
A Dspi-bcm2835.c232 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()
495 if (bs->rx_prologue > bs->tx_prologue) { in bcm2835_spi_transfer_prologue()
497 bs->tx_prologue = bs->rx_prologue; in bcm2835_spi_transfer_prologue()
515 bcm2835_wr_fifo_count(bs, bs->rx_prologue); in bcm2835_spi_transfer_prologue()
517 bcm2835_rd_fifo_count(bs, bs->rx_prologue); in bcm2835_spi_transfer_prologue()
791 bcm2835_wr(bs, BCM2835_SPI_DLEN, bs->tx_len); in bcm2835_spi_transfer_one_dma()
829 if (!bs->rx_buf && !bs->tx_dma_active && in bcm2835_spi_transfer_one_dma()
1027 bs->tx_len, bs->rx_len); in bcm2835_spi_transfer_one_poll()
1355 return bs->irq ? bs->irq : -ENODEV; in bcm2835_spi_probe()
[all …]
A Dspi-bcm63xx-hsspi.c119 mutex_lock(&bs->bus_mutex); in bcm63xx_hsspi_set_cs()
305 reg |= bs->cs_polarity; in bcm63xx_hsspi_transfer_one()
325 complete(&bs->done); in bcm63xx_hsspi_interrupt()
333 struct bcm63xx_hsspi *bs; in bcm63xx_hsspi_probe() local
395 bs->pdev = pdev; in bcm63xx_hsspi_probe()
396 bs->clk = clk; in bcm63xx_hsspi_probe()
397 bs->pll_clk = pll_clk; in bcm63xx_hsspi_probe()
398 bs->regs = regs; in bcm63xx_hsspi_probe()
399 bs->speed_hz = rate; in bcm63xx_hsspi_probe()
400 bs->fifo = (u8 __iomem *)(bs->regs + HSSPI_FIFO_REG(0)); in bcm63xx_hsspi_probe()
[all …]
A Dspi-bcm63xx.c157 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()
560 bs->fifo_size = bs->reg_offsets[SPI_MSG_DATA_SIZE]; in bcm63xx_spi_probe()
578 bs->msg_type_shift = bs->reg_offsets[SPI_MSG_TYPE_SHIFT]; in bcm63xx_spi_probe()
579 bs->msg_ctl_width = bs->reg_offsets[SPI_MSG_CTL_WIDTH]; in bcm63xx_spi_probe()
580 bs->tx_io = (u8 *)(bs->regs + bs->reg_offsets[SPI_MSG_DATA]); in bcm63xx_spi_probe()
[all …]
/linux/fs/xfs/scrub/
A Dbtree.c239 xchk_btree_set_corrupt(bs->sc, bs->cur, level); in xchk_btree_ptr_ok()
368 if (!bs->cur) in xchk_btree_check_block_owner()
377 error = xchk_ag_init_existing(bs->sc, agno, &bs->sc->sa); 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()
421 xchk_btree_set_corrupt(bs->sc, bs->cur, level); in xchk_btree_check_owner()
550 xchk_btree_set_corrupt(bs->sc, bs->cur, level); in xchk_btree_get_block()
653 if (!bs) in xchk_btree()
659 bs->sc = sc; in xchk_btree()
[all …]
A Dialloc.c114 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_chunk()
172 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster_ifree()
195 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster_ifree()
252 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster()
264 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster()
289 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_check_cluster()
396 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec_alignment()
401 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec_alignment()
440 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec()
445 xchk_btree_set_corrupt(bs->sc, bs->cur, 0); in xchk_iallocbt_rec()
[all …]
A Drmap.c90 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/drivers/block/drbd/
A Ddrbd_vli.h228 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/fs/afs/
A Dvl_list.c204 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()
210 bs.name_len, bs.priority, bs.weight, in afs_extract_vlserver_list()
211 bs.port, bs.protocol, bs.nr_addrs, in afs_extract_vlserver_list()
212 bs.name_len, bs.name_len, b); in afs_extract_vlserver_list()
225 if (bs.port == 0) in afs_extract_vlserver_list()
247 server = afs_alloc_vlserver(b, bs.name_len, bs.port); in afs_extract_vlserver_list()
252 b += bs.name_len; in afs_extract_vlserver_list()
[all …]
/linux/drivers/net/wireless/ath/ath9k/
A Dcommon-beacon.c43 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/block/
A Dbio.c110 return bs->front_pad + sizeof(struct bio) + bs->back_pad; in bs_bio_slab_size()
231 if (bs) { in bio_free()
238 p -= bs->front_pad; in bio_free()
398 queue_work(bs->rescue_workqueue, &bs->rescue_work); in punt_bios_to_rescuer()
497 bio->bi_pool = bs; in bio_alloc_bioset()
646 if (bs->cache) { in bio_cpu_dead()
658 if (!bs->cache) in bio_alloc_cache_destroy()
1592 if (bs->bio_slab) in bioset_exit()
1634 bs->bio_slab = bio_find_or_create_slab(bs); in bioset_init()
1653 if (!bs->cache) in bioset_init()
[all …]
A Dbio-integrity.c25 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()
435 mempool_exit(&bs->bio_integrity_pool); in bioset_integrity_create()
445 mempool_exit(&bs->bio_integrity_pool); in bioset_integrity_free()
[all …]
/linux/crypto/
A Dxcbc.c59 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 Dcmac.c67 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/drivers/misc/sgi-gru/
A Dgrukservices.c150 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/drivers/media/pci/tw5864/
A Dtw5864-h264.c24 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/tools/testing/selftests/net/forwarding/
A Dsch_tbf_etsprio.sh15 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/sound/soc/meson/
A Daiu-encoder-i2s.c83 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/
A Dsa11xx_base.h69 #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/
A Domap-crypto.c16 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/powerpc/include/asm/
A Dbitops.h48 #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/drivers/media/tuners/
A Dtda827x.c84 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/arch/powerpc/lib/
A Drheap.c175 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 …]
/linux/fs/ext4/
A Dxattr.c1828 bs->s.base = BHDR(bs->bh); in ext4_xattr_block_find()
1829 bs->s.first = BFIRST(bs->bh); in ext4_xattr_block_find()
1830 bs->s.end = bs->bh->b_data + bs->bh->b_size; in ext4_xattr_block_find()
1831 bs->s.here = bs->s.first; in ext4_xattr_block_find()
1832 error = xattr_find_entry(inode, &bs->s.here, bs->s.end, in ext4_xattr_block_find()
1902 memcpy(s->base, BHDR(bs->bh), bs->bh->b_size); in ext4_xattr_block_set()
2046 } else if (bs->bh && s->base == bs->bh->b_data) { in ext4_xattr_block_set()
2127 if (bs->bh && bs->bh != new_bh) { in ext4_xattr_block_set()
2155 if (!(bs->bh && s->base == bs->bh->b_data)) in ext4_xattr_block_set()
2597 if (bs) in ext4_xattr_move_to_block()
[all …]

Completed in 62 milliseconds

123456789