/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_tag.c | 35 pqisrc_put_tag(pqi_taglist_t *taglist, uint32_t elem) in pqisrc_put_tag() argument 38 OS_ACQUIRE_SPINLOCK(&(taglist->lock)); in pqisrc_put_tag() 41 ASSERT(taglist->num_elem < taglist->max_elem); in pqisrc_put_tag() 43 if (taglist->num_elem < taglist->max_elem) { in pqisrc_put_tag() 44 taglist->elem_array[taglist->tail] = elem; in pqisrc_put_tag() 45 taglist->num_elem++; in pqisrc_put_tag() 46 taglist->tail = (taglist->tail + 1) % taglist->max_elem; in pqisrc_put_tag() 49 OS_RELEASE_SPINLOCK(&taglist->lock); in pqisrc_put_tag() 58 pqisrc_get_tag(pqi_taglist_t *taglist) in pqisrc_get_tag() argument 64 OS_ACQUIRE_SPINLOCK(&taglist->lock); in pqisrc_get_tag() [all …]
|
H A D | smartpqi_event.c | 249 request->request_id = pqisrc_get_tag(&softs->taglist); in pqisrc_build_send_vendor_request() 280 pqisrc_put_tag(&softs->taglist, request->request_id); in pqisrc_build_send_vendor_request() 300 request->request_id = pqisrc_get_tag(&softs->taglist); in pqisrc_submit_management_req() 326 pqisrc_put_tag(&softs->taglist,request->request_id); in pqisrc_submit_management_req() 332 pqisrc_put_tag(&softs->taglist,request->request_id); in pqisrc_submit_management_req()
|
H A D | smartpqi_init.c | 544 ret = pqisrc_init_taglist(softs,&softs->taglist, in pqisrc_pqi_init() 572 pqisrc_destroy_taglist(softs,&softs->taglist); in pqisrc_pqi_init() 632 DBG_NOTE("softs->taglist.num_elem : %u",softs->taglist.num_elem); in pqisrc_wait_for_cmnd_complete() 634 if (softs->taglist.num_elem == softs->max_outstanding_io) in pqisrc_wait_for_cmnd_complete() 638 softs->max_outstanding_io - softs->taglist.num_elem); in pqisrc_wait_for_cmnd_complete() 648 if (softs->taglist.num_elem != softs->max_outstanding_io) { in pqisrc_wait_for_cmnd_complete() 722 pqisrc_destroy_taglist(softs,&softs->taglist); in pqisrc_pqi_uninit()
|
H A D | smartpqi_cam.c | 231 pqisrc_put_tag(&rcb->softs->taglist, rcb->tag); in pqi_unmap_request() 304 pqisrc_put_tag(&softs->taglist, release_tag); in pqi_complete_scsi_io() 864 tag = pqisrc_get_tag(&softs->taglist); in pqisrc_io_start() 873 DBG_IO("tag = %u &softs->taglist : %p\n", tag, &softs->taglist); in pqisrc_io_start() 941 tag = pqisrc_get_tag(&softs->taglist); in pqisrc_scsi_abort_task() 961 pqisrc_put_tag(&softs->taglist, tag); in pqisrc_scsi_abort_task() 981 tag = pqisrc_get_tag(&softs->taglist); in pqisrc_scsi_abort_task_set() 1001 pqisrc_put_tag(&softs->taglist, tag); in pqisrc_scsi_abort_task_set() 1042 tag = pqisrc_get_tag(&softs->taglist); in pqisrc_target_reset() 1057 pqisrc_put_tag(&softs->taglist, tag); in pqisrc_target_reset()
|
H A D | smartpqi_ioctl.c | 329 tag = pqisrc_get_tag(&softs->taglist); in pqisrc_passthru_ioctl() 402 pqisrc_put_tag(&softs->taglist, request.request_id); in pqisrc_passthru_ioctl() 411 pqisrc_put_tag(&softs->taglist, request.request_id); in pqisrc_passthru_ioctl()
|
H A D | smartpqi_queue.c | 53 req->req_id = pqisrc_get_tag(&softs->taglist); in pqisrc_submit_admin_req() 95 pqisrc_put_tag(&softs->taglist,req->req_id); in pqisrc_submit_admin_req() 100 pqisrc_put_tag(&softs->taglist,req->req_id); in pqisrc_submit_admin_req()
|
H A D | smartpqi_response.c | 463 pqisrc_put_tag(&softs->taglist, tag); in pqisrc_process_response_queue()
|
H A D | smartpqi_structures.h | 1344 pqi_taglist_t taglist; member 1346 lockless_stack_t taglist; member
|
H A D | smartpqi_discovery.c | 431 tag = pqisrc_get_tag(&softs->taglist); in pqisrc_build_send_raid_request() 495 pqisrc_put_tag(&softs->taglist, ((pqisrc_raid_req_t *)request)->request_id); in pqisrc_build_send_raid_request() 504 pqisrc_put_tag(&softs->taglist, ((pqisrc_raid_req_t *)request)->request_id); in pqisrc_build_send_raid_request()
|
/freebsd/contrib/less/ |
H A D | tags.c | 63 struct taglist { struct 74 #define TAG_END ((struct tag *) &taglist) argument 75 static struct taglist taglist = { TAG_END, TAG_END }; variable 80 (tp)->prev = taglist.tl_last; \ 81 taglist.tl_last->next = (tp); \ 82 taglist.tl_last = (tp); 100 while ((tp = taglist.tl_first) != TAG_END) in cleantags() 363 curtag = taglist.tl_first; in findctag() 602 tp = taglist in findgtag() [all...] |
/freebsd/contrib/bsnmp/snmp_target/ |
H A D | target_snmp.c | 180 ctx->scratch->int1 = strlen(addrs->taglist) + 1; in op_snmp_target_addrs() 184 strlcpy(ctx->scratch->ptr1, addrs->taglist, in op_snmp_target_addrs() 186 memcpy(addrs->taglist, val->v.octetstring.octets, in op_snmp_target_addrs() 188 addrs->taglist[val->v.octetstring.len] = '\0'; in op_snmp_target_addrs() 225 strlen(addrs->taglist) == 0 || in op_snmp_target_addrs() 278 strlcpy(addrs->taglist, ctx->scratch->ptr1, in op_snmp_target_addrs() 322 return (string_get(val, addrs->taglist, -1)); in op_snmp_target_addrs() 555 ctx->scratch->int1 = strlen(notify->taglist) + 1; in op_snmp_notify() 559 strlcpy(ctx->scratch->ptr1, notify->taglist, in op_snmp_notify() 561 memcpy(notify->taglist, val->v.octetstring.octets, in op_snmp_notify() [all …]
|
/freebsd/contrib/unbound/services/ |
H A D | localzone.h | 150 uint8_t* taglist; member 269 uint8_t* taglist, size_t taglen, int ignoretags); 326 struct regional* temp, struct comm_reply* repinfo, uint8_t* taglist, 485 enum localzone_type local_data_find_tag_action(const uint8_t* taglist,
|
H A D | rpz.h | 117 uint8_t* taglist; member 183 uint8_t* taglist, size_t taglen, struct ub_server_stats* stats,
|
H A D | rpz.c | 393 free(r->taglist); in rpz_delete() 510 r->taglist = memdup(p->rpz_taglist, r->taglistlen); in rpz_apply_cfg_elements() 511 if(!r->taglist) { in rpz_apply_cfg_elements() 604 if(r->taglist) in rpz_create() 605 free(r->taglist); in rpz_create() 620 if(r->taglist) { in rpz_config() 621 free(r->taglist); in rpz_config() 622 r->taglist = NULL; in rpz_config() 1700 struct comm_reply* repinfo, uint8_t* taglist, size_t taglen, in rpz_resolve_client_action_and_zone() argument 1719 if(r->taglist && !taglist_intersect(r->taglist, in rpz_resolve_client_action_and_zone() [all …]
|
H A D | localzone.c | 138 free(z->taglist); in local_zone_delete() 691 free(z->taglist); in lz_enter_zone_tag() 692 z->taglist = memdup(list, len); in lz_enter_zone_tag() 694 if(z->taglist) in lz_enter_zone_tag() 1233 uint8_t* taglist, size_t taglen, int ignoretags) in local_zones_tags_lookup() argument 1259 if(ignoretags || !result->taglist || in local_zones_tags_lookup() 1260 taglist_intersect(result->taglist, in local_zones_tags_lookup() 1261 result->taglen, taglist, taglen)) in local_zones_tags_lookup() 1778 lz_type(uint8_t *taglist, size_t taglen, uint8_t *taglist2, size_t taglen2, in lz_type() argument 1794 if(!taglist || !taglist2) in lz_type() [all …]
|
H A D | mesh.c | 111 if(ci_a->taglist && !ci_b->taglist) in client_info_compare() 113 if(!ci_a->taglist && ci_b->taglist) in client_info_compare() 115 if(ci_a->taglist && ci_b->taglist) { in client_info_compare() 116 cmp = memcmp(ci_a->taglist, ci_b->taglist, ci_a->taglen); in client_info_compare()
|
/freebsd/contrib/bsnmp/snmpd/ |
H A D | trap.c | 577 if (n->status != RowStatus_active || n->taglist[0] == '\0') in snmp_send_trap() 581 if ((tag = strstr(ta->taglist, n->taglist)) != NULL && in snmp_send_trap() 582 (tag[strlen(n->taglist)] == ' ' || in snmp_send_trap() 583 tag[strlen(n->taglist)] == '\0' || in snmp_send_trap() 584 tag[strlen(n->taglist)] == '\t' || in snmp_send_trap() 585 tag[strlen(n->taglist)] == '\r' || in snmp_send_trap() 586 tag[strlen(n->taglist)] == '\n') && in snmp_send_trap()
|
H A D | snmpmod.h | 525 char taglist[SNMP_TAG_SIZ]; member 550 char taglist[SNMP_TAG_SIZ]; member
|
/freebsd/contrib/unbound/respip/ |
H A D | respip.h | 39 uint8_t* taglist; member 65 uint8_t* taglist; member
|
H A D | respip.c | 160 const uint8_t* taglist, size_t taglen) in respip_tag_cfg() argument 166 if(node->taglist) { in respip_tag_cfg() 170 node->taglist = regional_alloc_init(set->region, taglist, taglen); in respip_tag_cfg() 171 if(!node->taglist) { in respip_tag_cfg() 896 ctaglist = cinfo->taglist; in respip_rewrite_reply() 937 raddr->taglist, raddr->taglen, ctaglist, ctaglen, in respip_rewrite_reply() 946 if(!r->taglist || taglist_intersect(r->taglist, in respip_rewrite_reply()
|
/freebsd/contrib/unbound/validator/ |
H A D | val_anchor.c | 1289 uint16_t* taglist; in anchor_has_keytag() local 1301 taglist = calloc(anchor->numDS + anchor->numDNSKEY, sizeof(*taglist)); in anchor_has_keytag() 1302 if(!taglist) { in anchor_has_keytag() 1307 numtag = anchor_list_keytags(anchor, taglist, in anchor_has_keytag() 1311 free(taglist); in anchor_has_keytag() 1314 tl = taglist; in anchor_has_keytag() 1317 free(taglist); in anchor_has_keytag() 1322 free(taglist); in anchor_has_keytag()
|
/freebsd/contrib/unbound/daemon/ |
H A D | acl_list.h | 98 uint8_t* taglist; member
|
H A D | acl_list.c | 239 node->taglist = regional_alloc_init(acl->region, bitmap, bitmaplen); in acl_list_tags_cfg() 240 if(!node->taglist) { in acl_list_tags_cfg()
|
/freebsd/contrib/unbound/util/ |
H A D | config_file.c | 2303 uint8_t* taglist = NULL; in config_parse_taglist() local 2313 taglist = calloc(1, len); in config_parse_taglist() 2314 if(!taglist) { in config_parse_taglist() 2327 free(taglist); in config_parse_taglist() 2330 cfg_set_bit(taglist, len, id); in config_parse_taglist() 2335 return taglist; in config_parse_taglist() 2370 char* config_taglist2str(struct config_file* cfg, uint8_t* taglist, in config_taglist2str() argument 2377 if(taglist[i] == 0) in config_taglist2str() 2380 if((taglist[i] & (1<<j)) != 0) { in config_taglist2str()
|
H A D | config_file.h | 1269 char* config_taglist2str(struct config_file* cfg, uint8_t* taglist,
|