/src/sys/external/bsd/drm2/dist/drm/amd/amdkfd/ |
kfd_packet_manager_v9.c | 38 struct pm4_mes_map_process *packet; local in function:pm_map_process_v9 41 packet = (struct pm4_mes_map_process *)buffer; 44 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, 46 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; 47 packet->bitfields2.process_quantum = 1; 48 packet->bitfields2.pasid = qpd->pqm->process->pasid; 49 packet->bitfields14.gds_size = qpd->gds_size & 0x3F; 50 packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF; 51 packet->bitfields14.num_gws = qpd->num_gws; 52 packet->bitfields14.num_oac = qpd->num_oac 84 struct pm4_mes_runlist *packet; local in function:pm_runlist_v9 122 struct pm4_mes_set_resources *packet; local in function:pm_set_resources_v9 150 struct pm4_mes_map_queues *packet; local in function:pm_map_queues_v9 220 struct pm4_mes_unmap_queues *packet; local in function:pm_unmap_queues_v9 293 struct pm4_mes_query_status *packet; local in function:pm_query_status_v9 [all...] |
kfd_packet_manager_vi.c | 49 struct pm4_mes_map_process *packet; local in function:pm_map_process_vi 51 packet = (struct pm4_mes_map_process *)buffer; 55 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, 57 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; 58 packet->bitfields2.process_quantum = 1; 59 packet->bitfields2.pasid = qpd->pqm->process->pasid; 60 packet->bitfields3.page_table_base = qpd->page_table_base; 61 packet->bitfields10.gds_size = qpd->gds_size; 62 packet->bitfields10.num_gws = qpd->num_gws; 63 packet->bitfields10.num_oac = qpd->num_oac 82 struct pm4_mes_runlist *packet; local in function:pm_runlist_vi 121 struct pm4_mes_set_resources *packet; local in function:pm_set_resources_vi 149 struct pm4_mes_map_queues *packet; local in function:pm_map_queues_vi 210 struct pm4_mes_unmap_queues *packet; local in function:pm_unmap_queues_vi 273 struct pm4_mes_query_status *packet; local in function:pm_query_status_vi 297 struct pm4_mec_release_mem *packet; local in function:pm_release_mem_vi [all...] |
kfd_packet_manager_v9.c | 38 struct pm4_mes_map_process *packet; local in function:pm_map_process_v9 41 packet = (struct pm4_mes_map_process *)buffer; 44 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, 46 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; 47 packet->bitfields2.process_quantum = 1; 48 packet->bitfields2.pasid = qpd->pqm->process->pasid; 49 packet->bitfields14.gds_size = qpd->gds_size & 0x3F; 50 packet->bitfields14.gds_size_hi = (qpd->gds_size >> 6) & 0xF; 51 packet->bitfields14.num_gws = qpd->num_gws; 52 packet->bitfields14.num_oac = qpd->num_oac 84 struct pm4_mes_runlist *packet; local in function:pm_runlist_v9 122 struct pm4_mes_set_resources *packet; local in function:pm_set_resources_v9 150 struct pm4_mes_map_queues *packet; local in function:pm_map_queues_v9 220 struct pm4_mes_unmap_queues *packet; local in function:pm_unmap_queues_v9 293 struct pm4_mes_query_status *packet; local in function:pm_query_status_v9 [all...] |
kfd_packet_manager_vi.c | 49 struct pm4_mes_map_process *packet; local in function:pm_map_process_vi 51 packet = (struct pm4_mes_map_process *)buffer; 55 packet->header.u32All = pm_build_pm4_header(IT_MAP_PROCESS, 57 packet->bitfields2.diq_enable = (qpd->is_debug) ? 1 : 0; 58 packet->bitfields2.process_quantum = 1; 59 packet->bitfields2.pasid = qpd->pqm->process->pasid; 60 packet->bitfields3.page_table_base = qpd->page_table_base; 61 packet->bitfields10.gds_size = qpd->gds_size; 62 packet->bitfields10.num_gws = qpd->num_gws; 63 packet->bitfields10.num_oac = qpd->num_oac 82 struct pm4_mes_runlist *packet; local in function:pm_runlist_vi 121 struct pm4_mes_set_resources *packet; local in function:pm_set_resources_vi 149 struct pm4_mes_map_queues *packet; local in function:pm_map_queues_vi 210 struct pm4_mes_unmap_queues *packet; local in function:pm_unmap_queues_vi 273 struct pm4_mes_query_status *packet; local in function:pm_query_status_vi 297 struct pm4_mec_release_mem *packet; local in function:pm_release_mem_vi [all...] |
/src/tests/lib/libc/sys/ |
t_sendrecv.c | 50 union packet { union 67 union packet p; 84 union packet p;
|
t_sendrecv.c | 50 union packet { union 67 union packet p; 84 union packet p;
|
/src/usr.bin/rump_dhcpclient/ |
bpf.c | 159 * So we pass the buffer in the API so we can loop on >1 packet. */ 165 struct bpf_hdr packet; local in function:get_raw_packet 179 else if ((size_t)bytes < sizeof(packet)) 185 memcpy(&packet, iface->buffer + iface->buffer_pos, 186 sizeof(packet)); 187 if (packet.bh_caplen != packet.bh_datalen) 188 goto next; /* Incomplete packet, drop. */ 189 if (iface->buffer_pos + packet.bh_caplen + packet.bh_hdrlen [all...] |
bpf.c | 159 * So we pass the buffer in the API so we can loop on >1 packet. */ 165 struct bpf_hdr packet; local in function:get_raw_packet 179 else if ((size_t)bytes < sizeof(packet)) 185 memcpy(&packet, iface->buffer + iface->buffer_pos, 186 sizeof(packet)); 187 if (packet.bh_caplen != packet.bh_datalen) 188 goto next; /* Incomplete packet, drop. */ 189 if (iface->buffer_pos + packet.bh_caplen + packet.bh_hdrlen [all...] |
net.c | 48 # include <netpacket/packet.h> 400 make_udp_packet(uint8_t **packet, const uint8_t *data, size_t length, 412 * We copy the data to our packet and then create a small part of the 415 * of the whole packet into the udp checksum. 442 *packet = (uint8_t *)udpp; 449 struct udp_dhcp_packet packet; local in function:get_udp_data 451 memcpy(&packet, udp, sizeof(packet)); 453 return ntohs(packet.ip.ip_len) - 454 sizeof(packet.ip) 461 struct udp_dhcp_packet packet; local in function:valid_udp_packet [all...] |
net.c | 48 # include <netpacket/packet.h> 400 make_udp_packet(uint8_t **packet, const uint8_t *data, size_t length, 412 * We copy the data to our packet and then create a small part of the 415 * of the whole packet into the udp checksum. 442 *packet = (uint8_t *)udpp; 449 struct udp_dhcp_packet packet; local in function:get_udp_data 451 memcpy(&packet, udp, sizeof(packet)); 453 return ntohs(packet.ip.ip_len) - 454 sizeof(packet.ip) 461 struct udp_dhcp_packet packet; local in function:valid_udp_packet [all...] |
/src/lib/libresolv/ |
res_update.c | 61 * Create a dynamic update packet for each zone and send it to the 102 u_char *packet; local in function:res_nupdate 108 packet = malloc(NS_MAXMSG); 109 if (packet == NULL) { 164 packet, NS_MAXMSG); 175 n = res_nsendsigned(statp, packet, n, key, 178 n = res_nsend(statp, packet, n, answer, 204 free(packet);
|
res_update.c | 61 * Create a dynamic update packet for each zone and send it to the 102 u_char *packet; local in function:res_nupdate 108 packet = malloc(NS_MAXMSG); 109 if (packet == NULL) { 164 packet, NS_MAXMSG); 175 n = res_nsendsigned(statp, packet, n, key, 178 n = res_nsend(statp, packet, n, answer, 204 free(packet);
|
/src/sys/dev/pckbport/ |
pmsvar.h | 58 int inputstate; /* number of bytes received for this packet */ 61 unsigned char packet[6]; member in struct:pms_softc
|
pmsvar.h | 58 int inputstate; /* number of bytes received for this packet */ 61 unsigned char packet[6]; member in struct:pms_softc
|
/src/usr.bin/login/ |
k5login.c | 130 krb5_data packet; local in function:k5_verify_creds 156 0, ccache, &packet); 164 * in the database, therefore this error packet could 185 kerror = krb5_rd_req(c, &auth_context, &packet, 223 /* possibly ticket and packet need freeing here as well */
|
k5login.c | 130 krb5_data packet; local in function:k5_verify_creds 156 0, ccache, &packet); 164 * in the database, therefore this error packet could 185 kerror = krb5_rd_req(c, &auth_context, &packet, 223 /* possibly ticket and packet need freeing here as well */
|
/src/usr.sbin/timed/timed/ |
measure.c | 85 u_char packet[PACKET_IN]; local in function:measure 115 ret = recvfrom(sock_raw, (char *)packet, PACKET_IN, 0, 190 ret = recvfrom(sock_raw, (char *)packet, PACKET_IN, 0, 201 memcpy(&ip, packet, sizeof(ip)); 207 memcpy(&icp, &packet[ip.ip_hl << 2],
|
measure.c | 85 u_char packet[PACKET_IN]; local in function:measure 115 ret = recvfrom(sock_raw, (char *)packet, PACKET_IN, 0, 190 ret = recvfrom(sock_raw, (char *)packet, PACKET_IN, 0, 201 memcpy(&ip, packet, sizeof(ip)); 207 memcpy(&icp, &packet[ip.ip_hl << 2],
|
/src/sys/arch/hpcmips/dev/ |
optpoint.c | 63 char packet[4]; member in struct:optpoint_softc 64 int index; /* number of bytes received for this packet */ 159 memset(sc->packet, 0, 3); 170 sc->packet[sc->index++] = data; 172 u_int newbuttons = ((sc->packet[1] & LBUTMASK) ? 0x1 : 0) 173 | ((sc->packet[1] & RBUTMASK) ? 0x2 : 0); 174 int dx = sc->packet[2]; 175 int dy = sc->packet[0]; 188 memset(sc->packet, 0, 3); 210 sc->packet[0] = 0xf5; /* Disable * [all...] |
optpoint.c | 63 char packet[4]; member in struct:optpoint_softc 64 int index; /* number of bytes received for this packet */ 159 memset(sc->packet, 0, 3); 170 sc->packet[sc->index++] = data; 172 u_int newbuttons = ((sc->packet[1] & LBUTMASK) ? 0x1 : 0) 173 | ((sc->packet[1] & RBUTMASK) ? 0x2 : 0); 174 int dx = sc->packet[2]; 175 int dy = sc->packet[0]; 188 memset(sc->packet, 0, 3); 210 sc->packet[0] = 0xf5; /* Disable * [all...] |
/src/sys/arch/sgimips/dev/ |
zs_ms.c | 72 /* 5-byte packet as described above */ 78 int8_t packet[5]; member in struct:zsms_softc 228 * Here's the real action. Read a full packet and 237 sc->packet[ZSMS_PACKET_SYNC] = c; 243 sc->packet[ZSMS_PACKET_X1] = c; 248 sc->packet[ZSMS_PACKET_Y1] = c; 253 sc->packet[ZSMS_PACKET_X2] = c; 258 sc->packet[ZSMS_PACKET_Y2] = c; 281 btns = (uint8_t)sc->packet[ZSMS_PACKET_SYNC] & ZSMS_SYNC_BTN_MASK; 290 x = (int)sc->packet[ZSMS_PACKET_X1] + (int)sc->packet[ZSMS_PACKET_X2] [all...] |
zs_ms.c | 72 /* 5-byte packet as described above */ 78 int8_t packet[5]; member in struct:zsms_softc 228 * Here's the real action. Read a full packet and 237 sc->packet[ZSMS_PACKET_SYNC] = c; 243 sc->packet[ZSMS_PACKET_X1] = c; 248 sc->packet[ZSMS_PACKET_Y1] = c; 253 sc->packet[ZSMS_PACKET_X2] = c; 258 sc->packet[ZSMS_PACKET_Y2] = c; 281 btns = (uint8_t)sc->packet[ZSMS_PACKET_SYNC] & ZSMS_SYNC_BTN_MASK; 290 x = (int)sc->packet[ZSMS_PACKET_X1] + (int)sc->packet[ZSMS_PACKET_X2] [all...] |
/src/usr.sbin/btpand/ |
btpand.h | 45 typedef struct packet packet_t; 110 /* packet data buffer */ 111 struct packet { struct 130 /* packet header */ 185 /* packet.c */
|
btpand.h | 45 typedef struct packet packet_t; 110 /* packet data buffer */ 111 struct packet { struct 130 /* packet header */ 185 /* packet.c */
|
/src/tests/net/net/ |
t_ip_reass.c | 106 struct lopacket *packet; local in function:alloc_lopacket 109 pktlen = sizeof(*packet) + payloadlen; 110 packet = malloc(pktlen); 111 ATF_REQUIRE(packet != NULL); 113 memset(packet, 0, pktlen); 114 packet->family = AF_INET; 116 ip = &packet->hdr; 130 return (packet); 134 free_lopacket(struct lopacket *packet) 137 free(packet); [all...] |