Home
last modified time | relevance | path

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

12

/drivers/isdn/hisax/
Dst5481_b.c35 unsigned int packet_size, offset; in usb_b_out() local
49 packet_size = SIZE_ISO_PACKETS_B_OUT + B_FLOW_ADJUST; in usb_b_out()
53 packet_size = SIZE_ISO_PACKETS_B_OUT - B_FLOW_ADJUST; in usb_b_out()
57 packet_size = 8; in usb_b_out()
113 urb->iso_frame_desc[i].length = packet_size; in usb_b_out()
114 offset += packet_size; in usb_b_out()
115 packet_size = SIZE_ISO_PACKETS_B_OUT; in usb_b_out()
315 bcs->b_in.packet_size = SIZE_ISO_PACKETS_B_IN; in st5481_setup_b()
Dst5481_usb.c406 int packet_size, usb_complete_t complete, in fill_isoc_urb() argument
416 urb->transfer_buffer_length = num_packets * packet_size; in fill_isoc_urb()
422 urb->iso_frame_desc[k].offset = packet_size * k; in fill_isoc_urb()
423 urb->iso_frame_desc[k].length = packet_size; in fill_isoc_urb()
431 int packet_size, int buf_size, in st5481_setup_isocpipes() argument
450 num_packets, packet_size, complete, in st5481_setup_isocpipes()
562 in->num_packets, in->packet_size, in st5481_setup_in()
563 in->num_packets * in->packet_size, in st5481_setup_in()
657 in->packet_size, in st5481_in_mode()
Dhfc_usb.c186 int packet_size, iso_packet_size; member
428 void *buf, int num_packets, int packet_size, int interval, in fill_isoc_urb() argument
437 urb->transfer_buffer_length = packet_size * num_packets; in fill_isoc_urb()
444 urb->iso_frame_desc[k].offset = packet_size * k; in fill_isoc_urb()
445 urb->iso_frame_desc[k].length = packet_size; in fill_isoc_urb()
455 usb_complete_t complete, int packet_size) in start_isoc_chain() argument
491 k * packet_size; in start_isoc_chain()
494 packet_size; in start_isoc_chain()
1121 (hfc->packet_size / 8) | ((hfc->packet_size / 8) << 4)); in hfc_usb_init()
1267 int cmptbl[16], small_match, iso_packet_size, packet_size, in hfc_usb_probe() local
[all …]
Dst5481.h359 unsigned int packet_size; member
447 int packet_size, int buf_size,
/drivers/media/usb/gspca/stv06xx/
Dstv06xx.c287 int err, packet_size; in stv06xx_start() local
296 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in stv06xx_start()
297 err = stv06xx_write_bridge(sd, STV_ISO_SIZE_L, packet_size); in stv06xx_start()
333 int ret, packet_size, min_packet_size; in stv06xx_isoc_nego() local
338 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in stv06xx_isoc_nego()
340 if (packet_size <= min_packet_size) in stv06xx_isoc_nego()
343 packet_size -= 100; in stv06xx_isoc_nego()
344 if (packet_size < min_packet_size) in stv06xx_isoc_nego()
345 packet_size = min_packet_size; in stv06xx_isoc_nego()
346 alt->endpoint[0].desc.wMaxPacketSize = cpu_to_le16(packet_size); in stv06xx_isoc_nego()
Dstv06xx_pb0100.c190 int err, packet_size, max_packet_size; in pb0100_start() local
201 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in pb0100_start()
205 if (packet_size < max_packet_size) in pb0100_start()
/drivers/media/usb/gspca/
Dkonica.c180 int i, n, packet_size; in sd_start() local
194 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in sd_start()
211 packet_size = in sd_start()
218 packet_size * SD_NPKT, in sd_start()
228 urb->transfer_buffer_length = packet_size * SD_NPKT; in sd_start()
237 urb->iso_frame_desc[i].length = packet_size; in sd_start()
238 urb->iso_frame_desc[i].offset = packet_size * i; in sd_start()
Dxirlink_cit.c1466 int packet_size; in cit_get_clock_div() local
1468 packet_size = cit_get_packet_size(gspca_dev); in cit_get_clock_div()
1469 if (packet_size < 0) in cit_get_clock_div()
1470 return packet_size; in cit_get_clock_div()
1473 1000 * packet_size > in cit_get_clock_div()
1480 packet_size, gspca_dev->pixfmt.width, gspca_dev->pixfmt.height, in cit_get_clock_div()
2603 int packet_size; in sd_start() local
2605 packet_size = cit_get_packet_size(gspca_dev); in sd_start()
2606 if (packet_size < 0) in sd_start()
2607 return packet_size; in sd_start()
[all …]
Dov519.c3462 int hsegs, vsegs, packet_size, fps, needed; in ov511_mode_init_regs() local
3475 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in ov511_mode_init_regs()
3476 reg_w(sd, R51x_FIFO_PSIZE, packet_size >> 5); in ov511_mode_init_regs()
3565 if (needed > 1000 * packet_size) { in ov511_mode_init_regs()
3588 int hsegs, vsegs, packet_size; in ov518_mode_init_regs() local
3600 packet_size = le16_to_cpu(alt->endpoint[0].desc.wMaxPacketSize); in ov518_mode_init_regs()
3601 ov518_reg_w32(sd, R51x_FIFO_PSIZE, packet_size & ~7, 2); in ov518_mode_init_regs()
/drivers/gpu/drm/vc4/
Dvc4_validate.c747 uint32_t nr_attributes, nr_relocs, packet_size; in validate_gl_shader_rec() local
753 packet_size = gl_shader_rec_size(state->addr); in validate_gl_shader_rec()
766 if (packet_size > exec->shader_rec_size) { in validate_gl_shader_rec()
769 packet_size, exec->shader_rec_size); in validate_gl_shader_rec()
774 memcpy(pkt_v, pkt_u, packet_size); in validate_gl_shader_rec()
775 exec->shader_rec_u += packet_size; in validate_gl_shader_rec()
781 BUG_ON(roundup(packet_size, 16) - packet_size > nr_relocs * 4); in validate_gl_shader_rec()
782 exec->shader_rec_v += roundup(packet_size, 16); in validate_gl_shader_rec()
783 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 = (unsigned char *)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.c198 int packet_size; in mms114_interrupt() local
210 packet_size = mms114_read_reg(data, MMS114_PACKET_SIZE); in mms114_interrupt()
211 if (packet_size <= 0) in mms114_interrupt()
214 touch_size = packet_size / MMS114_PACKET_NUM; in mms114_interrupt()
216 error = __mms114_read_reg(data, MMS114_INFOMATION, packet_size, in mms114_interrupt()
Dwdt87xx_i2c.c567 u16 packet_size; in wdt87xx_write_data() local
581 packet_size = min(length, PACKET_SIZE); in wdt87xx_write_data()
585 put_unaligned_le16(packet_size, &pkt_buf[CMD_INDEX_OFFSET]); in wdt87xx_write_data()
587 memcpy(&pkt_buf[CMD_DATA_OFFSET], data, packet_size); in wdt87xx_write_data()
593 length -= packet_size; in wdt87xx_write_data()
594 data += packet_size; in wdt87xx_write_data()
595 address += packet_size; in wdt87xx_write_data()
/drivers/usb/isp1760/
Disp1760-udc.c33 unsigned int packet_size; member
252 req->packet_size = min(req->req.length - req->req.actual, in isp1760_udc_transmit()
256 __func__, req->packet_size, req->req.actual, in isp1760_udc_transmit()
261 if (req->packet_size) in isp1760_udc_transmit()
262 isp1760_udc_write(udc, DC_BUFLEN, req->packet_size); in isp1760_udc_transmit()
270 for (i = req->packet_size; i > 2; i -= 4, ++buf) in isp1760_udc_transmit()
277 if (!req->packet_size) in isp1760_udc_transmit()
357 req->req.actual += req->packet_size; in isp1760_ep_tx_complete()
361 req->packet_size && req->req.zero; in isp1760_ep_tx_complete()
366 req->packet_size, req->req.zero, need_zlp); in isp1760_ep_tx_complete()
/drivers/isdn/hardware/mISDN/
Dhfcsusb.c950 void *buf, int num_packets, int packet_size, int interval, in fill_isoc_urb() argument
955 usb_fill_bulk_urb(urb, dev, pipe, buf, packet_size * num_packets, in fill_isoc_urb()
964 urb->iso_frame_desc[k].offset = packet_size * k; in fill_isoc_urb()
965 urb->iso_frame_desc[k].length = packet_size; in fill_isoc_urb()
1387 usb_complete_t complete, int packet_size) in start_isoc_chain() argument
1426 k * packet_size; in start_isoc_chain()
1429 packet_size; in start_isoc_chain()
1566 write_reg(hw, HFCUSB_USB_SIZE, (hw->packet_size / 8) | in reset_hfcsusb()
1567 ((hw->packet_size / 8) << 4)); in reset_hfcsusb()
1916 ep_addr, cmptbl[16], small_match, iso_packet_size, packet_size, in hfcsusb_probe() local
[all …]
/drivers/usb/atm/
Dusbatm.c541 const unsigned int packet_size = instance->rx_channel.packet_size; in usbatm_rx_process() local
551 if (merge_length && (actual_length < packet_size)) { in usbatm_rx_process()
1120 instance->rx_channel.packet_size = maxpacket; in usbatm_usb_probe()
1137 …d int iso_packets = usb_pipeisoc(channel->endpoint) ? channel->buf_size / channel->packet_size : 0; in usbatm_usb_probe()
1162 urb->iso_frame_desc[j].offset = channel->packet_size * j; in usbatm_usb_probe()
1163 urb->iso_frame_desc[j].length = channel->packet_size; in usbatm_usb_probe()
Dusbatm.h123 unsigned int packet_size; /* endpoint maxpacket */ member
/drivers/ide/
Dide-atapi.c39 u8 gcw[2], protocol, device_type, removable, drq_type, packet_size; in ide_check_atapi_device() local
47 packet_size = gcw[0] & 0x03; in ide_check_atapi_device()
70 else if (packet_size != 0) in ide_check_atapi_device()
72 "bytes\n", s, drive->name, packet_size); in ide_check_atapi_device()
/drivers/spi/
Dspi-mt65xx.c250 u32 packet_size, packet_loop, reg_val; in mtk_spi_setup_packet() local
253 packet_size = min_t(u32, mdata->xfer_len, MTK_SPI_PACKET_SIZE); in mtk_spi_setup_packet()
254 packet_loop = mdata->xfer_len / packet_size; in mtk_spi_setup_packet()
258 reg_val |= (packet_size - 1) << SPI_CFG1_PACKET_LENGTH_OFFSET; in mtk_spi_setup_packet()
/drivers/media/usb/dvb-usb-v2/
Daf9035.c1702 u8 packet_size = (d->udev->speed == USB_SPEED_FULL ? 64 : 512) / 4; in af9035_init() local
1713 { 0x00dd0c, packet_size, 0xff}, in af9035_init()
1717 { 0x00dd0d, packet_size, 0xff }, in af9035_init()
1725 d->udev->speed, frame_size, packet_size); in af9035_init()
1749 u8 packet_size = (d->udev->speed == USB_SPEED_FULL ? 64 : 512) / 4; in it930x_init() local
1764 { 0x00dd0c, packet_size, 0xff}, in it930x_init()
1767 { 0x00dd0d, packet_size, 0xff }, in it930x_init()
1807 d->udev->speed, frame_size, packet_size); in it930x_init()
Dlmedm04.c657 u8 packet_size, dlen, i; in lme2510_download_firmware() local
660 packet_size = 0x31; in lme2510_download_firmware()
675 for (j = start; j < end; j += (packet_size+1)) { in lme2510_download_firmware()
677 if ((end - j) > packet_size) { in lme2510_download_firmware()
679 dlen = packet_size; in lme2510_download_firmware()
Daf9015.c1062 u8 packet_size; in af9015_init_endpoint() local
1067 packet_size = TS_USB11_MAX_PACKET_SIZE/4; in af9015_init_endpoint()
1070 packet_size = TS_USB20_MAX_PACKET_SIZE/4; in af9015_init_endpoint()
1115 ret = af9015_write_reg(d, 0xdd0c, packet_size); /* EP4 packet size */ in af9015_init_endpoint()
1118 ret = af9015_write_reg(d, 0xdd0d, packet_size); /* EP5 packet size */ in af9015_init_endpoint()
/drivers/hid/
Dhid-hyperv.c325 const int packet_size = 0x100; in mousevsc_on_channel_callback() local
332 int bufferlen = packet_size; in mousevsc_on_channel_callback()
/drivers/gpu/drm/amd/amdkfd/
Dkfd_packet_manager.c42 static unsigned int build_pm4_header(unsigned int opcode, size_t packet_size) in build_pm4_header() argument
48 header.count = packet_size/sizeof(uint32_t) - 2; in build_pm4_header()
/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1417 u32 packet_size, write_offset; in atl1e_clean_rx_irq() local
1458 packet_size = ((prrs->word1 >> RRS_PKT_SIZE_SHIFT) & in atl1e_clean_rx_irq()
1461 packet_size -= 4; /* CRC */ in atl1e_clean_rx_irq()
1463 skb = netdev_alloc_skb_ip_align(netdev, packet_size); in atl1e_clean_rx_irq()
1467 memcpy(skb->data, (u8 *)(prrs + 1), packet_size); in atl1e_clean_rx_irq()
1468 skb_put(skb, packet_size); in atl1e_clean_rx_irq()

12