Searched refs:tformat (Results 1 – 8 of 8) sorted by relevance
| /Linux-v5.4/drivers/net/ethernet/chelsio/libcxgb/ |
| D | libcxgb_ppm.h | 134 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 …]
|
| D | libcxgb_ppm.c | 68 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/ |
| D | cxgbit_ddp.c | 183 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()
|
| D | cxgbit_target.c | 781 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/ |
| D | cxgb3i.c | 1217 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/ |
| D | libcxgbi.c | 1289 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()
|
| D | libcxgbi.h | 621 struct cxgbi_tag_format *tformat,
|
| /Linux-v5.4/drivers/scsi/cxgbi/cxgb4i/ |
| D | cxgb4i.c | 2075 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()
|