Home
last modified time | relevance | path

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

/drivers/infiniband/hw/i40iw/
Di40iw_main.c193 struct i40iw_device *iwdev = from_tasklet(iwdev, t, dpc_tasklet); in i40iw_dpc() local
195 if (iwdev->msix_shared) in i40iw_dpc()
196 i40iw_process_ceq(iwdev, iwdev->ceqlist); in i40iw_dpc()
197 i40iw_process_aeq(iwdev); in i40iw_dpc()
198 i40iw_enable_intr(&iwdev->sc_dev, iwdev->iw_msixtbl[0].idx); in i40iw_dpc()
208 struct i40iw_device *iwdev = iwceq->iwdev; in i40iw_ceq_dpc() local
210 i40iw_process_ceq(iwdev, iwceq); in i40iw_ceq_dpc()
211 i40iw_enable_intr(&iwdev->sc_dev, iwceq->msix_idx); in i40iw_ceq_dpc()
221 struct i40iw_device *iwdev = (struct i40iw_device *)data; in i40iw_irq_handler() local
223 tasklet_schedule(&iwdev->dpc_tasklet); in i40iw_irq_handler()
[all …]
Di40iw_hw.c49 u32 i40iw_initialize_hw_resources(struct i40iw_device *iwdev) in i40iw_initialize_hw_resources() argument
60 max_qp = iwdev->sc_dev.hmc_info->hmc_obj[I40IW_HMC_IW_QP].cnt; in i40iw_initialize_hw_resources()
61 max_cq = iwdev->sc_dev.hmc_info->hmc_obj[I40IW_HMC_IW_CQ].cnt; in i40iw_initialize_hw_resources()
62 max_mr = iwdev->sc_dev.hmc_info->hmc_obj[I40IW_HMC_IW_MR].cnt; in i40iw_initialize_hw_resources()
63 arp_table_size = iwdev->sc_dev.hmc_info->hmc_obj[I40IW_HMC_IW_ARP].cnt; in i40iw_initialize_hw_resources()
64 iwdev->max_cqe = 0xFFFFF; in i40iw_initialize_hw_resources()
73 iwdev->mem_resources = kzalloc(resources_size, GFP_KERNEL); in i40iw_initialize_hw_resources()
75 if (!iwdev->mem_resources) in i40iw_initialize_hw_resources()
78 iwdev->max_qp = max_qp; in i40iw_initialize_hw_resources()
79 iwdev->max_mr = max_mr; in i40iw_initialize_hw_resources()
[all …]
Di40iw_utils.c61 int i40iw_arp_table(struct i40iw_device *iwdev, in i40iw_arp_table() argument
78 for (arp_index = 0; (u32)arp_index < iwdev->arp_table_size; arp_index++) in i40iw_arp_table()
79 if (memcmp(iwdev->arp_table[arp_index].ip_addr, ip, sizeof(ip)) == 0) in i40iw_arp_table()
83 if (arp_index != iwdev->arp_table_size) in i40iw_arp_table()
87 err = i40iw_alloc_resource(iwdev, iwdev->allocated_arps, in i40iw_arp_table()
88 iwdev->arp_table_size, in i40iw_arp_table()
90 &iwdev->next_arp_index); in i40iw_arp_table()
95 memcpy(iwdev->arp_table[arp_index].ip_addr, ip, sizeof(ip)); in i40iw_arp_table()
96 ether_addr_copy(iwdev->arp_table[arp_index].mac_addr, mac_addr); in i40iw_arp_table()
99 if (arp_index == iwdev->arp_table_size) in i40iw_arp_table()
[all …]
Di40iw_verbs.c61 struct i40iw_device *iwdev = to_iwdev(ibdev); in i40iw_query_device() local
66 ether_addr_copy((u8 *)&props->sys_image_guid, iwdev->netdev->dev_addr); in i40iw_query_device()
67 props->fw_ver = i40iw_fw_major_ver(&iwdev->sc_dev) << 32 | in i40iw_query_device()
68 i40iw_fw_minor_ver(&iwdev->sc_dev); in i40iw_query_device()
69 props->device_cap_flags = iwdev->device_cap_flags; in i40iw_query_device()
70 props->vendor_id = iwdev->ldev->pcidev->vendor; in i40iw_query_device()
71 props->vendor_part_id = iwdev->ldev->pcidev->device; in i40iw_query_device()
72 props->hw_ver = (u32)iwdev->sc_dev.hw_rev; in i40iw_query_device()
74 props->max_qp = iwdev->max_qp - iwdev->used_qps; in i40iw_query_device()
78 props->max_cq = iwdev->max_cq - iwdev->used_cqs; in i40iw_query_device()
[all …]
Di40iw.h176 struct i40iw_device *iwdev; member
215 struct i40iw_device *iwdev; member
318 struct i40iw_device *iwdev; member
354 return container_of(ibdev, struct i40iw_ib_device, ibdev)->iwdev; in to_iwdev()
416 void i40iw_flush_wqes(struct i40iw_device *iwdev,
419 void i40iw_manage_arp_cache(struct i40iw_device *iwdev,
425 enum i40iw_status_code i40iw_manage_apbvt(struct i40iw_device *iwdev,
440 static inline int i40iw_alloc_resource(struct i40iw_device *iwdev, in i40iw_alloc_resource() argument
449 spin_lock_irqsave(&iwdev->resource_lock, flags); in i40iw_alloc_resource()
454 spin_unlock_irqrestore(&iwdev->resource_lock, flags); in i40iw_alloc_resource()
[all …]
Di40iw_cm.c339 struct i40iw_device *iwdev = cm_node->iwdev; in i40iw_free_retrans_entry() local
345 i40iw_free_sqbuf(&iwdev->vsi, (void *)send_entry->sqbuf); in i40iw_free_retrans_entry()
379 struct i40iw_sc_vsi *vsi = &cm_node->iwdev->vsi; in i40iw_form_cm_frame()
618 if (!iwqp || !iwqp->iwdev) in i40iw_event_connect_error()
1060 struct i40iw_sc_vsi *vsi = &cm_node->iwdev->vsi; in i40iw_schedule_cm_timer()
1285 vsi = &cm_node->iwdev->vsi; in i40iw_cm_timer_tick()
1392 struct i40iw_sc_vsi *vsi = &cm_node->iwdev->vsi; in i40iw_send_ack()
1574 struct i40iw_device *iwdev, in i40iw_del_multiple_qhash() argument
1583 spin_lock_irqsave(&iwdev->cm_core.listen_list_lock, flags); in i40iw_del_multiple_qhash()
1587 i40iw_debug(&iwdev->sc_dev, in i40iw_del_multiple_qhash()
[all …]
Di40iw_cm.h295 struct i40iw_device *iwdev; member
324 struct i40iw_device *iwdev; member
402 struct i40iw_device *iwdev; member
450 int i40iw_arp_table(struct i40iw_device *iwdev,
456 void i40iw_if_notify(struct i40iw_device *iwdev, struct net_device *netdev,
458 void i40iw_cm_teardown_connections(struct i40iw_device *iwdev, u32 *ipaddr,
Di40iw_verbs.h40 struct i40iw_device *iwdev; member
135 struct i40iw_device *iwdev; member
Di40iw_osdep.h208 enum i40iw_status_code i40iw_hw_manage_vf_pble_bp(struct i40iw_device *iwdev,