/net/sctp/ |
D | bind_addr.c | 34 union sctp_addr *addr, enum sctp_scope scope, 48 struct sctp_sockaddr_entry *addr; in sctp_bind_addr_copy() local 55 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_copy() 56 error = sctp_copy_one_addr(net, dest, &addr->a, scope, in sctp_bind_addr_copy() 67 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_copy() 68 error = sctp_copy_one_addr(net, dest, &addr->a, in sctp_bind_addr_copy() 98 struct sctp_sockaddr_entry *addr; in sctp_bind_addr_dup() local 104 list_for_each_entry(addr, &src->address_list, list) { in sctp_bind_addr_dup() 105 error = sctp_add_bind_addr(dest, &addr->a, sizeof(addr->a), in sctp_bind_addr_dup() 126 struct sctp_sockaddr_entry *addr, *temp; in sctp_bind_addr_clean() local [all …]
|
D | ipv6.c | 64 static void sctp_v6_to_addr(union sctp_addr *addr, struct in6_addr *saddr, 79 struct sctp_sockaddr_entry *addr = NULL; in sctp_inet6addr_event() local 86 addr = kzalloc(sizeof(*addr), GFP_ATOMIC); in sctp_inet6addr_event() 87 if (addr) { in sctp_inet6addr_event() 88 addr->a.v6.sin6_family = AF_INET6; in sctp_inet6addr_event() 89 addr->a.v6.sin6_addr = ifa->addr; in sctp_inet6addr_event() 90 addr->a.v6.sin6_scope_id = ifa->idev->dev->ifindex; in sctp_inet6addr_event() 91 addr->valid = 1; in sctp_inet6addr_event() 93 list_add_tail_rcu(&addr->list, &net->sctp.local_addr_list); in sctp_inet6addr_event() 94 sctp_addr_wq_mgmt(net, addr, SCTP_ADDR_NEW); in sctp_inet6addr_event() [all …]
|
D | protocol.c | 77 struct sctp_sockaddr_entry *addr; in sctp_v4_copy_addrlist() local 87 addr = kzalloc(sizeof(*addr), GFP_ATOMIC); in sctp_v4_copy_addrlist() 88 if (addr) { in sctp_v4_copy_addrlist() 89 addr->a.v4.sin_family = AF_INET; in sctp_v4_copy_addrlist() 90 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_v4_copy_addrlist() 91 addr->valid = 1; in sctp_v4_copy_addrlist() 92 INIT_LIST_HEAD(&addr->list); in sctp_v4_copy_addrlist() 93 list_add_tail(&addr->list, addrlist); in sctp_v4_copy_addrlist() 122 struct sctp_sockaddr_entry *addr; in sctp_free_local_addr_list() local 126 addr = list_entry(pos, struct sctp_sockaddr_entry, list); in sctp_free_local_addr_list() [all …]
|
/net/can/j1939/ |
D | address-claim.c | 42 if (skb->len < 3 || skcb->addr.pgn != J1939_PGN_REQUEST) in j1939_ac_msg_is_request() 61 if (skcb->addr.src_name != j1939_skb_to_name(skb)) { in j1939_ac_verify_outgoing() 66 if (skcb->addr.sa == J1939_NO_ADDR) { in j1939_ac_verify_outgoing() 72 if (skcb->addr.dst_name || skcb->addr.da != J1939_NO_ADDR) { in j1939_ac_verify_outgoing() 83 u8 addr; in j1939_ac_fixup() local 86 if (skcb->addr.pgn == J1939_PGN_ADDRESS_CLAIMED) { in j1939_ac_fixup() 93 ecu = j1939_ecu_get_by_name(priv, skcb->addr.src_name); in j1939_ac_fixup() 97 if (ecu->addr != skcb->addr.sa) in j1939_ac_fixup() 101 } else if (skcb->addr.src_name) { in j1939_ac_fixup() 103 addr = j1939_name_to_addr(priv, skcb->addr.src_name); in j1939_ac_fixup() [all …]
|
D | socket.c | 219 if (jsk->addr.src_name && skcb->addr.dst_name) { in j1939_sk_match_dst() 220 if (jsk->addr.src_name != skcb->addr.dst_name) in j1939_sk_match_dst() 228 if (j1939_address_is_unicast(skcb->addr.da)) { in j1939_sk_match_dst() 229 if (jsk->addr.sa != skcb->addr.da) in j1939_sk_match_dst() 244 if (jsk->addr.dst_name && skcb->addr.src_name) { in j1939_sk_match_dst() 245 if (jsk->addr.dst_name != skcb->addr.src_name) in j1939_sk_match_dst() 248 if (jsk->addr.da != skcb->addr.sa) in j1939_sk_match_dst() 255 jsk->pgn_rx_filter != skcb->addr.pgn) in j1939_sk_match_dst() 278 if ((skcb->addr.pgn & f->pgn_mask) != f->pgn) in j1939_sk_match_filter() 280 if ((skcb->addr.sa & f->addr_mask) != f->addr) in j1939_sk_match_filter() [all …]
|
D | bus.c | 43 return j1939_ecu_find_by_addr_locked(priv, ecu->addr) == ecu; in j1939_ecu_is_mapped_locked() 55 if (!j1939_address_is_unicast(ecu->addr)) in j1939_ecu_map_locked() 58 ent = &priv->ents[ecu->addr]; in j1939_ecu_map_locked() 62 ecu->addr, ecu->name); in j1939_ecu_map_locked() 79 if (!j1939_address_is_unicast(ecu->addr)) in j1939_ecu_unmap_locked() 85 ent = &priv->ents[ecu->addr]; in j1939_ecu_unmap_locked() 158 ecu->addr = J1939_IDLE_ADDR; in j1939_ecu_create_locked() 173 u8 addr) in j1939_ecu_find_by_addr_locked() argument 177 return priv->ents[addr].ecu; in j1939_ecu_find_by_addr_locked() 180 struct j1939_ecu *j1939_ecu_get_by_addr_locked(struct j1939_priv *priv, u8 addr) in j1939_ecu_get_by_addr_locked() argument [all …]
|
D | transport.c | 322 return (!skcb->addr.dst_name && (skcb->addr.da == 0xff)); in j1939_cb_is_broadcast() 361 if (j1939_address_is_unicast(skcb->addr.da) && in j1939_session_skb_queue() 362 priv->ents[skcb->addr.da].nusers) in j1939_session_skb_queue() 515 struct j1939_addr *addr, in j1939_session_get_by_addr_locked() argument 524 if (j1939_session_match(&session->skcb.addr, addr, reverse) && in j1939_session_get_by_addr_locked() 545 if (session->skcb.addr.type == J1939_SIMPLE && in j1939_session_get_simple() 556 struct j1939_addr *addr, in j1939_session_get_by_addr() argument 564 addr, reverse, transmitter); in j1939_session_get_by_addr() 574 swap(skcb->addr.dst_name, skcb->addr.src_name); in j1939_skbcb_swap() 575 swap(skcb->addr.da, skcb->addr.sa); in j1939_skbcb_swap() [all …]
|
/net/ceph/ |
D | decode.c | 11 struct ceph_entity_addr *addr) in ceph_decode_entity_addr_versioned() argument 26 ceph_decode_copy_safe(p, end, &addr->type, sizeof(addr->type), bad); in ceph_decode_entity_addr_versioned() 28 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad); in ceph_decode_entity_addr_versioned() 31 if (addr_len > sizeof(addr->in_addr)) in ceph_decode_entity_addr_versioned() 34 memset(&addr->in_addr, 0, sizeof(addr->in_addr)); in ceph_decode_entity_addr_versioned() 36 ceph_decode_copy_safe(p, end, &addr->in_addr, addr_len, bad); in ceph_decode_entity_addr_versioned() 38 addr->in_addr.ss_family = in ceph_decode_entity_addr_versioned() 39 le16_to_cpu((__force __le16)addr->in_addr.ss_family); in ceph_decode_entity_addr_versioned() 51 struct ceph_entity_addr *addr) in ceph_decode_entity_addr_legacy() argument 62 addr->type = CEPH_ENTITY_ADDR_TYPE_LEGACY; in ceph_decode_entity_addr_legacy() [all …]
|
/net/vmw_vsock/ |
D | vsock_addr.c | 14 void vsock_addr_init(struct sockaddr_vm *addr, u32 cid, u32 port) in vsock_addr_init() argument 16 memset(addr, 0, sizeof(*addr)); in vsock_addr_init() 17 addr->svm_family = AF_VSOCK; in vsock_addr_init() 18 addr->svm_cid = cid; in vsock_addr_init() 19 addr->svm_port = port; in vsock_addr_init() 23 int vsock_addr_validate(const struct sockaddr_vm *addr) in vsock_addr_validate() argument 27 if (!addr) in vsock_addr_validate() 30 if (addr->svm_family != AF_VSOCK) in vsock_addr_validate() 33 if (addr->svm_flags & ~svm_valid_flags) in vsock_addr_validate() 40 bool vsock_addr_bound(const struct sockaddr_vm *addr) in vsock_addr_bound() argument [all …]
|
/net/core/ |
D | dev_addr_lists.c | 20 __hw_addr_create(const unsigned char *addr, int addr_len, in __hw_addr_create() argument 32 memcpy(ha->addr, addr, addr_len); in __hw_addr_create() 43 const unsigned char *addr, int addr_len, in __hw_addr_add_ex() argument 54 if (ha && !memcmp(addr, ha->addr, addr_len) && in __hw_addr_add_ex() 62 diff = memcmp(addr, ha->addr, addr_len); in __hw_addr_add_ex() 93 ha = __hw_addr_create(addr, addr_len, addr_type, global, sync); in __hw_addr_add_ex() 115 const unsigned char *addr, int addr_len, in __hw_addr_add() argument 118 return __hw_addr_add_ex(list, addr, addr_len, addr_type, false, false, in __hw_addr_add() 151 const unsigned char *addr, int addr_len, in __hw_addr_lookup() argument 162 if (ha && !memcmp(addr, ha->addr, addr_len) && in __hw_addr_lookup() [all …]
|
D | of_net.c | 49 static int of_get_mac_addr(struct device_node *np, const char *name, u8 *addr) in of_get_mac_addr() argument 54 memcpy(addr, pp->value, ETH_ALEN); in of_get_mac_addr() 60 static int of_get_mac_addr_nvmem(struct device_node *np, u8 *addr) in of_get_mac_addr_nvmem() argument 72 ret = nvmem_get_mac_address(&pdev->dev, addr); in of_get_mac_addr_nvmem() 92 memcpy(addr, mac, ETH_ALEN); in of_get_mac_addr_nvmem() 124 int of_get_mac_address(struct device_node *np, u8 *addr) in of_get_mac_address() argument 131 ret = of_get_mac_addr(np, "mac-address", addr); in of_get_mac_address() 135 ret = of_get_mac_addr(np, "local-mac-address", addr); in of_get_mac_address() 139 ret = of_get_mac_addr(np, "address", addr); in of_get_mac_address() 143 return of_get_mac_addr_nvmem(np, addr); in of_get_mac_address() [all …]
|
/net/netlabel/ |
D | netlabel_addrlist.c | 46 struct netlbl_af4list *netlbl_af4list_search(__be32 addr, in netlbl_af4list_search() argument 52 if (iter->valid && (addr & iter->mask) == iter->addr) in netlbl_af4list_search() 70 struct netlbl_af4list *netlbl_af4list_search_exact(__be32 addr, in netlbl_af4list_search_exact() argument 77 if (iter->valid && iter->addr == addr && iter->mask == mask) in netlbl_af4list_search_exact() 96 struct netlbl_af6list *netlbl_af6list_search(const struct in6_addr *addr, in netlbl_af6list_search() argument 103 ipv6_masked_addr_cmp(&iter->addr, &iter->mask, addr) == 0) in netlbl_af6list_search() 121 struct netlbl_af6list *netlbl_af6list_search_exact(const struct in6_addr *addr, in netlbl_af6list_search_exact() argument 129 ipv6_addr_equal(&iter->addr, addr) && in netlbl_af6list_search_exact() 152 iter = netlbl_af4list_search(entry->addr, head); in netlbl_af4list_add() 154 iter->addr == entry->addr && iter->mask == entry->mask) in netlbl_af4list_add() [all …]
|
/net/mptcp/ |
D | pm_netlink.c | 27 struct mptcp_addr_info addr; member 35 struct mptcp_addr_info addr; member 69 addr_equals = a->addr.s_addr == b->addr.s_addr; in addresses_equal() 75 addr_equals = a->addr.s_addr == b->addr6.s6_addr32[3]; in addresses_equal() 78 addr_equals = a->addr6.s6_addr32[3] == b->addr.s_addr; in addresses_equal() 90 static bool address_zero(const struct mptcp_addr_info *addr) in address_zero() argument 95 zero.family = addr->family; in address_zero() 97 return addresses_equal(addr, &zero, true); in address_zero() 101 struct mptcp_addr_info *addr) in local_address() argument 103 addr->family = skc->skc_family; in local_address() [all …]
|
/net/bridge/ |
D | br_fdb.c | 36 const unsigned char *addr, u16 vid); 91 const unsigned char *addr, in fdb_find_rcu() argument 99 memcpy(key.addr.addr, addr, sizeof(key.addr.addr)); in fdb_find_rcu() 106 const unsigned char *addr, in br_fdb_find() argument 114 fdb = fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find() 121 const unsigned char *addr, in br_fdb_find_port() argument 135 f = br_fdb_find_rcu(br, addr, vid); in br_fdb_find_port() 145 const unsigned char *addr, in br_fdb_find_rcu() argument 148 return fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find_rcu() 156 static void fdb_add_hw_addr(struct net_bridge *br, const unsigned char *addr) in fdb_add_hw_addr() argument [all …]
|
D | br_stp_bpdu.c | 94 buf[7] = bpdu->root.addr[0]; in br_send_config_bpdu() 95 buf[8] = bpdu->root.addr[1]; in br_send_config_bpdu() 96 buf[9] = bpdu->root.addr[2]; in br_send_config_bpdu() 97 buf[10] = bpdu->root.addr[3]; in br_send_config_bpdu() 98 buf[11] = bpdu->root.addr[4]; in br_send_config_bpdu() 99 buf[12] = bpdu->root.addr[5]; in br_send_config_bpdu() 106 buf[19] = bpdu->bridge_id.addr[0]; in br_send_config_bpdu() 107 buf[20] = bpdu->bridge_id.addr[1]; in br_send_config_bpdu() 108 buf[21] = bpdu->bridge_id.addr[2]; in br_send_config_bpdu() 109 buf[22] = bpdu->bridge_id.addr[3]; in br_send_config_bpdu() [all …]
|
D | br_stp_if.c | 225 void br_stp_change_bridge_id(struct net_bridge *br, const unsigned char *addr) in br_stp_change_bridge_id() argument 235 br_fdb_change_mac_address(br, addr); in br_stp_change_bridge_id() 237 memcpy(oldaddr, br->bridge_id.addr, ETH_ALEN); in br_stp_change_bridge_id() 238 memcpy(br->bridge_id.addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 239 memcpy(br->dev->dev_addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 242 if (ether_addr_equal(p->designated_bridge.addr, oldaddr)) in br_stp_change_bridge_id() 243 memcpy(p->designated_bridge.addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 245 if (ether_addr_equal(p->designated_root.addr, oldaddr)) in br_stp_change_bridge_id() 246 memcpy(p->designated_root.addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 263 const unsigned char *addr = br_mac_zero; in br_stp_recalculate_bridge_id() local [all …]
|
/net/mctp/ |
D | af_mctp.c | 34 static bool mctp_sockaddr_is_ok(const struct sockaddr_mctp *addr) in mctp_sockaddr_is_ok() argument 36 return !addr->__smctp_pad0 && !addr->__smctp_pad1; in mctp_sockaddr_is_ok() 39 static int mctp_bind(struct socket *sock, struct sockaddr *addr, int addrlen) in mctp_bind() argument 49 if (addr->sa_family != AF_MCTP) in mctp_bind() 56 smctp = (struct sockaddr_mctp *)addr; in mctp_bind() 82 DECLARE_SOCKADDR(struct sockaddr_mctp *, addr, msg->msg_name); in mctp_sendmsg() 90 if (addr) { in mctp_sendmsg() 93 if (addr->smctp_family != AF_MCTP) in mctp_sendmsg() 95 if (!mctp_sockaddr_is_ok(addr)) in mctp_sendmsg() 97 if (addr->smctp_tag & ~(MCTP_TAG_MASK | MCTP_TAG_OWNER)) in mctp_sendmsg() [all …]
|
/net/llc/ |
D | af_llc.c | 83 static inline u8 llc_ui_addr_null(struct sockaddr_llc *addr) in llc_ui_addr_null() argument 85 return !memcmp(addr, &llc_ui_addrnull, sizeof(*addr)); in llc_ui_addr_null() 97 static inline u8 llc_ui_header_len(struct sock *sk, struct sockaddr_llc *addr) in llc_ui_header_len() argument 101 if (addr->sllc_test) in llc_ui_header_len() 103 else if (addr->sllc_xid) in llc_ui_header_len() 276 static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr) in llc_ui_autobind() argument 286 if (!addr->sllc_arphrd) in llc_ui_autobind() 287 addr->sllc_arphrd = ARPHRD_ETHER; in llc_ui_autobind() 288 if (addr->sllc_arphrd != ARPHRD_ETHER) in llc_ui_autobind() 293 if (dev && addr->sllc_arphrd != dev->type) { in llc_ui_autobind() [all …]
|
/net/tipc/ |
D | eth_media.c | 41 static int tipc_eth_addr2str(struct tipc_media_addr *addr, in tipc_eth_addr2str() argument 47 sprintf(strbuf, "%pM", addr->value); in tipc_eth_addr2str() 52 static int tipc_eth_addr2msg(char *msg, struct tipc_media_addr *addr) in tipc_eth_addr2msg() argument 56 memcpy(msg + TIPC_MEDIA_ADDR_OFFSET, addr->value, ETH_ALEN); in tipc_eth_addr2msg() 62 struct tipc_media_addr *addr, in tipc_eth_raw2addr() argument 65 memset(addr, 0, sizeof(*addr)); in tipc_eth_raw2addr() 66 ether_addr_copy(addr->value, msg); in tipc_eth_raw2addr() 67 addr->media_id = TIPC_MEDIA_TYPE_ETH; in tipc_eth_raw2addr() 68 addr->broadcast = is_broadcast_ether_addr(addr->value); in tipc_eth_raw2addr() 74 struct tipc_media_addr *addr, in tipc_eth_msg2addr() argument [all …]
|
D | udp_media.c | 84 struct udp_media_addr addr; member 106 static int tipc_udp_is_mcast_addr(struct udp_media_addr *addr) in tipc_udp_is_mcast_addr() argument 108 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_is_mcast_addr() 109 return ipv4_is_multicast(addr->ipv4.s_addr); in tipc_udp_is_mcast_addr() 112 return ipv6_addr_is_multicast(&addr->ipv6); in tipc_udp_is_mcast_addr() 118 static void tipc_udp_media_addr_set(struct tipc_media_addr *addr, in tipc_udp_media_addr_set() argument 121 memset(addr, 0, sizeof(struct tipc_media_addr)); in tipc_udp_media_addr_set() 122 addr->media_id = TIPC_MEDIA_TYPE_UDP; in tipc_udp_media_addr_set() 123 memcpy(addr->value, ua, sizeof(struct udp_media_addr)); in tipc_udp_media_addr_set() 126 addr->broadcast = TIPC_BROADCAST_SUPPORT; in tipc_udp_media_addr_set() [all …]
|
/net/mac80211/ |
D | fils_aead.c | 26 size_t num_elem, const u8 *addr[], size_t len[], u8 *v) in aes_s2v() argument 40 crypto_shash_digest(desc, addr[i], len[i], tmp); in aes_s2v() 49 crypto_shash_update(desc, addr[i], len[i] - AES_BLOCK_SIZE); in aes_s2v() 50 crypto_xor(d, addr[i] + len[i] - AES_BLOCK_SIZE, in aes_s2v() 56 crypto_xor(d, addr[i], len[i]); in aes_s2v() 68 size_t num_elem, const u8 *addr[], in aes_siv_encrypt() argument 81 addr[num_elem] = plain; in aes_siv_encrypt() 93 res = aes_s2v(tfm, num_elem, addr, len, v); in aes_siv_encrypt() 146 size_t num_elem, const u8 *addr[], size_t len[], in aes_siv_decrypt() argument 160 addr[num_elem] = out; in aes_siv_decrypt() [all …]
|
/net/atm/ |
D | pvc.c | 31 struct sockaddr_atmpvc *addr; in pvc_bind() local 37 addr = (struct sockaddr_atmpvc *)sockaddr; in pvc_bind() 38 if (addr->sap_family != AF_ATMPVC) in pvc_bind() 48 addr->sap_addr.vpi = vcc->vpi; in pvc_bind() 50 addr->sap_addr.vci = vcc->vci; in pvc_bind() 52 error = vcc_connect(sock, addr->sap_addr.itf, addr->sap_addr.vpi, in pvc_bind() 53 addr->sap_addr.vci); in pvc_bind() 92 struct sockaddr_atmpvc *addr; in pvc_getname() local 97 addr = (struct sockaddr_atmpvc *)sockaddr; in pvc_getname() 98 memset(addr, 0, sizeof(*addr)); in pvc_getname() [all …]
|
D | addr.c | 14 static int check_addr(const struct sockaddr_atmsvc *addr) in check_addr() argument 18 if (addr->sas_family != AF_ATMSVC) in check_addr() 20 if (!*addr->sas_addr.pub) in check_addr() 21 return *addr->sas_addr.prv ? 0 : -EINVAL; in check_addr() 23 if (!addr->sas_addr.pub[i]) in check_addr() 68 int atm_add_addr(struct atm_dev *dev, const struct sockaddr_atmsvc *addr, in atm_add_addr() argument 76 error = check_addr(addr); in atm_add_addr() 85 if (identical(&this->addr, addr)) { in atm_add_addr() 95 this->addr = *addr; in atm_add_addr() 103 int atm_del_addr(struct atm_dev *dev, const struct sockaddr_atmsvc *addr, in atm_del_addr() argument [all …]
|
/net/ipv6/ |
D | anycast.c | 50 static int ipv6_dev_ac_dec(struct net_device *dev, const struct in6_addr *addr); 52 static u32 inet6_acaddr_hash(struct net *net, const struct in6_addr *addr) in inet6_acaddr_hash() argument 54 u32 val = ipv6_addr_hash(addr) ^ net_hash_mix(net); in inet6_acaddr_hash() 63 int ipv6_sock_ac_join(struct sock *sk, int ifindex, const struct in6_addr *addr) in ipv6_sock_ac_join() argument 77 if (ipv6_addr_is_multicast(addr)) in ipv6_sock_ac_join() 83 if (ipv6_chk_addr_and_flags(net, addr, dev, true, 0, IFA_F_TENTATIVE)) in ipv6_sock_ac_join() 90 pac->acl_addr = *addr; in ipv6_sock_ac_join() 95 rt = rt6_lookup(net, addr, NULL, 0, NULL, 0); in ipv6_sock_ac_join() 132 if (!ipv6_chk_prefix(addr, dev)) { in ipv6_sock_ac_join() 139 err = __ipv6_dev_ac_inc(idev, addr); in ipv6_sock_ac_join() [all …]
|
/net/xdp/ |
D | xsk_queue.h | 114 static inline bool xskq_cons_read_addr_unchecked(struct xsk_queue *q, u64 *addr) in xskq_cons_read_addr_unchecked() argument 121 *addr = ring->desc[idx]; in xskq_cons_read_addr_unchecked() 133 chunk = xp_aligned_extract_addr(pool, desc->addr); in xp_aligned_validate_desc() 135 chunk_end = xp_aligned_extract_addr(pool, desc->addr + desc->len - 1); in xp_aligned_validate_desc() 151 u64 addr, base_addr; in xp_unaligned_validate_desc() local 153 base_addr = xp_unaligned_extract_addr(desc->addr); in xp_unaligned_validate_desc() 154 addr = xp_unaligned_add_offset_to_addr(desc->addr); in xp_unaligned_validate_desc() 159 if (base_addr >= pool->addrs_cnt || addr >= pool->addrs_cnt || in xp_unaligned_validate_desc() 160 addr + desc->len > pool->addrs_cnt || in xp_unaligned_validate_desc() 161 xp_desc_crosses_non_contig_pg(pool, addr, desc->len)) in xp_unaligned_validate_desc() [all …]
|