Home
last modified time | relevance | path

Searched refs:wr_len (Results 1 – 12 of 12) sorted by relevance

/drivers/hid/
Dhid-ft260.c420 int ret, wr_len, idx = 0; in ft260_i2c_write() local
432 wr_len = len; in ft260_i2c_write()
436 wr_len = FT260_WR_DATA_MAX; in ft260_i2c_write()
439 rep->report = FT260_I2C_DATA_REPORT_ID(wr_len); in ft260_i2c_write()
441 rep->length = wr_len; in ft260_i2c_write()
443 memcpy(rep->data, &data[idx], wr_len); in ft260_i2c_write()
446 rep->report, addr, idx, len, wr_len, in ft260_i2c_write()
450 wr_len + 4); in ft260_i2c_write()
456 len -= wr_len; in ft260_i2c_write()
457 idx += wr_len; in ft260_i2c_write()
[all …]
/drivers/infiniband/hw/cxgb4/
Dmem.c68 u8 wr_len; in _c4iw_write_mem_dma_aligned() local
75 wr_len = roundup(sizeof(*req) + sizeof(*sgl), 16); in _c4iw_write_mem_dma_aligned()
78 skb = alloc_skb(wr_len, GFP_KERNEL | __GFP_NOFAIL); in _c4iw_write_mem_dma_aligned()
84 req = __skb_put_zero(skb, wr_len); in _c4iw_write_mem_dma_aligned()
85 INIT_ULPTX_WR(req, wr_len, 0, 0); in _c4iw_write_mem_dma_aligned()
89 req->wr.wr_mid = cpu_to_be32(FW_WR_LEN16_V(DIV_ROUND_UP(wr_len, 16))); in _c4iw_write_mem_dma_aligned()
94 req->len16 = cpu_to_be32(DIV_ROUND_UP(wr_len-sizeof(req->wr), 16)); in _c4iw_write_mem_dma_aligned()
116 u8 wr_len, *to_dp, *from_dp; in _c4iw_write_mem_inline() local
133 wr_len = roundup(sizeof(*req) + sizeof(*sc) + in _c4iw_write_mem_inline()
138 skb = alloc_skb(wr_len, GFP_KERNEL | __GFP_NOFAIL); in _c4iw_write_mem_inline()
[all …]
Dcq.c43 int wr_len; in destroy_cq() local
45 wr_len = sizeof(*res_wr) + sizeof(*res); in destroy_cq()
48 res_wr = __skb_put_zero(skb, wr_len); in destroy_cq()
53 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); in destroy_cq()
76 int wr_len; in create_cq() local
117 wr_len = sizeof(*res_wr) + sizeof(*res); in create_cq()
119 skb = alloc_skb(wr_len, GFP_KERNEL); in create_cq()
126 res_wr = __skb_put_zero(skb, wr_len); in create_cq()
131 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); in create_cq()
1007 int ret, wr_len; in c4iw_create_cq() local
[all …]
Dqp.c208 int wr_len; in create_qp() local
306 wr_len = sizeof(*res_wr) + 2 * sizeof(*res); in create_qp()
308 wr_len += sizeof(*res); in create_qp()
309 skb = alloc_skb(wr_len, GFP_KERNEL); in create_qp()
316 res_wr = __skb_put_zero(skb, wr_len); in create_qp()
321 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); in create_qp()
2481 int wr_len; in free_srq_queue() local
2483 wr_len = sizeof(*res_wr) + sizeof(*res); in free_srq_queue()
2486 res_wr = (struct fw_ri_res_wr *)__skb_put(skb, wr_len); in free_srq_queue()
2487 memset(res_wr, 0, wr_len); in free_srq_queue()
[all …]
/drivers/target/iscsi/cxgbit/
Dcxgbit_ddp.c71 unsigned int wr_len = roundup(sizeof(struct ulp_mem_io) + in cxgbit_ppod_init_idata() local
75 skb = alloc_skb(wr_len, GFP_KERNEL); in cxgbit_ppod_init_idata()
79 req = __skb_put(skb, wr_len); in cxgbit_ppod_init_idata()
80 INIT_ULPTX_WR(req, wr_len, 0, tid); in cxgbit_ppod_init_idata()
88 req->len16 = htonl(DIV_ROUND_UP(wr_len - sizeof(req->wr), 16)); in cxgbit_ppod_init_idata()
/drivers/media/usb/as102/
Das10x_handle.h36 uint32_t wr_addr, uint16_t wr_len);
/drivers/scsi/cxgbi/cxgb3i/
Dcxgb3i.c336 static void init_wr_tab(unsigned int wr_len) in init_wr_tab() argument
346 skb_wrs[i] = (sgl_len <= wr_len in init_wr_tab()
347 ? 1 : 1 + (sgl_len - 2) / (wr_len - 1)); in init_wr_tab()
349 wrlen = wr_len * 8; in init_wr_tab()
1044 unsigned int wr_len; in cxgb3i_ofld_init() local
1047 if (t3dev->ctl(t3dev, GET_WR_LEN, &wr_len) < 0 || in cxgb3i_ofld_init()
1062 init_wr_tab(wr_len); in cxgb3i_ofld_init()
/drivers/scsi/csiostor/
Dcsio_lnode.c1680 csio_ln_prep_ecwr(struct csio_ioreq *io_req, uint32_t wr_len, in csio_ln_prep_ecwr() argument
1691 wr_len = DIV_ROUND_UP(wr_len, 16); in csio_ln_prep_ecwr()
1693 FW_WR_LEN16_V(wr_len)); in csio_ln_prep_ecwr()
/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c1971 unsigned int wr_len, unsigned int dlen, in ulp_mem_io_set_hdr() argument
1978 INIT_ULPTX_WR(req, wr_len, 0, tid); in ulp_mem_io_set_hdr()
1986 req->len16 = htonl(DIV_ROUND_UP(wr_len - sizeof(req->wr), 16)); in ulp_mem_io_set_hdr()
2000 unsigned int wr_len = roundup(sizeof(struct ulp_mem_io) + in ddp_ppod_init_idata() local
2002 struct sk_buff *skb = alloc_wr(wr_len, 0, GFP_ATOMIC); in ddp_ppod_init_idata()
2010 ulp_mem_io_set_hdr(cdev, (struct ulp_mem_io *)skb->head, wr_len, dlen, in ddp_ppod_init_idata()
/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c848 u32 len, cpl = 0, ndesc, wr_len, wr_mid = 0; in chcr_ktls_xmit_tcb_cpls() local
853 wr_len = sizeof(*wr); in chcr_ktls_xmit_tcb_cpls()
855 len = wr_len + 4 * roundup(CHCR_SET_TCB_FIELD_LEN, 16); in chcr_ktls_xmit_tcb_cpls()
874 pos += wr_len; in chcr_ktls_xmit_tcb_cpls()
918 len = wr_len + cpl * roundup(CHCR_SET_TCB_FIELD_LEN, 16); in chcr_ktls_xmit_tcb_cpls()
/drivers/infiniband/hw/irdma/
Duser.h305 u32 wr_len; member
Duk.c195 qp->sq_wrtrk_array[*wqe_idx].wr_len = total_size; in irdma_qp_get_next_send_wqe()
1141 info->bytes_xfered = qp->sq_wrtrk_array[wqe_idx].wr_len; in irdma_uk_cq_poll_cmpl()
1166 info->bytes_xfered = qp->sq_wrtrk_array[tail].wr_len; in irdma_uk_cq_poll_cmpl()