Home
last modified time | relevance | path

Searched refs:packet_size (Results 1 – 25 of 34) sorted by relevance

12

/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_buffer.c154 size_t packet_size; in inv_icm42600_get_packet_size() local
158 packet_size = INV_ICM42600_FIFO_2SENSORS_PACKET_SIZE; in inv_icm42600_get_packet_size()
160 packet_size = INV_ICM42600_FIFO_1SENSOR_PACKET_SIZE; in inv_icm42600_get_packet_size()
162 return packet_size; in inv_icm42600_get_packet_size()
166 size_t packet_size) in inv_icm42600_wm_truncate() argument
171 wm_size = watermark * packet_size; in inv_icm42600_wm_truncate()
175 wm = wm_size / packet_size; in inv_icm42600_wm_truncate()
204 size_t packet_size, wm_size; in inv_icm42600_buffer_update_watermark() local
212 packet_size = inv_icm42600_get_packet_size(st->fifo.en); in inv_icm42600_buffer_update_watermark()
215 wm_gyro = inv_icm42600_wm_truncate(st->fifo.watermark.gyro, packet_size); in inv_icm42600_buffer_update_watermark()
[all …]
/drivers/media/usb/gspca/stv06xx/
Dstv06xx.c276 int err, packet_size; in stv06xx_start() local
288 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in stv06xx_start()
289 err = stv06xx_write_bridge(sd, STV_ISO_SIZE_L, packet_size); in stv06xx_start()
335 int ret, packet_size, min_packet_size; in stv06xx_isoc_nego() local
344 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in stv06xx_isoc_nego()
346 if (packet_size <= min_packet_size) in stv06xx_isoc_nego()
349 packet_size -= 100; in stv06xx_isoc_nego()
350 if (packet_size < min_packet_size) in stv06xx_isoc_nego()
351 packet_size = min_packet_size; in stv06xx_isoc_nego()
352 alt->endpoint[0].desc.wMaxPacketSize = cpu_to_le16(packet_size); in stv06xx_isoc_nego()
Dstv06xx_pb0100.c177 int err, packet_size, max_packet_size; in pb0100_start() local
192 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in pb0100_start()
196 if (packet_size < max_packet_size) in pb0100_start()
/drivers/media/usb/gspca/
Dkonica.c172 int i, n, packet_size; in sd_start() local
186 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in sd_start()
203 packet_size = in sd_start()
210 packet_size * SD_NPKT, in sd_start()
220 urb->transfer_buffer_length = packet_size * SD_NPKT; in sd_start()
229 urb->iso_frame_desc[i].length = packet_size; in sd_start()
230 urb->iso_frame_desc[i].offset = packet_size * i; in sd_start()
Dxirlink_cit.c1456 int packet_size; in cit_get_clock_div() local
1458 packet_size = cit_get_packet_size(gspca_dev); in cit_get_clock_div()
1459 if (packet_size < 0) in cit_get_clock_div()
1460 return packet_size; in cit_get_clock_div()
1463 1000 * packet_size > in cit_get_clock_div()
1470 packet_size, in cit_get_clock_div()
2594 int packet_size; in sd_start() local
2596 packet_size = cit_get_packet_size(gspca_dev); in sd_start()
2597 if (packet_size < 0) in sd_start()
2598 return packet_size; in sd_start()
[all …]
Dov519.c3467 int hsegs, vsegs, packet_size, fps, needed; in ov511_mode_init_regs() local
3485 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in ov511_mode_init_regs()
3486 reg_w(sd, R51x_FIFO_PSIZE, packet_size >> 5); in ov511_mode_init_regs()
3576 if (needed > 1000 * packet_size) { in ov511_mode_init_regs()
3599 int hsegs, vsegs, packet_size; in ov518_mode_init_regs() local
3616 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in ov518_mode_init_regs()
3617 ov518_reg_w32(sd, R51x_FIFO_PSIZE, packet_size & ~7, 2); in ov518_mode_init_regs()
/drivers/gpu/drm/vc4/
Dvc4_validate.c757 uint32_t nr_attributes, nr_relocs, packet_size; in validate_gl_shader_rec() local
763 packet_size = gl_shader_rec_size(state->addr); in validate_gl_shader_rec()
776 if (packet_size > exec->shader_rec_size) { in validate_gl_shader_rec()
779 packet_size, exec->shader_rec_size); in validate_gl_shader_rec()
784 memcpy(pkt_v, pkt_u, packet_size); in validate_gl_shader_rec()
785 exec->shader_rec_u += packet_size; in validate_gl_shader_rec()
791 BUG_ON(roundup(packet_size, 16) - packet_size > nr_relocs * 4); in validate_gl_shader_rec()
792 exec->shader_rec_v += roundup(packet_size, 16); in validate_gl_shader_rec()
793 exec->shader_rec_size -= packet_size; in validate_gl_shader_rec()
/drivers/net/ethernet/mellanox/mlx4/
Den_selftest.c54 unsigned int packet_size = MLX4_LOOPBACK_TEST_PAYLOAD; in mlx4_en_test_loopback_xmit() local
67 packet = skb_put(skb, packet_size); in mlx4_en_test_loopback_xmit()
72 for (i = 0; i < packet_size; ++i) /* fill our packet */ in mlx4_en_test_loopback_xmit()
/drivers/input/touchscreen/
Dmms114.c199 int packet_size; in mms114_interrupt() local
211 packet_size = mms114_read_reg(data, MMS114_PACKET_SIZE); in mms114_interrupt()
212 if (packet_size <= 0) in mms114_interrupt()
217 touch_size = packet_size / MMS136_EVENT_SIZE; in mms114_interrupt()
219 touch_size = packet_size / MMS114_EVENT_SIZE; in mms114_interrupt()
221 error = __mms114_read_reg(data, MMS114_INFORMATION, packet_size, in mms114_interrupt()
Dwdt87xx_i2c.c566 u16 packet_size; in wdt87xx_write_data() local
580 packet_size = min(length, PACKET_SIZE); in wdt87xx_write_data()
584 put_unaligned_le16(packet_size, &pkt_buf[CMD_INDEX_OFFSET]); in wdt87xx_write_data()
586 memcpy(&pkt_buf[CMD_DATA_OFFSET], data, packet_size); in wdt87xx_write_data()
592 length -= packet_size; in wdt87xx_write_data()
593 data += packet_size; in wdt87xx_write_data()
594 address += packet_size; in wdt87xx_write_data()
Delants_i2c.c971 size_t packet_size) in elants_i2c_mt_event() argument
1005 if (packet_size == PACKET_SIZE_OLD && in elants_i2c_mt_event()
1048 size_t packet_size) in elants_i2c_event() argument
1062 elants_i2c_mt_event(ts, buf, packet_size); in elants_i2c_event()
/drivers/usb/isp1760/
Disp1760-udc.c32 unsigned int packet_size; member
307 req->packet_size = min(req->req.length - req->req.actual, in isp1760_udc_transmit()
311 __func__, req->packet_size, req->req.actual, in isp1760_udc_transmit()
316 if (req->packet_size) in isp1760_udc_transmit()
317 isp1760_udc_write(udc, DC_BUFLEN, req->packet_size); in isp1760_udc_transmit()
325 for (i = req->packet_size; i > 2; i -= 4, ++buf) in isp1760_udc_transmit()
332 if (!req->packet_size) in isp1760_udc_transmit()
412 req->req.actual += req->packet_size; in isp1760_ep_tx_complete()
416 req->packet_size && req->req.zero; in isp1760_ep_tx_complete()
421 req->packet_size, req->req.zero, need_zlp); in isp1760_ep_tx_complete()
/drivers/isdn/hardware/mISDN/
Dhfcsusb.c941 void *buf, int num_packets, int packet_size, int interval, in fill_isoc_urb() argument
946 usb_fill_bulk_urb(urb, dev, pipe, buf, packet_size * num_packets, in fill_isoc_urb()
955 urb->iso_frame_desc[k].offset = packet_size * k; in fill_isoc_urb()
956 urb->iso_frame_desc[k].length = packet_size; in fill_isoc_urb()
1381 usb_complete_t complete, int packet_size) in start_isoc_chain() argument
1421 k * packet_size; in start_isoc_chain()
1424 packet_size; in start_isoc_chain()
1561 write_reg(hw, HFCUSB_USB_SIZE, (hw->packet_size / 8) | in reset_hfcsusb()
1562 ((hw->packet_size / 8) << 4)); in reset_hfcsusb()
1921 ep_addr, cmptbl[16], small_match, iso_packet_size, packet_size, in hfcsusb_probe() local
[all …]
Dhfcsusb.h283 int packet_size; member
/drivers/usb/atm/
Dusbatm.c527 const unsigned int packet_size = instance->rx_channel.packet_size; in usbatm_rx_process() local
537 if (merge_length && (actual_length < packet_size)) { in usbatm_rx_process()
1107 instance->rx_channel.packet_size = maxpacket; in usbatm_usb_probe()
1124 …d int iso_packets = usb_pipeisoc(channel->endpoint) ? channel->buf_size / channel->packet_size : 0; in usbatm_usb_probe()
1149 urb->iso_frame_desc[j].offset = channel->packet_size * j; in usbatm_usb_probe()
1150 urb->iso_frame_desc[j].length = channel->packet_size; in usbatm_usb_probe()
Dusbatm.h109 unsigned int packet_size; /* endpoint maxpacket */ member
/drivers/gpu/drm/amd/amdkfd/
Dkfd_packet_manager_vi.c29 unsigned int pm_build_pm4_header(unsigned int opcode, size_t packet_size) in pm_build_pm4_header() argument
35 header.count = packet_size / 4 - 2; in pm_build_pm4_header()
/drivers/media/usb/dvb-usb-v2/
Daf9035.c1733 u8 packet_size = (d->udev->speed == USB_SPEED_FULL ? 64 : 512) / 4; in af9035_init() local
1744 { 0x00dd0c, packet_size, 0xff}, in af9035_init()
1748 { 0x00dd0d, packet_size, 0xff }, in af9035_init()
1756 d->udev->speed, frame_size, packet_size); in af9035_init()
1780 u8 packet_size = (d->udev->speed == USB_SPEED_FULL ? 64 : 512) / 4; in it930x_init() local
1795 { 0x00dd0c, packet_size, 0xff}, in it930x_init()
1798 { 0x00dd0d, packet_size, 0xff }, in it930x_init()
1838 d->udev->speed, frame_size, packet_size); in it930x_init()
Dlmedm04.c598 u8 packet_size, dlen, i; in lme2510_download_firmware() local
601 packet_size = 0x31; in lme2510_download_firmware()
616 for (j = start; j < end; j += (packet_size+1)) { in lme2510_download_firmware()
618 if ((end - j) > packet_size) { in lme2510_download_firmware()
620 dlen = packet_size; in lme2510_download_firmware()
/drivers/net/ethernet/microchip/sparx5/
Dsparx5_fdma.c208 unsigned int packet_size; in sparx5_fdma_rx_get_frame() local
228 packet_size = FDMA_DCB_STATUS_BLOCKL(db_hw->status); in sparx5_fdma_rx_get_frame()
229 skb_put(skb, packet_size); in sparx5_fdma_rx_get_frame()
/drivers/spi/
Dspi-mt65xx.c423 u32 packet_size, packet_loop, reg_val; in mtk_spi_setup_packet() local
426 packet_size = min_t(u32, mdata->xfer_len, MTK_SPI_PACKET_SIZE); in mtk_spi_setup_packet()
427 packet_loop = mdata->xfer_len / packet_size; in mtk_spi_setup_packet()
431 reg_val |= (packet_size - 1) << SPI_CFG1_PACKET_LENGTH_OFFSET; in mtk_spi_setup_packet()
/drivers/infiniband/hw/mlx5/
Dodp.c55 u32 packet_size; member
73 u32 packet_size; member
1334 length = pfault->rdma.packet_size; in mlx5_ib_mr_rdma_pfault_handler()
1435 pfault->rdma.packet_size = in mlx5_ib_eq_pf_process()
1462 pfault->wqe.packet_size = in mlx5_ib_eq_pf_process()
/drivers/soc/ti/
Dknav_qmss.h176 u32 packet_size; member
/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1406 u32 packet_size, write_offset; in atl1e_clean_rx_irq() local
1447 packet_size = ((prrs->word1 >> RRS_PKT_SIZE_SHIFT) & in atl1e_clean_rx_irq()
1450 packet_size -= 4; /* CRC */ in atl1e_clean_rx_irq()
1452 skb = netdev_alloc_skb_ip_align(netdev, packet_size); in atl1e_clean_rx_irq()
1456 memcpy(skb->data, (u8 *)(prrs + 1), packet_size); in atl1e_clean_rx_irq()
1457 skb_put(skb, packet_size); in atl1e_clean_rx_irq()
/drivers/net/can/
Dkvaser_pciefd.c742 int packet_size; in kvaser_pciefd_prepare_tx_packet() local
770 packet_size = cf->len; in kvaser_pciefd_prepare_tx_packet()
771 memcpy(p->data, cf->data, packet_size); in kvaser_pciefd_prepare_tx_packet()
773 return DIV_ROUND_UP(packet_size, 4); in kvaser_pciefd_prepare_tx_packet()

12