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 */ \
217 ssize_t len = 0; \
220 for (i = 0; i < ARRAY_SIZE(table); i++) { \
274 int i, len=0; in fc_bitfield_name_search()
276 for (i = 0; i < FC_FC4_LIST_SIZE; i++, fc4_list++) in fc_bitfield_name_search()
277 len += sprintf(buf + len , "0x%02x ", *fc4_list); in fc_bitfield_name_search()
301 #define FC_WELLKNOWN_PORTID_MASK 0xfffff0
302 #define FC_WELLKNOWN_ROLE_MASK 0x00000f
303 #define FC_FPORT_PORTID 0x00000e
304 #define FC_FABCTLR_PORTID 0x00000d
305 #define FC_DIRSRVR_PORTID 0x00000c
306 #define FC_TIMESRVR_PORTID 0x00000b
307 #define FC_MGMTSRVR_PORTID 0x00000a
376 return 0; in fc_target_setup()
400 memset(fc_host->supported_fc4s, 0, in fc_host_setup()
404 fc_host->max_npiv_vports = 0; in fc_host_setup()
405 memset(fc_host->serial_number, 0, in fc_host_setup()
407 memset(fc_host->manufacturer, 0, in fc_host_setup()
409 memset(fc_host->model, 0, in fc_host_setup()
411 memset(fc_host->model_description, 0, in fc_host_setup()
413 memset(fc_host->hardware_version, 0, in fc_host_setup()
415 memset(fc_host->driver_version, 0, in fc_host_setup()
417 memset(fc_host->firmware_version, 0, in fc_host_setup()
419 memset(fc_host->optionrom_version, 0, in fc_host_setup()
425 memset(fc_host->active_fc4s, 0, in fc_host_setup()
429 memset(fc_host->symbolic_name, 0, sizeof(fc_host->symbolic_name)); in fc_host_setup()
430 memset(fc_host->system_hostname, 0, sizeof(fc_host->system_hostname)); in fc_host_setup()
431 memset(&fc_host->fpin_stats, 0, sizeof(fc_host->fpin_stats)); in fc_host_setup()
438 fc_host->next_rport_number = 0; in fc_host_setup()
439 fc_host->next_target_id = 0; in fc_host_setup()
440 fc_host->next_vport_number = 0; in fc_host_setup()
441 fc_host->npiv_vports_inuse = 0; in fc_host_setup()
445 fc_host->work_q = alloc_workqueue("%s", 0, 0, fc_host->work_q_name); in fc_host_setup()
453 fc_host->devloss_work_q = alloc_workqueue("%s", 0, 0, in fc_host_setup()
464 return 0; in fc_host_setup()
474 return 0; in fc_host_remove()
550 data_len = 0; in fc_host_post_fc_event()
565 nlh = nlmsg_put(skb, 0, 0, SCSI_TRANSPORT_MSG, len, 0); in fc_host_post_fc_event()
583 memset(event->event_data_flex + data_len, 0, padding); in fc_host_post_fc_event()
585 nlmsg_multicast(scsi_nl_sock, skb, 0, SCSI_NL_GRP_FC_EVENTS, in fc_host_post_fc_event()
594 "%s: Dropped Event : host %d %s data 0x%08x - err %d\n", in fc_host_post_fc_event()
597 (data_len) ? *((u32 *)data_buf) : 0xFFFFFFFF, err); in fc_host_post_fc_event()
617 (u32)sizeof(u32), (char *)&event_data, 0); in fc_host_post_event()
776 if (be32_to_cpu(li_desc->pname_count) > 0) { in fc_fpin_li_stats_update()
777 for (i = 0; in fc_fpin_li_stats_update()
856 if (be32_to_cpu(pc_desc->pname_count) > 0) { in fc_fpin_peer_congn_stats_update()
857 for (i = 0; in fc_fpin_peer_congn_stats_update()
906 u32 desc_cnt = 0, bytes_remain; in fc_host_fpin_rcv()
910 tlv = (struct fc_tlv_desc *)&fpin->fpin_desc[0]; in fc_host_fpin_rcv()
937 FCH_EVT_LINK_FPIN, fpin_len, fpin_buf, 0); in fc_host_fpin_rcv()
946 atomic_set(&fc_event_seq, 0); in fc_transport_init()
960 return 0; in fc_transport_init()
1014 val = simple_strtoul(buf, &cp, 0); \
1135 *val = simple_strtoul(buf, &cp, 0); in fc_str_to_dev_loss()
1144 return 0; in fc_str_to_dev_loss()
1172 return 0; in fc_rport_set_dev_loss_tmo()
1199 fc_private_rport_rd_attr_cast(node_name, "0x%llx\n", 20, unsigned long long);
1200 fc_private_rport_rd_attr_cast(port_name, "0x%llx\n", 20, unsigned long long);
1201 fc_private_rport_rd_attr(port_id, "0x%06x\n", 20);
1242 int ret = 0; in fc_rport_set_marginal_state()
1318 if (strncmp(buf, "off", 3) == 0) in store_fc_rport_fast_io_fail_tmo()
1321 val = simple_strtoul(buf, &cp, 0); in store_fc_rport_fast_io_fail_tmo()
1322 if ((*cp && (*cp != '\n')) || (val < 0)) in store_fc_rport_fast_io_fail_tmo()
1346 return snprintf(buf, 20, "0x%llx\n", rport->fpin_stats.name); \
1457 fc_starget_rd_attr_cast(node_name, "0x%llx\n", 20, unsigned long long);
1458 fc_starget_rd_attr_cast(port_name, "0x%llx\n", 20, unsigned long long);
1459 fc_starget_rd_attr(port_id, "0x%06x\n", 20);
1493 val = simple_strtoul(buf, &cp, 0); \
1558 val = simple_strtoul(buf, &cp, 0); \
1652 fc_private_vport_rd_attr_cast(node_name, "0x%llx\n", 20, unsigned long long);
1653 fc_private_vport_rd_attr_cast(port_name, "0x%llx\n", 20, unsigned long long);
1700 * Write "1" to disable, write "0" to enable
1715 if (*buf == '0') { in store_fc_vport_disable()
1724 stat = i->f->vport_disable(vport, ((*buf == '0') ? false : true)); in store_fc_vport_disable()
1758 val = simple_strtoul(buf, &cp, 0); \
1920 fc_private_host_rd_attr_cast(node_name, "0x%llx\n", 20, unsigned long long);
1921 fc_private_host_rd_attr_cast(port_name, "0x%llx\n", 20, unsigned long long);
1922 fc_private_host_rd_attr_cast(permanent_port_name, "0x%llx\n", 20,
1972 fc_host_rd_attr(port_id, "0x%06x\n", 20);
1975 fc_host_rd_attr_cast(fabric_name, "0x%llx\n", 20, unsigned long long);
2100 offset % sizeof(u64) != 0) in fc_stat_show()
2106 ret = snprintf(buf, 20, "0x%llx\n", in fc_stat_show()
2165 return snprintf(buf, 20, "0x%llx\n", fc_host->fpin_stats.name); \
2278 memset(wwn, 0, sizeof(wwn)); in fc_parse_wwn()
2281 for (i=0, j=0; i < 16; i++) { in fc_parse_wwn()
2285 if (value >= 0) in fc_parse_wwn()
2290 wwn[i/2] = j & 0xff; in fc_parse_wwn()
2291 j = 0; in fc_parse_wwn()
2297 return 0; in fc_parse_wwn()
2305 * as hex characters, and may *not* contain any prefixes (e.g. 0x, x, etc)
2317 memset(&vid, 0, sizeof(vid)); in store_fc_host_vport_create()
2327 stat = fc_parse_wwn(&buf[0], &vid.port_name); in store_fc_host_vport_create()
2340 /* we only allow support on Channel 0 !!! */ in store_fc_host_vport_create()
2341 stat = fc_vport_setup(shost, 0, &shost->shost_gendev, &vid, &vport); in store_fc_host_vport_create()
2352 * any prefixes (e.g. 0x, x, etc)
2374 stat = fc_parse_wwn(&buf[0], &wwpn); in store_fc_host_vport_delete()
2383 match = 0; in store_fc_host_vport_delete()
2384 /* we only allow support on Channel 0 !!! */ in store_fc_host_vport_delete()
2386 if ((vport->channel == 0) && in store_fc_host_vport_delete()
2414 return 0; in fc_host_match()
2419 return 0; in fc_host_match()
2433 return 0; in fc_target_match()
2438 return 0; in fc_target_match()
2465 return 0; in fc_rport_match()
2470 return 0; in fc_rport_match()
2498 return 0; in fc_vport_match()
2504 return 0; in fc_vport_match()
2596 chlo = 0; in fc_user_scan()
2604 tgtlo = 0; in fc_user_scan()
2615 return 0; in fc_user_scan()
2628 i->t.target_attrs.ac.attrs = &i->starget_attrs[0]; in fc_attach_transport()
2634 i->t.host_attrs.ac.attrs = &i->host_attrs[0]; in fc_attach_transport()
2642 i->rport_attr_cont.ac.attrs = &i->rport_attrs[0]; in fc_attach_transport()
2648 i->vport_attr_cont.ac.attrs = &i->vport_attrs[0]; in fc_attach_transport()
2663 count = 0; in fc_attach_transport()
2676 count=0; in fc_attach_transport()
2723 count=0; in fc_attach_transport()
2742 count=0; in fc_attach_transport()
2781 * 0 - work is already queued
2824 * 1 on success / 0 already queued / < 0 for error
2974 int do_callback = 0; in fc_rport_final_delete()
3183 int match = 0; in fc_remote_port_add()
3231 memset(rport->dd_data, 0, in fc_remote_port_add()
3339 memset(rport->dd_data, 0, in fc_remote_port_add()
3491 int create = 0; in fc_remote_port_rolechg()
3559 int do_callback = 0; in fc_timeout_deleted_rport()
3738 * Returns: 0 if the fc_rport left the state FC_PORTSTATE_BLOCKED.
3759 return 0; in fc_block_rport()
3773 * Returns: 0 if the fc_rport left the state FC_PORTSTATE_BLOCKED.
3921 return 0; in fc_vport_setup()
4013 return 0; /* SUCCESS */ in fc_vport_terminate()
4053 int err = 0, inflight = 0; in fc_bsg_job_timeout()
4128 if ((shost->hostt->vendor_id == 0L) || in fc_bsg_host_dispatch()
4143 return 0; in fc_bsg_host_dispatch()
4148 bsg_reply->reply_payload_rcv_len = 0; in fc_bsg_host_dispatch()
4153 return 0; in fc_bsg_host_dispatch()
4212 return 0; in fc_bsg_rport_dispatch()
4217 bsg_reply->reply_payload_rcv_len = 0; in fc_bsg_rport_dispatch()
4222 return 0; in fc_bsg_rport_dispatch()
4299 return 0; in fc_bsg_hostadd()
4328 return 0; in fc_bsg_rportadd()