/drivers/mtd/ |
D | ftl.c | 751 uint32_t log_addr, bsize; in ftl_read() local 762 bsize = 1 << part->header.EraseUnitSize; in ftl_read() 773 offset = (part->EUNInfo[log_addr / bsize].Offset in ftl_read() 774 + (log_addr % bsize)); in ftl_read() 797 uint32_t bsize, blk, le_virt_addr; in set_bam_entry() local 807 bsize = 1 << part->header.EraseUnitSize; in set_bam_entry() 808 eun = log_addr / bsize; in set_bam_entry() 809 blk = (log_addr % bsize) / SECTOR_SIZE; in set_bam_entry() 865 uint32_t bsize, log_addr, virt_addr, old_addr, blk; in ftl_write() local 883 bsize = 1 << part->header.EraseUnitSize; in ftl_write() [all …]
|
/drivers/s390/block/ |
D | dasd_diag.c | 322 unsigned int sb, bsize; in dasd_diag_check_device() local 407 for (bsize = 512; bsize <= PAGE_SIZE; bsize <<= 1) { in dasd_diag_check_device() 408 mdsk_init_io(device, bsize, 0, &end_block); in dasd_diag_check_device() 432 if (bsize > PAGE_SIZE) { in dasd_diag_check_device() 442 bsize = (unsigned int) label->block_size; in dasd_diag_check_device() 446 block->bp_block = bsize; in dasd_diag_check_device() 448 for (sb = 512; sb < bsize; sb = sb << 1) in dasd_diag_check_device()
|
D | dasd_int.h | 828 dasd_check_blocksize(int bsize) in dasd_check_blocksize() argument 830 if (bsize < 512 || bsize > 4096 || !is_power_of_2(bsize)) in dasd_check_blocksize()
|
/drivers/media/pci/ddbridge/ |
D | ddbridge-i2c.c | 83 if (msg[0].len > i2c->bsize) in ddb_i2c_master_xfer() 106 if (msg[1].len > i2c->bsize) in ddb_i2c_master_xfer() 160 i2c->bsize = regmap->i2c_buf->size; in ddb_i2c_add() 162 (regmap->i2c_buf->base + i2c->bsize * i); in ddb_i2c_add()
|
D | ddbridge.h | 207 u32 bsize; member
|
/drivers/firmware/meson/ |
D | meson_sm.c | 143 unsigned int bsize, unsigned int cmd_index, u32 arg0, in meson_sm_call_read() argument 155 if (bsize > fw->chip->shmem_size) in meson_sm_call_read() 161 if (size > bsize) in meson_sm_call_read() 167 size = bsize; in meson_sm_call_read()
|
/drivers/media/v4l2-core/ |
D | videobuf-core.c | 331 b->length = vb->bsize; in videobuf_status() 335 b->length = vb->bsize; in videobuf_status() 385 unsigned int bcount, unsigned int bsize, in __videobuf_mmap_setup() argument 406 q->bufs[i]->bsize = bsize; in __videobuf_mmap_setup() 409 q->bufs[i]->boff = PAGE_ALIGN(bsize) * i; in __videobuf_mmap_setup() 422 dprintk(1, "mmap setup: %d buffers, %d bytes each\n", i, bsize); in __videobuf_mmap_setup() 429 unsigned int bcount, unsigned int bsize, in videobuf_mmap_setup() argument 434 ret = __videobuf_mmap_setup(q, bcount, bsize, memory); in videobuf_mmap_setup() 586 if (b->length < buf->bsize) { in videobuf_qbuf() 803 q->read_buf->bsize = count; in videobuf_read_zerocopy() [all …]
|
D | videobuf-dma-sg.c | 531 vb->baddr, vb->bsize); in __videobuf_iolock() 542 vb->baddr, vb->bsize); in __videobuf_iolock() 605 size = PAGE_ALIGN(q->bufs[first]->bsize); in __videobuf_mmap_mapper() 631 size += PAGE_ALIGN(q->bufs[i]->bsize); in __videobuf_mmap_mapper()
|
D | videobuf-dma-contig.c | 296 if (__videobuf_dc_alloc(q->dev, mem, PAGE_ALIGN(buf->bsize))) in __videobuf_mmap_mapper() 322 (long int)buf->bsize, vma->vm_pgoff, buf->i); in __videobuf_mmap_mapper()
|
D | videobuf-vmalloc.c | 255 (long int)buf->bsize, in __videobuf_mmap_mapper()
|
/drivers/net/wireless/atmel/ |
D | at76c50x-usb.c | 367 int bsize = 0; in at76_usbdfu_download() local 439 bsize = min_t(int, size, FW_BLOCK_SIZE); in at76_usbdfu_download() 440 memcpy(block, buf, bsize); in at76_usbdfu_download() 442 "bsize = %4d, blockno = %2d", size, bsize, in at76_usbdfu_download() 445 at76_load_int_fw_block(udev, blockno, block, bsize); in at76_usbdfu_download() 446 buf += bsize; in at76_usbdfu_download() 447 size -= bsize; in at76_usbdfu_download() 450 if (ret != bsize) in at76_usbdfu_download() 1258 int bsize; in at76_load_external_fw() local 1282 bsize = min_t(int, size, FW_BLOCK_SIZE); in at76_load_external_fw() [all …]
|
/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00usb.c | 121 u16 off, len, bsize; in rt2x00usb_vendor_request_buff() local 129 bsize = min_t(u16, CSR_CACHE_SIZE, len); in rt2x00usb_vendor_request_buff() 132 bsize, REGISTER_TIMEOUT); in rt2x00usb_vendor_request_buff() 134 tb += bsize; in rt2x00usb_vendor_request_buff() 135 len -= bsize; in rt2x00usb_vendor_request_buff() 136 off += bsize; in rt2x00usb_vendor_request_buff()
|
/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_hw.c | 160 unsigned int num_key_ctx, bsize; in chtls_init_kmap() local 164 bsize = BITS_TO_LONGS(num_key_ctx); in chtls_init_kmap() 167 cdev->kmap.available = bsize; in chtls_init_kmap() 168 ksize = sizeof(*cdev->kmap.addr) * bsize; in chtls_init_kmap()
|
/drivers/scsi/qla2xxx/ |
D | qla_inline.h | 69 host_to_fcp_swap(uint8_t *fcp, uint32_t bsize) in host_to_fcp_swap() argument 73 uint32_t iter = bsize >> 2; in host_to_fcp_swap() 82 host_to_adap(uint8_t *src, uint8_t *dst, uint32_t bsize) in host_to_adap() argument 86 uint32_t iter = bsize >> 2; in host_to_adap()
|
/drivers/crypto/ |
D | hifn_795x.c | 2231 unsigned int bsize; member 2240 .name = "cfb(des3_ede)", .drv_name = "cfb-3des", .bsize = 8, 2250 .name = "ofb(des3_ede)", .drv_name = "ofb-3des", .bsize = 8, 2260 .name = "cbc(des3_ede)", .drv_name = "cbc-3des", .bsize = 8, 2271 .name = "ecb(des3_ede)", .drv_name = "ecb-3des", .bsize = 8, 2285 .name = "cfb(des)", .drv_name = "cfb-des", .bsize = 8, 2295 .name = "ofb(des)", .drv_name = "ofb-des", .bsize = 8, 2305 .name = "cbc(des)", .drv_name = "cbc-des", .bsize = 8, 2316 .name = "ecb(des)", .drv_name = "ecb-des", .bsize = 8, 2330 .name = "ecb(aes)", .drv_name = "ecb-aes", .bsize = 16, [all …]
|
/drivers/media/usb/gspca/ |
D | gspca.c | 665 int n, nurbs, i, psize, npkt, bsize; in create_urbs() local 680 bsize = psize * npkt; in create_urbs() 683 npkt, psize, bsize); in create_urbs() 687 bsize = gspca_dev->cam.bulk_size; in create_urbs() 688 if (bsize == 0) in create_urbs() 689 bsize = psize; in create_urbs() 690 gspca_dbg(gspca_dev, D_STREAM, "bulk bsize:%d\n", bsize); in create_urbs() 703 bsize, in create_urbs() 713 urb->transfer_buffer_length = bsize; in create_urbs()
|
/drivers/net/wireless/ath/ath9k/ |
D | init.c | 289 int i, bsize, desc_len; in ath_descdma_setup() local 343 bsize = sizeof(struct ath_buf) * nbuf; in ath_descdma_setup() 344 bf = devm_kzalloc(sc->dev, bsize, GFP_KERNEL); in ath_descdma_setup() 374 bsize = sizeof(struct ath_rxbuf) * nbuf; in ath_descdma_setup() 375 bf = devm_kzalloc(sc->dev, bsize, GFP_KERNEL); in ath_descdma_setup()
|
/drivers/block/ |
D | loop.c | 1001 unsigned short bsize; in loop_configure() local 1081 bsize = config->block_size; in loop_configure() 1084 bsize = bdev_logical_block_size(inode->i_sb->s_bdev); in loop_configure() 1086 bsize = 512; in loop_configure() 1088 blk_queue_logical_block_size(lo->lo_queue, bsize); in loop_configure() 1089 blk_queue_physical_block_size(lo->lo_queue, bsize); in loop_configure() 1090 blk_queue_io_min(lo->lo_queue, bsize); in loop_configure()
|
D | nbd.c | 1918 u64 bsize = nbd_blksize(config); in nbd_genl_size_set() local 1925 bsize = nla_get_u64(info->attrs[NBD_ATTR_BLOCK_SIZE_BYTES]); in nbd_genl_size_set() 1927 if (bytes != config->bytesize || bsize != nbd_blksize(config)) in nbd_genl_size_set() 1928 return nbd_set_size(nbd, bytes, bsize); in nbd_genl_size_set()
|
/drivers/infiniband/hw/hfi1/ |
D | chip.c | 5333 static char *is_misc_err_name(char *buf, size_t bsize, unsigned int source) in is_misc_err_name() argument 5336 strncpy(buf, cce_misc_names[source], bsize); in is_misc_err_name() 5338 snprintf(buf, bsize, "Reserved%u", in is_misc_err_name() 5347 static char *is_sdma_eng_err_name(char *buf, size_t bsize, unsigned int source) in is_sdma_eng_err_name() argument 5349 snprintf(buf, bsize, "SDmaEngErrInt%u", source); in is_sdma_eng_err_name() 5356 static char *is_sendctxt_err_name(char *buf, size_t bsize, unsigned int source) in is_sendctxt_err_name() argument 5358 snprintf(buf, bsize, "SendCtxtErrInt%u", source); in is_sendctxt_err_name() 5373 static char *is_various_name(char *buf, size_t bsize, unsigned int source) in is_various_name() argument 5376 strncpy(buf, various_names[source], bsize); in is_various_name() 5378 snprintf(buf, bsize, "Reserved%u", source + IS_VARIOUS_START); in is_various_name() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-streams.c | 120 if ((buf->vb.baddr != 0) && (buf->vb.bsize < buf->vb.size)) in cx18_prepare_buffer() 143 if ((buf->vb.baddr != 0) && (buf->vb.bsize < buf->vb.size)) in cx18_prepare_buffer()
|
/drivers/media/pci/bt8xx/ |
D | bttv-vbi.c | 104 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in vbi_buffer_prepare()
|
/drivers/staging/media/deprecated/saa7146/common/ |
D | saa7146_vbi.c | 235 if (0 != buf->vb.baddr && buf->vb.bsize < size) { in buffer_prepare()
|
/drivers/staging/ks7010/ |
D | ks_hostif.c | 258 int bsize, offset; in get_ap_information() local 270 bsize = le16_to_cpu(ap_info->body_size); in get_ap_information() 273 while (bsize > offset) { in get_ap_information()
|
/drivers/scsi/lpfc/ |
D | lpfc_debugfs.c | 2160 size_t bsize; in lpfc_debugfs_lockstat_write() local 2164 bsize = min(nbytes, (sizeof(mybuf) - 1)); in lpfc_debugfs_lockstat_write() 2166 if (copy_from_user(mybuf, buf, bsize)) in lpfc_debugfs_lockstat_write() 2187 return bsize; in lpfc_debugfs_lockstat_write() 3146 size_t bsize; in lpfc_idiag_cmd_get() local 3150 bsize = min(nbytes, (sizeof(mybuf)-1)); in lpfc_idiag_cmd_get() 3152 if (copy_from_user(mybuf, buf, bsize)) in lpfc_idiag_cmd_get()
|