Searched refs:nr_descs (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/net/ethernet/sfc/ |
| H A D | ef100_tx.c | 275 unsigned int nr_descs = tx_queue->insert_count - old_write_count; in ef100_tx_make_descriptors() local 277 if (unlikely(nr_descs == 0)) in ef100_tx_make_descriptors() 296 nr_descs--; in ef100_tx_make_descriptors() 301 nr_descs = 1; in ef100_tx_make_descriptors() 315 buffer, txd, nr_descs); in ef100_tx_make_descriptors() 321 buffer, txd, nr_descs); in ef100_tx_make_descriptors()
|
| /linux/drivers/nvme/target/ |
| H A D | pci-epf.c | 1001 int nr_descs, ret; in nvmet_pci_epf_get_sgl_segment() local 1016 nr_descs = length / sizeof(struct nvme_sgl_desc); in nvmet_pci_epf_get_sgl_segment() 1017 if (sgls[nr_descs - 1].type == (NVME_SGL_FMT_SEG_DESC << 4) || in nvmet_pci_epf_get_sgl_segment() 1018 sgls[nr_descs - 1].type == (NVME_SGL_FMT_LAST_SEG_DESC << 4)) { in nvmet_pci_epf_get_sgl_segment() 1024 *desc = sgls[nr_descs - 1]; in nvmet_pci_epf_get_sgl_segment() 1025 nr_descs--; in nvmet_pci_epf_get_sgl_segment() 1031 *nr_sgls = nr_descs; in nvmet_pci_epf_get_sgl_segment()
|
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_hw_qp.c | 475 static void sq_prepare_ctrl(struct hinic_sq_ctrl *ctrl, int nr_descs) in sq_prepare_ctrl() argument 481 bufdesc_size = nr_descs * sizeof(struct hinic_sq_bufdesc); in sq_prepare_ctrl()
|
| /linux/drivers/net/ethernet/huawei/hinic3/ |
| H A D | hinic3_tx.c | 488 __le32 queue_info, int nr_descs, u16 owner) in hinic3_prepare_sq_ctrl() argument 504 cpu_to_le32(SQ_CTRL_SET(nr_descs, BUFDESC_NUM) | in hinic3_prepare_sq_ctrl()
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 3201 u32 nr_descs; member 3206 u32 nr_descs; member 3239 return bsearch(&desc, tab->descs, tab->nr_descs, in find_kfunc_desc() 3267 b = bsearch(&kf_btf, tab->descs, tab->nr_descs, in __find_kfunc_desc_btf() 3270 if (tab->nr_descs == MAX_KFUNC_BTFS) { in __find_kfunc_desc_btf() 3303 b = &tab->descs[tab->nr_descs++]; in __find_kfunc_desc_btf() 3311 sort(tab->descs, tab->nr_descs, sizeof(tab->descs[0]), in __find_kfunc_desc_btf() 3325 while (tab->nr_descs--) { in bpf_free_kfunc_btf_tab() 3326 module_put(tab->descs[tab->nr_descs].module); in bpf_free_kfunc_btf_tab() 3327 btf_put(tab->descs[tab->nr_descs].btf); in bpf_free_kfunc_btf_tab() [all …]
|