Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/infiniband/hw/usnic/
Dusnic_vnic.c34 static enum vnic_res_type _to_vnic_res_type(enum usnic_vnic_res_type res_type) in _to_vnic_res_type() argument
45 if (res_type >= USNIC_VNIC_RES_TYPE_MAX) in _to_vnic_res_type()
48 return usnic_vnic_type_2_vnic_type[res_type]; in _to_vnic_res_type()
51 const char *usnic_vnic_res_type_to_str(enum usnic_vnic_res_type res_type) in usnic_vnic_res_type_to_str() argument
62 if (res_type >= USNIC_VNIC_RES_TYPE_MAX) in usnic_vnic_res_type_to_str()
65 return usnic_vnic_res_type_desc[res_type]; in usnic_vnic_res_type_to_str()
167 enum usnic_vnic_res_type res_type; in usnic_vnic_spec_dump() local
173 res_type = res_spec->resources[i].type; in usnic_vnic_spec_dump()
177 usnic_vnic_res_type_to_str(res_type), in usnic_vnic_spec_dump()
188 enum usnic_vnic_res_type res_type; in usnic_vnic_check_room() local
[all …]
Dusnic_ib_sysfs.c74 enum usnic_vnic_res_type res_type; in usnic_ib_show_config() local
105 for (res_type = USNIC_VNIC_RES_TYPE_EOL; in usnic_ib_show_config()
106 res_type < USNIC_VNIC_RES_TYPE_MAX; in usnic_ib_show_config()
107 res_type++) { in usnic_ib_show_config()
108 if (us_ibdev->vf_res_cnt[res_type] == 0) in usnic_ib_show_config()
111 us_ibdev->vf_res_cnt[res_type], in usnic_ib_show_config()
112 usnic_vnic_res_type_to_str(res_type), in usnic_ib_show_config()
113 (res_type < (USNIC_VNIC_RES_TYPE_MAX - 1)) ? in usnic_ib_show_config()
Dusnic_ib_main.c504 enum usnic_vnic_res_type res_type; in usnic_ib_pci_probe() local
551 for (res_type = USNIC_VNIC_RES_TYPE_EOL+1; in usnic_ib_pci_probe()
552 res_type < USNIC_VNIC_RES_TYPE_MAX; in usnic_ib_pci_probe()
553 res_type++) { in usnic_ib_pci_probe()
554 pf->vf_res_cnt[res_type] = usnic_vnic_res_cnt(vf->vnic, in usnic_ib_pci_probe()
555 res_type); in usnic_ib_pci_probe()
Dusnic_ib_qp_grp.c527 enum usnic_vnic_res_type res_type; in alloc_res_chunk_list() local
544 res_type = res_spec->resources[i].type; in alloc_res_chunk_list()
547 res_chunk_list[i] = usnic_vnic_get_resources(vnic, res_type, in alloc_res_chunk_list()
553 usnic_vnic_res_type_to_str(res_type), in alloc_res_chunk_list()
751 enum usnic_vnic_res_type res_type) in usnic_ib_qp_grp_get_chunk() argument
756 if (qp_grp->res_chunk_list[i]->type == res_type) in usnic_ib_qp_grp_get_chunk()
Dusnic_vnic.h70 const char *usnic_vnic_res_type_to_str(enum usnic_vnic_res_type res_type);
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cmdbuf_res.c86 enum vmw_cmdbuf_res_type res_type, in vmw_cmdbuf_res_lookup() argument
91 unsigned long key = user_key | (res_type << 24); in vmw_cmdbuf_res_lookup()
201 enum vmw_cmdbuf_res_type res_type, in vmw_cmdbuf_res_add() argument
213 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
249 ret = drm_ht_find_item(&man->resources, user_key | (res_type << 24), in vmw_cmdbuf_res_remove()
Dvmwgfx_resource_priv.h61 enum vmw_res_type res_type; member
Dvmwgfx_resource.c61 .res_type = vmw_res_stream,
107 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release_id()
122 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release()
188 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_alloc_id()
1204 &res->dev_priv->res_lru[res->func->res_type]); in vmw_resource_unreserve()
1368 struct list_head *lru_list = &dev_priv->res_lru[res->func->res_type]; in vmw_resource_validate()
Dvmwgfx_execbuf.c438 enum vmw_res_type res_type, in vmw_cmd_res_reloc_add() argument
457 if (res_type == vmw_res_context && dev_priv->has_mob && in vmw_cmd_res_reloc_add()
503 enum vmw_res_type res_type, in vmw_cmd_res_check() argument
509 &sw_context->res_cache[res_type]; in vmw_cmd_res_check()
517 if (res_type == vmw_res_context) { in vmw_cmd_res_check()
557 ret = vmw_cmd_res_reloc_add(dev_priv, sw_context, res_type, id_loc, in vmw_cmd_res_check()
1429 enum vmw_res_type res_type, in vmw_cmd_switch_backup() argument
1440 ret = vmw_cmd_res_check(dev_priv, sw_context, res_type, in vmw_cmd_switch_backup()
Dvmwgfx_drv.h1064 enum vmw_cmdbuf_res_type res_type,
1069 enum vmw_cmdbuf_res_type res_type,
1074 enum vmw_cmdbuf_res_type res_type,
Dvmwgfx_context.c73 .res_type = vmw_res_context,
85 .res_type = vmw_res_context,
Dvmwgfx_shader.c69 .res_type = vmw_res_shader,
Dvmwgfx_surface.c95 .res_type = vmw_res_surface,
107 .res_type = vmw_res_surface,
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
Dbna_enet.c1924 res_info[BNA_RES_MEM_T_COM].res_type = BNA_RES_T_MEM; in bna_res_req()
1933 res_info[BNA_RES_MEM_T_ATTR].res_type = BNA_RES_T_MEM; in bna_res_req()
1940 res_info[BNA_RES_MEM_T_FWTRC].res_type = BNA_RES_T_MEM; in bna_res_req()
1946 res_info[BNA_RES_MEM_T_STATS].res_type = BNA_RES_T_MEM; in bna_res_req()
1960 res_info[BNA_MOD_RES_MEM_T_TX_ARRAY].res_type = BNA_RES_T_MEM; in bna_mod_res_req()
1968 res_info[BNA_MOD_RES_MEM_T_TXQ_ARRAY].res_type = BNA_RES_T_MEM; in bna_mod_res_req()
1976 res_info[BNA_MOD_RES_MEM_T_RX_ARRAY].res_type = BNA_RES_T_MEM; in bna_mod_res_req()
1984 res_info[BNA_MOD_RES_MEM_T_RXP_ARRAY].res_type = BNA_RES_T_MEM; in bna_mod_res_req()
1992 res_info[BNA_MOD_RES_MEM_T_RXQ_ARRAY].res_type = BNA_RES_T_MEM; in bna_mod_res_req()
2000 res_info[BNA_MOD_RES_MEM_T_UCMAC_ARRAY].res_type = BNA_RES_T_MEM; in bna_mod_res_req()
[all …]
Dbna_tx_rx.c2419 res_info[BNA_RX_RES_MEM_T_CCB].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2425 res_info[BNA_RX_RES_MEM_T_RCB].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2431 res_info[BNA_RX_RES_MEM_T_CQPT].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2437 res_info[BNA_RX_RES_MEM_T_CSWQPT].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2443 res_info[BNA_RX_RES_MEM_T_CQPT_PAGE].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2449 res_info[BNA_RX_RES_MEM_T_DQPT].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2455 res_info[BNA_RX_RES_MEM_T_DSWQPT].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2461 res_info[BNA_RX_RES_MEM_T_DPAGE].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2467 res_info[BNA_RX_RES_MEM_T_HQPT].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
2473 res_info[BNA_RX_RES_MEM_T_HSWQPT].res_type = BNA_RES_T_MEM; in bna_rx_res_req()
[all …]
Dbnad.c72 (_res_info)->res_type = BNA_RES_T_MEM; \
1627 if (res_info[i].res_type == BNA_RES_T_MEM) in bnad_tx_res_free()
1629 else if (res_info[i].res_type == BNA_RES_T_INTR) in bnad_tx_res_free()
1642 if (res_info[i].res_type == BNA_RES_T_MEM) in bnad_tx_res_alloc()
1645 else if (res_info[i].res_type == BNA_RES_T_INTR) in bnad_tx_res_alloc()
1665 if (res_info[i].res_type == BNA_RES_T_MEM) in bnad_rx_res_free()
1667 else if (res_info[i].res_type == BNA_RES_T_INTR) in bnad_rx_res_free()
1681 if (res_info[i].res_type == BNA_RES_T_MEM) in bnad_rx_res_alloc()
1684 else if (res_info[i].res_type == BNA_RES_T_INTR) in bnad_rx_res_alloc()
Dbna_types.h307 enum bna_res_type res_type; member
/linux-4.1.27/drivers/net/fddi/skfp/
Dess.c140 msg_res_type = ((struct smt_p_0015 *)p)->res_type ; in ess_raf_received_pack()
502 chg->s_type.res_type = SYNC_BW ; in ess_send_response()
593 req->s_type.res_type = SYNC_BW ; in ess_send_alc_req()
/linux-4.1.27/drivers/media/i2c/m5mols/
Dm5mols_core.c553 format = __find_format(info, cfg, fmt->which, info->res_type); in m5mols_get_fmt()
590 info->res_type = type; in m5mols_set_fmt()
717 code = info->ffmt[info->res_type].code; in m5mols_s_stream()
992 info->res_type = M5MOLS_RESTYPE_MONITOR; in m5mols_probe()
Dm5mols.h233 int res_type; member
/linux-4.1.27/drivers/media/usb/em28xx/
Dem28xx-video.c849 int res_type = get_ressource(f_type); in res_get() local
852 if (dev->resources & res_type) { in res_get()
858 dev->resources |= res_type; in res_get()
859 em28xx_videodbg("res: get %d\n", res_type); in res_get()
865 int res_type = get_ressource(f_type); in res_free() local
867 dev->resources &= ~res_type; in res_free()
868 em28xx_videodbg("res: put %d\n", res_type); in res_free()
/linux-4.1.27/drivers/net/fddi/skfp/h/
Dsmt.h457 u_int res_type ; /* recsource type */ member
/linux-4.1.27/drivers/iommu/
Ddmar.c1795 static int res_type[] = { in dmar_walk_dsm_resource() local
1810 callback.cb[res_type[func]] = handler; in dmar_walk_dsm_resource()
1811 callback.arg[res_type[func]] = arg; in dmar_walk_dsm_resource()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c297 enum mlx4_resource res_type, int count, in mlx4_grant_resource() argument
302 &priv->mfunc.master.res_tracker.res_alloc[res_type]; in mlx4_grant_resource()
323 slave, port, resource_str(res_type), count, in mlx4_grant_resource()
344 slave, port, resource_str(res_type), free, in mlx4_grant_resource()
368 enum mlx4_resource res_type, int count, in mlx4_release_resource() argument
373 &priv->mfunc.master.res_tracker.res_alloc[res_type]; in mlx4_release_resource()
414 enum mlx4_resource res_type, in initialize_res_quotas() argument
422 if (res_type == RES_MTT) { in initialize_res_quotas()
/linux-4.1.27/drivers/infiniband/hw/nes/
Dnes_cm.c1923 u32 res_type; in handle_rcv_mpa() local
1925 ret = parse_mpa(cm_node, dataloc, &res_type, datasize); in handle_rcv_mpa()
1942 if (res_type == NES_MPA_REQUEST_REJECT) in handle_rcv_mpa()
1954 if (res_type == NES_MPA_REQUEST_REJECT) { in handle_rcv_mpa()
/linux-4.1.27/drivers/platform/x86/
Dthinkpad_acpi.c553 char res_type; in acpi_evalf() local
568 res_type = *(fmt++); in acpi_evalf()
591 if (res_type != 'v') { in acpi_evalf()
600 switch (res_type) { in acpi_evalf()
613 "with invalid format character '%c'\n", res_type); in acpi_evalf()
/linux-4.1.27/mm/
Dmemcontrol.c404 enum res_type { enum
3669 struct eventfd_ctx *eventfd, const char *args, enum res_type type) in __mem_cgroup_usage_register_event()
3764 struct eventfd_ctx *eventfd, enum res_type type) in __mem_cgroup_usage_unregister_event()
/linux-4.1.27/drivers/scsi/
Dipr.h418 u8 res_type; member
Dipr.c1170 res->type = cfgtew->u.cfgte64->res_type; in ipr_init_res_entry()
1318 res->type = cfgtew->u.cfgte64->res_type; in ipr_update_res_entry()
/linux-4.1.27/drivers/target/
Dtarget_core_configfs.c973 SE_DEV_PR_ATTR_RO(res_type);