Home
last modified time | relevance | path

Searched refs:res_type (Results 1 – 25 of 49) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/
Dusnic_vnic.c49 static enum vnic_res_type _to_vnic_res_type(enum usnic_vnic_res_type res_type) in _to_vnic_res_type() argument
60 if (res_type >= USNIC_VNIC_RES_TYPE_MAX) in _to_vnic_res_type()
63 return usnic_vnic_type_2_vnic_type[res_type]; in _to_vnic_res_type()
66 const char *usnic_vnic_res_type_to_str(enum usnic_vnic_res_type res_type) in usnic_vnic_res_type_to_str() argument
77 if (res_type >= USNIC_VNIC_RES_TYPE_MAX) in usnic_vnic_res_type_to_str()
80 return usnic_vnic_res_type_desc[res_type]; in usnic_vnic_res_type_to_str()
182 enum usnic_vnic_res_type res_type; in usnic_vnic_spec_dump() local
188 res_type = res_spec->resources[i].type; in usnic_vnic_spec_dump()
192 usnic_vnic_res_type_to_str(res_type), in usnic_vnic_spec_dump()
203 enum usnic_vnic_res_type res_type; in usnic_vnic_check_room() local
[all …]
Dusnic_ib_sysfs.c75 enum usnic_vnic_res_type res_type; in config_show() local
104 for (res_type = USNIC_VNIC_RES_TYPE_EOL; in config_show()
105 res_type < USNIC_VNIC_RES_TYPE_MAX; in config_show()
106 res_type++) { in config_show()
107 if (us_ibdev->vf_res_cnt[res_type] == 0) in config_show()
110 us_ibdev->vf_res_cnt[res_type], in config_show()
111 usnic_vnic_res_type_to_str(res_type), in config_show()
112 (res_type < (USNIC_VNIC_RES_TYPE_MAX - 1)) ? in config_show()
Dusnic_ib_qp_grp.c536 enum usnic_vnic_res_type res_type; in alloc_res_chunk_list() local
553 res_type = res_spec->resources[i].type; in alloc_res_chunk_list()
556 res_chunk_list[i] = usnic_vnic_get_resources(vnic, res_type, in alloc_res_chunk_list()
562 usnic_vnic_res_type_to_str(res_type), in alloc_res_chunk_list()
756 enum usnic_vnic_res_type res_type) in usnic_ib_qp_grp_get_chunk() argument
761 if (qp_grp->res_chunk_list[i]->type == res_type) in usnic_ib_qp_grp_get_chunk()
Dusnic_ib_main.c554 enum usnic_vnic_res_type res_type; in usnic_ib_pci_probe() local
601 for (res_type = USNIC_VNIC_RES_TYPE_EOL+1; in usnic_ib_pci_probe()
602 res_type < USNIC_VNIC_RES_TYPE_MAX; in usnic_ib_pci_probe()
603 res_type++) { in usnic_ib_pci_probe()
604 pf->vf_res_cnt[res_type] = usnic_vnic_res_cnt(vf->vnic, in usnic_ib_pci_probe()
605 res_type); in usnic_ib_pci_probe()
Dusnic_vnic.h85 const char *usnic_vnic_res_type_to_str(enum usnic_vnic_res_type res_type);
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cmdbuf_res.c81 enum vmw_cmdbuf_res_type res_type, in vmw_cmdbuf_res_lookup() argument
86 unsigned long key = user_key | (res_type << 24); in vmw_cmdbuf_res_lookup()
198 enum vmw_cmdbuf_res_type res_type, in vmw_cmdbuf_res_add() argument
210 cres->hash.key = user_key | (res_type << 24); in vmw_cmdbuf_res_add()
243 enum vmw_cmdbuf_res_type res_type, in vmw_cmdbuf_res_remove() argument
252 ret = drm_ht_find_item(&man->resources, user_key | (res_type << 24), in vmw_cmdbuf_res_remove()
Dvmwgfx_resource.c102 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release_id()
117 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release()
184 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_alloc_id()
523 &res->dev_priv->res_lru[res->func->res_type]); in vmw_resource_unreserve()
707 struct list_head *lru_list = &dev_priv->res_lru[res->func->res_type]; in vmw_resource_validate()
1077 return res->func->res_type; in vmw_res_type()
Dvmwgfx_resource_priv.h83 enum vmw_res_type res_type; member
Dvmwgfx_va.c82 .res_type = vmw_res_stream,
Dvmwgfx_execbuf.c263 enum vmw_res_type res_type) in vmw_execbuf_res_size() argument
265 return (res_type == vmw_res_dx_context || in vmw_execbuf_res_size()
266 (res_type == vmw_res_context && dev_priv->has_mob)) ? in vmw_execbuf_res_size()
305 enum vmw_res_type res_type = vmw_res_type(res); in vmw_execbuf_res_noref_val_add() local
311 rcache = &sw_context->res_cache[res_type]; in vmw_execbuf_res_noref_val_add()
320 priv_size = vmw_execbuf_res_size(dev_priv, res_type); in vmw_execbuf_res_noref_val_add()
356 enum vmw_res_type res_type = vmw_res_type(res); in vmw_execbuf_res_noctx_val_add() local
360 rcache = &sw_context->res_cache[res_type]; in vmw_execbuf_res_noctx_val_add()
648 enum vmw_res_type res_type, in vmw_cmd_res_check() argument
654 struct vmw_res_cache_entry *rcache = &sw_context->res_cache[res_type]; in vmw_cmd_res_check()
[all …]
Dvmwgfx_context.c76 .res_type = vmw_res_context,
88 .res_type = vmw_res_context,
102 .res_type = vmw_res_dx_context,
/kernel/linux/linux-5.10/drivers/soc/qcom/
Drpmpd.c46 .res_type = RPMPD_##r_type, \
54 .res_type = RPMPD_##r_type, \
62 .res_type = RPMPD_##r_type, \
70 .res_type = RPMPD_##r_type, \
78 .res_type = RPMPD_##r_type, \
86 .res_type = RPMPD_##r_type, \
104 const int res_type; member
241 pd->res_type, pd->res_id, &req, sizeof(req)); in rpmpd_send_enable()
252 return qcom_rpm_smd_write(pd->rpm, state, pd->res_type, pd->res_id, in rpmpd_send_corner()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum2_kvdl.c13 u8 res_type; member
27 .res_type = _res_type, \
106 static int mlxsw_sp2_kvdl_rec_del(struct mlxsw_sp *mlxsw_sp, u8 res_type, in mlxsw_sp2_kvdl_rec_del() argument
117 mlxsw_reg_iedr_rec_pack(iedr_pl, 0, res_type, size, kvdl_index); in mlxsw_sp2_kvdl_rec_del()
133 err = mlxsw_sp2_kvdl_rec_del(mlxsw_sp, part->info->res_type, in mlxsw_sp2_kvdl_part_free()
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/
Dqla_inline.h393 iores->res_type = RESOURCE_NONE; in qla_get_iocbs()
412 iores->res_type = RESOURCE_NONE; in qla_get_iocbs()
421 switch (iores->res_type) { in qla_put_iocbs()
433 iores->res_type = RESOURCE_NONE; in qla_put_iocbs()
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
Dbna_enet.c1865 res_info[BNA_RES_MEM_T_COM].res_type = BNA_RES_T_MEM; in bna_res_req()
1874 res_info[BNA_RES_MEM_T_ATTR].res_type = BNA_RES_T_MEM; in bna_res_req()
1881 res_info[BNA_RES_MEM_T_FWTRC].res_type = BNA_RES_T_MEM; in bna_res_req()
1887 res_info[BNA_RES_MEM_T_STATS].res_type = BNA_RES_T_MEM; in bna_res_req()
1901 res_info[BNA_MOD_RES_MEM_T_TX_ARRAY].res_type = BNA_RES_T_MEM; in bna_mod_res_req()
1909 res_info[BNA_MOD_RES_MEM_T_TXQ_ARRAY].res_type = BNA_RES_T_MEM; in bna_mod_res_req()
1917 res_info[BNA_MOD_RES_MEM_T_RX_ARRAY].res_type = BNA_RES_T_MEM; in bna_mod_res_req()
1925 res_info[BNA_MOD_RES_MEM_T_RXP_ARRAY].res_type = BNA_RES_T_MEM; in bna_mod_res_req()
1933 res_info[BNA_MOD_RES_MEM_T_RXQ_ARRAY].res_type = BNA_RES_T_MEM; in bna_mod_res_req()
1941 res_info[BNA_MOD_RES_MEM_T_UCMAC_ARRAY].res_type = BNA_RES_T_MEM; in bna_mod_res_req()
[all …]
Dbna_tx_rx.c2166 res_info[BNA_RX_RES_MEM_T_CCB].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2172 res_info[BNA_RX_RES_MEM_T_RCB].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2178 res_info[BNA_RX_RES_MEM_T_CQPT].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2184 res_info[BNA_RX_RES_MEM_T_CSWQPT].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2190 res_info[BNA_RX_RES_MEM_T_CQPT_PAGE].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2196 res_info[BNA_RX_RES_MEM_T_DQPT].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2202 res_info[BNA_RX_RES_MEM_T_DSWQPT].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2208 res_info[BNA_RX_RES_MEM_T_DPAGE].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2214 res_info[BNA_RX_RES_MEM_T_HQPT].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2220 res_info[BNA_RX_RES_MEM_T_HSWQPT].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/snic/
Dvnic_wq.c27 unsigned int index, enum vnic_res_type res_type) in vnic_wq_get_ctrl() argument
29 wq->ctrl = svnic_dev_get_res(vdev, res_type, index); in vnic_wq_get_ctrl()
/kernel/linux/linux-5.10/drivers/scsi/fnic/
Dvnic_wq.c29 unsigned int index, enum vnic_res_type res_type) in vnic_wq_get_ctrl() argument
31 wq->ctrl = vnic_dev_get_res(vdev, res_type, index); in vnic_wq_get_ctrl()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dqp.h41 enum mlx5_res_type res_type);
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/
Dess.c136 msg_res_type = ((struct smt_p_0015 *)p)->res_type ; in ess_raf_received_pack()
500 chg->s_type.res_type = SYNC_BW ; in ess_send_response()
591 req->s_type.res_type = SYNC_BW ; in ess_send_alc_req()
/kernel/linux/linux-5.10/drivers/media/i2c/m5mols/
Dm5mols_core.c561 format = __find_format(info, cfg, fmt->which, info->res_type); in m5mols_get_fmt()
598 info->res_type = type; in m5mols_set_fmt()
727 code = info->ffmt[info->res_type].code; in m5mols_s_stream()
1007 info->res_type = M5MOLS_RESTYPE_MONITOR; in m5mols_probe()
Dm5mols.h229 int res_type; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_switch.c456 sw_buf->res_type = cpu_to_le16(ICE_AQC_RES_TYPE_VSI_LIST_REP); in ice_aq_alloc_free_vsi_list()
458 sw_buf->res_type = in ice_aq_alloc_free_vsi_list()
580 u8 res_type; in ice_get_initial_sw_cfg() local
594 res_type = (u8)(le16_to_cpu(ele->vsi_port_num) >> in ice_get_initial_sw_cfg()
597 if (res_type == ICE_AQC_GET_SW_CONF_RESP_VSI) { in ice_get_initial_sw_cfg()
603 res_type, swid, pf_vf_num, is_vf); in ice_get_initial_sw_cfg()
2701 buf->res_type = cpu_to_le16(((type << ICE_AQC_RES_TYPE_S) & in ice_alloc_res_cntr()
2739 buf->res_type = cpu_to_le16(((type << ICE_AQC_RES_TYPE_S) & in ice_free_res_cntr()
Dice_flex_pipe.c2456 u16 res_type; in ice_alloc_tcam_ent() local
2458 if (!ice_tcam_ent_rsrc_type(blk, &res_type)) in ice_alloc_tcam_ent()
2461 return ice_alloc_hw_res(hw, res_type, 1, true, tcam_idx); in ice_alloc_tcam_ent()
2475 u16 res_type; in ice_free_tcam_ent() local
2477 if (!ice_tcam_ent_rsrc_type(blk, &res_type)) in ice_free_tcam_ent()
2480 return ice_free_hw_res(hw, res_type, 1, &tcam_idx); in ice_free_tcam_ent()
2496 u16 res_type; in ice_alloc_prof_id() local
2499 if (!ice_prof_id_rsrc_type(blk, &res_type)) in ice_alloc_prof_id()
2502 status = ice_alloc_hw_res(hw, res_type, 1, false, &get_prof); in ice_alloc_prof_id()
2521 u16 res_type; in ice_free_prof_id() local
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dnldev.c1245 enum rdma_restrack_type res_type, in res_get_common_doit() argument
1248 const struct nldev_fill_res_entry *fe = &fill_entries[res_type]; in res_get_common_doit()
1282 res = rdma_restrack_get_byid(device, res_type, id); in res_get_common_doit()
1326 enum rdma_restrack_type res_type, in res_get_common_dumpit() argument
1329 const struct nldev_fill_res_entry *fe = &fill_entries[res_type]; in res_get_common_dumpit()
1391 rt = &device->res[res_type]; in res_get_common_dumpit()

12