Home
last modified time | relevance | path

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

123

/drivers/pmdomain/qcom/
Drpmpd.c55 const int res_type; member
76 .res_type = RPMPD_RWCX,
85 .res_type = RPMPD_RWCX,
94 .res_type = RPMPD_SMPA,
103 .res_type = RPMPD_SMPA,
112 .res_type = RPMPD_SMPA,
121 .res_type = RPMPD_SMPA,
130 .res_type = RPMPD_SMPA,
139 .res_type = RPMPD_SMPA,
148 .res_type = RPMPD_SMPA,
[all …]
/drivers/infiniband/hw/usnic/
Dusnic_vnic.c48 static enum vnic_res_type _to_vnic_res_type(enum usnic_vnic_res_type res_type) in _to_vnic_res_type() argument
59 if (res_type >= USNIC_VNIC_RES_TYPE_MAX) in _to_vnic_res_type()
62 return usnic_vnic_type_2_vnic_type[res_type]; in _to_vnic_res_type()
65 const char *usnic_vnic_res_type_to_str(enum usnic_vnic_res_type res_type) in usnic_vnic_res_type_to_str() argument
76 if (res_type >= USNIC_VNIC_RES_TYPE_MAX) in usnic_vnic_res_type_to_str()
79 return usnic_vnic_res_type_desc[res_type]; in usnic_vnic_res_type_to_str()
181 enum usnic_vnic_res_type res_type; in usnic_vnic_spec_dump() local
187 res_type = res_spec->resources[i].type; in usnic_vnic_spec_dump()
191 usnic_vnic_res_type_to_str(res_type), in usnic_vnic_spec_dump()
202 enum usnic_vnic_res_type res_type; in usnic_vnic_check_room() local
[all …]
Dusnic_ib_sysfs.c71 enum usnic_vnic_res_type res_type; in config_show() local
96 for (res_type = USNIC_VNIC_RES_TYPE_EOL; in config_show()
97 res_type < USNIC_VNIC_RES_TYPE_MAX; res_type++) { in config_show()
98 if (us_ibdev->vf_res_cnt[res_type] == 0) in config_show()
102 us_ibdev->vf_res_cnt[res_type], in config_show()
103 usnic_vnic_res_type_to_str(res_type)); in config_show()
Dusnic_ib_main.c535 enum usnic_vnic_res_type res_type; in usnic_ib_pci_probe() local
587 for (res_type = USNIC_VNIC_RES_TYPE_EOL+1; in usnic_ib_pci_probe()
588 res_type < USNIC_VNIC_RES_TYPE_MAX; in usnic_ib_pci_probe()
589 res_type++) { in usnic_ib_pci_probe()
590 pf->vf_res_cnt[res_type] = usnic_vnic_res_cnt(vf->vnic, in usnic_ib_pci_probe()
591 res_type); in usnic_ib_pci_probe()
Dusnic_ib_qp_grp.c535 enum usnic_vnic_res_type res_type; in alloc_res_chunk_list() local
552 res_type = res_spec->resources[i].type; in alloc_res_chunk_list()
555 res_chunk_list[i] = usnic_vnic_get_resources(vnic, res_type, in alloc_res_chunk_list()
561 usnic_vnic_res_type_to_str(res_type), in alloc_res_chunk_list()
745 enum usnic_vnic_res_type res_type) in usnic_ib_qp_grp_get_chunk() argument
750 if (qp_grp->res_chunk_list[i]->type == res_type) in usnic_ib_qp_grp_get_chunk()
Dusnic_vnic.h85 const char *usnic_vnic_res_type_to_str(enum usnic_vnic_res_type res_type);
/drivers/scsi/qla2xxx/
Dqla_inline.h400 iores->res_type = RESOURCE_NONE; in qla_get_fw_resources()
403 if (iores->res_type & RESOURCE_FORCE) in qla_get_fw_resources()
415 iores->res_type = RESOURCE_NONE; in qla_get_fw_resources()
420 if (iores->res_type & RESOURCE_EXCH) { in qla_get_fw_resources()
428 iores->res_type = RESOURCE_NONE; in qla_get_fw_resources()
436 iores->res_type = RESOURCE_NONE; in qla_get_fw_resources()
440 if (iores->res_type & RESOURCE_EXCH) { in qla_get_fw_resources()
443 iores->res_type = RESOURCE_NONE; in qla_get_fw_resources()
455 iores->res_type |= RESOURCE_HA; in qla_get_fw_resources()
487 if (iores->res_type & RESOURCE_HA) { in qla_put_fw_resources()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cmdbuf_res.c83 enum vmw_cmdbuf_res_type res_type, in vmw_cmdbuf_res_lookup() argument
87 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
207 cres->hash.key = user_key | (res_type << 24); in vmw_cmdbuf_res_add()
235 enum vmw_cmdbuf_res_type res_type, in vmw_cmdbuf_res_remove() argument
242 unsigned long key = user_key | (res_type << 24); in vmw_cmdbuf_res_remove()
Dvmwgfx_resource.c103 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release_id()
119 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release()
187 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_alloc_id()
491 &res->dev_priv->res_lru[res->func->res_type]); in vmw_resource_unreserve()
678 struct list_head *lru_list = &dev_priv->res_lru[res->func->res_type]; in vmw_resource_validate()
1049 return res->func->res_type; in vmw_res_type()
Dvmwgfx_resource_priv.h84 enum vmw_res_type res_type; member
Dvmwgfx_va.c83 .res_type = vmw_res_stream,
Dvmwgfx_context.c75 .res_type = vmw_res_context,
88 .res_type = vmw_res_context,
103 .res_type = vmw_res_dx_context,
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()
316 enum vmw_res_type res_type = vmw_res_type(res); in vmw_execbuf_res_val_add() local
322 rcache = &sw_context->res_cache[res_type]; in vmw_execbuf_res_val_add()
337 priv_size = vmw_execbuf_res_size(dev_priv, res_type); in vmw_execbuf_res_val_add()
633 enum vmw_res_type res_type, in vmw_cmd_res_check() argument
639 struct vmw_res_cache_entry *rcache = &sw_context->res_cache[res_type]; in vmw_cmd_res_check()
648 if (res_type == vmw_res_context) { in vmw_cmd_res_check()
661 unsigned int size = vmw_execbuf_res_size(dev_priv, res_type); in vmw_cmd_res_check()
[all …]
Dvmwgfx_drv.h1263 enum vmw_cmdbuf_res_type res_type,
1268 enum vmw_cmdbuf_res_type res_type,
1273 enum vmw_cmdbuf_res_type res_type,
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum2_kvdl.c13 u8 res_type; member
27 .res_type = _res_type, \
107 static int mlxsw_sp2_kvdl_rec_del(struct mlxsw_sp *mlxsw_sp, u8 res_type, in mlxsw_sp2_kvdl_rec_del() argument
118 mlxsw_reg_iedr_rec_pack(iedr_pl, 0, res_type, size, kvdl_index); in mlxsw_sp2_kvdl_rec_del()
134 err = mlxsw_sp2_kvdl_rec_del(mlxsw_sp, part->info->res_type, in mlxsw_sp2_kvdl_part_free()
/drivers/platform/loongarch/
Dloongson-laptop.c67 char res_type; in acpi_evalf() local
87 res_type = *(fmt++); in acpi_evalf()
109 if (res_type != 'v') { in acpi_evalf()
118 switch (res_type) { in acpi_evalf()
129 pr_err("acpi_evalf() called with invalid format character '%c'\n", res_type); in acpi_evalf()
/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 …]
/drivers/scsi/snic/
Dvnic_wq.c13 unsigned int index, enum vnic_res_type res_type) in vnic_wq_get_ctrl() argument
15 wq->ctrl = svnic_dev_get_res(vdev, res_type, index); in vnic_wq_get_ctrl()
/drivers/scsi/fnic/
Dvnic_wq.c17 unsigned int index, enum vnic_res_type res_type) in vnic_wq_get_ctrl() argument
19 wq->ctrl = vnic_dev_get_res(vdev, res_type, index); in vnic_wq_get_ctrl()
/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()
/drivers/infiniband/hw/mlx5/
Dqp.h51 enum mlx5_res_type res_type);
/drivers/net/ethernet/intel/ice/
Dice_flex_pipe.c1307 u16 res_type; in ice_alloc_tcam_ent() local
1309 if (!ice_tcam_ent_rsrc_type(blk, &res_type)) in ice_alloc_tcam_ent()
1312 return ice_alloc_hw_res(hw, res_type, 1, btm, tcam_idx); in ice_alloc_tcam_ent()
1326 u16 res_type; in ice_free_tcam_ent() local
1328 if (!ice_tcam_ent_rsrc_type(blk, &res_type)) in ice_free_tcam_ent()
1331 return ice_free_hw_res(hw, res_type, 1, &tcam_idx); in ice_free_tcam_ent()
1345 u16 res_type; in ice_alloc_prof_id() local
1349 if (!ice_prof_id_rsrc_type(blk, &res_type)) in ice_alloc_prof_id()
1352 status = ice_alloc_hw_res(hw, res_type, 1, false, &get_prof); in ice_alloc_prof_id()
1370 u16 res_type; in ice_free_prof_id() local
[all …]
Dice_switch.c1834 sw_buf->res_type = cpu_to_le16(ICE_AQC_RES_TYPE_VSI_LIST_REP); in ice_aq_alloc_free_vsi_list()
1837 sw_buf->res_type = in ice_aq_alloc_free_vsi_list()
1841 sw_buf->res_type = in ice_aq_alloc_free_vsi_list()
2102 sw_buf->res_type = cpu_to_le16((ICE_AQC_RES_TYPE_RECIPE << in ice_alloc_recipe()
2376 u8 res_type; in ice_get_initial_sw_cfg() local
2390 res_type = (u8)(le16_to_cpu(ele->vsi_port_num) >> in ice_get_initial_sw_cfg()
2393 if (res_type == ICE_AQC_GET_SW_CONF_RESP_VSI) { in ice_get_initial_sw_cfg()
2399 res_type, swid, pf_vf_num, is_vf); in ice_get_initial_sw_cfg()
4452 buf->res_type = cpu_to_le16(((type << ICE_AQC_RES_TYPE_S) & in ice_alloc_res_cntr()
4489 buf->res_type = cpu_to_le16(((type << ICE_AQC_RES_TYPE_S) & in ice_free_res_cntr()
[all …]
/drivers/media/usb/em28xx/
Dem28xx-video.c856 int res_type = get_resource(f_type); in res_get() local
859 if (dev->resources & res_type) { in res_get()
865 dev->resources |= res_type; in res_get()
866 em28xx_videodbg("res: get %d\n", res_type); in res_get()
872 int res_type = get_resource(f_type); in res_free() local
874 dev->resources &= ~res_type; in res_free()
875 em28xx_videodbg("res: put %d\n", res_type); in res_free()

123