Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dresources.h127 enum mlxsw_res_id res_id) in mlxsw_res_valid() argument
129 return res->valid[res_id]; in mlxsw_res_valid()
136 enum mlxsw_res_id res_id) in mlxsw_res_get() argument
138 if (WARN_ON(!res->valid[res_id])) in mlxsw_res_get()
140 return res->values[res_id]; in mlxsw_res_get()
147 enum mlxsw_res_id res_id, u64 value) in mlxsw_res_set() argument
149 res->valid[res_id] = true; in mlxsw_res_set()
150 res->values[res_id] = value; in mlxsw_res_set()
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()
Dcore.h455 enum mlxsw_res_id res_id);
461 enum mlxsw_res_id res_id);
/linux-6.1.9/include/linux/netfilter/
Dnfnetlink.h69 __be16 res_id) in nfnl_fill_hdr() argument
76 nfmsg->res_id = res_id; in nfnl_fill_hdr()
82 __be16 res_id) in nfnl_msg_put() argument
90 nfnl_fill_hdr(nlh, family, version, res_id); in nfnl_msg_put()
/linux-6.1.9/include/trace/events/
Dscmi.h11 TP_PROTO(u8 protocol_id, u8 msg_id, u32 res_id, u32 val1, u32 val2),
12 TP_ARGS(protocol_id, msg_id, res_id, val1, val2),
17 __field(u32, res_id)
25 __entry->res_id = res_id;
32 __entry->res_id, __entry->val1, __entry->val2)
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
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 static void *find_res(struct mlx4_dev *dev, u64 res_id, in find_res() argument
888 res_id); in find_res()
891 static int _get_res(struct mlx4_dev *dev, int slave, u64 res_id, in _get_res() argument
899 r = find_res(dev, res_id, type); in _get_res()
[all …]
/linux-6.1.9/drivers/usb/dwc3/
Dgadget.h132 u32 res_id; in dwc3_gadget_ep_get_transfer_index() local
134 res_id = dwc3_readl(dep->regs, DWC3_DEPCMD); in dwc3_gadget_ep_get_transfer_index()
135 dep->resource_index = DWC3_DEPCMD_GET_RSC_IDX(res_id); in dwc3_gadget_ep_get_transfer_index()
/linux-6.1.9/drivers/soc/qcom/
Drpmpd.c50 .res_id = r_id, \
58 .res_id = r_id, \
66 .res_id = r_id, \
74 .res_id = r_id, \
82 .res_id = r_id, \
90 .res_id = r_id, \
107 const int res_id; member
504 pd->res_type, pd->res_id, &req, sizeof(req)); in rpmpd_send_enable()
515 return qcom_rpm_smd_write(pd->rpm, state, pd->res_type, pd->res_id, in rpmpd_send_corner()
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_dev.c3642 const char *qed_hw_get_resc_name(enum qed_resources res_id) in qed_hw_get_resc_name() argument
3644 switch (res_id) { in qed_hw_get_resc_name()
3683 enum qed_resources res_id, in __qed_hw_set_soft_resc_size() argument
3688 rc = qed_mcp_set_resc_max_val(p_hwfn, p_ptt, res_id, in __qed_hw_set_soft_resc_size()
3693 res_id, qed_hw_get_resc_name(res_id)); in __qed_hw_set_soft_resc_size()
3700 res_id, qed_hw_get_resc_name(res_id), *p_mcp_resp); in __qed_hw_set_soft_resc_size()
3737 u8 res_id; in qed_hw_set_soft_resc_size() local
3740 for (res_id = 0; res_id < QED_MAX_RESC; res_id++) { in qed_hw_set_soft_resc_size()
3741 switch (res_id) { in qed_hw_set_soft_resc_size()
3765 rc = __qed_hw_set_soft_resc_size(p_hwfn, p_ptt, res_id, in qed_hw_set_soft_resc_size()
[all …]
Dqed_mcp.c3513 static enum resource_id_enum qed_mcp_get_mfw_res_id(enum qed_resources res_id) in qed_mcp_get_mfw_res_id() argument
3517 switch (res_id) { in qed_mcp_get_mfw_res_id()
3578 enum qed_resources res_id; member
3604 mfw_resc_info.res_id = qed_mcp_get_mfw_res_id(p_in_params->res_id); in qed_mcp_resc_allocation_msg()
3605 if (mfw_resc_info.res_id == RESOURCE_NUM_INVALID) { in qed_mcp_resc_allocation_msg()
3608 p_in_params->res_id, in qed_mcp_resc_allocation_msg()
3609 qed_hw_get_resc_name(p_in_params->res_id)); in qed_mcp_resc_allocation_msg()
3637 p_in_params->res_id, in qed_mcp_resc_allocation_msg()
3638 qed_hw_get_resc_name(p_in_params->res_id), in qed_mcp_resc_allocation_msg()
3675 enum qed_resources res_id, in qed_mcp_set_resc_max_val() argument
[all …]
Dqed_dev_api.h512 const char *qed_hw_get_resc_name(enum qed_resources res_id);
Dqed_mcp.h1120 enum qed_resources res_id,
1139 enum qed_resources res_id,
/linux-6.1.9/net/netfilter/
Dnfnetlink.c613 u16 res_id; in nfnetlink_rcv_skb_batch() local
634 if (nfgenmsg->res_id == (__force __be16)NFNL_SUBSYS_NFTABLES) in nfnetlink_rcv_skb_batch()
635 res_id = NFNL_SUBSYS_NFTABLES; in nfnetlink_rcv_skb_batch()
637 res_id = ntohs(nfgenmsg->res_id); in nfnetlink_rcv_skb_batch()
639 nfnetlink_rcv_batch(skb, nlh, res_id, gen_id); in nfnetlink_rcv_skb_batch()
Dnfnetlink_queue.c1085 u16 queue_num = ntohs(info->nfmsg->res_id); in nfqnl_recv_verdict_batch()
1196 u_int16_t queue_num = ntohs(info->nfmsg->res_id); in nfqnl_recv_verdict()
1281 u_int16_t queue_num = ntohs(info->nfmsg->res_id); in nfqnl_recv_config()
/linux-6.1.9/tools/testing/selftests/netfilter/
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-6.1.9/include/linux/
Dbtf.h171 u32 id, u32 *res_id);
173 u32 id, u32 *res_id);
175 u32 id, u32 *res_id);
/linux-6.1.9/fs/dlm/
Drecover.c314 if (r->res_id) { in recover_idr_add()
322 r->res_id = rv; in recover_idr_add()
337 idr_remove(&ls->ls_recover_idr, r->res_id); in recover_idr_del()
338 r->res_id = 0; in recover_idr_del()
364 r->res_id = 0; in recover_idr_clear()
Ddlm_internal.h311 int res_id; /* for ls_recover_idr */ member
/linux-6.1.9/include/uapi/linux/netfilter/
Dnfnetlink.h37 __be16 res_id; /* resource id */ member
/linux-6.1.9/drivers/s390/cio/
Dscm.c106 scm_attr(res_id);
147 scmdev->attrs.res_id = sale->rid; in scmdev_setup()
/linux-6.1.9/arch/s390/include/asm/
Deadm.h95 unsigned int res_id:8; member
/linux-6.1.9/drivers/firmware/arm_scmi/
Dprotocols.h252 u8 cmd_id, u32 res_id, char *name, size_t len);
Ddriver.c1150 u8 cmd_id, u32 res_id, char *name, in scmi_common_extended_name_get() argument
1157 ret = ph->xops->xfer_get_init(ph, cmd_id, sizeof(res_id), in scmi_common_extended_name_get()
1162 put_unaligned_le32(res_id, t->tx.buf); in scmi_common_extended_name_get()
1174 res_id, ret, name); in scmi_common_extended_name_get()
/linux-6.1.9/drivers/net/netdevsim/
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()
Dnetdevsim.h339 enum nsim_resource_id res_id, bool max);

12