Home
last modified time | relevance | path

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

12

/linux/drivers/infiniband/hw/usnic/
H A 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 …]
H A 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()
H A Dusnic_ib_main.c552 enum usnic_vnic_res_type res_type; in usnic_ib_pci_probe() local
604 for (res_type = USNIC_VNIC_RES_TYPE_EOL+1; in usnic_ib_pci_probe()
605 res_type < USNIC_VNIC_RES_TYPE_MAX; in usnic_ib_pci_probe()
606 res_type++) { in usnic_ib_pci_probe()
607 pf->vf_res_cnt[res_type] = usnic_vnic_res_cnt(vf->vnic, in usnic_ib_pci_probe()
608 res_type); in usnic_ib_pci_probe()
H A 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()
H A Dusnic_vnic.h85 const char *usnic_vnic_res_type_to_str(enum usnic_vnic_res_type res_type);
/linux/drivers/gpu/drm/vmwgfx/
H A 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()
H A Dvmwgfx_resource_priv.h84 enum vmw_res_type res_type; member
H A Dvmwgfx_va.c83 .res_type = vmw_res_stream,
H A Dvmwgfx_context.c75 .res_type = vmw_res_context,
88 .res_type = vmw_res_context,
103 .res_type = vmw_res_dx_context,
H A Dvmwgfx_execbuf.c251 enum vmw_res_type res_type) in vmw_execbuf_res_size() argument
253 return (res_type == vmw_res_dx_context || in vmw_execbuf_res_size()
254 (res_type == vmw_res_context && dev_priv->has_mob)) ? in vmw_execbuf_res_size()
299 enum vmw_res_type res_type = vmw_res_type(res); in vmw_execbuf_res_val_add() local
305 rcache = &sw_context->res_cache[res_type]; in vmw_execbuf_res_val_add()
320 priv_size = vmw_execbuf_res_size(dev_priv, res_type); in vmw_execbuf_res_val_add()
616 enum vmw_res_type res_type, in vmw_cmd_res_check() argument
622 struct vmw_res_cache_entry *rcache = &sw_context->res_cache[res_type]; in vmw_cmd_res_check()
631 if (res_type == vmw_res_context) { in vmw_cmd_res_check()
644 unsigned int size = vmw_execbuf_res_size(dev_priv, res_type); in vmw_cmd_res_check()
[all …]
H A Dvmwgfx_drv.h1249 enum vmw_cmdbuf_res_type res_type,
1254 enum vmw_cmdbuf_res_type res_type,
1259 enum vmw_cmdbuf_res_type res_type,
H A Dvmwgfx_bo.c870 if (res->func->res_type == vmw_res_surface) in vmw_bo_surface()
877 if (res->func->res_type == vmw_res_surface) in vmw_bo_surface()
H A Dvmwgfx_streamoutput.c65 .res_type = vmw_res_streamoutput,
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A 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()
/linux/drivers/platform/loongarch/
H A Dloongson-laptop.c66 char res_type; in acpi_evalf() local
86 res_type = *(fmt++); in acpi_evalf()
108 if (res_type != 'v') { in acpi_evalf()
117 switch (res_type) { in acpi_evalf()
128 pr_err("acpi_evalf() called with invalid format character '%c'\n", res_type); in acpi_evalf()
/linux/drivers/tee/qcomtee/
H A Dcore.c682 int *result, u64 *res_type) in qcomtee_object_invoke_ctx_invoke() argument
694 &res, res_type); in qcomtee_object_invoke_ctx_invoke()
698 &res, res_type); in qcomtee_object_invoke_ctx_invoke()
748 u64 res_type; in qcomtee_object_do_invoke_internal() local
777 ret = qcomtee_object_invoke_ctx_invoke(oic, result, &res_type); in qcomtee_object_do_invoke_internal()
820 if (res_type != QCOMTEE_RESULT_INBOUND_REQ_NEEDED) { in qcomtee_object_do_invoke_internal()
/linux/drivers/net/ethernet/brocade/bna/
H A 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 …]
H A 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 …]
H A Dbnad.c64 (_res_info)->res_type = BNA_RES_T_MEM; \
1613 if (res_info[i].res_type == BNA_RES_T_MEM) in bnad_tx_res_free()
1615 else if (res_info[i].res_type == BNA_RES_T_INTR) in bnad_tx_res_free()
1628 if (res_info[i].res_type == BNA_RES_T_MEM) in bnad_tx_res_alloc()
1631 else if (res_info[i].res_type == BNA_RES_T_INTR) in bnad_tx_res_alloc()
1651 if (res_info[i].res_type == BNA_RES_T_MEM) in bnad_rx_res_free()
1653 else if (res_info[i].res_type == BNA_RES_T_INTR) in bnad_rx_res_free()
1667 if (res_info[i].res_type == BNA_RES_T_MEM) in bnad_rx_res_alloc()
1670 else if (res_info[i].res_type == BNA_RES_T_INTR) in bnad_rx_res_alloc()
/linux/drivers/scsi/snic/
H A 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()
/linux/drivers/scsi/fnic/
H A 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()
/linux/drivers/infiniband/hw/mlx5/
H A Dqp.h51 enum mlx5_res_type res_type);
/linux/drivers/net/fddi/skfp/
H A 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/drivers/net/ethernet/intel/ice/
H A Dice_flex_pipe.c1308 u16 res_type; in ice_alloc_tcam_ent() local
1310 if (!ice_tcam_ent_rsrc_type(blk, &res_type)) in ice_alloc_tcam_ent()
1313 return ice_alloc_hw_res(hw, res_type, 1, btm, tcam_idx); in ice_alloc_tcam_ent()
1327 u16 res_type; in ice_free_tcam_ent() local
1329 if (!ice_tcam_ent_rsrc_type(blk, &res_type)) in ice_free_tcam_ent()
1332 return ice_free_hw_res(hw, res_type, 1, &tcam_idx); in ice_free_tcam_ent()
1346 u16 res_type; in ice_alloc_prof_id() local
1350 if (!ice_prof_id_rsrc_type(blk, &res_type)) in ice_alloc_prof_id()
1353 status = ice_alloc_hw_res(hw, res_type, 1, false, &get_prof); in ice_alloc_prof_id()
1371 u16 res_type; in ice_free_prof_id() local
[all …]
/linux/drivers/scsi/qla2xxx/
H A Dqla_iocb.c1592 sp->iores.res_type = RESOURCE_IOCB | RESOURCE_EXCH; in qla24xx_start_scsi()
1799 sp->iores.res_type = RESOURCE_IOCB | RESOURCE_EXCH; in qla24xx_dif_start_scsi()
1959 sp->iores.res_type = RESOURCE_IOCB | RESOURCE_EXCH; in qla2xxx_start_scsi_mq()
2181 sp->iores.res_type = RESOURCE_IOCB | RESOURCE_EXCH; in qla2xxx_dif_start_scsi_mq()
3852 sp->iores.res_type = RESOURCE_NONE; in qla_get_iocbs_resource()
3855 sp->iores.res_type = RESOURCE_NONE; in qla_get_iocbs_resource()
3875 sp->iores.res_type = RESOURCE_NONE; in qla_get_iocbs_resource()
3893 sp->iores.res_type |= RESOURCE_IOCB; in qla_get_iocbs_resource()
3896 sp->iores.res_type |= RESOURCE_EXCH; in qla_get_iocbs_resource()
3900 sp->iores.res_type |= RESOURCE_FORCE; in qla_get_iocbs_resource()
[all …]

12