hmc 667 drivers/infiniband/hw/i40iw/i40iw_hmc.c else if (hw->hmc.hmc_fn_id != hmc_info->hmc_fn_id) hmc 1335 drivers/infiniband/hw/i40iw/i40iw_main.c dev->hmc_info = &iwdev->hw.hmc; hmc 260 drivers/infiniband/hw/i40iw/i40iw_type.h struct i40iw_hmc_info hmc; hmc 390 drivers/misc/ibmvmc.c static void ibmvmc_free_hmc_buffer(struct ibmvmc_hmc *hmc, hmc 395 drivers/misc/ibmvmc.c spin_lock_irqsave(&hmc->lock, flags); hmc 397 drivers/misc/ibmvmc.c spin_unlock_irqrestore(&hmc->lock, flags); hmc 478 drivers/misc/ibmvmc.c static int ibmvmc_return_hmc(struct ibmvmc_hmc *hmc, bool release_readers) hmc 486 drivers/misc/ibmvmc.c if (!hmc || !hmc->adapter) hmc 490 drivers/misc/ibmvmc.c if (hmc->file_session) { hmc 491 drivers/misc/ibmvmc.c struct ibmvmc_file_session *session = hmc->file_session; hmc 498 drivers/misc/ibmvmc.c adapter = hmc->adapter; hmc 501 drivers/misc/ibmvmc.c spin_lock_irqsave(&hmc->lock, flags); hmc 502 drivers/misc/ibmvmc.c hmc->index = 0; hmc 503 drivers/misc/ibmvmc.c hmc->state = ibmhmc_state_free; hmc 504 drivers/misc/ibmvmc.c hmc->queue_head = 0; hmc 505 drivers/misc/ibmvmc.c hmc->queue_tail = 0; hmc 506 drivers/misc/ibmvmc.c buffer = hmc->buffer; hmc 517 drivers/misc/ibmvmc.c hmc->queue_outbound_msgs[i] = VMC_INVALID_BUFFER_ID; hmc 520 drivers/misc/ibmvmc.c spin_unlock_irqrestore(&hmc->lock, flags); hmc 544 drivers/misc/ibmvmc.c struct ibmvmc_hmc *hmc) hmc 551 drivers/misc/ibmvmc.c if (!hmc || !hmc->adapter) hmc 554 drivers/misc/ibmvmc.c adapter = hmc->adapter; hmc 573 drivers/misc/ibmvmc.c hmc->state = ibmhmc_state_opening; hmc 579 drivers/misc/ibmvmc.c crq_msg.hmc_session = hmc->session; hmc 580 drivers/misc/ibmvmc.c crq_msg.hmc_index = hmc->index; hmc 605 drivers/misc/ibmvmc.c static int ibmvmc_send_close(struct ibmvmc_hmc *hmc) hmc 612 drivers/misc/ibmvmc.c if (!hmc || !hmc->adapter) hmc 615 drivers/misc/ibmvmc.c adapter = hmc->adapter; hmc 623 drivers/misc/ibmvmc.c crq_msg.hmc_session = hmc->session; hmc 624 drivers/misc/ibmvmc.c crq_msg.hmc_index = hmc->index; hmc 779 drivers/misc/ibmvmc.c struct ibmvmc_hmc *hmc, int msg_len) hmc 801 drivers/misc/ibmvmc.c crq_msg.hmc_session = hmc->session; hmc 802 drivers/misc/ibmvmc.c crq_msg.hmc_index = hmc->index; hmc 856 drivers/misc/ibmvmc.c struct ibmvmc_hmc *hmc; hmc 867 drivers/misc/ibmvmc.c hmc = session->hmc; hmc 868 drivers/misc/ibmvmc.c if (hmc) { hmc 869 drivers/misc/ibmvmc.c if (!hmc->adapter) hmc 873 drivers/misc/ibmvmc.c dev_warn(hmc->adapter->dev, "close: state_failed\n"); hmc 877 drivers/misc/ibmvmc.c spin_lock_irqsave(&hmc->lock, flags); hmc 878 drivers/misc/ibmvmc.c if (hmc->state >= ibmhmc_state_opening) { hmc 879 drivers/misc/ibmvmc.c rc = ibmvmc_send_close(hmc); hmc 881 drivers/misc/ibmvmc.c dev_warn(hmc->adapter->dev, "close: send_close failed.\n"); hmc 883 drivers/misc/ibmvmc.c spin_unlock_irqrestore(&hmc->lock, flags); hmc 907 drivers/misc/ibmvmc.c struct ibmvmc_hmc *hmc; hmc 934 drivers/misc/ibmvmc.c hmc = session->hmc; hmc 935 drivers/misc/ibmvmc.c if (!hmc) { hmc 940 drivers/misc/ibmvmc.c adapter = hmc->adapter; hmc 949 drivers/misc/ibmvmc.c spin_lock_irqsave(&hmc->lock, flags); hmc 950 drivers/misc/ibmvmc.c if (hmc->queue_tail != hmc->queue_head) hmc 954 drivers/misc/ibmvmc.c spin_unlock_irqrestore(&hmc->lock, flags); hmc 973 drivers/misc/ibmvmc.c buffer = &(hmc->buffer[hmc->queue_outbound_msgs[hmc->queue_tail]]); hmc 974 drivers/misc/ibmvmc.c hmc->queue_tail++; hmc 975 drivers/misc/ibmvmc.c if (hmc->queue_tail == ibmvmc_max_buf_pool_size) hmc 976 drivers/misc/ibmvmc.c hmc->queue_tail = 0; hmc 977 drivers/misc/ibmvmc.c spin_unlock_irqrestore(&hmc->lock, flags); hmc 982 drivers/misc/ibmvmc.c ibmvmc_free_hmc_buffer(hmc, buffer); hmc 1008 drivers/misc/ibmvmc.c struct ibmvmc_hmc *hmc; hmc 1015 drivers/misc/ibmvmc.c hmc = session->hmc; hmc 1016 drivers/misc/ibmvmc.c if (!hmc) hmc 1021 drivers/misc/ibmvmc.c if (hmc->queue_head != hmc->queue_tail) hmc 1045 drivers/misc/ibmvmc.c struct ibmvmc_hmc *hmc; hmc 1057 drivers/misc/ibmvmc.c hmc = session->hmc; hmc 1058 drivers/misc/ibmvmc.c if (!hmc) hmc 1061 drivers/misc/ibmvmc.c spin_lock_irqsave(&hmc->lock, flags); hmc 1062 drivers/misc/ibmvmc.c if (hmc->state == ibmhmc_state_free) { hmc 1068 drivers/misc/ibmvmc.c adapter = hmc->adapter; hmc 1082 drivers/misc/ibmvmc.c if (hmc->state == ibmhmc_state_opening) { hmc 1090 drivers/misc/ibmvmc.c if (hmc->state != ibmhmc_state_ready) { hmc 1095 drivers/misc/ibmvmc.c vmc_buffer = ibmvmc_get_valid_hmc_buffer(hmc->index); hmc 1131 drivers/misc/ibmvmc.c ibmvmc_send_msg(adapter, vmc_buffer, hmc, count); hmc 1134 drivers/misc/ibmvmc.c spin_unlock_irqrestore(&hmc->lock, flags); hmc 1149 drivers/misc/ibmvmc.c struct ibmvmc_hmc *hmc; hmc 1176 drivers/misc/ibmvmc.c hmc = ibmvmc_get_free_hmc(); hmc 1177 drivers/misc/ibmvmc.c if (!hmc) { hmc 1182 drivers/misc/ibmvmc.c hmc->session = hmc->session + 1; hmc 1183 drivers/misc/ibmvmc.c if (hmc->session == 0xff) hmc 1184 drivers/misc/ibmvmc.c hmc->session = 1; hmc 1186 drivers/misc/ibmvmc.c session->hmc = hmc; hmc 1187 drivers/misc/ibmvmc.c hmc->adapter = &ibmvmc_adapter; hmc 1188 drivers/misc/ibmvmc.c hmc->file_session = session; hmc 1209 drivers/misc/ibmvmc.c struct ibmvmc_hmc *hmc; hmc 1217 drivers/misc/ibmvmc.c hmc = session->hmc; hmc 1218 drivers/misc/ibmvmc.c if (!hmc) { hmc 1223 drivers/misc/ibmvmc.c hmc = session->hmc; hmc 1224 drivers/misc/ibmvmc.c if (!hmc) { hmc 1230 drivers/misc/ibmvmc.c if (hmc->state != ibmhmc_state_initial) { hmc 1232 drivers/misc/ibmvmc.c hmc->state); hmc 1236 drivers/misc/ibmvmc.c bytes = copy_from_user(hmc->hmc_id, new_hmc_id, HMC_ID_LEN); hmc 1241 drivers/misc/ibmvmc.c spin_lock_irqsave(&hmc->lock, flags); hmc 1242 drivers/misc/ibmvmc.c buffer = ibmvmc_get_valid_hmc_buffer(hmc->index); hmc 1243 drivers/misc/ibmvmc.c spin_unlock_irqrestore(&hmc->lock, flags); hmc 1252 drivers/misc/ibmvmc.c strncpy(print_buffer, hmc->hmc_id, HMC_ID_LEN); hmc 1255 drivers/misc/ibmvmc.c memcpy(buffer->real_addr_local, hmc->hmc_id, HMC_ID_LEN); hmc 1257 drivers/misc/ibmvmc.c rc = ibmvmc_send_open(buffer, hmc); hmc 1599 drivers/misc/ibmvmc.c struct ibmvmc_hmc *hmc; hmc 1636 drivers/misc/ibmvmc.c hmc = &hmcs[hmc_index]; hmc 1637 drivers/misc/ibmvmc.c spin_lock_irqsave(&hmc->lock, flags); hmc 1639 drivers/misc/ibmvmc.c if (hmc->state == ibmhmc_state_free) { hmc 1641 drivers/misc/ibmvmc.c hmc->state); hmc 1643 drivers/misc/ibmvmc.c spin_unlock_irqrestore(&hmc->lock, flags); hmc 1647 drivers/misc/ibmvmc.c buffer = &hmc->buffer[buffer_id]; hmc 1652 drivers/misc/ibmvmc.c spin_unlock_irqrestore(&hmc->lock, flags); hmc 1665 drivers/misc/ibmvmc.c (unsigned int)hmc->queue_head, (unsigned int)hmc_index); hmc 1673 drivers/misc/ibmvmc.c spin_unlock_irqrestore(&hmc->lock, flags); hmc 1678 drivers/misc/ibmvmc.c hmc->queue_outbound_msgs[hmc->queue_head] = buffer_id; hmc 1679 drivers/misc/ibmvmc.c hmc->queue_head++; hmc 1680 drivers/misc/ibmvmc.c if (hmc->queue_head == ibmvmc_max_buf_pool_size) hmc 1681 drivers/misc/ibmvmc.c hmc->queue_head = 0; hmc 1683 drivers/misc/ibmvmc.c if (hmc->queue_head == hmc->queue_tail) hmc 1686 drivers/misc/ibmvmc.c spin_unlock_irqrestore(&hmc->lock, flags); hmc 199 drivers/misc/ibmvmc.h struct ibmvmc_hmc *hmc; hmc 86 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.signature = I40E_HMC_INFO_SIGNATURE; hmc 87 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.hmc_fn_id = hw->pf_id; hmc 90 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c ret_code = i40e_allocate_virt_mem(hw, &hw->hmc.hmc_obj_virt_mem, hmc 94 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.hmc_obj = (struct i40e_hmc_obj_info *) hmc 95 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.hmc_obj_virt_mem.va; hmc 98 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c full_obj = &hw->hmc.hmc_obj[I40E_HMC_LAN_FULL]; hmc 105 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c obj = &hw->hmc.hmc_obj[I40E_HMC_LAN_TX]; hmc 125 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c obj = &hw->hmc.hmc_obj[I40E_HMC_LAN_RX]; hmc 128 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c obj->base = hw->hmc.hmc_obj[I40E_HMC_LAN_TX].base + hmc 129 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c (hw->hmc.hmc_obj[I40E_HMC_LAN_TX].cnt * hmc 130 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.hmc_obj[I40E_HMC_LAN_TX].size); hmc 148 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c obj = &hw->hmc.hmc_obj[I40E_HMC_FCOE_CTX]; hmc 151 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c obj->base = hw->hmc.hmc_obj[I40E_HMC_LAN_RX].base + hmc 152 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c (hw->hmc.hmc_obj[I40E_HMC_LAN_RX].cnt * hmc 153 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.hmc_obj[I40E_HMC_LAN_RX].size); hmc 171 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c obj = &hw->hmc.hmc_obj[I40E_HMC_FCOE_FILT]; hmc 174 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c obj->base = hw->hmc.hmc_obj[I40E_HMC_FCOE_CTX].base + hmc 175 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c (hw->hmc.hmc_obj[I40E_HMC_FCOE_CTX].cnt * hmc 176 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.hmc_obj[I40E_HMC_FCOE_CTX].size); hmc 193 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.first_sd_index = 0; hmc 194 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.sd_table.ref_cnt = 0; hmc 197 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c if (NULL == hw->hmc.sd_table.sd_entry) { hmc 198 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.sd_table.sd_cnt = (u32) hmc 203 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c ret_code = i40e_allocate_virt_mem(hw, &hw->hmc.sd_table.addr, hmc 205 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.sd_table.sd_cnt)); hmc 208 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.sd_table.sd_entry = hmc 209 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c (struct i40e_hmc_sd_entry *)hw->hmc.sd_table.addr.va; hmc 443 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c u8 hmc_fn_id = hw->hmc.hmc_fn_id; hmc 447 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c info.hmc_info = &hw->hmc; hmc 450 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c info.direct_mode_sz = hw->hmc.hmc_obj[I40E_HMC_LAN_FULL].size; hmc 486 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c obj = &hw->hmc.hmc_obj[I40E_HMC_LAN_TX]; hmc 492 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c obj = &hw->hmc.hmc_obj[I40E_HMC_LAN_RX]; hmc 498 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c obj = &hw->hmc.hmc_obj[I40E_HMC_FCOE_CTX]; hmc 504 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c obj = &hw->hmc.hmc_obj[I40E_HMC_FCOE_FILT]; hmc 640 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c info.hmc_info = &hw->hmc; hmc 649 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c i40e_free_virt_mem(hw, &hw->hmc.sd_table.addr); hmc 650 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.sd_table.sd_cnt = 0; hmc 651 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.sd_table.sd_entry = NULL; hmc 654 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c i40e_free_virt_mem(hw, &hw->hmc.hmc_obj_virt_mem); hmc 655 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c hw->hmc.hmc_obj = NULL; hmc 923 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c memset(context_bytes, 0, (u32)hw->hmc.hmc_obj[hmc_type].size); hmc 980 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c struct i40e_hmc_info *hmc_info = &hw->hmc; hmc 9825 drivers/net/ethernet/intel/i40e/i40e_main.c if (hw->hmc.hmc_obj) { hmc 15398 drivers/net/ethernet/intel/i40e/i40e_main.c if (hw->hmc.hmc_obj) { hmc 611 drivers/net/ethernet/intel/i40e/i40e_type.h struct i40e_hmc_info hmc; /* HMC info struct */ hmc 2748 drivers/usb/gadget/udc/omap_udc.c int hmc; hmc 2792 drivers/usb/gadget/udc/omap_udc.c hmc = HMC_1510; hmc 2823 drivers/usb/gadget/udc/omap_udc.c hmc = HMC_1610; hmc 2825 drivers/usb/gadget/udc/omap_udc.c switch (hmc) { hmc 2859 drivers/usb/gadget/udc/omap_udc.c ERR("unrecognized UDC HMC mode %d\n", hmc); hmc 2864 drivers/usb/gadget/udc/omap_udc.c INFO("hmc mode %d, %s transceiver\n", hmc, type);