Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 15 of 15) sorted by relevance

/net/openvswitch/
A Dvport.c126 size_t alloc_size; in ovs_vport_alloc() local
129 alloc_size = sizeof(struct vport); in ovs_vport_alloc()
131 alloc_size = ALIGN(alloc_size, VPORT_ALIGN); in ovs_vport_alloc()
132 alloc_size += priv_size; in ovs_vport_alloc()
135 vport = kzalloc(alloc_size, GFP_KERNEL); in ovs_vport_alloc()
/net/bluetooth/
A Dcoredump.c59 hdev->dump.alloc_size, state); in hci_devcd_update_state()
92 hdev->dump.alloc_size = 0; in hci_devcd_reset()
115 hdev->dump.alloc_size = size; in hci_devcd_alloc()
277 hdev->dump.alloc_size); in hci_devcd_handle_pkt_complete()
296 hdev->dump.alloc_size); in hci_devcd_handle_pkt_abort()
411 hdev->dump.alloc_size); in hci_devcd_timeout()
A Dhci_core.c2440 unsigned int alloc_size; in hci_alloc_dev_priv() local
2442 alloc_size = sizeof(*hdev); in hci_alloc_dev_priv()
2445 alloc_size += sizeof_priv; in hci_alloc_dev_priv()
2448 hdev = kzalloc(alloc_size, GFP_KERNEL); in hci_alloc_dev_priv()
A Dl2cap_core.c324 size_t alloc_size, i; in l2cap_seq_list_init() local
330 alloc_size = roundup_pow_of_two(size); in l2cap_seq_list_init()
332 seq_list->list = kmalloc_array(alloc_size, sizeof(u16), GFP_KERNEL); in l2cap_seq_list_init()
336 seq_list->mask = alloc_size - 1; in l2cap_seq_list_init()
339 for (i = 0; i < alloc_size; i++) in l2cap_seq_list_init()
/net/ieee802154/
A Dcore.c101 size_t alloc_size; in wpan_phy_new() local
103 alloc_size = sizeof(*rdev) + priv_size; in wpan_phy_new()
104 rdev = kzalloc(alloc_size, GFP_KERNEL); in wpan_phy_new()
/net/core/
A Ddev_addr_lists.c55 int alloc_size; in __hw_addr_create() local
57 alloc_size = sizeof(*ha); in __hw_addr_create()
58 if (alloc_size < L1_CACHE_BYTES) in __hw_addr_create()
59 alloc_size = L1_CACHE_BYTES; in __hw_addr_create()
60 ha = kmalloc(alloc_size, GFP_ATOMIC); in __hw_addr_create()
/net/rxrpc/
A Drxgk.c368 sg_set_buf(&sg[0], txb->data, txb->alloc_size); in rxgk_secure_packet_integrity()
371 sg, 1, txb->alloc_size, in rxgk_secure_packet_integrity()
375 if (txb->alloc_size == RXRPC_JUMBO_DATALEN) in rxgk_secure_packet_integrity()
409 sg_set_buf(&sg[0], txb->data, txb->alloc_size); in rxgk_secure_packet_encrypted()
412 sg, 1, txb->alloc_size, in rxgk_secure_packet_encrypted()
417 if (txb->alloc_size == RXRPC_JUMBO_DATALEN) in rxgk_secure_packet_encrypted()
A Dtxbuf.c49 txb->alloc_size = data_size; in rxrpc_alloc_data_txbuf()
A Drxkad.c395 if (txb->alloc_size == RXRPC_JUMBO_DATALEN) in rxkad_secure_packet()
400 if (txb->alloc_size == RXRPC_JUMBO_DATALEN) in rxkad_secure_packet()
409 if (txb->pkt_len < txb->alloc_size) { in rxkad_secure_packet()
410 size_t gap = txb->alloc_size - txb->pkt_len; in rxkad_secure_packet()
A Dar-internal.h926 unsigned short alloc_size; /* Amount of bufferage allocated */ member
/net/ethtool/
A Drss.c626 size_t alloc_size; in rss_set_prep_indir() local
660 alloc_size = array_size(data->indir_size, sizeof(rxfh->indir[0])); in rss_set_prep_indir()
661 rxfh->indir = kzalloc(alloc_size, GFP_KERNEL); in rss_set_prep_indir()
665 nla_memcpy(rxfh->indir, tb[ETHTOOL_A_RSS_INDIR], alloc_size); in rss_set_prep_indir()
/net/netlink/
A Daf_netlink.c2266 int alloc_size; in netlink_dump() local
2285 alloc_size = max_recvmsg_len; in netlink_dump()
2286 skb = alloc_skb(alloc_size, in netlink_dump()
2291 alloc_size = alloc_min_size; in netlink_dump()
2292 skb = alloc_skb(alloc_size, GFP_KERNEL); in netlink_dump()
2314 skb_reserve(skb, skb_tailroom(skb) - alloc_size); in netlink_dump()
/net/iucv/
A Diucv.c581 size_t alloc_size; in iucv_enable() local
586 alloc_size = iucv_max_pathid * sizeof(*iucv_path_table); in iucv_enable()
587 iucv_path_table = kzalloc(alloc_size, GFP_KERNEL); in iucv_enable()
/net/wireless/
A Dcore.c449 int alloc_size; in wiphy_new_nm() local
468 alloc_size = sizeof(*rdev) + sizeof_priv; in wiphy_new_nm()
470 rdev = kzalloc(alloc_size, GFP_KERNEL); in wiphy_new_nm()
/net/netfilter/
A Dnf_tables_api.c5321 size_t alloc_size; in nf_tables_newset() local
5525 alloc_size = sizeof(*set) + size + udlen; in nf_tables_newset()
5526 if (alloc_size < size || alloc_size > INT_MAX) in nf_tables_newset()
5532 set = kvzalloc(alloc_size, GFP_KERNEL_ACCOUNT); in nf_tables_newset()

Completed in 69 milliseconds