/Linux-v6.6/tools/lib/bpf/ |
D | usdt.c | 400 static int parse_elf_segs(Elf *elf, const char *path, struct elf_seg **segs, size_t *seg_cnt) in parse_elf_segs() argument 408 *seg_cnt = 0; in parse_elf_segs() 427 tmp = libbpf_reallocarray(*segs, *seg_cnt + 1, sizeof(**segs)); in parse_elf_segs() 432 seg = *segs + *seg_cnt; in parse_elf_segs() 433 (*seg_cnt)++; in parse_elf_segs() 441 if (*seg_cnt == 0) { in parse_elf_segs() 446 qsort(*segs, *seg_cnt, sizeof(**segs), cmp_elf_segs); in parse_elf_segs() 450 static int parse_vma_segs(int pid, const char *lib_path, struct elf_seg **segs, size_t *seg_cnt) in parse_vma_segs() argument 458 *seg_cnt = 0; in parse_vma_segs() 510 tmp = libbpf_reallocarray(*segs, *seg_cnt + 1, sizeof(**segs)); in parse_vma_segs() [all …]
|
/Linux-v6.6/drivers/i3c/master/mipi-i3c-hci/ |
D | pio.c | 121 unsigned int seg_len, seg_cnt; member 764 p += (ibi->seg_len - ibi->seg_cnt) / 4; in hci_pio_get_ibi_segment() 766 while ((nr_words = ibi->seg_cnt/4)) { in hci_pio_get_ibi_segment() 775 ibi->seg_cnt -= nr_words * 4; in hci_pio_get_ibi_segment() 776 DBG("now %d left %d", nr_words * 4, ibi->seg_cnt); in hci_pio_get_ibi_segment() 781 if (ibi->seg_cnt) { in hci_pio_get_ibi_segment() 794 DBG("trailing %d", ibi->seg_cnt); in hci_pio_get_ibi_segment() 797 while (ibi->seg_cnt--) { in hci_pio_get_ibi_segment() 832 ibi->seg_cnt = ibi->seg_len; in hci_pio_prep_new_ibi() 877 if (!ibi->slot && !ibi->seg_cnt && ibi->last_seg) in hci_pio_process_ibi() [all …]
|
/Linux-v6.6/drivers/scsi/ |
D | qla1280.c | 2743 int seg_cnt; in qla1280_64bit_start_scsi() local 2750 seg_cnt = scsi_dma_map(cmd); in qla1280_64bit_start_scsi() 2751 if (seg_cnt > 0) { in qla1280_64bit_start_scsi() 2752 if (seg_cnt > 2) { in qla1280_64bit_start_scsi() 2753 req_cnt += (seg_cnt - 2) / 5; in qla1280_64bit_start_scsi() 2754 if ((seg_cnt - 2) % 5) in qla1280_64bit_start_scsi() 2757 } else if (seg_cnt < 0) { in qla1280_64bit_start_scsi() 2773 ha->req_q_cnt, seg_cnt); in qla1280_64bit_start_scsi() 2841 pkt->dseg_count = cpu_to_le16(seg_cnt); in qla1280_64bit_start_scsi() 2846 if (seg_cnt) { /* If data transfer. */ in qla1280_64bit_start_scsi() [all …]
|
/Linux-v6.6/drivers/remoteproc/ |
D | qcom_common.c | 110 int seg_cnt, i; in qcom_add_minidump_segments() local 120 seg_cnt = le32_to_cpu(subsystem->region_count); in qcom_add_minidump_segments() 122 seg_cnt * sizeof(struct minidump_region)); in qcom_add_minidump_segments() 126 for (i = 0; i < seg_cnt; i++) { in qcom_add_minidump_segments()
|
/Linux-v6.6/drivers/scsi/lpfc/ |
D | lpfc_scsi.c | 634 lpfc_cmd->seg_cnt = 0; in lpfc_get_scsi_buf_s4() 715 psb->seg_cnt = 0; in lpfc_release_scsi_buf_s3() 741 psb->seg_cnt = 0; in lpfc_release_scsi_buf_s4() 842 lpfc_cmd->seg_cnt = nseg; in lpfc_scsi_prep_dma_buf_s3() 843 if (lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt) { in lpfc_scsi_prep_dma_buf_s3() 848 lpfc_cmd->seg_cnt); in lpfc_scsi_prep_dma_buf_s3() 849 WARN_ON_ONCE(lpfc_cmd->seg_cnt > phba->cfg_sg_seg_cnt); in lpfc_scsi_prep_dma_buf_s3() 850 lpfc_cmd->seg_cnt = 0; in lpfc_scsi_prep_dma_buf_s3() 2015 lpfc_cmd->seg_cnt = 0; in lpfc_bg_setup_sgl() 2525 lpfc_cmd->seg_cnt = datasegcnt; in lpfc_bg_scsi_prep_dma_buf_s3() [all …]
|
D | lpfc_nvme.c | 1367 lpfc_ncmd->seg_cnt = nCmd->sg_cnt; in lpfc_nvme_prep_io_dma() 1368 if (lpfc_ncmd->seg_cnt > lpfc_nvme_template.max_sgl_segments) { in lpfc_nvme_prep_io_dma() 1374 lpfc_ncmd->seg_cnt); in lpfc_nvme_prep_io_dma() 1375 lpfc_ncmd->seg_cnt = 0; in lpfc_nvme_prep_io_dma() 1395 lpfc_ncmd->seg_cnt = 0; in lpfc_nvme_prep_io_dma() 1419 lpfc_ncmd->seg_cnt = 0; in lpfc_nvme_prep_io_dma() 1490 lpfc_ncmd->seg_cnt = 0; in lpfc_nvme_prep_io_dma()
|
D | lpfc_sli.h | 428 uint32_t seg_cnt; /* Number of scatter-gather segments returned by member
|
/Linux-v6.6/drivers/scsi/elx/efct/ |
D | efct_lio.c | 432 if (ocp->seg_cnt == 0) { in efct_lio_write_pending() 433 ocp->seg_cnt = cmd->t_data_nents; in efct_lio_write_pending() 455 if (ocp->cur_seg == ocp->seg_cnt) in efct_lio_write_pending() 475 if (ocp->seg_cnt == 0) { in efct_lio_queue_data_in() 477 ocp->seg_cnt = cmd->t_data_nents; in efct_lio_queue_data_in() 517 ocp->seg_cnt = ocp->cur_seg; in efct_lio_queue_data_in() 584 ocp->cur_seg < ocp->seg_cnt) { in efct_lio_datamove_done()
|
D | efct_lio.h | 117 u32 seg_cnt; member
|
/Linux-v6.6/drivers/net/ethernet/qlogic/ |
D | qla3xxx.c | 2311 int seg_cnt, seg = 0; in ql_send_map() local 2314 seg_cnt = tx_cb->seg_count; in ql_send_map() 2336 if (seg_cnt == 1) { in ql_send_map() 2352 if ((seg == 2 && seg_cnt > 3) || in ql_send_map() 2353 (seg == 7 && seg_cnt > 8) || in ql_send_map() 2354 (seg == 12 && seg_cnt > 13) || in ql_send_map() 2355 (seg == 17 && seg_cnt > 18)) { in ql_send_map() 2418 if ((seg == 2 && seg_cnt > 3) || in ql_send_map() 2419 (seg == 7 && seg_cnt > 8) || in ql_send_map() 2420 (seg == 12 && seg_cnt > 13) || in ql_send_map() [all …]
|
/Linux-v6.6/drivers/scsi/qla2xxx/ |
D | qla_target.c | 2427 prm->seg_cnt = dma_map_sg(&cmd->qpair->pdev->dev, cmd->sg, in qlt_pci_map_calc_cnt() 2429 if (unlikely(prm->seg_cnt == 0)) in qlt_pci_map_calc_cnt() 2439 if (prm->seg_cnt > QLA_TGT_DATASEGS_PER_CMD_24XX) in qlt_pci_map_calc_cnt() 2440 prm->req_cnt += DIV_ROUND_UP(prm->seg_cnt - in qlt_pci_map_calc_cnt() 2447 prm->seg_cnt = DIV_ROUND_UP(cmd->bufflen, cmd->blk_sz); in qlt_pci_map_calc_cnt() 2448 prm->tot_dsds = prm->seg_cnt; in qlt_pci_map_calc_cnt() 2450 prm->tot_dsds = prm->seg_cnt; in qlt_pci_map_calc_cnt() 2646 while (prm->seg_cnt > 0) { in qlt_load_cont_data_segments() 2668 cnt < QLA_TGT_DATASEGS_PER_CONT_24XX && prm->seg_cnt; in qlt_load_cont_data_segments() 2669 cnt++, prm->seg_cnt--) { in qlt_load_cont_data_segments() [all …]
|
D | qla_target.h | 984 int seg_cnt; member
|
/Linux-v6.6/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | msgbuf.c | 99 u8 seg_cnt; member 750 tx_msghdr->seg_cnt = 1; in brcmf_msgbuf_txflow()
|
/Linux-v6.6/Documentation/scsi/ |
D | ChangeLog.lpfc | 522 * Zero out seg_cnt in prep_io failure path to prevent double sg 690 * Save seg_cnt from dma_map_sg. Save scatter-gather start address 691 and pass back to dma_unmap_sg in error with seg_cnt.
|