Home
last modified time | relevance | path

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

/linux/rust/zerocopy/src/
H A Dlayout.rs1551 /// memory region, and `cast_type` selects its prefix or suffix. in test_validate_cast_and_convert_metadata()
1621 let endpoint = match cast_type { in test_validate_rust_layout()
1641 *elems == expected_elems && *split_at == match cast_type { in test_validate_rust_layout()
1654 cast_type: CastType, in test_validate_rust_layout()
1660 let cast_type = if kani::any() { CastType::Prefix } else { CastType::Suffix }; in test_validate_rust_layout()
1664 cast_type, in test_validate_rust_layout()
1713 let offset = match cast_type { in test_validate_rust_layout()
1785 let split_at = match cast_type { in test_validate_rust_layout()
3288 /// cast_type -------------------------+ | |
3325 .validate($addr:tt, $bytes_len:tt, $cast_type
[all...]
H A Dlib.rs3458 cast_type: CastType,
3465 match Ptr::from_ref(source.as_bytes()).try_cast_into::<T, BecauseImmutable>(cast_type, meta) {
3492 cast_type: CastType,
3495 match Ptr::from_mut(candidate).try_cast_into::<T, BecauseExclusive>(cast_type, meta) {
5714 cast_type: CastType,
5721 .try_cast_into::<_, BecauseImmutable>(cast_type, meta)
5743 cast_type: CastType,
5746 .try_cast_into::<_, BecauseExclusive>(cast_type, meta) in as_bytes()
8146 for cast_type in [CastType::Prefix, CastType::Suffix] {
8147 let (expected, expected_rest) = match cast_type {
[all...]
/linux/drivers/s390/net/
H A Dqeth_l3_main.c1579 int cast_type = n->type; in qeth_l3_get_cast_type_rcu() local
1582 if ((cast_type == RTN_BROADCAST) || in qeth_l3_get_cast_type_rcu()
1583 (cast_type == RTN_MULTICAST) || in qeth_l3_get_cast_type_rcu()
1584 (cast_type == RTN_ANYCAST)) in qeth_l3_get_cast_type_rcu()
1585 return cast_type; in qeth_l3_get_cast_type_rcu()
1610 int cast_type; in qeth_l3_get_cast_type() local
1614 cast_type = qeth_l3_get_cast_type_rcu(skb, dst, proto); in qeth_l3_get_cast_type()
1617 return cast_type; in qeth_l3_get_cast_type()
1620 static u8 qeth_l3_cast_type_to_flag(int cast_type) in qeth_l3_cast_type_to_flag() argument
1622 if (cast_type == RTN_MULTICAST) in qeth_l3_cast_type_to_flag()
[all …]
H A Dqeth_l2_main.c163 int cast_type = qeth_get_ether_cast_type(skb); in qeth_l2_fill_header() local
177 if (cast_type == RTN_MULTICAST) in qeth_l2_fill_header()
179 else if (cast_type == RTN_BROADCAST) in qeth_l2_fill_header()
H A Dqeth_core.h1095 u8 cast_type, struct net_device *sb_dev);
H A Dqeth_core_main.c7021 u8 cast_type, struct net_device *sb_dev) in qeth_iqd_select_queue() argument
7025 if (cast_type != RTN_UNICAST) in qeth_iqd_select_queue()
/linux/rust/zerocopy/src/pointer/
H A Dinner.rs562 cast_type: CastType,
578 cast_type, in try_cast_into()
602 let (target, remainder) = match cast_type { in try_cast_into()
H A Dptr.rs1137 cast_type: CastType, in try_cast_into()
1147 let (inner, remainder) = self.as_inner().try_cast_into(cast_type, meta).map_err( in try_cast_into()
1465 for cast_type in [CastType::Prefix, CastType::Suffix] {
1467 .try_cast_into::<T, BecauseImmutable>(cast_type, meta)
1477 match cast_type {
/linux/rust/zerocopy/src/util/
H A Dmod.rs570 cast_type: CastType, in padding_needed_for()
601 layout.validate_cast_and_convert_metadata(addr, bytes_len.get(), cast_type)?; in validate_cast_and_convert_metadata()