Lines Matching refs:sg_cnt

53 			    bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE);  in qla2x00_bsg_sp_free()
58 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla2x00_bsg_sp_free()
68 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla2x00_bsg_sp_free()
71 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla2x00_bsg_sp_free()
207 bsg_job->reply_payload.sg_cnt, ha->fcp_prio_cfg, in qla24xx_proc_fcp_prio_cfg_cmd()
234 bsg_job->request_payload.sg_cnt, ha->fcp_prio_cfg, in qla24xx_proc_fcp_prio_cfg_cmd()
315 if (bsg_job->request_payload.sg_cnt > 1 || in qla2x00_process_els()
316 bsg_job->reply_payload.sg_cnt > 1) { in qla2x00_process_els()
320 bsg_job->request_payload.sg_cnt, in qla2x00_process_els()
321 bsg_job->reply_payload.sg_cnt); in qla2x00_process_els()
365 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla2x00_process_els()
368 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla2x00_process_els()
374 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla2x00_process_els()
377 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla2x00_process_els()
382 if ((req_sg_cnt != bsg_job->request_payload.sg_cnt) || in qla2x00_process_els()
383 (rsp_sg_cnt != bsg_job->reply_payload.sg_cnt)) { in qla2x00_process_els()
387 "dma_reply_sg_cnt:%x.\n", bsg_job->request_payload.sg_cnt, in qla2x00_process_els()
388 req_sg_cnt, bsg_job->reply_payload.sg_cnt, rsp_sg_cnt); in qla2x00_process_els()
428 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla2x00_process_els()
430 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla2x00_process_els()
470 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla2x00_process_ct()
479 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla2x00_process_ct()
487 if ((req_sg_cnt != bsg_job->request_payload.sg_cnt) || in qla2x00_process_ct()
488 (rsp_sg_cnt != bsg_job->reply_payload.sg_cnt)) { in qla2x00_process_ct()
491 "dma_reply_sg_cnt: %x\n", bsg_job->request_payload.sg_cnt, in qla2x00_process_ct()
492 req_sg_cnt, bsg_job->reply_payload.sg_cnt, rsp_sg_cnt); in qla2x00_process_ct()
578 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla2x00_process_ct()
580 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla2x00_process_ct()
762 bsg_job->request_payload.sg_list, bsg_job->request_payload.sg_cnt, in qla2x00_process_loopback()
772 bsg_job->reply_payload.sg_list, bsg_job->reply_payload.sg_cnt, in qla2x00_process_loopback()
782 if ((elreq.req_sg_cnt != bsg_job->request_payload.sg_cnt) || in qla2x00_process_loopback()
783 (elreq.rsp_sg_cnt != bsg_job->reply_payload.sg_cnt)) { in qla2x00_process_loopback()
788 bsg_job->request_payload.sg_cnt, elreq.req_sg_cnt, in qla2x00_process_loopback()
789 bsg_job->reply_payload.sg_cnt, elreq.rsp_sg_cnt); in qla2x00_process_loopback()
814 bsg_job->request_payload.sg_cnt, req_data, req_data_len); in qla2x00_process_loopback()
943 bsg_job->reply_payload.sg_cnt, rsp_data, in qla2x00_process_loopback()
964 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla2x00_process_loopback()
968 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla2x00_process_loopback()
1023 uint32_t sg_cnt; in qla84xx_updatefw() local
1035 sg_cnt = dma_map_sg(&ha->pdev->dev, bsg_job->request_payload.sg_list, in qla84xx_updatefw()
1036 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla84xx_updatefw()
1037 if (!sg_cnt) { in qla84xx_updatefw()
1039 "dma_map_sg returned %d for request.\n", sg_cnt); in qla84xx_updatefw()
1043 if (sg_cnt != bsg_job->request_payload.sg_cnt) { in qla84xx_updatefw()
1047 bsg_job->request_payload.sg_cnt, sg_cnt); in qla84xx_updatefw()
1063 bsg_job->request_payload.sg_cnt, fw_buf, data_len); in qla84xx_updatefw()
1113 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla84xx_updatefw()
1134 uint32_t sg_cnt; in qla84xx_mgmt_cmd() local
1157 sg_cnt = dma_map_sg(&ha->pdev->dev, in qla84xx_mgmt_cmd()
1159 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla84xx_mgmt_cmd()
1160 if (!sg_cnt) { in qla84xx_mgmt_cmd()
1162 "dma_map_sg returned %d for reply.\n", sg_cnt); in qla84xx_mgmt_cmd()
1169 if (sg_cnt != bsg_job->reply_payload.sg_cnt) { in qla84xx_mgmt_cmd()
1173 bsg_job->reply_payload.sg_cnt, sg_cnt); in qla84xx_mgmt_cmd()
1207 sg_cnt = dma_map_sg(&ha->pdev->dev, in qla84xx_mgmt_cmd()
1209 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla84xx_mgmt_cmd()
1211 if (!sg_cnt) { in qla84xx_mgmt_cmd()
1213 "dma_map_sg returned %d.\n", sg_cnt); in qla84xx_mgmt_cmd()
1220 if (sg_cnt != bsg_job->request_payload.sg_cnt) { in qla84xx_mgmt_cmd()
1224 bsg_job->request_payload.sg_cnt, sg_cnt); in qla84xx_mgmt_cmd()
1240 bsg_job->request_payload.sg_cnt, mgmt_b, data_len); in qla84xx_mgmt_cmd()
1292 bsg_job->reply_payload.sg_cnt, mgmt_b, in qla84xx_mgmt_cmd()
1303 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla84xx_mgmt_cmd()
1306 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla84xx_mgmt_cmd()
1499 bsg_job->reply_payload.sg_cnt, ha->optrom_buffer, in qla2x00_read_optrom()
1533 bsg_job->request_payload.sg_cnt, ha->optrom_buffer, in qla2x00_update_optrom()
1576 bsg_job->request_payload.sg_cnt, list, sizeof(bsg)); in qla2x00_update_fru_versions()
1627 bsg_job->request_payload.sg_cnt, sr, sizeof(*sr)); in qla2x00_read_fru_status()
1641 bsg_job->reply_payload.sg_cnt, sr, sizeof(*sr)); in qla2x00_read_fru_status()
1678 bsg_job->request_payload.sg_cnt, sr, sizeof(*sr)); in qla2x00_write_fru_status()
1725 bsg_job->request_payload.sg_cnt, i2c, sizeof(*i2c)); in qla2x00_write_i2c()
1771 bsg_job->request_payload.sg_cnt, i2c, sizeof(*i2c)); in qla2x00_read_i2c()
1784 bsg_job->reply_payload.sg_cnt, i2c, sizeof(*i2c)); in qla2x00_read_i2c()
1891 bsg_job->request_payload.sg_cnt, in qla24xx_process_bidir_cmd()
1900 bsg_job->reply_payload.sg_list, bsg_job->reply_payload.sg_cnt, in qla24xx_process_bidir_cmd()
1908 if ((req_sg_cnt != bsg_job->request_payload.sg_cnt) || in qla24xx_process_bidir_cmd()
1909 (rsp_sg_cnt != bsg_job->reply_payload.sg_cnt)) { in qla24xx_process_bidir_cmd()
1914 bsg_job->request_payload.sg_cnt, req_sg_cnt, in qla24xx_process_bidir_cmd()
1915 bsg_job->reply_payload.sg_cnt, rsp_sg_cnt); in qla24xx_process_bidir_cmd()
1959 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla24xx_process_bidir_cmd()
1963 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla24xx_process_bidir_cmd()
2011 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qlafx00_mgmt_cmd()
2023 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qlafx00_mgmt_cmd()
2034 "dma_reply_sg_cnt: %x\n", bsg_job->request_payload.sg_cnt, in qlafx00_mgmt_cmd()
2035 req_sg_cnt, bsg_job->reply_payload.sg_cnt, rsp_sg_cnt); in qlafx00_mgmt_cmd()
2091 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qlafx00_mgmt_cmd()
2096 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qlafx00_mgmt_cmd()
2114 bsg_job->request_payload.sg_cnt, &sr, sizeof(sr)); in qla26xx_serdes_op()
2124 bsg_job->reply_payload.sg_cnt, &sr, sizeof(sr)); in qla26xx_serdes_op()
2156 bsg_job->request_payload.sg_cnt, &sr, sizeof(sr)); in qla8044_serdes_op()
2166 bsg_job->reply_payload.sg_cnt, &sr, sizeof(sr)); in qla8044_serdes_op()
2205 bsg_job->reply_payload.sg_cnt, &cap, sizeof(cap)); in qla27xx_get_flash_upd_cap()
2233 bsg_job->request_payload.sg_cnt, &cap, sizeof(cap)); in qla27xx_set_flash_upd_cap()
2311 bsg_job->reply_payload.sg_cnt, &bbcr, sizeof(bbcr)); in qla27xx_get_bbcr_data()
2364 bsg_job->reply_payload.sg_cnt, stats, sizeof(*stats)); in qla2x00_get_priv_stats()
2403 bsg_job->request_payload.sg_cnt, dd, sizeof(*dd)); in qla2x00_do_dport_diagnostics()
2409 bsg_job->reply_payload.sg_cnt, dd, sizeof(*dd)); in qla2x00_do_dport_diagnostics()
2453 bsg_job->reply_payload.sg_cnt, &regions, sizeof(regions)); in qla2x00_get_flash_image_status()
2495 bsg_job->request_payload.sg_cnt, req_data, in qla2x00_manage_host_stats()
2523 bsg_job->reply_payload.sg_cnt, in qla2x00_manage_host_stats()
2565 bsg_job->request_payload.sg_cnt, req_data, req_data_len); in qla2x00_get_host_stats()
2593 bsg_job->reply_payload.sg_cnt, &rsp_data, in qla2x00_get_host_stats()
2615 bsg_job->reply_payload.sg_cnt, in qla2x00_get_host_stats()
2671 bsg_job->request_payload.sg_cnt, in qla2x00_get_tgt_stats()
2691 bsg_job->reply_payload.sg_cnt, data, in qla2x00_get_tgt_stats()
2715 bsg_job->reply_payload.sg_cnt, data, in qla2x00_get_tgt_stats()
2753 bsg_job->request_payload.sg_cnt, req_data, req_data_len); in qla2x00_manage_host_port()
2777 bsg_job->reply_payload.sg_cnt, &rsp_data, in qla2x00_manage_host_port()
3043 bsg_job->request_payload.sg_cnt, req_data, ptsize); in qla2x00_mailbox_passthru()
3048 bsg_job->reply_payload.sg_cnt, req_data, ptsize); in qla2x00_mailbox_passthru()