Home
last modified time | relevance | path

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

/drivers/staging/octeon/
Dethernet-rx.c157 int segment_size; in copy_segments_to_skb() local
174 segment_size = in copy_segments_to_skb()
181 if (segment_size > len) in copy_segments_to_skb()
182 segment_size = len; in copy_segments_to_skb()
186 segment_size); in copy_segments_to_skb()
187 len -= segment_size; in copy_segments_to_skb()
/drivers/target/
Dtarget_core_alua.c479 u64 segment_size, segment_mult, sectors, lba; in core_alua_state_lba_dependent() local
486 segment_size = dev->t10_alua.lba_map_segment_size; in core_alua_state_lba_dependent()
502 start_lba = do_div(tmp, segment_size * segment_mult); in core_alua_state_lba_dependent()
504 last_lba = first_lba + segment_size - 1; in core_alua_state_lba_dependent()
507 lba += segment_size; in core_alua_state_lba_dependent()
1371 int segment_size, int segment_mult) in core_alua_set_lba_map() argument
1379 dev->t10_alua.lba_map_segment_size = segment_size; in core_alua_set_lba_map()
Dtarget_core_configfs.c2131 unsigned long segment_size = -1, segment_mult = -1; in target_dev_lba_map_store() local
2144 &segment_size, &segment_mult) != 2) { in target_dev_lba_map_store()
2230 segment_size, segment_mult); in target_dev_lba_map_store()
/drivers/block/
Drbd.c1265 u64 segment_size = rbd_obj_bytes(&rbd_dev->header); in rbd_segment_offset() local
1267 return offset & (segment_size - 1); in rbd_segment_offset()
1273 u64 segment_size = rbd_obj_bytes(&rbd_dev->header); in rbd_segment_length() local
1275 offset &= segment_size - 1; in rbd_segment_length()
1278 if (offset + length > segment_size) in rbd_segment_length()
1279 length = segment_size - offset; in rbd_segment_length()
4382 u64 segment_size; in rbd_init_disk() local
4423 segment_size = rbd_obj_bytes(&rbd_dev->header); in rbd_init_disk()
4424 blk_queue_max_hw_sectors(q, segment_size / SECTOR_SIZE); in rbd_init_disk()
4427 blk_queue_max_segment_size(q, segment_size); in rbd_init_disk()
[all …]
/drivers/staging/rtlwifi/halmac/halmac_88xx/
Dhalmac_func_88xx.c146 state->psd_set.segment_size = 0; in halmac_init_offload_feature_state_machine_88xx()
2468 u8 segment_id = 0, segment_size = 0, h2c_seq = 0; in halmac_parse_psd_data_88xx() local
2492 segment_size = (u8)PSD_DATA_GET_SEGMENT_SIZE(c2h_buf); in halmac_parse_psd_data_88xx()
2502 psd_set->segment_size = segment_size; in halmac_parse_psd_data_88xx()
2504 memcpy(psd_set->data + segment_id * psd_set->segment_size, in halmac_parse_psd_data_88xx()
2505 c2h_buf + HALMAC_C2H_DATA_OFFSET_88XX, segment_size); in halmac_parse_psd_data_88xx()
2524 u8 segment_id = 0, segment_size = 0, h2c_seq = 0; in halmac_parse_efuse_data_88xx() local
2550 segment_size = (u8)EFUSE_DATA_GET_SEGMENT_SIZE(c2h_buf); in halmac_parse_efuse_data_88xx()
2552 halmac_adapter->efuse_segment_size = segment_size; in halmac_parse_efuse_data_88xx()
2564 c2h_buf + HALMAC_C2H_DATA_OFFSET_88XX, segment_size); in halmac_parse_efuse_data_88xx()
Dhalmac_api_88xx.c5087 halmac_adapter->halmac_state.psd_set.segment_size = 0; in halmac_psd_88xx()
/drivers/net/usb/
Dkaweth.c206 __le16 segment_size; member
1086 dev_info(dev, "MTU: %d\n", le16_to_cpu(kaweth->configuration.segment_size)); in kaweth_probe()
1147 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()
/drivers/staging/rtlwifi/halmac/
Dhalmac_type.h1186 u16 segment_size; member