xfer              168 arch/powerpc/kernel/head_32.h #define EXCEPTION(n, label, hdlr, xfer)		\
xfer              172 arch/powerpc/kernel/head_32.h 	xfer(n, hdlr)
xfer              306 arch/powerpc/kernel/head_booke.h #define EXCEPTION(n, intno, label, hdlr, xfer)			\
xfer              310 arch/powerpc/kernel/head_booke.h 	xfer(n, hdlr)
xfer               94 arch/powerpc/platforms/powermac/low_i2c.c 	int (*xfer)(struct pmac_i2c_bus *bus, u8 addrdir, int subsize,
xfer              583 arch/powerpc/platforms/powermac/low_i2c.c 	bus->xfer = kw_i2c_xfer;
xfer              812 arch/powerpc/platforms/powermac/low_i2c.c 		bus->xfer = pmu_i2c_xfer;
xfer              935 arch/powerpc/platforms/powermac/low_i2c.c 		bus->xfer = smu_i2c_xfer;
xfer             1145 arch/powerpc/platforms/powermac/low_i2c.c 	rc = bus->xfer(bus, addrdir, subsize, subaddr, data, len);
xfer              293 arch/sh/drivers/dma/dma-api.c 	return info->ops->xfer(channel);
xfer              155 arch/sh/drivers/dma/dma-g2.c 	.xfer		= g2_xfer_dma,
xfer               75 arch/sh/drivers/dma/dma-pvr2.c 	.xfer		= pvr2_xfer_dma,
xfer              367 arch/sh/drivers/dma/dma-sh.c 	.xfer		= sh_dmac_xfer_dma,
xfer               58 arch/sh/include/asm/dma.h 	int (*xfer)(struct dma_channel *chan);
xfer              199 drivers/ata/libata-transport.c ata_bitfield_name_match(xfer,ata_xfer_names)
xfer              470 drivers/ata/libata-transport.c ata_dev_attr(xfer, pio_mode);
xfer              471 drivers/ata/libata-transport.c ata_dev_attr(xfer, dma_mode);
xfer              472 drivers/ata/libata-transport.c ata_dev_attr(xfer, xfer_mode);
xfer              144 drivers/base/regmap/regmap-i2c.c 	struct i2c_msg xfer[2];
xfer              153 drivers/base/regmap/regmap-i2c.c 	xfer[0].addr = i2c->addr;
xfer              154 drivers/base/regmap/regmap-i2c.c 	xfer[0].flags = 0;
xfer              155 drivers/base/regmap/regmap-i2c.c 	xfer[0].len = reg_size;
xfer              156 drivers/base/regmap/regmap-i2c.c 	xfer[0].buf = (void *)reg;
xfer              158 drivers/base/regmap/regmap-i2c.c 	xfer[1].addr = i2c->addr;
xfer              159 drivers/base/regmap/regmap-i2c.c 	xfer[1].flags = I2C_M_NOSTART;
xfer              160 drivers/base/regmap/regmap-i2c.c 	xfer[1].len = val_size;
xfer              161 drivers/base/regmap/regmap-i2c.c 	xfer[1].buf = (void *)val;
xfer              163 drivers/base/regmap/regmap-i2c.c 	ret = i2c_transfer(i2c->adapter, xfer, 2);
xfer              178 drivers/base/regmap/regmap-i2c.c 	struct i2c_msg xfer[2];
xfer              181 drivers/base/regmap/regmap-i2c.c 	xfer[0].addr = i2c->addr;
xfer              182 drivers/base/regmap/regmap-i2c.c 	xfer[0].flags = 0;
xfer              183 drivers/base/regmap/regmap-i2c.c 	xfer[0].len = reg_size;
xfer              184 drivers/base/regmap/regmap-i2c.c 	xfer[0].buf = (void *)reg;
xfer              186 drivers/base/regmap/regmap-i2c.c 	xfer[1].addr = i2c->addr;
xfer              187 drivers/base/regmap/regmap-i2c.c 	xfer[1].flags = I2C_M_RD;
xfer              188 drivers/base/regmap/regmap-i2c.c 	xfer[1].len = val_size;
xfer              189 drivers/base/regmap/regmap-i2c.c 	xfer[1].buf = val;
xfer              191 drivers/base/regmap/regmap-i2c.c 	ret = i2c_transfer(i2c->adapter, xfer, 2);
xfer             1081 drivers/block/loop.c 	struct loop_func_table *xfer = lo->lo_encryption;
xfer             1083 drivers/block/loop.c 	if (xfer) {
xfer             1084 drivers/block/loop.c 		if (xfer->release)
xfer             1085 drivers/block/loop.c 			err = xfer->release(lo);
xfer             1088 drivers/block/loop.c 		module_put(xfer->owner);
xfer             1094 drivers/block/loop.c loop_init_xfer(struct loop_device *lo, struct loop_func_table *xfer,
xfer             1099 drivers/block/loop.c 	if (xfer) {
xfer             1100 drivers/block/loop.c 		struct module *owner = xfer->owner;
xfer             1104 drivers/block/loop.c 		if (xfer->init)
xfer             1105 drivers/block/loop.c 			err = xfer->init(lo, i);
xfer             1109 drivers/block/loop.c 			lo->lo_encryption = xfer;
xfer             1261 drivers/block/loop.c 	struct loop_func_table *xfer;
xfer             1304 drivers/block/loop.c 		xfer = xfer_funcs[type];
xfer             1305 drivers/block/loop.c 		if (xfer == NULL) {
xfer             1310 drivers/block/loop.c 		xfer = NULL;
xfer             1312 drivers/block/loop.c 	err = loop_init_xfer(lo, xfer, info);
xfer             1339 drivers/block/loop.c 	if (!xfer)
xfer             1340 drivers/block/loop.c 		xfer = &none_funcs;
xfer             1341 drivers/block/loop.c 	lo->transfer = xfer->transfer;
xfer             1342 drivers/block/loop.c 	lo->ioctl = xfer->ioctl;
xfer             1896 drivers/block/loop.c 	struct loop_func_table *xfer = data;
xfer             1899 drivers/block/loop.c 	if (lo->lo_encryption == xfer)
xfer             1908 drivers/block/loop.c 	struct loop_func_table *xfer;
xfer             1910 drivers/block/loop.c 	if (n == 0 || n >= MAX_LO_CRYPT || (xfer = xfer_funcs[n]) == NULL)
xfer             1914 drivers/block/loop.c 	idr_for_each(&loop_index_idr, &unregister_transfer_cb, xfer);
xfer              446 drivers/block/rsxx/cregs.c 	unsigned int xfer;
xfer              453 drivers/block/rsxx/cregs.c 		xfer = min_t(unsigned int, size8, MAX_CREG_DATA8);
xfer              455 drivers/block/rsxx/cregs.c 		st = __issue_creg_rw(card, op, addr, xfer,
xfer              460 drivers/block/rsxx/cregs.c 		data   = (char *)data + xfer;
xfer              461 drivers/block/rsxx/cregs.c 		addr  += xfer;
xfer              462 drivers/block/rsxx/cregs.c 		size8 -= xfer;
xfer              388 drivers/bus/moxtet.c 	struct spi_transfer xfer = {
xfer              397 drivers/bus/moxtet.c 	ret = spi_sync_transfer(to_spi_device(moxtet->dev), &xfer, 1);
xfer              555 drivers/clk/clk-cdce925.c 	struct i2c_msg xfer[2];
xfer              562 drivers/clk/clk-cdce925.c 	xfer[0].addr = i2c->addr;
xfer              563 drivers/clk/clk-cdce925.c 	xfer[0].flags = 0;
xfer              564 drivers/clk/clk-cdce925.c 	xfer[0].buf = reg_data;
xfer              568 drivers/clk/clk-cdce925.c 		xfer[0].len = 1;
xfer              573 drivers/clk/clk-cdce925.c 		xfer[0].len = 2;
xfer              576 drivers/clk/clk-cdce925.c 	xfer[1].addr = i2c->addr;
xfer              577 drivers/clk/clk-cdce925.c 	xfer[1].flags = I2C_M_RD;
xfer              578 drivers/clk/clk-cdce925.c 	xfer[1].len = val_size;
xfer              579 drivers/clk/clk-cdce925.c 	xfer[1].buf = val;
xfer              581 drivers/clk/clk-cdce925.c 	ret = i2c_transfer(i2c->adapter, xfer, 2);
xfer              322 drivers/dma/dw-edma/dw-edma-core.c dw_edma_device_transfer(struct dw_edma_transfer *xfer)
xfer              324 drivers/dma/dw-edma/dw-edma-core.c 	struct dw_edma_chan *chan = dchan2dw_edma_chan(xfer->dchan);
xfer              325 drivers/dma/dw-edma/dw-edma-core.c 	enum dma_transfer_direction direction = xfer->direction;
xfer              338 drivers/dma/dw-edma/dw-edma-core.c 	if (xfer->cyclic) {
xfer              339 drivers/dma/dw-edma/dw-edma-core.c 		if (!xfer->xfer.cyclic.len || !xfer->xfer.cyclic.cnt)
xfer              342 drivers/dma/dw-edma/dw-edma-core.c 		if (xfer->xfer.sg.len < 1)
xfer              360 drivers/dma/dw-edma/dw-edma-core.c 	if (xfer->cyclic) {
xfer              361 drivers/dma/dw-edma/dw-edma-core.c 		cnt = xfer->xfer.cyclic.cnt;
xfer              363 drivers/dma/dw-edma/dw-edma-core.c 		cnt = xfer->xfer.sg.len;
xfer              364 drivers/dma/dw-edma/dw-edma-core.c 		sg = xfer->xfer.sg.sgl;
xfer              368 drivers/dma/dw-edma/dw-edma-core.c 		if (!xfer->cyclic && !sg)
xfer              381 drivers/dma/dw-edma/dw-edma-core.c 		if (xfer->cyclic)
xfer              382 drivers/dma/dw-edma/dw-edma-core.c 			burst->sz = xfer->xfer.cyclic.len;
xfer              391 drivers/dma/dw-edma/dw-edma-core.c 			if (xfer->cyclic) {
xfer              392 drivers/dma/dw-edma/dw-edma-core.c 				burst->dar = xfer->xfer.cyclic.paddr;
xfer              406 drivers/dma/dw-edma/dw-edma-core.c 			if (xfer->cyclic) {
xfer              407 drivers/dma/dw-edma/dw-edma-core.c 				burst->sar = xfer->xfer.cyclic.paddr;
xfer              421 drivers/dma/dw-edma/dw-edma-core.c 		if (!xfer->cyclic)
xfer              425 drivers/dma/dw-edma/dw-edma-core.c 	return vchan_tx_prep(&chan->vc, &desc->vd, xfer->flags);
xfer              440 drivers/dma/dw-edma/dw-edma-core.c 	struct dw_edma_transfer xfer;
xfer              442 drivers/dma/dw-edma/dw-edma-core.c 	xfer.dchan = dchan;
xfer              443 drivers/dma/dw-edma/dw-edma-core.c 	xfer.direction = direction;
xfer              444 drivers/dma/dw-edma/dw-edma-core.c 	xfer.xfer.sg.sgl = sgl;
xfer              445 drivers/dma/dw-edma/dw-edma-core.c 	xfer.xfer.sg.len = len;
xfer              446 drivers/dma/dw-edma/dw-edma-core.c 	xfer.flags = flags;
xfer              447 drivers/dma/dw-edma/dw-edma-core.c 	xfer.cyclic = false;
xfer              449 drivers/dma/dw-edma/dw-edma-core.c 	return dw_edma_device_transfer(&xfer);
xfer              458 drivers/dma/dw-edma/dw-edma-core.c 	struct dw_edma_transfer xfer;
xfer              460 drivers/dma/dw-edma/dw-edma-core.c 	xfer.dchan = dchan;
xfer              461 drivers/dma/dw-edma/dw-edma-core.c 	xfer.direction = direction;
xfer              462 drivers/dma/dw-edma/dw-edma-core.c 	xfer.xfer.cyclic.paddr = paddr;
xfer              463 drivers/dma/dw-edma/dw-edma-core.c 	xfer.xfer.cyclic.len = len;
xfer              464 drivers/dma/dw-edma/dw-edma-core.c 	xfer.xfer.cyclic.cnt = count;
xfer              465 drivers/dma/dw-edma/dw-edma-core.c 	xfer.flags = flags;
xfer              466 drivers/dma/dw-edma/dw-edma-core.c 	xfer.cyclic = true;
xfer              468 drivers/dma/dw-edma/dw-edma-core.c 	return dw_edma_device_transfer(&xfer);
xfer              147 drivers/dma/dw-edma/dw-edma-core.h 	} xfer;
xfer              100 drivers/firmware/arm_scmi/common.h void scmi_xfer_put(const struct scmi_handle *h, struct scmi_xfer *xfer);
xfer              101 drivers/firmware/arm_scmi/common.h int scmi_do_xfer(const struct scmi_handle *h, struct scmi_xfer *xfer);
xfer              103 drivers/firmware/arm_scmi/common.h 			       struct scmi_xfer *xfer);
xfer              197 drivers/firmware/arm_scmi/driver.c static void scmi_fetch_response(struct scmi_xfer *xfer,
xfer              200 drivers/firmware/arm_scmi/driver.c 	xfer->hdr.status = ioread32(mem->msg_payload);
xfer              202 drivers/firmware/arm_scmi/driver.c 	xfer->rx.len = min_t(size_t, xfer->rx.len, ioread32(&mem->length) - 8);
xfer              205 drivers/firmware/arm_scmi/driver.c 	memcpy_fromio(xfer->rx.buf, mem->msg_payload + 4, xfer->rx.len);
xfer              287 drivers/firmware/arm_scmi/driver.c 	struct scmi_xfer *xfer;
xfer              304 drivers/firmware/arm_scmi/driver.c 	xfer = &minfo->xfer_block[xfer_id];
xfer              305 drivers/firmware/arm_scmi/driver.c 	xfer->hdr.seq = xfer_id;
xfer              306 drivers/firmware/arm_scmi/driver.c 	reinit_completion(&xfer->done);
xfer              308 drivers/firmware/arm_scmi/driver.c 	return xfer;
xfer              320 drivers/firmware/arm_scmi/driver.c __scmi_xfer_put(struct scmi_xfers_info *minfo, struct scmi_xfer *xfer)
xfer              330 drivers/firmware/arm_scmi/driver.c 	clear_bit(xfer->hdr.seq, minfo->xfer_alloc_table);
xfer              351 drivers/firmware/arm_scmi/driver.c 	struct scmi_xfer *xfer;
xfer              371 drivers/firmware/arm_scmi/driver.c 	xfer = &minfo->xfer_block[xfer_id];
xfer              373 drivers/firmware/arm_scmi/driver.c 	scmi_dump_header_dbg(dev, &xfer->hdr);
xfer              375 drivers/firmware/arm_scmi/driver.c 	scmi_fetch_response(xfer, mem);
xfer              378 drivers/firmware/arm_scmi/driver.c 		complete(xfer->async_done);
xfer              380 drivers/firmware/arm_scmi/driver.c 		complete(&xfer->done);
xfer              389 drivers/firmware/arm_scmi/driver.c void scmi_xfer_put(const struct scmi_handle *handle, struct scmi_xfer *xfer)
xfer              393 drivers/firmware/arm_scmi/driver.c 	__scmi_xfer_put(&info->tx_minfo, xfer);
xfer              397 drivers/firmware/arm_scmi/driver.c scmi_xfer_poll_done(const struct scmi_chan_info *cinfo, struct scmi_xfer *xfer)
xfer              402 drivers/firmware/arm_scmi/driver.c 	if (xfer->hdr.seq != xfer_id)
xfer              413 drivers/firmware/arm_scmi/driver.c 				      struct scmi_xfer *xfer, ktime_t stop)
xfer              417 drivers/firmware/arm_scmi/driver.c 	return scmi_xfer_poll_done(cinfo, xfer) || ktime_after(__cur, stop);
xfer              430 drivers/firmware/arm_scmi/driver.c int scmi_do_xfer(const struct scmi_handle *handle, struct scmi_xfer *xfer)
xfer              438 drivers/firmware/arm_scmi/driver.c 	cinfo = idr_find(&info->tx_idr, xfer->hdr.protocol_id);
xfer              442 drivers/firmware/arm_scmi/driver.c 	ret = mbox_send_message(cinfo->chan, xfer);
xfer              451 drivers/firmware/arm_scmi/driver.c 	if (xfer->hdr.poll_completion) {
xfer              454 drivers/firmware/arm_scmi/driver.c 		spin_until_cond(scmi_xfer_done_no_timeout(cinfo, xfer, stop));
xfer              457 drivers/firmware/arm_scmi/driver.c 			scmi_fetch_response(xfer, cinfo->payload);
xfer              463 drivers/firmware/arm_scmi/driver.c 		if (!wait_for_completion_timeout(&xfer->done, timeout)) {
xfer              470 drivers/firmware/arm_scmi/driver.c 	if (!ret && xfer->hdr.status)
xfer              471 drivers/firmware/arm_scmi/driver.c 		ret = scmi_to_linux_errno(xfer->hdr.status);
xfer              497 drivers/firmware/arm_scmi/driver.c 			       struct scmi_xfer *xfer)
xfer              502 drivers/firmware/arm_scmi/driver.c 	xfer->async_done = &async_response;
xfer              504 drivers/firmware/arm_scmi/driver.c 	ret = scmi_do_xfer(handle, xfer);
xfer              505 drivers/firmware/arm_scmi/driver.c 	if (!ret && !wait_for_completion_timeout(xfer->async_done, timeout))
xfer              508 drivers/firmware/arm_scmi/driver.c 	xfer->async_done = NULL;
xfer              532 drivers/firmware/arm_scmi/driver.c 	struct scmi_xfer *xfer;
xfer              542 drivers/firmware/arm_scmi/driver.c 	xfer = scmi_xfer_get(handle, minfo);
xfer              543 drivers/firmware/arm_scmi/driver.c 	if (IS_ERR(xfer)) {
xfer              544 drivers/firmware/arm_scmi/driver.c 		ret = PTR_ERR(xfer);
xfer              549 drivers/firmware/arm_scmi/driver.c 	xfer->tx.len = tx_size;
xfer              550 drivers/firmware/arm_scmi/driver.c 	xfer->rx.len = rx_size ? : info->desc->max_msg_size;
xfer              551 drivers/firmware/arm_scmi/driver.c 	xfer->hdr.id = msg_id;
xfer              552 drivers/firmware/arm_scmi/driver.c 	xfer->hdr.protocol_id = prot_id;
xfer              553 drivers/firmware/arm_scmi/driver.c 	xfer->hdr.poll_completion = false;
xfer              555 drivers/firmware/arm_scmi/driver.c 	*p = xfer;
xfer              678 drivers/firmware/arm_scmi/driver.c 	struct scmi_xfer *xfer;
xfer              701 drivers/firmware/arm_scmi/driver.c 	for (i = 0, xfer = info->xfer_block; i < desc->max_msg; i++, xfer++) {
xfer              702 drivers/firmware/arm_scmi/driver.c 		xfer->rx.buf = devm_kcalloc(dev, sizeof(u8), desc->max_msg_size,
xfer              704 drivers/firmware/arm_scmi/driver.c 		if (!xfer->rx.buf)
xfer              707 drivers/firmware/arm_scmi/driver.c 		xfer->tx.buf = xfer->rx.buf;
xfer              708 drivers/firmware/arm_scmi/driver.c 		init_completion(&xfer->done);
xfer              267 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer              281 drivers/firmware/ti_sci.c 	xfer = &minfo->xfer_block[xfer_id];
xfer              290 drivers/firmware/ti_sci.c 	if (mbox_msg->len < xfer->rx_len) {
xfer              292 drivers/firmware/ti_sci.c 			mbox_msg->len, xfer->rx_len);
xfer              299 drivers/firmware/ti_sci.c 	memcpy(xfer->xfer_buf, mbox_msg->buf, xfer->rx_len);
xfer              300 drivers/firmware/ti_sci.c 	complete(&xfer->done);
xfer              326 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer              366 drivers/firmware/ti_sci.c 	xfer = &minfo->xfer_block[xfer_id];
xfer              368 drivers/firmware/ti_sci.c 	hdr = (struct ti_sci_msg_hdr *)xfer->tx_message.buf;
xfer              369 drivers/firmware/ti_sci.c 	xfer->tx_message.len = tx_message_size;
xfer              370 drivers/firmware/ti_sci.c 	xfer->rx_len = (u8)rx_message_size;
xfer              372 drivers/firmware/ti_sci.c 	reinit_completion(&xfer->done);
xfer              379 drivers/firmware/ti_sci.c 	return xfer;
xfer              390 drivers/firmware/ti_sci.c 				struct ti_sci_xfer *xfer)
xfer              396 drivers/firmware/ti_sci.c 	hdr = (struct ti_sci_msg_hdr *)xfer->tx_message.buf;
xfer              422 drivers/firmware/ti_sci.c 				 struct ti_sci_xfer *xfer)
xfer              428 drivers/firmware/ti_sci.c 	ret = mbox_send_message(info->chan_tx, &xfer->tx_message);
xfer              436 drivers/firmware/ti_sci.c 	if (!wait_for_completion_timeout(&xfer->done, timeout)) {
xfer              466 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer              469 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_VERSION,
xfer              473 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer              474 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer              479 drivers/firmware/ti_sci.c 	rev_info = (struct ti_sci_msg_resp_version *)xfer->xfer_buf;
xfer              481 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer              494 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer              526 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer              538 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_SET_DEVICE_STATE,
xfer              541 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer              542 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer              546 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_set_device_state *)xfer->xfer_buf;
xfer              550 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer              556 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf;
xfer              561 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer              584 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer              599 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_GET_DEVICE_STATE,
xfer              602 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer              603 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer              607 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_get_device_state *)xfer->xfer_buf;
xfer              610 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer              616 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_resp_get_device_state *)xfer->xfer_buf;
xfer              631 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer              889 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer              901 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_SET_DEVICE_RESETS,
xfer              904 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer              905 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer              909 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_set_device_resets *)xfer->xfer_buf;
xfer              913 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer              919 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf;
xfer              924 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer              964 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer              976 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_SET_CLOCK_STATE,
xfer              979 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer              980 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer              984 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_set_clock_state *)xfer->xfer_buf;
xfer              994 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             1000 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf;
xfer             1005 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             1029 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             1044 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_GET_CLOCK_STATE,
xfer             1047 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             1048 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             1052 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_get_clock_state *)xfer->xfer_buf;
xfer             1061 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             1067 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_resp_get_clock_state *)xfer->xfer_buf;
xfer             1080 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             1261 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             1273 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_SET_CLOCK_PARENT,
xfer             1276 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             1277 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             1281 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_set_clock_parent *)xfer->xfer_buf;
xfer             1296 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             1302 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf;
xfer             1307 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             1329 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             1341 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_GET_CLOCK_PARENT,
xfer             1344 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             1345 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             1349 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_get_clock_parent *)xfer->xfer_buf;
xfer             1358 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             1364 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_resp_get_clock_parent *)xfer->xfer_buf;
xfer             1376 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             1399 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             1411 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_GET_NUM_CLOCK_PARENTS,
xfer             1414 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             1415 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             1419 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_get_clock_num_parents *)xfer->xfer_buf;
xfer             1428 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             1434 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_resp_get_clock_num_parents *)xfer->xfer_buf;
xfer             1446 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             1478 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             1490 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_QUERY_CLOCK_FREQ,
xfer             1493 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             1494 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             1498 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_query_clock_freq *)xfer->xfer_buf;
xfer             1510 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             1516 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_resp_query_clock_freq *)xfer->xfer_buf;
xfer             1524 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             1554 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             1566 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_SET_CLOCK_FREQ,
xfer             1569 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             1570 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             1574 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_set_clock_freq *)xfer->xfer_buf;
xfer             1586 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             1592 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf;
xfer             1597 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             1619 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             1631 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_GET_CLOCK_FREQ,
xfer             1634 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             1635 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             1639 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_get_clock_freq *)xfer->xfer_buf;
xfer             1648 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             1654 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_resp_get_clock_freq *)xfer->xfer_buf;
xfer             1662 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             1672 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             1684 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_SYS_RESET,
xfer             1687 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             1688 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             1692 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_reboot *)xfer->xfer_buf;
xfer             1694 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             1700 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf;
xfer             1708 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             1760 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             1774 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_GET_RESOURCE_RANGE,
xfer             1777 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             1778 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             1789 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_get_resource_range *)xfer->xfer_buf;
xfer             1794 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             1800 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_resp_get_resource_range *)xfer->xfer_buf;
xfer             1812 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             1887 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             1900 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, type, TI_SCI_FLAG_REQ_ACK_ON_PROCESSED,
xfer             1902 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             1903 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             1907 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_manage_irq *)xfer->xfer_buf;
xfer             1919 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             1925 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf;
xfer             1930 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             2125 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             2136 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_RM_RING_CFG,
xfer             2139 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             2140 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             2144 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_rm_ring_cfg_req *)xfer->xfer_buf;
xfer             2155 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             2161 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf;
xfer             2165 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             2194 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             2205 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_RM_RING_GET_CFG,
xfer             2208 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             2209 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             2214 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_rm_ring_get_cfg_req *)xfer->xfer_buf;
xfer             2218 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             2224 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_rm_ring_get_cfg_resp *)xfer->xfer_buf;
xfer             2244 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             2264 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             2277 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_RM_PSIL_PAIR,
xfer             2280 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             2281 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             2285 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_psil_pair *)xfer->xfer_buf;
xfer             2290 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             2296 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf;
xfer             2300 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             2320 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             2333 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_RM_PSIL_UNPAIR,
xfer             2336 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             2337 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             2341 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_psil_unpair *)xfer->xfer_buf;
xfer             2346 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             2352 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf;
xfer             2356 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             2377 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             2388 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TISCI_MSG_RM_UDMAP_TX_CH_CFG,
xfer             2391 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             2392 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             2396 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_rm_udmap_tx_ch_cfg_req *)xfer->xfer_buf;
xfer             2416 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             2422 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf;
xfer             2426 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             2447 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             2458 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TISCI_MSG_RM_UDMAP_RX_CH_CFG,
xfer             2461 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             2462 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             2466 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_rm_udmap_rx_ch_cfg_req *)xfer->xfer_buf;
xfer             2485 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             2491 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf;
xfer             2495 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             2516 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             2527 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TISCI_MSG_RM_UDMAP_FLOW_CFG,
xfer             2530 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             2531 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             2535 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_rm_udmap_flow_cfg_req *)xfer->xfer_buf;
xfer             2559 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             2565 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf;
xfer             2569 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             2587 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             2599 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_PROC_REQUEST,
xfer             2602 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             2603 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             2607 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_proc_request *)xfer->xfer_buf;
xfer             2610 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             2616 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf;
xfer             2621 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             2639 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             2651 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_PROC_RELEASE,
xfer             2654 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             2655 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             2659 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_proc_release *)xfer->xfer_buf;
xfer             2662 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             2668 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf;
xfer             2673 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             2694 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             2706 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_PROC_HANDOVER,
xfer             2709 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             2710 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             2714 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_proc_handover *)xfer->xfer_buf;
xfer             2718 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             2724 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf;
xfer             2729 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             2752 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             2764 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_SET_CONFIG,
xfer             2767 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             2768 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             2772 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_set_config *)xfer->xfer_buf;
xfer             2780 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             2786 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf;
xfer             2791 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             2813 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             2825 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_SET_CTRL,
xfer             2828 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             2829 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             2833 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_set_ctrl *)xfer->xfer_buf;
xfer             2838 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             2844 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_hdr *)xfer->tx_message.buf;
xfer             2849 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             2868 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             2880 drivers/firmware/ti_sci.c 	xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_GET_STATUS,
xfer             2883 drivers/firmware/ti_sci.c 	if (IS_ERR(xfer)) {
xfer             2884 drivers/firmware/ti_sci.c 		ret = PTR_ERR(xfer);
xfer             2888 drivers/firmware/ti_sci.c 	req = (struct ti_sci_msg_req_get_status *)xfer->xfer_buf;
xfer             2891 drivers/firmware/ti_sci.c 	ret = ti_sci_do_xfer(info, xfer);
xfer             2897 drivers/firmware/ti_sci.c 	resp = (struct ti_sci_msg_resp_get_status *)xfer->tx_message.buf;
xfer             2911 drivers/firmware/ti_sci.c 	ti_sci_put_one_xfer(&info->minfo, xfer);
xfer             3391 drivers/firmware/ti_sci.c 	struct ti_sci_xfer *xfer;
xfer             3456 drivers/firmware/ti_sci.c 	for (i = 0, xfer = minfo->xfer_block; i < desc->max_msgs; i++, xfer++) {
xfer             3457 drivers/firmware/ti_sci.c 		xfer->xfer_buf = devm_kcalloc(dev, 1, desc->max_msg_size,
xfer             3459 drivers/firmware/ti_sci.c 		if (!xfer->xfer_buf)
xfer             3462 drivers/firmware/ti_sci.c 		xfer->tx_message.buf = xfer->xfer_buf;
xfer             3463 drivers/firmware/ti_sci.c 		init_completion(&xfer->done);
xfer               81 drivers/gpio/gpio-max3191x.c 	struct spi_transfer xfer;
xfer              137 drivers/gpio/gpio-max3191x.c 			u8 in	  = ((u8 *)max3191x->xfer.rx_buf)[i * 2];
xfer              138 drivers/gpio/gpio-max3191x.c 			u8 status = ((u8 *)max3191x->xfer.rx_buf)[i * 2 + 1];
xfer              223 drivers/gpio/gpio-max3191x.c 	in = ((u8 *)max3191x->xfer.rx_buf)[chipnum * wordlen];
xfer              251 drivers/gpio/gpio-max3191x.c 		in = ((u8 *)max3191x->xfer.rx_buf)[chipnum * wordlen];
xfer              379 drivers/gpio/gpio-max3191x.c 	max3191x->xfer.rx_buf = devm_kcalloc(dev, max3191x->nchips,
xfer              383 drivers/gpio/gpio-max3191x.c 	    !max3191x->fault     || !max3191x->xfer.rx_buf)
xfer              415 drivers/gpio/gpio-max3191x.c 	max3191x->xfer.len = max3191x->nchips * max3191x_wordlen(max3191x);
xfer              416 drivers/gpio/gpio-max3191x.c 	spi_message_init_with_transfers(&max3191x->mesg, &max3191x->xfer, 1);
xfer              525 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c 	struct i2c_msg xfer[2];
xfer              554 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c 		xfer[0].addr = adv7511->i2c_edid->addr;
xfer              555 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c 		xfer[0].flags = 0;
xfer              556 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c 		xfer[0].len = 1;
xfer              557 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c 		xfer[0].buf = &offset;
xfer              558 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c 		xfer[1].addr = adv7511->i2c_edid->addr;
xfer              559 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c 		xfer[1].flags = I2C_M_RD;
xfer              560 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c 		xfer[1].len = 64;
xfer              561 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c 		xfer[1].buf = adv7511->edid_buf;
xfer              566 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c 			ret = i2c_transfer(adv7511->i2c_edid->adapter, xfer,
xfer              567 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c 					   ARRAY_SIZE(xfer));
xfer              573 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c 			xfer[1].buf += 64;
xfer              958 drivers/gpu/drm/exynos/exynos_drm_dsi.c 					struct exynos_dsi_transfer *xfer)
xfer              961 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	struct mipi_dsi_packet *pkt = &xfer->packet;
xfer              962 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	const u8 *payload = pkt->payload + xfer->tx_done;
xfer              963 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	u16 length = pkt->payload_length - xfer->tx_done;
xfer              964 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	bool first = !xfer->tx_done;
xfer              968 drivers/gpu/drm/exynos/exynos_drm_dsi.c 		xfer, length, xfer->tx_done, xfer->rx_len, xfer->rx_done);
xfer              973 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	xfer->tx_done += length;
xfer             1007 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	if (NEQV(xfer->flags & MIPI_DSI_MSG_USE_LPM,
xfer             1009 drivers/gpu/drm/exynos/exynos_drm_dsi.c 		exynos_dsi_set_cmd_lpm(dsi, xfer->flags & MIPI_DSI_MSG_USE_LPM);
xfer             1015 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	if (xfer->flags & MIPI_DSI_MSG_REQ_ACK)
xfer             1020 drivers/gpu/drm/exynos/exynos_drm_dsi.c 					struct exynos_dsi_transfer *xfer)
xfer             1022 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	u8 *payload = xfer->rx_payload + xfer->rx_done;
xfer             1023 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	bool first = !xfer->rx_done;
xfer             1034 drivers/gpu/drm/exynos/exynos_drm_dsi.c 			if (xfer->rx_len >= 2) {
xfer             1036 drivers/gpu/drm/exynos/exynos_drm_dsi.c 				++xfer->rx_done;
xfer             1042 drivers/gpu/drm/exynos/exynos_drm_dsi.c 			++xfer->rx_done;
xfer             1043 drivers/gpu/drm/exynos/exynos_drm_dsi.c 			xfer->rx_len = xfer->rx_done;
xfer             1044 drivers/gpu/drm/exynos/exynos_drm_dsi.c 			xfer->result = 0;
xfer             1049 drivers/gpu/drm/exynos/exynos_drm_dsi.c 			xfer->result = 0;
xfer             1054 drivers/gpu/drm/exynos/exynos_drm_dsi.c 		if (length > xfer->rx_len) {
xfer             1057 drivers/gpu/drm/exynos/exynos_drm_dsi.c 				xfer->rx_len, length);
xfer             1058 drivers/gpu/drm/exynos/exynos_drm_dsi.c 			length = xfer->rx_len;
xfer             1059 drivers/gpu/drm/exynos/exynos_drm_dsi.c 		} else if (length < xfer->rx_len)
xfer             1060 drivers/gpu/drm/exynos/exynos_drm_dsi.c 			xfer->rx_len = length;
xfer             1063 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	length = xfer->rx_len - xfer->rx_done;
xfer             1064 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	xfer->rx_done += length;
xfer             1091 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	if (xfer->rx_done == xfer->rx_len)
xfer             1092 drivers/gpu/drm/exynos/exynos_drm_dsi.c 		xfer->result = 0;
xfer             1106 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	struct exynos_dsi_transfer *xfer;
xfer             1117 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	xfer = list_first_entry(&dsi->transfer_list,
xfer             1122 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	if (xfer->packet.payload_length &&
xfer             1123 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	    xfer->tx_done == xfer->packet.payload_length)
xfer             1127 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	exynos_dsi_send_to_fifo(dsi, xfer);
xfer             1129 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	if (xfer->packet.payload_length || xfer->rx_len)
xfer             1132 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	xfer->result = 0;
xfer             1133 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	complete(&xfer->completed);
xfer             1137 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	list_del_init(&xfer->list);
xfer             1148 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	struct exynos_dsi_transfer *xfer;
xfer             1159 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	xfer = list_first_entry(&dsi->transfer_list,
xfer             1166 drivers/gpu/drm/exynos/exynos_drm_dsi.c 		xfer, xfer->packet.payload_length, xfer->tx_done, xfer->rx_len,
xfer             1167 drivers/gpu/drm/exynos/exynos_drm_dsi.c 		xfer->rx_done);
xfer             1169 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	if (xfer->tx_done != xfer->packet.payload_length)
xfer             1172 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	if (xfer->rx_done != xfer->rx_len)
xfer             1173 drivers/gpu/drm/exynos/exynos_drm_dsi.c 		exynos_dsi_read_from_fifo(dsi, xfer);
xfer             1175 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	if (xfer->rx_done != xfer->rx_len)
xfer             1180 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	list_del_init(&xfer->list);
xfer             1185 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	if (!xfer->rx_len)
xfer             1186 drivers/gpu/drm/exynos/exynos_drm_dsi.c 		xfer->result = 0;
xfer             1187 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	complete(&xfer->completed);
xfer             1193 drivers/gpu/drm/exynos/exynos_drm_dsi.c 					struct exynos_dsi_transfer *xfer)
xfer             1201 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	    xfer == list_first_entry(&dsi->transfer_list,
xfer             1203 drivers/gpu/drm/exynos/exynos_drm_dsi.c 		list_del_init(&xfer->list);
xfer             1211 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	list_del_init(&xfer->list);
xfer             1217 drivers/gpu/drm/exynos/exynos_drm_dsi.c 					struct exynos_dsi_transfer *xfer)
xfer             1222 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	xfer->tx_done = 0;
xfer             1223 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	xfer->rx_done = 0;
xfer             1224 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	xfer->result = -ETIMEDOUT;
xfer             1225 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	init_completion(&xfer->completed);
xfer             1230 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	list_add_tail(&xfer->list, &dsi->transfer_list);
xfer             1237 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	wait_for_completion_timeout(&xfer->completed,
xfer             1239 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	if (xfer->result == -ETIMEDOUT) {
xfer             1240 drivers/gpu/drm/exynos/exynos_drm_dsi.c 		struct mipi_dsi_packet *pkt = &xfer->packet;
xfer             1241 drivers/gpu/drm/exynos/exynos_drm_dsi.c 		exynos_dsi_remove_transfer(dsi, xfer);
xfer             1248 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	return xfer->result;
xfer             1604 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	struct exynos_dsi_transfer xfer;
xfer             1617 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	ret = mipi_dsi_create_packet(&xfer.packet, msg);
xfer             1621 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	xfer.rx_len = msg->rx_len;
xfer             1622 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	xfer.rx_payload = msg->rx_buf;
xfer             1623 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	xfer.flags = msg->flags;
xfer             1625 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	ret = exynos_dsi_transfer(dsi, &xfer);
xfer             1626 drivers/gpu/drm/exynos/exynos_drm_dsi.c 	return (ret < 0) ? ret : xfer.rx_done;
xfer              410 drivers/gpu/drm/i915/i915_request.c 		goto xfer;
xfer              442 drivers/gpu/drm/i915/i915_request.c xfer:	/* We may be recursing from the signal callback of another i915 fence */
xfer              168 drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h 	const u8 xfer = size;
xfer              172 drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h 		WARN_ON(!ret && size != xfer);
xfer             1653 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c 	u32 addr = ~0, prev = ~0, xfer = 0;
xfer             1667 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c 			if (head != prev + 4 || xfer >= 32) {
xfer             1668 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c 				if (xfer) {
xfer             1669 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c 					u32 data = ((--xfer << 26) | addr);
xfer             1674 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c 				xfer = 0;
xfer             1677 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c 			xfer = xfer + 1;
xfer             1682 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c 	nvkm_wr32(device, falcon + 0x01c4, (--xfer << 26) | addr);
xfer               99 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c 	.xfer = anx9805_bus_xfer,
xfer              227 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c 	.xfer = anx9805_aux_xfer,
xfer               57 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c 				ret = aux->func->xfer(aux, true, cmd,
xfer              140 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c 	return aux->func->xfer(aux, retry, type, addr, data, size);
xfer                8 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h 	int  (*xfer)(struct nvkm_i2c_aux *, bool retry, u8 type,
xfer              182 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxg94.c 	.xfer = g94_i2c_aux_xfer,
xfer               27 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgf119.c 	.xfer = g94_i2c_aux_xfer,
xfer              166 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/auxgm200.c 	.xfer = gm200_i2c_aux_xfer,
xfer               87 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c 	ret = bus->func->xfer(bus, msgs, num);
xfer               12 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.h 	int (*xfer)(struct nvkm_i2c_bus *, struct i2c_msg *, int num);
xfer               79 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c 	.xfer = nvkm_i2c_bit_xfer,
xfer               79 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c 	.xfer = nvkm_i2c_bit_xfer,
xfer               70 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c 	.xfer = nvkm_i2c_bit_xfer,
xfer               86 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c 	.xfer = nvkm_i2c_bit_xfer,
xfer               42 drivers/gpu/drm/panel/panel-lg-lg4573.c 	struct spi_transfer xfer = {
xfer               49 drivers/gpu/drm/panel/panel-lg-lg4573.c 	xfer.tx_buf = &temp;
xfer               51 drivers/gpu/drm/panel/panel-lg-lg4573.c 	spi_message_add_tail(&xfer, &msg);
xfer              130 drivers/gpu/drm/panel/panel-samsung-ld9040.c 	struct spi_transfer xfer = {
xfer              137 drivers/gpu/drm/panel/panel-samsung-ld9040.c 	spi_message_add_tail(&xfer, &msg);
xfer              142 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c 	struct spi_transfer xfer = {
xfer              149 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c 	spi_message_add_tail(&xfer, &msg);
xfer              136 drivers/gpu/drm/panel/panel-sitronix-st7789v.c 	struct spi_transfer xfer = { };
xfer              142 drivers/gpu/drm/panel/panel-sitronix-st7789v.c 	xfer.tx_buf = &txbuf;
xfer              143 drivers/gpu/drm/panel/panel-sitronix-st7789v.c 	xfer.bits_per_word = 9;
xfer              144 drivers/gpu/drm/panel/panel-sitronix-st7789v.c 	xfer.len = sizeof(txbuf);
xfer              146 drivers/gpu/drm/panel/panel-sitronix-st7789v.c 	spi_message_add_tail(&xfer, &msg);
xfer               79 drivers/gpu/drm/panel/panel-sony-acx565akm.c 	struct spi_transfer	*x, xfer[5];
xfer               84 drivers/gpu/drm/panel/panel-sony-acx565akm.c 	memset(xfer, 0, sizeof(xfer));
xfer               85 drivers/gpu/drm/panel/panel-sony-acx565akm.c 	x = &xfer[0];
xfer               77 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c 	struct spi_transfer xfer;
xfer               83 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c 	memset(&xfer, 0, sizeof(xfer));
xfer               86 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c 	xfer.tx_buf = &data;
xfer               87 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c 	xfer.bits_per_word = 16;
xfer               88 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c 	xfer.len = 2;
xfer               89 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c 	spi_message_add_tail(&xfer, &msg);
xfer               99 drivers/gpu/drm/via/via_dmablit.c 		   const drm_via_dmablit_t *xfer,
xfer              105 drivers/gpu/drm/via/via_dmablit.c 	unsigned char *mem_addr = xfer->mem_addr;
xfer              108 drivers/gpu/drm/via/via_dmablit.c 	uint32_t fb_addr = xfer->fb_addr;
xfer              120 drivers/gpu/drm/via/via_dmablit.c 	for (cur_line = 0; cur_line < xfer->num_lines; ++cur_line) {
xfer              122 drivers/gpu/drm/via/via_dmablit.c 		line_len = xfer->line_length;
xfer              156 drivers/gpu/drm/via/via_dmablit.c 		mem_addr += xfer->mem_stride;
xfer              157 drivers/gpu/drm/via/via_dmablit.c 		fb_addr += xfer->fb_stride;
xfer              232 drivers/gpu/drm/via/via_dmablit.c via_lock_all_dma_pages(drm_via_sg_info_t *vsg,  drm_via_dmablit_t *xfer)
xfer              235 drivers/gpu/drm/via/via_dmablit.c 	unsigned long first_pfn = VIA_PFN(xfer->mem_addr);
xfer              236 drivers/gpu/drm/via/via_dmablit.c 	vsg->num_pages = VIA_PFN(xfer->mem_addr + (xfer->num_lines * xfer->mem_stride - 1)) -
xfer              242 drivers/gpu/drm/via/via_dmablit.c 	ret = get_user_pages_fast((unsigned long)xfer->mem_addr,
xfer              574 drivers/gpu/drm/via/via_dmablit.c via_build_sg_info(struct drm_device *dev, drm_via_sg_info_t *vsg, drm_via_dmablit_t *xfer)
xfer              576 drivers/gpu/drm/via/via_dmablit.c 	int draw = xfer->to_fb;
xfer              584 drivers/gpu/drm/via/via_dmablit.c 	if (xfer->num_lines <= 0 || xfer->line_length <= 0) {
xfer              596 drivers/gpu/drm/via/via_dmablit.c 	if ((xfer->mem_stride - xfer->line_length) > 2*PAGE_SIZE) {
xfer              598 drivers/gpu/drm/via/via_dmablit.c 			  "Length: %d\n", xfer->mem_stride, xfer->line_length);
xfer              602 drivers/gpu/drm/via/via_dmablit.c 	if ((xfer->mem_stride == xfer->line_length) &&
xfer              603 drivers/gpu/drm/via/via_dmablit.c 	   (xfer->fb_stride == xfer->line_length)) {
xfer              604 drivers/gpu/drm/via/via_dmablit.c 		xfer->mem_stride *= xfer->num_lines;
xfer              605 drivers/gpu/drm/via/via_dmablit.c 		xfer->line_length = xfer->mem_stride;
xfer              606 drivers/gpu/drm/via/via_dmablit.c 		xfer->fb_stride = xfer->mem_stride;
xfer              607 drivers/gpu/drm/via/via_dmablit.c 		xfer->num_lines = 1;
xfer              615 drivers/gpu/drm/via/via_dmablit.c 	if (xfer->num_lines > 2048 || (xfer->num_lines*xfer->mem_stride > (2048*2048*4))) {
xfer              625 drivers/gpu/drm/via/via_dmablit.c 	if (xfer->mem_stride < xfer->line_length ||
xfer              626 drivers/gpu/drm/via/via_dmablit.c 		abs(xfer->fb_stride) < xfer->line_length) {
xfer              638 drivers/gpu/drm/via/via_dmablit.c 	if ((((unsigned long)xfer->mem_addr & 3) != ((unsigned long)xfer->fb_addr & 3)) ||
xfer              639 drivers/gpu/drm/via/via_dmablit.c 	    ((xfer->num_lines > 1) && ((xfer->mem_stride & 3) != (xfer->fb_stride & 3)))) {
xfer              644 drivers/gpu/drm/via/via_dmablit.c 	if ((((unsigned long)xfer->mem_addr & 15) ||
xfer              645 drivers/gpu/drm/via/via_dmablit.c 	      ((unsigned long)xfer->fb_addr & 3)) ||
xfer              646 drivers/gpu/drm/via/via_dmablit.c 	   ((xfer->num_lines > 1) &&
xfer              647 drivers/gpu/drm/via/via_dmablit.c 	   ((xfer->mem_stride & 15) || (xfer->fb_stride & 3)))) {
xfer              653 drivers/gpu/drm/via/via_dmablit.c 	if (0 != (ret = via_lock_all_dma_pages(vsg, xfer))) {
xfer              659 drivers/gpu/drm/via/via_dmablit.c 	via_map_blit_for_device(dev->pdev, xfer, vsg, 0);
xfer              665 drivers/gpu/drm/via/via_dmablit.c 	via_map_blit_for_device(dev->pdev, xfer, vsg, 1);
xfer              721 drivers/gpu/drm/via/via_dmablit.c via_dmablit(struct drm_device *dev, drm_via_dmablit_t *xfer)
xfer              735 drivers/gpu/drm/via/via_dmablit.c 	engine = (xfer->to_fb) ? 0 : 1;
xfer              743 drivers/gpu/drm/via/via_dmablit.c 	if (0 != (ret = via_build_sg_info(dev, vsg, xfer))) {
xfer              754 drivers/gpu/drm/via/via_dmablit.c 	xfer->sync.sync_handle = ++blitq->cur_blit_handle;
xfer              757 drivers/gpu/drm/via/via_dmablit.c 	xfer->sync.engine = engine;
xfer              798 drivers/gpu/drm/via/via_dmablit.c 	drm_via_dmablit_t *xfer = data;
xfer              801 drivers/gpu/drm/via/via_dmablit.c 	err = via_dmablit(dev, xfer);
xfer             1413 drivers/hid/hid-cp2112.c 	struct cp2112_xfer_status_report *xfer = (void *)data;
xfer             1418 drivers/hid/hid-cp2112.c 			xfer->status0, xfer->status1,
xfer             1419 drivers/hid/hid-cp2112.c 			be16_to_cpu(xfer->retries), be16_to_cpu(xfer->length));
xfer             1421 drivers/hid/hid-cp2112.c 		switch (xfer->status0) {
xfer             1429 drivers/hid/hid-cp2112.c 			dev->xfer_status = be16_to_cpu(xfer->length);
xfer             1432 drivers/hid/hid-cp2112.c 			switch (xfer->status1) {
xfer               40 drivers/hwmon/max1111.c 	struct spi_transfer	xfer[2];
xfer              166 drivers/hwmon/max1111.c 	x = &data->xfer[0];
xfer               87 drivers/i2c/busses/i2c-mlxcpld.c 	struct  mlxcpld_i2c_curr_xfer xfer;
xfer              230 drivers/i2c/busses/i2c-mlxcpld.c 	priv->xfer.msg = msgs;
xfer              231 drivers/i2c/busses/i2c-mlxcpld.c 	priv->xfer.msg_num = num;
xfer              239 drivers/i2c/busses/i2c-mlxcpld.c 	priv->xfer.cmd = msgs[num - 1].flags & I2C_M_RD;
xfer              241 drivers/i2c/busses/i2c-mlxcpld.c 	if (priv->xfer.cmd == I2C_M_RD && comm_len != msgs[0].len) {
xfer              242 drivers/i2c/busses/i2c-mlxcpld.c 		priv->xfer.addr_width = msgs[0].len;
xfer              243 drivers/i2c/busses/i2c-mlxcpld.c 		priv->xfer.data_len = comm_len - priv->xfer.addr_width;
xfer              245 drivers/i2c/busses/i2c-mlxcpld.c 		priv->xfer.addr_width = 0;
xfer              246 drivers/i2c/busses/i2c-mlxcpld.c 		priv->xfer.data_len = comm_len;
xfer              316 drivers/i2c/busses/i2c-mlxcpld.c 		if (priv->xfer.cmd != I2C_M_RD)
xfer              317 drivers/i2c/busses/i2c-mlxcpld.c 			return (priv->xfer.addr_width + priv->xfer.data_len);
xfer              319 drivers/i2c/busses/i2c-mlxcpld.c 		if (priv->xfer.msg_num == 1)
xfer              324 drivers/i2c/busses/i2c-mlxcpld.c 		if (!priv->xfer.msg[i].buf)
xfer              345 drivers/i2c/busses/i2c-mlxcpld.c 			datalen = priv->xfer.data_len;
xfer              349 drivers/i2c/busses/i2c-mlxcpld.c 				      priv->xfer.msg[i].buf, datalen);
xfer              367 drivers/i2c/busses/i2c-mlxcpld.c 			       &priv->xfer.data_len, 1);
xfer              369 drivers/i2c/busses/i2c-mlxcpld.c 	val = priv->xfer.addr_width;
xfer              371 drivers/i2c/busses/i2c-mlxcpld.c 	if (priv->smbus_block && priv->xfer.msg_num >= 2 &&
xfer              372 drivers/i2c/busses/i2c-mlxcpld.c 	    priv->xfer.msg[1].len == 1 &&
xfer              373 drivers/i2c/busses/i2c-mlxcpld.c 	    (priv->xfer.msg[1].flags & I2C_M_RECV_LEN) &&
xfer              374 drivers/i2c/busses/i2c-mlxcpld.c 	    (priv->xfer.msg[1].flags & I2C_M_RD))
xfer              379 drivers/i2c/busses/i2c-mlxcpld.c 	for (i = 0; i < priv->xfer.msg_num; i++) {
xfer              380 drivers/i2c/busses/i2c-mlxcpld.c 		if ((priv->xfer.msg[i].flags & I2C_M_RD) != I2C_M_RD) {
xfer              383 drivers/i2c/busses/i2c-mlxcpld.c 					       len, priv->xfer.msg[i].buf,
xfer              384 drivers/i2c/busses/i2c-mlxcpld.c 					       priv->xfer.msg[i].len);
xfer              385 drivers/i2c/busses/i2c-mlxcpld.c 			len += priv->xfer.msg[i].len;
xfer              393 drivers/i2c/busses/i2c-mlxcpld.c 	cmd = (priv->xfer.msg[0].addr << 1) | priv->xfer.cmd;
xfer              276 drivers/i2c/busses/i2c-qup.c 	struct completion	xfer;
xfer              377 drivers/i2c/busses/i2c-qup.c 	complete(&qup->xfer);
xfer              599 drivers/i2c/busses/i2c-qup.c 	complete(&qup->xfer);
xfer              801 drivers/i2c/busses/i2c-qup.c 	if (!wait_for_completion_timeout(&qup->xfer, qup->xfer_timeout)) {
xfer              807 drivers/i2c/busses/i2c-qup.c 		reinit_completion(&qup->xfer);
xfer              817 drivers/i2c/busses/i2c-qup.c 		if (!wait_for_completion_timeout(&qup->xfer, HZ))
xfer              909 drivers/i2c/busses/i2c-qup.c 	left = wait_for_completion_timeout(&qup->xfer, qup->xfer_timeout);
xfer             1019 drivers/i2c/busses/i2c-qup.c 	reinit_completion(&qup->xfer);
xfer             1394 drivers/i2c/busses/i2c-qup.c 	reinit_completion(&qup->xfer);
xfer             1577 drivers/i2c/busses/i2c-qup.c 		reinit_completion(&qup->xfer);
xfer             1681 drivers/i2c/busses/i2c-qup.c 	init_completion(&qup->xfer);
xfer              105 drivers/i2c/busses/i2c-tegra-bpmp.c 	char *buf = request->xfer.data_buf;
xfer              130 drivers/i2c/busses/i2c-tegra-bpmp.c 	request->xfer.data_size = pos;
xfer              154 drivers/i2c/busses/i2c-tegra-bpmp.c 	size_t size = response->xfer.data_size, len = 0, pos = 0;
xfer              155 drivers/i2c/busses/i2c-tegra-bpmp.c 	char *buf = response->xfer.data_buf;
xfer              206 drivers/i2c/busses/i2c-tegra-bpmp.c 	request->xfer.bus_id = i2c->bus;
xfer              174 drivers/i2c/busses/i2c-xlr.c 	u32 xfer;
xfer              188 drivers/i2c/busses/i2c-xlr.c 		xfer = XLR_I2C_STARTXFR_ND;
xfer              193 drivers/i2c/busses/i2c-xlr.c 		xfer = XLR_I2C_STARTXFR_WR;
xfer              201 drivers/i2c/busses/i2c-xlr.c 	xlr_i2c_wreg(priv->iobase, XLR_I2C_STARTXFR, xfer);
xfer              360 drivers/i3c/master/dw-i3c-master.c 	struct dw_i3c_xfer *xfer;
xfer              362 drivers/i3c/master/dw-i3c-master.c 	xfer = kzalloc(struct_size(xfer, cmds, ncmds), GFP_KERNEL);
xfer              363 drivers/i3c/master/dw-i3c-master.c 	if (!xfer)
xfer              366 drivers/i3c/master/dw-i3c-master.c 	INIT_LIST_HEAD(&xfer->node);
xfer              367 drivers/i3c/master/dw-i3c-master.c 	xfer->ncmds = ncmds;
xfer              368 drivers/i3c/master/dw-i3c-master.c 	xfer->ret = -ETIMEDOUT;
xfer              370 drivers/i3c/master/dw-i3c-master.c 	return xfer;
xfer              373 drivers/i3c/master/dw-i3c-master.c static void dw_i3c_master_free_xfer(struct dw_i3c_xfer *xfer)
xfer              375 drivers/i3c/master/dw-i3c-master.c 	kfree(xfer);
xfer              380 drivers/i3c/master/dw-i3c-master.c 	struct dw_i3c_xfer *xfer = master->xferqueue.cur;
xfer              384 drivers/i3c/master/dw-i3c-master.c 	if (!xfer)
xfer              387 drivers/i3c/master/dw-i3c-master.c 	for (i = 0; i < xfer->ncmds; i++) {
xfer              388 drivers/i3c/master/dw-i3c-master.c 		struct dw_i3c_cmd *cmd = &xfer->cmds[i];
xfer              395 drivers/i3c/master/dw-i3c-master.c 	thld_ctrl |= QUEUE_THLD_CTRL_RESP_BUF(xfer->ncmds);
xfer              398 drivers/i3c/master/dw-i3c-master.c 	for (i = 0; i < xfer->ncmds; i++) {
xfer              399 drivers/i3c/master/dw-i3c-master.c 		struct dw_i3c_cmd *cmd = &xfer->cmds[i];
xfer              407 drivers/i3c/master/dw-i3c-master.c 				       struct dw_i3c_xfer *xfer)
xfer              411 drivers/i3c/master/dw-i3c-master.c 	init_completion(&xfer->comp);
xfer              414 drivers/i3c/master/dw-i3c-master.c 		list_add_tail(&xfer->node, &master->xferqueue.list);
xfer              416 drivers/i3c/master/dw-i3c-master.c 		master->xferqueue.cur = xfer;
xfer              423 drivers/i3c/master/dw-i3c-master.c 					      struct dw_i3c_xfer *xfer)
xfer              425 drivers/i3c/master/dw-i3c-master.c 	if (master->xferqueue.cur == xfer) {
xfer              437 drivers/i3c/master/dw-i3c-master.c 		list_del_init(&xfer->node);
xfer              442 drivers/i3c/master/dw-i3c-master.c 				       struct dw_i3c_xfer *xfer)
xfer              447 drivers/i3c/master/dw-i3c-master.c 	dw_i3c_master_dequeue_xfer_locked(master, xfer);
xfer              453 drivers/i3c/master/dw-i3c-master.c 	struct dw_i3c_xfer *xfer = master->xferqueue.cur;
xfer              457 drivers/i3c/master/dw-i3c-master.c 	if (!xfer)
xfer              469 drivers/i3c/master/dw-i3c-master.c 		cmd = &xfer->cmds[RESPONSE_PORT_TID(resp)];
xfer              478 drivers/i3c/master/dw-i3c-master.c 		switch (xfer->cmds[i].error) {
xfer              499 drivers/i3c/master/dw-i3c-master.c 	xfer->ret = ret;
xfer              500 drivers/i3c/master/dw-i3c-master.c 	complete(&xfer->comp);
xfer              503 drivers/i3c/master/dw-i3c-master.c 		dw_i3c_master_dequeue_xfer_locked(master, xfer);
xfer              508 drivers/i3c/master/dw-i3c-master.c 	xfer = list_first_entry_or_null(&master->xferqueue.list,
xfer              511 drivers/i3c/master/dw-i3c-master.c 	if (xfer)
xfer              512 drivers/i3c/master/dw-i3c-master.c 		list_del_init(&xfer->node);
xfer              514 drivers/i3c/master/dw-i3c-master.c 	master->xferqueue.cur = xfer;
xfer              664 drivers/i3c/master/dw-i3c-master.c 	struct dw_i3c_xfer *xfer;
xfer              674 drivers/i3c/master/dw-i3c-master.c 	xfer = dw_i3c_master_alloc_xfer(master, 1);
xfer              675 drivers/i3c/master/dw-i3c-master.c 	if (!xfer)
xfer              678 drivers/i3c/master/dw-i3c-master.c 	cmd = xfer->cmds;
xfer              691 drivers/i3c/master/dw-i3c-master.c 	dw_i3c_master_enqueue_xfer(master, xfer);
xfer              692 drivers/i3c/master/dw-i3c-master.c 	if (!wait_for_completion_timeout(&xfer->comp, XFER_TIMEOUT))
xfer              693 drivers/i3c/master/dw-i3c-master.c 		dw_i3c_master_dequeue_xfer(master, xfer);
xfer              695 drivers/i3c/master/dw-i3c-master.c 	ret = xfer->ret;
xfer              696 drivers/i3c/master/dw-i3c-master.c 	if (xfer->cmds[0].error == RESPONSE_ERROR_IBA_NACK)
xfer              699 drivers/i3c/master/dw-i3c-master.c 	dw_i3c_master_free_xfer(xfer);
xfer              706 drivers/i3c/master/dw-i3c-master.c 	struct dw_i3c_xfer *xfer;
xfer              714 drivers/i3c/master/dw-i3c-master.c 	xfer = dw_i3c_master_alloc_xfer(master, 1);
xfer              715 drivers/i3c/master/dw-i3c-master.c 	if (!xfer)
xfer              718 drivers/i3c/master/dw-i3c-master.c 	cmd = xfer->cmds;
xfer              732 drivers/i3c/master/dw-i3c-master.c 	dw_i3c_master_enqueue_xfer(master, xfer);
xfer              733 drivers/i3c/master/dw-i3c-master.c 	if (!wait_for_completion_timeout(&xfer->comp, XFER_TIMEOUT))
xfer              734 drivers/i3c/master/dw-i3c-master.c 		dw_i3c_master_dequeue_xfer(master, xfer);
xfer              736 drivers/i3c/master/dw-i3c-master.c 	ret = xfer->ret;
xfer              737 drivers/i3c/master/dw-i3c-master.c 	if (xfer->cmds[0].error == RESPONSE_ERROR_IBA_NACK)
xfer              739 drivers/i3c/master/dw-i3c-master.c 	dw_i3c_master_free_xfer(xfer);
xfer              764 drivers/i3c/master/dw-i3c-master.c 	struct dw_i3c_xfer *xfer;
xfer              791 drivers/i3c/master/dw-i3c-master.c 	xfer = dw_i3c_master_alloc_xfer(master, 1);
xfer              792 drivers/i3c/master/dw-i3c-master.c 	if (!xfer)
xfer              796 drivers/i3c/master/dw-i3c-master.c 	cmd = &xfer->cmds[0];
xfer              805 drivers/i3c/master/dw-i3c-master.c 	dw_i3c_master_enqueue_xfer(master, xfer);
xfer              806 drivers/i3c/master/dw-i3c-master.c 	if (!wait_for_completion_timeout(&xfer->comp, XFER_TIMEOUT))
xfer              807 drivers/i3c/master/dw-i3c-master.c 		dw_i3c_master_dequeue_xfer(master, xfer);
xfer              817 drivers/i3c/master/dw-i3c-master.c 	dw_i3c_master_free_xfer(xfer);
xfer              835 drivers/i3c/master/dw-i3c-master.c 	struct dw_i3c_xfer *xfer;
xfer              855 drivers/i3c/master/dw-i3c-master.c 	xfer = dw_i3c_master_alloc_xfer(master, i3c_nxfers);
xfer              856 drivers/i3c/master/dw-i3c-master.c 	if (!xfer)
xfer              860 drivers/i3c/master/dw-i3c-master.c 		struct dw_i3c_cmd *cmd = &xfer->cmds[i];
xfer              886 drivers/i3c/master/dw-i3c-master.c 	dw_i3c_master_enqueue_xfer(master, xfer);
xfer              887 drivers/i3c/master/dw-i3c-master.c 	if (!wait_for_completion_timeout(&xfer->comp, XFER_TIMEOUT))
xfer              888 drivers/i3c/master/dw-i3c-master.c 		dw_i3c_master_dequeue_xfer(master, xfer);
xfer              890 drivers/i3c/master/dw-i3c-master.c 	ret = xfer->ret;
xfer              891 drivers/i3c/master/dw-i3c-master.c 	dw_i3c_master_free_xfer(xfer);
xfer              963 drivers/i3c/master/dw-i3c-master.c 	struct dw_i3c_xfer *xfer;
xfer              983 drivers/i3c/master/dw-i3c-master.c 	xfer = dw_i3c_master_alloc_xfer(master, i2c_nxfers);
xfer              984 drivers/i3c/master/dw-i3c-master.c 	if (!xfer)
xfer              988 drivers/i3c/master/dw-i3c-master.c 		struct dw_i3c_cmd *cmd = &xfer->cmds[i];
xfer             1010 drivers/i3c/master/dw-i3c-master.c 	dw_i3c_master_enqueue_xfer(master, xfer);
xfer             1011 drivers/i3c/master/dw-i3c-master.c 	if (!wait_for_completion_timeout(&xfer->comp, XFER_TIMEOUT))
xfer             1012 drivers/i3c/master/dw-i3c-master.c 		dw_i3c_master_dequeue_xfer(master, xfer);
xfer             1014 drivers/i3c/master/dw-i3c-master.c 	ret = xfer->ret;
xfer             1015 drivers/i3c/master/dw-i3c-master.c 	dw_i3c_master_free_xfer(xfer);
xfer              502 drivers/i3c/master/i3c-master-cdns.c 	struct cdns_i3c_xfer *xfer;
xfer              504 drivers/i3c/master/i3c-master-cdns.c 	xfer = kzalloc(struct_size(xfer, cmds, ncmds), GFP_KERNEL);
xfer              505 drivers/i3c/master/i3c-master-cdns.c 	if (!xfer)
xfer              508 drivers/i3c/master/i3c-master-cdns.c 	INIT_LIST_HEAD(&xfer->node);
xfer              509 drivers/i3c/master/i3c-master-cdns.c 	xfer->ncmds = ncmds;
xfer              510 drivers/i3c/master/i3c-master-cdns.c 	xfer->ret = -ETIMEDOUT;
xfer              512 drivers/i3c/master/i3c-master-cdns.c 	return xfer;
xfer              515 drivers/i3c/master/i3c-master-cdns.c static void cdns_i3c_master_free_xfer(struct cdns_i3c_xfer *xfer)
xfer              517 drivers/i3c/master/i3c-master-cdns.c 	kfree(xfer);
xfer              522 drivers/i3c/master/i3c-master-cdns.c 	struct cdns_i3c_xfer *xfer = master->xferqueue.cur;
xfer              525 drivers/i3c/master/i3c-master-cdns.c 	if (!xfer)
xfer              529 drivers/i3c/master/i3c-master-cdns.c 	for (i = 0; i < xfer->ncmds; i++) {
xfer              530 drivers/i3c/master/i3c-master-cdns.c 		struct cdns_i3c_cmd *cmd = &xfer->cmds[i];
xfer              536 drivers/i3c/master/i3c-master-cdns.c 	for (i = 0; i < xfer->ncmds; i++) {
xfer              537 drivers/i3c/master/i3c-master-cdns.c 		struct cdns_i3c_cmd *cmd = &xfer->cmds[i];
xfer              552 drivers/i3c/master/i3c-master-cdns.c 	struct cdns_i3c_xfer *xfer = master->xferqueue.cur;
xfer              556 drivers/i3c/master/i3c-master-cdns.c 	if (!xfer)
xfer              574 drivers/i3c/master/i3c-master-cdns.c 		    WARN_ON(id >= xfer->ncmds))
xfer              577 drivers/i3c/master/i3c-master-cdns.c 		cmd = &xfer->cmds[CMDR_CMDID(cmdr)];
xfer              583 drivers/i3c/master/i3c-master-cdns.c 	for (i = 0; i < xfer->ncmds; i++) {
xfer              584 drivers/i3c/master/i3c-master-cdns.c 		switch (xfer->cmds[i].error) {
xfer              611 drivers/i3c/master/i3c-master-cdns.c 	xfer->ret = ret;
xfer              612 drivers/i3c/master/i3c-master-cdns.c 	complete(&xfer->comp);
xfer              614 drivers/i3c/master/i3c-master-cdns.c 	xfer = list_first_entry_or_null(&master->xferqueue.list,
xfer              616 drivers/i3c/master/i3c-master-cdns.c 	if (xfer)
xfer              617 drivers/i3c/master/i3c-master-cdns.c 		list_del_init(&xfer->node);
xfer              619 drivers/i3c/master/i3c-master-cdns.c 	master->xferqueue.cur = xfer;
xfer              624 drivers/i3c/master/i3c-master-cdns.c 				       struct cdns_i3c_xfer *xfer)
xfer              628 drivers/i3c/master/i3c-master-cdns.c 	init_completion(&xfer->comp);
xfer              631 drivers/i3c/master/i3c-master-cdns.c 		list_add_tail(&xfer->node, &master->xferqueue.list);
xfer              633 drivers/i3c/master/i3c-master-cdns.c 		master->xferqueue.cur = xfer;
xfer              640 drivers/i3c/master/i3c-master-cdns.c 					 struct cdns_i3c_xfer *xfer)
xfer              645 drivers/i3c/master/i3c-master-cdns.c 	if (master->xferqueue.cur == xfer) {
xfer              661 drivers/i3c/master/i3c-master-cdns.c 		list_del_init(&xfer->node);
xfer              690 drivers/i3c/master/i3c-master-cdns.c 	struct cdns_i3c_xfer *xfer;
xfer              694 drivers/i3c/master/i3c-master-cdns.c 	xfer = cdns_i3c_master_alloc_xfer(master, 1);
xfer              695 drivers/i3c/master/i3c-master-cdns.c 	if (!xfer)
xfer              698 drivers/i3c/master/i3c-master-cdns.c 	ccmd = xfer->cmds;
xfer              715 drivers/i3c/master/i3c-master-cdns.c 	cdns_i3c_master_queue_xfer(master, xfer);
xfer              716 drivers/i3c/master/i3c-master-cdns.c 	if (!wait_for_completion_timeout(&xfer->comp, msecs_to_jiffies(1000)))
xfer              717 drivers/i3c/master/i3c-master-cdns.c 		cdns_i3c_master_unqueue_xfer(master, xfer);
xfer              719 drivers/i3c/master/i3c-master-cdns.c 	ret = xfer->ret;
xfer              720 drivers/i3c/master/i3c-master-cdns.c 	cmd->err = cdns_i3c_cmd_get_err(&xfer->cmds[0]);
xfer              721 drivers/i3c/master/i3c-master-cdns.c 	cdns_i3c_master_free_xfer(xfer);
xfer              813 drivers/i3c/master/i3c-master-cdns.c 	struct cdns_i3c_xfer *xfer;
xfer              833 drivers/i3c/master/i3c-master-cdns.c 	xfer = cdns_i3c_master_alloc_xfer(master, nxfers);
xfer              834 drivers/i3c/master/i3c-master-cdns.c 	if (!xfer)
xfer              838 drivers/i3c/master/i3c-master-cdns.c 		struct cdns_i3c_cmd *ccmd = &xfer->cmds[i];
xfer              857 drivers/i3c/master/i3c-master-cdns.c 	cdns_i3c_master_queue_xfer(master, xfer);
xfer              858 drivers/i3c/master/i3c-master-cdns.c 	if (!wait_for_completion_timeout(&xfer->comp, msecs_to_jiffies(1000)))
xfer              859 drivers/i3c/master/i3c-master-cdns.c 		cdns_i3c_master_unqueue_xfer(master, xfer);
xfer              861 drivers/i3c/master/i3c-master-cdns.c 	ret = xfer->ret;
xfer              862 drivers/i3c/master/i3c-master-cdns.c 	cdns_i3c_master_free_xfer(xfer);
xfer              288 drivers/iio/accel/sca3000.c 	struct spi_transfer xfer[2] = {
xfer              299 drivers/iio/accel/sca3000.c 	return spi_sync_transfer(st->us, xfer, ARRAY_SIZE(xfer));
xfer              329 drivers/iio/accel/sca3000.c 	struct spi_transfer xfer[3] = {
xfer              350 drivers/iio/accel/sca3000.c 	return spi_sync_transfer(st->us, xfer, ARRAY_SIZE(xfer));
xfer              970 drivers/iio/accel/sca3000.c 	struct spi_transfer xfer[2] = {
xfer              981 drivers/iio/accel/sca3000.c 	ret = spi_sync_transfer(st->us, xfer, ARRAY_SIZE(xfer));
xfer               37 drivers/iio/adc/ad7476.c 	struct spi_transfer		xfer;
xfer              271 drivers/iio/adc/ad7476.c 	st->xfer.rx_buf = &st->data;
xfer              272 drivers/iio/adc/ad7476.c 	st->xfer.len = st->chip_info->channel[0].scan_type.storagebits / 8;
xfer              275 drivers/iio/adc/ad7476.c 	spi_message_add_tail(&st->xfer, &st->msg);
xfer               44 drivers/iio/adc/ad7766.c 	struct spi_transfer xfer;
xfer              285 drivers/iio/adc/ad7766.c 	ad7766->xfer.rx_buf = &ad7766->data[1];
xfer              286 drivers/iio/adc/ad7766.c 	ad7766->xfer.len = 3;
xfer              289 drivers/iio/adc/ad7766.c 	spi_message_add_tail(&ad7766->xfer, &ad7766->msg);
xfer               57 drivers/iio/adc/ad7887.c 	struct spi_transfer		xfer[4];
xfer              280 drivers/iio/adc/ad7887.c 	st->xfer[0].rx_buf = &st->data[0];
xfer              281 drivers/iio/adc/ad7887.c 	st->xfer[0].tx_buf = &st->tx_cmd_buf[0];
xfer              282 drivers/iio/adc/ad7887.c 	st->xfer[0].len = 2;
xfer              285 drivers/iio/adc/ad7887.c 	spi_message_add_tail(&st->xfer[0], &st->msg[AD7887_CH0]);
xfer              290 drivers/iio/adc/ad7887.c 		st->xfer[1].rx_buf = &st->data[0];
xfer              291 drivers/iio/adc/ad7887.c 		st->xfer[1].tx_buf = &st->tx_cmd_buf[2];
xfer              292 drivers/iio/adc/ad7887.c 		st->xfer[1].len = 2;
xfer              294 drivers/iio/adc/ad7887.c 		st->xfer[2].rx_buf = &st->data[2];
xfer              295 drivers/iio/adc/ad7887.c 		st->xfer[2].tx_buf = &st->tx_cmd_buf[0];
xfer              296 drivers/iio/adc/ad7887.c 		st->xfer[2].len = 2;
xfer              299 drivers/iio/adc/ad7887.c 		spi_message_add_tail(&st->xfer[1], &st->msg[AD7887_CH0_CH1]);
xfer              300 drivers/iio/adc/ad7887.c 		spi_message_add_tail(&st->xfer[2], &st->msg[AD7887_CH0_CH1]);
xfer              302 drivers/iio/adc/ad7887.c 		st->xfer[3].rx_buf = &st->data[2];
xfer              303 drivers/iio/adc/ad7887.c 		st->xfer[3].tx_buf = &st->tx_cmd_buf[2];
xfer              304 drivers/iio/adc/ad7887.c 		st->xfer[3].len = 2;
xfer              307 drivers/iio/adc/ad7887.c 		spi_message_add_tail(&st->xfer[3], &st->msg[AD7887_CH1]);
xfer              132 drivers/iio/adc/ti-adc0832.c 	struct spi_transfer xfer = {
xfer              155 drivers/iio/adc/ti-adc0832.c 	ret = spi_sync_transfer(spi, &xfer, 1);
xfer              124 drivers/iio/adc/ti-adc12138.c 	struct spi_transfer xfer = {
xfer              137 drivers/iio/adc/ti-adc12138.c 	ret = spi_sync_transfer(adc->spi, &xfer, 1);
xfer               47 drivers/iio/chemical/vz89x.c 	int (*xfer)(struct vz89x_data *data, u8 cmd);
xfer              229 drivers/iio/chemical/vz89x.c 	ret = data->xfer(data, chip->cmd);
xfer              366 drivers/iio/chemical/vz89x.c 		data->xfer = vz89x_i2c_xfer;
xfer              369 drivers/iio/chemical/vz89x.c 		data->xfer = vz89x_smbus_xfer;
xfer               52 drivers/iio/dac/ti-dac082s085.c 	struct spi_transfer xfer;
xfer              279 drivers/iio/dac/ti-dac082s085.c 	ti_dac->xfer.tx_buf = &ti_dac->buf;
xfer              280 drivers/iio/dac/ti-dac082s085.c 	ti_dac->xfer.len = sizeof(ti_dac->buf);
xfer              281 drivers/iio/dac/ti-dac082s085.c 	spi_message_init_with_transfers(&ti_dac->mesg, &ti_dac->xfer, 1);
xfer               49 drivers/iio/gyro/adis16130.c 	struct spi_transfer xfer = {
xfer               60 drivers/iio/gyro/adis16130.c 	ret = spi_sync_transfer(st->us, &xfer, 1);
xfer               33 drivers/iio/imu/adis_buffer.c 	adis->xfer = kcalloc(2, sizeof(*adis->xfer), GFP_KERNEL);
xfer               34 drivers/iio/imu/adis_buffer.c 	if (!adis->xfer)
xfer               39 drivers/iio/imu/adis_buffer.c 		kfree(adis->xfer);
xfer               40 drivers/iio/imu/adis_buffer.c 		adis->xfer = NULL;
xfer               48 drivers/iio/imu/adis_buffer.c 	adis->xfer[0].tx_buf = tx;
xfer               49 drivers/iio/imu/adis_buffer.c 	adis->xfer[0].bits_per_word = 8;
xfer               50 drivers/iio/imu/adis_buffer.c 	adis->xfer[0].len = 2;
xfer               51 drivers/iio/imu/adis_buffer.c 	adis->xfer[1].rx_buf = adis->buffer;
xfer               52 drivers/iio/imu/adis_buffer.c 	adis->xfer[1].bits_per_word = 8;
xfer               53 drivers/iio/imu/adis_buffer.c 	adis->xfer[1].len = burst_length;
xfer               56 drivers/iio/imu/adis_buffer.c 	spi_message_add_tail(&adis->xfer[0], &adis->msg);
xfer               57 drivers/iio/imu/adis_buffer.c 	spi_message_add_tail(&adis->xfer[1], &adis->msg);
xfer               71 drivers/iio/imu/adis_buffer.c 	kfree(adis->xfer);
xfer               79 drivers/iio/imu/adis_buffer.c 	adis->xfer = kcalloc(scan_count + 1, sizeof(*adis->xfer), GFP_KERNEL);
xfer               80 drivers/iio/imu/adis_buffer.c 	if (!adis->xfer)
xfer               85 drivers/iio/imu/adis_buffer.c 		kfree(adis->xfer);
xfer               86 drivers/iio/imu/adis_buffer.c 		adis->xfer = NULL;
xfer               96 drivers/iio/imu/adis_buffer.c 		adis->xfer[j].bits_per_word = 8;
xfer               98 drivers/iio/imu/adis_buffer.c 			adis->xfer[j].cs_change = 1;
xfer               99 drivers/iio/imu/adis_buffer.c 		adis->xfer[j].len = 2;
xfer              100 drivers/iio/imu/adis_buffer.c 		adis->xfer[j].delay_usecs = adis->data->read_delay;
xfer              102 drivers/iio/imu/adis_buffer.c 			adis->xfer[j].tx_buf = &tx[j];
xfer              104 drivers/iio/imu/adis_buffer.c 			adis->xfer[j].rx_buf = &rx[j - 1];
xfer              105 drivers/iio/imu/adis_buffer.c 		spi_message_add_tail(&adis->xfer[j], &adis->msg);
xfer              213 drivers/iio/imu/adis_buffer.c 	kfree(adis->xfer);
xfer               41 drivers/iio/pressure/mpl115_spi.c 	struct spi_transfer xfer = {
xfer               51 drivers/iio/pressure/mpl115_spi.c 	ret = spi_sync_transfer(spi, &xfer, 1);
xfer               62 drivers/iio/pressure/mpl115_spi.c 	struct spi_transfer xfer = {
xfer               70 drivers/iio/pressure/mpl115_spi.c 	return spi_sync_transfer(spi, &xfer, 1);
xfer               43 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c 	int (*xfer)(struct lidar_data *data, u8 reg, u8 *val, int len);
xfer              119 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c 	ret = data->xfer(data, reg, &val, 1);
xfer              139 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c 	int ret = data->xfer(data, LIDAR_REG_DATA_HBYTE |
xfer              260 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c 		data->xfer = lidar_i2c_xfer;
xfer              264 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c 		data->xfer = lidar_smbus_xfer;
xfer               35 drivers/input/misc/ad714x-spi.c 	struct spi_transfer xfer[2];
xfer               40 drivers/input/misc/ad714x-spi.c 	memset(xfer, 0, sizeof(xfer));
xfer               44 drivers/input/misc/ad714x-spi.c 	xfer[0].tx_buf = &chip->xfer_buf[0];
xfer               45 drivers/input/misc/ad714x-spi.c 	xfer[0].len = sizeof(chip->xfer_buf[0]);
xfer               46 drivers/input/misc/ad714x-spi.c 	spi_message_add_tail(&xfer[0], &message);
xfer               48 drivers/input/misc/ad714x-spi.c 	xfer[1].rx_buf = &chip->xfer_buf[1];
xfer               49 drivers/input/misc/ad714x-spi.c 	xfer[1].len = sizeof(chip->xfer_buf[1]) * len;
xfer               50 drivers/input/misc/ad714x-spi.c 	spi_message_add_tail(&xfer[1], &message);
xfer              120 drivers/input/rmi4/rmi_spi.c 	struct spi_transfer *xfer;
xfer              187 drivers/input/rmi4/rmi_spi.c 			xfer = &rmi_spi->tx_xfers[i];
xfer              188 drivers/input/rmi4/rmi_spi.c 			memset(xfer, 0,	sizeof(struct spi_transfer));
xfer              189 drivers/input/rmi4/rmi_spi.c 			xfer->tx_buf = &rmi_spi->tx_buf[i];
xfer              190 drivers/input/rmi4/rmi_spi.c 			xfer->len = 1;
xfer              191 drivers/input/rmi4/rmi_spi.c 			xfer->delay_usecs = spi_data->write_delay_us;
xfer              192 drivers/input/rmi4/rmi_spi.c 			spi_message_add_tail(xfer, &msg);
xfer              195 drivers/input/rmi4/rmi_spi.c 		xfer = rmi_spi->tx_xfers;
xfer              196 drivers/input/rmi4/rmi_spi.c 		memset(xfer, 0, sizeof(struct spi_transfer));
xfer              197 drivers/input/rmi4/rmi_spi.c 		xfer->tx_buf = rmi_spi->tx_buf;
xfer              198 drivers/input/rmi4/rmi_spi.c 		xfer->len = total_tx_len;
xfer              199 drivers/input/rmi4/rmi_spi.c 		spi_message_add_tail(xfer, &msg);
xfer              209 drivers/input/rmi4/rmi_spi.c 				xfer = &rmi_spi->rx_xfers[i];
xfer              210 drivers/input/rmi4/rmi_spi.c 				memset(xfer, 0, sizeof(struct spi_transfer));
xfer              211 drivers/input/rmi4/rmi_spi.c 				xfer->rx_buf = &rmi_spi->rx_buf[i];
xfer              212 drivers/input/rmi4/rmi_spi.c 				xfer->len = 1;
xfer              213 drivers/input/rmi4/rmi_spi.c 				xfer->delay_usecs = spi_data->read_delay_us;
xfer              214 drivers/input/rmi4/rmi_spi.c 				spi_message_add_tail(xfer, &msg);
xfer              217 drivers/input/rmi4/rmi_spi.c 			xfer = rmi_spi->rx_xfers;
xfer              218 drivers/input/rmi4/rmi_spi.c 			memset(xfer, 0, sizeof(struct spi_transfer));
xfer              219 drivers/input/rmi4/rmi_spi.c 			xfer->rx_buf = rmi_spi->rx_buf;
xfer              220 drivers/input/rmi4/rmi_spi.c 			xfer->len = rx_len;
xfer              221 drivers/input/rmi4/rmi_spi.c 			spi_message_add_tail(xfer, &msg);
xfer              147 drivers/input/touchscreen/ad7877.c 	struct spi_transfer	xfer[6];
xfer              177 drivers/input/touchscreen/ad7877.c 	struct spi_transfer	xfer[AD7877_NR_SENSE + 2];
xfer              212 drivers/input/touchscreen/ad7877.c 	req->xfer[0].tx_buf = &req->command;
xfer              213 drivers/input/touchscreen/ad7877.c 	req->xfer[0].len = 2;
xfer              214 drivers/input/touchscreen/ad7877.c 	req->xfer[0].cs_change = 1;
xfer              216 drivers/input/touchscreen/ad7877.c 	req->xfer[1].rx_buf = &req->sample;
xfer              217 drivers/input/touchscreen/ad7877.c 	req->xfer[1].len = 2;
xfer              219 drivers/input/touchscreen/ad7877.c 	spi_message_add_tail(&req->xfer[0], &req->msg);
xfer              220 drivers/input/touchscreen/ad7877.c 	spi_message_add_tail(&req->xfer[1], &req->msg);
xfer              242 drivers/input/touchscreen/ad7877.c 	req->xfer[0].tx_buf = &req->command;
xfer              243 drivers/input/touchscreen/ad7877.c 	req->xfer[0].len = 2;
xfer              245 drivers/input/touchscreen/ad7877.c 	spi_message_add_tail(&req->xfer[0], &req->msg);
xfer              278 drivers/input/touchscreen/ad7877.c 	req->xfer[0].tx_buf = &req->reset;
xfer              279 drivers/input/touchscreen/ad7877.c 	req->xfer[0].len = 2;
xfer              280 drivers/input/touchscreen/ad7877.c 	req->xfer[0].cs_change = 1;
xfer              282 drivers/input/touchscreen/ad7877.c 	req->xfer[1].tx_buf = &req->ref_on;
xfer              283 drivers/input/touchscreen/ad7877.c 	req->xfer[1].len = 2;
xfer              284 drivers/input/touchscreen/ad7877.c 	req->xfer[1].delay_usecs = ts->vref_delay_usecs;
xfer              285 drivers/input/touchscreen/ad7877.c 	req->xfer[1].cs_change = 1;
xfer              287 drivers/input/touchscreen/ad7877.c 	req->xfer[2].tx_buf = &req->command;
xfer              288 drivers/input/touchscreen/ad7877.c 	req->xfer[2].len = 2;
xfer              289 drivers/input/touchscreen/ad7877.c 	req->xfer[2].delay_usecs = ts->vref_delay_usecs;
xfer              290 drivers/input/touchscreen/ad7877.c 	req->xfer[2].cs_change = 1;
xfer              292 drivers/input/touchscreen/ad7877.c 	req->xfer[3].rx_buf = &req->sample;
xfer              293 drivers/input/touchscreen/ad7877.c 	req->xfer[3].len = 2;
xfer              294 drivers/input/touchscreen/ad7877.c 	req->xfer[3].cs_change = 1;
xfer              296 drivers/input/touchscreen/ad7877.c 	req->xfer[4].tx_buf = &ts->cmd_crtl2;	/*REF OFF*/
xfer              297 drivers/input/touchscreen/ad7877.c 	req->xfer[4].len = 2;
xfer              298 drivers/input/touchscreen/ad7877.c 	req->xfer[4].cs_change = 1;
xfer              300 drivers/input/touchscreen/ad7877.c 	req->xfer[5].tx_buf = &ts->cmd_crtl1;	/*DEFAULT*/
xfer              301 drivers/input/touchscreen/ad7877.c 	req->xfer[5].len = 2;
xfer              307 drivers/input/touchscreen/ad7877.c 		spi_message_add_tail(&req->xfer[i], &req->msg);
xfer              646 drivers/input/touchscreen/ad7877.c 	ts->xfer[0].tx_buf = &ts->cmd_crtl1;
xfer              647 drivers/input/touchscreen/ad7877.c 	ts->xfer[0].len = 2;
xfer              648 drivers/input/touchscreen/ad7877.c 	ts->xfer[0].cs_change = 1;
xfer              650 drivers/input/touchscreen/ad7877.c 	spi_message_add_tail(&ts->xfer[0], m);
xfer              652 drivers/input/touchscreen/ad7877.c 	ts->xfer[1].tx_buf = &ts->cmd_dummy; /* Send ZERO */
xfer              653 drivers/input/touchscreen/ad7877.c 	ts->xfer[1].len = 2;
xfer              654 drivers/input/touchscreen/ad7877.c 	ts->xfer[1].cs_change = 1;
xfer              656 drivers/input/touchscreen/ad7877.c 	spi_message_add_tail(&ts->xfer[1], m);
xfer              659 drivers/input/touchscreen/ad7877.c 		ts->xfer[i + 2].rx_buf = &ts->conversion_data[AD7877_SEQ_YPOS + i];
xfer              660 drivers/input/touchscreen/ad7877.c 		ts->xfer[i + 2].len = 2;
xfer              662 drivers/input/touchscreen/ad7877.c 			ts->xfer[i + 2].cs_change = 1;
xfer              663 drivers/input/touchscreen/ad7877.c 		spi_message_add_tail(&ts->xfer[i + 2], m);
xfer              116 drivers/input/touchscreen/ads7846.c 	struct spi_transfer	xfer[18];
xfer              151 drivers/input/touchscreen/ads7846.c #define	CS_CHANGE(xfer)	((xfer).cs_change = 1)
xfer              153 drivers/input/touchscreen/ads7846.c #define	CS_CHANGE(xfer)	((xfer).cs_change = 0)
xfer              293 drivers/input/touchscreen/ads7846.c 	struct spi_transfer	xfer[6];
xfer              304 drivers/input/touchscreen/ads7846.c 	struct spi_transfer	xfer[2];
xfer              328 drivers/input/touchscreen/ads7846.c 		req->xfer[0].tx_buf = &req->ref_on;
xfer              329 drivers/input/touchscreen/ads7846.c 		req->xfer[0].len = 1;
xfer              330 drivers/input/touchscreen/ads7846.c 		spi_message_add_tail(&req->xfer[0], &req->msg);
xfer              332 drivers/input/touchscreen/ads7846.c 		req->xfer[1].rx_buf = &req->scratch;
xfer              333 drivers/input/touchscreen/ads7846.c 		req->xfer[1].len = 2;
xfer              336 drivers/input/touchscreen/ads7846.c 		req->xfer[1].delay_usecs = ts->vref_delay_usecs;
xfer              337 drivers/input/touchscreen/ads7846.c 		spi_message_add_tail(&req->xfer[1], &req->msg);
xfer              348 drivers/input/touchscreen/ads7846.c 	req->xfer[2].tx_buf = &req->command;
xfer              349 drivers/input/touchscreen/ads7846.c 	req->xfer[2].len = 1;
xfer              350 drivers/input/touchscreen/ads7846.c 	spi_message_add_tail(&req->xfer[2], &req->msg);
xfer              352 drivers/input/touchscreen/ads7846.c 	req->xfer[3].rx_buf = &req->sample;
xfer              353 drivers/input/touchscreen/ads7846.c 	req->xfer[3].len = 2;
xfer              354 drivers/input/touchscreen/ads7846.c 	spi_message_add_tail(&req->xfer[3], &req->msg);
xfer              360 drivers/input/touchscreen/ads7846.c 	req->xfer[4].tx_buf = &req->ref_off;
xfer              361 drivers/input/touchscreen/ads7846.c 	req->xfer[4].len = 1;
xfer              362 drivers/input/touchscreen/ads7846.c 	spi_message_add_tail(&req->xfer[4], &req->msg);
xfer              364 drivers/input/touchscreen/ads7846.c 	req->xfer[5].rx_buf = &req->scratch;
xfer              365 drivers/input/touchscreen/ads7846.c 	req->xfer[5].len = 2;
xfer              366 drivers/input/touchscreen/ads7846.c 	CS_CHANGE(req->xfer[5]);
xfer              367 drivers/input/touchscreen/ads7846.c 	spi_message_add_tail(&req->xfer[5], &req->msg);
xfer              400 drivers/input/touchscreen/ads7846.c 	req->xfer[0].tx_buf = req->command;
xfer              401 drivers/input/touchscreen/ads7846.c 	req->xfer[0].rx_buf = req->sample;
xfer              402 drivers/input/touchscreen/ads7846.c 	req->xfer[0].len = 3;
xfer              403 drivers/input/touchscreen/ads7846.c 	spi_message_add_tail(&req->xfer[0], &req->msg);
xfer              976 drivers/input/touchscreen/ads7846.c 	struct spi_transfer *x = ts->xfer;
xfer              626 drivers/input/touchscreen/atmel_mxt_ts.c 	struct i2c_msg xfer[2];
xfer              634 drivers/input/touchscreen/atmel_mxt_ts.c 	xfer[0].addr = client->addr;
xfer              635 drivers/input/touchscreen/atmel_mxt_ts.c 	xfer[0].flags = 0;
xfer              636 drivers/input/touchscreen/atmel_mxt_ts.c 	xfer[0].len = 2;
xfer              637 drivers/input/touchscreen/atmel_mxt_ts.c 	xfer[0].buf = buf;
xfer              640 drivers/input/touchscreen/atmel_mxt_ts.c 	xfer[1].addr = client->addr;
xfer              641 drivers/input/touchscreen/atmel_mxt_ts.c 	xfer[1].flags = I2C_M_RD;
xfer              642 drivers/input/touchscreen/atmel_mxt_ts.c 	xfer[1].len = len;
xfer              643 drivers/input/touchscreen/atmel_mxt_ts.c 	xfer[1].buf = val;
xfer              645 drivers/input/touchscreen/atmel_mxt_ts.c 	ret = i2c_transfer(client->adapter, xfer, 2);
xfer               41 drivers/input/touchscreen/cyttsp4_spi.c 	struct spi_transfer xfer[2];
xfer               63 drivers/input/touchscreen/cyttsp4_spi.c 	memset(xfer, 0, sizeof(xfer));
xfer               70 drivers/input/touchscreen/cyttsp4_spi.c 	xfer[0].tx_buf = wr_buf;
xfer               71 drivers/input/touchscreen/cyttsp4_spi.c 	xfer[0].rx_buf = rd_buf;
xfer               74 drivers/input/touchscreen/cyttsp4_spi.c 		xfer[0].len = length + CY_SPI_CMD_BYTES;
xfer               75 drivers/input/touchscreen/cyttsp4_spi.c 		spi_message_add_tail(&xfer[0], &msg);
xfer               79 drivers/input/touchscreen/cyttsp4_spi.c 		xfer[0].len = CY_SPI_RD_HEADER_BYTES;
xfer               80 drivers/input/touchscreen/cyttsp4_spi.c 		spi_message_add_tail(&xfer[0], &msg);
xfer               82 drivers/input/touchscreen/cyttsp4_spi.c 		xfer[1].rx_buf = buf;
xfer               83 drivers/input/touchscreen/cyttsp4_spi.c 		xfer[1].len = length;
xfer               84 drivers/input/touchscreen/cyttsp4_spi.c 		spi_message_add_tail(&xfer[1], &msg);
xfer               95 drivers/input/touchscreen/cyttsp4_spi.c 			__func__, retval, xfer[1].len, op);
xfer               38 drivers/input/touchscreen/cyttsp_spi.c 	struct spi_transfer xfer[2];
xfer               60 drivers/input/touchscreen/cyttsp_spi.c 	memset(xfer, 0, sizeof(xfer));
xfer               67 drivers/input/touchscreen/cyttsp_spi.c 	xfer[0].tx_buf = wr_buf;
xfer               68 drivers/input/touchscreen/cyttsp_spi.c 	xfer[0].rx_buf = rd_buf;
xfer               71 drivers/input/touchscreen/cyttsp_spi.c 		xfer[0].len = length + CY_SPI_CMD_BYTES;
xfer               72 drivers/input/touchscreen/cyttsp_spi.c 		spi_message_add_tail(&xfer[0], &msg);
xfer               76 drivers/input/touchscreen/cyttsp_spi.c 		xfer[0].len = CY_SPI_CMD_BYTES;
xfer               77 drivers/input/touchscreen/cyttsp_spi.c 		spi_message_add_tail(&xfer[0], &msg);
xfer               79 drivers/input/touchscreen/cyttsp_spi.c 		xfer[1].rx_buf = buf;
xfer               80 drivers/input/touchscreen/cyttsp_spi.c 		xfer[1].len = length;
xfer               81 drivers/input/touchscreen/cyttsp_spi.c 		spi_message_add_tail(&xfer[1], &msg);
xfer               92 drivers/input/touchscreen/cyttsp_spi.c 			__func__, retval, xfer[1].len, op);
xfer               87 drivers/input/touchscreen/mms114.c 	struct i2c_msg xfer[2];
xfer               95 drivers/input/touchscreen/mms114.c 	xfer[0].addr = client->addr;
xfer               96 drivers/input/touchscreen/mms114.c 	xfer[0].flags = client->flags & I2C_M_TEN;
xfer               97 drivers/input/touchscreen/mms114.c 	xfer[0].len = 1;
xfer               98 drivers/input/touchscreen/mms114.c 	xfer[0].buf = &buf;
xfer              101 drivers/input/touchscreen/mms114.c 	xfer[1].addr = client->addr;
xfer              102 drivers/input/touchscreen/mms114.c 	xfer[1].flags = (client->flags & I2C_M_TEN) | I2C_M_RD;
xfer              103 drivers/input/touchscreen/mms114.c 	xfer[1].len = len;
xfer              104 drivers/input/touchscreen/mms114.c 	xfer[1].buf = val;
xfer              106 drivers/input/touchscreen/mms114.c 	error = i2c_transfer(client->adapter, xfer, 2);
xfer              176 drivers/input/touchscreen/raydium_i2c_ts.c 	struct i2c_msg xfer[] = {
xfer              191 drivers/input/touchscreen/raydium_i2c_ts.c 	ret = i2c_transfer(client->adapter, xfer, ARRAY_SIZE(xfer));
xfer              192 drivers/input/touchscreen/raydium_i2c_ts.c 	if (unlikely(ret != ARRAY_SIZE(xfer)))
xfer               27 drivers/input/touchscreen/tsc2005.c 	struct spi_transfer xfer = {
xfer               37 drivers/input/touchscreen/tsc2005.c 	spi_message_add_tail(&xfer, &msg);
xfer               38 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 	struct spi_transfer xfer = {
xfer               43 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 		xfer.tx_buf = addr;
xfer               45 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 		xfer.rx_buf = addr;
xfer               53 drivers/media/i2c/s5c73m3/s5c73m3-spi.c 	spi_message_add_tail(&xfer, &msg);
xfer              113 drivers/media/i2c/video-i2c.c 	int (*xfer)(struct video_i2c_data *data, char *buf);
xfer              369 drivers/media/i2c/video-i2c.c 		.xfer		= &amg88xx_xfer,
xfer              383 drivers/media/i2c/video-i2c.c 		.xfer		= mlx90640_xfer,
xfer              473 drivers/media/i2c/video-i2c.c 			ret = data->chip->xfer(data, vbuf);
xfer              365 drivers/media/pci/ttpci/av7110.c 	unsigned int xfer = 0;
xfer              384 drivers/media/pci/ttpci/av7110.c 		xfer = RX_BUFF;
xfer              392 drivers/media/pci/ttpci/av7110.c 		xfer = RX_BUFF;
xfer              403 drivers/media/pci/ttpci/av7110.c 		xfer = RX_BUFF;
xfer              421 drivers/media/pci/ttpci/av7110.c 		xfer = RX_BUFF;
xfer              427 drivers/media/pci/ttpci/av7110.c 		xfer = RX_BUFF;
xfer              433 drivers/media/pci/ttpci/av7110.c 		xfer = RX_BUFF;
xfer              438 drivers/media/pci/ttpci/av7110.c 		xfer = TX_BUFF;
xfer              442 drivers/media/pci/ttpci/av7110.c 		xfer = TX_BUFF;
xfer              446 drivers/media/pci/ttpci/av7110.c 		xfer = TX_BUFF;
xfer              453 drivers/media/pci/ttpci/av7110.c 	if (xfer)
xfer              454 drivers/media/pci/ttpci/av7110.c 		iwdebi(av7110, DEBINOSWAP, xfer, 0, 2);
xfer               41 drivers/media/rc/ir-spi.c 	struct spi_transfer xfer;
xfer               64 drivers/media/rc/ir-spi.c 	memset(&xfer, 0, sizeof(xfer));
xfer               66 drivers/media/rc/ir-spi.c 	xfer.speed_hz = idata->freq * 16;
xfer               67 drivers/media/rc/ir-spi.c 	xfer.len = len * sizeof(*idata->tx_buf);
xfer               68 drivers/media/rc/ir-spi.c 	xfer.tx_buf = idata->tx_buf;
xfer               74 drivers/media/rc/ir-spi.c 	ret = spi_sync_transfer(idata->spi, &xfer, 1);
xfer              511 drivers/media/usb/gspca/gspca.c 					  int xfer, int xfer_ep)
xfer              519 drivers/media/usb/gspca/gspca.c 		if (attr == xfer
xfer              760 drivers/media/usb/gspca/gspca.c 	int n, ret, xfer, alt, alt_idx;
xfer              777 drivers/media/usb/gspca/gspca.c 	xfer = gspca_dev->cam.bulk ? USB_ENDPOINT_XFER_BULK
xfer              783 drivers/media/usb/gspca/gspca.c 		ep = alt_xfer(&intf->altsetting[gspca_dev->alt], xfer,
xfer              826 drivers/media/usb/gspca/gspca.c 				alt_xfer(&intf->altsetting[alt], xfer,
xfer               26 drivers/mfd/da9150-core.c 	struct i2c_msg xfer;
xfer               35 drivers/mfd/da9150-core.c 	xfer.addr = client->addr;
xfer               36 drivers/mfd/da9150-core.c 	xfer.flags = 0;
xfer               37 drivers/mfd/da9150-core.c 	xfer.len = 1;
xfer               38 drivers/mfd/da9150-core.c 	xfer.buf = &addr;
xfer               40 drivers/mfd/da9150-core.c 	ret = i2c_transfer(client->adapter, &xfer, 1);
xfer               49 drivers/mfd/da9150-core.c 	xfer.addr = client->addr;
xfer               50 drivers/mfd/da9150-core.c 	xfer.flags = I2C_M_RD;
xfer               51 drivers/mfd/da9150-core.c 	xfer.len = count;
xfer               52 drivers/mfd/da9150-core.c 	xfer.buf = buf;
xfer               54 drivers/mfd/da9150-core.c 	ret = i2c_transfer(client->adapter, &xfer, 1);
xfer               66 drivers/mfd/da9150-core.c 	struct i2c_msg xfer;
xfer               78 drivers/mfd/da9150-core.c 	xfer.addr = client->addr;
xfer               79 drivers/mfd/da9150-core.c 	xfer.flags = 0;
xfer               80 drivers/mfd/da9150-core.c 	xfer.len = 1 + count;
xfer               81 drivers/mfd/da9150-core.c 	xfer.buf = reg_data;
xfer               83 drivers/mfd/da9150-core.c 	ret = i2c_transfer(client->adapter, &xfer, 1);
xfer               41 drivers/mfd/tps6507x.c 	struct i2c_msg xfer[2];
xfer               45 drivers/mfd/tps6507x.c 	xfer[0].addr = i2c->addr;
xfer               46 drivers/mfd/tps6507x.c 	xfer[0].flags = 0;
xfer               47 drivers/mfd/tps6507x.c 	xfer[0].len = 1;
xfer               48 drivers/mfd/tps6507x.c 	xfer[0].buf = &reg;
xfer               51 drivers/mfd/tps6507x.c 	xfer[1].addr = i2c->addr;
xfer               52 drivers/mfd/tps6507x.c 	xfer[1].flags = I2C_M_RD;
xfer               53 drivers/mfd/tps6507x.c 	xfer[1].len = bytes;
xfer               54 drivers/mfd/tps6507x.c 	xfer[1].buf = dest;
xfer               56 drivers/mfd/tps6507x.c 	ret = i2c_transfer(i2c->adapter, xfer, 2);
xfer              141 drivers/mmc/host/mvsdio.c 	u32 cmdreg = 0, xfer = 0, intr = 0;
xfer              178 drivers/mmc/host/mvsdio.c 		xfer |= MVSD_XFER_MODE_HW_WR_DATA_EN;
xfer              180 drivers/mmc/host/mvsdio.c 			xfer |= MVSD_XFER_MODE_TO_HOST;
xfer              184 drivers/mmc/host/mvsdio.c 			xfer |= MVSD_XFER_MODE_PIO;
xfer              208 drivers/mmc/host/mvsdio.c 			xfer |= MVSD_XFER_MODE_AUTO_CMD12;
xfer              223 drivers/mmc/host/mvsdio.c 	host->xfer_mode |= xfer;
xfer              332 drivers/mtd/ftl.c     struct xfer_info_t *xfer;
xfer              335 drivers/mtd/ftl.c     xfer = &part->XferInfo[xfernum];
xfer              336 drivers/mtd/ftl.c     pr_debug("ftl_cs: erasing xfer unit at 0x%x\n", xfer->Offset);
xfer              337 drivers/mtd/ftl.c     xfer->state = XFER_ERASING;
xfer              346 drivers/mtd/ftl.c     erase->addr = xfer->Offset;
xfer              351 drivers/mtd/ftl.c 	xfer->state = XFER_ERASED;
xfer              352 drivers/mtd/ftl.c 	xfer->EraseCount++;
xfer              354 drivers/mtd/ftl.c 	xfer->state = XFER_FAILED;
xfer              373 drivers/mtd/ftl.c     struct xfer_info_t *xfer;
xfer              379 drivers/mtd/ftl.c     xfer = &part->XferInfo[i];
xfer              380 drivers/mtd/ftl.c     xfer->state = XFER_FAILED;
xfer              382 drivers/mtd/ftl.c     pr_debug("ftl_cs: preparing xfer unit at 0x%x\n", xfer->Offset);
xfer              387 drivers/mtd/ftl.c     header.EraseCount = cpu_to_le32(xfer->EraseCount);
xfer              389 drivers/mtd/ftl.c     ret = mtd_write(part->mbd.mtd, xfer->Offset, sizeof(header), &retlen,
xfer              400 drivers/mtd/ftl.c     offset = xfer->Offset + le32_to_cpu(part->header.BAMOffset);
xfer              411 drivers/mtd/ftl.c     xfer->state = XFER_PREPARED;
xfer              433 drivers/mtd/ftl.c     struct xfer_info_t *xfer;
xfer              442 drivers/mtd/ftl.c     xfer = &part->XferInfo[xferunit];
xfer              444 drivers/mtd/ftl.c 	  eun->Offset, xfer->Offset);
xfer              466 drivers/mtd/ftl.c     xfer->state = XFER_UNKNOWN;
xfer              467 drivers/mtd/ftl.c     offset = xfer->Offset + 20; /* Bad! */
xfer              479 drivers/mtd/ftl.c     src = eun->Offset; dest = xfer->Offset;
xfer              518 drivers/mtd/ftl.c                     xfer->Offset + le32_to_cpu(part->header.BAMOffset),
xfer              529 drivers/mtd/ftl.c     ret = mtd_write(part->mbd.mtd, xfer->Offset + 20, sizeof(uint16_t),
xfer              539 drivers/mtd/ftl.c     swap(xfer->EraseCount, eun->EraseCount);
xfer              540 drivers/mtd/ftl.c     swap(xfer->Offset, eun->Offset);
xfer              570 drivers/mtd/ftl.c     uint16_t i, eun, xfer;
xfer              577 drivers/mtd/ftl.c     best = 0xffffffff; xfer = 0xffff;
xfer              602 drivers/mtd/ftl.c 		    xfer = i;
xfer              609 drivers/mtd/ftl.c 	if (xfer == 0xffff) {
xfer              626 drivers/mtd/ftl.c     } while (xfer == 0xffff);
xfer              656 drivers/mtd/ftl.c     ret = copy_erase_unit(part, eun, xfer);
xfer              658 drivers/mtd/ftl.c 	erase_xfer(part, xfer);
xfer              224 drivers/net/caif/caif_spi.c 			   cfspi->xfer.va_tx[0],
xfer              231 drivers/net/caif/caif_spi.c 			   cfspi->xfer.va_rx,
xfer              615 drivers/net/caif/caif_spi.c 	cfspi->xfer.va_tx[0] = dma_alloc(cfspi, &cfspi->xfer.pa_tx[0]);
xfer              616 drivers/net/caif/caif_spi.c 	if (!cfspi->xfer.va_tx[0]) {
xfer              621 drivers/net/caif/caif_spi.c 	cfspi->xfer.va_rx = dma_alloc(cfspi, &cfspi->xfer.pa_rx);
xfer              623 drivers/net/caif/caif_spi.c 	if (!cfspi->xfer.va_rx) {
xfer              670 drivers/net/caif/caif_spi.c 	dma_free(cfspi, cfspi->xfer.va_rx, cfspi->xfer.pa_rx);
xfer              672 drivers/net/caif/caif_spi.c 	dma_free(cfspi, cfspi->xfer.va_tx[0], cfspi->xfer.pa_tx[0]);
xfer              688 drivers/net/caif/caif_spi.c 	dma_free(cfspi, cfspi->xfer.va_rx, cfspi->xfer.pa_rx);
xfer              689 drivers/net/caif/caif_spi.c 	dma_free(cfspi, cfspi->xfer.va_tx[0], cfspi->xfer.pa_tx[0]);
xfer               86 drivers/net/caif/caif_spi_slave.c 		memset(cfspi->xfer.va_tx, 0xFF, SPI_DMA_BUF_LEN);
xfer               87 drivers/net/caif/caif_spi_slave.c 		memset(cfspi->xfer.va_rx, 0xFF, SPI_DMA_BUF_LEN);
xfer               99 drivers/net/caif/caif_spi_slave.c 			ptr = (u8 *) cfspi->xfer.va_tx;
xfer              116 drivers/net/caif/caif_spi_slave.c 		ptr = (u8 *) cfspi->xfer.va_tx;
xfer              123 drivers/net/caif/caif_spi_slave.c 		cfspi->xfer.tx_dma_len = cfspi->tx_cpck_len + SPI_IND_SZ;
xfer              124 drivers/net/caif/caif_spi_slave.c 		cfspi->xfer.rx_dma_len = cfspi->rx_cpck_len + SPI_CMD_SZ;
xfer              128 drivers/net/caif/caif_spi_slave.c 			(cfspi->xfer.tx_dma_len % spi_frm_align)) {
xfer              130 drivers/net/caif/caif_spi_slave.c 			cfspi->xfer.tx_dma_len += spi_frm_align -
xfer              131 drivers/net/caif/caif_spi_slave.c 			    (cfspi->xfer.tx_dma_len % spi_frm_align);
xfer              136 drivers/net/caif/caif_spi_slave.c 			(cfspi->xfer.rx_dma_len % spi_frm_align)) {
xfer              138 drivers/net/caif/caif_spi_slave.c 			cfspi->xfer.rx_dma_len += spi_frm_align -
xfer              139 drivers/net/caif/caif_spi_slave.c 			    (cfspi->xfer.rx_dma_len % spi_frm_align);
xfer              145 drivers/net/caif/caif_spi_slave.c 		ret = cfspi->dev->init_xfer(&cfspi->xfer, cfspi->dev);
xfer              179 drivers/net/caif/caif_spi_slave.c 		if (SPI_XFER_TIME_USEC(cfspi->xfer.tx_dma_len,
xfer              185 drivers/net/caif/caif_spi_slave.c 				(cfspi->xfer.tx_dma_len, cfspi->dev->clk_mhz));
xfer              200 drivers/net/caif/caif_spi_slave.c 			ptr = ((u8 *)(cfspi->xfer.va_rx + SPI_DATA_POS));
xfer              207 drivers/net/caif/caif_spi_slave.c 		ptr = (u8 *) cfspi->xfer.va_rx;
xfer              171 drivers/net/ethernet/micrel/ks8851.c 	struct spi_transfer *xfer = &ks->spi_xfer1;
xfer              179 drivers/net/ethernet/micrel/ks8851.c 	xfer->tx_buf = txb;
xfer              180 drivers/net/ethernet/micrel/ks8851.c 	xfer->rx_buf = NULL;
xfer              181 drivers/net/ethernet/micrel/ks8851.c 	xfer->len = 4;
xfer              198 drivers/net/ethernet/micrel/ks8851.c 	struct spi_transfer *xfer = &ks->spi_xfer1;
xfer              209 drivers/net/ethernet/micrel/ks8851.c 	xfer->tx_buf = txb;
xfer              210 drivers/net/ethernet/micrel/ks8851.c 	xfer->rx_buf = NULL;
xfer              211 drivers/net/ethernet/micrel/ks8851.c 	xfer->len = 3;
xfer              231 drivers/net/ethernet/micrel/ks8851.c 	struct spi_transfer *xfer;
xfer              241 drivers/net/ethernet/micrel/ks8851.c 		xfer = ks->spi_xfer2;
xfer              243 drivers/net/ethernet/micrel/ks8851.c 		xfer->tx_buf = txb;
xfer              244 drivers/net/ethernet/micrel/ks8851.c 		xfer->rx_buf = NULL;
xfer              245 drivers/net/ethernet/micrel/ks8851.c 		xfer->len = 2;
xfer              247 drivers/net/ethernet/micrel/ks8851.c 		xfer++;
xfer              248 drivers/net/ethernet/micrel/ks8851.c 		xfer->tx_buf = NULL;
xfer              249 drivers/net/ethernet/micrel/ks8851.c 		xfer->rx_buf = trx;
xfer              250 drivers/net/ethernet/micrel/ks8851.c 		xfer->len = rxl;
xfer              253 drivers/net/ethernet/micrel/ks8851.c 		xfer = &ks->spi_xfer1;
xfer              255 drivers/net/ethernet/micrel/ks8851.c 		xfer->tx_buf = txb;
xfer              256 drivers/net/ethernet/micrel/ks8851.c 		xfer->rx_buf = trx;
xfer              257 drivers/net/ethernet/micrel/ks8851.c 		xfer->len = rxl + 2;
xfer              455 drivers/net/ethernet/micrel/ks8851.c 	struct spi_transfer *xfer = ks->spi_xfer2;
xfer              466 drivers/net/ethernet/micrel/ks8851.c 	xfer->tx_buf = txb;
xfer              467 drivers/net/ethernet/micrel/ks8851.c 	xfer->rx_buf = NULL;
xfer              468 drivers/net/ethernet/micrel/ks8851.c 	xfer->len = 1;
xfer              470 drivers/net/ethernet/micrel/ks8851.c 	xfer++;
xfer              471 drivers/net/ethernet/micrel/ks8851.c 	xfer->rx_buf = buff;
xfer              472 drivers/net/ethernet/micrel/ks8851.c 	xfer->tx_buf = NULL;
xfer              473 drivers/net/ethernet/micrel/ks8851.c 	xfer->len = len;
xfer              701 drivers/net/ethernet/micrel/ks8851.c 	struct spi_transfer *xfer = ks->spi_xfer2;
xfer              720 drivers/net/ethernet/micrel/ks8851.c 	xfer->tx_buf = &ks->txh.txb[1];
xfer              721 drivers/net/ethernet/micrel/ks8851.c 	xfer->rx_buf = NULL;
xfer              722 drivers/net/ethernet/micrel/ks8851.c 	xfer->len = 5;
xfer              724 drivers/net/ethernet/micrel/ks8851.c 	xfer++;
xfer              725 drivers/net/ethernet/micrel/ks8851.c 	xfer->tx_buf = txp->data;
xfer              726 drivers/net/ethernet/micrel/ks8851.c 	xfer->rx_buf = NULL;
xfer              727 drivers/net/ethernet/micrel/ks8851.c 	xfer->len = ALIGN(txp->len, 4);
xfer               80 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	   u8 mode, u8 xfer, u8 areg, u8 breg, u8 size, enum cmd_ctx_swap ctx,
xfer               89 drivers/net/ethernet/netronome/nfp/bpf/jit.c 		FIELD_PREP(OP_CMD_XFER, xfer) |
xfer              100 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_cmd_any(struct nfp_prog *nfp_prog, enum cmd_tgt_map op, u8 mode, u8 xfer,
xfer              122 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	__emit_cmd(nfp_prog, op, mode, xfer, reg.areg, reg.breg, size, ctx,
xfer              127 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_cmd(struct nfp_prog *nfp_prog, enum cmd_tgt_map op, u8 mode, u8 xfer,
xfer              130 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	emit_cmd_any(nfp_prog, op, mode, xfer, lreg, rreg, size, ctx, false);
xfer              134 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_cmd_indir(struct nfp_prog *nfp_prog, enum cmd_tgt_map op, u8 mode, u8 xfer,
xfer              137 drivers/net/ethernet/netronome/nfp/bpf/jit.c 	emit_cmd_any(nfp_prog, op, mode, xfer, lreg, rreg, size, ctx, true);
xfer              188 drivers/net/ethernet/wiznet/w5100-spi.c 	struct spi_transfer xfer[] = {
xfer              206 drivers/net/ethernet/wiznet/w5100-spi.c 	ret = spi_sync_transfer(spi, xfer, ARRAY_SIZE(xfer));
xfer              218 drivers/net/ethernet/wiznet/w5100-spi.c 	struct spi_transfer xfer[] = {
xfer              236 drivers/net/ethernet/wiznet/w5100-spi.c 	ret = spi_sync_transfer(spi, xfer, ARRAY_SIZE(xfer));
xfer              348 drivers/net/ethernet/wiznet/w5100-spi.c 	struct spi_transfer xfer[] = {
xfer              365 drivers/net/ethernet/wiznet/w5100-spi.c 	ret = spi_sync_transfer(spi, xfer, ARRAY_SIZE(xfer));
xfer              377 drivers/net/ethernet/wiznet/w5100-spi.c 	struct spi_transfer xfer[] = {
xfer              394 drivers/net/ethernet/wiznet/w5100-spi.c 	ret = spi_sync_transfer(spi, xfer, ARRAY_SIZE(xfer));
xfer              436 drivers/net/ieee802154/adf7242.c 	struct spi_transfer xfer = {
xfer              451 drivers/net/ieee802154/adf7242.c 	spi_message_add_tail(&xfer, &msg);
xfer              223 drivers/net/ieee802154/cc2520.c 	struct spi_transfer xfer = {
xfer              230 drivers/net/ieee802154/cc2520.c 	spi_message_add_tail(&xfer, &msg);
xfer              233 drivers/net/ieee802154/cc2520.c 	priv->buf[xfer.len++] = cmd;
xfer              253 drivers/net/ieee802154/cc2520.c 	struct spi_transfer xfer = {
xfer              260 drivers/net/ieee802154/cc2520.c 	spi_message_add_tail(&xfer, &msg);
xfer              263 drivers/net/ieee802154/cc2520.c 	priv->buf[xfer.len++] = CC2520_CMD_SNOP;
xfer              282 drivers/net/ieee802154/cc2520.c 	struct spi_transfer xfer = {
xfer              289 drivers/net/ieee802154/cc2520.c 	spi_message_add_tail(&xfer, &msg);
xfer              294 drivers/net/ieee802154/cc2520.c 		priv->buf[xfer.len++] = CC2520_CMD_REGISTER_WRITE | reg;
xfer              295 drivers/net/ieee802154/cc2520.c 		priv->buf[xfer.len++] = value;
xfer              297 drivers/net/ieee802154/cc2520.c 		priv->buf[xfer.len++] = CC2520_CMD_MEMORY_WRITE;
xfer              298 drivers/net/ieee802154/cc2520.c 		priv->buf[xfer.len++] = reg;
xfer              299 drivers/net/ieee802154/cc2520.c 		priv->buf[xfer.len++] = value;
xfer              110 drivers/net/wireless/ath/ath10k/pci.c 			       struct bmi_xfer *xfer);
xfer             2109 drivers/net/wireless/ath/ath10k/pci.c 	struct bmi_xfer xfer = {};
xfer             2147 drivers/net/wireless/ath/ath10k/pci.c 		xfer.wait_for_resp = true;
xfer             2148 drivers/net/wireless/ath/ath10k/pci.c 		xfer.resp_len = 0;
xfer             2150 drivers/net/wireless/ath/ath10k/pci.c 		ath10k_ce_rx_post_buf(ce_rx, &xfer, resp_paddr);
xfer             2153 drivers/net/wireless/ath/ath10k/pci.c 	ret = ath10k_ce_send(ce_tx, &xfer, req_paddr, req_len, -1, 0);
xfer             2157 drivers/net/wireless/ath/ath10k/pci.c 	ret = ath10k_pci_bmi_wait(ar, ce_tx, ce_rx, &xfer);
xfer             2182 drivers/net/wireless/ath/ath10k/pci.c 		*resp_len = min(*resp_len, xfer.resp_len);
xfer             2183 drivers/net/wireless/ath/ath10k/pci.c 		memcpy(resp, tresp, xfer.resp_len);
xfer             2194 drivers/net/wireless/ath/ath10k/pci.c 	struct bmi_xfer *xfer;
xfer             2196 drivers/net/wireless/ath/ath10k/pci.c 	if (ath10k_ce_completed_send_next(ce_state, (void **)&xfer))
xfer             2199 drivers/net/wireless/ath/ath10k/pci.c 	xfer->tx_done = true;
xfer             2205 drivers/net/wireless/ath/ath10k/pci.c 	struct bmi_xfer *xfer;
xfer             2208 drivers/net/wireless/ath/ath10k/pci.c 	if (ath10k_ce_completed_recv_next(ce_state, (void **)&xfer,
xfer             2212 drivers/net/wireless/ath/ath10k/pci.c 	if (WARN_ON_ONCE(!xfer))
xfer             2215 drivers/net/wireless/ath/ath10k/pci.c 	if (!xfer->wait_for_resp) {
xfer             2220 drivers/net/wireless/ath/ath10k/pci.c 	xfer->resp_len = nbytes;
xfer             2221 drivers/net/wireless/ath/ath10k/pci.c 	xfer->rx_done = true;
xfer             2227 drivers/net/wireless/ath/ath10k/pci.c 			       struct bmi_xfer *xfer)
xfer             2238 drivers/net/wireless/ath/ath10k/pci.c 		if (xfer->tx_done && (xfer->rx_done == xfer->wait_for_resp)) {
xfer              224 drivers/platform/olpc/olpc-xo175-ec.c 	struct spi_transfer xfer;
xfer              281 drivers/platform/olpc/olpc-xo175-ec.c 	priv->xfer.len = cmdlen;
xfer              283 drivers/platform/olpc/olpc-xo175-ec.c 	spi_message_init_with_transfers(&priv->msg, &priv->xfer, 1);
xfer              708 drivers/platform/olpc/olpc-xo175-ec.c 	priv->xfer.rx_buf = &priv->rx_buf;
xfer              709 drivers/platform/olpc/olpc-xo175-ec.c 	priv->xfer.tx_buf = &priv->tx_buf;
xfer              694 drivers/rapidio/devices/rio_mport_cdev.c 			  struct rio_transfer_io *xfer,
xfer              719 drivers/rapidio/devices/rio_mport_cdev.c 	tx = prep_dma_xfer(chan, xfer, sgt, nents, dir,
xfer              725 drivers/rapidio/devices/rio_mport_cdev.c 			xfer->rio_addr, xfer->length);
xfer              732 drivers/rapidio/devices/rio_mport_cdev.c 			xfer->rio_addr, xfer->length);
xfer              750 drivers/rapidio/devices/rio_mport_cdev.c 			   cookie, xfer->rio_addr, xfer->length);
xfer              810 drivers/rapidio/devices/rio_mport_cdev.c 		 struct rio_transfer_io *xfer)
xfer              821 drivers/rapidio/devices/rio_mport_cdev.c 	if (xfer->length == 0)
xfer              851 drivers/rapidio/devices/rio_mport_cdev.c 	if (xfer->loc_addr) {
xfer              855 drivers/rapidio/devices/rio_mport_cdev.c 		offset = lower_32_bits(offset_in_page(xfer->loc_addr));
xfer              856 drivers/rapidio/devices/rio_mport_cdev.c 		nr_pages = PAGE_ALIGN(xfer->length + offset) >> PAGE_SHIFT;
xfer              866 drivers/rapidio/devices/rio_mport_cdev.c 				(unsigned long)xfer->loc_addr & PAGE_MASK,
xfer              889 drivers/rapidio/devices/rio_mport_cdev.c 					offset, xfer->length, GFP_KERNEL);
xfer              901 drivers/rapidio/devices/rio_mport_cdev.c 		baddr = (dma_addr_t)xfer->handle;
xfer              919 drivers/rapidio/devices/rio_mport_cdev.c 		if (xfer->length + xfer->offset > map->size) {
xfer              932 drivers/rapidio/devices/rio_mport_cdev.c 				xfer->offset, xfer->length);
xfer              943 drivers/rapidio/devices/rio_mport_cdev.c 	ret = do_dma_request(req, xfer, sync, nents);
xfer               84 drivers/rtc/rtc-ds1672.c 	int xfer;
xfer               95 drivers/rtc/rtc-ds1672.c 	xfer = i2c_master_send(client, buf, 6);
xfer               96 drivers/rtc/rtc-ds1672.c 	if (xfer != 6) {
xfer               97 drivers/rtc/rtc-ds1672.c 		dev_err(&client->dev, "%s: send: %d\n", __func__, xfer);
xfer              175 drivers/rtc/rtc-x1205.c 	int i, xfer;
xfer              214 drivers/rtc/rtc-x1205.c 	xfer = i2c_master_send(client, wel, 3);
xfer              215 drivers/rtc/rtc-x1205.c 	if (xfer != 3) {
xfer              216 drivers/rtc/rtc-x1205.c 		dev_err(&client->dev, "%s: wel - %d\n", __func__, xfer);
xfer              220 drivers/rtc/rtc-x1205.c 	xfer = i2c_master_send(client, rwel, 3);
xfer              221 drivers/rtc/rtc-x1205.c 	if (xfer != 3) {
xfer              222 drivers/rtc/rtc-x1205.c 		dev_err(&client->dev, "%s: rwel - %d\n", __func__, xfer);
xfer              226 drivers/rtc/rtc-x1205.c 	xfer = i2c_master_send(client, rdata, sizeof(rdata));
xfer              227 drivers/rtc/rtc-x1205.c 	if (xfer != sizeof(rdata)) {
xfer              231 drivers/rtc/rtc-x1205.c 			 xfer, rdata[1], rdata[2]);
xfer              244 drivers/rtc/rtc-x1205.c 		xfer = i2c_master_send(client, rwel, 3);
xfer              245 drivers/rtc/rtc-x1205.c 		if (xfer != 3) {
xfer              249 drivers/rtc/rtc-x1205.c 				xfer);
xfer              256 drivers/rtc/rtc-x1205.c 		xfer = i2c_master_send(client, al0e, 3);
xfer              257 drivers/rtc/rtc-x1205.c 		if (xfer != 3) {
xfer              261 drivers/rtc/rtc-x1205.c 				xfer);
xfer              270 drivers/rtc/rtc-x1205.c 	xfer = i2c_master_send(client, diswe, 3);
xfer              271 drivers/rtc/rtc-x1205.c 	if (xfer != 3) {
xfer              272 drivers/rtc/rtc-x1205.c 		dev_err(&client->dev, "%s: diswe - %d\n", __func__, xfer);
xfer              382 drivers/rtc/rtc-x1205.c 	int i, xfer;
xfer              430 drivers/rtc/rtc-x1205.c 		xfer = i2c_transfer(client->adapter, msgs, 2);
xfer              431 drivers/rtc/rtc-x1205.c 		if (xfer != 2) {
xfer              468 drivers/rtc/rtc-x1205.c 		xfer = i2c_transfer(client->adapter, msgs, 2);
xfer              469 drivers/rtc/rtc-x1205.c 		if (xfer != 2) {
xfer              167 drivers/scsi/libsas/sas_ata.c 	unsigned int si, xfer = 0;
xfer              205 drivers/scsi/libsas/sas_ata.c 			xfer += sg_dma_len(sg);
xfer              207 drivers/scsi/libsas/sas_ata.c 		task->total_xfer_len = xfer;
xfer              418 drivers/spi/spi-armada-3700.c 				     struct spi_transfer *xfer)
xfer              424 drivers/spi/spi-armada-3700.c 	a3700_spi_clock_set(a3700_spi, xfer->speed_hz);
xfer              432 drivers/spi/spi-armada-3700.c 	a3700_spi->tx_buf  = xfer->tx_buf;
xfer              433 drivers/spi/spi-armada-3700.c 	a3700_spi->rx_buf  = xfer->rx_buf;
xfer              434 drivers/spi/spi-armada-3700.c 	a3700_spi->buf_len = xfer->len;
xfer              595 drivers/spi/spi-armada-3700.c 				  struct spi_transfer *xfer)
xfer              606 drivers/spi/spi-armada-3700.c 	byte_len = xfer->bits_per_word >> 3;
xfer              609 drivers/spi/spi-armada-3700.c 	if (xfer->tx_buf)
xfer              610 drivers/spi/spi-armada-3700.c 		nbits = xfer->tx_nbits;
xfer              611 drivers/spi/spi-armada-3700.c 	else if (xfer->rx_buf)
xfer              612 drivers/spi/spi-armada-3700.c 		nbits = xfer->rx_nbits;
xfer              614 drivers/spi/spi-armada-3700.c 	a3700_spi_pin_mode_set(a3700_spi, nbits, xfer->rx_buf ? true : false);
xfer              622 drivers/spi/spi-armada-3700.c 	if (xfer->rx_buf) {
xfer              636 drivers/spi/spi-armada-3700.c 	} else if (xfer->tx_buf) {
xfer              744 drivers/spi/spi-armada-3700.c 				  struct spi_transfer *xfer)
xfer              789 drivers/spi/spi-armada-3700.c 				  struct spi_transfer *xfer)
xfer              791 drivers/spi/spi-armada-3700.c 	a3700_spi_transfer_setup(spi, xfer);
xfer              793 drivers/spi/spi-armada-3700.c 	if (xfer->tx_buf && xfer->rx_buf)
xfer              794 drivers/spi/spi-armada-3700.c 		return a3700_spi_transfer_one_full_duplex(master, spi, xfer);
xfer              796 drivers/spi/spi-armada-3700.c 	return a3700_spi_transfer_one_fifo(master, spi, xfer);
xfer              116 drivers/spi/spi-at91-usart.c 				   struct spi_transfer *xfer)
xfer              120 drivers/spi/spi-at91-usart.c 	return aus->use_dma && xfer->len >= US_DMA_MIN_BYTES;
xfer              217 drivers/spi/spi-at91-usart.c 				       struct spi_transfer *xfer)
xfer              230 drivers/spi/spi-at91-usart.c 					 xfer->rx_sg.sgl,
xfer              231 drivers/spi/spi-at91-usart.c 					 xfer->rx_sg.nents,
xfer              239 drivers/spi/spi-at91-usart.c 					 xfer->tx_sg.sgl,
xfer              240 drivers/spi/spi-at91-usart.c 					 xfer->tx_sg.nents,
xfer              328 drivers/spi/spi-at91-usart.c 			      struct spi_transfer *xfer)
xfer              331 drivers/spi/spi-at91-usart.c 			      DIV_ROUND_UP(aus->spi_clk, xfer->speed_hz));
xfer              400 drivers/spi/spi-at91-usart.c 				       struct spi_transfer *xfer)
xfer              406 drivers/spi/spi-at91-usart.c 	at91_usart_spi_set_xfer_speed(aus, xfer);
xfer              408 drivers/spi/spi-at91-usart.c 	aus->current_transfer = xfer;
xfer              409 drivers/spi/spi-at91-usart.c 	aus->current_tx_remaining_bytes = xfer->len;
xfer              410 drivers/spi/spi-at91-usart.c 	aus->current_rx_remaining_bytes = xfer->len;
xfer              415 drivers/spi/spi-at91-usart.c 		if (at91_usart_spi_can_dma(ctlr, spi, xfer) &&
xfer              417 drivers/spi/spi-at91-usart.c 			ret = at91_usart_spi_dma_transfer(ctlr, xfer);
xfer              433 drivers/spi/spi-atmel.c static inline bool atmel_spi_is_vmalloc_xfer(struct spi_transfer *xfer)
xfer              435 drivers/spi/spi-atmel.c 	return is_vmalloc_addr(xfer->tx_buf) || is_vmalloc_addr(xfer->rx_buf);
xfer              439 drivers/spi/spi-atmel.c 				struct spi_transfer *xfer)
xfer              441 drivers/spi/spi-atmel.c 	return as->use_dma && xfer->len >= DMA_MIN_BYTES;
xfer              446 drivers/spi/spi-atmel.c 			      struct spi_transfer *xfer)
xfer              451 drivers/spi/spi-atmel.c 		return atmel_spi_use_dma(as, xfer) &&
xfer              452 drivers/spi/spi-atmel.c 			!atmel_spi_is_vmalloc_xfer(xfer);
xfer              454 drivers/spi/spi-atmel.c 		return atmel_spi_use_dma(as, xfer);
xfer              613 drivers/spi/spi-atmel.c 				       struct spi_transfer *xfer)
xfer              616 drivers/spi/spi-atmel.c 	unsigned long xfer_pos = xfer->len - as->current_remaining_bytes;
xfer              627 drivers/spi/spi-atmel.c 	if (xfer->bits_per_word > 8)
xfer              628 drivers/spi/spi-atmel.c 		spi_writel(as, TDR, *(u16 *)(xfer->tx_buf + xfer_pos));
xfer              630 drivers/spi/spi-atmel.c 		spi_writel(as, TDR, *(u8 *)(xfer->tx_buf + xfer_pos));
xfer              634 drivers/spi/spi-atmel.c 		xfer, xfer->len, xfer->tx_buf, xfer->rx_buf,
xfer              635 drivers/spi/spi-atmel.c 		xfer->bits_per_word);
xfer              645 drivers/spi/spi-atmel.c 				     struct spi_transfer *xfer)
xfer              649 drivers/spi/spi-atmel.c 	u32 offset = xfer->len - as->current_remaining_bytes;
xfer              650 drivers/spi/spi-atmel.c 	const u16 *words = (const u16 *)((u8 *)xfer->tx_buf + offset);
xfer              651 drivers/spi/spi-atmel.c 	const u8  *bytes = (const u8  *)((u8 *)xfer->tx_buf + offset);
xfer              658 drivers/spi/spi-atmel.c 	current_remaining_data = ((xfer->bits_per_word > 8) ?
xfer              677 drivers/spi/spi-atmel.c 		if (xfer->bits_per_word > 8) {
xfer              690 drivers/spi/spi-atmel.c 		if (xfer->bits_per_word > 8)
xfer              701 drivers/spi/spi-atmel.c 		xfer, xfer->len, xfer->tx_buf, xfer->rx_buf,
xfer              702 drivers/spi/spi-atmel.c 		xfer->bits_per_word);
xfer              715 drivers/spi/spi-atmel.c 				    struct spi_transfer *xfer)
xfer              720 drivers/spi/spi-atmel.c 		atmel_spi_next_xfer_fifo(master, xfer);
xfer              722 drivers/spi/spi-atmel.c 		atmel_spi_next_xfer_single(master, xfer);
xfer              729 drivers/spi/spi-atmel.c 				struct spi_transfer *xfer,
xfer              749 drivers/spi/spi-atmel.c 	*plen = xfer->len;
xfer              752 drivers/spi/spi-atmel.c 				       xfer->bits_per_word))
xfer              756 drivers/spi/spi-atmel.c 	if (atmel_spi_is_vmalloc_xfer(xfer) &&
xfer              760 drivers/spi/spi-atmel.c 						     xfer->len,
xfer              766 drivers/spi/spi-atmel.c 						 xfer->rx_sg.sgl,
xfer              767 drivers/spi/spi-atmel.c 						 xfer->rx_sg.nents,
xfer              775 drivers/spi/spi-atmel.c 	if (atmel_spi_is_vmalloc_xfer(xfer) &&
xfer              777 drivers/spi/spi-atmel.c 		memcpy(as->addr_tx_bbuf, xfer->tx_buf, xfer->len);
xfer              780 drivers/spi/spi-atmel.c 						     xfer->len, DMA_MEM_TO_DEV,
xfer              785 drivers/spi/spi-atmel.c 						 xfer->tx_sg.sgl,
xfer              786 drivers/spi/spi-atmel.c 						 xfer->tx_sg.nents,
xfer              796 drivers/spi/spi-atmel.c 		xfer, xfer->len, xfer->tx_buf, (unsigned long long)xfer->tx_dma,
xfer              797 drivers/spi/spi-atmel.c 		xfer->rx_buf, (unsigned long long)xfer->rx_dma);
xfer              829 drivers/spi/spi-atmel.c 				struct spi_transfer *xfer,
xfer              834 drivers/spi/spi-atmel.c 	*rx_dma = xfer->rx_dma + xfer->len - *plen;
xfer              835 drivers/spi/spi-atmel.c 	*tx_dma = xfer->tx_dma + xfer->len - *plen;
xfer              842 drivers/spi/spi-atmel.c 				    struct spi_transfer *xfer)
xfer              856 drivers/spi/spi-atmel.c 	scbr = DIV_ROUND_UP(bus_hz, xfer->speed_hz);
xfer              865 drivers/spi/spi-atmel.c 			xfer->speed_hz, scbr, bus_hz/255);
xfer              871 drivers/spi/spi-atmel.c 			xfer->speed_hz, scbr, bus_hz);
xfer              887 drivers/spi/spi-atmel.c 					struct spi_transfer *xfer)
xfer              896 drivers/spi/spi-atmel.c 	atmel_spi_next_xfer_data(master, xfer, &tx_dma, &rx_dma, &len);
xfer              909 drivers/spi/spi-atmel.c 		xfer, xfer->len, xfer->tx_buf,
xfer              910 drivers/spi/spi-atmel.c 		(unsigned long long)xfer->tx_dma, xfer->rx_buf,
xfer              911 drivers/spi/spi-atmel.c 		(unsigned long long)xfer->rx_dma);
xfer              915 drivers/spi/spi-atmel.c 		atmel_spi_next_xfer_data(master, xfer, &tx_dma, &rx_dma, &len);
xfer              928 drivers/spi/spi-atmel.c 			xfer, xfer->len, xfer->tx_buf,
xfer              929 drivers/spi/spi-atmel.c 			(unsigned long long)xfer->tx_dma, xfer->rx_buf,
xfer              930 drivers/spi/spi-atmel.c 			(unsigned long long)xfer->rx_dma);
xfer              955 drivers/spi/spi-atmel.c atmel_spi_dma_map_xfer(struct atmel_spi *as, struct spi_transfer *xfer)
xfer              959 drivers/spi/spi-atmel.c 	xfer->tx_dma = xfer->rx_dma = INVALID_DMA_ADDRESS;
xfer              960 drivers/spi/spi-atmel.c 	if (xfer->tx_buf) {
xfer              963 drivers/spi/spi-atmel.c 		void *nonconst_tx = (void *)xfer->tx_buf;
xfer              965 drivers/spi/spi-atmel.c 		xfer->tx_dma = dma_map_single(dev,
xfer              966 drivers/spi/spi-atmel.c 				nonconst_tx, xfer->len,
xfer              968 drivers/spi/spi-atmel.c 		if (dma_mapping_error(dev, xfer->tx_dma))
xfer              971 drivers/spi/spi-atmel.c 	if (xfer->rx_buf) {
xfer              972 drivers/spi/spi-atmel.c 		xfer->rx_dma = dma_map_single(dev,
xfer              973 drivers/spi/spi-atmel.c 				xfer->rx_buf, xfer->len,
xfer              975 drivers/spi/spi-atmel.c 		if (dma_mapping_error(dev, xfer->rx_dma)) {
xfer              976 drivers/spi/spi-atmel.c 			if (xfer->tx_buf)
xfer              978 drivers/spi/spi-atmel.c 						xfer->tx_dma, xfer->len,
xfer              987 drivers/spi/spi-atmel.c 				     struct spi_transfer *xfer)
xfer              989 drivers/spi/spi-atmel.c 	if (xfer->tx_dma != INVALID_DMA_ADDRESS)
xfer              990 drivers/spi/spi-atmel.c 		dma_unmap_single(master->dev.parent, xfer->tx_dma,
xfer              991 drivers/spi/spi-atmel.c 				 xfer->len, DMA_TO_DEVICE);
xfer              992 drivers/spi/spi-atmel.c 	if (xfer->rx_dma != INVALID_DMA_ADDRESS)
xfer              993 drivers/spi/spi-atmel.c 		dma_unmap_single(master->dev.parent, xfer->rx_dma,
xfer              994 drivers/spi/spi-atmel.c 				 xfer->len, DMA_FROM_DEVICE);
xfer             1003 drivers/spi/spi-atmel.c atmel_spi_pump_single_data(struct atmel_spi *as, struct spi_transfer *xfer)
xfer             1007 drivers/spi/spi-atmel.c 	unsigned long	xfer_pos = xfer->len - as->current_remaining_bytes;
xfer             1009 drivers/spi/spi-atmel.c 	if (xfer->bits_per_word > 8) {
xfer             1010 drivers/spi/spi-atmel.c 		rxp16 = (u16 *)(((u8 *)xfer->rx_buf) + xfer_pos);
xfer             1013 drivers/spi/spi-atmel.c 		rxp = ((u8 *)xfer->rx_buf) + xfer_pos;
xfer             1016 drivers/spi/spi-atmel.c 	if (xfer->bits_per_word > 8) {
xfer             1027 drivers/spi/spi-atmel.c atmel_spi_pump_fifo_data(struct atmel_spi *as, struct spi_transfer *xfer)
xfer             1031 drivers/spi/spi-atmel.c 	u32 offset = xfer->len - as->current_remaining_bytes;
xfer             1032 drivers/spi/spi-atmel.c 	u16 *words = (u16 *)((u8 *)xfer->rx_buf + offset);
xfer             1033 drivers/spi/spi-atmel.c 	u8  *bytes = (u8  *)((u8 *)xfer->rx_buf + offset);
xfer             1037 drivers/spi/spi-atmel.c 	num_bytes = ((xfer->bits_per_word > 8) ?
xfer             1047 drivers/spi/spi-atmel.c 	if (xfer->bits_per_word > 8)
xfer             1053 drivers/spi/spi-atmel.c 		if (xfer->bits_per_word > 8)
xfer             1067 drivers/spi/spi-atmel.c atmel_spi_pump_pio_data(struct atmel_spi *as, struct spi_transfer *xfer)
xfer             1070 drivers/spi/spi-atmel.c 		atmel_spi_pump_fifo_data(as, xfer);
xfer             1072 drivers/spi/spi-atmel.c 		atmel_spi_pump_single_data(as, xfer);
xfer             1086 drivers/spi/spi-atmel.c 	struct spi_transfer	*xfer;
xfer             1120 drivers/spi/spi-atmel.c 			xfer = as->current_transfer;
xfer             1121 drivers/spi/spi-atmel.c 			atmel_spi_pump_pio_data(as, xfer);
xfer             1246 drivers/spi/spi-atmel.c 					struct spi_transfer *xfer)
xfer             1259 drivers/spi/spi-atmel.c 	if (!(xfer->tx_buf || xfer->rx_buf) && xfer->len) {
xfer             1266 drivers/spi/spi-atmel.c 	if (bits != xfer->bits_per_word - 8) {
xfer             1278 drivers/spi/spi-atmel.c 		if (atmel_spi_dma_map_xfer(as, xfer) < 0)
xfer             1282 drivers/spi/spi-atmel.c 	atmel_spi_set_xfer_speed(as, msg->spi, xfer);
xfer             1285 drivers/spi/spi-atmel.c 	as->current_transfer = xfer;
xfer             1286 drivers/spi/spi-atmel.c 	as->current_remaining_bytes = xfer->len;
xfer             1291 drivers/spi/spi-atmel.c 			atmel_spi_pdc_next_xfer(master, msg, xfer);
xfer             1292 drivers/spi/spi-atmel.c 		} else if (atmel_spi_use_dma(as, xfer)) {
xfer             1295 drivers/spi/spi-atmel.c 								xfer, &len);
xfer             1299 drivers/spi/spi-atmel.c 				atmel_spi_next_xfer_pio(master, xfer);
xfer             1306 drivers/spi/spi-atmel.c 			atmel_spi_next_xfer_pio(master, xfer);
xfer             1349 drivers/spi/spi-atmel.c 		} else if (atmel_spi_use_dma(as, xfer)) {
xfer             1355 drivers/spi/spi-atmel.c 			atmel_spi_dma_unmap_xfer(master, xfer);
xfer             1361 drivers/spi/spi-atmel.c 		msg->actual_length += xfer->len;
xfer             1366 drivers/spi/spi-atmel.c 		atmel_spi_dma_unmap_xfer(master, xfer);
xfer             1368 drivers/spi/spi-atmel.c 	if (xfer->delay_usecs)
xfer             1369 drivers/spi/spi-atmel.c 		udelay(xfer->delay_usecs);
xfer             1371 drivers/spi/spi-atmel.c 	if (xfer->cs_change) {
xfer             1372 drivers/spi/spi-atmel.c 		if (list_is_last(&xfer->transfer_list,
xfer             1389 drivers/spi/spi-atmel.c 	struct spi_transfer *xfer;
xfer             1406 drivers/spi/spi-atmel.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer             1407 drivers/spi/spi-atmel.c 		trace_spi_transfer_start(msg, xfer);
xfer             1409 drivers/spi/spi-atmel.c 		ret = atmel_spi_one_transfer(master, msg, xfer);
xfer             1413 drivers/spi/spi-atmel.c 		trace_spi_transfer_stop(msg, xfer);
xfer             1419 drivers/spi/spi-atmel.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer             1422 drivers/spi/spi-atmel.c 			xfer, xfer->len,
xfer             1423 drivers/spi/spi-atmel.c 			xfer->tx_buf, &xfer->tx_dma,
xfer             1424 drivers/spi/spi-atmel.c 			xfer->rx_buf, &xfer->rx_dma);
xfer              131 drivers/spi/spi-axi-spi-engine.c 	struct spi_device *spi, struct spi_transfer *xfer)
xfer              136 drivers/spi/spi-axi-spi-engine.c 		xfer->speed_hz * 2);
xfer              146 drivers/spi/spi-axi-spi-engine.c 	struct spi_transfer *xfer)
xfer              148 drivers/spi/spi-axi-spi-engine.c 	unsigned int len = xfer->len;
xfer              154 drivers/spi/spi-axi-spi-engine.c 		if (xfer->tx_buf)
xfer              156 drivers/spi/spi-axi-spi-engine.c 		if (xfer->rx_buf)
xfer              198 drivers/spi/spi-axi-spi-engine.c 	struct spi_transfer *xfer;
xfer              208 drivers/spi/spi-axi-spi-engine.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer              209 drivers/spi/spi-axi-spi-engine.c 		new_clk_div = spi_engine_get_clk_div(spi_engine, spi, xfer);
xfer              220 drivers/spi/spi-axi-spi-engine.c 		spi_engine_gen_xfer(p, dry, xfer);
xfer              222 drivers/spi/spi-axi-spi-engine.c 			xfer->delay_usecs);
xfer              224 drivers/spi/spi-axi-spi-engine.c 		cs_change = xfer->cs_change;
xfer              225 drivers/spi/spi-axi-spi-engine.c 		if (list_is_last(&xfer->transfer_list, &msg->transfers))
xfer              239 drivers/spi/spi-axi-spi-engine.c 	struct spi_transfer *xfer = *_xfer;
xfer              241 drivers/spi/spi-axi-spi-engine.c 	if (!xfer) {
xfer              242 drivers/spi/spi-axi-spi-engine.c 		xfer = list_first_entry(&msg->transfers,
xfer              244 drivers/spi/spi-axi-spi-engine.c 	} else if (list_is_last(&xfer->transfer_list, &msg->transfers)) {
xfer              245 drivers/spi/spi-axi-spi-engine.c 		xfer = NULL;
xfer              247 drivers/spi/spi-axi-spi-engine.c 		xfer = list_next_entry(xfer, transfer_list);
xfer              250 drivers/spi/spi-axi-spi-engine.c 	*_xfer = xfer;
xfer              255 drivers/spi/spi-axi-spi-engine.c 	struct spi_transfer *xfer = spi_engine->tx_xfer;
xfer              258 drivers/spi/spi-axi-spi-engine.c 		spi_engine_xfer_next(spi_engine, &xfer);
xfer              259 drivers/spi/spi-axi-spi-engine.c 	} while (xfer && !xfer->tx_buf);
xfer              261 drivers/spi/spi-axi-spi-engine.c 	spi_engine->tx_xfer = xfer;
xfer              262 drivers/spi/spi-axi-spi-engine.c 	if (xfer) {
xfer              263 drivers/spi/spi-axi-spi-engine.c 		spi_engine->tx_length = xfer->len;
xfer              264 drivers/spi/spi-axi-spi-engine.c 		spi_engine->tx_buf = xfer->tx_buf;
xfer              272 drivers/spi/spi-axi-spi-engine.c 	struct spi_transfer *xfer = spi_engine->rx_xfer;
xfer              275 drivers/spi/spi-axi-spi-engine.c 		spi_engine_xfer_next(spi_engine, &xfer);
xfer              276 drivers/spi/spi-axi-spi-engine.c 	} while (xfer && !xfer->rx_buf);
xfer              278 drivers/spi/spi-axi-spi-engine.c 	spi_engine->rx_xfer = xfer;
xfer              279 drivers/spi/spi-axi-spi-engine.c 	if (xfer) {
xfer              280 drivers/spi/spi-axi-spi-engine.c 		spi_engine->rx_length = xfer->len;
xfer              281 drivers/spi/spi-axi-spi-engine.c 		spi_engine->rx_buf = xfer->rx_buf;
xfer               30 drivers/spi/spi-cavium.c 				  struct spi_transfer *xfer,
xfer               48 drivers/spi/spi-cavium.c 	clkdiv = p->sys_freq / (2 * xfer->speed_hz);
xfer               68 drivers/spi/spi-cavium.c 	tx_buf = xfer->tx_buf;
xfer               69 drivers/spi/spi-cavium.c 	rx_buf = xfer->rx_buf;
xfer               70 drivers/spi/spi-cavium.c 	len = xfer->len;
xfer              108 drivers/spi/spi-cavium.c 		mpi_tx.s.leavecs = xfer->cs_change;
xfer              110 drivers/spi/spi-cavium.c 		mpi_tx.s.leavecs = !xfer->cs_change;
xfer              122 drivers/spi/spi-cavium.c 	if (xfer->delay_usecs)
xfer              123 drivers/spi/spi-cavium.c 		udelay(xfer->delay_usecs);
xfer              125 drivers/spi/spi-cavium.c 	return xfer->len;
xfer              134 drivers/spi/spi-cavium.c 	struct spi_transfer *xfer;
xfer              136 drivers/spi/spi-cavium.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer              137 drivers/spi/spi-cavium.c 		bool last_xfer = list_is_last(&xfer->transfer_list,
xfer              139 drivers/spi/spi-cavium.c 		int r = octeon_spi_do_transfer(p, msg, xfer, last_xfer);
xfer               49 drivers/spi/spi-clps711x.c 				     struct spi_transfer *xfer)
xfer               54 drivers/spi/spi-clps711x.c 	clk_set_rate(hw->spi_clk, xfer->speed_hz ? : spi->max_speed_hz);
xfer               56 drivers/spi/spi-clps711x.c 	hw->len = xfer->len;
xfer               57 drivers/spi/spi-clps711x.c 	hw->bpw = xfer->bits_per_word;
xfer               58 drivers/spi/spi-clps711x.c 	hw->tx_buf = (u8 *)xfer->tx_buf;
xfer               59 drivers/spi/spi-clps711x.c 	hw->rx_buf = (u8 *)xfer->rx_buf;
xfer              452 drivers/spi/spi-davinci.c 				struct spi_transfer *xfer)
xfer              459 drivers/spi/spi-davinci.c 			(xfer->len >= DMA_MIN_BYTES) &&
xfer              460 drivers/spi/spi-davinci.c 			!is_vmalloc_addr(xfer->rx_buf) &&
xfer              461 drivers/spi/spi-davinci.c 			!is_vmalloc_addr(xfer->tx_buf);
xfer              653 drivers/spi/spi-dln2.c 				 struct spi_transfer *xfer)
xfer              659 drivers/spi/spi-dln2.c 	status = dln2_spi_transfer_setup(dln2, xfer->speed_hz,
xfer              660 drivers/spi/spi-dln2.c 					 xfer->bits_per_word,
xfer              667 drivers/spi/spi-dln2.c 	if (!xfer->cs_change && !spi_transfer_is_last(master, xfer))
xfer              670 drivers/spi/spi-dln2.c 	status = dln2_spi_rdwr(dln2, xfer->tx_buf, xfer->rx_buf,
xfer              671 drivers/spi/spi-dln2.c 			       xfer->len, attr);
xfer              108 drivers/spi/spi-dw-mid.c 		struct spi_device *spi, struct spi_transfer *xfer)
xfer              115 drivers/spi/spi-dw-mid.c 	return xfer->len > dws->fifo_len;
xfer              142 drivers/spi/spi-dw-mid.c 		struct spi_transfer *xfer)
xfer              147 drivers/spi/spi-dw-mid.c 	if (!xfer->tx_buf)
xfer              160 drivers/spi/spi-dw-mid.c 				xfer->tx_sg.sgl,
xfer              161 drivers/spi/spi-dw-mid.c 				xfer->tx_sg.nents,
xfer              188 drivers/spi/spi-dw-mid.c 		struct spi_transfer *xfer)
xfer              193 drivers/spi/spi-dw-mid.c 	if (!xfer->rx_buf)
xfer              206 drivers/spi/spi-dw-mid.c 				xfer->rx_sg.sgl,
xfer              207 drivers/spi/spi-dw-mid.c 				xfer->rx_sg.nents,
xfer              219 drivers/spi/spi-dw-mid.c static int mid_spi_dma_setup(struct dw_spi *dws, struct spi_transfer *xfer)
xfer              226 drivers/spi/spi-dw-mid.c 	if (xfer->tx_buf)
xfer              228 drivers/spi/spi-dw-mid.c 	if (xfer->rx_buf)
xfer              240 drivers/spi/spi-dw-mid.c static int mid_spi_dma_transfer(struct dw_spi *dws, struct spi_transfer *xfer)
xfer              245 drivers/spi/spi-dw-mid.c 	txdesc = dw_spi_dma_prepare_tx(dws, xfer);
xfer              248 drivers/spi/spi-dw-mid.c 	rxdesc = dw_spi_dma_prepare_rx(dws, xfer);
xfer               96 drivers/spi/spi-dw.h 	int (*dma_setup)(struct dw_spi *dws, struct spi_transfer *xfer);
xfer               98 drivers/spi/spi-dw.h 			struct spi_transfer *xfer);
xfer               99 drivers/spi/spi-dw.h 	int (*dma_transfer)(struct dw_spi *dws, struct spi_transfer *xfer);
xfer              147 drivers/spi/spi-ep93xx.c 				 struct spi_transfer *xfer)
xfer              150 drivers/spi/spi-ep93xx.c 	u8 dss = bits_per_word_to_dss(xfer->bits_per_word);
xfer              156 drivers/spi/spi-ep93xx.c 	err = ep93xx_spi_calc_divisors(master, xfer->speed_hz,
xfer              178 drivers/spi/spi-ep93xx.c 	struct spi_transfer *xfer = master->cur_msg->state;
xfer              181 drivers/spi/spi-ep93xx.c 	if (xfer->bits_per_word > 8) {
xfer              182 drivers/spi/spi-ep93xx.c 		if (xfer->tx_buf)
xfer              183 drivers/spi/spi-ep93xx.c 			val = ((u16 *)xfer->tx_buf)[espi->tx];
xfer              186 drivers/spi/spi-ep93xx.c 		if (xfer->tx_buf)
xfer              187 drivers/spi/spi-ep93xx.c 			val = ((u8 *)xfer->tx_buf)[espi->tx];
xfer              196 drivers/spi/spi-ep93xx.c 	struct spi_transfer *xfer = master->cur_msg->state;
xfer              200 drivers/spi/spi-ep93xx.c 	if (xfer->bits_per_word > 8) {
xfer              201 drivers/spi/spi-ep93xx.c 		if (xfer->rx_buf)
xfer              202 drivers/spi/spi-ep93xx.c 			((u16 *)xfer->rx_buf)[espi->rx] = val;
xfer              205 drivers/spi/spi-ep93xx.c 		if (xfer->rx_buf)
xfer              206 drivers/spi/spi-ep93xx.c 			((u8 *)xfer->rx_buf)[espi->rx] = val;
xfer              225 drivers/spi/spi-ep93xx.c 	struct spi_transfer *xfer = master->cur_msg->state;
xfer              234 drivers/spi/spi-ep93xx.c 	while (espi->fifo_level < SPI_FIFO_SIZE && espi->tx < xfer->len) {
xfer              239 drivers/spi/spi-ep93xx.c 	if (espi->rx == xfer->len)
xfer              272 drivers/spi/spi-ep93xx.c 	struct spi_transfer *xfer = master->cur_msg->state;
xfer              280 drivers/spi/spi-ep93xx.c 	size_t len = xfer->len;
xfer              283 drivers/spi/spi-ep93xx.c 	if (xfer->bits_per_word > 8)
xfer              293 drivers/spi/spi-ep93xx.c 		buf = xfer->rx_buf;
xfer              300 drivers/spi/spi-ep93xx.c 		buf = xfer->tx_buf;
xfer              480 drivers/spi/spi-ep93xx.c 				   struct spi_transfer *xfer)
xfer              486 drivers/spi/spi-ep93xx.c 	ret = ep93xx_spi_chip_setup(master, spi, xfer);
xfer              492 drivers/spi/spi-ep93xx.c 	master->cur_msg->state = xfer;
xfer              501 drivers/spi/spi-ep93xx.c 	if (espi->dma_rx && xfer->len > SPI_FIFO_SIZE)
xfer              303 drivers/spi/spi-geni-qcom.c static void setup_fifo_xfer(struct spi_transfer *xfer,
xfer              312 drivers/spi/spi-geni-qcom.c 	if (xfer->bits_per_word != mas->cur_bits_per_word) {
xfer              313 drivers/spi/spi-geni-qcom.c 		spi_setup_word_len(mas, mode, xfer->bits_per_word);
xfer              314 drivers/spi/spi-geni-qcom.c 		mas->cur_bits_per_word = xfer->bits_per_word;
xfer              318 drivers/spi/spi-geni-qcom.c 	if (xfer->speed_hz != mas->cur_speed_hz) {
xfer              323 drivers/spi/spi-geni-qcom.c 		ret = get_spi_clk_cfg(xfer->speed_hz, mas, &idx, &div);
xfer              335 drivers/spi/spi-geni-qcom.c 		mas->cur_speed_hz = xfer->speed_hz;
xfer              344 drivers/spi/spi-geni-qcom.c 	if (xfer->tx_buf && xfer->rx_buf)
xfer              346 drivers/spi/spi-geni-qcom.c 	else if (xfer->tx_buf)
xfer              348 drivers/spi/spi-geni-qcom.c 	else if (xfer->rx_buf)
xfer              354 drivers/spi/spi-geni-qcom.c 		len = xfer->len * BITS_PER_BYTE / mas->cur_bits_per_word;
xfer              356 drivers/spi/spi-geni-qcom.c 		len = xfer->len / (mas->cur_bits_per_word / BITS_PER_BYTE + 1);
xfer              359 drivers/spi/spi-geni-qcom.c 	mas->cur_xfer = xfer;
xfer              361 drivers/spi/spi-geni-qcom.c 		mas->tx_rem_bytes = xfer->len;
xfer              367 drivers/spi/spi-geni-qcom.c 		mas->rx_rem_bytes = xfer->len;
xfer              384 drivers/spi/spi-geni-qcom.c 				struct spi_transfer *xfer)
xfer              389 drivers/spi/spi-geni-qcom.c 	if (!xfer->len)
xfer              392 drivers/spi/spi-geni-qcom.c 	setup_fifo_xfer(xfer, mas, slv->mode, spi);
xfer              231 drivers/spi/spi-img-spfi.c 			       struct spi_transfer *xfer)
xfer              235 drivers/spi/spi-img-spfi.c 	const void *tx_buf = xfer->tx_buf;
xfer              236 drivers/spi/spi-img-spfi.c 	void *rx_buf = xfer->rx_buf;
xfer              241 drivers/spi/spi-img-spfi.c 		tx_bytes = xfer->len;
xfer              243 drivers/spi/spi-img-spfi.c 		rx_bytes = xfer->len;
xfer              248 drivers/spi/spi-img-spfi.c 		msecs_to_jiffies(xfer->len * 8 * 1000 / xfer->speed_hz + 100);
xfer              313 drivers/spi/spi-img-spfi.c 			      struct spi_transfer *xfer)
xfer              322 drivers/spi/spi-img-spfi.c 	if (xfer->rx_buf) {
xfer              324 drivers/spi/spi-img-spfi.c 		if (xfer->len % 4 == 0) {
xfer              335 drivers/spi/spi-img-spfi.c 		rxdesc = dmaengine_prep_slave_sg(spfi->rx_ch, xfer->rx_sg.sgl,
xfer              336 drivers/spi/spi-img-spfi.c 						 xfer->rx_sg.nents,
xfer              346 drivers/spi/spi-img-spfi.c 	if (xfer->tx_buf) {
xfer              348 drivers/spi/spi-img-spfi.c 		if (xfer->len % 4 == 0) {
xfer              359 drivers/spi/spi-img-spfi.c 		txdesc = dmaengine_prep_slave_sg(spfi->tx_ch, xfer->tx_sg.sgl,
xfer              360 drivers/spi/spi-img-spfi.c 						 xfer->tx_sg.nents,
xfer              370 drivers/spi/spi-img-spfi.c 	if (xfer->rx_buf) {
xfer              378 drivers/spi/spi-img-spfi.c 	if (xfer->tx_buf) {
xfer              494 drivers/spi/spi-img-spfi.c 			    struct spi_transfer *xfer)
xfer              503 drivers/spi/spi-img-spfi.c 	div = DIV_ROUND_UP(clk_get_rate(spfi->spfi_clk), xfer->speed_hz);
xfer              512 drivers/spi/spi-img-spfi.c 	spfi_writel(spfi, xfer->len << SPFI_TRANSACTION_TSIZE_SHIFT,
xfer              517 drivers/spi/spi-img-spfi.c 	if (xfer->tx_buf)
xfer              519 drivers/spi/spi-img-spfi.c 	if (xfer->rx_buf)
xfer              522 drivers/spi/spi-img-spfi.c 	if (xfer->tx_nbits == SPI_NBITS_DUAL &&
xfer              523 drivers/spi/spi-img-spfi.c 	    xfer->rx_nbits == SPI_NBITS_DUAL)
xfer              525 drivers/spi/spi-img-spfi.c 	else if (xfer->tx_nbits == SPI_NBITS_QUAD &&
xfer              526 drivers/spi/spi-img-spfi.c 		 xfer->rx_nbits == SPI_NBITS_QUAD)
xfer              534 drivers/spi/spi-img-spfi.c 				 struct spi_transfer *xfer)
xfer              539 drivers/spi/spi-img-spfi.c 	if (xfer->len > SPFI_TRANSACTION_TSIZE_MASK) {
xfer              542 drivers/spi/spi-img-spfi.c 			xfer->len, SPFI_TRANSACTION_TSIZE_MASK);
xfer              546 drivers/spi/spi-img-spfi.c 	img_spfi_config(master, spi, xfer);
xfer              547 drivers/spi/spi-img-spfi.c 	if (master->can_dma && master->can_dma(master, spi, xfer))
xfer              548 drivers/spi/spi-img-spfi.c 		ret = img_spfi_start_dma(master, spi, xfer);
xfer              550 drivers/spi/spi-img-spfi.c 		ret = img_spfi_start_pio(master, spi, xfer);
xfer              556 drivers/spi/spi-img-spfi.c 			     struct spi_transfer *xfer)
xfer              558 drivers/spi/spi-img-spfi.c 	if (xfer->len > SPFI_32BIT_FIFO_SIZE)
xfer              402 drivers/spi/spi-loopback-test.c 	struct spi_transfer *xfer;
xfer              415 drivers/spi/spi-loopback-test.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer              416 drivers/spi/spi-loopback-test.c 		dev_info(&spi->dev, "    spi_transfer@%pK\n", xfer);
xfer              417 drivers/spi/spi-loopback-test.c 		dev_info(&spi->dev, "      len:    %i\n", xfer->len);
xfer              418 drivers/spi/spi-loopback-test.c 		dev_info(&spi->dev, "      tx_buf: %pK\n", xfer->tx_buf);
xfer              419 drivers/spi/spi-loopback-test.c 		if (dump_data && xfer->tx_buf)
xfer              421 drivers/spi/spi-loopback-test.c 						xfer->tx_buf,
xfer              422 drivers/spi/spi-loopback-test.c 						xfer->len);
xfer              424 drivers/spi/spi-loopback-test.c 		dev_info(&spi->dev, "      rx_buf: %pK\n", xfer->rx_buf);
xfer              425 drivers/spi/spi-loopback-test.c 		if (dump_data && xfer->rx_buf)
xfer              427 drivers/spi/spi-loopback-test.c 						xfer->rx_buf,
xfer              428 drivers/spi/spi-loopback-test.c 						xfer->len);
xfer              430 drivers/spi/spi-loopback-test.c 		if (xfer->rx_buf) {
xfer              431 drivers/spi/spi-loopback-test.c 			for (i = 0 ; i < xfer->len ; i++) {
xfer              432 drivers/spi/spi-loopback-test.c 				b = ((u8 *)xfer->rx_buf)[xfer->len - 1 - i];
xfer              440 drivers/spi/spi-loopback-test.c 					 xfer->len - i);
xfer              467 drivers/spi/spi-loopback-test.c 	struct spi_transfer *xfer;
xfer              475 drivers/spi/spi-loopback-test.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer              477 drivers/spi/spi-loopback-test.c 		if (!xfer->rx_buf)
xfer              480 drivers/spi/spi-loopback-test.c 		if (RANGE_CHECK(xfer->rx_buf, xfer->len,
xfer              482 drivers/spi/spi-loopback-test.c 			ranges[i].start = xfer->rx_buf;
xfer              483 drivers/spi/spi-loopback-test.c 			ranges[i].end = xfer->rx_buf + xfer->len;
xfer              536 drivers/spi/spi-loopback-test.c 		struct spi_transfer *xfer = test->transfers + i;
xfer              538 drivers/spi/spi-loopback-test.c 					   xfer->len;
xfer              540 drivers/spi/spi-loopback-test.c 		delay_usecs += xfer->delay_usecs;
xfer              541 drivers/spi/spi-loopback-test.c 		if (!xfer->speed_hz)
xfer              543 drivers/spi/spi-loopback-test.c 		estimated_time += div_u64(nbits * NSEC_PER_SEC, xfer->speed_hz);
xfer              562 drivers/spi/spi-loopback-test.c 	struct spi_transfer *xfer;
xfer              579 drivers/spi/spi-loopback-test.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer              581 drivers/spi/spi-loopback-test.c 		if (!xfer->len || !xfer->rx_buf)
xfer              584 drivers/spi/spi-loopback-test.c 		if (xfer->tx_buf) {
xfer              585 drivers/spi/spi-loopback-test.c 			for (i = 0; i < xfer->len; i++) {
xfer              586 drivers/spi/spi-loopback-test.c 				txb = ((u8 *)xfer->tx_buf)[i];
xfer              587 drivers/spi/spi-loopback-test.c 				rxb = ((u8 *)xfer->rx_buf)[i];
xfer              593 drivers/spi/spi-loopback-test.c 			txb = ((u8 *)xfer->rx_buf)[0];
xfer              602 drivers/spi/spi-loopback-test.c 			for (i = 1; i < xfer->len; i++) {
xfer              603 drivers/spi/spi-loopback-test.c 				rxb = ((u8 *)xfer->rx_buf)[i];
xfer              129 drivers/spi/spi-meson-spicc.c 	struct spi_transfer		*xfer;
xfer              336 drivers/spi/spi-meson-spicc.c 				   struct spi_transfer *xfer)
xfer              344 drivers/spi/spi-meson-spicc.c 	conf = meson_spicc_setup_speed(spicc, conf, xfer->speed_hz);
xfer              358 drivers/spi/spi-meson-spicc.c 				    struct spi_transfer *xfer)
xfer              365 drivers/spi/spi-meson-spicc.c 	spicc->xfer = xfer;
xfer              368 drivers/spi/spi-meson-spicc.c 	spicc->tx_buf = (u8 *)xfer->tx_buf;
xfer              369 drivers/spi/spi-meson-spicc.c 	spicc->rx_buf = (u8 *)xfer->rx_buf;
xfer              370 drivers/spi/spi-meson-spicc.c 	spicc->xfer_remain = xfer->len;
xfer              374 drivers/spi/spi-meson-spicc.c 	   DIV_ROUND_UP(spicc->xfer->bits_per_word, 8);
xfer              377 drivers/spi/spi-meson-spicc.c 	meson_spicc_setup_xfer(spicc, xfer);
xfer              195 drivers/spi/spi-meson-spifc.c 			    struct spi_transfer *xfer,
xfer              202 drivers/spi/spi-meson-spifc.c 	if (xfer->tx_buf)
xfer              203 drivers/spi/spi-meson-spifc.c 		meson_spifc_fill_buffer(spifc, xfer->tx_buf + offset, len);
xfer              217 drivers/spi/spi-meson-spifc.c 			keep_cs = xfer->cs_change;
xfer              219 drivers/spi/spi-meson-spifc.c 			keep_cs = !xfer->cs_change;
xfer              232 drivers/spi/spi-meson-spifc.c 	if (!ret && xfer->rx_buf)
xfer              233 drivers/spi/spi-meson-spifc.c 		meson_spifc_drain_buffer(spifc, xfer->rx_buf + offset, len);
xfer              247 drivers/spi/spi-meson-spifc.c 				    struct spi_transfer *xfer)
xfer              252 drivers/spi/spi-meson-spifc.c 	meson_spifc_setup_speed(spifc, xfer->speed_hz);
xfer              256 drivers/spi/spi-meson-spifc.c 	while (done < xfer->len && !ret) {
xfer              257 drivers/spi/spi-meson-spifc.c 		len = min_t(int, xfer->len - done, SPIFC_BUFFER_SIZE);
xfer              258 drivers/spi/spi-meson-spifc.c 		ret = meson_spifc_txrx(spifc, xfer, done, len,
xfer              259 drivers/spi/spi-meson-spifc.c 				       spi_transfer_is_last(master, xfer),
xfer              260 drivers/spi/spi-meson-spifc.c 				       done + len >= xfer->len);
xfer              280 drivers/spi/spi-mt65xx.c 				     struct spi_transfer *xfer)
xfer              286 drivers/spi/spi-mt65xx.c 	if (xfer->speed_hz < spi_clk_hz / 2)
xfer              287 drivers/spi/spi-mt65xx.c 		div = DIV_ROUND_UP(spi_clk_hz, xfer->speed_hz);
xfer              389 drivers/spi/spi-mt65xx.c 				   struct spi_transfer *xfer)
xfer              394 drivers/spi/spi-mt65xx.c 		writel((u32)(xfer->tx_dma & MTK_SPI_32BITS_MASK),
xfer              398 drivers/spi/spi-mt65xx.c 			writel((u32)(xfer->tx_dma >> 32),
xfer              404 drivers/spi/spi-mt65xx.c 		writel((u32)(xfer->rx_dma & MTK_SPI_32BITS_MASK),
xfer              408 drivers/spi/spi-mt65xx.c 			writel((u32)(xfer->rx_dma >> 32),
xfer              416 drivers/spi/spi-mt65xx.c 				 struct spi_transfer *xfer)
xfer              422 drivers/spi/spi-mt65xx.c 	mdata->cur_transfer = xfer;
xfer              423 drivers/spi/spi-mt65xx.c 	mdata->xfer_len = min(MTK_SPI_MAX_FIFO_SIZE, xfer->len);
xfer              425 drivers/spi/spi-mt65xx.c 	mtk_spi_prepare_transfer(master, xfer);
xfer              428 drivers/spi/spi-mt65xx.c 	cnt = xfer->len / 4;
xfer              429 drivers/spi/spi-mt65xx.c 	iowrite32_rep(mdata->base + SPI_TX_DATA_REG, xfer->tx_buf, cnt);
xfer              431 drivers/spi/spi-mt65xx.c 	remainder = xfer->len % 4;
xfer              434 drivers/spi/spi-mt65xx.c 		memcpy(&reg_val, xfer->tx_buf + (cnt * 4), remainder);
xfer              445 drivers/spi/spi-mt65xx.c 				struct spi_transfer *xfer)
xfer              454 drivers/spi/spi-mt65xx.c 	mdata->cur_transfer = xfer;
xfer              457 drivers/spi/spi-mt65xx.c 	mtk_spi_prepare_transfer(master, xfer);
xfer              460 drivers/spi/spi-mt65xx.c 	if (xfer->tx_buf)
xfer              462 drivers/spi/spi-mt65xx.c 	if (xfer->rx_buf)
xfer              466 drivers/spi/spi-mt65xx.c 	if (xfer->tx_buf)
xfer              467 drivers/spi/spi-mt65xx.c 		mdata->tx_sgl = xfer->tx_sg.sgl;
xfer              468 drivers/spi/spi-mt65xx.c 	if (xfer->rx_buf)
xfer              469 drivers/spi/spi-mt65xx.c 		mdata->rx_sgl = xfer->rx_sg.sgl;
xfer              472 drivers/spi/spi-mt65xx.c 		xfer->tx_dma = sg_dma_address(mdata->tx_sgl);
xfer              476 drivers/spi/spi-mt65xx.c 		xfer->rx_dma = sg_dma_address(mdata->rx_sgl);
xfer              482 drivers/spi/spi-mt65xx.c 	mtk_spi_setup_dma_addr(master, xfer);
xfer              490 drivers/spi/spi-mt65xx.c 				struct spi_transfer *xfer)
xfer              492 drivers/spi/spi-mt65xx.c 	if (master->can_dma(master, spi, xfer))
xfer              493 drivers/spi/spi-mt65xx.c 		return mtk_spi_dma_transfer(master, spi, xfer);
xfer              495 drivers/spi/spi-mt65xx.c 		return mtk_spi_fifo_transfer(master, spi, xfer);
xfer              500 drivers/spi/spi-mt65xx.c 			    struct spi_transfer *xfer)
xfer              503 drivers/spi/spi-mt65xx.c 	return (xfer->len > MTK_SPI_MAX_FIFO_SIZE &&
xfer              504 drivers/spi/spi-mt65xx.c 		(unsigned long)xfer->tx_buf % 4 == 0 &&
xfer              505 drivers/spi/spi-mt65xx.c 		(unsigned long)xfer->rx_buf % 4 == 0);
xfer              179 drivers/spi/spi-omap-100k.c omap1_spi100k_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
xfer              185 drivers/spi/spi-omap-100k.c 	count = xfer->len;
xfer              193 drivers/spi/spi-omap-100k.c 		rx = xfer->rx_buf;
xfer              194 drivers/spi/spi-omap-100k.c 		tx = xfer->tx_buf;
xfer              197 drivers/spi/spi-omap-100k.c 			if (xfer->tx_buf != NULL)
xfer              199 drivers/spi/spi-omap-100k.c 			if (xfer->rx_buf != NULL)
xfer              206 drivers/spi/spi-omap-100k.c 		rx = xfer->rx_buf;
xfer              207 drivers/spi/spi-omap-100k.c 		tx = xfer->tx_buf;
xfer              210 drivers/spi/spi-omap-100k.c 			if (xfer->tx_buf != NULL)
xfer              212 drivers/spi/spi-omap-100k.c 			if (xfer->rx_buf != NULL)
xfer              219 drivers/spi/spi-omap-100k.c 		rx = xfer->rx_buf;
xfer              220 drivers/spi/spi-omap-100k.c 		tx = xfer->tx_buf;
xfer              223 drivers/spi/spi-omap-100k.c 			if (xfer->tx_buf != NULL)
xfer              225 drivers/spi/spi-omap-100k.c 			if (xfer->rx_buf != NULL)
xfer              395 drivers/spi/spi-omap2-mcspi.c 				struct spi_transfer *xfer,
xfer              409 drivers/spi/spi-omap2-mcspi.c 		tx = dmaengine_prep_slave_sg(mcspi_dma->dma_tx, xfer->tx_sg.sgl,
xfer              410 drivers/spi/spi-omap2-mcspi.c 					     xfer->tx_sg.nents,
xfer              427 drivers/spi/spi-omap2-mcspi.c omap2_mcspi_rx_dma(struct spi_device *spi, struct spi_transfer *xfer,
xfer              445 drivers/spi/spi-omap2-mcspi.c 	count = xfer->len;
xfer              491 drivers/spi/spi-omap2-mcspi.c 		ret = sg_split(xfer->rx_sg.sgl, xfer->rx_sg.nents,
xfer              549 drivers/spi/spi-omap2-mcspi.c 				((u8 *)xfer->rx_buf)[elements++] = w;
xfer              551 drivers/spi/spi-omap2-mcspi.c 				((u16 *)xfer->rx_buf)[elements++] = w;
xfer              553 drivers/spi/spi-omap2-mcspi.c 				((u32 *)xfer->rx_buf)[elements++] = w;
xfer              567 drivers/spi/spi-omap2-mcspi.c 			((u8 *)xfer->rx_buf)[elements] = w;
xfer              569 drivers/spi/spi-omap2-mcspi.c 			((u16 *)xfer->rx_buf)[elements] = w;
xfer              571 drivers/spi/spi-omap2-mcspi.c 			((u32 *)xfer->rx_buf)[elements] = w;
xfer              581 drivers/spi/spi-omap2-mcspi.c omap2_mcspi_txrx_dma(struct spi_device *spi, struct spi_transfer *xfer)
xfer              610 drivers/spi/spi-omap2-mcspi.c 	count = xfer->len;
xfer              620 drivers/spi/spi-omap2-mcspi.c 	rx = xfer->rx_buf;
xfer              621 drivers/spi/spi-omap2-mcspi.c 	tx = xfer->tx_buf;
xfer              633 drivers/spi/spi-omap2-mcspi.c 		omap2_mcspi_tx_dma(spi, xfer, cfg);
xfer              637 drivers/spi/spi-omap2-mcspi.c 		count = omap2_mcspi_rx_dma(spi, xfer, cfg, es);
xfer              690 drivers/spi/spi-omap2-mcspi.c omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
xfer              701 drivers/spi/spi-omap2-mcspi.c 	count = xfer->len;
xfer              720 drivers/spi/spi-omap2-mcspi.c 		rx = xfer->rx_buf;
xfer              721 drivers/spi/spi-omap2-mcspi.c 		tx = xfer->tx_buf;
xfer              768 drivers/spi/spi-omap2-mcspi.c 		rx = xfer->rx_buf;
xfer              769 drivers/spi/spi-omap2-mcspi.c 		tx = xfer->tx_buf;
xfer              815 drivers/spi/spi-omap2-mcspi.c 		rx = xfer->rx_buf;
xfer              816 drivers/spi/spi-omap2-mcspi.c 		tx = xfer->tx_buf;
xfer              861 drivers/spi/spi-omap2-mcspi.c 	if (xfer->rx_buf == NULL) {
xfer             1292 drivers/spi/spi-omap2-mcspi.c 				struct spi_transfer *xfer)
xfer             1307 drivers/spi/spi-omap2-mcspi.c 	return (xfer->len >= DMA_MIN_BYTES);
xfer              425 drivers/spi/spi-orion.c orion_spi_write_read(struct spi_device *spi, struct spi_transfer *xfer)
xfer              434 drivers/spi/spi-orion.c 	count = xfer->len;
xfer              444 drivers/spi/spi-orion.c 	if (vaddr && xfer->tx_buf && word_len == 8) {
xfer              452 drivers/spi/spi-orion.c 		iowrite32_rep(vaddr, xfer->tx_buf, cnt);
xfer              454 drivers/spi/spi-orion.c 			u32 *buf = (u32 *)xfer->tx_buf;
xfer              463 drivers/spi/spi-orion.c 		const u8 *tx = xfer->tx_buf;
xfer              464 drivers/spi/spi-orion.c 		u8 *rx = xfer->rx_buf;
xfer              470 drivers/spi/spi-orion.c 			if (xfer->word_delay_usecs)
xfer              471 drivers/spi/spi-orion.c 				udelay(xfer->word_delay_usecs);
xfer              474 drivers/spi/spi-orion.c 		const u16 *tx = xfer->tx_buf;
xfer              475 drivers/spi/spi-orion.c 		u16 *rx = xfer->rx_buf;
xfer              481 drivers/spi/spi-orion.c 			if (xfer->word_delay_usecs)
xfer              482 drivers/spi/spi-orion.c 				udelay(xfer->word_delay_usecs);
xfer              487 drivers/spi/spi-orion.c 	return xfer->len - count;
xfer              259 drivers/spi/spi-pic32-sqi.c 				  struct spi_transfer *xfer)
xfer              273 drivers/spi/spi-pic32-sqi.c 	if (xfer->rx_buf) {
xfer              275 drivers/spi/spi-pic32-sqi.c 		nbits = xfer->rx_nbits;
xfer              276 drivers/spi/spi-pic32-sqi.c 		sgl = xfer->rx_sg.sgl;
xfer              277 drivers/spi/spi-pic32-sqi.c 		nents = xfer->rx_sg.nents;
xfer              279 drivers/spi/spi-pic32-sqi.c 		nbits = xfer->tx_nbits;
xfer              280 drivers/spi/spi-pic32-sqi.c 		sgl = xfer->tx_sg.sgl;
xfer              281 drivers/spi/spi-pic32-sqi.c 		nents = xfer->tx_sg.nents;
xfer              344 drivers/spi/spi-pic32-sqi.c 	struct spi_transfer *xfer;
xfer              386 drivers/spi/spi-pic32-sqi.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer              387 drivers/spi/spi-pic32-sqi.c 		ret = pic32_sqi_one_transfer(sqi, msg, xfer);
xfer              389 drivers/spi/spi-pic32-sqi.c 			dev_err(&spi->dev, "xfer %p err\n", xfer);
xfer              301 drivers/spi/spi-pic32.c 				  struct spi_transfer *xfer)
xfer              313 drivers/spi/spi-pic32.c 					  xfer->rx_sg.sgl,
xfer              314 drivers/spi/spi-pic32.c 					  xfer->rx_sg.nents,
xfer              323 drivers/spi/spi-pic32.c 					  xfer->tx_sg.sgl,
xfer              324 drivers/spi/spi-pic32.c 					  xfer->tx_sg.nents,
xfer              487 drivers/spi/spi-pic32.c 			      struct spi_transfer *xfer)
xfer              492 drivers/spi/spi-pic32.c 	return (xfer->len >= PIC32_DMA_LEN_MIN) &&
xfer               71 drivers/spi/spi-pxa2xx-dma.c 			   struct spi_transfer *xfer)
xfer              101 drivers/spi/spi-pxa2xx-dma.c 		sgt = &xfer->tx_sg;
xfer              108 drivers/spi/spi-pxa2xx-dma.c 		sgt = &xfer->rx_sg;
xfer              141 drivers/spi/spi-pxa2xx-dma.c 			   struct spi_transfer *xfer)
xfer              146 drivers/spi/spi-pxa2xx-dma.c 	tx_desc = pxa2xx_spi_dma_prepare_one(drv_data, DMA_MEM_TO_DEV, xfer);
xfer              154 drivers/spi/spi-pxa2xx-dma.c 	rx_desc = pxa2xx_spi_dma_prepare_one(drv_data, DMA_DEV_TO_MEM, xfer);
xfer              931 drivers/spi/spi-pxa2xx.c 			       struct spi_transfer *xfer)
xfer              936 drivers/spi/spi-pxa2xx.c 	       xfer->len <= MAX_DMA_LEN &&
xfer              937 drivers/spi/spi-pxa2xx.c 	       xfer->len >= chip->dma_burst_size;
xfer              132 drivers/spi/spi-pxa2xx.h 				  struct spi_transfer *xfer);
xfer              141 drivers/spi/spi-qcom-qspi.c 	struct qspi_xfer xfer;
xfer              166 drivers/spi/spi-qcom-qspi.c 	const struct qspi_xfer *xfer;
xfer              168 drivers/spi/spi-qcom-qspi.c 	xfer = &ctrl->xfer;
xfer              171 drivers/spi/spi-qcom-qspi.c 	pio_xfer_cfg |= xfer->dir;
xfer              172 drivers/spi/spi-qcom-qspi.c 	if (xfer->is_last)
xfer              177 drivers/spi/spi-qcom-qspi.c 	pio_xfer_cfg |= qspi_buswidth_to_iomode(ctrl, xfer->buswidth);
xfer              188 drivers/spi/spi-qcom-qspi.c 	pio_xfer_ctrl |= ctrl->xfer.rem_bytes;
xfer              202 drivers/spi/spi-qcom-qspi.c 	if (ctrl->xfer.dir == QSPI_WRITE)
xfer              220 drivers/spi/spi-qcom-qspi.c 	ctrl->xfer.rem_bytes = 0;
xfer              226 drivers/spi/spi-qcom-qspi.c 				  struct spi_transfer *xfer)
xfer              234 drivers/spi/spi-qcom-qspi.c 	if (xfer->speed_hz)
xfer              235 drivers/spi/spi-qcom-qspi.c 		speed_hz = xfer->speed_hz;
xfer              247 drivers/spi/spi-qcom-qspi.c 	if (xfer->rx_buf) {
xfer              248 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.dir = QSPI_READ;
xfer              249 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.buswidth = xfer->rx_nbits;
xfer              250 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.rx_buf = xfer->rx_buf;
xfer              252 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.dir = QSPI_WRITE;
xfer              253 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.buswidth = xfer->tx_nbits;
xfer              254 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.tx_buf = xfer->tx_buf;
xfer              256 drivers/spi/spi-qcom-qspi.c 	ctrl->xfer.is_last = list_is_last(&xfer->transfer_list,
xfer              258 drivers/spi/spi-qcom-qspi.c 	ctrl->xfer.rem_bytes = xfer->len;
xfer              316 drivers/spi/spi-qcom-qspi.c 	wr_cnts = min(wr_cnts, ctrl->xfer.rem_bytes);
xfer              322 drivers/spi/spi-qcom-qspi.c 		word_buf = ctrl->xfer.rx_buf;
xfer              323 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.rem_bytes -= words_to_read * QSPI_BYTES_PER_WORD;
xfer              325 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.rx_buf = word_buf + words_to_read;
xfer              329 drivers/spi/spi-qcom-qspi.c 		byte_buf = ctrl->xfer.rx_buf;
xfer              331 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.rem_bytes -= bytes_to_read;
xfer              334 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.rx_buf = byte_buf;
xfer              342 drivers/spi/spi-qcom-qspi.c 	const void *xfer_buf = ctrl->xfer.tx_buf;
xfer              353 drivers/spi/spi-qcom-qspi.c 	if (ctrl->xfer.rem_bytes < QSPI_BYTES_PER_WORD) {
xfer              355 drivers/spi/spi-qcom-qspi.c 		wr_size = min(wr_fifo_bytes, ctrl->xfer.rem_bytes);
xfer              356 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.rem_bytes -= wr_size;
xfer              362 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.tx_buf = byte_buf;
xfer              369 drivers/spi/spi-qcom-qspi.c 		rem_words = ctrl->xfer.rem_bytes / QSPI_BYTES_PER_WORD;
xfer              373 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.rem_bytes -= wr_size * QSPI_BYTES_PER_WORD;
xfer              377 drivers/spi/spi-qcom-qspi.c 		ctrl->xfer.tx_buf = word_buf + wr_size;
xfer              396 drivers/spi/spi-qcom-qspi.c 	if (ctrl->xfer.dir == QSPI_WRITE) {
xfer              414 drivers/spi/spi-qcom-qspi.c 	if (!ctrl->xfer.rem_bytes) {
xfer              138 drivers/spi/spi-qup.c 	struct spi_transfer	*xfer;
xfer              154 drivers/spi/spi-qup.c static int spi_qup_io_config(struct spi_device *spi, struct spi_transfer *xfer);
xfer              417 drivers/spi/spi-qup.c 				  struct spi_transfer *xfer)
xfer              419 drivers/spi/spi-qup.c 	if (xfer->tx_buf)
xfer              421 drivers/spi/spi-qup.c 	if (xfer->rx_buf)
xfer              445 drivers/spi/spi-qup.c static int spi_qup_do_dma(struct spi_device *spi, struct spi_transfer *xfer,
xfer              454 drivers/spi/spi-qup.c 	if (xfer->rx_buf)
xfer              456 drivers/spi/spi-qup.c 	else if (xfer->tx_buf)
xfer              459 drivers/spi/spi-qup.c 	rx_sgl = xfer->rx_sg.sgl;
xfer              460 drivers/spi/spi-qup.c 	tx_sgl = xfer->tx_sg.sgl;
xfer              474 drivers/spi/spi-qup.c 		ret = spi_qup_io_config(spi, xfer);
xfer              514 drivers/spi/spi-qup.c static int spi_qup_do_pio(struct spi_device *spi, struct spi_transfer *xfer,
xfer              523 drivers/spi/spi-qup.c 	qup->rx_buf = xfer->rx_buf;
xfer              524 drivers/spi/spi-qup.c 	qup->tx_buf = xfer->tx_buf;
xfer              533 drivers/spi/spi-qup.c 			qup->tx_buf = xfer->tx_buf + offset * SPI_MAX_XFER;
xfer              536 drivers/spi/spi-qup.c 			qup->rx_buf = xfer->rx_buf + offset * SPI_MAX_XFER;
xfer              545 drivers/spi/spi-qup.c 		ret = spi_qup_io_config(spi, xfer);
xfer              661 drivers/spi/spi-qup.c static int spi_qup_io_prep(struct spi_device *spi, struct spi_transfer *xfer)
xfer              666 drivers/spi/spi-qup.c 	if (spi->mode & SPI_LOOP && xfer->len > controller->in_fifo_sz) {
xfer              668 drivers/spi/spi-qup.c 			xfer->len, controller->in_fifo_sz);
xfer              672 drivers/spi/spi-qup.c 	ret = clk_set_rate(controller->cclk, xfer->speed_hz);
xfer              675 drivers/spi/spi-qup.c 			xfer->speed_hz);
xfer              679 drivers/spi/spi-qup.c 	controller->w_size = DIV_ROUND_UP(xfer->bits_per_word, 8);
xfer              680 drivers/spi/spi-qup.c 	controller->n_words = xfer->len / controller->w_size;
xfer              685 drivers/spi/spi-qup.c 		 spi->master->can_dma(spi->master, spi, xfer) &&
xfer              695 drivers/spi/spi-qup.c static int spi_qup_io_config(struct spi_device *spi, struct spi_transfer *xfer)
xfer              702 drivers/spi/spi-qup.c 	controller->xfer     = xfer;
xfer              743 drivers/spi/spi-qup.c 			if (xfer->tx_buf)
xfer              806 drivers/spi/spi-qup.c 	if ((xfer->speed_hz >= SPI_HS_MIN_RATE) && !(spi->mode & SPI_LOOP))
xfer              815 drivers/spi/spi-qup.c 	config |= xfer->bits_per_word - 1;
xfer              819 drivers/spi/spi-qup.c 		if (!xfer->tx_buf)
xfer              821 drivers/spi/spi-qup.c 		if (!xfer->rx_buf)
xfer              847 drivers/spi/spi-qup.c 			      struct spi_transfer *xfer)
xfer              853 drivers/spi/spi-qup.c 	ret = spi_qup_io_prep(spi, xfer);
xfer              857 drivers/spi/spi-qup.c 	timeout = DIV_ROUND_UP(xfer->speed_hz, MSEC_PER_SEC);
xfer              859 drivers/spi/spi-qup.c 				     xfer->len) * 8, timeout);
xfer              865 drivers/spi/spi-qup.c 	controller->xfer     = xfer;
xfer              872 drivers/spi/spi-qup.c 		ret = spi_qup_do_dma(spi, xfer, timeout);
xfer              874 drivers/spi/spi-qup.c 		ret = spi_qup_do_pio(spi, xfer, timeout);
xfer              883 drivers/spi/spi-qup.c 		spi_qup_dma_terminate(master, xfer);
xfer              889 drivers/spi/spi-qup.c 			    struct spi_transfer *xfer)
xfer              895 drivers/spi/spi-qup.c 	if (xfer->rx_buf) {
xfer              896 drivers/spi/spi-qup.c 		if (!IS_ALIGNED((size_t)xfer->rx_buf, dma_align) ||
xfer              899 drivers/spi/spi-qup.c 		if (qup->qup_v1 && (xfer->len % qup->in_blk_sz))
xfer              903 drivers/spi/spi-qup.c 	if (xfer->tx_buf) {
xfer              904 drivers/spi/spi-qup.c 		if (!IS_ALIGNED((size_t)xfer->tx_buf, dma_align) ||
xfer              907 drivers/spi/spi-qup.c 		if (qup->qup_v1 && (xfer->len % qup->out_blk_sz))
xfer              911 drivers/spi/spi-qup.c 	n_words = xfer->len / DIV_ROUND_UP(xfer->bits_per_word, 8);
xfer              339 drivers/spi/spi-rockchip.c 		struct spi_transfer *xfer)
xfer              341 drivers/spi/spi-rockchip.c 	rs->tx = xfer->tx_buf;
xfer              342 drivers/spi/spi-rockchip.c 	rs->rx = xfer->rx_buf;
xfer              343 drivers/spi/spi-rockchip.c 	rs->tx_left = rs->tx ? xfer->len / rs->n_bytes : 0;
xfer              344 drivers/spi/spi-rockchip.c 	rs->rx_left = xfer->len / rs->n_bytes;
xfer              386 drivers/spi/spi-rockchip.c 		struct spi_master *master, struct spi_transfer *xfer)
xfer              393 drivers/spi/spi-rockchip.c 	if (xfer->rx_buf) {
xfer              405 drivers/spi/spi-rockchip.c 				xfer->rx_sg.sgl, xfer->rx_sg.nents,
xfer              415 drivers/spi/spi-rockchip.c 	if (xfer->tx_buf) {
xfer              427 drivers/spi/spi-rockchip.c 				xfer->tx_sg.sgl, xfer->tx_sg.nents,
xfer              459 drivers/spi/spi-rockchip.c 		struct spi_device *spi, struct spi_transfer *xfer,
xfer              474 drivers/spi/spi-rockchip.c 	if (xfer->rx_buf && xfer->tx_buf)
xfer              476 drivers/spi/spi-rockchip.c 	else if (xfer->rx_buf)
xfer              481 drivers/spi/spi-rockchip.c 	switch (xfer->bits_per_word) {
xfer              484 drivers/spi/spi-rockchip.c 		cr1 = xfer->len - 1;
xfer              488 drivers/spi/spi-rockchip.c 		cr1 = xfer->len - 1;
xfer              492 drivers/spi/spi-rockchip.c 		cr1 = xfer->len / 2 - 1;
xfer              503 drivers/spi/spi-rockchip.c 		if (xfer->tx_buf)
xfer              505 drivers/spi/spi-rockchip.c 		if (xfer->rx_buf)
xfer              516 drivers/spi/spi-rockchip.c 	if (xfer->len < rs->fifo_len)
xfer              517 drivers/spi/spi-rockchip.c 		writel_relaxed(xfer->len - 1, rs->regs + ROCKCHIP_SPI_RXFTLR);
xfer              529 drivers/spi/spi-rockchip.c 	writel_relaxed(2 * DIV_ROUND_UP(rs->freq, 2 * xfer->speed_hz),
xfer              541 drivers/spi/spi-rockchip.c 		struct spi_transfer *xfer)
xfer              549 drivers/spi/spi-rockchip.c 	if (!xfer->tx_buf && !xfer->rx_buf) {
xfer              554 drivers/spi/spi-rockchip.c 	if (xfer->len > ROCKCHIP_SPI_MAX_TRANLEN) {
xfer              555 drivers/spi/spi-rockchip.c 		dev_err(rs->dev, "Transfer is too long (%d)\n", xfer->len);
xfer              559 drivers/spi/spi-rockchip.c 	rs->n_bytes = xfer->bits_per_word <= 8 ? 1 : 2;
xfer              561 drivers/spi/spi-rockchip.c 	use_dma = master->can_dma ? master->can_dma(master, spi, xfer) : false;
xfer              563 drivers/spi/spi-rockchip.c 	rockchip_spi_config(rs, spi, xfer, use_dma);
xfer              566 drivers/spi/spi-rockchip.c 		return rockchip_spi_prepare_dma(rs, master, xfer);
xfer              568 drivers/spi/spi-rockchip.c 	return rockchip_spi_prepare_irq(rs, xfer);
xfer              573 drivers/spi/spi-rockchip.c 				 struct spi_transfer *xfer)
xfer              576 drivers/spi/spi-rockchip.c 	unsigned int bytes_per_word = xfer->bits_per_word <= 8 ? 1 : 2;
xfer              582 drivers/spi/spi-rockchip.c 	return xfer->len / bytes_per_word >= rs->fifo_len;
xfer              241 drivers/spi/spi-rspi.c 			    struct spi_device *spi, struct spi_transfer *xfer);
xfer              661 drivers/spi/spi-rspi.c 			   const struct spi_transfer *xfer)
xfer              663 drivers/spi/spi-rspi.c 	return xfer->len > rspi->ops->fifo_size;
xfer              667 drivers/spi/spi-rspi.c 			 struct spi_transfer *xfer)
xfer              671 drivers/spi/spi-rspi.c 	return __rspi_can_dma(rspi, xfer);
xfer              675 drivers/spi/spi-rspi.c 					 struct spi_transfer *xfer)
xfer              677 drivers/spi/spi-rspi.c 	if (!rspi->ctlr->can_dma || !__rspi_can_dma(rspi, xfer))
xfer              681 drivers/spi/spi-rspi.c 	return rspi_dma_transfer(rspi, &xfer->tx_sg,
xfer              682 drivers/spi/spi-rspi.c 				xfer->rx_buf ? &xfer->rx_sg : NULL);
xfer              686 drivers/spi/spi-rspi.c 				struct spi_transfer *xfer)
xfer              690 drivers/spi/spi-rspi.c 	ret = rspi_dma_check_then_transfer(rspi, xfer);
xfer              694 drivers/spi/spi-rspi.c 	ret = rspi_pio_transfer(rspi, xfer->tx_buf, xfer->rx_buf, xfer->len);
xfer              705 drivers/spi/spi-rspi.c 			     struct spi_device *spi, struct spi_transfer *xfer)
xfer              711 drivers/spi/spi-rspi.c 	if (xfer->rx_buf) {
xfer              719 drivers/spi/spi-rspi.c 	return rspi_common_transfer(rspi, xfer);
xfer              724 drivers/spi/spi-rspi.c 				struct spi_transfer *xfer)
xfer              730 drivers/spi/spi-rspi.c 	return rspi_common_transfer(rspi, xfer);
xfer              765 drivers/spi/spi-rspi.c 				struct spi_transfer *xfer)
xfer              771 drivers/spi/spi-rspi.c 	ret = rspi_dma_check_then_transfer(rspi, xfer);
xfer              775 drivers/spi/spi-rspi.c 	return qspi_trigger_transfer_out_in(rspi, xfer->tx_buf,
xfer              776 drivers/spi/spi-rspi.c 					    xfer->rx_buf, xfer->len);
xfer              779 drivers/spi/spi-rspi.c static int qspi_transfer_out(struct rspi_data *rspi, struct spi_transfer *xfer)
xfer              781 drivers/spi/spi-rspi.c 	const u8 *tx = xfer->tx_buf;
xfer              782 drivers/spi/spi-rspi.c 	unsigned int n = xfer->len;
xfer              786 drivers/spi/spi-rspi.c 	if (rspi->ctlr->can_dma && __rspi_can_dma(rspi, xfer)) {
xfer              787 drivers/spi/spi-rspi.c 		ret = rspi_dma_transfer(rspi, &xfer->tx_sg, NULL);
xfer              811 drivers/spi/spi-rspi.c static int qspi_transfer_in(struct rspi_data *rspi, struct spi_transfer *xfer)
xfer              813 drivers/spi/spi-rspi.c 	u8 *rx = xfer->rx_buf;
xfer              814 drivers/spi/spi-rspi.c 	unsigned int n = xfer->len;
xfer              818 drivers/spi/spi-rspi.c 	if (rspi->ctlr->can_dma && __rspi_can_dma(rspi, xfer)) {
xfer              819 drivers/spi/spi-rspi.c 		int ret = rspi_dma_transfer(rspi, NULL, &xfer->rx_sg);
xfer              841 drivers/spi/spi-rspi.c 			     struct spi_device *spi, struct spi_transfer *xfer)
xfer              846 drivers/spi/spi-rspi.c 		return qspi_transfer_out_in(rspi, xfer);
xfer              847 drivers/spi/spi-rspi.c 	} else if (xfer->tx_nbits > SPI_NBITS_SINGLE) {
xfer              849 drivers/spi/spi-rspi.c 		return qspi_transfer_out(rspi, xfer);
xfer              850 drivers/spi/spi-rspi.c 	} else if (xfer->rx_nbits > SPI_NBITS_SINGLE) {
xfer              852 drivers/spi/spi-rspi.c 		return qspi_transfer_in(rspi, xfer);
xfer              855 drivers/spi/spi-rspi.c 		return qspi_transfer_out_in(rspi, xfer);
xfer              859 drivers/spi/spi-rspi.c static u16 qspi_transfer_mode(const struct spi_transfer *xfer)
xfer              861 drivers/spi/spi-rspi.c 	if (xfer->tx_buf)
xfer              862 drivers/spi/spi-rspi.c 		switch (xfer->tx_nbits) {
xfer              870 drivers/spi/spi-rspi.c 	if (xfer->rx_buf)
xfer              871 drivers/spi/spi-rspi.c 		switch (xfer->rx_nbits) {
xfer              886 drivers/spi/spi-rspi.c 	const struct spi_transfer *xfer;
xfer              890 drivers/spi/spi-rspi.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer              891 drivers/spi/spi-rspi.c 		mode = qspi_transfer_mode(xfer);
xfer              893 drivers/spi/spi-rspi.c 			len += xfer->len;
xfer              912 drivers/spi/spi-rspi.c 		len = xfer->len;
xfer              344 drivers/spi/spi-s3c64xx.c 				struct spi_transfer *xfer)
xfer              348 drivers/spi/spi-s3c64xx.c 	return xfer->len > (FIFO_LVL_MASK(sdd) >> 1) + 1;
xfer              352 drivers/spi/spi-s3c64xx.c 				    struct spi_transfer *xfer, int dma_mode)
xfer              371 drivers/spi/spi-s3c64xx.c 		writel(((xfer->len * 8 / sdd->cur_bpw) & 0xffff)
xfer              376 drivers/spi/spi-s3c64xx.c 	if (xfer->tx_buf != NULL) {
xfer              381 drivers/spi/spi-s3c64xx.c 			prepare_dma(&sdd->tx_dma, &xfer->tx_sg);
xfer              386 drivers/spi/spi-s3c64xx.c 					xfer->tx_buf, xfer->len / 4);
xfer              390 drivers/spi/spi-s3c64xx.c 					xfer->tx_buf, xfer->len / 2);
xfer              394 drivers/spi/spi-s3c64xx.c 					xfer->tx_buf, xfer->len);
xfer              400 drivers/spi/spi-s3c64xx.c 	if (xfer->rx_buf != NULL) {
xfer              410 drivers/spi/spi-s3c64xx.c 			writel(((xfer->len * 8 / sdd->cur_bpw) & 0xffff)
xfer              413 drivers/spi/spi-s3c64xx.c 			prepare_dma(&sdd->rx_dma, &xfer->rx_sg);
xfer              443 drivers/spi/spi-s3c64xx.c 				struct spi_transfer *xfer)
xfer              451 drivers/spi/spi-s3c64xx.c 	ms = xfer->len * 8 * 1000 / sdd->cur_speed;
xfer              466 drivers/spi/spi-s3c64xx.c 	if (val && !xfer->rx_buf) {
xfer              486 drivers/spi/spi-s3c64xx.c 				struct spi_transfer *xfer)
xfer              497 drivers/spi/spi-s3c64xx.c 	ms = xfer->len * 8 * 1000 / sdd->cur_speed;
xfer              503 drivers/spi/spi-s3c64xx.c 	} while (RX_FIFO_LVL(status, sdd) < xfer->len && --val);
xfer              509 drivers/spi/spi-s3c64xx.c 	if (!xfer->rx_buf) {
xfer              522 drivers/spi/spi-s3c64xx.c 	loops = xfer->len / ((FIFO_LVL_MASK(sdd) >> 1) + 1);
xfer              523 drivers/spi/spi-s3c64xx.c 	buf = xfer->rx_buf;
xfer              634 drivers/spi/spi-s3c64xx.c 				    struct spi_transfer *xfer)
xfer              650 drivers/spi/spi-s3c64xx.c 	bpw = xfer->bits_per_word;
xfer              651 drivers/spi/spi-s3c64xx.c 	speed = xfer->speed_hz;
xfer              660 drivers/spi/spi-s3c64xx.c 	if (!is_polling(sdd) && (xfer->len > fifo_len) &&
xfer              664 drivers/spi/spi-s3c64xx.c 	} else if (is_polling(sdd) && xfer->len > fifo_len) {
xfer              665 drivers/spi/spi-s3c64xx.c 		tx_buf = xfer->tx_buf;
xfer              666 drivers/spi/spi-s3c64xx.c 		rx_buf = xfer->rx_buf;
xfer              667 drivers/spi/spi-s3c64xx.c 		origin_len = xfer->len;
xfer              669 drivers/spi/spi-s3c64xx.c 		target_len = xfer->len;
xfer              670 drivers/spi/spi-s3c64xx.c 		if (xfer->len > fifo_len)
xfer              671 drivers/spi/spi-s3c64xx.c 			xfer->len = fifo_len;
xfer              681 drivers/spi/spi-s3c64xx.c 		s3c64xx_enable_datapath(sdd, xfer, use_dma);
xfer              689 drivers/spi/spi-s3c64xx.c 			status = s3c64xx_wait_for_dma(sdd, xfer);
xfer              691 drivers/spi/spi-s3c64xx.c 			status = s3c64xx_wait_for_pio(sdd, xfer);
xfer              696 drivers/spi/spi-s3c64xx.c 				xfer->rx_buf ? 1 : 0, xfer->tx_buf ? 1 : 0,
xfer              699 drivers/spi/spi-s3c64xx.c 				xfer->len);
xfer              702 drivers/spi/spi-s3c64xx.c 				if (xfer->tx_buf && (sdd->state & TXBUSY))
xfer              704 drivers/spi/spi-s3c64xx.c 				if (xfer->rx_buf && (sdd->state & RXBUSY))
xfer              711 drivers/spi/spi-s3c64xx.c 			target_len -= xfer->len;
xfer              713 drivers/spi/spi-s3c64xx.c 			if (xfer->tx_buf)
xfer              714 drivers/spi/spi-s3c64xx.c 				xfer->tx_buf += xfer->len;
xfer              716 drivers/spi/spi-s3c64xx.c 			if (xfer->rx_buf)
xfer              717 drivers/spi/spi-s3c64xx.c 				xfer->rx_buf += xfer->len;
xfer              720 drivers/spi/spi-s3c64xx.c 				xfer->len = fifo_len;
xfer              722 drivers/spi/spi-s3c64xx.c 				xfer->len = target_len;
xfer              728 drivers/spi/spi-s3c64xx.c 		xfer->tx_buf = tx_buf;
xfer              729 drivers/spi/spi-s3c64xx.c 		xfer->rx_buf = rx_buf;
xfer              730 drivers/spi/spi-s3c64xx.c 		xfer->len = origin_len;
xfer              147 drivers/spi/spi-slave-mt27xx.c 				       struct spi_transfer *xfer)
xfer              155 drivers/spi/spi-slave-mt27xx.c 	if (xfer->rx_buf)
xfer              157 drivers/spi/spi-slave-mt27xx.c 	if (xfer->tx_buf)
xfer              161 drivers/spi/spi-slave-mt27xx.c 	cnt = xfer->len / 4;
xfer              162 drivers/spi/spi-slave-mt27xx.c 	if (xfer->tx_buf)
xfer              164 drivers/spi/spi-slave-mt27xx.c 			      xfer->tx_buf, cnt);
xfer              166 drivers/spi/spi-slave-mt27xx.c 	remainder = xfer->len % 4;
xfer              167 drivers/spi/spi-slave-mt27xx.c 	if (xfer->tx_buf && remainder > 0) {
xfer              169 drivers/spi/spi-slave-mt27xx.c 		memcpy(&reg_val, xfer->tx_buf + cnt * 4, remainder);
xfer              184 drivers/spi/spi-slave-mt27xx.c 				      struct spi_transfer *xfer)
xfer              192 drivers/spi/spi-slave-mt27xx.c 	if (xfer->tx_buf) {
xfer              196 drivers/spi/spi-slave-mt27xx.c 		void *nonconst_tx = (void *)xfer->tx_buf;
xfer              198 drivers/spi/spi-slave-mt27xx.c 		xfer->tx_dma = dma_map_single(dev, nonconst_tx,
xfer              199 drivers/spi/spi-slave-mt27xx.c 					      xfer->len, DMA_TO_DEVICE);
xfer              200 drivers/spi/spi-slave-mt27xx.c 		if (dma_mapping_error(dev, xfer->tx_dma)) {
xfer              206 drivers/spi/spi-slave-mt27xx.c 	if (xfer->rx_buf) {
xfer              207 drivers/spi/spi-slave-mt27xx.c 		xfer->rx_dma = dma_map_single(dev, xfer->rx_buf,
xfer              208 drivers/spi/spi-slave-mt27xx.c 					      xfer->len, DMA_FROM_DEVICE);
xfer              209 drivers/spi/spi-slave-mt27xx.c 		if (dma_mapping_error(dev, xfer->rx_dma)) {
xfer              215 drivers/spi/spi-slave-mt27xx.c 	writel(xfer->tx_dma, mdata->base + SPIS_TX_SRC_REG);
xfer              216 drivers/spi/spi-slave-mt27xx.c 	writel(xfer->rx_dma, mdata->base + SPIS_RX_DST_REG);
xfer              222 drivers/spi/spi-slave-mt27xx.c 	if (xfer->tx_buf)
xfer              224 drivers/spi/spi-slave-mt27xx.c 	if (xfer->rx_buf)
xfer              230 drivers/spi/spi-slave-mt27xx.c 	reg_val |= (xfer->len - 1) & TX_DMA_LEN;
xfer              234 drivers/spi/spi-slave-mt27xx.c 	if (xfer->tx_buf)
xfer              236 drivers/spi/spi-slave-mt27xx.c 	if (xfer->rx_buf)
xfer              248 drivers/spi/spi-slave-mt27xx.c 	if (xfer->rx_buf)
xfer              249 drivers/spi/spi-slave-mt27xx.c 		dma_unmap_single(dev, xfer->rx_dma,
xfer              250 drivers/spi/spi-slave-mt27xx.c 				 xfer->len, DMA_FROM_DEVICE);
xfer              253 drivers/spi/spi-slave-mt27xx.c 	if (xfer->tx_buf)
xfer              254 drivers/spi/spi-slave-mt27xx.c 		dma_unmap_single(dev, xfer->tx_dma,
xfer              255 drivers/spi/spi-slave-mt27xx.c 				 xfer->len, DMA_TO_DEVICE);
xfer              267 drivers/spi/spi-slave-mt27xx.c 				      struct spi_transfer *xfer)
xfer              273 drivers/spi/spi-slave-mt27xx.c 	mdata->cur_transfer = xfer;
xfer              275 drivers/spi/spi-slave-mt27xx.c 	if (xfer->len > MTK_SPI_SLAVE_MAX_FIFO_SIZE)
xfer              276 drivers/spi/spi-slave-mt27xx.c 		return mtk_spi_slave_dma_transfer(ctlr, spi, xfer);
xfer              278 drivers/spi/spi-slave-mt27xx.c 		return mtk_spi_slave_fifo_transfer(ctlr, spi, xfer);
xfer               41 drivers/spi/spi-slave-system-control.c 	struct spi_transfer xfer;
xfer              101 drivers/spi/spi-slave-system-control.c 	spi_message_init_with_transfers(&priv->msg, &priv->xfer, 1);
xfer              124 drivers/spi/spi-slave-system-control.c 	priv->xfer.rx_buf = &priv->cmd;
xfer              125 drivers/spi/spi-slave-system-control.c 	priv->xfer.len = sizeof(priv->cmd);
xfer               36 drivers/spi/spi-slave-time.c 	struct spi_transfer xfer;
xfer               75 drivers/spi/spi-slave-time.c 	spi_message_init_with_transfers(&priv->msg, &priv->xfer, 1);
xfer               98 drivers/spi/spi-slave-time.c 	priv->xfer.tx_buf = priv->buf;
xfer               99 drivers/spi/spi-slave-time.c 	priv->xfer.len = sizeof(priv->buf);
xfer             1275 drivers/spi/spi-stm32.c 				      struct spi_transfer *xfer)
xfer             1293 drivers/spi/spi-stm32.c 					spi->dma_rx, xfer->rx_sg.sgl,
xfer             1294 drivers/spi/spi-stm32.c 					xfer->rx_sg.nents,
xfer             1305 drivers/spi/spi-stm32.c 					spi->dma_tx, xfer->tx_sg.sgl,
xfer             1306 drivers/spi/spi-stm32.c 					xfer->tx_sg.nents,
xfer              230 drivers/spi/spi-synquacer.c 				struct spi_transfer *xfer)
xfer              237 drivers/spi/spi-synquacer.c 	if (xfer->rx_buf && xfer->tx_buf &&
xfer              238 drivers/spi/spi-synquacer.c 	    (xfer->rx_nbits != 1 || xfer->tx_nbits != 1)) {
xfer              244 drivers/spi/spi-synquacer.c 	if (xfer->tx_buf) {
xfer              245 drivers/spi/spi-synquacer.c 		bus_width = xfer->tx_nbits;
xfer              248 drivers/spi/spi-synquacer.c 		bus_width = xfer->rx_nbits;
xfer              254 drivers/spi/spi-synquacer.c 	speed = xfer->speed_hz;
xfer              255 drivers/spi/spi-synquacer.c 	bpw = xfer->bits_per_word;
xfer              333 drivers/spi/spi-synquacer.c 	if (xfer->rx_buf)
xfer              355 drivers/spi/spi-synquacer.c 				      struct spi_transfer *xfer)
xfer              377 drivers/spi/spi-synquacer.c 	bpw = xfer->bits_per_word;
xfer              378 drivers/spi/spi-synquacer.c 	if (bpw == 8 && !(xfer->len % 4) && !(spi->mode & SPI_LSB_FIRST))
xfer              379 drivers/spi/spi-synquacer.c 		xfer->bits_per_word = 32;
xfer              381 drivers/spi/spi-synquacer.c 	ret = synquacer_spi_config(master, spi, xfer);
xfer              384 drivers/spi/spi-synquacer.c 	xfer->bits_per_word = bpw;
xfer              391 drivers/spi/spi-synquacer.c 	sspi->tx_buf = xfer->tx_buf;
xfer              392 drivers/spi/spi-synquacer.c 	sspi->rx_buf = xfer->rx_buf;
xfer              396 drivers/spi/spi-synquacer.c 		words = xfer->len;
xfer              399 drivers/spi/spi-synquacer.c 		words = xfer->len / 2;
xfer              404 drivers/spi/spi-synquacer.c 		words = xfer->len / 4;
xfer              411 drivers/spi/spi-synquacer.c 	if (xfer->tx_buf)
xfer              416 drivers/spi/spi-synquacer.c 	if (xfer->rx_buf)
xfer              421 drivers/spi/spi-synquacer.c 	if (xfer->tx_buf) {
xfer              430 drivers/spi/spi-synquacer.c 	if (xfer->rx_buf) {
xfer              448 drivers/spi/spi-synquacer.c 	if (xfer->tx_buf) {
xfer              456 drivers/spi/spi-synquacer.c 	if (xfer->rx_buf) {
xfer             1037 drivers/spi/spi-tegra114.c 	struct spi_transfer *xfer;
xfer             1047 drivers/spi/spi-tegra114.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer             1052 drivers/spi/spi-tegra114.c 		cmd1 = tegra_spi_setup_transfer_one(spi, xfer, is_first_msg,
xfer             1055 drivers/spi/spi-tegra114.c 		if (!xfer->len) {
xfer             1061 drivers/spi/spi-tegra114.c 		ret = tegra_spi_start_transfer_one(spi, xfer, cmd1);
xfer             1096 drivers/spi/spi-tegra114.c 		msg->actual_length += xfer->len;
xfer             1101 drivers/spi/spi-tegra114.c 			tegra_spi_transfer_delay(xfer->delay_usecs);
xfer             1103 drivers/spi/spi-tegra114.c 		} else if (list_is_last(&xfer->transfer_list,
xfer             1105 drivers/spi/spi-tegra114.c 			if (xfer->cs_change)
xfer             1109 drivers/spi/spi-tegra114.c 				tegra_spi_transfer_delay(xfer->delay_usecs);
xfer             1111 drivers/spi/spi-tegra114.c 		} else if (xfer->cs_change) {
xfer             1113 drivers/spi/spi-tegra114.c 			tegra_spi_transfer_delay(xfer->delay_usecs);
xfer              312 drivers/spi/spi-tegra20-sflash.c 	struct spi_transfer *xfer;
xfer              319 drivers/spi/spi-tegra20-sflash.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer              321 drivers/spi/spi-tegra20-sflash.c 		ret = tegra_sflash_start_transfer_one(spi, xfer,
xfer              343 drivers/spi/spi-tegra20-sflash.c 		msg->actual_length += xfer->len;
xfer              344 drivers/spi/spi-tegra20-sflash.c 		if (xfer->cs_change && xfer->delay_usecs) {
xfer              347 drivers/spi/spi-tegra20-sflash.c 			udelay(xfer->delay_usecs);
xfer              805 drivers/spi/spi-tegra20-slink.c 				    struct spi_transfer *xfer)
xfer              811 drivers/spi/spi-tegra20-slink.c 	ret = tegra_slink_start_transfer_one(spi, xfer);
xfer               60 drivers/spi/spi-tle62x0.c 	struct spi_transfer xfer = {
xfer               73 drivers/spi/spi-tle62x0.c 	spi_message_add_tail(&xfer, &msg);
xfer              293 drivers/spi/spi.c 				       struct spi_transfer *xfer,
xfer              297 drivers/spi/spi.c 	int l2len = min(fls(xfer->len), SPI_STATISTICS_HISTO_SIZE) - 1;
xfer              307 drivers/spi/spi.c 	stats->bytes += xfer->len;
xfer              308 drivers/spi/spi.c 	if ((xfer->tx_buf) &&
xfer              309 drivers/spi/spi.c 	    (xfer->tx_buf != ctlr->dummy_tx))
xfer              310 drivers/spi/spi.c 		stats->bytes_tx += xfer->len;
xfer              311 drivers/spi/spi.c 	if ((xfer->rx_buf) &&
xfer              312 drivers/spi/spi.c 	    (xfer->rx_buf != ctlr->dummy_rx))
xfer              313 drivers/spi/spi.c 		stats->bytes_rx += xfer->len;
xfer              899 drivers/spi/spi.c 	struct spi_transfer *xfer;
xfer              915 drivers/spi/spi.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer              916 drivers/spi/spi.c 		if (!ctlr->can_dma(ctlr, msg->spi, xfer))
xfer              919 drivers/spi/spi.c 		if (xfer->tx_buf != NULL) {
xfer              920 drivers/spi/spi.c 			ret = spi_map_buf(ctlr, tx_dev, &xfer->tx_sg,
xfer              921 drivers/spi/spi.c 					  (void *)xfer->tx_buf, xfer->len,
xfer              927 drivers/spi/spi.c 		if (xfer->rx_buf != NULL) {
xfer              928 drivers/spi/spi.c 			ret = spi_map_buf(ctlr, rx_dev, &xfer->rx_sg,
xfer              929 drivers/spi/spi.c 					  xfer->rx_buf, xfer->len,
xfer              932 drivers/spi/spi.c 				spi_unmap_buf(ctlr, tx_dev, &xfer->tx_sg,
xfer              946 drivers/spi/spi.c 	struct spi_transfer *xfer;
xfer              962 drivers/spi/spi.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer              963 drivers/spi/spi.c 		if (!ctlr->can_dma(ctlr, msg->spi, xfer))
xfer              966 drivers/spi/spi.c 		spi_unmap_buf(ctlr, rx_dev, &xfer->rx_sg, DMA_FROM_DEVICE);
xfer              967 drivers/spi/spi.c 		spi_unmap_buf(ctlr, tx_dev, &xfer->tx_sg, DMA_TO_DEVICE);
xfer              989 drivers/spi/spi.c 	struct spi_transfer *xfer;
xfer              991 drivers/spi/spi.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer              996 drivers/spi/spi.c 		if (xfer->tx_buf == ctlr->dummy_tx)
xfer              997 drivers/spi/spi.c 			xfer->tx_buf = NULL;
xfer              998 drivers/spi/spi.c 		if (xfer->rx_buf == ctlr->dummy_rx)
xfer              999 drivers/spi/spi.c 			xfer->rx_buf = NULL;
xfer             1007 drivers/spi/spi.c 	struct spi_transfer *xfer;
xfer             1015 drivers/spi/spi.c 		list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer             1017 drivers/spi/spi.c 			    !xfer->tx_buf)
xfer             1018 drivers/spi/spi.c 				max_tx = max(xfer->len, max_tx);
xfer             1020 drivers/spi/spi.c 			    !xfer->rx_buf)
xfer             1021 drivers/spi/spi.c 				max_rx = max(xfer->len, max_rx);
xfer             1042 drivers/spi/spi.c 			list_for_each_entry(xfer, &msg->transfers,
xfer             1044 drivers/spi/spi.c 				if (!xfer->len)
xfer             1046 drivers/spi/spi.c 				if (!xfer->tx_buf)
xfer             1047 drivers/spi/spi.c 					xfer->tx_buf = ctlr->dummy_tx;
xfer             1048 drivers/spi/spi.c 				if (!xfer->rx_buf)
xfer             1049 drivers/spi/spi.c 					xfer->rx_buf = ctlr->dummy_rx;
xfer             1059 drivers/spi/spi.c 			     struct spi_transfer *xfer)
xfer             1071 drivers/spi/spi.c 		ms = 8LL * 1000LL * xfer->len;
xfer             1072 drivers/spi/spi.c 		do_div(ms, xfer->speed_hz);
xfer             1110 drivers/spi/spi.c 					  struct spi_transfer *xfer)
xfer             1112 drivers/spi/spi.c 	u32 delay = xfer->cs_change_delay;
xfer             1113 drivers/spi/spi.c 	u32 unit = xfer->cs_change_delay_unit;
xfer             1134 drivers/spi/spi.c 		hz = xfer->effective_speed_hz ?: xfer->speed_hz / 2;
xfer             1140 drivers/spi/spi.c 			     xfer->cs_change_delay_unit);
xfer             1157 drivers/spi/spi.c 	struct spi_transfer *xfer;
xfer             1168 drivers/spi/spi.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer             1169 drivers/spi/spi.c 		trace_spi_transfer_start(msg, xfer);
xfer             1171 drivers/spi/spi.c 		spi_statistics_add_transfer_stats(statm, xfer, ctlr);
xfer             1172 drivers/spi/spi.c 		spi_statistics_add_transfer_stats(stats, xfer, ctlr);
xfer             1174 drivers/spi/spi.c 		if (xfer->tx_buf || xfer->rx_buf) {
xfer             1177 drivers/spi/spi.c 			ret = ctlr->transfer_one(ctlr, msg->spi, xfer);
xfer             1189 drivers/spi/spi.c 				ret = spi_transfer_wait(ctlr, msg, xfer);
xfer             1194 drivers/spi/spi.c 			if (xfer->len)
xfer             1197 drivers/spi/spi.c 					xfer->len);
xfer             1200 drivers/spi/spi.c 		trace_spi_transfer_stop(msg, xfer);
xfer             1205 drivers/spi/spi.c 		if (xfer->delay_usecs)
xfer             1206 drivers/spi/spi.c 			_spi_transfer_delay_ns(xfer->delay_usecs * 1000);
xfer             1208 drivers/spi/spi.c 		if (xfer->cs_change) {
xfer             1209 drivers/spi/spi.c 			if (list_is_last(&xfer->transfer_list,
xfer             1214 drivers/spi/spi.c 				_spi_transfer_cs_change_delay(msg, xfer);
xfer             1219 drivers/spi/spi.c 		msg->actual_length += xfer->len;
xfer             2807 drivers/spi/spi.c 	struct spi_transfer *xfer;
xfer             2866 drivers/spi/spi.c 		xfer = &rxfer->inserted_transfers[insert - 1 - i];
xfer             2869 drivers/spi/spi.c 		memcpy(xfer, xfer_first, sizeof(*xfer));
xfer             2872 drivers/spi/spi.c 		list_add(&xfer->transfer_list, rxfer->replaced_after);
xfer             2876 drivers/spi/spi.c 			xfer->cs_change = false;
xfer             2877 drivers/spi/spi.c 			xfer->delay_usecs = 0;
xfer             2897 drivers/spi/spi.c 	struct spi_transfer *xfer = *xferp, *xfers;
xfer             2903 drivers/spi/spi.c 	count = DIV_ROUND_UP(xfer->len, maxsize);
xfer             2906 drivers/spi/spi.c 	srt = spi_replace_transfers(msg, xfer, 1, count, NULL, 0, gfp);
xfer             2924 drivers/spi/spi.c 	xfers[0].len = min_t(size_t, maxsize, xfer[0].len);
xfer             2972 drivers/spi/spi.c 	struct spi_transfer *xfer;
xfer             2981 drivers/spi/spi.c 	list_for_each_entry(xfer, &msg->transfers, transfer_list) {
xfer             2982 drivers/spi/spi.c 		if (xfer->len > maxsize) {
xfer             2983 drivers/spi/spi.c 			ret = __spi_split_transfer_maxsize(ctlr, msg, &xfer,
xfer             3132 drivers/spi/spi.c 	struct spi_transfer *xfer;
xfer             3160 drivers/spi/spi.c 		list_for_each_entry(xfer, &message->transfers, transfer_list) {
xfer             3162 drivers/spi/spi.c 			if (list_is_last(&xfer->transfer_list, &message->transfers))
xfer             3164 drivers/spi/spi.c 			xfer->cs_change = 1;
xfer             3177 drivers/spi/spi.c 		list_for_each_entry(xfer, &message->transfers, transfer_list) {
xfer             3178 drivers/spi/spi.c 			if (xfer->rx_buf && xfer->tx_buf)
xfer             3180 drivers/spi/spi.c 			if ((flags & SPI_CONTROLLER_NO_TX) && xfer->tx_buf)
xfer             3182 drivers/spi/spi.c 			if ((flags & SPI_CONTROLLER_NO_RX) && xfer->rx_buf)
xfer             3196 drivers/spi/spi.c 	list_for_each_entry(xfer, &message->transfers, transfer_list) {
xfer             3197 drivers/spi/spi.c 		xfer->effective_speed_hz = 0;
xfer             3198 drivers/spi/spi.c 		message->frame_length += xfer->len;
xfer             3199 drivers/spi/spi.c 		if (!xfer->bits_per_word)
xfer             3200 drivers/spi/spi.c 			xfer->bits_per_word = spi->bits_per_word;
xfer             3202 drivers/spi/spi.c 		if (!xfer->speed_hz)
xfer             3203 drivers/spi/spi.c 			xfer->speed_hz = spi->max_speed_hz;
xfer             3205 drivers/spi/spi.c 		if (ctlr->max_speed_hz && xfer->speed_hz > ctlr->max_speed_hz)
xfer             3206 drivers/spi/spi.c 			xfer->speed_hz = ctlr->max_speed_hz;
xfer             3208 drivers/spi/spi.c 		if (__spi_validate_bits_per_word(ctlr, xfer->bits_per_word))
xfer             3215 drivers/spi/spi.c 		if (xfer->bits_per_word <= 8)
xfer             3217 drivers/spi/spi.c 		else if (xfer->bits_per_word <= 16)
xfer             3223 drivers/spi/spi.c 		if (xfer->len % w_size)
xfer             3226 drivers/spi/spi.c 		if (xfer->speed_hz && ctlr->min_speed_hz &&
xfer             3227 drivers/spi/spi.c 		    xfer->speed_hz < ctlr->min_speed_hz)
xfer             3230 drivers/spi/spi.c 		if (xfer->tx_buf && !xfer->tx_nbits)
xfer             3231 drivers/spi/spi.c 			xfer->tx_nbits = SPI_NBITS_SINGLE;
xfer             3232 drivers/spi/spi.c 		if (xfer->rx_buf && !xfer->rx_nbits)
xfer             3233 drivers/spi/spi.c 			xfer->rx_nbits = SPI_NBITS_SINGLE;
xfer             3238 drivers/spi/spi.c 		if (xfer->tx_buf) {
xfer             3239 drivers/spi/spi.c 			if (xfer->tx_nbits != SPI_NBITS_SINGLE &&
xfer             3240 drivers/spi/spi.c 				xfer->tx_nbits != SPI_NBITS_DUAL &&
xfer             3241 drivers/spi/spi.c 				xfer->tx_nbits != SPI_NBITS_QUAD)
xfer             3243 drivers/spi/spi.c 			if ((xfer->tx_nbits == SPI_NBITS_DUAL) &&
xfer             3246 drivers/spi/spi.c 			if ((xfer->tx_nbits == SPI_NBITS_QUAD) &&
xfer             3251 drivers/spi/spi.c 		if (xfer->rx_buf) {
xfer             3252 drivers/spi/spi.c 			if (xfer->rx_nbits != SPI_NBITS_SINGLE &&
xfer             3253 drivers/spi/spi.c 				xfer->rx_nbits != SPI_NBITS_DUAL &&
xfer             3254 drivers/spi/spi.c 				xfer->rx_nbits != SPI_NBITS_QUAD)
xfer             3256 drivers/spi/spi.c 			if ((xfer->rx_nbits == SPI_NBITS_DUAL) &&
xfer             3259 drivers/spi/spi.c 			if ((xfer->rx_nbits == SPI_NBITS_QUAD) &&
xfer             3264 drivers/spi/spi.c 		if (xfer->word_delay_usecs < spi->word_delay_usecs)
xfer             3265 drivers/spi/spi.c 			xfer->word_delay_usecs = spi->word_delay_usecs;
xfer              151 drivers/staging/comedi/drivers/ni_labpc_common.c 				 enum transfer_type xfer,
xfer              175 drivers/staging/comedi/drivers/ni_labpc_common.c 	if (xfer == fifo_half_full_transfer)
xfer              626 drivers/staging/comedi/drivers/ni_labpc_common.c 	enum transfer_type xfer;
xfer              657 drivers/staging/comedi/drivers/ni_labpc_common.c 		xfer = isa_dma_transfer;
xfer              666 drivers/staging/comedi/drivers/ni_labpc_common.c 		xfer = fifo_half_full_transfer;
xfer              668 drivers/staging/comedi/drivers/ni_labpc_common.c 		xfer = fifo_not_empty_transfer;
xfer              670 drivers/staging/comedi/drivers/ni_labpc_common.c 	devpriv->current_transfer = xfer;
xfer              674 drivers/staging/comedi/drivers/ni_labpc_common.c 	labpc_setup_cmd6_reg(dev, s, mode, xfer, range, aref,
xfer              717 drivers/staging/comedi/drivers/ni_labpc_common.c 	if (xfer == isa_dma_transfer)
xfer              723 drivers/staging/comedi/drivers/ni_labpc_common.c 	if (xfer == fifo_not_empty_transfer)
xfer               26 drivers/staging/greybus/sdio.c 	spinlock_t		xfer;	/* lock to cancel ongoing transfer */
xfer              378 drivers/staging/greybus/sdio.c 		spin_lock(&host->xfer);
xfer              381 drivers/staging/greybus/sdio.c 			spin_unlock(&host->xfer);
xfer              385 drivers/staging/greybus/sdio.c 		spin_unlock(&host->xfer);
xfer              556 drivers/staging/greybus/sdio.c 		spin_lock(&host->xfer);
xfer              558 drivers/staging/greybus/sdio.c 		spin_unlock(&host->xfer);
xfer              806 drivers/staging/greybus/sdio.c 	spin_lock_init(&host->xfer);
xfer              151 drivers/staging/greybus/spilib.c static struct spi_transfer *get_next_xfer(struct spi_transfer *xfer,
xfer              154 drivers/staging/greybus/spilib.c 	if (xfer == list_last_entry(&msg->transfers, struct spi_transfer,
xfer              158 drivers/staging/greybus/spilib.c 	return list_next_entry(xfer, transfer_list);
xfer              167 drivers/staging/greybus/spilib.c 	struct spi_transfer *xfer;
xfer              178 drivers/staging/greybus/spilib.c 	xfer = spi->first_xfer;
xfer              184 drivers/staging/greybus/spilib.c 		spi->last_xfer = xfer;
xfer              186 drivers/staging/greybus/spilib.c 		if (!xfer->tx_buf && !xfer->rx_buf) {
xfer              188 drivers/staging/greybus/spilib.c 				"bufferless transfer, length %u\n", xfer->len);
xfer              196 drivers/staging/greybus/spilib.c 		if (xfer->tx_buf) {
xfer              197 drivers/staging/greybus/spilib.c 			len = xfer->len - spi->tx_xfer_offset;
xfer              205 drivers/staging/greybus/spilib.c 		if (xfer->rx_buf) {
xfer              206 drivers/staging/greybus/spilib.c 			len = xfer->len - spi->rx_xfer_offset;
xfer              218 drivers/staging/greybus/spilib.c 		xfer = get_next_xfer(xfer, msg);
xfer              219 drivers/staging/greybus/spilib.c 		if (!xfer || total_len >= data_max)
xfer              246 drivers/staging/greybus/spilib.c 	xfer = spi->first_xfer;
xfer              248 drivers/staging/greybus/spilib.c 		if (xfer == spi->last_xfer)
xfer              251 drivers/staging/greybus/spilib.c 			xfer_len = xfer->len;
xfer              254 drivers/staging/greybus/spilib.c 		xfer_timeout = xfer_len * 8 * MSEC_PER_SEC / xfer->speed_hz;
xfer              260 drivers/staging/greybus/spilib.c 		gb_xfer->speed_hz = cpu_to_le32(xfer->speed_hz);
xfer              262 drivers/staging/greybus/spilib.c 		gb_xfer->delay_usecs = cpu_to_le16(xfer->delay_usecs);
xfer              263 drivers/staging/greybus/spilib.c 		gb_xfer->cs_change = xfer->cs_change;
xfer              264 drivers/staging/greybus/spilib.c 		gb_xfer->bits_per_word = xfer->bits_per_word;
xfer              267 drivers/staging/greybus/spilib.c 		if (xfer->tx_buf) {
xfer              269 drivers/staging/greybus/spilib.c 			memcpy(tx_data, xfer->tx_buf + spi->tx_xfer_offset,
xfer              274 drivers/staging/greybus/spilib.c 		if (xfer->rx_buf)
xfer              277 drivers/staging/greybus/spilib.c 		if (xfer == spi->last_xfer) {
xfer              285 drivers/staging/greybus/spilib.c 		xfer = get_next_xfer(xfer, msg);
xfer              297 drivers/staging/greybus/spilib.c 	struct spi_transfer *xfer = spi->first_xfer;
xfer              301 drivers/staging/greybus/spilib.c 	while (xfer) {
xfer              303 drivers/staging/greybus/spilib.c 		if (xfer->rx_buf) {
xfer              304 drivers/staging/greybus/spilib.c 			if (xfer == spi->first_xfer)
xfer              305 drivers/staging/greybus/spilib.c 				xfer_len = xfer->len - spi->rx_xfer_offset;
xfer              306 drivers/staging/greybus/spilib.c 			else if (xfer == spi->last_xfer)
xfer              309 drivers/staging/greybus/spilib.c 				xfer_len = xfer->len;
xfer              311 drivers/staging/greybus/spilib.c 			memcpy(xfer->rx_buf + spi->rx_xfer_offset, rx_data,
xfer              316 drivers/staging/greybus/spilib.c 		if (xfer == spi->last_xfer)
xfer              319 drivers/staging/greybus/spilib.c 		xfer = list_next_entry(xfer, transfer_list);
xfer              103 drivers/staging/iio/frequency/ad9832.c 	struct spi_transfer		xfer;
xfer              358 drivers/staging/iio/frequency/ad9832.c 	st->xfer.tx_buf = &st->data;
xfer              359 drivers/staging/iio/frequency/ad9832.c 	st->xfer.len = 2;
xfer              362 drivers/staging/iio/frequency/ad9832.c 	spi_message_add_tail(&st->xfer, &st->msg);
xfer               77 drivers/staging/iio/frequency/ad9834.c 	struct spi_transfer		xfer;
xfer              449 drivers/staging/iio/frequency/ad9834.c 	st->xfer.tx_buf = &st->data;
xfer              450 drivers/staging/iio/frequency/ad9834.c 	st->xfer.len = 2;
xfer              453 drivers/staging/iio/frequency/ad9834.c 	spi_message_add_tail(&st->xfer, &st->msg);
xfer               25 drivers/staging/iio/meter/ade7854-spi.c 	struct spi_transfer xfer = {
xfer               40 drivers/staging/iio/meter/ade7854-spi.c 		xfer.len = 5;
xfer               45 drivers/staging/iio/meter/ade7854-spi.c 		xfer.len = 6;
xfer               51 drivers/staging/iio/meter/ade7854-spi.c 		xfer.len = 7;
xfer               62 drivers/staging/iio/meter/ade7854-spi.c 	ret = spi_sync_transfer(st->spi, &xfer, 1);
xfer              108 drivers/staging/wusbcore/wa-xfer.c 	struct wa_xfer *xfer;		/* out xfer */
xfer              154 drivers/staging/wusbcore/wa-xfer.c static void __wa_populate_dto_urb_isoc(struct wa_xfer *xfer,
xfer              156 drivers/staging/wusbcore/wa-xfer.c static void wa_complete_remaining_xfer_segs(struct wa_xfer *xfer,
xfer              159 drivers/staging/wusbcore/wa-xfer.c static inline void wa_xfer_init(struct wa_xfer *xfer)
xfer              161 drivers/staging/wusbcore/wa-xfer.c 	kref_init(&xfer->refcnt);
xfer              162 drivers/staging/wusbcore/wa-xfer.c 	INIT_LIST_HEAD(&xfer->list_node);
xfer              163 drivers/staging/wusbcore/wa-xfer.c 	spin_lock_init(&xfer->lock);
xfer              174 drivers/staging/wusbcore/wa-xfer.c 	struct wa_xfer *xfer = container_of(_xfer, struct wa_xfer, refcnt);
xfer              175 drivers/staging/wusbcore/wa-xfer.c 	if (xfer->seg) {
xfer              177 drivers/staging/wusbcore/wa-xfer.c 		for (cnt = 0; cnt < xfer->segs; cnt++) {
xfer              178 drivers/staging/wusbcore/wa-xfer.c 			struct wa_seg *seg = xfer->seg[cnt];
xfer              188 drivers/staging/wusbcore/wa-xfer.c 		kfree(xfer->seg);
xfer              190 drivers/staging/wusbcore/wa-xfer.c 	kfree(xfer);
xfer              193 drivers/staging/wusbcore/wa-xfer.c static void wa_xfer_get(struct wa_xfer *xfer)
xfer              195 drivers/staging/wusbcore/wa-xfer.c 	kref_get(&xfer->refcnt);
xfer              198 drivers/staging/wusbcore/wa-xfer.c static void wa_xfer_put(struct wa_xfer *xfer)
xfer              200 drivers/staging/wusbcore/wa-xfer.c 	kref_put(&xfer->refcnt, wa_xfer_destroy);
xfer              266 drivers/staging/wusbcore/wa-xfer.c static void wa_xfer_giveback(struct wa_xfer *xfer)
xfer              270 drivers/staging/wusbcore/wa-xfer.c 	spin_lock_irqsave(&xfer->wa->xfer_list_lock, flags);
xfer              271 drivers/staging/wusbcore/wa-xfer.c 	list_del_init(&xfer->list_node);
xfer              272 drivers/staging/wusbcore/wa-xfer.c 	usb_hcd_unlink_urb_from_ep(&(xfer->wa->wusb->usb_hcd), xfer->urb);
xfer              273 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->wa->xfer_list_lock, flags);
xfer              275 drivers/staging/wusbcore/wa-xfer.c 	wusbhc_giveback_urb(xfer->wa->wusb, xfer->urb, xfer->result);
xfer              276 drivers/staging/wusbcore/wa-xfer.c 	wa_put(xfer->wa);
xfer              277 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_put(xfer);
xfer              285 drivers/staging/wusbcore/wa-xfer.c static void wa_xfer_completion(struct wa_xfer *xfer)
xfer              287 drivers/staging/wusbcore/wa-xfer.c 	if (xfer->wusb_dev)
xfer              288 drivers/staging/wusbcore/wa-xfer.c 		wusb_dev_put(xfer->wusb_dev);
xfer              289 drivers/staging/wusbcore/wa-xfer.c 	rpipe_put(xfer->ep->hcpriv);
xfer              290 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_giveback(xfer);
xfer              301 drivers/staging/wusbcore/wa-xfer.c static void wa_xfer_id_init(struct wa_xfer *xfer)
xfer              303 drivers/staging/wusbcore/wa-xfer.c 	xfer->id = atomic_add_return(1, &xfer->wa->xfer_id_count);
xfer              307 drivers/staging/wusbcore/wa-xfer.c static inline u32 wa_xfer_id(struct wa_xfer *xfer)
xfer              309 drivers/staging/wusbcore/wa-xfer.c 	return xfer->id;
xfer              313 drivers/staging/wusbcore/wa-xfer.c static inline __le32 wa_xfer_id_le32(struct wa_xfer *xfer)
xfer              315 drivers/staging/wusbcore/wa-xfer.c 	return cpu_to_le32(xfer->id);
xfer              323 drivers/staging/wusbcore/wa-xfer.c static unsigned __wa_xfer_is_done(struct wa_xfer *xfer)
xfer              325 drivers/staging/wusbcore/wa-xfer.c 	struct device *dev = &xfer->wa->usb_iface->dev;
xfer              328 drivers/staging/wusbcore/wa-xfer.c 	struct urb *urb = xfer->urb;
xfer              331 drivers/staging/wusbcore/wa-xfer.c 	result = xfer->segs_done == xfer->segs_submitted;
xfer              335 drivers/staging/wusbcore/wa-xfer.c 	for (cnt = 0; cnt < xfer->segs; cnt++) {
xfer              336 drivers/staging/wusbcore/wa-xfer.c 		seg = xfer->seg[cnt];
xfer              341 drivers/staging/wusbcore/wa-xfer.c 					xfer, wa_xfer_id(xfer), cnt,
xfer              347 drivers/staging/wusbcore/wa-xfer.c 			if (!(usb_pipeisoc(xfer->urb->pipe))
xfer              348 drivers/staging/wusbcore/wa-xfer.c 				&& seg->result < xfer->seg_size
xfer              349 drivers/staging/wusbcore/wa-xfer.c 			    && cnt != xfer->segs-1)
xfer              353 drivers/staging/wusbcore/wa-xfer.c 				xfer, wa_xfer_id(xfer), seg->index, found_short,
xfer              357 drivers/staging/wusbcore/wa-xfer.c 			xfer->result = seg->result;
xfer              359 drivers/staging/wusbcore/wa-xfer.c 				xfer, wa_xfer_id(xfer), seg->index, seg->result,
xfer              363 drivers/staging/wusbcore/wa-xfer.c 			xfer->result = seg->result;
xfer              365 drivers/staging/wusbcore/wa-xfer.c 				xfer, wa_xfer_id(xfer), seg->index, seg->result,
xfer              370 drivers/staging/wusbcore/wa-xfer.c 				 xfer, wa_xfer_id(xfer), cnt, seg->status);
xfer              371 drivers/staging/wusbcore/wa-xfer.c 			xfer->result = -EINVAL;
xfer              375 drivers/staging/wusbcore/wa-xfer.c 	xfer->result = 0;
xfer              388 drivers/staging/wusbcore/wa-xfer.c static unsigned __wa_xfer_mark_seg_as_done(struct wa_xfer *xfer,
xfer              392 drivers/staging/wusbcore/wa-xfer.c 	xfer->segs_done++;
xfer              395 drivers/staging/wusbcore/wa-xfer.c 	return __wa_xfer_is_done(xfer);
xfer              440 drivers/staging/wusbcore/wa-xfer.c 		struct wa_xfer *xfer;
xfer              443 drivers/staging/wusbcore/wa-xfer.c 		xfer = wa_xfer_get_by_id(wa, le32_to_cpu(b->cmd.dwTransferID));
xfer              446 drivers/staging/wusbcore/wa-xfer.c 		if (xfer) {
xfer              449 drivers/staging/wusbcore/wa-xfer.c 			struct wa_rpipe *rpipe = xfer->ep->hcpriv;
xfer              452 drivers/staging/wusbcore/wa-xfer.c 				__func__, xfer, wa_xfer_id(xfer));
xfer              453 drivers/staging/wusbcore/wa-xfer.c 			spin_lock_irqsave(&xfer->lock, flags);
xfer              455 drivers/staging/wusbcore/wa-xfer.c 			while (seg_index < xfer->segs) {
xfer              456 drivers/staging/wusbcore/wa-xfer.c 				struct wa_seg *seg = xfer->seg[seg_index];
xfer              466 drivers/staging/wusbcore/wa-xfer.c 			wa_complete_remaining_xfer_segs(xfer, seg_index,
xfer              468 drivers/staging/wusbcore/wa-xfer.c 			done = __wa_xfer_is_done(xfer);
xfer              469 drivers/staging/wusbcore/wa-xfer.c 			spin_unlock_irqrestore(&xfer->lock, flags);
xfer              471 drivers/staging/wusbcore/wa-xfer.c 				wa_xfer_completion(xfer);
xfer              473 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_put(xfer);
xfer              494 drivers/staging/wusbcore/wa-xfer.c static int __wa_xfer_abort(struct wa_xfer *xfer)
xfer              497 drivers/staging/wusbcore/wa-xfer.c 	struct device *dev = &xfer->wa->usb_iface->dev;
xfer              499 drivers/staging/wusbcore/wa-xfer.c 	struct wa_rpipe *rpipe = xfer->ep->hcpriv;
xfer              507 drivers/staging/wusbcore/wa-xfer.c 	b->cmd.dwTransferID = wa_xfer_id_le32(xfer);
xfer              508 drivers/staging/wusbcore/wa-xfer.c 	b->wa = wa_get(xfer->wa);
xfer              511 drivers/staging/wusbcore/wa-xfer.c 	usb_fill_bulk_urb(&b->urb, xfer->wa->usb_dev,
xfer              512 drivers/staging/wusbcore/wa-xfer.c 		usb_sndbulkpipe(xfer->wa->usb_dev,
xfer              513 drivers/staging/wusbcore/wa-xfer.c 				xfer->wa->dto_epd->bEndpointAddress),
xfer              522 drivers/staging/wusbcore/wa-xfer.c 	wa_put(xfer->wa);
xfer              525 drivers/staging/wusbcore/wa-xfer.c 			xfer, result);
xfer              536 drivers/staging/wusbcore/wa-xfer.c static int __wa_seg_calculate_isoc_frame_count(struct wa_xfer *xfer,
xfer              542 drivers/staging/wusbcore/wa-xfer.c 		xfer->urb->iso_frame_desc;
xfer              544 drivers/staging/wusbcore/wa-xfer.c 	while ((index < xfer->urb->number_of_packets)
xfer              546 drivers/staging/wusbcore/wa-xfer.c 				<= xfer->seg_size)) {
xfer              554 drivers/staging/wusbcore/wa-xfer.c 		if ((xfer->wa->quirks & WUSB_QUIRK_ALEREON_HWA_CONCAT_ISOC)
xfer              555 drivers/staging/wusbcore/wa-xfer.c 			&& (xfer->is_inbound == 0)
xfer              578 drivers/staging/wusbcore/wa-xfer.c static ssize_t __wa_xfer_setup_sizes(struct wa_xfer *xfer,
xfer              582 drivers/staging/wusbcore/wa-xfer.c 	struct device *dev = &xfer->wa->usb_iface->dev;
xfer              584 drivers/staging/wusbcore/wa-xfer.c 	struct urb *urb = xfer->urb;
xfer              585 drivers/staging/wusbcore/wa-xfer.c 	struct wa_rpipe *rpipe = xfer->ep->hcpriv;
xfer              606 drivers/staging/wusbcore/wa-xfer.c 	xfer->is_inbound = urb->pipe & USB_DIR_IN ? 1 : 0;
xfer              607 drivers/staging/wusbcore/wa-xfer.c 	xfer->is_dma = urb->transfer_flags & URB_NO_TRANSFER_DMA_MAP ? 1 : 0;
xfer              610 drivers/staging/wusbcore/wa-xfer.c 	xfer->seg_size = le16_to_cpu(rpipe->descr.wBlocks)
xfer              611 drivers/staging/wusbcore/wa-xfer.c 		* 1 << (xfer->wa->wa_descr->bRPipeBlockSize - 1);
xfer              615 drivers/staging/wusbcore/wa-xfer.c 	if (xfer->seg_size < maxpktsize) {
xfer              618 drivers/staging/wusbcore/wa-xfer.c 			xfer->seg_size, maxpktsize);
xfer              622 drivers/staging/wusbcore/wa-xfer.c 	xfer->seg_size = (xfer->seg_size / maxpktsize) * maxpktsize;
xfer              626 drivers/staging/wusbcore/wa-xfer.c 		xfer->segs = 0;
xfer              633 drivers/staging/wusbcore/wa-xfer.c 			index += __wa_seg_calculate_isoc_frame_count(xfer,
xfer              635 drivers/staging/wusbcore/wa-xfer.c 			++xfer->segs;
xfer              638 drivers/staging/wusbcore/wa-xfer.c 		xfer->segs = DIV_ROUND_UP(urb->transfer_buffer_length,
xfer              639 drivers/staging/wusbcore/wa-xfer.c 						xfer->seg_size);
xfer              640 drivers/staging/wusbcore/wa-xfer.c 		if (xfer->segs == 0 && *pxfer_type == WA_XFER_TYPE_CTL)
xfer              641 drivers/staging/wusbcore/wa-xfer.c 			xfer->segs = 1;
xfer              644 drivers/staging/wusbcore/wa-xfer.c 	if (xfer->segs > WA_SEGS_MAX) {
xfer              646 drivers/staging/wusbcore/wa-xfer.c 			(urb->transfer_buffer_length/xfer->seg_size),
xfer              657 drivers/staging/wusbcore/wa-xfer.c 		struct wa_xfer *xfer,
xfer              660 drivers/staging/wusbcore/wa-xfer.c 		xfer->urb->iso_frame_desc;
xfer              678 drivers/staging/wusbcore/wa-xfer.c static void __wa_xfer_setup_hdr0(struct wa_xfer *xfer,
xfer              683 drivers/staging/wusbcore/wa-xfer.c 	struct wa_rpipe *rpipe = xfer->ep->hcpriv;
xfer              684 drivers/staging/wusbcore/wa-xfer.c 	struct wa_seg *seg = xfer->seg[0];
xfer              690 drivers/staging/wusbcore/wa-xfer.c 	xfer_hdr0->dwTransferID = wa_xfer_id_le32(xfer);
xfer              696 drivers/staging/wusbcore/wa-xfer.c 		xfer_ctl->bmAttribute = xfer->is_inbound ? 1 : 0;
xfer              697 drivers/staging/wusbcore/wa-xfer.c 		memcpy(&xfer_ctl->baSetupData, xfer->urb->setup_packet,
xfer              712 drivers/staging/wusbcore/wa-xfer.c 		__wa_setup_isoc_packet_descr(packet_desc, xfer, seg);
xfer              735 drivers/staging/wusbcore/wa-xfer.c 	struct wa_xfer *xfer = seg->xfer;
xfer              749 drivers/staging/wusbcore/wa-xfer.c 	spin_lock_irqsave(&xfer->lock, flags);
xfer              750 drivers/staging/wusbcore/wa-xfer.c 	wa = xfer->wa;
xfer              752 drivers/staging/wusbcore/wa-xfer.c 	if (usb_pipeisoc(xfer->urb->pipe)) {
xfer              770 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_id(xfer), seg->index, seg->isoc_frame_index,
xfer              773 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer              777 drivers/staging/wusbcore/wa-xfer.c 		spin_lock_irqsave(&xfer->lock, flags);
xfer              781 drivers/staging/wusbcore/wa-xfer.c 				wa_xfer_id(xfer), seg->index, seg->result);
xfer              790 drivers/staging/wusbcore/wa-xfer.c 			 __wa_populate_dto_urb_isoc(xfer, seg,
xfer              795 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_get(xfer);
xfer              799 drivers/staging/wusbcore/wa-xfer.c 				       wa_xfer_id(xfer), seg->index, result);
xfer              800 drivers/staging/wusbcore/wa-xfer.c 				spin_unlock_irqrestore(&xfer->lock, flags);
xfer              804 drivers/staging/wusbcore/wa-xfer.c 		spin_unlock_irqrestore(&xfer->lock, flags);
xfer              819 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_id(xfer), seg->index, urb->status);
xfer              824 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_put(xfer);
xfer              829 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_put(xfer);
xfer              831 drivers/staging/wusbcore/wa-xfer.c 	spin_lock_irqsave(&xfer->lock, flags);
xfer              832 drivers/staging/wusbcore/wa-xfer.c 	rpipe = xfer->ep->hcpriv;
xfer              840 drivers/staging/wusbcore/wa-xfer.c 		__wa_xfer_abort(xfer);
xfer              842 drivers/staging/wusbcore/wa-xfer.c 		done = __wa_xfer_mark_seg_as_done(xfer, seg, WA_SEG_ERROR);
xfer              844 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer              850 drivers/staging/wusbcore/wa-xfer.c 		wa_xfer_completion(xfer);
xfer              854 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_put(xfer);
xfer              872 drivers/staging/wusbcore/wa-xfer.c 	struct wa_xfer *xfer = seg->xfer;
xfer              882 drivers/staging/wusbcore/wa-xfer.c 		spin_lock_irqsave(&xfer->lock, flags);
xfer              883 drivers/staging/wusbcore/wa-xfer.c 		wa = xfer->wa;
xfer              886 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_id(xfer), seg->index);
xfer              887 drivers/staging/wusbcore/wa-xfer.c 		if (xfer->is_inbound && seg->status < WA_SEG_PENDING)
xfer              889 drivers/staging/wusbcore/wa-xfer.c 		spin_unlock_irqrestore(&xfer->lock, flags);
xfer              895 drivers/staging/wusbcore/wa-xfer.c 		spin_lock_irqsave(&xfer->lock, flags);
xfer              896 drivers/staging/wusbcore/wa-xfer.c 		wa = xfer->wa;
xfer              898 drivers/staging/wusbcore/wa-xfer.c 		rpipe = xfer->ep->hcpriv;
xfer              900 drivers/staging/wusbcore/wa-xfer.c 				wa_xfer_id(xfer), seg->index, urb->status);
xfer              909 drivers/staging/wusbcore/wa-xfer.c 			__wa_xfer_abort(xfer);
xfer              911 drivers/staging/wusbcore/wa-xfer.c 			done = __wa_xfer_mark_seg_as_done(xfer, seg,
xfer              914 drivers/staging/wusbcore/wa-xfer.c 		spin_unlock_irqrestore(&xfer->lock, flags);
xfer              916 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_completion(xfer);
xfer              921 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_put(xfer);
xfer              945 drivers/staging/wusbcore/wa-xfer.c 	struct wa_xfer *xfer = seg->xfer;
xfer              955 drivers/staging/wusbcore/wa-xfer.c 		spin_lock_irqsave(&xfer->lock, flags);
xfer              956 drivers/staging/wusbcore/wa-xfer.c 		wa = xfer->wa;
xfer              959 drivers/staging/wusbcore/wa-xfer.c 			xfer, wa_xfer_id(xfer), seg->index);
xfer              960 drivers/staging/wusbcore/wa-xfer.c 		if (xfer->is_inbound &&
xfer              962 drivers/staging/wusbcore/wa-xfer.c 			!(usb_pipeisoc(xfer->urb->pipe)))
xfer              964 drivers/staging/wusbcore/wa-xfer.c 		spin_unlock_irqrestore(&xfer->lock, flags);
xfer              970 drivers/staging/wusbcore/wa-xfer.c 		spin_lock_irqsave(&xfer->lock, flags);
xfer              971 drivers/staging/wusbcore/wa-xfer.c 		wa = xfer->wa;
xfer              973 drivers/staging/wusbcore/wa-xfer.c 		rpipe = xfer->ep->hcpriv;
xfer              976 drivers/staging/wusbcore/wa-xfer.c 				xfer, wa_xfer_id(xfer), seg->index,
xfer              987 drivers/staging/wusbcore/wa-xfer.c 		__wa_xfer_abort(xfer);
xfer              989 drivers/staging/wusbcore/wa-xfer.c 		done = __wa_xfer_mark_seg_as_done(xfer, seg, WA_SEG_ERROR);
xfer              990 drivers/staging/wusbcore/wa-xfer.c 		spin_unlock_irqrestore(&xfer->lock, flags);
xfer              992 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_completion(xfer);
xfer              997 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_put(xfer);
xfer             1085 drivers/staging/wusbcore/wa-xfer.c static void __wa_populate_dto_urb_isoc(struct wa_xfer *xfer,
xfer             1092 drivers/staging/wusbcore/wa-xfer.c 	seg->dto_urb->transfer_dma = xfer->urb->transfer_dma +
xfer             1093 drivers/staging/wusbcore/wa-xfer.c 		xfer->urb->iso_frame_desc[curr_iso_frame].offset;
xfer             1095 drivers/staging/wusbcore/wa-xfer.c 	if (xfer->wa->quirks & WUSB_QUIRK_ALEREON_HWA_CONCAT_ISOC)
xfer             1099 drivers/staging/wusbcore/wa-xfer.c 			xfer->urb->iso_frame_desc[curr_iso_frame].length;
xfer             1105 drivers/staging/wusbcore/wa-xfer.c static int __wa_populate_dto_urb(struct wa_xfer *xfer,
xfer             1110 drivers/staging/wusbcore/wa-xfer.c 	if (xfer->is_dma) {
xfer             1112 drivers/staging/wusbcore/wa-xfer.c 			xfer->urb->transfer_dma + buf_itr_offset;
xfer             1123 drivers/staging/wusbcore/wa-xfer.c 		if (xfer->urb->transfer_buffer) {
xfer             1125 drivers/staging/wusbcore/wa-xfer.c 				xfer->urb->transfer_buffer +
xfer             1139 drivers/staging/wusbcore/wa-xfer.c 				xfer->urb->sg,
xfer             1159 drivers/staging/wusbcore/wa-xfer.c static int __wa_xfer_setup_segs(struct wa_xfer *xfer, size_t xfer_hdr_size)
xfer             1162 drivers/staging/wusbcore/wa-xfer.c 	size_t alloc_size = sizeof(*xfer->seg[0])
xfer             1163 drivers/staging/wusbcore/wa-xfer.c 		- sizeof(xfer->seg[0]->xfer_hdr) + xfer_hdr_size;
xfer             1164 drivers/staging/wusbcore/wa-xfer.c 	struct usb_device *usb_dev = xfer->wa->usb_dev;
xfer             1165 drivers/staging/wusbcore/wa-xfer.c 	const struct usb_endpoint_descriptor *dto_epd = xfer->wa->dto_epd;
xfer             1170 drivers/staging/wusbcore/wa-xfer.c 	xfer->seg = kcalloc(xfer->segs, sizeof(xfer->seg[0]), GFP_ATOMIC);
xfer             1171 drivers/staging/wusbcore/wa-xfer.c 	if (xfer->seg == NULL)
xfer             1174 drivers/staging/wusbcore/wa-xfer.c 	buf_size = xfer->urb->transfer_buffer_length;
xfer             1175 drivers/staging/wusbcore/wa-xfer.c 	for (cnt = 0; cnt < xfer->segs; cnt++) {
xfer             1183 drivers/staging/wusbcore/wa-xfer.c 		if (usb_pipeisoc(xfer->urb->pipe)) {
xfer             1185 drivers/staging/wusbcore/wa-xfer.c 				__wa_seg_calculate_isoc_frame_count(xfer,
xfer             1193 drivers/staging/wusbcore/wa-xfer.c 		seg = xfer->seg[cnt] = kmalloc(alloc_size + iso_pkt_descr_size,
xfer             1198 drivers/staging/wusbcore/wa-xfer.c 		seg->xfer = xfer;
xfer             1205 drivers/staging/wusbcore/wa-xfer.c 		buf_itr_size = min(buf_size, xfer->seg_size);
xfer             1207 drivers/staging/wusbcore/wa-xfer.c 		if (usb_pipeisoc(xfer->urb->pipe)) {
xfer             1234 drivers/staging/wusbcore/wa-xfer.c 		if (xfer->is_inbound == 0 && buf_size > 0) {
xfer             1245 drivers/staging/wusbcore/wa-xfer.c 			if (usb_pipeisoc(xfer->urb->pipe)) {
xfer             1252 drivers/staging/wusbcore/wa-xfer.c 				__wa_populate_dto_urb_isoc(xfer, seg,
xfer             1256 drivers/staging/wusbcore/wa-xfer.c 				result = __wa_populate_dto_urb(xfer, seg,
xfer             1275 drivers/staging/wusbcore/wa-xfer.c 	usb_free_urb(xfer->seg[cnt]->dto_urb);
xfer             1277 drivers/staging/wusbcore/wa-xfer.c 	usb_free_urb(xfer->seg[cnt]->isoc_pack_desc_urb);
xfer             1279 drivers/staging/wusbcore/wa-xfer.c 	kfree(xfer->seg[cnt]);
xfer             1280 drivers/staging/wusbcore/wa-xfer.c 	xfer->seg[cnt] = NULL;
xfer             1296 drivers/staging/wusbcore/wa-xfer.c static int __wa_xfer_setup(struct wa_xfer *xfer, struct urb *urb)
xfer             1299 drivers/staging/wusbcore/wa-xfer.c 	struct device *dev = &xfer->wa->usb_iface->dev;
xfer             1304 drivers/staging/wusbcore/wa-xfer.c 	result = __wa_xfer_setup_sizes(xfer, &xfer_type);
xfer             1308 drivers/staging/wusbcore/wa-xfer.c 	result = __wa_xfer_setup_segs(xfer, xfer_hdr_size);
xfer             1311 drivers/staging/wusbcore/wa-xfer.c 			xfer, xfer->segs, result);
xfer             1315 drivers/staging/wusbcore/wa-xfer.c 	xfer_hdr0 = &xfer->seg[0]->xfer_hdr;
xfer             1316 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_id_init(xfer);
xfer             1317 drivers/staging/wusbcore/wa-xfer.c 	__wa_xfer_setup_hdr0(xfer, xfer_hdr0, xfer_type, xfer_hdr_size);
xfer             1323 drivers/staging/wusbcore/wa-xfer.c 			cpu_to_le32(xfer->seg[0]->isoc_size);
xfer             1324 drivers/staging/wusbcore/wa-xfer.c 		for (cnt = 1; cnt < xfer->segs; cnt++) {
xfer             1326 drivers/staging/wusbcore/wa-xfer.c 			struct wa_seg *seg = xfer->seg[cnt];
xfer             1343 drivers/staging/wusbcore/wa-xfer.c 			__wa_setup_isoc_packet_descr(packet_desc, xfer, seg);
xfer             1348 drivers/staging/wusbcore/wa-xfer.c 		xfer_hdr0->dwTransferLength = transfer_size > xfer->seg_size ?
xfer             1349 drivers/staging/wusbcore/wa-xfer.c 			cpu_to_le32(xfer->seg_size) :
xfer             1351 drivers/staging/wusbcore/wa-xfer.c 		transfer_size -=  xfer->seg_size;
xfer             1352 drivers/staging/wusbcore/wa-xfer.c 		for (cnt = 1; cnt < xfer->segs; cnt++) {
xfer             1353 drivers/staging/wusbcore/wa-xfer.c 			xfer_hdr = &xfer->seg[cnt]->xfer_hdr;
xfer             1357 drivers/staging/wusbcore/wa-xfer.c 				transfer_size > xfer->seg_size ?
xfer             1358 drivers/staging/wusbcore/wa-xfer.c 					cpu_to_le32(xfer->seg_size)
xfer             1360 drivers/staging/wusbcore/wa-xfer.c 			xfer->seg[cnt]->status = WA_SEG_READY;
xfer             1361 drivers/staging/wusbcore/wa-xfer.c 			transfer_size -=  xfer->seg_size;
xfer             1376 drivers/staging/wusbcore/wa-xfer.c static int __wa_seg_submit(struct wa_rpipe *rpipe, struct wa_xfer *xfer,
xfer             1388 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_get(xfer);
xfer             1394 drivers/staging/wusbcore/wa-xfer.c 		       __func__, xfer, seg->index, result);
xfer             1395 drivers/staging/wusbcore/wa-xfer.c 		wa_xfer_put(xfer);
xfer             1400 drivers/staging/wusbcore/wa-xfer.c 		wa_xfer_get(xfer);
xfer             1405 drivers/staging/wusbcore/wa-xfer.c 			       __func__, xfer, seg->index, result);
xfer             1406 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_put(xfer);
xfer             1412 drivers/staging/wusbcore/wa-xfer.c 		struct wahc *wa = xfer->wa;
xfer             1413 drivers/staging/wusbcore/wa-xfer.c 		wa_xfer_get(xfer);
xfer             1417 drivers/staging/wusbcore/wa-xfer.c 			       __func__, xfer, seg->index, result);
xfer             1418 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_put(xfer);
xfer             1456 drivers/staging/wusbcore/wa-xfer.c 	struct wa_xfer *xfer;
xfer             1468 drivers/staging/wusbcore/wa-xfer.c 		xfer = seg->xfer;
xfer             1474 drivers/staging/wusbcore/wa-xfer.c 		wa_xfer_get(xfer);
xfer             1475 drivers/staging/wusbcore/wa-xfer.c 		result = __wa_seg_submit(rpipe, xfer, seg, &dto_done);
xfer             1480 drivers/staging/wusbcore/wa-xfer.c 			xfer, wa_xfer_id(xfer), seg->index,
xfer             1486 drivers/staging/wusbcore/wa-xfer.c 			spin_lock_irqsave(&xfer->lock, flags);
xfer             1487 drivers/staging/wusbcore/wa-xfer.c 			__wa_xfer_abort(xfer);
xfer             1492 drivers/staging/wusbcore/wa-xfer.c 			xfer->segs_done++;
xfer             1493 drivers/staging/wusbcore/wa-xfer.c 			done = __wa_xfer_is_done(xfer);
xfer             1494 drivers/staging/wusbcore/wa-xfer.c 			spin_unlock_irqrestore(&xfer->lock, flags);
xfer             1496 drivers/staging/wusbcore/wa-xfer.c 				wa_xfer_completion(xfer);
xfer             1499 drivers/staging/wusbcore/wa-xfer.c 		wa_xfer_put(xfer);
xfer             1541 drivers/staging/wusbcore/wa-xfer.c static int __wa_xfer_submit(struct wa_xfer *xfer)
xfer             1544 drivers/staging/wusbcore/wa-xfer.c 	struct wahc *wa = xfer->wa;
xfer             1549 drivers/staging/wusbcore/wa-xfer.c 	struct wa_rpipe *rpipe = xfer->ep->hcpriv;
xfer             1555 drivers/staging/wusbcore/wa-xfer.c 	list_add_tail(&xfer->list_node, &wa->xfer_list);
xfer             1561 drivers/staging/wusbcore/wa-xfer.c 	for (cnt = 0; cnt < xfer->segs; cnt++) {
xfer             1566 drivers/staging/wusbcore/wa-xfer.c 		seg = xfer->seg[cnt];
xfer             1575 drivers/staging/wusbcore/wa-xfer.c 				result = __wa_seg_submit(rpipe, xfer, seg,
xfer             1578 drivers/staging/wusbcore/wa-xfer.c 					xfer, wa_xfer_id(xfer), cnt, available,
xfer             1584 drivers/staging/wusbcore/wa-xfer.c 					__wa_xfer_abort(xfer);
xfer             1592 drivers/staging/wusbcore/wa-xfer.c 				xfer, wa_xfer_id(xfer), cnt, available,  empty);
xfer             1596 drivers/staging/wusbcore/wa-xfer.c 		xfer->segs_submitted++;
xfer             1639 drivers/staging/wusbcore/wa-xfer.c static int wa_urb_enqueue_b(struct wa_xfer *xfer)
xfer             1643 drivers/staging/wusbcore/wa-xfer.c 	struct urb *urb = xfer->urb;
xfer             1644 drivers/staging/wusbcore/wa-xfer.c 	struct wahc *wa = xfer->wa;
xfer             1649 drivers/staging/wusbcore/wa-xfer.c 	result = rpipe_get_by_ep(wa, xfer->ep, urb, xfer->gfp);
xfer             1671 drivers/staging/wusbcore/wa-xfer.c 	spin_lock_irqsave(&xfer->lock, flags);
xfer             1672 drivers/staging/wusbcore/wa-xfer.c 	xfer->wusb_dev = wusb_dev;
xfer             1679 drivers/staging/wusbcore/wa-xfer.c 	result = __wa_xfer_setup(xfer, urb);
xfer             1689 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_get(xfer);
xfer             1690 drivers/staging/wusbcore/wa-xfer.c 	result = __wa_xfer_submit(xfer);
xfer             1695 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer             1696 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_put(xfer);
xfer             1706 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer             1711 drivers/staging/wusbcore/wa-xfer.c 	rpipe_put(xfer->ep->hcpriv);
xfer             1713 drivers/staging/wusbcore/wa-xfer.c 	xfer->result = result;
xfer             1717 drivers/staging/wusbcore/wa-xfer.c 	done = __wa_xfer_is_done(xfer);
xfer             1718 drivers/staging/wusbcore/wa-xfer.c 	xfer->result = result;
xfer             1719 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer             1721 drivers/staging/wusbcore/wa-xfer.c 		wa_xfer_completion(xfer);
xfer             1722 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_put(xfer);
xfer             1740 drivers/staging/wusbcore/wa-xfer.c 	struct wa_xfer *xfer, *next;
xfer             1754 drivers/staging/wusbcore/wa-xfer.c 	list_for_each_entry_safe(xfer, next, &tmp_list, list_node) {
xfer             1755 drivers/staging/wusbcore/wa-xfer.c 		list_del_init(&xfer->list_node);
xfer             1757 drivers/staging/wusbcore/wa-xfer.c 		urb = xfer->urb;
xfer             1758 drivers/staging/wusbcore/wa-xfer.c 		if (wa_urb_enqueue_b(xfer) < 0)
xfer             1759 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_giveback(xfer);
xfer             1771 drivers/staging/wusbcore/wa-xfer.c 	struct wa_xfer *xfer, *next;
xfer             1786 drivers/staging/wusbcore/wa-xfer.c 	list_for_each_entry_safe(xfer, next, &tmp_list, list_node) {
xfer             1791 drivers/staging/wusbcore/wa-xfer.c 		spin_lock_irqsave(&xfer->lock, flags);
xfer             1792 drivers/staging/wusbcore/wa-xfer.c 		ep = xfer->ep;
xfer             1794 drivers/staging/wusbcore/wa-xfer.c 		spin_unlock_irqrestore(&xfer->lock, flags);
xfer             1800 drivers/staging/wusbcore/wa-xfer.c 		wa_xfer_completion(xfer);
xfer             1825 drivers/staging/wusbcore/wa-xfer.c 	struct wa_xfer *xfer;
xfer             1844 drivers/staging/wusbcore/wa-xfer.c 	xfer = kzalloc(sizeof(*xfer), gfp);
xfer             1845 drivers/staging/wusbcore/wa-xfer.c 	if (xfer == NULL)
xfer             1851 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_init(xfer);
xfer             1852 drivers/staging/wusbcore/wa-xfer.c 	xfer->wa = wa_get(wa);
xfer             1853 drivers/staging/wusbcore/wa-xfer.c 	xfer->urb = urb;
xfer             1854 drivers/staging/wusbcore/wa-xfer.c 	xfer->gfp = gfp;
xfer             1855 drivers/staging/wusbcore/wa-xfer.c 	xfer->ep = ep;
xfer             1856 drivers/staging/wusbcore/wa-xfer.c 	urb->hcpriv = xfer;
xfer             1859 drivers/staging/wusbcore/wa-xfer.c 		xfer, urb, urb->pipe, urb->transfer_buffer_length,
xfer             1867 drivers/staging/wusbcore/wa-xfer.c 		list_add_tail(&xfer->list_node, &wa->xfer_delayed_list);
xfer             1871 drivers/staging/wusbcore/wa-xfer.c 		result = wa_urb_enqueue_b(xfer);
xfer             1880 drivers/staging/wusbcore/wa-xfer.c 			wa_put(xfer->wa);
xfer             1881 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_put(xfer);
xfer             1891 drivers/staging/wusbcore/wa-xfer.c 	kfree(xfer);
xfer             1922 drivers/staging/wusbcore/wa-xfer.c 	struct wa_xfer *xfer;
xfer             1943 drivers/staging/wusbcore/wa-xfer.c 	xfer = urb->hcpriv;
xfer             1944 drivers/staging/wusbcore/wa-xfer.c 	if (xfer == NULL)
xfer             1946 drivers/staging/wusbcore/wa-xfer.c 	spin_lock_irqsave(&xfer->lock, flags);
xfer             1947 drivers/staging/wusbcore/wa-xfer.c 	pr_debug("%s: DEQUEUE xfer id 0x%08X\n", __func__, wa_xfer_id(xfer));
xfer             1948 drivers/staging/wusbcore/wa-xfer.c 	rpipe = xfer->ep->hcpriv;
xfer             1951 drivers/staging/wusbcore/wa-xfer.c 			__func__, xfer, wa_xfer_id(xfer),
xfer             1960 drivers/staging/wusbcore/wa-xfer.c 	if (__wa_xfer_is_done(xfer)) {
xfer             1962 drivers/staging/wusbcore/wa-xfer.c 			xfer, wa_xfer_id(xfer));
xfer             1968 drivers/staging/wusbcore/wa-xfer.c 	if (!list_empty(&xfer->list_node) && xfer->seg == NULL)
xfer             1971 drivers/staging/wusbcore/wa-xfer.c 	if (xfer->seg == NULL)  	/* still hasn't reached */
xfer             1974 drivers/staging/wusbcore/wa-xfer.c 	xfer_abort_pending = __wa_xfer_abort(xfer) >= 0;
xfer             1980 drivers/staging/wusbcore/wa-xfer.c 	for (cnt = 0; cnt < xfer->segs; cnt++) {
xfer             1981 drivers/staging/wusbcore/wa-xfer.c 		seg = xfer->seg[cnt];
xfer             1983 drivers/staging/wusbcore/wa-xfer.c 			__func__, wa_xfer_id(xfer), cnt, seg->status);
xfer             1988 drivers/staging/wusbcore/wa-xfer.c 			       xfer, cnt, seg->status);
xfer             2001 drivers/staging/wusbcore/wa-xfer.c 			xfer->segs_done++;
xfer             2034 drivers/staging/wusbcore/wa-xfer.c 				xfer->segs_done++;
xfer             2040 drivers/staging/wusbcore/wa-xfer.c 	xfer->result = urb->status;	/* -ENOENT or -ECONNRESET */
xfer             2041 drivers/staging/wusbcore/wa-xfer.c 	done = __wa_xfer_is_done(xfer);
xfer             2042 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer             2044 drivers/staging/wusbcore/wa-xfer.c 		wa_xfer_completion(xfer);
xfer             2047 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_put(xfer);
xfer             2051 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer             2052 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_put(xfer);
xfer             2056 drivers/staging/wusbcore/wa-xfer.c 	list_del_init(&xfer->list_node);
xfer             2058 drivers/staging/wusbcore/wa-xfer.c 	xfer->result = urb->status;
xfer             2059 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer             2060 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_giveback(xfer);
xfer             2061 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_put(xfer);
xfer             2125 drivers/staging/wusbcore/wa-xfer.c static void wa_complete_remaining_xfer_segs(struct wa_xfer *xfer,
xfer             2129 drivers/staging/wusbcore/wa-xfer.c 	struct wa_rpipe *rpipe = xfer->ep->hcpriv;
xfer             2131 drivers/staging/wusbcore/wa-xfer.c 	for (index = starting_index; index < xfer->segs_submitted; index++) {
xfer             2132 drivers/staging/wusbcore/wa-xfer.c 		struct wa_seg *current_seg = xfer->seg[index];
xfer             2147 drivers/staging/wusbcore/wa-xfer.c 			xfer->segs_done++;
xfer             2154 drivers/staging/wusbcore/wa-xfer.c 				__func__, wa_xfer_id(xfer), index,
xfer             2163 drivers/staging/wusbcore/wa-xfer.c 	struct urb *buf_in_urb, struct wa_xfer *xfer, struct wa_seg *seg)
xfer             2168 drivers/staging/wusbcore/wa-xfer.c 						xfer->urb->iso_frame_desc;
xfer             2204 drivers/staging/wusbcore/wa-xfer.c 	buf_in_urb->transfer_dma = xfer->urb->transfer_dma +
xfer             2218 drivers/staging/wusbcore/wa-xfer.c static int wa_populate_buf_in_urb(struct urb *buf_in_urb, struct wa_xfer *xfer,
xfer             2222 drivers/staging/wusbcore/wa-xfer.c 	struct wa_seg *seg = xfer->seg[seg_idx];
xfer             2228 drivers/staging/wusbcore/wa-xfer.c 	if (xfer->is_dma) {
xfer             2229 drivers/staging/wusbcore/wa-xfer.c 		buf_in_urb->transfer_dma = xfer->urb->transfer_dma
xfer             2230 drivers/staging/wusbcore/wa-xfer.c 			+ (seg_idx * xfer->seg_size);
xfer             2239 drivers/staging/wusbcore/wa-xfer.c 		if (xfer->urb->transfer_buffer) {
xfer             2241 drivers/staging/wusbcore/wa-xfer.c 				xfer->urb->transfer_buffer
xfer             2242 drivers/staging/wusbcore/wa-xfer.c 				+ (seg_idx * xfer->seg_size);
xfer             2251 drivers/staging/wusbcore/wa-xfer.c 				xfer->urb->sg,
xfer             2252 drivers/staging/wusbcore/wa-xfer.c 				seg_idx * xfer->seg_size,
xfer             2276 drivers/staging/wusbcore/wa-xfer.c static void wa_xfer_result_chew(struct wahc *wa, struct wa_xfer *xfer,
xfer             2291 drivers/staging/wusbcore/wa-xfer.c 	spin_lock_irqsave(&xfer->lock, flags);
xfer             2293 drivers/staging/wusbcore/wa-xfer.c 	if (unlikely(seg_idx >= xfer->segs))
xfer             2295 drivers/staging/wusbcore/wa-xfer.c 	seg = xfer->seg[seg_idx];
xfer             2296 drivers/staging/wusbcore/wa-xfer.c 	rpipe = xfer->ep->hcpriv;
xfer             2299 drivers/staging/wusbcore/wa-xfer.c 		xfer, wa_xfer_id(xfer), seg_idx, usb_status, seg->status);
xfer             2308 drivers/staging/wusbcore/wa-xfer.c 				xfer, seg_idx, seg->status);
xfer             2314 drivers/staging/wusbcore/wa-xfer.c 			xfer, xfer->id, seg->index, usb_status);
xfer             2328 drivers/staging/wusbcore/wa-xfer.c 		wa_complete_remaining_xfer_segs(xfer, seg->index + 1,
xfer             2330 drivers/staging/wusbcore/wa-xfer.c 	if (usb_pipeisoc(xfer->urb->pipe)
xfer             2333 drivers/staging/wusbcore/wa-xfer.c 		wa->dti_isoc_xfer_in_progress = wa_xfer_id(xfer);
xfer             2336 drivers/staging/wusbcore/wa-xfer.c 	} else if (xfer->is_inbound && !usb_pipeisoc(xfer->urb->pipe)
xfer             2340 drivers/staging/wusbcore/wa-xfer.c 		result = wa_populate_buf_in_urb(buf_in_urb, xfer, seg_idx,
xfer             2354 drivers/staging/wusbcore/wa-xfer.c 		done = __wa_xfer_mark_seg_as_done(xfer, seg, WA_SEG_DONE);
xfer             2356 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer             2358 drivers/staging/wusbcore/wa-xfer.c 		wa_xfer_completion(xfer);
xfer             2371 drivers/staging/wusbcore/wa-xfer.c 			xfer, seg_idx, result);
xfer             2376 drivers/staging/wusbcore/wa-xfer.c 	__wa_xfer_abort(xfer);
xfer             2379 drivers/staging/wusbcore/wa-xfer.c 	xfer->segs_done++;
xfer             2381 drivers/staging/wusbcore/wa-xfer.c 	wa_complete_remaining_xfer_segs(xfer, seg->index + 1, seg->status);
xfer             2382 drivers/staging/wusbcore/wa-xfer.c 	done = __wa_xfer_is_done(xfer);
xfer             2388 drivers/staging/wusbcore/wa-xfer.c 		usb_endpoint_xfer_control(&xfer->ep->desc) &&
xfer             2394 drivers/staging/wusbcore/wa-xfer.c 		list_move_tail(&xfer->list_node, &wa->xfer_errored_list);
xfer             2396 drivers/staging/wusbcore/wa-xfer.c 		spin_unlock_irqrestore(&xfer->lock, flags);
xfer             2399 drivers/staging/wusbcore/wa-xfer.c 		spin_unlock_irqrestore(&xfer->lock, flags);
xfer             2401 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_completion(xfer);
xfer             2409 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer             2410 drivers/staging/wusbcore/wa-xfer.c 	wa_urb_dequeue(wa, xfer->urb, -ENOENT);
xfer             2412 drivers/staging/wusbcore/wa-xfer.c 		dev_err(dev, "xfer %p#%u: bad segment\n", xfer, seg_idx);
xfer             2422 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer             2435 drivers/staging/wusbcore/wa-xfer.c 	struct wa_xfer *xfer;
xfer             2452 drivers/staging/wusbcore/wa-xfer.c 	xfer = wa_xfer_get_by_id(wa, wa->dti_isoc_xfer_in_progress);
xfer             2453 drivers/staging/wusbcore/wa-xfer.c 	if (xfer == NULL) {
xfer             2458 drivers/staging/wusbcore/wa-xfer.c 	spin_lock_irqsave(&xfer->lock, flags);
xfer             2459 drivers/staging/wusbcore/wa-xfer.c 	if (unlikely(wa->dti_isoc_xfer_seg >= xfer->segs))
xfer             2461 drivers/staging/wusbcore/wa-xfer.c 	seg = xfer->seg[wa->dti_isoc_xfer_seg];
xfer             2462 drivers/staging/wusbcore/wa-xfer.c 	rpipe = xfer->ep->hcpriv;
xfer             2477 drivers/staging/wusbcore/wa-xfer.c 	xfer->urb->start_frame =
xfer             2481 drivers/staging/wusbcore/wa-xfer.c 			xfer->urb->iso_frame_desc;
xfer             2499 drivers/staging/wusbcore/wa-xfer.c 	if (xfer->is_inbound && data_frame_count) {
xfer             2515 drivers/staging/wusbcore/wa-xfer.c 				buf_in_urb, xfer, seg);
xfer             2527 drivers/staging/wusbcore/wa-xfer.c 				&(xfer->urb->iso_frame_desc[urb_frame_index]);
xfer             2551 drivers/staging/wusbcore/wa-xfer.c 		done = __wa_xfer_mark_seg_as_done(xfer, seg, WA_SEG_DONE);
xfer             2553 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer             2559 drivers/staging/wusbcore/wa-xfer.c 		wa_xfer_completion(xfer);
xfer             2562 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_put(xfer);
xfer             2566 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer             2567 drivers/staging/wusbcore/wa-xfer.c 	wa_xfer_put(xfer);
xfer             2585 drivers/staging/wusbcore/wa-xfer.c 	struct wa_xfer *xfer = seg->xfer;
xfer             2598 drivers/staging/wusbcore/wa-xfer.c 	spin_lock_irqsave(&xfer->lock, flags);
xfer             2599 drivers/staging/wusbcore/wa-xfer.c 	wa = xfer->wa;
xfer             2603 drivers/staging/wusbcore/wa-xfer.c 	rpipe = xfer->ep->hcpriv;
xfer             2605 drivers/staging/wusbcore/wa-xfer.c 	if (usb_pipeisoc(xfer->urb->pipe)) {
xfer             2607 drivers/staging/wusbcore/wa-xfer.c 			xfer->urb->iso_frame_desc;
xfer             2628 drivers/staging/wusbcore/wa-xfer.c 	spin_unlock_irqrestore(&xfer->lock, flags);
xfer             2632 drivers/staging/wusbcore/wa-xfer.c 		spin_lock_irqsave(&xfer->lock, flags);
xfer             2640 drivers/staging/wusbcore/wa-xfer.c 				 xfer, seg);
xfer             2663 drivers/staging/wusbcore/wa-xfer.c 				xfer, wa_xfer_id(xfer), seg->index,
xfer             2666 drivers/staging/wusbcore/wa-xfer.c 			done = __wa_xfer_mark_seg_as_done(xfer, seg,
xfer             2669 drivers/staging/wusbcore/wa-xfer.c 		spin_unlock_irqrestore(&xfer->lock, flags);
xfer             2671 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_completion(xfer);
xfer             2685 drivers/staging/wusbcore/wa-xfer.c 		spin_lock_irqsave(&xfer->lock, flags);
xfer             2688 drivers/staging/wusbcore/wa-xfer.c 				xfer, wa_xfer_id(xfer), seg->index,
xfer             2699 drivers/staging/wusbcore/wa-xfer.c 			done = __wa_xfer_mark_seg_as_done(xfer, seg,
xfer             2702 drivers/staging/wusbcore/wa-xfer.c 			__wa_xfer_abort(xfer);
xfer             2703 drivers/staging/wusbcore/wa-xfer.c 		spin_unlock_irqrestore(&xfer->lock, flags);
xfer             2705 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_completion(xfer);
xfer             2763 drivers/staging/wusbcore/wa-xfer.c 			struct wa_xfer *xfer;
xfer             2794 drivers/staging/wusbcore/wa-xfer.c 			xfer = wa_xfer_get_by_id(wa, xfer_id);
xfer             2795 drivers/staging/wusbcore/wa-xfer.c 			if (xfer == NULL) {
xfer             2801 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_result_chew(wa, xfer, xfer_result);
xfer             2802 drivers/staging/wusbcore/wa-xfer.c 			wa_xfer_put(xfer);
xfer              627 drivers/tty/serial/max310x.c 	struct spi_transfer xfer[] = {
xfer              636 drivers/tty/serial/max310x.c 	spi_sync_transfer(to_spi_device(port->dev), xfer, ARRAY_SIZE(xfer));
xfer              642 drivers/tty/serial/max310x.c 	struct spi_transfer xfer[] = {
xfer              651 drivers/tty/serial/max310x.c 	spi_sync_transfer(to_spi_device(port->dev), xfer, ARRAY_SIZE(xfer));
xfer              989 drivers/usb/gadget/function/u_serial.c 	int xfer, ret, count, size;
xfer             1010 drivers/usb/gadget/function/u_serial.c 			xfer = kfifo_out(&info->con_buf, req->buf, size);
xfer             1011 drivers/usb/gadget/function/u_serial.c 			req->length = xfer;
xfer               76 drivers/vhost/vringh.c 				      int (*xfer)(void *addr, void *ptr,
xfer               85 drivers/vhost/vringh.c 		err = xfer(iov->iov[iov->i].iov_base, ptr, partlen);
xfer              164 drivers/video/backlight/ams369fg06.c 	struct spi_transfer xfer = {
xfer              172 drivers/video/backlight/ams369fg06.c 	spi_message_add_tail(&xfer, &msg);
xfer              174 drivers/video/backlight/corgi_lcd.c 	struct spi_transfer xfer = {
xfer              182 drivers/video/backlight/corgi_lcd.c 	spi_message_add_tail(&xfer, &msg);
xfer              219 drivers/video/backlight/hx8357.c 	struct spi_transfer xfer[2];
xfer              223 drivers/video/backlight/hx8357.c 	memset(xfer, 0, sizeof(xfer));
xfer              240 drivers/video/backlight/hx8357.c 		xfer[0].len = 2 * txlen;
xfer              241 drivers/video/backlight/hx8357.c 		xfer[0].bits_per_word = 9;
xfer              242 drivers/video/backlight/hx8357.c 		xfer[0].tx_buf = local_txbuf;
xfer              243 drivers/video/backlight/hx8357.c 		spi_message_add_tail(&xfer[0], &msg);
xfer              247 drivers/video/backlight/hx8357.c 		xfer[1].len = rxlen;
xfer              248 drivers/video/backlight/hx8357.c 		xfer[1].bits_per_word = 8;
xfer              249 drivers/video/backlight/hx8357.c 		xfer[1].rx_buf = rxbuf;
xfer              250 drivers/video/backlight/hx8357.c 		spi_message_add_tail(&xfer[1], &msg);
xfer              150 drivers/video/backlight/ili922x.c 	struct spi_transfer xfer;
xfer              155 drivers/video/backlight/ili922x.c 	memset(&xfer, 0, sizeof(struct spi_transfer));
xfer              157 drivers/video/backlight/ili922x.c 	xfer.tx_buf = tbuf;
xfer              158 drivers/video/backlight/ili922x.c 	xfer.rx_buf = rbuf;
xfer              159 drivers/video/backlight/ili922x.c 	xfer.cs_change = 1;
xfer              160 drivers/video/backlight/ili922x.c 	CHECK_FREQ_REG(spi, &xfer);
xfer              171 drivers/video/backlight/ili922x.c 	xfer.bits_per_word = 8;
xfer              172 drivers/video/backlight/ili922x.c 	xfer.len = 4;
xfer              173 drivers/video/backlight/ili922x.c 	spi_message_add_tail(&xfer, &msg);
xfer              320 drivers/video/backlight/ili922x.c 	struct spi_transfer xfer;
xfer              323 drivers/video/backlight/ili922x.c 	memset(&xfer, 0, sizeof(struct spi_transfer));
xfer              326 drivers/video/backlight/ili922x.c 	xfer.tx_buf = tbuf;
xfer              327 drivers/video/backlight/ili922x.c 	xfer.rx_buf = NULL;
xfer              328 drivers/video/backlight/ili922x.c 	xfer.cs_change = 1;
xfer              334 drivers/video/backlight/ili922x.c 	xfer.bits_per_word = 8;
xfer              335 drivers/video/backlight/ili922x.c 	xfer.len = 3;
xfer              336 drivers/video/backlight/ili922x.c 	spi_message_add_tail(&xfer, &msg);
xfer              182 drivers/video/backlight/ili9320.c 	spi->xfer[0].tx_buf = spi->buffer_addr;
xfer              183 drivers/video/backlight/ili9320.c 	spi->xfer[1].tx_buf = spi->buffer_data;
xfer              184 drivers/video/backlight/ili9320.c 	spi->xfer[0].len = 3;
xfer              185 drivers/video/backlight/ili9320.c 	spi->xfer[1].len = 3;
xfer              186 drivers/video/backlight/ili9320.c 	spi->xfer[0].bits_per_word = 8;
xfer              187 drivers/video/backlight/ili9320.c 	spi->xfer[1].bits_per_word = 8;
xfer              188 drivers/video/backlight/ili9320.c 	spi->xfer[0].cs_change = 1;
xfer              191 drivers/video/backlight/ili9320.c 	spi_message_add_tail(&spi->xfer[0], &spi->message);
xfer              192 drivers/video/backlight/ili9320.c 	spi_message_add_tail(&spi->xfer[1], &spi->message);
xfer               29 drivers/video/backlight/ili9320.h 	struct spi_transfer	xfer[2];
xfer              117 drivers/video/backlight/lms501kf03.c 	struct spi_transfer xfer = {
xfer              125 drivers/video/backlight/lms501kf03.c 	spi_message_add_tail(&xfer, &msg);
xfer               30 drivers/video/backlight/tdo24m.c 	struct spi_transfer	xfer;
xfer              177 drivers/video/backlight/tdo24m.c 	struct spi_transfer *x = &lcd->xfer;
xfer              365 drivers/video/backlight/tdo24m.c 	x = &lcd->xfer;
xfer               46 drivers/video/backlight/tosa_lcd.c 	struct spi_transfer xfer = {
xfer               54 drivers/video/backlight/tosa_lcd.c 	spi_message_add_tail(&xfer, &msg);
xfer               58 drivers/video/fbdev/omap/lcd_mipid.c 	struct spi_transfer	*x, xfer[4];
xfer               66 drivers/video/fbdev/omap/lcd_mipid.c 	memset(xfer, 0, sizeof(xfer));
xfer               67 drivers/video/fbdev/omap/lcd_mipid.c 	x = &xfer[0];
xfer              109 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	struct spi_transfer	*x, xfer[5];
xfer              116 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	memset(xfer, 0, sizeof(xfer));
xfer              117 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c 	x = &xfer[0];
xfer               97 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	struct spi_transfer	xfer;
xfer              103 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	memset(&xfer, 0, sizeof(xfer));
xfer              106 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	xfer.tx_buf = &w;
xfer              107 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	xfer.bits_per_word = 16;
xfer              108 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	xfer.len = 2;
xfer              109 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c 	spi_message_add_tail(&xfer, &m);
xfer             1101 fs/dax.c       	size_t xfer;
xfer             1164 fs/dax.c       			xfer = dax_copy_from_iter(dax_dev, pgoff, kaddr,
xfer             1167 fs/dax.c       			xfer = dax_copy_to_iter(dax_dev, pgoff, kaddr,
xfer             1170 fs/dax.c       		pos += xfer;
xfer             1171 fs/dax.c       		length -= xfer;
xfer             1172 fs/dax.c       		done += xfer;
xfer             1174 fs/dax.c       		if (xfer == 0)
xfer             1176 fs/dax.c       		if (xfer < map_len)
xfer               66 include/linux/iio/imu/adis.h 	struct spi_transfer	*xfer;
xfer               78 include/linux/spi/spi.h 				       struct spi_transfer *xfer,
xfer              542 include/linux/spi/spi.h 					   struct spi_transfer *xfer);
xfer             1376 include/linux/spi/spi.h spi_transfer_is_last(struct spi_controller *ctlr, struct spi_transfer *xfer)
xfer             1378 include/linux/spi/spi.h 	return list_is_last(&xfer->transfer_list, &ctlr->cur_msg->transfers);
xfer               73 include/net/caif/caif_spi.h 	int (*init_xfer) (struct cfspi_xfer *xfer, struct cfspi_dev *dev);
xfer               74 include/net/caif/caif_spi.h 	void (*sig_xfer) (bool xfer, struct cfspi_dev *dev);
xfer              111 include/net/caif/caif_spi.h 	struct cfspi_xfer xfer;
xfer              838 include/soc/tegra/bpmp-abi.h 	struct cmd_i2c_xfer_request xfer;
xfer              845 include/soc/tegra/bpmp-abi.h 	struct cmd_i2c_xfer_response xfer;
xfer              117 include/trace/events/spi.h #define spi_valid_txbuf(msg, xfer) \
xfer              118 include/trace/events/spi.h 	(xfer->tx_buf && xfer->tx_buf != msg->spi->controller->dummy_tx)
xfer              119 include/trace/events/spi.h #define spi_valid_rxbuf(msg, xfer) \
xfer              120 include/trace/events/spi.h 	(xfer->rx_buf && xfer->rx_buf != msg->spi->controller->dummy_rx)
xfer              124 include/trace/events/spi.h 	TP_PROTO(struct spi_message *msg, struct spi_transfer *xfer),
xfer              126 include/trace/events/spi.h 	TP_ARGS(msg, xfer),
xfer              131 include/trace/events/spi.h 		__field(        struct spi_transfer *,   xfer   )
xfer              134 include/trace/events/spi.h 				spi_valid_rxbuf(msg, xfer) ?
xfer              135 include/trace/events/spi.h 					(xfer->len < 64 ? xfer->len : 64) : 0)
xfer              137 include/trace/events/spi.h 				spi_valid_txbuf(msg, xfer) ?
xfer              138 include/trace/events/spi.h 					(xfer->len < 64 ? xfer->len : 64) : 0)
xfer              144 include/trace/events/spi.h 		__entry->xfer = xfer;
xfer              145 include/trace/events/spi.h 		__entry->len = xfer->len;
xfer              147 include/trace/events/spi.h 		if (spi_valid_txbuf(msg, xfer))
xfer              149 include/trace/events/spi.h 			       xfer->tx_buf, __get_dynamic_array_len(tx_buf));
xfer              151 include/trace/events/spi.h 		if (spi_valid_rxbuf(msg, xfer))
xfer              153 include/trace/events/spi.h 			       xfer->rx_buf, __get_dynamic_array_len(rx_buf));
xfer              158 include/trace/events/spi.h 		  __entry->xfer, __entry->len,
xfer              165 include/trace/events/spi.h 	TP_PROTO(struct spi_message *msg, struct spi_transfer *xfer),
xfer              167 include/trace/events/spi.h 	TP_ARGS(msg, xfer)
xfer              173 include/trace/events/spi.h 	TP_PROTO(struct spi_message *msg, struct spi_transfer *xfer),
xfer              175 include/trace/events/spi.h 	TP_ARGS(msg, xfer)
xfer              648 lib/iov_iter.c 	size_t n, off, xfer = 0;
xfer              665 lib/iov_iter.c 		xfer += chunk - rem;
xfer              671 lib/iov_iter.c 	i->count -= xfer;
xfer              672 lib/iov_iter.c 	return xfer;
xfer               55 net/rds/ib.h   	struct list_head	 *xfer;
xfer               92 net/rds/ib_recv.c 	tmp = xchg(&cache->xfer, NULL);
xfer              115 net/rds/ib_recv.c 	cache->xfer = NULL;
xfer              504 net/rds/ib_recv.c 		old = xchg(&cache->xfer, NULL);
xfer              507 net/rds/ib_recv.c 		old = cmpxchg(&cache->xfer, NULL, chpfirst);
xfer             1370 sound/core/oss/pcm_oss.c 	size_t xfer = 0;
xfer             1399 sound/core/oss/pcm_oss.c 			xfer += tmp;
xfer             1426 sound/core/oss/pcm_oss.c 			xfer += tmp;
xfer             1442 sound/core/oss/pcm_oss.c 	return xfer > 0 ? (snd_pcm_sframes_t)xfer : tmp;
xfer             1480 sound/core/oss/pcm_oss.c 	size_t xfer = 0;
xfer             1514 sound/core/oss/pcm_oss.c 			xfer += tmp;
xfer             1524 sound/core/oss/pcm_oss.c 			xfer += tmp;
xfer             1537 sound/core/oss/pcm_oss.c 	return xfer > 0 ? (snd_pcm_sframes_t)xfer : tmp;
xfer             2111 sound/core/pcm_lib.c 	snd_pcm_uframes_t xfer = 0;
xfer             2232 sound/core/pcm_lib.c 		xfer += frames;
xfer             2244 sound/core/pcm_lib.c 	if (xfer > 0 && err >= 0)
xfer             2247 sound/core/pcm_lib.c 	return xfer > 0 ? (snd_pcm_sframes_t)xfer : err;
xfer               62 sound/soc/codecs/rl6347a.c 	struct i2c_msg xfer[2];
xfer               83 sound/soc/codecs/rl6347a.c 	xfer[0].addr = client->addr;
xfer               84 sound/soc/codecs/rl6347a.c 	xfer[0].flags = 0;
xfer               85 sound/soc/codecs/rl6347a.c 	xfer[0].len = 4;
xfer               86 sound/soc/codecs/rl6347a.c 	xfer[0].buf = (u8 *)&be_reg;
xfer               89 sound/soc/codecs/rl6347a.c 	xfer[1].addr = client->addr;
xfer               90 sound/soc/codecs/rl6347a.c 	xfer[1].flags = I2C_M_RD;
xfer               91 sound/soc/codecs/rl6347a.c 	xfer[1].len = 4;
xfer               92 sound/soc/codecs/rl6347a.c 	xfer[1].buf = (u8 *)&buf;
xfer               94 sound/soc/codecs/rl6347a.c 	ret = i2c_transfer(client->adapter, xfer, 2);
xfer              217 sound/soc/codecs/wm0010.c 	struct wm0010_boot_xfer *xfer = data;
xfer              218 sound/soc/codecs/wm0010.c 	struct snd_soc_component *component = xfer->component;
xfer              220 sound/soc/codecs/wm0010.c 	u32 *out32 = xfer->t.rx_buf;
xfer              223 sound/soc/codecs/wm0010.c 	if (xfer->m.status != 0) {
xfer              225 sound/soc/codecs/wm0010.c 			xfer->m.status);
xfer              227 sound/soc/codecs/wm0010.c 		if (xfer->done)
xfer              228 sound/soc/codecs/wm0010.c 			complete(xfer->done);
xfer              232 sound/soc/codecs/wm0010.c 	for (i = 0; i < xfer->t.len / 4; i++) {
xfer              330 sound/soc/codecs/wm0010.c 	if (xfer->done)
xfer              331 sound/soc/codecs/wm0010.c 		complete(xfer->done);
xfer              347 sound/soc/codecs/wm0010.c 	struct wm0010_boot_xfer *xfer;
xfer              410 sound/soc/codecs/wm0010.c 		xfer = kzalloc(sizeof(*xfer), GFP_KERNEL);
xfer              411 sound/soc/codecs/wm0010.c 		if (!xfer) {
xfer              416 sound/soc/codecs/wm0010.c 		xfer->component = component;
xfer              417 sound/soc/codecs/wm0010.c 		list_add_tail(&xfer->list, &xfer_list);
xfer              424 sound/soc/codecs/wm0010.c 		xfer->t.rx_buf = out;
xfer              431 sound/soc/codecs/wm0010.c 		xfer->t.tx_buf = img;
xfer              435 sound/soc/codecs/wm0010.c 		spi_message_init(&xfer->m);
xfer              436 sound/soc/codecs/wm0010.c 		xfer->m.complete = wm0010_boot_xfer_complete;
xfer              437 sound/soc/codecs/wm0010.c 		xfer->m.context = xfer;
xfer              438 sound/soc/codecs/wm0010.c 		xfer->t.len = len;
xfer              439 sound/soc/codecs/wm0010.c 		xfer->t.bits_per_word = 8;
xfer              442 sound/soc/codecs/wm0010.c 			xfer->t.speed_hz = wm0010->sysclk / 6;
xfer              444 sound/soc/codecs/wm0010.c 			xfer->t.speed_hz = wm0010->max_spi_freq;
xfer              448 sound/soc/codecs/wm0010.c 					xfer->t.speed_hz = wm0010->board_max_spi_speed;
xfer              452 sound/soc/codecs/wm0010.c 		wm0010->max_spi_freq = xfer->t.speed_hz;
xfer              454 sound/soc/codecs/wm0010.c 		spi_message_add_tail(&xfer->t, &xfer->m);
xfer              461 sound/soc/codecs/wm0010.c 			xfer->done = &done;
xfer              464 sound/soc/codecs/wm0010.c 		ret = spi_async(spi, &xfer->m);
xfer              483 sound/soc/codecs/wm0010.c 		xfer = list_first_entry(&xfer_list, struct wm0010_boot_xfer,
xfer              485 sound/soc/codecs/wm0010.c 		kfree(xfer->t.rx_buf);
xfer              486 sound/soc/codecs/wm0010.c 		kfree(xfer->t.tx_buf);
xfer              487 sound/soc/codecs/wm0010.c 		list_del(&xfer->list);
xfer              488 sound/soc/codecs/wm0010.c 		kfree(xfer);
xfer               51 tools/spi/spidev_fdx.c 	struct spi_ioc_transfer	xfer[2];
xfer               55 tools/spi/spidev_fdx.c 	memset(xfer, 0, sizeof xfer);
xfer               62 tools/spi/spidev_fdx.c 	xfer[0].tx_buf = (unsigned long)buf;
xfer               63 tools/spi/spidev_fdx.c 	xfer[0].len = 1;
xfer               65 tools/spi/spidev_fdx.c 	xfer[1].rx_buf = (unsigned long) buf;
xfer               66 tools/spi/spidev_fdx.c 	xfer[1].len = len;
xfer               68 tools/spi/spidev_fdx.c 	status = ioctl(fd, SPI_IOC_MESSAGE(2), xfer);