Home
last modified time | relevance | path

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

12

/Linux-v5.15/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.c72 enum usnic_vnic_res_type res_type; in config_show() local
97 for (res_type = USNIC_VNIC_RES_TYPE_EOL; in config_show()
98 res_type < USNIC_VNIC_RES_TYPE_MAX; res_type++) { in config_show()
99 if (us_ibdev->vf_res_cnt[res_type] == 0) in config_show()
103 us_ibdev->vf_res_cnt[res_type], in config_show()
104 usnic_vnic_res_type_to_str(res_type)); 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()
746 enum usnic_vnic_res_type res_type) in usnic_ib_qp_grp_get_chunk() argument
751 if (qp_grp->res_chunk_list[i]->type == res_type) in usnic_ib_qp_grp_get_chunk()
Dusnic_ib_main.c535 enum usnic_vnic_res_type res_type; in usnic_ib_pci_probe() local
582 for (res_type = USNIC_VNIC_RES_TYPE_EOL+1; in usnic_ib_pci_probe()
583 res_type < USNIC_VNIC_RES_TYPE_MAX; in usnic_ib_pci_probe()
584 res_type++) { in usnic_ib_pci_probe()
585 pf->vf_res_cnt[res_type] = usnic_vnic_res_cnt(vf->vnic, in usnic_ib_pci_probe()
586 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);
/Linux-v5.15/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()
196 enum vmw_cmdbuf_res_type res_type, in vmw_cmdbuf_res_add() argument
208 cres->hash.key = user_key | (res_type << 24); in vmw_cmdbuf_res_add()
241 enum vmw_cmdbuf_res_type res_type, in vmw_cmdbuf_res_remove() argument
250 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()
118 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release()
186 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_alloc_id()
522 &res->dev_priv->res_lru[res->func->res_type]); in vmw_resource_unreserve()
706 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.c268 enum vmw_res_type res_type) in vmw_execbuf_res_size() argument
270 return (res_type == vmw_res_dx_context || in vmw_execbuf_res_size()
271 (res_type == vmw_res_context && dev_priv->has_mob)) ? in vmw_execbuf_res_size()
310 enum vmw_res_type res_type = vmw_res_type(res); in vmw_execbuf_res_noref_val_add() local
316 rcache = &sw_context->res_cache[res_type]; in vmw_execbuf_res_noref_val_add()
325 priv_size = vmw_execbuf_res_size(dev_priv, res_type); in vmw_execbuf_res_noref_val_add()
361 enum vmw_res_type res_type = vmw_res_type(res); in vmw_execbuf_res_noctx_val_add() local
365 rcache = &sw_context->res_cache[res_type]; in vmw_execbuf_res_noctx_val_add()
653 enum vmw_res_type res_type, in vmw_cmd_res_check() argument
659 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,
/Linux-v5.15/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()
/Linux-v5.15/drivers/soc/qcom/
Drpmpd.c48 .res_type = RPMPD_##r_type, \
56 .res_type = RPMPD_##r_type, \
64 .res_type = RPMPD_##r_type, \
72 .res_type = RPMPD_##r_type, \
80 .res_type = RPMPD_##r_type, \
88 .res_type = RPMPD_##r_type, \
106 const int res_type; member
400 pd->res_type, pd->res_id, &req, sizeof(req)); in rpmpd_send_enable()
411 return qcom_rpm_smd_write(pd->rpm, state, pd->res_type, pd->res_id, in rpmpd_send_corner()
/Linux-v5.15/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()
/Linux-v5.15/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 …]
/Linux-v5.15/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()
/Linux-v5.15/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()
/Linux-v5.15/drivers/infiniband/hw/mlx5/
Dqp.h41 enum mlx5_res_type res_type);
/Linux-v5.15/drivers/net/fddi/skfp/
Dess.c135 msg_res_type = ((struct smt_p_0015 *)p)->res_type ; in ess_raf_received_pack()
499 chg->s_type.res_type = SYNC_BW ; in ess_send_response()
590 req->s_type.res_type = SYNC_BW ; in ess_send_alc_req()
/Linux-v5.15/drivers/media/i2c/m5mols/
Dm5mols_core.c563 format = __find_format(info, sd_state, fmt->which, info->res_type); in m5mols_get_fmt()
601 info->res_type = type; in m5mols_set_fmt()
730 code = info->ffmt[info->res_type].code; in m5mols_s_stream()
1012 info->res_type = M5MOLS_RESTYPE_MONITOR; in m5mols_probe()
Dm5mols.h231 int res_type; member
/Linux-v5.15/drivers/net/ethernet/intel/ice/
Dice_switch.c484 sw_buf->res_type = cpu_to_le16(ICE_AQC_RES_TYPE_VSI_LIST_REP); in ice_aq_alloc_free_vsi_list()
486 sw_buf->res_type = in ice_aq_alloc_free_vsi_list()
607 u8 res_type; in ice_get_initial_sw_cfg() local
621 res_type = (u8)(le16_to_cpu(ele->vsi_port_num) >> in ice_get_initial_sw_cfg()
624 if (res_type == ICE_AQC_GET_SW_CONF_RESP_VSI) { in ice_get_initial_sw_cfg()
630 res_type, swid, pf_vf_num, is_vf); in ice_get_initial_sw_cfg()
2725 buf->res_type = cpu_to_le16(((type << ICE_AQC_RES_TYPE_S) & in ice_alloc_res_cntr()
2763 buf->res_type = cpu_to_le16(((type << ICE_AQC_RES_TYPE_S) & in ice_free_res_cntr()
Dice_flex_pipe.c2526 u16 res_type; in ice_alloc_tcam_ent() local
2528 if (!ice_tcam_ent_rsrc_type(blk, &res_type)) in ice_alloc_tcam_ent()
2531 return ice_alloc_hw_res(hw, res_type, 1, btm, tcam_idx); in ice_alloc_tcam_ent()
2545 u16 res_type; in ice_free_tcam_ent() local
2547 if (!ice_tcam_ent_rsrc_type(blk, &res_type)) in ice_free_tcam_ent()
2550 return ice_free_hw_res(hw, res_type, 1, &tcam_idx); in ice_free_tcam_ent()
2566 u16 res_type; in ice_alloc_prof_id() local
2569 if (!ice_prof_id_rsrc_type(blk, &res_type)) in ice_alloc_prof_id()
2572 status = ice_alloc_hw_res(hw, res_type, 1, false, &get_prof); in ice_alloc_prof_id()
2591 u16 res_type; in ice_free_prof_id() local
[all …]
/Linux-v5.15/drivers/media/usb/em28xx/
Dem28xx-video.c866 int res_type = get_resource(f_type); in res_get() local
869 if (dev->resources & res_type) { in res_get()
875 dev->resources |= res_type; in res_get()
876 em28xx_videodbg("res: get %d\n", res_type); in res_get()
882 int res_type = get_resource(f_type); in res_free() local
884 dev->resources &= ~res_type; in res_free()
885 em28xx_videodbg("res: put %d\n", res_type); in res_free()

12