Home
last modified time | relevance | path

Searched refs:hw_ioctxt (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_dev.c274 struct hinic_cmd_hw_ioctxt hw_ioctxt; in set_hw_ioctxt() local
277 hw_ioctxt.func_idx = HINIC_HWIF_FUNC_IDX(hwif); in set_hw_ioctxt()
278 hw_ioctxt.ppf_idx = HINIC_HWIF_PPF_IDX(hwif); in set_hw_ioctxt()
280 hw_ioctxt.set_cmdq_depth = HW_IOCTXT_SET_CMDQ_DEPTH_DEFAULT; in set_hw_ioctxt()
281 hw_ioctxt.cmdq_depth = 0; in set_hw_ioctxt()
283 hw_ioctxt.lro_en = 1; in set_hw_ioctxt()
285 hw_ioctxt.rq_depth = ilog2(rq_depth); in set_hw_ioctxt()
287 hw_ioctxt.rx_buf_sz_idx = HINIC_RX_BUF_SZ_IDX; in set_hw_ioctxt()
289 hw_ioctxt.sq_depth = ilog2(sq_depth); in set_hw_ioctxt()
295 &hw_ioctxt, sizeof(hw_ioctxt), NULL, in set_hw_ioctxt()
Dhinic_hw_cmdq.c850 struct hinic_cmd_hw_ioctxt hw_ioctxt = { 0 }; in hinic_set_cmdq_depth() local
855 hw_ioctxt.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_set_cmdq_depth()
856 hw_ioctxt.ppf_idx = HINIC_HWIF_PPF_IDX(hwdev->hwif); in hinic_set_cmdq_depth()
858 hw_ioctxt.set_cmdq_depth = HW_IOCTXT_SET_CMDQ_DEPTH_ENABLE; in hinic_set_cmdq_depth()
859 hw_ioctxt.cmdq_depth = (u8)ilog2(cmdq_depth); in hinic_set_cmdq_depth()
863 &hw_ioctxt, sizeof(hw_ioctxt), NULL, in hinic_set_cmdq_depth()