Lines Matching +full:0 +full:xfffff0

76 	for (i = 0; i < ARRAY_SIZE(table); i++) {			\
91 for (i = 0; i < ARRAY_SIZE(table); i++) { \
93 table[i].matchlen) == 0) { \
95 return 0; /* success */ \
218 ssize_t len = 0; \
221 for (i = 0; i < ARRAY_SIZE(table); i++) { \
275 int i, len=0; in fc_bitfield_name_search()
277 for (i = 0; i < FC_FC4_LIST_SIZE; i++, fc4_list++) in fc_bitfield_name_search()
278 len += sprintf(buf + len , "0x%02x ", *fc4_list); in fc_bitfield_name_search()
302 #define FC_WELLKNOWN_PORTID_MASK 0xfffff0
303 #define FC_WELLKNOWN_ROLE_MASK 0x00000f
304 #define FC_FPORT_PORTID 0x00000e
305 #define FC_FABCTLR_PORTID 0x00000d
306 #define FC_DIRSRVR_PORTID 0x00000c
307 #define FC_TIMESRVR_PORTID 0x00000b
308 #define FC_MGMTSRVR_PORTID 0x00000a
377 return 0; in fc_target_setup()
401 memset(fc_host->supported_fc4s, 0, in fc_host_setup()
405 fc_host->max_npiv_vports = 0; in fc_host_setup()
406 memset(fc_host->serial_number, 0, in fc_host_setup()
408 memset(fc_host->manufacturer, 0, in fc_host_setup()
410 memset(fc_host->model, 0, in fc_host_setup()
412 memset(fc_host->model_description, 0, in fc_host_setup()
414 memset(fc_host->hardware_version, 0, in fc_host_setup()
416 memset(fc_host->driver_version, 0, in fc_host_setup()
418 memset(fc_host->firmware_version, 0, in fc_host_setup()
420 memset(fc_host->optionrom_version, 0, in fc_host_setup()
426 memset(fc_host->active_fc4s, 0, in fc_host_setup()
430 memset(fc_host->symbolic_name, 0, sizeof(fc_host->symbolic_name)); in fc_host_setup()
431 memset(fc_host->system_hostname, 0, sizeof(fc_host->system_hostname)); in fc_host_setup()
432 memset(&fc_host->fpin_stats, 0, sizeof(fc_host->fpin_stats)); in fc_host_setup()
439 fc_host->next_rport_number = 0; in fc_host_setup()
440 fc_host->next_target_id = 0; in fc_host_setup()
441 fc_host->next_vport_number = 0; in fc_host_setup()
442 fc_host->npiv_vports_inuse = 0; in fc_host_setup()
444 fc_host->work_q = alloc_workqueue("fc_wq_%d", 0, 0, shost->host_no); in fc_host_setup()
449 fc_host->devloss_work_q = alloc_workqueue("fc_dl_%d", 0, 0, in fc_host_setup()
460 return 0; in fc_host_setup()
470 return 0; in fc_host_remove()
546 data_len = 0; in fc_host_post_fc_event()
561 nlh = nlmsg_put(skb, 0, 0, SCSI_TRANSPORT_MSG, len, 0); in fc_host_post_fc_event()
579 memset(event->event_data_flex + data_len, 0, padding); in fc_host_post_fc_event()
581 nlmsg_multicast(scsi_nl_sock, skb, 0, SCSI_NL_GRP_FC_EVENTS, in fc_host_post_fc_event()
590 "%s: Dropped Event : host %d %s data 0x%08x - err %d\n", in fc_host_post_fc_event()
593 (data_len) ? *((u32 *)data_buf) : 0xFFFFFFFF, err); in fc_host_post_fc_event()
613 (u32)sizeof(u32), (char *)&event_data, 0); in fc_host_post_event()
772 if (be32_to_cpu(li_desc->pname_count) > 0) { in fc_fpin_li_stats_update()
773 for (i = 0; in fc_fpin_li_stats_update()
852 if (be32_to_cpu(pc_desc->pname_count) > 0) { in fc_fpin_peer_congn_stats_update()
853 for (i = 0; in fc_fpin_peer_congn_stats_update()
909 tlv = (struct fc_tlv_desc *)&fpin->fpin_desc[0]; in fc_host_fpin_rcv()
935 event_code, fpin_len, fpin_buf, 0); in fc_host_fpin_rcv()
944 atomic_set(&fc_event_seq, 0); in fc_transport_init()
958 return 0; in fc_transport_init()
1012 val = simple_strtoul(buf, &cp, 0); \
1133 *val = simple_strtoul(buf, &cp, 0); in fc_str_to_dev_loss()
1142 return 0; in fc_str_to_dev_loss()
1170 return 0; in fc_rport_set_dev_loss_tmo()
1197 fc_private_rport_rd_attr_cast(node_name, "0x%llx\n", 20, unsigned long long);
1198 fc_private_rport_rd_attr_cast(port_name, "0x%llx\n", 20, unsigned long long);
1199 fc_private_rport_rd_attr(port_id, "0x%06x\n", 20);
1240 int ret = 0; in fc_rport_set_marginal_state()
1316 if (strncmp(buf, "off", 3) == 0) in store_fc_rport_fast_io_fail_tmo()
1319 val = simple_strtoul(buf, &cp, 0); in store_fc_rport_fast_io_fail_tmo()
1320 if ((*cp && (*cp != '\n')) || (val < 0)) in store_fc_rport_fast_io_fail_tmo()
1344 return snprintf(buf, 20, "0x%llx\n", rport->fpin_stats.name); \
1455 fc_starget_rd_attr_cast(node_name, "0x%llx\n", 20, unsigned long long);
1456 fc_starget_rd_attr_cast(port_name, "0x%llx\n", 20, unsigned long long);
1457 fc_starget_rd_attr(port_id, "0x%06x\n", 20);
1491 val = simple_strtoul(buf, &cp, 0); \
1556 val = simple_strtoul(buf, &cp, 0); \
1650 fc_private_vport_rd_attr_cast(node_name, "0x%llx\n", 20, unsigned long long);
1651 fc_private_vport_rd_attr_cast(port_name, "0x%llx\n", 20, unsigned long long);
1698 * Write "1" to disable, write "0" to enable
1713 if (*buf == '0') { in store_fc_vport_disable()
1722 stat = i->f->vport_disable(vport, ((*buf == '0') ? false : true)); in store_fc_vport_disable()
1756 val = simple_strtoul(buf, &cp, 0); \
1918 fc_private_host_rd_attr_cast(node_name, "0x%llx\n", 20, unsigned long long);
1919 fc_private_host_rd_attr_cast(port_name, "0x%llx\n", 20, unsigned long long);
1920 fc_private_host_rd_attr_cast(permanent_port_name, "0x%llx\n", 20,
1970 fc_host_rd_attr(port_id, "0x%06x\n", 20);
1973 fc_host_rd_attr_cast(fabric_name, "0x%llx\n", 20, unsigned long long);
2098 offset % sizeof(u64) != 0) in fc_stat_show()
2104 ret = snprintf(buf, 20, "0x%llx\n", in fc_stat_show()
2163 return snprintf(buf, 20, "0x%llx\n", fc_host->fpin_stats.name); \
2276 memset(wwn, 0, sizeof(wwn)); in fc_parse_wwn()
2279 for (i=0, j=0; i < 16; i++) { in fc_parse_wwn()
2283 if (value >= 0) in fc_parse_wwn()
2288 wwn[i/2] = j & 0xff; in fc_parse_wwn()
2289 j = 0; in fc_parse_wwn()
2295 return 0; in fc_parse_wwn()
2303 * as hex characters, and may *not* contain any prefixes (e.g. 0x, x, etc)
2315 memset(&vid, 0, sizeof(vid)); in store_fc_host_vport_create()
2325 stat = fc_parse_wwn(&buf[0], &vid.port_name); in store_fc_host_vport_create()
2338 /* we only allow support on Channel 0 !!! */ in store_fc_host_vport_create()
2339 stat = fc_vport_setup(shost, 0, &shost->shost_gendev, &vid, &vport); in store_fc_host_vport_create()
2350 * any prefixes (e.g. 0x, x, etc)
2372 stat = fc_parse_wwn(&buf[0], &wwpn); in store_fc_host_vport_delete()
2381 match = 0; in store_fc_host_vport_delete()
2382 /* we only allow support on Channel 0 !!! */ in store_fc_host_vport_delete()
2384 if ((vport->channel == 0) && in store_fc_host_vport_delete()
2412 return 0; in fc_host_match()
2417 return 0; in fc_host_match()
2431 return 0; in fc_target_match()
2436 return 0; in fc_target_match()
2463 return 0; in fc_rport_match()
2468 return 0; in fc_rport_match()
2496 return 0; in fc_vport_match()
2502 return 0; in fc_vport_match()
2593 chlo = 0; in fc_user_scan()
2601 tgtlo = 0; in fc_user_scan()
2612 return 0; in fc_user_scan()
2625 i->t.target_attrs.ac.attrs = &i->starget_attrs[0]; in fc_attach_transport()
2631 i->t.host_attrs.ac.attrs = &i->host_attrs[0]; in fc_attach_transport()
2639 i->rport_attr_cont.ac.attrs = &i->rport_attrs[0]; in fc_attach_transport()
2645 i->vport_attr_cont.ac.attrs = &i->vport_attrs[0]; in fc_attach_transport()
2660 count = 0; in fc_attach_transport()
2673 count=0; in fc_attach_transport()
2720 count=0; in fc_attach_transport()
2739 count=0; in fc_attach_transport()
2778 * 0 - work is already queued
2821 * 1 on success / 0 already queued / < 0 for error
2971 int do_callback = 0; in fc_rport_final_delete()
3180 int match = 0; in fc_remote_port_add()
3228 memset(rport->dd_data, 0, in fc_remote_port_add()
3336 memset(rport->dd_data, 0, in fc_remote_port_add()
3488 int create = 0; in fc_remote_port_rolechg()
3556 int do_callback = 0; in fc_timeout_deleted_rport()
3735 * Returns: 0 if the fc_rport left the state FC_PORTSTATE_BLOCKED.
3756 return 0; in fc_block_rport()
3770 * Returns: 0 if the fc_rport left the state FC_PORTSTATE_BLOCKED.
3918 return 0; in fc_vport_setup()
4010 return 0; /* SUCCESS */ in fc_vport_terminate()
4050 int err = 0, inflight = 0; in fc_bsg_job_timeout()
4125 if ((shost->hostt->vendor_id == 0L) || in fc_bsg_host_dispatch()
4140 return 0; in fc_bsg_host_dispatch()
4145 bsg_reply->reply_payload_rcv_len = 0; in fc_bsg_host_dispatch()
4150 return 0; in fc_bsg_host_dispatch()
4209 return 0; in fc_bsg_rport_dispatch()
4214 bsg_reply->reply_payload_rcv_len = 0; in fc_bsg_rport_dispatch()
4219 return 0; in fc_bsg_rport_dispatch()
4297 return 0; in fc_bsg_hostadd()
4328 return 0; in fc_bsg_rportadd()