Home
last modified time | relevance | path

Searched refs:tformat (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/chelsio/libcxgb/
Dlibcxgb_ppm.h134 struct cxgbi_tag_format tformat; member
199 return !(tag & ppm->tformat.no_ddp_mask); in cxgbi_ppm_is_ddp_tag()
213 struct cxgbi_tag_format *tformat = &ppm->tformat; in cxgbi_ppm_make_non_ddp_tag() local
221 *final_tag = tformat->no_ddp_mask; in cxgbi_ppm_make_non_ddp_tag()
223 unsigned int shift = tformat->idx_bits + tformat->color_bits; in cxgbi_ppm_make_non_ddp_tag()
224 u32 lower = sw_tag & tformat->idx_clr_mask; in cxgbi_ppm_make_non_ddp_tag()
227 *final_tag = upper | tformat->no_ddp_mask | lower; in cxgbi_ppm_make_non_ddp_tag()
235 struct cxgbi_tag_format *tformat = &ppm->tformat; in cxgbi_ppm_decode_non_ddp_tag() local
236 unsigned int shift = tformat->idx_bits + tformat->color_bits; in cxgbi_ppm_decode_non_ddp_tag()
237 u32 lower = tag & tformat->idx_clr_mask; in cxgbi_ppm_decode_non_ddp_tag()
[all …]
Dlibcxgb_ppm.c68 struct cxgbi_tag_format *tformat = &ppm->tformat; in cxgbi_ppm_find_page_index() local
73 tformat->pgsz_order[i])) { in cxgbi_ppm_find_page_index()
306 hdr->pgsz_tag_clr = htonl(tag & ppm->tformat.idx_clr_mask); in cxgbi_ppm_make_ppod_hdr()
390 struct cxgbi_tag_format *tformat, unsigned int iscsi_size, in cxgbi_ppm_init() argument
472 memcpy(&ppm->tformat, tformat, sizeof(struct cxgbi_tag_format)); in cxgbi_ppm_init()
502 ppm->tformat.pgsz_idx_dflt = cxgbi_ppm_find_page_index(ppm, PAGE_SIZE); in cxgbi_ppm_init()
506 ppm->tformat.pgsz_idx_dflt, ppm->pool_rsvd, in cxgbi_ppm_init()
/Linux-v5.4/drivers/target/iscsi/cxgbit/
Dcxgbit_ddp.c183 ppm, ppm->tformat.pgsz_idx_dflt, in cxgbit_ddp_reserve()
299 struct cxgbi_tag_format tformat; in cxgbit_ddp_init() local
310 memset(&tformat, 0, sizeof(struct cxgbi_tag_format)); in cxgbit_ddp_init()
312 tformat.pgsz_order[i] = (lldi->iscsi_pgsz_order >> (i << 3)) in cxgbit_ddp_init()
314 cxgbi_tagmask_check(lldi->iscsi_tagmask, &tformat); in cxgbit_ddp_init()
317 cdev->lldi.pdev, &cdev->lldi, &tformat, in cxgbit_ddp_init()
325 if ((ppm->tformat.pgsz_idx_dflt < DDP_PGIDX_MAX) && in cxgbit_ddp_init()
Dcxgbit_target.c781 ppm->tformat.pgsz_idx_dflt)) in cxgbit_set_params()
866 ccmd->ttinfo.tag = ppm->tformat.no_ddp_mask; in cxgbit_allocate_cmd()
/Linux-v5.4/drivers/scsi/cxgbi/cxgb3i/
Dcxgb3i.c1217 struct cxgbi_tag_format tformat; in cxgb3i_ddp_init() local
1241 memset(&tformat, 0, sizeof(struct cxgbi_tag_format)); in cxgb3i_ddp_init()
1243 tformat.pgsz_order[i] = uinfo.pgsz_factor[i]; in cxgb3i_ddp_init()
1244 cxgbi_tagmask_check(tagmask, &tformat); in cxgb3i_ddp_init()
1246 err = cxgbi_ddp_ppm_setup(&tdev->ulp_iscsi, cdev, &tformat, in cxgb3i_ddp_init()
/Linux-v5.4/drivers/scsi/cxgbi/
Dlibcxgbi.c1289 struct cxgbi_tag_format *tformat, in cxgbi_ddp_ppm_setup() argument
1295 cdev->lldev, tformat, iscsi_size, llimit, start, in cxgbi_ddp_ppm_setup()
1302 ppm->tformat.pgsz_idx_dflt >= DDP_PGIDX_MAX) in cxgbi_ddp_ppm_setup()
1355 ppm->tformat.pgsz_idx_dflt >= DDP_PGIDX_MAX) { in cxgbi_ddp_reserve()
1358 ppm, ppm ? ppm->tformat.pgsz_idx_dflt : DDP_PGIDX_MAX, in cxgbi_ddp_reserve()
2391 ppm->tformat.pgsz_idx_dflt); in cxgbi_bind_conn()
Dlibcxgbi.h621 struct cxgbi_tag_format *tformat,
/Linux-v5.4/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c2075 struct cxgbi_tag_format tformat; in cxgb4i_ddp_init() local
2087 memset(&tformat, 0, sizeof(struct cxgbi_tag_format)); in cxgb4i_ddp_init()
2089 tformat.pgsz_order[i] = (lldi->iscsi_pgsz_order >> (i << 3)) in cxgb4i_ddp_init()
2091 cxgbi_tagmask_check(lldi->iscsi_tagmask, &tformat); in cxgb4i_ddp_init()
2096 err = cxgbi_ddp_ppm_setup(lldi->iscsi_ppm, cdev, &tformat, in cxgb4i_ddp_init()