Lines Matching refs:arr
143 struct ehea_fw_handle_entry *arr = NULL; in ehea_update_firmware_handles() local
173 arr = kcalloc(num_fw_handles, sizeof(*arr), GFP_KERNEL); in ehea_update_firmware_handles()
174 if (!arr) in ehea_update_firmware_handles()
193 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
194 arr[i++].fwh = pr->qp->fw_handle; in ehea_update_firmware_handles()
195 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
196 arr[i++].fwh = pr->send_cq->fw_handle; in ehea_update_firmware_handles()
197 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
198 arr[i++].fwh = pr->recv_cq->fw_handle; in ehea_update_firmware_handles()
199 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
200 arr[i++].fwh = pr->eq->fw_handle; in ehea_update_firmware_handles()
201 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
202 arr[i++].fwh = pr->send_mr.handle; in ehea_update_firmware_handles()
203 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
204 arr[i++].fwh = pr->recv_mr.handle; in ehea_update_firmware_handles()
206 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
207 arr[i++].fwh = port->qp_eq->fw_handle; in ehea_update_firmware_handles()
211 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
212 arr[i++].fwh = adapter->neq->fw_handle; in ehea_update_firmware_handles()
215 arr[i].adh = adapter->handle; in ehea_update_firmware_handles()
216 arr[i++].fwh = adapter->mr.handle; in ehea_update_firmware_handles()
222 kfree(ehea_fw_handles.arr); in ehea_update_firmware_handles()
223 ehea_fw_handles.arr = arr; in ehea_update_firmware_handles()
232 struct ehea_bcmc_reg_entry *arr = NULL; in ehea_update_bcmc_registrations() local
256 arr = kcalloc(num_registrations, sizeof(*arr), GFP_ATOMIC); in ehea_update_bcmc_registrations()
257 if (!arr) in ehea_update_bcmc_registrations()
272 arr[i].adh = adapter->handle; in ehea_update_bcmc_registrations()
273 arr[i].port_id = port->logical_port_id; in ehea_update_bcmc_registrations()
274 arr[i].reg_type = EHEA_BCMC_BROADCAST | in ehea_update_bcmc_registrations()
276 arr[i++].macaddr = port->mac_addr; in ehea_update_bcmc_registrations()
278 arr[i].adh = adapter->handle; in ehea_update_bcmc_registrations()
279 arr[i].port_id = port->logical_port_id; in ehea_update_bcmc_registrations()
280 arr[i].reg_type = EHEA_BCMC_BROADCAST | in ehea_update_bcmc_registrations()
282 arr[i++].macaddr = port->mac_addr; in ehea_update_bcmc_registrations()
290 arr[i].adh = adapter->handle; in ehea_update_bcmc_registrations()
291 arr[i].port_id = port->logical_port_id; in ehea_update_bcmc_registrations()
292 arr[i].reg_type = EHEA_BCMC_MULTICAST | in ehea_update_bcmc_registrations()
295 arr[i].reg_type |= EHEA_BCMC_SCOPE_ALL; in ehea_update_bcmc_registrations()
296 arr[i++].macaddr = mc_entry->macaddr; in ehea_update_bcmc_registrations()
298 arr[i].adh = adapter->handle; in ehea_update_bcmc_registrations()
299 arr[i].port_id = port->logical_port_id; in ehea_update_bcmc_registrations()
300 arr[i].reg_type = EHEA_BCMC_MULTICAST | in ehea_update_bcmc_registrations()
303 arr[i].reg_type |= EHEA_BCMC_SCOPE_ALL; in ehea_update_bcmc_registrations()
304 arr[i++].macaddr = mc_entry->macaddr; in ehea_update_bcmc_registrations()
311 kfree(ehea_bcmc_regs.arr); in ehea_update_bcmc_registrations()
312 ehea_bcmc_regs.arr = arr; in ehea_update_bcmc_registrations()
382 struct sk_buff **skb_arr_rq1 = pr->rq1_skba.arr; in ehea_refill_rq1()
421 struct sk_buff **skb_arr_rq1 = pr->rq1_skba.arr; in ehea_init_fill_rq1()
445 struct sk_buff **skb_arr = q_skba->arr; in ehea_refill_rq_def()
629 skb = get_skb_by_index(pr->rq2_skba.arr, pr->rq2_skba.len, cqe); in ehea_treat_poll_error()
633 skb = get_skb_by_index(pr->rq3_skba.arr, pr->rq3_skba.len, cqe); in ehea_treat_poll_error()
658 struct sk_buff **skb_arr_rq1 = pr->rq1_skba.arr; in ehea_proc_rwqes()
659 struct sk_buff **skb_arr_rq2 = pr->rq2_skba.arr; in ehea_proc_rwqes()
660 struct sk_buff **skb_arr_rq3 = pr->rq3_skba.arr; in ehea_proc_rwqes()
844 skb = pr->sq_skba.arr[index]; in ehea_proc_cqes()
846 pr->sq_skba.arr[index] = NULL; in ehea_proc_cqes()
1426 q_skba->arr = vzalloc(arr_size); in ehea_init_q_skba()
1427 if (!q_skba->arr) in ehea_init_q_skba()
1554 vfree(pr->sq_skba.arr); in ehea_init_port_res()
1555 vfree(pr->rq1_skba.arr); in ehea_init_port_res()
1556 vfree(pr->rq2_skba.arr); in ehea_init_port_res()
1557 vfree(pr->rq3_skba.arr); in ehea_init_port_res()
1581 dev_kfree_skb(pr->rq1_skba.arr[i]); in ehea_clean_portres()
1584 dev_kfree_skb(pr->rq2_skba.arr[i]); in ehea_clean_portres()
1587 dev_kfree_skb(pr->rq3_skba.arr[i]); in ehea_clean_portres()
1590 dev_kfree_skb(pr->sq_skba.arr[i]); in ehea_clean_portres()
1592 vfree(pr->rq1_skba.arr); in ehea_clean_portres()
1593 vfree(pr->rq2_skba.arr); in ehea_clean_portres()
1594 vfree(pr->rq3_skba.arr); in ehea_clean_portres()
1595 vfree(pr->sq_skba.arr); in ehea_clean_portres()
2055 pr->sq_skba.arr[pr->sq_skba.index] = skb; in ehea_start_xmit()
2580 struct sk_buff **skba_rq2 = pr->rq2_skba.arr; in ehea_update_rqs()
2581 struct sk_buff **skba_rq3 = pr->rq3_skba.arr; in ehea_update_rqs()
3290 if (ehea_fw_handles.arr) in ehea_crash_handler()
3292 ehea_h_free_resource(ehea_fw_handles.arr[i].adh, in ehea_crash_handler()
3293 ehea_fw_handles.arr[i].fwh, in ehea_crash_handler()
3296 if (ehea_bcmc_regs.arr) in ehea_crash_handler()
3298 ehea_h_reg_dereg_bcmc(ehea_bcmc_regs.arr[i].adh, in ehea_crash_handler()
3299 ehea_bcmc_regs.arr[i].port_id, in ehea_crash_handler()
3300 ehea_bcmc_regs.arr[i].reg_type, in ehea_crash_handler()
3301 ehea_bcmc_regs.arr[i].macaddr, in ehea_crash_handler()
3573 kfree(ehea_fw_handles.arr); in ehea_module_exit()
3574 kfree(ehea_bcmc_regs.arr); in ehea_module_exit()