/linux-6.1.9/drivers/media/usb/stk1160/ |
D | stk1160-video.c | 408 int sb_size, int max_packets) in stk1160_fill_urb() argument 415 stk_urb->sgt = dma_alloc_noncontiguous(dma_dev, sb_size, in stk1160_fill_urb() 425 stk_urb->transfer_buffer = dma_vmap_noncontiguous(dma_dev, sb_size, in stk1160_fill_urb() 434 dma_free_noncontiguous(dma_dev, sb_size, stk_urb->sgt, DMA_FROM_DEVICE); in stk1160_fill_urb() 448 int i, j, k, sb_size, max_packets, num_bufs; in stk1160_alloc_isoc() local 463 sb_size = max_packets * dev->max_pkt_size; in stk1160_alloc_isoc() 472 sb_size, max_packets); in stk1160_alloc_isoc() 484 memset(dev->isoc_ctl.urb_ctl[i].transfer_buffer, 0, sb_size); in stk1160_alloc_isoc() 492 urb->transfer_buffer_length = sb_size; in stk1160_alloc_isoc()
|
/linux-6.1.9/drivers/media/usb/cx231xx/ |
D | cx231xx-audio.c | 261 int sb_size; in cx231xx_init_audio_isoc() local 269 sb_size = CX231XX_ISO_NUM_AUDIO_PACKETS * dev->adev.max_pkt_size; in cx231xx_init_audio_isoc() 275 dev->adev.transfer_buffer[i] = kmalloc(sb_size, GFP_ATOMIC); in cx231xx_init_audio_isoc() 279 memset(dev->adev.transfer_buffer[i], 0x80, sb_size); in cx231xx_init_audio_isoc() 298 urb->transfer_buffer_length = sb_size; in cx231xx_init_audio_isoc() 322 int sb_size; in cx231xx_init_audio_bulk() local 330 sb_size = CX231XX_NUM_AUDIO_PACKETS * dev->adev.max_pkt_size; in cx231xx_init_audio_bulk() 336 dev->adev.transfer_buffer[i] = kmalloc(sb_size, GFP_ATOMIC); in cx231xx_init_audio_bulk() 340 memset(dev->adev.transfer_buffer[i], 0x80, sb_size); in cx231xx_init_audio_bulk() 357 urb->transfer_buffer_length = sb_size; in cx231xx_init_audio_bulk()
|
D | cx231xx-vbi.c | 347 int sb_size, pipe; in cx231xx_init_vbi_isoc() local 394 sb_size = max_packets * dev->vbi_mode.bulk_ctl.max_pkt_size; in cx231xx_init_vbi_isoc() 408 kzalloc(sb_size, GFP_KERNEL); in cx231xx_init_vbi_isoc() 412 sb_size, i); in cx231xx_init_vbi_isoc() 420 sb_size, cx231xx_irq_vbi_callback, dma_q); in cx231xx_init_vbi_isoc()
|
D | cx231xx-core.c | 989 int sb_size, pipe; in cx231xx_init_isoc() local 1042 sb_size = max_packets * dev->video_mode.isoc_ctl.max_pkt_size; in cx231xx_init_isoc() 1060 usb_alloc_coherent(dev->udev, sb_size, GFP_KERNEL, in cx231xx_init_isoc() 1065 sb_size, i); in cx231xx_init_isoc() 1069 memset(dev->video_mode.isoc_ctl.transfer_buffer[i], 0, sb_size); in cx231xx_init_isoc() 1076 sb_size, cx231xx_isoc_irq_callback, dma_q, 1); in cx231xx_init_isoc() 1123 int sb_size, pipe; in cx231xx_init_bulk() local 1176 sb_size = max_packets * dev->video_mode.bulk_ctl.max_pkt_size; in cx231xx_init_bulk() 1195 usb_alloc_coherent(dev->udev, sb_size, GFP_KERNEL, in cx231xx_init_bulk() 1200 sb_size, i); in cx231xx_init_bulk() [all …]
|
/linux-6.1.9/drivers/virtio/ |
D | virtio_mem.c | 172 uint64_t sb_size; member 358 return (addr - mb_addr) / vm->sbm.sb_size; in virtio_mem_phys_to_sb_id() 889 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size); in virtio_mem_sbm_notify_going_offline() 897 sb_id * vm->sbm.sb_size); in virtio_mem_sbm_notify_going_offline() 905 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size); in virtio_mem_sbm_notify_cancel_offline() 913 sb_id * vm->sbm.sb_size); in virtio_mem_sbm_notify_cancel_offline() 1267 order = ilog2(vm->sbm.sb_size) - PAGE_SHIFT; in virtio_mem_online_page() 1459 sb_id * vm->sbm.sb_size; in virtio_mem_sbm_plug_sb() 1460 const uint64_t size = count * vm->sbm.sb_size; in virtio_mem_sbm_plug_sb() 1477 sb_id * vm->sbm.sb_size; in virtio_mem_sbm_unplug_sb() [all …]
|
/linux-6.1.9/drivers/media/usb/em28xx/ |
D | em28xx-core.c | 883 int sb_size, pipe; in em28xx_alloc_urbs() local 938 sb_size = packet_multiplier * usb_bufs->max_pkt_size; in em28xx_alloc_urbs() 949 usb_bufs->buf[i] = kzalloc(sb_size, GFP_KERNEL); in em28xx_alloc_urbs() 966 sb_size, em28xx_irq_callback, dev); in em28xx_alloc_urbs() 973 sb_size, em28xx_irq_callback, dev, 1); in em28xx_alloc_urbs()
|
/linux-6.1.9/crypto/ |
D | drbg.c | 1284 unsigned int sb_size = 0; in drbg_alloc_state() local 1325 sb_size = 0; in drbg_alloc_state() 1327 sb_size = drbg_statelen(drbg) + drbg_blocklen(drbg) + /* temp */ in drbg_alloc_state() 1333 sb_size = drbg_statelen(drbg) + drbg_blocklen(drbg); in drbg_alloc_state() 1335 if (0 < sb_size) { in drbg_alloc_state() 1336 drbg->scratchpadbuf = kzalloc(sb_size + ret, GFP_KERNEL); in drbg_alloc_state()
|
/linux-6.1.9/fs/erofs/ |
D | super.c | 179 offset = EROFS_SUPER_OFFSET + sbi->sb_size; in erofs_load_compr_cfgs() 371 sbi->sb_size = 128 + dsb->sb_extslots * EROFS_SB_EXTSLOT_SIZE; in erofs_read_superblock() 372 if (sbi->sb_size > EROFS_BLKSIZ) { in erofs_read_superblock() 374 sbi->sb_size); in erofs_read_superblock()
|
D | internal.h | 151 u32 sb_size; /* total superblock size */ member
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_buffers.c | 105 u64 sb_size; member 198 size = mlxsw_sp_bytes_cells(mlxsw_sp, mlxsw_sp->sb->sb_size); in mlxsw_sp_sb_pr_write() 239 mlxsw_sp->sb->sb_size); in mlxsw_sp_sb_cm_write() 751 u32 sb_cells = div_u64(mlxsw_sp->sb->sb_size, mlxsw_sp->sb->cell_size); in mlxsw_sp_sb_prs_init() 1267 mlxsw_sp->sb->sb_size = MLXSW_CORE_RES_GET(mlxsw_sp->core, in mlxsw_sp_buffers_init() 1294 mlxsw_sp->sb->sb_size, in mlxsw_sp_buffers_init()
|
/linux-6.1.9/drivers/staging/media/deprecated/tm6000/ |
D | tm6000-video.c | 553 int i, j, sb_size, pipe, size, max_packets; in tm6000_prepare_isoc() local 581 sb_size = max_packets * size; in tm6000_prepare_isoc() 582 dev->urb_size = sb_size; in tm6000_prepare_isoc() 600 max_packets, num_bufs, sb_size, in tm6000_prepare_isoc() 628 dev->isoc_ctl.transfer_buffer[i], sb_size, in tm6000_prepare_isoc()
|
/linux-6.1.9/drivers/media/usb/au0828/ |
D | au0828-video.c | 201 int sb_size, pipe; in au0828_init_isoc() local 228 sb_size = max_packets * dev->isoc_ctl.max_pkt_size; in au0828_init_isoc() 241 sb_size, GFP_KERNEL, &urb->transfer_dma); in au0828_init_isoc() 247 memset(dev->isoc_ctl.transfer_buffer[i], 0, sb_size); in au0828_init_isoc() 253 dev->isoc_ctl.transfer_buffer[i], sb_size, in au0828_init_isoc()
|
/linux-6.1.9/drivers/md/ |
D | dm-raid.c | 2154 memset(sb + 1, 0, rdev->sb_size - sizeof(*sb)); in super_sync() 2172 r = read_disk_sb(rdev, rdev->sb_size, false); in super_load() 2519 rdev->sb_size = bdev_logical_block_size(rdev->meta_bdev); in analyse_superblocks() 2520 if (rdev->sb_size < sizeof(struct dm_raid_superblock) || rdev->sb_size > PAGE_SIZE) { in analyse_superblocks() 3831 r->meta_bdev && !read_disk_sb(r, r->sb_size, true)) { in attempt_restore_of_faulty_devices()
|
D | md.c | 1204 rdev->sb_size = MD_SB_BYTES; in super_90_load() 1413 rdev->sb_size = MD_SB_BYTES; in super_90_sync() 1554 md_super_write(rdev->mddev, rdev, rdev->sb_start, rdev->sb_size, in super_90_rdev_size_change() 1665 rdev->sb_size = le32_to_cpu(sb->max_dev) * 2 + 256; in super_1_load() 1667 if (rdev->sb_size & bmask) in super_1_load() 1668 rdev->sb_size = (rdev->sb_size | bmask) + 1; in super_1_load() 1671 && rdev->data_offset < sb_start + (rdev->sb_size/512)) in super_1_load() 1674 && rdev->new_data_offset < sb_start + (rdev->sb_size/512)) in super_1_load() 2078 rdev->sb_size = max_dev * 2 + 256; in super_1_sync() 2080 if (rdev->sb_size & bmask) in super_1_sync() [all …]
|
D | md.h | 69 int sb_size; /* bytes in the superblock */ member
|
D | raid5-ppl.c | 1290 ((rdev->ppl.offset > 0 && rdev->ppl.offset < (rdev->sb_size >> 9)) || in ppl_validate_rdev()
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qede/ |
D | qede_main.c | 515 u32 sb_size, i; in qede_fp_sb_dump() local 517 sb_size = sizeof(struct status_block); in qede_fp_sb_dump() 519 for (i = 0; i < sb_size; i += 8) in qede_fp_sb_dump()
|