/drivers/spi/ |
D | spi-bcm2835.c | 163 static void bcm2835_debugfs_create(struct bcm2835_spi *bs, in bcm2835_debugfs_create() argument 174 bs->debugfs_dir = dir; in bcm2835_debugfs_create() 178 &bs->count_transfer_polling); in bcm2835_debugfs_create() 180 &bs->count_transfer_irq); in bcm2835_debugfs_create() 182 &bs->count_transfer_irq_after_polling); in bcm2835_debugfs_create() 184 &bs->count_transfer_dma); in bcm2835_debugfs_create() 187 static void bcm2835_debugfs_remove(struct bcm2835_spi *bs) in bcm2835_debugfs_remove() argument 189 debugfs_remove_recursive(bs->debugfs_dir); in bcm2835_debugfs_remove() 190 bs->debugfs_dir = NULL; in bcm2835_debugfs_remove() 193 static void bcm2835_debugfs_create(struct bcm2835_spi *bs, in bcm2835_debugfs_create() argument [all …]
|
D | spi-bcm2835aux.c | 105 static void bcm2835aux_debugfs_create(struct bcm2835aux_spi *bs, in bcm2835aux_debugfs_create() argument 116 bs->debugfs_dir = dir; in bcm2835aux_debugfs_create() 120 &bs->count_transfer_polling); in bcm2835aux_debugfs_create() 122 &bs->count_transfer_irq); in bcm2835aux_debugfs_create() 124 &bs->count_transfer_irq_after_poll); in bcm2835aux_debugfs_create() 127 static void bcm2835aux_debugfs_remove(struct bcm2835aux_spi *bs) in bcm2835aux_debugfs_remove() argument 129 debugfs_remove_recursive(bs->debugfs_dir); in bcm2835aux_debugfs_remove() 130 bs->debugfs_dir = NULL; in bcm2835aux_debugfs_remove() 133 static void bcm2835aux_debugfs_create(struct bcm2835aux_spi *bs, in bcm2835aux_debugfs_create() argument 138 static void bcm2835aux_debugfs_remove(struct bcm2835aux_spi *bs) in bcm2835aux_debugfs_remove() argument [all …]
|
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 …]
|
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 …]
|
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 void bcm_spi_writeb(struct bcm63xx_spi *bs, in bcm_spi_writeb() argument 163 writeb(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writeb() 166 static inline void bcm_spi_writew(struct bcm63xx_spi *bs, in bcm_spi_writew() argument 170 iowrite16be(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writew() 172 writew(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writew() 189 struct bcm63xx_spi *bs = spi_controller_get_devdata(spi->controller); in bcm63xx_spi_setup_transfer() local 205 reg = bcm_spi_readb(bs, SPI_CLK_CFG); in bcm63xx_spi_setup_transfer() 209 bcm_spi_writeb(bs, reg, SPI_CLK_CFG); in bcm63xx_spi_setup_transfer() [all …]
|
/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 …]
|
/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 | 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 …]
|
/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 …]
|
/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/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()
|
D | omap-sham.c | 453 int bs, nr_dr; in omap_sham_write_ctrl_omap4() local 458 bs = get_block_size(ctx); in omap_sham_write_ctrl_omap4() 459 nr_dr = bs / (2 * sizeof(u32)); in omap_sham_write_ctrl_omap4() 465 ctx->digcnt += bs; in omap_sham_write_ctrl_omap4() 626 struct scatterlist *sg, int bs, int new_len) in omap_sham_copy_sg_lists() argument 692 struct scatterlist *sg, int bs, in omap_sham_copy_sgs() argument 724 int nbytes, int bs, bool final, in omap_sham_align_sgs() argument 737 bufcnt = DIV_ROUND_UP(bufcnt, bs) * bs; in omap_sham_align_sgs() 753 new_len = DIV_ROUND_UP(new_len, bs) * bs; in omap_sham_align_sgs() 755 new_len = (new_len - 1) / bs * bs; in omap_sham_align_sgs() [all …]
|
/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 …]
|
/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-hash.c | 69 int bs = crypto_ahash_blocksize(ahash); in sun8i_ss_hmac_setkey() local 74 if (keylen > bs) { in sun8i_ss_hmac_setkey() 84 tfmctx->ipad = kzalloc(bs, GFP_KERNEL); in sun8i_ss_hmac_setkey() 87 tfmctx->opad = kzalloc(bs, GFP_KERNEL); in sun8i_ss_hmac_setkey() 93 memset(tfmctx->key + tfmctx->keylen, 0, bs - tfmctx->keylen); in sun8i_ss_hmac_setkey() 96 for (i = 0; i < bs; i++) { in sun8i_ss_hmac_setkey() 429 static u64 hash_pad(__le32 *buf, unsigned int bufsize, u64 padi, u64 byte_count, bool le, int bs) in hash_pad() argument 438 if (bs == 64) { in hash_pad() 447 fill += bs; in hash_pad() 464 if (bs == 64) { in hash_pad() [all …]
|
/drivers/crypto/allwinner/sun8i-ce/ |
D | sun8i-ce-hash.c | 272 static u64 hash_pad(__le32 *buf, unsigned int bufsize, u64 padi, u64 byte_count, bool le, int bs) in hash_pad() argument 281 if (bs == 64) { in hash_pad() 290 fill += bs; in hash_pad() 307 if (bs == 64) { in hash_pad() 349 u64 bs; in sun8i_ce_hash_run() local 357 bs = algt->alg.hash.base.halg.base.cra_blocksize; in sun8i_ce_hash_run() 365 buf = kzalloc(bs * 2, GFP_KERNEL | GFP_DMA); in sun8i_ce_hash_run() 430 j = hash_pad(bf, 2 * bs, j, byte_count, true, bs); in sun8i_ce_hash_run() 435 j = hash_pad(bf, 2 * bs, j, byte_count, false, bs); in sun8i_ce_hash_run() 439 j = hash_pad(bf, 2 * bs, j, byte_count, false, bs); in sun8i_ce_hash_run()
|
/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
D | vdec_vp9_req_lat_if.c | 355 struct vdec_vp9_slice_bs bs; member 980 struct mtk_vcodec_mem *bs, in vdec_vp9_slice_setup_lat_buffer() argument 985 vsi->bs.buf.dma_addr = bs->dma_addr; in vdec_vp9_slice_setup_lat_buffer() 986 vsi->bs.buf.size = bs->size; in vdec_vp9_slice_setup_lat_buffer() 987 vsi->bs.frame.dma_addr = bs->dma_addr; in vdec_vp9_slice_setup_lat_buffer() 988 vsi->bs.frame.size = bs->size; in vdec_vp9_slice_setup_lat_buffer() 1068 struct mtk_vcodec_mem *bs) in vdec_vp9_slice_setup_tile_buffer() argument 1101 if (bs->size <= offset) { in vdec_vp9_slice_setup_tile_buffer() 1102 mtk_vdec_err(instance->ctx, "bs size %zu tile offset %u\n", bs->size, offset); in vdec_vp9_slice_setup_tile_buffer() 1109 va = (unsigned char *)bs->va; in vdec_vp9_slice_setup_tile_buffer() [all …]
|
D | vdec_h264_req_multi_if.c | 565 static int vdec_h264_slice_lat_decode(void *h_vdec, struct mtk_vcodec_mem *bs, in vdec_h264_slice_lat_decode() argument 584 if (!bs) { in vdec_h264_slice_lat_decode() 598 src_buf_info = container_of(bs, struct mtk_video_dec_buf, bs_buffer); in vdec_h264_slice_lat_decode() 600 buf = (unsigned char *)bs->va; in vdec_h264_slice_lat_decode() 601 nal_start_idx = mtk_vdec_h264_find_start_code(buf, bs->size); in vdec_h264_slice_lat_decode() 615 vdec_h264_insert_startcode(inst->ctx->dev, buf, &bs->size, in vdec_h264_slice_lat_decode() 618 inst->vsi->dec.bs_buf_addr = (uint64_t)bs->dma_addr; in vdec_h264_slice_lat_decode() 619 inst->vsi->dec.bs_buf_size = bs->size; in vdec_h264_slice_lat_decode() 709 static int vdec_h264_slice_single_decode(void *h_vdec, struct mtk_vcodec_mem *bs, in vdec_h264_slice_single_decode() argument 723 if (!bs) in vdec_h264_slice_single_decode() [all …]
|
D | vdec_vp9_if.c | 144 struct mtk_vcodec_mem bs; member 809 static int vdec_vp9_decode(void *h_vdec, struct mtk_vcodec_mem *bs, in vdec_vp9_decode() argument 820 if ((bs == NULL) && (fb == NULL)) { in vdec_vp9_decode() 826 if (bs == NULL) { in vdec_vp9_decode() 831 mtk_vdec_debug(inst->ctx, "Input BS Size = %zu", bs->size); in vdec_vp9_decode() 836 data[0] = *((unsigned int *)bs->va); in vdec_vp9_decode() 837 data[1] = *((unsigned int *)(bs->va + 4)); in vdec_vp9_decode() 838 data[2] = *((unsigned int *)(bs->va + 8)); in vdec_vp9_decode() 840 vsi->bs = *bs; in vdec_vp9_decode() 851 sf_bs_sz = bs->size > VP9_SUPER_FRAME_BS_SZ ? in vdec_vp9_decode() [all …]
|
/drivers/staging/fbtft/ |
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()
|
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()
|
/drivers/media/platform/mediatek/vcodec/decoder/ |
D | vdec_drv_if.c | 71 int vdec_if_decode(struct mtk_vcodec_dec_ctx *ctx, struct mtk_vcodec_mem *bs, in vdec_if_decode() argument 76 if (bs) { in vdec_if_decode() 77 if ((bs->dma_addr & 63) != 0) { in vdec_if_decode() 96 ret = ctx->dec_if->decode(ctx->drv_handle, bs, fb, res_chg); in vdec_if_decode()
|
/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | ctxgp102.c | 60 const u32 bs = attrib * gr->ppc_tpc_max; in gp102_grctx_generate_attrib() local 70 gf100_grctx_patch_wr32(chan, p, bs); in gp102_grctx_generate_attrib() 72 gf100_grctx_patch_wr32(chan, o + 0xf0, bs); in gp102_grctx_generate_attrib() 77 gf100_grctx_patch_wr32(chan, u, bs); in gp102_grctx_generate_attrib()
|
/drivers/scsi/be2iscsi/ |
D | be_mgmt.c | 826 struct boot_struct *bs; in beiscsi_boot_process_compl() local 842 bs = &phba->boot_struct; in beiscsi_boot_process_compl() 845 switch (bs->action) { in beiscsi_boot_process_compl() 849 bs->action = BEISCSI_BOOT_GET_SHANDLE; in beiscsi_boot_process_compl() 851 bs->retry--; in beiscsi_boot_process_compl() 857 bs->s_handle = boot_resp->boot_session_handle; in beiscsi_boot_process_compl() 859 if (bs->s_handle == BE_BOOT_INVALID_SHANDLE) { in beiscsi_boot_process_compl() 860 bs->action = BEISCSI_BOOT_REOPEN_SESS; in beiscsi_boot_process_compl() 861 bs->retry--; in beiscsi_boot_process_compl() 863 bs->action = BEISCSI_BOOT_GET_SINFO; in beiscsi_boot_process_compl() [all …]
|
/drivers/media/pci/bt8xx/ |
D | dvb-bt8xx.c | 147 unsigned char bs = 0; in thomson_dtt7579_tuner_calc_regs() local 163 bs = 0x03; in thomson_dtt7579_tuner_calc_regs() 165 bs = 0x02; in thomson_dtt7579_tuner_calc_regs() 167 bs = 0x08; in thomson_dtt7579_tuner_calc_regs() 173 pllbuf[4] = bs; in thomson_dtt7579_tuner_calc_regs() 342 unsigned char bs = 0; in advbt771_samsung_tdtc9251dh0_tuner_calc_regs() local 369 bs = 0x01; in advbt771_samsung_tdtc9251dh0_tuner_calc_regs() 371 bs = 0x01; in advbt771_samsung_tdtc9251dh0_tuner_calc_regs() 373 bs = 0x02; in advbt771_samsung_tdtc9251dh0_tuner_calc_regs() 375 bs = 0x02; in advbt771_samsung_tdtc9251dh0_tuner_calc_regs() [all …]
|
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_debugfs.h | 38 } bs; member 49 } bs; member 72 } bs; member
|