/drivers/media/usb/stk1160/ |
D | stk1160-video.c | 414 int i, j, k, sb_size, max_packets, num_bufs; in stk1160_alloc_isoc() local 428 sb_size = max_packets * dev->max_pkt_size; in stk1160_alloc_isoc() 456 sb_size, GFP_KERNEL, &urb->transfer_dma); in stk1160_alloc_isoc() 458 dev->isoc_ctl.transfer_buffer[i] = kmalloc(sb_size, GFP_KERNEL); in stk1160_alloc_isoc() 462 sb_size, i); in stk1160_alloc_isoc() 469 memset(dev->isoc_ctl.transfer_buffer[i], 0, sb_size); in stk1160_alloc_isoc() 477 urb->transfer_buffer_length = sb_size; in stk1160_alloc_isoc()
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-audio.c | 263 int sb_size; in cx231xx_init_audio_isoc() local 271 sb_size = CX231XX_ISO_NUM_AUDIO_PACKETS * dev->adev.max_pkt_size; in cx231xx_init_audio_isoc() 277 dev->adev.transfer_buffer[i] = kmalloc(sb_size, GFP_ATOMIC); in cx231xx_init_audio_isoc() 281 memset(dev->adev.transfer_buffer[i], 0x80, sb_size); in cx231xx_init_audio_isoc() 300 urb->transfer_buffer_length = sb_size; in cx231xx_init_audio_isoc() 324 int sb_size; in cx231xx_init_audio_bulk() local 332 sb_size = CX231XX_NUM_AUDIO_PACKETS * dev->adev.max_pkt_size; in cx231xx_init_audio_bulk() 338 dev->adev.transfer_buffer[i] = kmalloc(sb_size, GFP_ATOMIC); in cx231xx_init_audio_bulk() 342 memset(dev->adev.transfer_buffer[i], 0x80, sb_size); in cx231xx_init_audio_bulk() 359 urb->transfer_buffer_length = sb_size; in cx231xx_init_audio_bulk()
|
D | cx231xx-core.c | 993 int sb_size, pipe; in cx231xx_init_isoc() local 1046 sb_size = max_packets * dev->video_mode.isoc_ctl.max_pkt_size; in cx231xx_init_isoc() 1064 usb_alloc_coherent(dev->udev, sb_size, GFP_KERNEL, in cx231xx_init_isoc() 1069 sb_size, i, in cx231xx_init_isoc() 1074 memset(dev->video_mode.isoc_ctl.transfer_buffer[i], 0, sb_size); in cx231xx_init_isoc() 1081 sb_size, cx231xx_isoc_irq_callback, dma_q, 1); in cx231xx_init_isoc() 1128 int sb_size, pipe; in cx231xx_init_bulk() local 1181 sb_size = max_packets * dev->video_mode.bulk_ctl.max_pkt_size; in cx231xx_init_bulk() 1200 usb_alloc_coherent(dev->udev, sb_size, GFP_KERNEL, in cx231xx_init_bulk() 1205 sb_size, i, in cx231xx_init_bulk() [all …]
|
D | cx231xx-vbi.c | 380 int sb_size, pipe; in cx231xx_init_vbi_isoc() local 427 sb_size = max_packets * dev->vbi_mode.bulk_ctl.max_pkt_size; in cx231xx_init_vbi_isoc() 441 kzalloc(sb_size, GFP_KERNEL); in cx231xx_init_vbi_isoc() 445 sb_size, i, in cx231xx_init_vbi_isoc() 454 sb_size, cx231xx_irq_vbi_callback, dma_q); in cx231xx_init_vbi_isoc()
|
/drivers/media/usb/em28xx/ |
D | em28xx-core.c | 891 int sb_size, pipe; in em28xx_alloc_urbs() local 946 sb_size = packet_multiplier * usb_bufs->max_pkt_size; in em28xx_alloc_urbs() 957 usb_bufs->buf[i] = kzalloc(sb_size, GFP_KERNEL); in em28xx_alloc_urbs() 978 sb_size, em28xx_irq_callback, dev); in em28xx_alloc_urbs() 985 sb_size, em28xx_irq_callback, dev, 1); in em28xx_alloc_urbs()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_buffers.c | 104 u64 sb_size; member 188 size = mlxsw_sp_bytes_cells(mlxsw_sp, mlxsw_sp->sb->sb_size); in mlxsw_sp_sb_pr_write() 214 mlxsw_sp->sb->sb_size); in mlxsw_sp_sb_cm_write() 917 mlxsw_sp->sb->sb_size = MLXSW_CORE_RES_GET(mlxsw_sp->core, in mlxsw_sp_buffers_init() 943 mlxsw_sp->sb->sb_size, in mlxsw_sp_buffers_init()
|
/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() 240 sb_size, GFP_KERNEL, &urb->transfer_dma); in au0828_init_isoc() 243 sb_size, i, in au0828_init_isoc() 248 memset(dev->isoc_ctl.transfer_buffer[i], 0, sb_size); in au0828_init_isoc() 254 dev->isoc_ctl.transfer_buffer[i], sb_size, in au0828_init_isoc()
|
/drivers/media/usb/tm6000/ |
D | tm6000-video.c | 552 int i, j, sb_size, pipe, size, max_packets; in tm6000_prepare_isoc() local 580 sb_size = max_packets * size; in tm6000_prepare_isoc() 581 dev->urb_size = sb_size; in tm6000_prepare_isoc() 599 max_packets, num_bufs, sb_size, in tm6000_prepare_isoc() 627 dev->isoc_ctl.transfer_buffer[i], sb_size, in tm6000_prepare_isoc()
|
/drivers/media/usb/usbvision/ |
D | usbvision-core.c | 2255 int sb_size; in usbvision_init_isoc() local 2269 sb_size = USBVISION_URB_FRAMES * usbvision->isoc_packet_size; in usbvision_init_isoc() 2292 sb_size, in usbvision_init_isoc() 2344 int sb_size = USBVISION_URB_FRAMES * usbvision->isoc_packet_size; in usbvision_stop_isoc() local 2354 sb_size, in usbvision_stop_isoc()
|
/drivers/md/ |
D | dm-raid.c | 2169 memset(sb + 1, 0, rdev->sb_size - sizeof(*sb)); in super_sync() 2187 r = read_disk_sb(rdev, rdev->sb_size, false); in super_load() 2536 rdev->sb_size = bdev_logical_block_size(rdev->meta_bdev); in analyse_superblocks() 2537 if (rdev->sb_size < sizeof(struct dm_raid_superblock) || rdev->sb_size > PAGE_SIZE) { in analyse_superblocks() 3794 r->meta_bdev && !read_disk_sb(r, r->sb_size, true)) { in attempt_restore_of_faulty_devices()
|
D | md.c | 1151 rdev->sb_size = MD_SB_BYTES; in super_90_load() 1360 rdev->sb_size = MD_SB_BYTES; in super_90_sync() 1501 md_super_write(rdev->mddev, rdev, rdev->sb_start, rdev->sb_size, in super_90_rdev_size_change() 1614 rdev->sb_size = le32_to_cpu(sb->max_dev) * 2 + 256; in super_1_load() 1616 if (rdev->sb_size & bmask) in super_1_load() 1617 rdev->sb_size = (rdev->sb_size | bmask) + 1; in super_1_load() 1620 && rdev->data_offset < sb_start + (rdev->sb_size/512)) in super_1_load() 1623 && rdev->new_data_offset < sb_start + (rdev->sb_size/512)) in super_1_load() 2028 rdev->sb_size = max_dev * 2 + 256; in super_1_sync() 2030 if (rdev->sb_size & bmask) in super_1_sync() [all …]
|
D | md.h | 59 int sb_size; /* bytes in the superblock */ member
|
D | raid5-ppl.c | 1297 ((rdev->ppl.offset > 0 && rdev->ppl.offset < (rdev->sb_size >> 9)) || in ppl_validate_rdev()
|