/drivers/spi/ |
D | spi-bcm2835aux.c | 107 static inline u32 bcm2835aux_rd(struct bcm2835aux_spi *bs, unsigned reg) in bcm2835aux_rd() argument 109 return readl(bs->regs + reg); in bcm2835aux_rd() 112 static inline void bcm2835aux_wr(struct bcm2835aux_spi *bs, unsigned reg, in bcm2835aux_wr() argument 115 writel(val, bs->regs + reg); in bcm2835aux_wr() 118 static inline void bcm2835aux_rd_fifo(struct bcm2835aux_spi *bs) in bcm2835aux_rd_fifo() argument 121 int count = min(bs->rx_len, 3); in bcm2835aux_rd_fifo() 123 data = bcm2835aux_rd(bs, BCM2835_AUX_SPI_IO); in bcm2835aux_rd_fifo() 124 if (bs->rx_buf) { in bcm2835aux_rd_fifo() 127 *bs->rx_buf++ = (data >> 24) & 0xff; in bcm2835aux_rd_fifo() 130 *bs->rx_buf++ = (data >> 16) & 0xff; in bcm2835aux_rd_fifo() [all …]
|
D | spi-bcm63xx-hsspi.c | 109 static void bcm63xx_hsspi_set_cs(struct bcm63xx_hsspi *bs, unsigned cs, in bcm63xx_hsspi_set_cs() argument 114 mutex_lock(&bs->bus_mutex); in bcm63xx_hsspi_set_cs() 115 reg = __raw_readl(bs->regs + HSSPI_GLOBAL_CTRL_REG); in bcm63xx_hsspi_set_cs() 118 if (active == !(bs->cs_polarity & BIT(cs))) in bcm63xx_hsspi_set_cs() 121 __raw_writel(reg, bs->regs + HSSPI_GLOBAL_CTRL_REG); in bcm63xx_hsspi_set_cs() 122 mutex_unlock(&bs->bus_mutex); in bcm63xx_hsspi_set_cs() 125 static void bcm63xx_hsspi_set_clk(struct bcm63xx_hsspi *bs, in bcm63xx_hsspi_set_clk() argument 131 reg = DIV_ROUND_UP(2048, DIV_ROUND_UP(bs->speed_hz, hz)); in bcm63xx_hsspi_set_clk() 133 bs->regs + HSSPI_PROFILE_CLK_CTRL_REG(profile)); in bcm63xx_hsspi_set_clk() 135 reg = __raw_readl(bs->regs + HSSPI_PROFILE_SIGNAL_CTRL_REG(profile)); in bcm63xx_hsspi_set_clk() [all …]
|
D | spi-bcm63xx.c | 161 static inline u8 bcm_spi_readb(struct bcm63xx_spi *bs, in bcm_spi_readb() argument 164 return readb(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readb() 167 static inline u16 bcm_spi_readw(struct bcm63xx_spi *bs, in bcm_spi_readw() argument 171 return ioread16be(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readw() 173 return readw(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readw() 177 static inline void bcm_spi_writeb(struct bcm63xx_spi *bs, in bcm_spi_writeb() argument 180 writeb(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writeb() 183 static inline void bcm_spi_writew(struct bcm63xx_spi *bs, in bcm_spi_writew() argument 187 iowrite16be(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writew() 189 writew(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writew() [all …]
|
D | spi-bcm2835.c | 94 static inline u32 bcm2835_rd(struct bcm2835_spi *bs, unsigned reg) in bcm2835_rd() argument 96 return readl(bs->regs + reg); in bcm2835_rd() 99 static inline void bcm2835_wr(struct bcm2835_spi *bs, unsigned reg, u32 val) in bcm2835_wr() argument 101 writel(val, bs->regs + reg); in bcm2835_wr() 104 static inline void bcm2835_rd_fifo(struct bcm2835_spi *bs) in bcm2835_rd_fifo() argument 108 while ((bs->rx_len) && in bcm2835_rd_fifo() 109 (bcm2835_rd(bs, BCM2835_SPI_CS) & BCM2835_SPI_CS_RXD)) { in bcm2835_rd_fifo() 110 byte = bcm2835_rd(bs, BCM2835_SPI_FIFO); in bcm2835_rd_fifo() 111 if (bs->rx_buf) in bcm2835_rd_fifo() 112 *bs->rx_buf++ = byte; in bcm2835_rd_fifo() [all …]
|
/drivers/block/drbd/ |
D | drbd_vli.h | 238 static inline void bitstream_init(struct bitstream *bs, void *s, size_t len, unsigned int pad_bits) in bitstream_init() argument 240 bs->buf = s; in bitstream_init() 241 bs->buf_len = len; in bitstream_init() 242 bs->pad_bits = pad_bits; in bitstream_init() 243 bitstream_cursor_reset(&bs->cur, bs->buf); in bitstream_init() 246 static inline void bitstream_rewind(struct bitstream *bs) in bitstream_rewind() argument 248 bitstream_cursor_reset(&bs->cur, bs->buf); in bitstream_rewind() 249 memset(bs->buf, 0, bs->buf_len); in bitstream_rewind() 260 static inline int bitstream_put_bits(struct bitstream *bs, u64 val, const unsigned int bits) in bitstream_put_bits() argument 262 unsigned char *b = bs->cur.b; in bitstream_put_bits() [all …]
|
/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 …]
|
/drivers/misc/sgi-gru/ |
D | grukservices.c | 152 static void gru_load_kernel_context(struct gru_blade_state *bs, int blade_id) in gru_load_kernel_context() argument 159 up_read(&bs->bs_kgts_sema); in gru_load_kernel_context() 160 down_write(&bs->bs_kgts_sema); in gru_load_kernel_context() 162 if (!bs->bs_kgts) { in gru_load_kernel_context() 164 bs->bs_kgts = gru_alloc_gts(NULL, 0, 0, 0, 0, 0); in gru_load_kernel_context() 165 if (!IS_ERR(bs->bs_kgts)) in gru_load_kernel_context() 169 bs->bs_kgts->ts_user_blade_id = blade_id; in gru_load_kernel_context() 171 kgts = bs->bs_kgts; in gru_load_kernel_context() 177 GRU_NUM_KERNEL_CBR * ncpus + bs->bs_async_cbrs); in gru_load_kernel_context() 180 bs->bs_async_dsr_bytes); in gru_load_kernel_context() [all …]
|
/drivers/media/pci/tw5864/ |
D | tw5864-h264.c | 33 struct bs { struct 40 static void bs_init(struct bs *s, void *buf, int size) in bs_init() argument 48 static int bs_len(struct bs *s) in bs_len() 53 static void bs_write(struct bs *s, int count, u32 bits) in bs_write() 73 static void bs_write1(struct bs *s, u32 bit) in bs_write1() 86 static void bs_write_ue(struct bs *s, u32 val) in bs_write_ue() 96 static void bs_write_se(struct bs *s, int val) in bs_write_se() 101 static void bs_rbsp_trailing(struct bs *s) in bs_rbsp_trailing() 112 struct bs bs, *s; in tw5864_h264_gen_sps_rbsp() local 114 s = &bs; in tw5864_h264_gen_sps_rbsp() [all …]
|
/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))
|
/drivers/media/tuners/ |
D | tda827x.c | 97 u8 bs; member 105 { .lomax = 62000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 1}, 106 { .lomax = 66000000, .spd = 3, .bs = 3, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 1}, 107 { .lomax = 76000000, .spd = 3, .bs = 1, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 0}, 108 { .lomax = 84000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 0}, 109 { .lomax = 93000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 1, .div1p5 = 0}, 110 { .lomax = 98000000, .spd = 3, .bs = 3, .bp = 0, .cp = 0, .gc3 = 1, .div1p5 = 0}, 111 { .lomax = 109000000, .spd = 3, .bs = 3, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 0}, 112 { .lomax = 123000000, .spd = 2, .bs = 2, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 1}, 113 { .lomax = 133000000, .spd = 2, .bs = 3, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 1}, [all …]
|
/drivers/crypto/ |
D | omap-sham.c | 469 int bs, nr_dr; in omap_sham_write_ctrl_omap4() local 474 bs = get_block_size(ctx); in omap_sham_write_ctrl_omap4() 475 nr_dr = bs / (2 * sizeof(u32)); in omap_sham_write_ctrl_omap4() 481 ctx->digcnt += bs; in omap_sham_write_ctrl_omap4() 642 struct scatterlist *sg, int bs, int new_len) in omap_sham_copy_sg_lists() argument 699 struct scatterlist *sg, int bs, int new_len) in omap_sham_copy_sgs() argument 732 int nbytes, int bs, bool final, in omap_sham_align_sgs() argument 751 new_len = DIV_ROUND_UP(new_len, bs) * bs; in omap_sham_align_sgs() 753 new_len = (new_len - 1) / bs * bs; in omap_sham_align_sgs() 767 if (!IS_ALIGNED(sg_tmp->length - offset, bs)) { in omap_sham_align_sgs() [all …]
|
/drivers/staging/fbtft/ |
D | fb_pcd8544.c | 39 static unsigned int bs = 4; variable 40 module_param(bs, uint, 0); 41 MODULE_PARM_DESC(bs, "BS[2:0] Bias voltage level: 0-7 (default: 4)"); 72 write_reg(par, 0x10 | (bs & 0x7)); in init_display()
|
D | fb_tls8204.c | 38 static unsigned int bs = 4; variable 39 module_param(bs, uint, 0); 40 MODULE_PARM_DESC(bs, "BS[2:0] Bias voltage level: 0-7 (default: 4)"); 55 write_reg(par, 0x10 | (bs & 0x7)); in init_display()
|
/drivers/staging/vc04_services/interface/vchiq_arm/ |
D | vchiq_core.h | 150 #define BITSET_ZERO(bs) memset(bs, 0, sizeof(bs)) argument 151 #define BITSET_IS_SET(bs, b) (bs[BITSET_WORD(b)] & BITSET_BIT(b)) argument 152 #define BITSET_SET(bs, b) (bs[BITSET_WORD(b)] |= BITSET_BIT(b)) argument 153 #define BITSET_CLR(bs, b) (bs[BITSET_WORD(b)] &= ~BITSET_BIT(b)) argument
|
/drivers/media/pci/bt8xx/ |
D | dvb-bt8xx.c | 158 unsigned char bs = 0; in thomson_dtt7579_tuner_calc_regs() local 174 bs = 0x03; in thomson_dtt7579_tuner_calc_regs() 176 bs = 0x02; in thomson_dtt7579_tuner_calc_regs() 178 bs = 0x08; in thomson_dtt7579_tuner_calc_regs() 184 pllbuf[4] = bs; in thomson_dtt7579_tuner_calc_regs() 353 unsigned char bs = 0; in advbt771_samsung_tdtc9251dh0_tuner_calc_regs() local 380 bs = 0x01; in advbt771_samsung_tdtc9251dh0_tuner_calc_regs() 382 bs = 0x01; in advbt771_samsung_tdtc9251dh0_tuner_calc_regs() 384 bs = 0x02; in advbt771_samsung_tdtc9251dh0_tuner_calc_regs() 386 bs = 0x02; in advbt771_samsung_tdtc9251dh0_tuner_calc_regs() [all …]
|
/drivers/crypto/chelsio/ |
D | chcr_algo.c | 842 u8 remainder = 0, bs; in chcr_ahash_update() local 846 bs = crypto_tfm_alg_blocksize(crypto_ahash_tfm(rtfm)); in chcr_ahash_update() 855 if (nbytes + req_ctx->bfr_len >= bs) { in chcr_ahash_update() 856 remainder = (nbytes + req_ctx->bfr_len) % bs; in chcr_ahash_update() 890 static void create_last_hash_block(char *bfr_ptr, unsigned int bs, u64 scmd1) in create_last_hash_block() argument 892 memset(bfr_ptr, 0, bs); in create_last_hash_block() 894 if (bs == 64) in create_last_hash_block() 908 u8 bs = crypto_tfm_alg_blocksize(crypto_ahash_tfm(rtfm)); in chcr_ahash_final() local 921 create_last_hash_block(req_ctx->bfr, bs, req_ctx->data_len); in chcr_ahash_final() 925 params.bfr_len = bs; in chcr_ahash_final() [all …]
|
/drivers/scsi/be2iscsi/ |
D | be_mgmt.c | 887 struct boot_struct *bs; in beiscsi_boot_process_compl() local 903 bs = &phba->boot_struct; in beiscsi_boot_process_compl() 906 switch (bs->action) { in beiscsi_boot_process_compl() 910 bs->action = BEISCSI_BOOT_GET_SHANDLE; in beiscsi_boot_process_compl() 912 bs->retry--; in beiscsi_boot_process_compl() 918 bs->s_handle = boot_resp->boot_session_handle; in beiscsi_boot_process_compl() 920 if (bs->s_handle == BE_BOOT_INVALID_SHANDLE) { in beiscsi_boot_process_compl() 921 bs->action = BEISCSI_BOOT_REOPEN_SESS; in beiscsi_boot_process_compl() 922 bs->retry--; in beiscsi_boot_process_compl() 924 bs->action = BEISCSI_BOOT_GET_SINFO; in beiscsi_boot_process_compl() [all …]
|
/drivers/block/ |
D | null_blk.c | 108 static int bs = 512; variable 109 module_param(bs, int, S_IRUGO); 110 MODULE_PARM_DESC(bs, "Block size (in bytes)"); 480 sector_div(size, bs); /* convert size to pages */ in null_lnvm_id() 494 grp->fpg_sz = bs; in null_lnvm_id() 495 grp->csecs = bs; in null_lnvm_id() 766 blk_queue_logical_block_size(nullb->q, bs); in null_add_dev() 767 blk_queue_physical_block_size(nullb->q, bs); in null_add_dev() 803 if (bs > PAGE_SIZE) { in null_init() 806 bs = PAGE_SIZE; in null_init() [all …]
|
/drivers/md/ |
D | dm.c | 96 struct bio_set *bs; member 1003 struct bio_set *bs = bio->bi_pool; in flush_current_bio_list() local 1004 if (unlikely(!bs) || bs == fs_bio_set) { in flush_current_bio_list() 1009 spin_lock(&bs->rescue_lock); in flush_current_bio_list() 1010 bio_list_add(&bs->rescue_list, bio); in flush_current_bio_list() 1011 queue_work(bs->rescue_workqueue, &bs->rescue_work); in flush_current_bio_list() 1012 spin_unlock(&bs->rescue_lock); in flush_current_bio_list() 1116 clone = bio_alloc_bioset(GFP_NOIO, 0, ci->md->bs); in alloc_tio() 1483 if (md->bs) in cleanup_mapped_device() 1484 bioset_free(md->bs); in cleanup_mapped_device() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | ctxgp100.c | 74 const u32 bs = attrib * gr->ppc_tpc_nr[gpc][ppc]; in gp100_grctx_generate_attrib() local 79 mmio_wr32(info, o + 0xc0, bs); in gp100_grctx_generate_attrib() 81 mmio_wr32(info, o + 0xf0, bs); in gp100_grctx_generate_attrib() 86 mmio_wr32(info, u, bs); in gp100_grctx_generate_attrib()
|
D | ctxgm107.c | 920 const u32 bs = attrib * gr->ppc_tpc_nr[gpc][ppc]; in gm107_grctx_generate_attrib() local 925 mmio_wr32(info, o + 0xc0, bs); in gm107_grctx_generate_attrib() 931 mmio_wr32(info, u, ((bs / 3) << 16) | bs); in gm107_grctx_generate_attrib()
|
/drivers/block/paride/ |
D | pt.c | 223 int bs; /* block size */ member 557 tape->bs = 0; in pt_identify() 565 tape->bs = xn(buf, 10, 2); in pt_identify() 577 printk(", blocksize %d, %d MB\n", tape->bs, tape->capacity / 1024); in pt_identify() 792 b = (n - 1 + tape->bs) / tape->bs; in pt_read() 793 n = b * tape->bs; /* rounded up to even block */ in pt_read() 893 b = (n - 1 + tape->bs) / tape->bs; in pt_write() 894 n = b * tape->bs; /* rounded up to even block */ in pt_write()
|
/drivers/atm/ |
D | nicstarmac.c | 108 #define NICSTAR_REG_WRITE(bs, reg, val) \ argument 109 while ( readl(bs + STAT) & 0x0200 ) ; \ 111 #define NICSTAR_REG_READ(bs, reg) \ argument
|
/drivers/net/phy/ |
D | dp83867.c | 149 int ret, val, bs; in dp83867_config_init() local 183 bs = phy_read_mmd_indirect(phydev, DP83867_STRAP_STS1, in dp83867_config_init() 185 if (bs & DP83867_STRAP_STS1_RESERVED) in dp83867_config_init()
|
/drivers/uwb/ |
D | beacon.c | 473 struct uwb_rc_evt_beacon_size *bs; in uwbd_evt_handle_rc_beacon_size() local 476 if (evt->notif.size < sizeof(*bs)) { in uwbd_evt_handle_rc_beacon_size() 479 evt->notif.size, sizeof(*bs)); in uwbd_evt_handle_rc_beacon_size() 482 bs = container_of(evt->notif.rceb, struct uwb_rc_evt_beacon_size, rceb); in uwbd_evt_handle_rc_beacon_size() 485 "(FIXME: action?)\n", le16_to_cpu(bs->wNewBeaconSize)); in uwbd_evt_handle_rc_beacon_size()
|