Home
last modified time | relevance | path

Searched refs:packet (Results 1 – 25 of 125) sorted by relevance

12345

/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_send.c103 IN lm_packet_t *packet, in lm_pre_process_lso_packet() argument
131 packet->u1.tx.hdr_nbds = hdr_nbds; in lm_pre_process_lso_packet()
150 if ((packet->l2pkt_tx_info->lso_ip_hdr_len + packet->l2pkt_tx_info->lso_tcp_hdr_len) > 120) { in lm_process_lso_packet()
246 packet->size += (*frag)->size; in lm_process_lso_packet()
474 lm_packet_t *packet) in lm_get_pri_from_send_packet_param() argument
492 lm_packet_t *packet, in fill_bds_for_encapsulated_packet() argument
578 lm_packet_t *packet, in lm_send_packet() argument
674 packet->u1.tx.hdr_nbds = 1; in lm_send_packet()
691 if (packet->u1.tx.coalesce_buf) in lm_send_packet()
700 packet->size = 0; in lm_send_packet()
[all …]
H A Dlm_recv.c94 lm_packet_t *packet,/* optional. */ in lm_post_buffers() argument
139 if(packet) in lm_post_buffers()
142 DbgBreakIfFastPath(SIG(packet) != L2PACKET_RX_SIG); in lm_post_buffers()
146 s_list_push_tail(&rxq_chain_common->free_descq, &packet->link); in lm_post_buffers()
147 packet = NULL; in lm_post_buffers()
159 while(packet) in lm_post_buffers()
167 prod_bseq += packet->l2pkt_rx_info->mem_size; in lm_post_buffers()
174 rcq_prod_bseq += packet->l2pkt_rx_info->mem_size; in lm_post_buffers()
180 packet->u1.rx.next_bd_idx = lm_bd_chain_prod_idx(rx_chain_bd); in lm_post_buffers()
200 s_list_push_tail(&rxq_chain->active_descq, &packet->link); in lm_post_buffers()
[all …]
/illumos-gate/usr/src/uts/common/ipp/ipgpc/
H A Dclassifier.c122 if (packet->proto > 0) { in common_classify()
136 if (packet->sport > 0) { in common_classify()
150 if (packet->dport > 0) { in common_classify()
598 packet->projid = -1; in find_ids()
618 packet->sport = 0; in parse_packet()
619 packet->dport = 0; in parse_packet()
620 find_ids(packet, mp); in parse_packet()
623 if ((packet->proto == IPPROTO_TCP) || (packet->proto == IPPROTO_UDP) || in parse_packet()
647 find_ids(packet, mp); in parse_packet6()
649 packet->sport = 0; in parse_packet6()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_name.c209 packet.answer = NULL; in smb_end_node_challenge()
309 reply->packet = packet; in smb_reply_ready()
324 free(packet); in smb_reply_ready()
457 free(reply->packet); in smb_netbios_process_response()
1001 packet.answer = NULL; in smb_send_name_registration_request()
1097 packet.answer = NULL; in smb_send_name_refresh_request()
1200 packet.answer = NULL; in smb_send_name_release_request_and_demand()
1899 packet); in smb_name_process_Bnode_packet()
1998 packet); in smb_name_process_Pnode_packet()
2213 if (packet->answer) in smb_netbios_worker()
[all …]
/illumos-gate/usr/src/uts/common/io/bnx/570x/driver/common/lmdev/
H A Dbnx_lm_send.c28 lm_packet_t *packet, in lm_send_packet() argument
44 if(packet == NULL) in lm_send_packet()
90 packet->size = 0; in lm_send_packet()
214 packet->u1.tx.span_pages = 0; in lm_send_packet()
237 packet->size += frag->size; in lm_send_packet()
285 packet->u1.tx.next_bd_idx = prod_idx; in lm_send_packet()
289 txq->prod_bseq += packet->size; in lm_send_packet()
333 lm_packet_t *packet, in lm_send_packet() argument
350 if(packet == NULL) in lm_send_packet()
408 packet->u1.tx.size = 0; in lm_send_packet()
[all …]
H A Dbnx_lm_recv.c87 lm_packet_t *packet) /* optional. */ in lm_post_buffers() argument
99 if(packet) in lm_post_buffers()
106 packet = NULL; in lm_post_buffers()
114 while(packet) in lm_post_buffers()
124 packet->u1.rx.dbg_bd = cur_bd; in lm_post_buffers()
130 packet->u1.rx.mem_phy.as_u64, in lm_post_buffers()
131 packet->u1.rx.buf_size); in lm_post_buffers()
514 lm_packet_t *packet, in lm_post_buffers() argument
529 if(packet) in lm_post_buffers()
549 packet->u1.rx.dbg_bd = cur_bd; in lm_post_buffers()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dchpw.c22 krb5_data *packet) in krb5int_mk_chpw_req() argument
44 packet->data = (char *) malloc(packet->length); in krb5int_mk_chpw_req()
50 ptr = packet->data; in krb5int_mk_chpw_req()
103 ptr = packet->data; in krb5int_rd_chpw_rep()
153 if (ptr + ap_rep.length >= packet->data + packet->length) in krb5int_rd_chpw_rep()
179 cipherresult.length = (packet->data + packet->length) - ptr; in krb5int_rd_chpw_rep()
196 cipherresult.length = (packet->data + packet->length) - ptr; in krb5int_rd_chpw_rep()
315 packet->data = (char *) malloc(packet->length); in krb5int_mk_setpw_req()
345 free( packet->data); in krb5int_mk_setpw_req()
425 if (ptr + ap_rep.length >= packet->data + packet->length) in krb5int_rd_setpw_rep()
[all …]
/illumos-gate/usr/src/uts/common/io/e1000g/
H A De1000g_tx.c325 packet = NULL; in e1000g_send()
365 ASSERT(packet); in e1000g_send()
390 ASSERT(packet); in e1000g_send()
392 packet->mp = mp; in e1000g_send()
447 while (packet) { in e1000g_send()
630 packet = NULL; in e1000g_fill_tx_ring()
1330 packet, in e1000g_tx_copy()
1428 packet, in e1000g_tx_bind()
1538 desc = &packet->desc[packet->num_desc]; in e1000g_fill_tx_desc()
1584 desc = &packet->desc[packet->num_desc]; in e1000g_tx_workaround_PCIX_82544()
[all …]
H A De1000g_rx.c188 i++, packet = packet->next, descriptor++) { in e1000g_rx_setup()
196 &packet->Link); in e1000g_rx_setup()
200 i++, packet = packet->next) { in e1000g_rx_setup()
204 &packet->Link); in e1000g_rx_setup()
394 if (packet != NULL) { in e1000g_get_buf()
409 if (packet != NULL) { in e1000g_get_buf()
425 return (packet); in e1000g_get_buf()
520 packet = in e1000g_receive()
664 nmp = packet->mp; in e1000g_receive()
675 packet = newpkt; in e1000g_receive()
[all …]
H A De1000g_alloc.c1260 if (packet == NULL) in e1000g_increase_rx_packets()
1262 packet->next = cur; in e1000g_increase_rx_packets()
1263 cur = packet; in e1000g_increase_rx_packets()
1307 if (packet == NULL) in e1000g_alloc_rx_packets()
1334 if (packet == NULL) { in e1000g_alloc_rx_sw_packet()
1367 if (packet != NULL) in e1000g_alloc_rx_sw_packet()
1381 packet->free_rtn.free_arg = (char *)packet; in e1000g_alloc_rx_sw_packet()
1393 packet->ref_cnt = 1; in e1000g_alloc_rx_sw_packet()
1395 return (packet); in e1000g_alloc_rx_sw_packet()
1405 packet->mp = NULL; in e1000g_free_rx_sw_packet()
[all …]
/illumos-gate/usr/src/boot/i386/common/
H A Ddrv.c59 packet.count = nblk; in drvread()
60 packet.off = VTOPOFF(buf); in drvread()
61 packet.seg = VTOPSEG(buf); in drvread()
62 packet.lba = lba; in drvread()
67 v86.ds = VTOPSEG(&packet); in drvread()
68 v86.esi = VTOPOFF(&packet); in drvread()
83 packet.count = nblk; in drvwrite()
84 packet.off = VTOPOFF(buf); in drvwrite()
85 packet.seg = VTOPSEG(buf); in drvwrite()
86 packet.lba = lba; in drvwrite()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/
H A Dchpw.c22 krb5_data *packet) in krb5int_mk_chpw_req() argument
44 packet->data = (char *) malloc(packet->length); in krb5int_mk_chpw_req()
45 if (packet->data == NULL) in krb5int_mk_chpw_req()
50 ptr = packet->data; in krb5int_mk_chpw_req()
55 *ptr++ = packet->length & 0xff; in krb5int_mk_chpw_req()
101 if (packet->length < 4) in krb5int_rd_chpw_rep()
106 ptr = packet->data; in krb5int_rd_chpw_rep()
113 if (plen != packet->length) in krb5int_rd_chpw_rep()
155 if (ptr + ap_rep.length >= packet->data + packet->length) in krb5int_rd_chpw_rep()
181 cipherresult.length = (packet->data + packet->length) - ptr; in krb5int_rd_chpw_rep()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dradius_packet.c67 packet = (radius_packet_t *)data; in snd_radius_request()
68 packet->code = req_data->code; in snd_radius_request()
69 packet->identifier = req_data->identifier; in snd_radius_request()
72 ptr = packet->data; in snd_radius_request()
168 radius_packet_t *packet; in rcv_radius_response() local
199 packet = (radius_packet_t *)tmp_data; in rcv_radius_response()
253 MD5Update(&context, &packet->code, 1); in rcv_radius_response()
255 MD5Update(&context, packet->length, 2); in rcv_radius_response()
260 MD5Update(&context, packet->data, in rcv_radius_response()
288 resp_data->code = packet->code; in rcv_radius_response()
[all …]
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/
H A Discsit_radiuspacket.c71 packet = (radius_packet_t *)data; in iscsit_snd_radius_request()
72 packet->code = req_data->code; in iscsit_snd_radius_request()
73 packet->identifier = req_data->identifier; in iscsit_snd_radius_request()
76 ptr = packet->data; in iscsit_snd_radius_request()
172 radius_packet_t *packet; in iscsit_rcv_radius_response() local
214 packet = (radius_packet_t *)tmp_data; in iscsit_rcv_radius_response()
254 MD5Update(&context, &packet->code, 1); in iscsit_rcv_radius_response()
256 MD5Update(&context, packet->length, 2); in iscsit_rcv_radius_response()
268 MD5Update(&context, packet->data, in iscsit_rcv_radius_response()
284 resp_data->code = packet->code; in iscsit_rcv_radius_response()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw8/fruaccess/
H A Dlibfruaccess.c70 int fru_get_packets(segment_hdl_t segment, packet_t *packet,
72 int fru_update_payload(packet_hdl_t packet, const void *data,
74 int fru_append_packet(segment_hdl_t segment, packet_t *packet,
77 int fru_delete_packet(packet_hdl_t packet,
352 packets.frus = packet; in fru_get_packets()
361 fru_get_payload(packet_hdl_t packet, void *buffer, size_t nbytes, in fru_get_payload() argument
370 payload.fru_hdl = packet; in fru_get_payload()
395 payload.fru_hdl = packet; in fru_update_payload()
422 appendpkt.packet = *packet; in fru_append_packet()
433 packet->handle = appendpkt.packet.handle; in fru_append_packet()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dw89c840.c452 memcpy(nic->packet, le32desc_to_virt(w840private.rx_ring[entry].buffer1), pkt_len); in w89c840_poll()
463 nic->packet[0], nic->packet[1], nic->packet[2], nic->packet[3], in w89c840_poll()
464 nic->packet[4], nic->packet[5], nic->packet[6], nic->packet[7], in w89c840_poll()
465 nic->packet[8], nic->packet[9], nic->packet[10], in w89c840_poll()
466 nic->packet[11], nic->packet[12], nic->packet[13], in w89c840_poll()
467 nic->packet[14], nic->packet[15], nic->packet[16], in w89c840_poll()
468 nic->packet[17]); in w89c840_poll()
H A D3c595.c269 insw(BASE + VX_W1_RX_PIO_RD_1, nic->packet, rx_fifo / 2); in t595_poll()
271 nic->packet[rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll()
282 insw(BASE + VX_W1_RX_PIO_RD_1, nic->packet+nic->packetlen, rx_fifo / 2); in t595_poll()
284 nic->packet[nic->packetlen+rx_fifo-1]=inb(BASE + VX_W1_RX_PIO_RD_1); in t595_poll()
305 type = (nic->packet[12]<<8) | nic->packet[13]; in t595_poll()
306 if(nic->packet[0]+nic->packet[1]+nic->packet[2]+nic->packet[3]+nic->packet[4]+ in t595_poll()
307 nic->packet[5] == 0xFF*ETH_ALEN) in t595_poll()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Ddemand.c53 struct packet { struct
55 struct packet *next; argument
59 static struct packet *pend_q; argument
60 static struct packet *pend_qtail;
130 struct packet *pkt, *nextpkt; in demand_discard()
269 struct packet *pkt;
280 pkt = (struct packet *) malloc(sizeof(struct packet) + len);
302 struct packet *pkt, *prev, *nextpkt;
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_update.c93 u_char *packet; in res_nupdate() local
99 packet = malloc(NS_MAXMSG); in res_nupdate()
100 if (packet == NULL) { in res_nupdate()
156 packet, NS_MAXMSG); in res_nupdate()
167 n = res_nsendsigned(statp, packet, n, key, in res_nupdate()
170 n = res_nsend(statp, packet, n, answer, sizeof answer); in res_nupdate()
194 free(packet); in res_nupdate()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dfru_access.h99 int fru_get_packets(segment_hdl_t segment, packet_t *packet,
101 ssize_t fru_get_payload(packet_hdl_t packet, void *buffer,
103 int fru_update_payload(packet_hdl_t packet, const void *data, size_t nbytes,
105 int fru_append_packet(segment_hdl_t segment, packet_t *packet,
108 int fru_delete_packet(packet_hdl_t packet, segment_hdl_t *newsegment,
/illumos-gate/usr/src/lib/libfru/libfruraw/
H A Dfru_access.h97 int fru_get_packets(segment_hdl_t segment, packet_t *packet,
99 ssize_t fru_get_payload(packet_hdl_t packet, void *buffer,
101 int fru_update_payload(packet_hdl_t packet, const void *data, size_t nbytes,
103 int fru_append_packet(segment_hdl_t segment, packet_t *packet,
106 int fru_delete_packet(packet_hdl_t packet, segment_hdl_t *newsegment,
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtrace.h83 trace(&(ifp)->int_input, (src), packet, (size), \
88 packet, (size)); \
93 trace(&(ifp)->int_output, (dst), packet, (size), \
98 packet, (size)); \
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsyncloop.c325 static char packet[MAXPACKET]; variable
354 packet[i] = (data == -1) ? rand() : data; in first_packet()
366 if (write(dfd, packet, reclen) != reclen) { in first_packet()
380 if (len == reclen && memcmp(packet, bigbuf, len) == 0) in first_packet()
389 printhex(packet, reclen); in first_packet()
452 memcmp(packet, bigbuf, len) != 0) { in many_packets()
459 printhex(packet, reclen); in many_packets()
477 (void) write(dfd, packet, reclen); in many_packets()
494 if (len != reclen || memcmp(packet, bigbuf, len) != 0) { in many_packets()
500 printhex(packet, reclen); in many_packets()
/illumos-gate/usr/src/uts/common/sys/usb/clients/usbinput/usbwcm/
H A Dusbwcm.h435 #define PACKET_BIT(b, s) ((packet[b] >> (s)) & 1)
437 ((((s) + (n) > 32 ? ((packet[(b) - 4]) << (32 - (s))) : 0) | \
438 ((s) + (n) > 24 ? ((packet[(b) - 3]) << (24 - (s))) : 0) | \
439 ((s) + (n) > 16 ? ((packet[(b) - 2]) << (16 - (s))) : 0) | \
440 ((s) + (n) > 8 ? ((packet[(b) - 1]) << (8 - (s))) : 0) | \
441 ((packet[(b)]) >> (s))) & \
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_netinfo.c943 ASSERT(packet != NULL); in ip_inject_impl()
944 ASSERT(packet->ni_packet != NULL); in ip_inject_impl()
952 inject->inj_data = *packet; in ip_inject_impl()
966 inject->inj_data = *packet; in ip_inject_impl()
980 mp = packet->ni_packet; in ip_inject_impl()
1002 freemsg(packet->ni_packet); in ip_inject_impl()
1012 freemsg(packet->ni_packet); in ip_inject_impl()
1479 net_inject_t *packet; in ip_ni_queue_func_impl() local
1485 packet = &inject->inj_data; in ip_ni_queue_func_impl()
1486 ASSERT(packet->ni_packet != NULL); in ip_ni_queue_func_impl()
[all …]

12345