Home
last modified time | relevance | path

Searched refs:segment_size (Results 1 – 6 of 6) sorted by relevance

/drivers/staging/octeon/
Dethernet-rx.c378 int segment_size = CVMX_FPA_PACKET_POOL_SIZE - in cvm_oct_napi_poll() local
384 if (segment_size > len) in cvm_oct_napi_poll()
385 segment_size = len; in cvm_oct_napi_poll()
387 memcpy(skb_put(skb, segment_size), in cvm_oct_napi_poll()
389 segment_size); in cvm_oct_napi_poll()
390 len -= segment_size; in cvm_oct_napi_poll()
/drivers/target/
Dtarget_core_alua.c491 u64 segment_size, segment_mult, sectors, lba; in core_alua_state_lba_dependent() local
498 segment_size = dev->t10_alua.lba_map_segment_size; in core_alua_state_lba_dependent()
514 start_lba = do_div(tmp, segment_size * segment_mult); in core_alua_state_lba_dependent()
516 last_lba = first_lba + segment_size - 1; in core_alua_state_lba_dependent()
519 lba += segment_size; in core_alua_state_lba_dependent()
1420 int segment_size, int segment_mult) in core_alua_set_lba_map() argument
1428 dev->t10_alua.lba_map_segment_size = segment_size; in core_alua_set_lba_map()
Dtarget_core_configfs.c1816 unsigned long segment_size = -1, segment_mult = -1; in target_core_store_dev_lba_map() local
1829 &segment_size, &segment_mult) != 2) { in target_core_store_dev_lba_map()
1915 segment_size, segment_mult); in target_core_store_dev_lba_map()
/drivers/block/
Drbd.c1199 u64 segment_size = (u64) 1 << rbd_dev->header.obj_order; in rbd_segment_offset() local
1201 return offset & (segment_size - 1); in rbd_segment_offset()
1207 u64 segment_size = (u64) 1 << rbd_dev->header.obj_order; in rbd_segment_length() local
1209 offset &= segment_size - 1; in rbd_segment_length()
1212 if (offset + length > segment_size) in rbd_segment_length()
1213 length = segment_size - offset; in rbd_segment_length()
3744 u64 segment_size; in rbd_init_disk() local
3770 segment_size = rbd_obj_bytes(&rbd_dev->header); in rbd_init_disk()
3771 blk_queue_max_hw_sectors(q, segment_size / SECTOR_SIZE); in rbd_init_disk()
3772 blk_queue_max_segment_size(q, segment_size); in rbd_init_disk()
[all …]
/drivers/net/usb/
Dkaweth.c206 __le16 segment_size; member
1116 dev_info(dev, "MTU: %d\n", le16_to_cpu(kaweth->configuration.segment_size)); in kaweth_probe()
1177 netdev->mtu = le16_to_cpu(kaweth->configuration.segment_size); in kaweth_probe()
/drivers/usb/wusbcore/
Dwa-xfer.c553 int segment_size = 0, frame_count = 0; in __wa_seg_calculate_isoc_frame_count() local
559 && ((segment_size + iso_frame_desc[index].length) in __wa_seg_calculate_isoc_frame_count()
578 segment_size += iso_frame_desc[index].length; in __wa_seg_calculate_isoc_frame_count()
584 *total_size = segment_size; in __wa_seg_calculate_isoc_frame_count()