Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/infiniband/hw/i40iw/
Di40iw_hw.c52 u32 resources_size; in i40iw_initialize_hw_resources() local
66 resources_size = sizeof(struct i40iw_arp_entry) * arp_table_size; in i40iw_initialize_hw_resources()
67 resources_size += sizeof(unsigned long) * BITS_TO_LONGS(max_qp); in i40iw_initialize_hw_resources()
68 resources_size += sizeof(unsigned long) * BITS_TO_LONGS(max_mr); in i40iw_initialize_hw_resources()
69 resources_size += sizeof(unsigned long) * BITS_TO_LONGS(max_cq); in i40iw_initialize_hw_resources()
70 resources_size += sizeof(unsigned long) * BITS_TO_LONGS(num_pds); in i40iw_initialize_hw_resources()
71 resources_size += sizeof(unsigned long) * BITS_TO_LONGS(arp_table_size); in i40iw_initialize_hw_resources()
72 resources_size += sizeof(struct i40iw_qp **) * max_qp; in i40iw_initialize_hw_resources()
73 iwdev->mem_resources = kzalloc(resources_size, GFP_KERNEL); in i40iw_initialize_hw_resources()