Home
last modified time | relevance | path

Searched refs:res_id (Results 1 – 25 of 39) sorted by relevance

12

/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dresources.h131 enum mlxsw_res_id res_id) in mlxsw_res_valid() argument
133 return res->valid[res_id]; in mlxsw_res_valid()
140 enum mlxsw_res_id res_id) in mlxsw_res_get() argument
142 if (WARN_ON(!res->valid[res_id])) in mlxsw_res_get()
144 return res->values[res_id]; in mlxsw_res_get()
151 enum mlxsw_res_id res_id, u64 value) in mlxsw_res_set() argument
153 res->valid[res_id] = true; in mlxsw_res_set()
154 res->values[res_id] = value; in mlxsw_res_set()
H A Dspectrum_cnt.c58 enum mlxsw_res_id res_id; in mlxsw_sp_counter_sub_pools_init() local
64 res_id = sub_pool->entry_size_res_id; in mlxsw_sp_counter_sub_pools_init()
66 if (!mlxsw_core_res_valid(mlxsw_sp->core, res_id)) in mlxsw_sp_counter_sub_pools_init()
69 res_id); in mlxsw_sp_counter_sub_pools_init()
/linux/include/linux/netfilter/
H A Dnfnetlink.h68 __be16 res_id) in nfnl_fill_hdr() argument
75 nfmsg->res_id = res_id; in nfnl_fill_hdr()
81 __be16 res_id) in nfnl_msg_put() argument
89 nfnl_fill_hdr(nlh, family, version, res_id); in nfnl_msg_put()
/linux/include/trace/events/
H A Dscmi.h13 TP_PROTO(u8 protocol_id, u8 msg_id, u32 res_id, u32 val1, u32 val2),
14 TP_ARGS(protocol_id, msg_id, res_id, val1, val2),
19 __field(u32, res_id)
27 __entry->res_id = res_id;
32 TP_printk("pt=%02X msg_id=%02X res_id:%u vals=%u:%u",
34 __entry->res_id, __entry->val1, __entry->val2)
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dresource_tracker.c74 u64 res_id; member
235 static void *res_tracker_lookup(struct rb_root *root, u64 res_id) in res_tracker_lookup() argument
243 if (res_id < res->res_id) in res_tracker_lookup()
245 else if (res_id > res->res_id) in res_tracker_lookup()
263 if (res->res_id < this->res_id) in res_tracker_insert()
265 else if (res->res_id > this->res_id) in res_tracker_insert()
882 find_res(struct mlx4_dev * dev,u64 res_id,enum mlx4_resource type) find_res() argument
891 _get_res(struct mlx4_dev * dev,int slave,u64 res_id,enum mlx4_resource type,void * res,const char * func_name) _get_res() argument
931 get_res(dev,slave,res_id,type,res) global() argument
936 mlx4_get_slave_from_resource_id(struct mlx4_dev * dev,enum mlx4_resource type,u64 res_id,int * slave) mlx4_get_slave_from_resource_id() argument
957 put_res(struct mlx4_dev * dev,int slave,u64 res_id,enum mlx4_resource type) put_res() argument
3101 int res_id = (slave << 10) | eqn; mlx4_SW2HW_EQ_wrapper() local
3308 int res_id = eqn | (slave << 10); mlx4_HW2SW_EQ_wrapper() local
3346 int res_id; mlx4_GEN_EQE() local
3414 int res_id = eqn | (slave << 10); mlx4_QUERY_EQ_wrapper() local
[all...]
/linux/drivers/usb/dwc3/
H A Dgadget.h133 u32 res_id; in dwc3_gadget_ep_get_transfer_index() local
135 res_id = dwc3_readl(dep->regs, DWC3_DEPCMD); in dwc3_gadget_ep_get_transfer_index()
136 dep->resource_index = DWC3_DEPCMD_GET_RSC_IDX(res_id); in dwc3_gadget_ep_get_transfer_index()
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_dev.c3623 const char *qed_hw_get_resc_name(enum qed_resources res_id) in qed_hw_get_resc_name() argument
3625 switch (res_id) { in qed_hw_get_resc_name()
3664 enum qed_resources res_id, in __qed_hw_set_soft_resc_size() argument
3669 rc = qed_mcp_set_resc_max_val(p_hwfn, p_ptt, res_id, in __qed_hw_set_soft_resc_size()
3674 res_id, qed_hw_get_resc_name(res_id)); in __qed_hw_set_soft_resc_size()
3681 res_id, qed_hw_get_resc_name(res_id), *p_mcp_resp); in __qed_hw_set_soft_resc_size()
3718 u8 res_id; in qed_hw_set_soft_resc_size() local
3721 for (res_id in qed_hw_set_soft_resc_size()
3766 qed_hw_get_dflt_resc(struct qed_hwfn * p_hwfn,enum qed_resources res_id,u32 * p_resc_num,u32 * p_resc_start) qed_hw_get_dflt_resc() argument
3850 __qed_hw_set_resc_info(struct qed_hwfn * p_hwfn,enum qed_resources res_id) __qed_hw_set_resc_info() argument
3913 u8 res_id; qed_hw_set_resc_info() local
3959 u8 res_id; qed_hw_get_resc() local
[all...]
H A Dqed_mcp.c3503 static enum resource_id_enum qed_mcp_get_mfw_res_id(enum qed_resources res_id) in qed_mcp_get_mfw_res_id() argument
3507 switch (res_id) { in qed_mcp_get_mfw_res_id()
3568 enum qed_resources res_id; member
3594 mfw_resc_info.res_id = qed_mcp_get_mfw_res_id(p_in_params->res_id); in qed_mcp_resc_allocation_msg()
3595 if (mfw_resc_info.res_id == RESOURCE_NUM_INVALID) { in qed_mcp_resc_allocation_msg()
3598 p_in_params->res_id, in qed_mcp_resc_allocation_msg()
3599 qed_hw_get_resc_name(p_in_params->res_id)); in qed_mcp_resc_allocation_msg()
3625 "Resource message request: cmd 0x%08x, res_id %d [%s], hsi_version %d.%d, val 0x%x\n", in qed_mcp_resc_allocation_msg()
3627 p_in_params->res_id, in qed_mcp_resc_allocation_msg()
3665 qed_mcp_set_resc_max_val(struct qed_hwfn * p_hwfn,struct qed_ptt * p_ptt,enum qed_resources res_id,u32 resc_max_val,u32 * p_mcp_resp) qed_mcp_set_resc_max_val() argument
3690 qed_mcp_get_resc_info(struct qed_hwfn * p_hwfn,struct qed_ptt * p_ptt,enum qed_resources res_id,u32 * p_mcp_resp,u32 * p_resc_num,u32 * p_resc_start) qed_mcp_get_resc_info() argument
[all...]
H A Dqed_dev_api.h528 const char *qed_hw_get_resc_name(enum qed_resources res_id);
H A Dqed_mcp.h1111 * @res_id: RES ID.
1120 enum qed_resources res_id,
1129 * @res_id: Res ID.
1139 enum qed_resources res_id,
/linux/net/netfilter/
H A Dnfnetlink.c621 u16 res_id; in nfnetlink_rcv_skb_batch() local
642 if (nfgenmsg->res_id == (__force __be16)NFNL_SUBSYS_NFTABLES) in nfnetlink_rcv_skb_batch()
643 res_id = NFNL_SUBSYS_NFTABLES; in nfnetlink_rcv_skb_batch()
645 res_id = ntohs(nfgenmsg->res_id); in nfnetlink_rcv_skb_batch()
647 nfnetlink_rcv_batch(skb, nlh, res_id, gen_id); in nfnetlink_rcv_skb_batch()
H A Dnfnetlink_queue.c1301 u16 queue_num = ntohs(info->nfmsg->res_id); in nfqnl_recv_verdict_batch()
1412 u_int16_t queue_num = ntohs(info->nfmsg->res_id); in nfqnl_recv_verdict()
1497 u_int16_t queue_num = ntohs(info->nfmsg->res_id); in nfqnl_recv_config()
/linux/tools/testing/selftests/net/netfilter/
H A Dconntrack_dump_flush.c162 nfh->res_id = 0; in conntrack_data_generate_v4()
196 nfh->res_id = 0; in conntrack_data_generate_v6()
238 nfh->res_id = 0; in conntracK_count_zone()
285 nfh->res_id = 0; in conntrack_flush_zone()
H A Dnf_queue.c137 nfg->res_id = htons(queue_num); in nfq_build_cfg_request()
160 nfg->res_id = htons(queue_num); in nfq_build_cfg_params()
183 nfg->res_id = htons(queue_num); in nfq_build_verdict()
/linux/fs/dlm/
H A Drecover.c319 if (r->res_id) { in recover_xa_add()
327 r->res_id = id; in recover_xa_add()
341 xa_erase_bh(&ls->ls_recover_xa, r->res_id); in recover_xa_del()
342 r->res_id = 0; in recover_xa_del()
368 r->res_id = 0; in recover_xa_clear()
H A Ddlm_internal.h320 unsigned long res_id; /* for ls_recover_xa */ member
/linux/include/uapi/linux/netfilter/
H A Dnfnetlink.h37 __be16 res_id; /* resource id */ member
/linux/arch/s390/include/asm/
H A Deadm.h96 unsigned int res_id:8; member
/linux/include/linux/
H A Dbtf.h237 u32 id, u32 *res_id);
239 u32 id, u32 *res_id);
241 u32 id, u32 *res_id);
/linux/include/linux/net/intel/libie/
H A Dadminq.h100 * @res_id: resource ID (look at enum definition above)
114 __le16 res_id; member
/linux/drivers/firmware/arm_scmi/
H A Dprotocols.h269 u8 cmd_id, u32 res_id, u32 *flags, char *name,
H A Ddriver.c1694 * @res_id: The specific resource ID to use.
1703 u8 cmd_id, u32 res_id, u32 *flags, in scmi_common_extended_name_get() argument
1711 txlen = !flags ? sizeof(res_id) : sizeof(res_id) + sizeof(*flags); in scmi_common_extended_name_get()
1716 put_unaligned_le32(res_id, t->tx.buf); in scmi_common_extended_name_get()
1718 put_unaligned_le32(*flags, t->tx.buf + sizeof(res_id)); in scmi_common_extended_name_get()
1730 res_id, ret, name); in scmi_common_extended_name_get()
/linux/drivers/net/netdevsim/
H A Dfib.c137 enum nsim_resource_id res_id, bool max) in nsim_fib_get_val() argument
141 switch (res_id) { in nsim_fib_get_val()
165 enum nsim_resource_id res_id, u64 val) in nsim_fib_set_max() argument
169 switch (res_id) { in nsim_fib_set_max()
H A Dnetdevsim.h381 enum nsim_resource_id res_id, bool max);
/linux/drivers/net/ethernet/intel/ice/
H A Dice_switch.h345 int ice_share_res(struct ice_hw *hw, u16 type, u8 shared, u16 res_id);

12