/kernel/linux/linux-5.10/net/dccp/ |
H A D | ackvec.c | 192 * @num_packets: number of packets to register (must be >= 1) 193 * @seqno: sequence number of the first packet in @num_packets 196 static void dccp_ackvec_add_new(struct dccp_ackvec *av, u32 num_packets, in dccp_ackvec_add_new() argument 199 u32 num_cells = num_packets; in dccp_ackvec_add_new() 201 if (num_packets > DCCPAV_BURST_THRESH) { in dccp_ackvec_add_new() 202 u32 lost_packets = num_packets - 1; in dccp_ackvec_add_new() 206 * We received 1 packet and have a loss of size "num_packets-1" in dccp_ackvec_add_new() 217 for (num_packets = num_cells = 1; lost_packets; ++num_cells) { in dccp_ackvec_add_new() 232 av->av_buf_head = __ackvec_idx_sub(av->av_buf_head, num_packets); in dccp_ackvec_add_new() 239 if (num_packets > in dccp_ackvec_add_new() 256 s64 num_packets = dccp_delta_seqno(av->av_buf_ackno, seqno); dccp_ackvec_input() local [all...] |
/kernel/linux/linux-6.6/net/dccp/ |
H A D | ackvec.c | 192 * @num_packets: number of packets to register (must be >= 1) 193 * @seqno: sequence number of the first packet in @num_packets 196 static void dccp_ackvec_add_new(struct dccp_ackvec *av, u32 num_packets, in dccp_ackvec_add_new() argument 199 u32 num_cells = num_packets; in dccp_ackvec_add_new() 201 if (num_packets > DCCPAV_BURST_THRESH) { in dccp_ackvec_add_new() 202 u32 lost_packets = num_packets - 1; in dccp_ackvec_add_new() 206 * We received 1 packet and have a loss of size "num_packets-1" in dccp_ackvec_add_new() 217 for (num_packets = num_cells = 1; lost_packets; ++num_cells) { in dccp_ackvec_add_new() 232 av->av_buf_head = __ackvec_idx_sub(av->av_buf_head, num_packets); in dccp_ackvec_add_new() 239 if (num_packets > in dccp_ackvec_add_new() 258 s64 num_packets = dccp_delta_seqno(av->av_buf_ackno, seqno); dccp_ackvec_input() local [all...] |
/kernel/linux/linux-5.10/drivers/platform/x86/ |
H A D | dell_rbu.c | 59 unsigned long num_packets; member 89 rbu_data.num_packets = 0; in init_packet_head() 182 ++rbu_data.num_packets; in create_packet() 289 if (0 == rbu_data.num_packets) in packet_read_list() 333 rbu_data.num_packets = 0; in packet_empty_list() 433 if (rbu_data.num_packets == 0) { in read_packet_data()
|
/kernel/linux/linux-6.6/drivers/platform/x86/dell/ |
H A D | dell_rbu.c | 59 unsigned long num_packets; member 89 rbu_data.num_packets = 0; in init_packet_head() 182 ++rbu_data.num_packets; in create_packet() 289 if (0 == rbu_data.num_packets) in packet_read_list() 333 rbu_data.num_packets = 0; in packet_empty_list() 433 if (rbu_data.num_packets == 0) { in read_packet_data()
|
/kernel/linux/linux-5.10/tools/perf/bench/ |
H A D | sched-messaging.c | 47 unsigned int num_packets; member 121 for (i = 0; i < ctx->num_packets; i++) { in receiver() 215 ctx->num_packets = num_fds * nr_loops; in group()
|
/kernel/linux/linux-6.6/tools/perf/bench/ |
H A D | sched-messaging.c | 52 unsigned int num_packets; member 126 for (i = 0; i < ctx->num_packets; i++) { in receiver() 223 ctx->num_packets = num_fds * nr_loops; in group()
|
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | qos_max_descriptors.sh | 230 local num_packets=$1; shift 235 100 * $num_packets / $max_packets
|
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/ |
H A D | event.c | 247 u32 num_packets = wl->conf.tx.max_tx_retries; in wlcore_disconnect_sta() local 273 ieee80211_report_low_ack(sta, num_packets); in wlcore_disconnect_sta()
|
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wlcore/ |
H A D | event.c | 256 u32 num_packets = wl->conf.tx.max_tx_retries; in wlcore_disconnect_sta() local 282 ieee80211_report_low_ack(sta, num_packets); in wlcore_disconnect_sta()
|
/kernel/linux/linux-5.10/drivers/usb/atm/ |
H A D | usbatm.c | 1017 unsigned int maxpacket, num_packets; in usbatm_usb_probe() local 1101 num_packets = max(1U, (rcv_buf_bytes + maxpacket / 2) / maxpacket); /* round */ in usbatm_usb_probe() 1103 if (num_packets * maxpacket > UDSL_MAX_BUF_SIZE) in usbatm_usb_probe() 1104 num_packets--; in usbatm_usb_probe() 1106 instance->rx_channel.buf_size = num_packets * maxpacket; in usbatm_usb_probe()
|
/kernel/linux/linux-5.10/drivers/media/usb/em28xx/ |
H A D | em28xx-core.c | 940 usb_bufs->num_packets = 0; in em28xx_alloc_urbs() 942 usb_bufs->num_packets = packet_multiplier; in em28xx_alloc_urbs() 950 urb = usb_alloc_urb(usb_bufs->num_packets, GFP_KERNEL); in em28xx_alloc_urbs() 984 for (j = 0; j < usb_bufs->num_packets; j++) { in em28xx_alloc_urbs() 992 urb->number_of_packets = usb_bufs->num_packets; in em28xx_alloc_urbs()
|
H A D | em28xx-dvb.c | 149 int xfer_bulk, num_packets, i; in em28xx_dvb_urb_data_copy() local 163 num_packets = 1; in em28xx_dvb_urb_data_copy() 165 num_packets = urb->number_of_packets; in em28xx_dvb_urb_data_copy() 167 for (i = 0; i < num_packets; i++) { in em28xx_dvb_urb_data_copy()
|
/kernel/linux/linux-6.6/drivers/media/usb/em28xx/ |
H A D | em28xx-core.c | 932 usb_bufs->num_packets = 0; in em28xx_alloc_urbs() 934 usb_bufs->num_packets = packet_multiplier; in em28xx_alloc_urbs() 942 urb = usb_alloc_urb(usb_bufs->num_packets, GFP_KERNEL); in em28xx_alloc_urbs() 976 for (j = 0; j < usb_bufs->num_packets; j++) { in em28xx_alloc_urbs() 984 urb->number_of_packets = usb_bufs->num_packets; in em28xx_alloc_urbs()
|
H A D | em28xx-dvb.c | 146 int xfer_bulk, num_packets, i; in em28xx_dvb_urb_data_copy() local 160 num_packets = 1; in em28xx_dvb_urb_data_copy() 162 num_packets = urb->number_of_packets; in em28xx_dvb_urb_data_copy() 164 for (i = 0; i < num_packets; i++) { in em28xx_dvb_urb_data_copy()
|
/kernel/linux/linux-6.6/drivers/usb/atm/ |
H A D | usbatm.c | 1017 unsigned int maxpacket, num_packets; in usbatm_usb_probe() local 1103 num_packets = max(1U, (rcv_buf_bytes + maxpacket / 2) / maxpacket); /* round */ in usbatm_usb_probe() 1105 if (num_packets * maxpacket > UDSL_MAX_BUF_SIZE) in usbatm_usb_probe() 1106 num_packets--; in usbatm_usb_probe() 1108 instance->rx_channel.buf_size = num_packets * maxpacket; in usbatm_usb_probe()
|
/kernel/linux/linux-5.10/drivers/media/platform/sti/c8sectpfe/ |
H A D | c8sectpfe-core.c | 85 int pos, num_packets, n, size; in channel_swdemux_tsklet() local 103 num_packets = size / PACKET_SIZE; in channel_swdemux_tsklet() 114 "chan=%d channel=%p num_packets = %d, buf = %p, pos = 0x%x\n\trp=0x%lx, wp=0x%lx\n", in channel_swdemux_tsklet() 115 channel->tsin_id, channel, num_packets, buf, pos, rp, wp); in channel_swdemux_tsklet() 117 for (n = 0; n < num_packets; n++) { in channel_swdemux_tsklet()
|
/kernel/linux/linux-5.10/drivers/usb/dwc2/ |
H A D | hcd_ddma.c | 701 int num_packets; in dwc2_fill_host_dma_desc() local 704 num_packets = (len + chan->max_packet - 1) in dwc2_fill_host_dma_desc() 708 num_packets = 1; in dwc2_fill_host_dma_desc() 711 len = num_packets * chan->max_packet; in dwc2_fill_host_dma_desc()
|
H A D | hcd.c | 1234 u16 num_packets; in dwc2_hc_start_transfer() local 1258 num_packets = 1; in dwc2_hc_start_transfer() 1311 num_packets = (chan->xfer_len + chan->max_packet - 1) / in dwc2_hc_start_transfer() 1313 if (num_packets > max_hc_pkt_count) { in dwc2_hc_start_transfer() 1314 num_packets = max_hc_pkt_count; in dwc2_hc_start_transfer() 1315 chan->xfer_len = num_packets * chan->max_packet; in dwc2_hc_start_transfer() 1323 chan->xfer_len = num_packets * chan->max_packet; in dwc2_hc_start_transfer() 1327 num_packets = 1; in dwc2_hc_start_transfer() 1336 chan->multi_count = num_packets; in dwc2_hc_start_transfer() 1348 chan->start_pkt_count = num_packets; in dwc2_hc_start_transfer() [all...] |
/kernel/linux/linux-6.6/drivers/usb/dwc2/ |
H A D | hcd_ddma.c | 671 int num_packets; in dwc2_fill_host_dma_desc() local 674 num_packets = (len + chan->max_packet - 1) in dwc2_fill_host_dma_desc() 678 num_packets = 1; in dwc2_fill_host_dma_desc() 681 len = num_packets * chan->max_packet; in dwc2_fill_host_dma_desc()
|
H A D | hcd.c | 1199 u16 num_packets; in dwc2_hc_start_transfer() local 1223 num_packets = 1; in dwc2_hc_start_transfer() 1276 num_packets = (chan->xfer_len + chan->max_packet - 1) / in dwc2_hc_start_transfer() 1278 if (num_packets > max_hc_pkt_count) { in dwc2_hc_start_transfer() 1279 num_packets = max_hc_pkt_count; in dwc2_hc_start_transfer() 1280 chan->xfer_len = num_packets * chan->max_packet; in dwc2_hc_start_transfer() 1288 chan->xfer_len = num_packets * chan->max_packet; in dwc2_hc_start_transfer() 1292 num_packets = 1; in dwc2_hc_start_transfer() 1301 chan->multi_count = num_packets; in dwc2_hc_start_transfer() 1313 chan->start_pkt_count = num_packets; in dwc2_hc_start_transfer() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/st/sti/c8sectpfe/ |
H A D | c8sectpfe-core.c | 88 int pos, num_packets, n, size; in channel_swdemux_tsklet() local 106 num_packets = size / PACKET_SIZE; in channel_swdemux_tsklet() 117 "chan=%d channel=%p num_packets = %d, buf = %p, pos = 0x%x\n\trp=0x%lx, wp=0x%lx\n", in channel_swdemux_tsklet() 118 channel->tsin_id, channel, num_packets, buf, pos, rp, wp); in channel_swdemux_tsklet() 120 for (n = 0; n < num_packets; n++) { in channel_swdemux_tsklet()
|
/kernel/linux/linux-5.10/drivers/firewire/ |
H A D | net.c | 1116 unsigned num_packets; in fwnet_broadcast_start() local 1127 num_packets = (FWNET_ISO_PAGE_COUNT * PAGE_SIZE) / max_receive; in fwnet_broadcast_start() 1129 ptrptr = kmalloc_array(num_packets, sizeof(void *), GFP_KERNEL); in fwnet_broadcast_start() 1157 for (v = 0; v < num_packets / FWNET_ISO_PAGE_COUNT; v++) in fwnet_broadcast_start() 1170 for (u = 0; u < num_packets; u++) { in fwnet_broadcast_start() 1178 dev->num_broadcast_rcv_ptrs = num_packets; in fwnet_broadcast_start()
|
/kernel/linux/linux-6.6/drivers/firewire/ |
H A D | net.c | 1106 unsigned num_packets; in fwnet_broadcast_start() local 1117 num_packets = (FWNET_ISO_PAGE_COUNT * PAGE_SIZE) / max_receive; in fwnet_broadcast_start() 1119 ptrptr = kmalloc_array(num_packets, sizeof(void *), GFP_KERNEL); in fwnet_broadcast_start() 1147 for (v = 0; v < num_packets / FWNET_ISO_PAGE_COUNT; v++) in fwnet_broadcast_start() 1160 for (u = 0; u < num_packets; u++) { in fwnet_broadcast_start() 1168 dev->num_broadcast_rcv_ptrs = num_packets; in fwnet_broadcast_start()
|
/kernel/linux/linux-5.10/drivers/isdn/hardware/mISDN/ |
H A D | hfcsusb.c | 941 void *buf, int num_packets, int packet_size, int interval, in fill_isoc_urb() 946 usb_fill_bulk_urb(urb, dev, pipe, buf, packet_size * num_packets, in fill_isoc_urb() 949 urb->number_of_packets = num_packets; in fill_isoc_urb() 954 for (k = 0; k < num_packets; k++) { in fill_isoc_urb() 940 fill_isoc_urb(struct urb *urb, struct usb_device *dev, unsigned int pipe, void *buf, int num_packets, int packet_size, int interval, usb_complete_t complete, void *context) fill_isoc_urb() argument
|
/kernel/linux/linux-6.6/drivers/isdn/hardware/mISDN/ |
H A D | hfcsusb.c | 941 void *buf, int num_packets, int packet_size, int interval, in fill_isoc_urb() 946 usb_fill_bulk_urb(urb, dev, pipe, buf, packet_size * num_packets, in fill_isoc_urb() 949 urb->number_of_packets = num_packets; in fill_isoc_urb() 954 for (k = 0; k < num_packets; k++) { in fill_isoc_urb() 940 fill_isoc_urb(struct urb *urb, struct usb_device *dev, unsigned int pipe, void *buf, int num_packets, int packet_size, int interval, usb_complete_t complete, void *context) fill_isoc_urb() argument
|