Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/chelsio/libcxgb/
Dlibcxgb_ppm.h134 struct cxgbi_tag_format tformat; member
198 return !(tag & ppm->tformat.no_ddp_mask); in cxgbi_ppm_is_ddp_tag()
212 struct cxgbi_tag_format *tformat = &ppm->tformat; in cxgbi_ppm_make_non_ddp_tag() local
220 *final_tag = tformat->no_ddp_mask; in cxgbi_ppm_make_non_ddp_tag()
222 unsigned int shift = tformat->idx_bits + tformat->color_bits; in cxgbi_ppm_make_non_ddp_tag()
223 u32 lower = sw_tag & tformat->idx_clr_mask; in cxgbi_ppm_make_non_ddp_tag()
226 *final_tag = upper | tformat->no_ddp_mask | lower; in cxgbi_ppm_make_non_ddp_tag()
234 struct cxgbi_tag_format *tformat = &ppm->tformat; in cxgbi_ppm_decode_non_ddp_tag() local
235 unsigned int shift = tformat->idx_bits + tformat->color_bits; in cxgbi_ppm_decode_non_ddp_tag()
236 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()
301 hdr->pgsz_tag_clr = htonl(tag & ppm->tformat.idx_clr_mask); in cxgbi_ppm_make_ppod_hdr()
382 struct cxgbi_tag_format *tformat, in cxgbi_ppm_init() argument
434 memcpy(&ppm->tformat, tformat, sizeof(struct cxgbi_tag_format)); in cxgbi_ppm_init()
464 ppm->tformat.pgsz_idx_dflt = cxgbi_ppm_find_page_index(ppm, PAGE_SIZE); in cxgbi_ppm_init()
468 ppm->tformat.pgsz_idx_dflt, ppm->pool_rsvd, in cxgbi_ppm_init()
/Linux-v4.19/drivers/target/iscsi/cxgbit/
Dcxgbit_ddp.c186 ppm, ppm->tformat.pgsz_idx_dflt, in cxgbit_ddp_reserve()
302 struct cxgbi_tag_format tformat; in cxgbit_ddp_init() local
313 memset(&tformat, 0, sizeof(struct cxgbi_tag_format)); in cxgbit_ddp_init()
315 tformat.pgsz_order[i] = (lldi->iscsi_pgsz_order >> (i << 3)) in cxgbit_ddp_init()
317 cxgbi_tagmask_check(lldi->iscsi_tagmask, &tformat); in cxgbit_ddp_init()
320 cdev->lldi.pdev, &cdev->lldi, &tformat, in cxgbit_ddp_init()
326 if ((ppm->tformat.pgsz_idx_dflt < DDP_PGIDX_MAX) && in cxgbit_ddp_init()
Dcxgbit_target.c784 ppm->tformat.pgsz_idx_dflt)) in cxgbit_set_params()
869 ccmd->ttinfo.tag = ppm->tformat.no_ddp_mask; in cxgbit_allocate_cmd()
/Linux-v4.19/drivers/scsi/cxgbi/cxgb3i/
Dcxgb3i.c1220 struct cxgbi_tag_format tformat; in cxgb3i_ddp_init() local
1244 memset(&tformat, 0, sizeof(struct cxgbi_tag_format)); in cxgb3i_ddp_init()
1246 tformat.pgsz_order[i] = uinfo.pgsz_factor[i]; in cxgb3i_ddp_init()
1247 cxgbi_tagmask_check(tagmask, &tformat); in cxgb3i_ddp_init()
1249 cxgbi_ddp_ppm_setup(&tdev->ulp_iscsi, cdev, &tformat, ppmax, in cxgb3i_ddp_init()
/Linux-v4.19/drivers/scsi/cxgbi/
Dlibcxgbi.c1285 struct cxgbi_tag_format *tformat, unsigned int ppmax, in cxgbi_ddp_ppm_setup() argument
1290 cdev->lldev, tformat, ppmax, llimit, start, in cxgbi_ddp_ppm_setup()
1297 ppm->tformat.pgsz_idx_dflt >= DDP_PGIDX_MAX) in cxgbi_ddp_ppm_setup()
1348 ppm->tformat.pgsz_idx_dflt >= DDP_PGIDX_MAX) { in cxgbi_ddp_reserve()
1351 ppm, ppm ? ppm->tformat.pgsz_idx_dflt : DDP_PGIDX_MAX, in cxgbi_ddp_reserve()
2388 ppm->tformat.pgsz_idx_dflt, 0); in cxgbi_bind_conn()
/Linux-v4.19/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c1978 struct cxgbi_tag_format tformat; in cxgb4i_ddp_init() local
1990 memset(&tformat, 0, sizeof(struct cxgbi_tag_format)); in cxgb4i_ddp_init()
1992 tformat.pgsz_order[i] = (lldi->iscsi_pgsz_order >> (i << 3)) in cxgb4i_ddp_init()
1994 cxgbi_tagmask_check(lldi->iscsi_tagmask, &tformat); in cxgb4i_ddp_init()
1996 cxgbi_ddp_ppm_setup(lldi->iscsi_ppm, cdev, &tformat, ppmax, in cxgb4i_ddp_init()