Lines Matching refs:adapter_size
261 u32 adapter_size;
343 adapter_size = (sizeof(struct nes_adapter) +
345 adapter_size += sizeof(unsigned long) * BITS_TO_LONGS(max_qp);
346 adapter_size += sizeof(unsigned long) * BITS_TO_LONGS(max_mr);
347 adapter_size += sizeof(unsigned long) * BITS_TO_LONGS(max_cq);
348 adapter_size += sizeof(unsigned long) * BITS_TO_LONGS(num_pds);
349 adapter_size += sizeof(unsigned long) * BITS_TO_LONGS(arp_table_size);
350 adapter_size += sizeof(struct nes_qp **) * max_qp;
353 nesadapter = kzalloc(adapter_size, GFP_KERNEL);
359 nesadapter, (u32)sizeof(struct nes_adapter), adapter_size);