Home
last modified time | relevance | path

Searched refs:byte_len (Results 1 – 25 of 43) sorted by relevance

12

/drivers/misc/eeprom/
Dat25.c74 if (unlikely(offset >= at25->chip.byte_len)) in at25_ee_read()
76 if ((offset + count) > at25->chip.byte_len) in at25_ee_read()
77 count = at25->chip.byte_len - offset; in at25_ee_read()
137 if (unlikely(off >= at25->chip.byte_len)) in at25_ee_write()
139 if ((off + count) > at25->chip.byte_len) in at25_ee_write()
140 count = at25->chip.byte_len - off; in at25_ee_write()
256 chip->byte_len = val; in at25_fw_to_chip()
364 at25->nvmem_config.size = chip.byte_len; in at25_probe()
371 (chip.byte_len < 1024) ? chip.byte_len : (chip.byte_len / 1024), in at25_probe()
372 (chip.byte_len < 1024) ? "Byte" : "KByte", in at25_probe()
Dat24.c87 u32 byte_len; member
124 u32 byte_len; member
131 .byte_len = _len, .flags = _flags, \
136 .byte_len = _len, .flags = _flags, \
433 if (off + count > at24->byte_len) in at24_read()
480 if (off + count > at24->byte_len) in at24_write()
565 static unsigned int at24_get_offset_adj(u8 flags, unsigned int byte_len) in at24_get_offset_adj() argument
569 return 0xa0 - byte_len; in at24_get_offset_adj()
592 u32 byte_len, page_size, flags, addrw; in at24_probe() local
644 err = device_property_read_u32(dev, "size", &byte_len); in at24_probe()
[all …]
/drivers/spi/
Dspi-armada-3700.c112 u8 byte_len; member
257 a3700_spi->byte_len = len; in a3700_spi_bytelen_set()
597 unsigned int nbits = 0, byte_len; in a3700_spi_transfer_one_fifo() local
604 byte_len = xfer->bits_per_word >> 3; in a3700_spi_transfer_one_fifo()
605 a3700_spi_fifo_thres_set(a3700_spi, byte_len); in a3700_spi_transfer_one_fifo()
758 if (a3700_spi->byte_len == 1) in a3700_spi_transfer_one_full_duplex()
772 memcpy(a3700_spi->rx_buf, &val, a3700_spi->byte_len); in a3700_spi_transfer_one_full_duplex()
774 a3700_spi->buf_len -= a3700_spi->byte_len; in a3700_spi_transfer_one_full_duplex()
775 a3700_spi->tx_buf += a3700_spi->byte_len; in a3700_spi_transfer_one_full_duplex()
776 a3700_spi->rx_buf += a3700_spi->byte_len; in a3700_spi_transfer_one_full_duplex()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_blit.c291 ssize_t csize, byte_len; in vmw_diff_memcpy() local
300 byte_len = diff->cpp; in vmw_diff_memcpy()
312 byte_len += csize; in vmw_diff_memcpy()
315 memcpy(dest, src, byte_len); in vmw_diff_memcpy()
/drivers/infiniband/hw/qib/
Dqib_ud.c126 wc.byte_len = length + sizeof(struct ib_grh); in qib_ud_loopback()
155 if (unlikely(wc.byte_len > qp->r_len)) { in qib_ud_loopback()
522 wc.byte_len = tlen + sizeof(struct ib_grh); in qib_ud_rcv()
544 if (unlikely(wc.byte_len > qp->r_len)) { in qib_ud_rcv()
554 rvt_copy_sge(qp, &qp->r_sge, data, wc.byte_len - sizeof(struct ib_grh), in qib_ud_rcv()
Dqib_uc.c384 wc.byte_len = tlen + qp->r_rcv_len; in qib_uc_rcv()
385 if (unlikely(wc.byte_len > qp->r_len)) in qib_uc_rcv()
479 wc.byte_len = qp->r_len; in qib_uc_rcv()
/drivers/infiniband/hw/mlx4/
Dcq.c781 wc->byte_len = be32_to_cpu(cqe->byte_cnt); in mlx4_ib_poll_one()
785 wc->byte_len = 8; in mlx4_ib_poll_one()
789 wc->byte_len = 8; in mlx4_ib_poll_one()
793 wc->byte_len = 8; in mlx4_ib_poll_one()
797 wc->byte_len = 8; in mlx4_ib_poll_one()
810 wc->byte_len = be32_to_cpu(cqe->byte_cnt); in mlx4_ib_poll_one()
/drivers/infiniband/hw/hfi1/
Duc.c449 wc.byte_len = tlen + qp->r_rcv_len; in hfi1_uc_rcv()
450 if (unlikely(wc.byte_len > qp->r_len)) in hfi1_uc_rcv()
551 wc.byte_len = qp->r_len; in hfi1_uc_rcv()
Dud.c150 wc.byte_len = length + sizeof(struct ib_grh); in ud_loopback()
179 if (unlikely(wc.byte_len > qp->r_len)) { in ud_loopback()
981 wc.byte_len = tlen + sizeof(struct ib_grh); in hfi1_ud_rcv()
1003 if (unlikely(wc.byte_len > qp->r_len)) { in hfi1_ud_rcv()
1025 rvt_copy_sge(qp, &qp->r_sge, data, wc.byte_len - sizeof(struct ib_grh), in hfi1_ud_rcv()
/drivers/infiniband/sw/siw/
Dsiw_cq.c59 wc->byte_len = cqe->bytes; in siw_reap_cqe()
/drivers/infiniband/hw/mthca/
Dmthca_cq.c596 entry->byte_len = be32_to_cpu(cqe->byte_cnt); in mthca_poll_one()
600 entry->byte_len = MTHCA_ATOMIC_BYTE_LEN; in mthca_poll_one()
604 entry->byte_len = MTHCA_ATOMIC_BYTE_LEN; in mthca_poll_one()
611 entry->byte_len = be32_to_cpu(cqe->byte_cnt); in mthca_poll_one()
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_cq.c357 wc->byte_len = cqe->byte_len; in pvrdma_poll_one()
/drivers/infiniband/hw/mlx5/
Dcq.c137 wc->byte_len = be32_to_cpu(cqe->byte_cnt); in handle_good_req()
141 wc->byte_len = 8; in handle_good_req()
145 wc->byte_len = 8; in handle_good_req()
149 wc->byte_len = 8; in handle_good_req()
153 wc->byte_len = 8; in handle_good_req()
200 wc->byte_len = be32_to_cpu(cqe->byte_cnt); in handle_responder()
/drivers/infiniband/sw/rdmavt/
Dtrace_cq.h130 __entry->length = wc->byte_len;
Dcq.c126 uqueue[head].byte_len = entry->byte_len; in rvt_cq_enter()
/drivers/infiniband/ulp/srpt/
Dib_srpt.h186 int byte_len; member
/drivers/infiniband/ulp/ipoib/
Dipoib_cm.c626 if (wc->byte_len < IPOIB_CM_COPYBREAK) { in ipoib_cm_handle_rx_wc()
627 int dlen = wc->byte_len; in ipoib_cm_handle_rx_wc()
643 frags = PAGE_ALIGN(wc->byte_len - in ipoib_cm_handle_rx_wc()
644 min_t(u32, wc->byte_len, IPOIB_CM_HEAD_SIZE)) / in ipoib_cm_handle_rx_wc()
663 wc->byte_len, wc->slid); in ipoib_cm_handle_rx_wc()
665 skb_put_frags(skb, IPOIB_CM_HEAD_SIZE, wc->byte_len, newskb); in ipoib_cm_handle_rx_wc()
Dipoib_ib.c217 wc->byte_len, wc->slid); in ipoib_ib_handle_rx_wc()
221 skb_put(skb, wc->byte_len); in ipoib_ib_handle_rx_wc()
/drivers/infiniband/sw/rxe/
Drxe_comp.c389 wc->byte_len = wqe->dma.length; in make_send_cqe()
400 uwc->byte_len = wqe->dma.length; in make_send_cqe()
/drivers/infiniband/hw/cxgb4/
Dcq.c790 wc->byte_len = CQE_LEN(&cqe); in __c4iw_poll_cq_one()
792 wc->byte_len = 0; in __c4iw_poll_cq_one()
824 wc->byte_len = CQE_LEN(&cqe); in __c4iw_poll_cq_one()
/drivers/infiniband/ulp/iser/
Diser_initiator.c582 length = wc->byte_len - ISER_HEADERS_LEN; in iser_login_rsp()
676 length = wc->byte_len - ISER_HEADERS_LEN; in iser_task_rsp()
/drivers/infiniband/ulp/rtrs/
Drtrs-clt.c529 if (unlikely(wc->byte_len < sizeof(*msg))) { in rtrs_clt_rkey_rsp_done()
531 wc->byte_len); in rtrs_clt_rkey_rsp_done()
2365 if (unlikely(wc->byte_len < sizeof(*msg))) { in rtrs_clt_info_rsp_done()
2367 wc->byte_len); in rtrs_clt_info_rsp_done()
2380 if (unlikely(wc->byte_len < rx_sz)) { in rtrs_clt_info_rsp_done()
2382 wc->byte_len); in rtrs_clt_info_rsp_done()
/drivers/net/wireless/marvell/mwifiex/
Dsta_cmd.c1385 int i, byte_len; in mwifiex_cmd_append_rpn_expression() local
1397 byte_len = filter->byte_seq[MWIFIEX_MEF_MAX_BYTESEQ]; in mwifiex_cmd_append_rpn_expression()
1398 memcpy(stack_ptr, filter->byte_seq, byte_len); in mwifiex_cmd_append_rpn_expression()
1399 stack_ptr += byte_len; in mwifiex_cmd_append_rpn_expression()
1400 *stack_ptr = byte_len; in mwifiex_cmd_append_rpn_expression()
/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c2420 ibwc->byte_len = rw->len; in ocrdma_update_wc()
2476 ibwc->byte_len = 0; in ocrdma_update_err_cqe()
2611 ibwc->byte_len = (le32_to_cpu(cqe->ud.rxlen_pkey) >> in ocrdma_update_ud_rcqe()
2694 ibwc->byte_len = le32_to_cpu(cqe->rq.rxlen); in ocrdma_poll_success_rcqe()
2830 ibwc->byte_len = 0; in ocrdma_add_err_cqe()
/drivers/infiniband/core/
Dmad.c559 wc->byte_len = sizeof(struct ib_mad) + sizeof(struct ib_grh); in build_smp_wc()
700 mad_wc.byte_len = mad_send_wr->send_buf.hdr_len in handle_outgoing_dr_smp()
2000 recv->header.wc.byte_len, in handle_opa_smi()
2073 recv->header.recv_wc.mad_len = wc->byte_len - sizeof(struct ib_grh); in ib_mad_recv_done()

12