Searched refs:disc (Results 1 - 90 of 90) sorted by relevance

/linux-4.4.14/drivers/scsi/libfc/
H A Dfc_disc.c30 * The disc mutex is can be locked when acquiring rport locks, but may not
59 * @disc: The discovery job to stop remote ports on
64 static void fc_disc_stop_rports(struct fc_disc *disc) fc_disc_stop_rports() argument
69 lport = fc_disc_lport(disc); fc_disc_stop_rports()
71 mutex_lock(&disc->disc_mutex); fc_disc_stop_rports()
72 list_for_each_entry_rcu(rdata, &disc->rports, peers) fc_disc_stop_rports()
74 mutex_unlock(&disc->disc_mutex); fc_disc_stop_rports()
79 * @disc: The discovery object to which the RSCN applies
85 static void fc_disc_recv_rscn_req(struct fc_disc *disc, struct fc_frame *fp) fc_disc_recv_rscn_req() argument
98 lport = fc_disc_lport(disc); fc_disc_recv_rscn_req()
100 FC_DISC_DBG(disc, "Received an RSCN event\n"); fc_disc_recv_rscn_req()
133 FC_DISC_DBG(disc, "Port address format for port " fc_disc_recv_rscn_req()
148 FC_DISC_DBG(disc, "Address format is (%d)\n", fmt); fc_disc_recv_rscn_req()
168 FC_DISC_DBG(disc, "RSCN received: rediscovering\n"); fc_disc_recv_rscn_req()
169 fc_disc_restart(disc); fc_disc_recv_rscn_req()
171 FC_DISC_DBG(disc, "RSCN received: not rediscovering. " fc_disc_recv_rscn_req()
173 redisc, lport->state, disc->pending); fc_disc_recv_rscn_req()
178 FC_DISC_DBG(disc, "Received a bad RSCN frame\n"); fc_disc_recv_rscn_req()
197 struct fc_disc *disc = &lport->disc; fc_disc_recv_req() local
202 mutex_lock(&disc->disc_mutex); fc_disc_recv_req()
203 fc_disc_recv_rscn_req(disc, fp); fc_disc_recv_req()
204 mutex_unlock(&disc->disc_mutex); fc_disc_recv_req()
207 FC_DISC_DBG(disc, "Received an unsupported request, " fc_disc_recv_req()
216 * @disc: The discovery object to be restarted
218 * Locking Note: This function expects that the disc mutex
221 static void fc_disc_restart(struct fc_disc *disc) fc_disc_restart() argument
223 if (!disc->disc_callback) fc_disc_restart()
226 FC_DISC_DBG(disc, "Restarting discovery\n"); fc_disc_restart()
228 disc->requested = 1; fc_disc_restart()
229 if (disc->pending) fc_disc_restart()
237 disc->disc_id = (disc->disc_id + 2) | 1; fc_disc_restart()
238 disc->retry_count = 0; fc_disc_restart()
239 fc_disc_gpn_ft_req(disc); fc_disc_restart()
251 struct fc_disc *disc = &lport->disc; fc_disc_start() local
254 * At this point we may have a new disc job or an existing fc_disc_start()
258 mutex_lock(&disc->disc_mutex); fc_disc_start()
259 disc->disc_callback = disc_callback; fc_disc_start()
260 fc_disc_restart(disc); fc_disc_start()
261 mutex_unlock(&disc->disc_mutex); fc_disc_start()
266 * @disc: The discovery context
269 * Locking Note: This function expects that the disc mutex is locked before
273 static void fc_disc_done(struct fc_disc *disc, enum fc_disc_event event) fc_disc_done() argument
275 struct fc_lport *lport = fc_disc_lport(disc); fc_disc_done()
278 FC_DISC_DBG(disc, "Discovery complete\n"); fc_disc_done()
280 disc->pending = 0; fc_disc_done()
281 if (disc->requested) { fc_disc_done()
282 fc_disc_restart(disc); fc_disc_done()
292 list_for_each_entry_rcu(rdata, &disc->rports, peers) { fc_disc_done()
295 if (rdata->disc_id == disc->disc_id) fc_disc_done()
301 mutex_unlock(&disc->disc_mutex); fc_disc_done()
302 disc->disc_callback(lport, event); fc_disc_done()
303 mutex_lock(&disc->disc_mutex); fc_disc_done()
308 * @disc: The discovery context
311 static void fc_disc_error(struct fc_disc *disc, struct fc_frame *fp) fc_disc_error() argument
313 struct fc_lport *lport = fc_disc_lport(disc); fc_disc_error()
316 FC_DISC_DBG(disc, "Error %ld, retries %d/%d\n", fc_disc_error()
317 PTR_ERR(fp), disc->retry_count, fc_disc_error()
325 if (disc->retry_count < FC_DISC_RETRY_LIMIT) { fc_disc_error()
333 if (!disc->retry_count) fc_disc_error()
336 disc->retry_count++; fc_disc_error()
337 schedule_delayed_work(&disc->disc_work, delay); fc_disc_error()
339 fc_disc_done(disc, DISC_EV_FAILED); fc_disc_error()
346 disc->pending = 0; fc_disc_error()
357 static void fc_disc_gpn_ft_req(struct fc_disc *disc) fc_disc_gpn_ft_req() argument
360 struct fc_lport *lport = fc_disc_lport(disc); fc_disc_gpn_ft_req()
364 disc->pending = 1; fc_disc_gpn_ft_req()
365 disc->requested = 0; fc_disc_gpn_ft_req()
367 disc->buf_len = 0; fc_disc_gpn_ft_req()
368 disc->seq_count = 0; fc_disc_gpn_ft_req()
378 disc, 3 * lport->r_a_tov)) fc_disc_gpn_ft_req()
381 fc_disc_error(disc, NULL); fc_disc_gpn_ft_req()
392 static int fc_disc_gpn_ft_parse(struct fc_disc *disc, void *buf, size_t len) fc_disc_gpn_ft_parse() argument
403 lport = fc_disc_lport(disc); fc_disc_gpn_ft_parse()
404 disc->seq_count++; fc_disc_gpn_ft_parse()
412 tlen = disc->buf_len; fc_disc_gpn_ft_parse()
413 disc->buf_len = 0; fc_disc_gpn_ft_parse()
421 np = &disc->partial_buf; fc_disc_gpn_ft_parse()
431 disc->buf_len = (unsigned char) plen; fc_disc_gpn_ft_parse()
433 disc->buf_len = 0; fc_disc_gpn_ft_parse()
452 rdata->disc_id = disc->disc_id; fc_disc_gpn_ft_parse()
462 fc_disc_done(disc, DISC_EV_SUCCESS); fc_disc_gpn_ft_parse()
476 if (np != &disc->partial_buf) { fc_disc_gpn_ft_parse()
477 FC_DISC_DBG(disc, "Partial buffer remains " fc_disc_gpn_ft_parse()
479 memcpy(&disc->partial_buf, np, len); fc_disc_gpn_ft_parse()
481 disc->buf_len = (unsigned char) len; fc_disc_gpn_ft_parse()
492 struct fc_disc *disc = container_of(work, fc_disc_timeout() local
495 mutex_lock(&disc->disc_mutex); fc_disc_timeout()
496 fc_disc_gpn_ft_req(disc); fc_disc_timeout()
497 mutex_unlock(&disc->disc_mutex); fc_disc_timeout()
506 * Locking Note: This function is called without disc mutex held, and
512 struct fc_disc *disc = disc_arg; fc_disc_gpn_ft_resp() local
520 mutex_lock(&disc->disc_mutex); fc_disc_gpn_ft_resp()
521 FC_DISC_DBG(disc, "Received a GPN_FT response\n"); fc_disc_gpn_ft_resp()
524 fc_disc_error(disc, fp); fc_disc_gpn_ft_resp()
525 mutex_unlock(&disc->disc_mutex); fc_disc_gpn_ft_resp()
533 if (fr_sof(fp) == FC_SOF_I3 && seq_cnt == 0 && disc->seq_count == 0) { fc_disc_gpn_ft_resp()
536 FC_DISC_DBG(disc, "GPN_FT response too short, len %d\n", fc_disc_gpn_ft_resp()
543 error = fc_disc_gpn_ft_parse(disc, cp + 1, len); fc_disc_gpn_ft_resp()
545 FC_DISC_DBG(disc, "GPN_FT rejected reason %x exp %x " fc_disc_gpn_ft_resp()
553 FC_DISC_DBG(disc, "GPN_FT unexpected response code " fc_disc_gpn_ft_resp()
557 } else if (fr_sof(fp) == FC_SOF_N3 && seq_cnt == disc->seq_count) { fc_disc_gpn_ft_resp()
558 error = fc_disc_gpn_ft_parse(disc, fh + 1, len); fc_disc_gpn_ft_resp()
560 FC_DISC_DBG(disc, "GPN_FT unexpected frame - out of sequence? " fc_disc_gpn_ft_resp()
562 seq_cnt, disc->seq_count, fr_sof(fp), fr_eof(fp)); fc_disc_gpn_ft_resp()
566 fc_disc_error(disc, fp); fc_disc_gpn_ft_resp()
568 fc_disc_done(disc, event); fc_disc_gpn_ft_resp()
570 mutex_unlock(&disc->disc_mutex); fc_disc_gpn_ft_resp()
579 * Locking Note: This function is called without disc mutex held.
587 struct fc_disc *disc; fc_disc_gpn_id_resp() local
593 disc = &lport->disc; fc_disc_gpn_id_resp()
595 mutex_lock(&disc->disc_mutex); fc_disc_gpn_id_resp()
613 FC_DISC_DBG(disc, "GPN_ID accepted. WWPN changed. " fc_disc_gpn_id_resp()
621 new_rdata->disc_id = disc->disc_id; fc_disc_gpn_id_resp()
626 rdata->disc_id = disc->disc_id; fc_disc_gpn_id_resp()
629 FC_DISC_DBG(disc, "GPN_ID rejected reason %x exp %x\n", fc_disc_gpn_id_resp()
633 FC_DISC_DBG(disc, "GPN_ID unexpected response code %x\n", fc_disc_gpn_id_resp()
636 fc_disc_restart(disc); fc_disc_gpn_id_resp()
639 mutex_unlock(&disc->disc_mutex); fc_disc_gpn_id_resp()
694 struct fc_disc *disc = &lport->disc; fc_disc_stop() local
696 if (disc->pending) fc_disc_stop()
697 cancel_delayed_work_sync(&disc->disc_work); fc_disc_stop()
698 fc_disc_stop_rports(disc); fc_disc_stop()
721 struct fc_disc *disc = &lport->disc; fc_disc_config() local
735 disc = &lport->disc; fc_disc_config()
737 disc->priv = priv; fc_disc_config()
747 struct fc_disc *disc = &lport->disc; fc_disc_init() local
749 INIT_DELAYED_WORK(&disc->disc_work, fc_disc_timeout); fc_disc_init()
750 mutex_init(&disc->disc_mutex); fc_disc_init()
751 INIT_LIST_HEAD(&disc->rports); fc_disc_init()
H A Dfc_libfc.h52 #define FC_DISC_DBG(disc, fmt, args...) \
54 pr_info("host%u: disc: " fmt, \
55 fc_disc_lport(disc)->host->host_no, \
H A Dfc_rport.c35 * either the lport or disc mutexes. The rport's mutex is considered lesser
36 * than both the lport's mutex and the disc mutex. Refer to fc_lport.c for
105 list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) fc_rport_lookup()
151 list_add_rcu(&rdata->peers, &lport->disc.rports); fc_rport_create()
343 mutex_lock(&lport->disc.disc_mutex); fc_rport_work()
373 mutex_unlock(&lport->disc.disc_mutex); fc_rport_work()
753 struct fc_disc *disc; fc_rport_recv_flogi_req() local
764 disc = &lport->disc; fc_rport_recv_flogi_req()
765 mutex_lock(&disc->disc_mutex); fc_rport_recv_flogi_req()
854 mutex_unlock(&disc->disc_mutex); fc_rport_recv_flogi_req()
859 mutex_unlock(&disc->disc_mutex); fc_rport_recv_flogi_req()
1480 mutex_lock(&lport->disc.disc_mutex); fc_rport_recv_els_req()
1483 mutex_unlock(&lport->disc.disc_mutex); fc_rport_recv_els_req()
1487 mutex_unlock(&lport->disc.disc_mutex); fc_rport_recv_els_req()
1590 struct fc_disc *disc; fc_rport_recv_plogi_req() local
1609 disc = &lport->disc; fc_rport_recv_plogi_req()
1610 mutex_lock(&disc->disc_mutex); fc_rport_recv_plogi_req()
1613 mutex_unlock(&disc->disc_mutex); fc_rport_recv_plogi_req()
1620 mutex_unlock(&disc->disc_mutex); fc_rport_recv_plogi_req()
1910 mutex_lock(&lport->disc.disc_mutex); fc_rport_recv_logo_req()
1922 mutex_unlock(&lport->disc.disc_mutex); fc_rport_recv_logo_req()
H A Dfc_lport.c24 * disc and rport blocks.
28 * The lport, disc and rport blocks all have mutexes that are used to protect
41 * lport > disc, lport > rport, disc > rport
46 * from the rport (to either lport or disc) and a callback from disc
51 * cause the lport or disc to grab its lock we cannot hold the rport lock
245 mutex_lock(&lport->disc.disc_mutex); fc_lport_ptp_setup()
254 mutex_unlock(&lport->disc.disc_mutex); fc_lport_ptp_setup()
1431 mutex_lock(&lport->disc.disc_mutex); fc_lport_enter_dns()
1433 mutex_unlock(&lport->disc.disc_mutex); fc_lport_enter_dns()
1548 mutex_lock(&lport->disc.disc_mutex); fc_lport_enter_fdmi()
1550 mutex_unlock(&lport->disc.disc_mutex); fc_lport_enter_fdmi()
/linux-4.4.14/drivers/scsi/snic/
H A Dsnic_disc.c190 list_for_each_safe(cur, nxt, &snic->disc.tgt_list) { snic_tgt_lookup()
304 list_add_tail(&tgt->list, &snic->disc.tgt_list); snic_tgt_create()
305 tgt->scsi_tgt_id = snic->disc.nxt_tgt_id++; snic_tgt_create()
346 kfree(snic->disc.rtgt_info); snic_handle_tgt_disc()
352 mutex_lock(&snic->disc.mutex); snic_handle_tgt_disc()
353 /* Discover triggered during disc in progress */ snic_handle_tgt_disc()
354 if (snic->disc.req_cnt) { snic_handle_tgt_disc()
355 snic->disc.state = SNIC_DISC_DONE; snic_handle_tgt_disc()
356 snic->disc.req_cnt = 0; snic_handle_tgt_disc()
357 mutex_unlock(&snic->disc.mutex); snic_handle_tgt_disc()
358 kfree(snic->disc.rtgt_info); snic_handle_tgt_disc()
359 snic->disc.rtgt_info = NULL; snic_handle_tgt_disc()
368 tgtid = (struct snic_tgt_id *)snic->disc.rtgt_info; snic_handle_tgt_disc()
370 SNIC_BUG_ON(snic->disc.rtgt_cnt == 0 || tgtid == NULL); snic_handle_tgt_disc()
372 for (i = 0; i < snic->disc.rtgt_cnt; i++) { snic_handle_tgt_disc()
375 int buf_sz = snic->disc.rtgt_cnt * sizeof(*tgtid); snic_handle_tgt_disc()
383 snic->disc.rtgt_info = NULL; snic_handle_tgt_disc()
384 snic->disc.state = SNIC_DISC_DONE; snic_handle_tgt_disc()
385 mutex_unlock(&snic->disc.mutex); snic_handle_tgt_disc()
430 snic->disc.rtgt_cnt = tgt_cnt; snic_report_tgt_cmpl_handler()
431 snic->disc.rtgt_info = (u8 *) tgtid; snic_report_tgt_cmpl_handler()
449 snic_disc_init(struct snic_disc *disc) snic_disc_init() argument
451 INIT_LIST_HEAD(&disc->tgt_list); snic_disc_init()
452 mutex_init(&disc->mutex); snic_disc_init()
453 disc->disc_id = 0; snic_disc_init()
454 disc->nxt_tgt_id = 0; snic_disc_init()
455 disc->state = SNIC_DISC_INIT; snic_disc_init()
456 disc->req_cnt = 0; snic_disc_init()
457 disc->rtgt_cnt = 0; snic_disc_init()
458 disc->rtgt_info = NULL; snic_disc_init()
459 disc->cb = NULL; snic_disc_init()
466 struct snic_disc *disc = &snic->disc; snic_disc_term() local
468 mutex_lock(&disc->mutex); snic_disc_term()
469 if (disc->req_cnt) { snic_disc_term()
470 disc->req_cnt = 0; snic_disc_term()
473 mutex_unlock(&disc->mutex); snic_disc_term()
482 struct snic_disc *disc = &snic->disc; snic_disc_start() local
487 mutex_lock(&disc->mutex); snic_disc_start()
488 if (disc->state == SNIC_DISC_PENDING) { snic_disc_start()
489 disc->req_cnt++; snic_disc_start()
490 mutex_unlock(&disc->mutex); snic_disc_start()
494 disc->state = SNIC_DISC_PENDING; snic_disc_start()
495 mutex_unlock(&disc->mutex); snic_disc_start()
536 mutex_lock(&snic->disc.mutex); snic_tgt_del_all()
539 list_for_each_safe(cur, nxt, &snic->disc.tgt_list) { snic_tgt_del_all()
550 mutex_unlock(&snic->disc.mutex); snic_tgt_del_all()
H A Dsnic.h274 struct snic_disc disc; member in struct:snic
H A Dsnic_main.c644 snic_disc_init(&snic->disc); snic_probe()
/linux-4.4.14/include/uapi/linux/
H A Dadfs_fs.h8 * Disc Record at disc address 0xc00
H A Dcdrom.h29 * mount or play an empty slot, mount an audio disc, or play a data disc.
123 #define CDROM_SELECT_DISC 0x5323 /* Select disc (for juke-boxes) */
126 #define CDROM_DISC_STATUS 0x5327 /* Get disc type, etc. */
147 #define CDROM_LAST_WRITTEN 0x5395 /* get last block written on disc */
360 /* The leadout track is always 0xAA, regardless of # of tracks on disc */
376 #define CDC_SELECT_DISC 0x10 /* select disc from juke-box */
H A Dsysctl.h820 FS_DQSTATS=16, /* disc quota usage statistics and control */
/linux-4.4.14/drivers/scsi/libsas/
H A Dsas_discover.c150 memset(port->disc.fanout_sas_addr, 0, SAS_ADDR_SIZE); sas_get_port_device()
151 memset(port->disc.eeds_a, 0, SAS_ADDR_SIZE); sas_get_port_device()
152 memset(port->disc.eeds_b, 0, SAS_ADDR_SIZE); sas_get_port_device()
153 port->disc.max_level = 0; sas_get_port_device()
221 clear_bit(DISCE_PROBE, &port->disc.pending); sas_probe_devices()
252 clear_bit(DISCE_SUSPEND, &port->disc.pending); sas_suspend_devices()
279 clear_bit(DISCE_RESUME, &port->disc.pending); sas_resume_devices()
362 clear_bit(DISCE_DESTRUCT, &port->disc.pending); sas_destruct_devices()
446 clear_bit(DISCE_DISCOVER_DOMAIN, &port->disc.pending); sas_discover_domain()
513 clear_bit(DISCE_REVALIDATE_DOMAIN, &port->disc.pending); sas_revalidate_domain()
555 struct sas_discovery *disc; sas_discover_event() local
559 disc = &port->disc; sas_discover_event()
563 sas_chain_event(ev, &disc->pending, &disc->disc_work[ev].work, port->ha); sas_discover_event()
574 void sas_init_disc(struct sas_discovery *disc, struct asd_sas_port *port) sas_init_disc() argument
587 disc->pending = 0; sas_init_disc()
589 INIT_SAS_WORK(&disc->disc_work[i].work, sas_event_fns[i]); sas_init_disc()
590 disc->disc_work[i].port = port; sas_init_disc()
H A Dsas_expander.c204 struct discover_resp *dr = &resp->disc; sas_set_ex_phy()
337 set_bit(DISCE_REVALIDATE_DOMAIN, &dev->port->disc.pending); sas_set_ex_phy()
383 dr = &((struct smp_resp *)disc_resp)->disc; sas_ex_phy_discover_helper()
961 parent->port->disc.max_level = max(parent->port->disc.max_level, sas_ex_discover_expander()
1057 if (SAS_ADDR(dev->port->disc.fanout_sas_addr)) { sas_ex_discover_dev()
1067 memcpy(dev->port->disc.fanout_sas_addr, sas_ex_discover_dev()
1275 if (SAS_ADDR(parent->port->disc.fanout_sas_addr) != 0) { sas_check_eeds()
1283 SAS_ADDR(parent->port->disc.fanout_sas_addr)); sas_check_eeds()
1284 } else if (SAS_ADDR(parent->port->disc.eeds_a) == 0) { sas_check_eeds()
1285 memcpy(parent->port->disc.eeds_a, parent->sas_addr, sas_check_eeds()
1287 memcpy(parent->port->disc.eeds_b, child->sas_addr, sas_check_eeds()
1289 } else if (((SAS_ADDR(parent->port->disc.eeds_a) == sas_check_eeds()
1291 (SAS_ADDR(parent->port->disc.eeds_a) == sas_check_eeds()
1294 ((SAS_ADDR(parent->port->disc.eeds_b) == sas_check_eeds()
1296 (SAS_ADDR(parent->port->disc.eeds_b) == sas_check_eeds()
1644 level = port->disc.max_level; sas_ex_bfs_disc()
1647 } while (level < port->disc.max_level); sas_ex_bfs_disc()
1661 ex->level = dev->port->disc.max_level; /* 0 */ sas_discover_root_expander()
1716 *pcc = disc_resp->disc.change_count; sas_get_phy_change_count()
1732 dr = &disc_resp->disc; sas_get_phy_attached_dev()
1736 memcpy(sas_addr, disc_resp->disc.attached_sas_addr, 8); sas_get_phy_attached_dev()
1947 } while (level <= dev->port->disc.max_level); sas_discover_bfs_by_root()
H A Dsas_event.c109 struct sas_discovery *d = &port->disc; sas_enable_revalidation()
H A Dsas_port.c342 sas_init_disc(&port->disc, port); sas_register_ports()
/linux-4.4.14/drivers/tty/
H A Dtty_ldisc.c44 /* Line disc dispatch table */
49 * @disc: ldisc number
60 int tty_register_ldisc(int disc, struct tty_ldisc_ops *new_ldisc) tty_register_ldisc() argument
65 if (disc < N_TTY || disc >= NR_LDISCS) tty_register_ldisc()
69 tty_ldiscs[disc] = new_ldisc; tty_register_ldisc()
70 new_ldisc->num = disc; tty_register_ldisc()
80 * @disc: ldisc number
90 int tty_unregister_ldisc(int disc) tty_unregister_ldisc() argument
95 if (disc < N_TTY || disc >= NR_LDISCS) tty_unregister_ldisc()
99 if (tty_ldiscs[disc]->refcount) tty_unregister_ldisc()
102 tty_ldiscs[disc] = NULL; tty_unregister_ldisc()
109 static struct tty_ldisc_ops *get_ldops(int disc) get_ldops() argument
116 ldops = tty_ldiscs[disc]; get_ldops()
140 * @disc: ldisc number
151 static struct tty_ldisc *tty_ldisc_get(struct tty_struct *tty, int disc) tty_ldisc_get() argument
156 if (disc < N_TTY || disc >= NR_LDISCS) tty_ldisc_get()
163 ldops = get_ldops(disc); tty_ldisc_get()
165 request_module("tty-ldisc-%d", disc); tty_ldisc_get()
166 ldops = get_ldops(disc); tty_ldisc_get()
H A Dtty_buffer.c417 struct tty_ldisc *disc = tty->ldisc; receive_buf() local
424 if (disc->ops->receive_buf2) receive_buf()
425 count = disc->ops->receive_buf2(tty, p, f, count); receive_buf()
428 if (count && disc->ops->receive_buf) receive_buf()
429 disc->ops->receive_buf(tty, p, f, count); receive_buf()
452 struct tty_ldisc *disc; flush_to_ldisc() local
458 disc = tty_ldisc_ref(tty); flush_to_ldisc()
459 if (disc == NULL) flush_to_ldisc()
498 tty_ldisc_deref(disc); flush_to_ldisc()
/linux-4.4.14/drivers/scsi/aic7xxx/
H A Dscsi_message.h47 #define MSG_IDENTIFY(lun, disc) (((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun))
/linux-4.4.14/drivers/scsi/fnic/
H A Dfnic_fip.h24 #define FCOE_CTLR_FIPVLAN_TOV 2000 /* ms after FIP VLAN disc */
H A Dfnic_fcs.c559 /* received CVL request, restart vlan disc */ fnic_fcoe_handle_fip_frame()
1335 /* if all vlans are in failed state, restart vlan disc */ fnic_handle_fip_timer()
1354 /* we exhausted all vlans, restart vlan disc */ fnic_handle_fip_timer()
1359 "trigger vlan disc\n"); fnic_handle_fip_timer()
H A Dfnic_main.c975 * logs off the fabric. This flushes all rport, disc, lport work fnic_remove()
/linux-4.4.14/include/net/
H A Dllc_c_st.h18 #define LLC_CONN_STATE_ADM 1 /* disc, initial state */
H A Dxfrm.h113 pmtu disc will update pmtu on raw IP route and increase its genid.
/linux-4.4.14/drivers/scsi/fcoe/
H A Dfcoe_ctlr.c2095 struct fcoe_ctlr *fip = lport->disc.priv; fcoe_ctlr_vn_rport_callback()
2137 mutex_lock(&lport->disc.disc_mutex); fcoe_ctlr_disc_stop_locked()
2138 list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) fcoe_ctlr_disc_stop_locked()
2140 lport->disc.disc_callback = NULL; fcoe_ctlr_disc_stop_locked()
2141 mutex_unlock(&lport->disc.disc_mutex); fcoe_ctlr_disc_stop_locked()
2153 struct fcoe_ctlr *fip = lport->disc.priv; fcoe_ctlr_disc_stop()
2458 mutex_lock(&lport->disc.disc_mutex); fcoe_ctlr_vn_add()
2461 mutex_unlock(&lport->disc.disc_mutex); fcoe_ctlr_vn_add()
2466 rdata->disc_id = lport->disc.disc_id; fcoe_ctlr_vn_add()
2474 mutex_unlock(&lport->disc.disc_mutex); fcoe_ctlr_vn_add()
2587 mutex_lock(&lport->disc.disc_mutex); fcoe_ctlr_vn_beacon()
2591 mutex_unlock(&lport->disc.disc_mutex); fcoe_ctlr_vn_beacon()
2635 mutex_lock(&lport->disc.disc_mutex); fcoe_ctlr_vn_age()
2636 list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) { fcoe_ctlr_vn_age()
2651 mutex_unlock(&lport->disc.disc_mutex); fcoe_ctlr_vn_age()
2744 struct fc_disc *disc = &lport->disc; fcoe_ctlr_disc_start() local
2745 struct fcoe_ctlr *fip = disc->priv; fcoe_ctlr_disc_start()
2747 mutex_lock(&disc->disc_mutex); fcoe_ctlr_disc_start()
2748 disc->disc_callback = callback; fcoe_ctlr_disc_start()
2749 disc->disc_id = (disc->disc_id + 2) | 1; fcoe_ctlr_disc_start()
2750 disc->pending = 1; fcoe_ctlr_disc_start()
2752 mutex_unlock(&disc->disc_mutex); fcoe_ctlr_disc_start()
2766 struct fc_disc *disc = &lport->disc; fcoe_ctlr_vn_disc() local
2771 mutex_lock(&disc->disc_mutex); fcoe_ctlr_vn_disc()
2772 callback = disc->pending ? disc->disc_callback : NULL; fcoe_ctlr_vn_disc()
2773 disc->pending = 0; fcoe_ctlr_vn_disc()
2774 list_for_each_entry_rcu(rdata, &disc->rports, peers) { fcoe_ctlr_vn_disc()
2779 mutex_unlock(&disc->disc_mutex); fcoe_ctlr_vn_disc()
/linux-4.4.14/Documentation/cdrom/
H A Dcdrom-standard.tex156 block-devices such as floppy or hard disc drives), to define a set
358 up the disc, etc. % and device-use count
373 information on the status of the drive (not the status of the disc,
379 CDS_NO_DISC& no disc is inserted, tray is closed\cr
382 CDS_DISC_OK& a disc is loaded and everything is fine\cr
392 ignored for single-disc drives. Note that by `re-routing' this
445 current disc loaded and the return value should be positive. A negative
451 will perform disc selection. It should return the number of the
452 selected disc on success, a negative value on error. Currently, only
459 device $cdi\to dev$, the start of the last session of the current disc
476 the few discs that carry such a number on the disc don't even use the
563 CDC_MEDIA_CHANGED& can report if disc has changed\cr
604 CDO_CHECK_TYPE& ensure disc type is data if opened for data\cr
639 On the other hand, when used as a removable-media disc drive (what the
641 disc drive is ready for operation upon opening the device. In the old
727 it is verified that a disc is in the drive and, if $CDO_CHECK_TYPE$ is
855 \item[CDROMSTART] Spin up disc.
872 \item[CDROM_SELECT_SPEED] Select head-rate speed of disc specified as
878 \item[CDROM_SELECT_DISC] Select disc numbered $arg$ from a juke-box.
879 First disc is numbered 0. The number $arg$ is checked against the
881 \item[CDROM_MEDIA_CHANGED] Returns 1 if a disc has been changed since
896 \item[CDROM_DISC_STATUS] Returns the type of the disc currently in the
899 disc that is inserted in the drive. This functionality used to be
904 various digital information has lead to many different disc types.
915 are no audio tracks on the disc, and if the CD in question has any
925 CDS_NO_DISC& no disc is inserted, or tray is opened\cr
926 CDS_AUDIO& Audio disc (2352 audio bytes/frame)\cr
927 CDS_DATA_1& data disc, mode 1 (2048 user bytes/frame)\cr
930 CDS_MIXED& mixed audio/data disc\cr
933 For some information concerning frame layout of the various disc
/linux-4.4.14/arch/um/os-Linux/
H A Dfile.c104 int disc, sencap; os_set_slip() local
106 disc = N_SLIP; os_set_slip()
107 if (ioctl(fd, TIOCSETD, &disc) < 0) os_set_slip()
/linux-4.4.14/drivers/scsi/
H A Dsr_ioctl.c222 "disc change detected.\n"); sr_do_ioctl()
227 case NOT_READY: /* This happens if there is no disc in drive */ sr_do_ioctl()
247 "is a disc in the drive.\n"); sr_do_ioctl()
331 * 0x04 is format in progress .. but there must be a disc present! sr_drive_status()
H A Dgdth_ioctl.h88 u32 mdisc_time; /* disc. time (0: no timeout)*/
107 u32 mdisc_time; /* disc. time (0: no timeout)*/
H A Dscsi_ioctl.c116 case NOT_READY: /* This happens if there is no disc in drive */ ioctl_internal_command()
H A Dsr_vendor.c238 /* we request some disc information (is it a XA-CD ?, sr_cd_check()
H A Dsr.c416 * quietly refuse to do anything to a changed disc until the sr_init_command()
H A Dgdth.h376 u8 disc; /* flag: disconnect enabled */ member in struct:__anon9385
H A Dncr53c8xx.c631 "spar:" "disc:"
1737 u_char disc; /* Diconnection allowed */ member in struct:ncb
4195 (cp != np->ccb && np->disc && !(tp->usrflag & UF_NODISC))) ncr_queue_command()
5301 np->disc = 0; ncr_init()
5762 np->disc = 1; ncr_timeout()
8480 np->disc = 1; ncr_attach()
H A Dsd.c543 * major disc2 disc p1
938 * quietly refuse to do anything to a changed disc until sd_setup_read_write_cmnd()
H A Dscsi_lib.c949 /* Detected disc change. Set a bit scsi_io_completion()
H A Dsg.c1338 /* Detected possible disc change. Set the bit - this */ sg_rq_end_io()
H A Dinitio.c1609 /* for next disc and come in this loop */ initio_state_5()
/linux-4.4.14/drivers/media/rc/keymaps/
H A Drc-medion-x10-or2x.c45 { 0x04, KEY_DVD }, /* disc symbol */
/linux-4.4.14/fs/adfs/
H A Dsuper.c54 /* we cannot have such a large disc that we adfs_checkdiscrecord()
412 * Do some sanity checks on the ADFS disc record adfs_fill_super()
433 adfs_error(sb, "disc record mismatch, very weird!"); adfs_fill_super()
485 * get the root_size from the disc record. adfs_fill_super()
H A Dadfs.h64 __le32 s_version; /* disc format version */
/linux-4.4.14/drivers/isdn/pcbit/
H A Dcallbacks.c269 * send disc.req
292 * Problem: when the HL driver sends the disc req itself
/linux-4.4.14/include/linux/
H A Dtypes.h122 * The type used for indexing onto a disc or disc partition.
H A Dtty.h581 extern int tty_register_ldisc(int disc, struct tty_ldisc_ops *new_ldisc);
582 extern int tty_unregister_ldisc(int disc);
H A Dide.h391 /* Drive cannot eject the disc. */
/linux-4.4.14/drivers/sn/
H A Dioc3.c117 int a, b, index, disc; nic_find() local
125 for (index = 0, disc = 0; index < 64; index++) { nic_find()
140 disc = index; nic_find()
142 disc = index; nic_find()
154 *last = disc; nic_find()
/linux-4.4.14/include/linux/netfilter/
H A Dnf_conntrack_pptp.h294 struct PptpCallDisconnectNotify disc; member in union:pptp_ctrl_union
/linux-4.4.14/tools/firewire/
H A Ddecode-fcp.c26 [0x03] = "disc", [0x13] = "(reserved 0x13)",
/linux-4.4.14/include/scsi/
H A Dsas.h450 struct discover_resp disc; member in union:smp_resp::__anon13742
644 struct discover_resp disc; member in union:smp_resp::__anon13747
H A Dlibfc.h826 * @disc: Discovery context
871 struct fc_disc disc; member in struct:fc_lport
1089 static inline struct fc_lport *fc_disc_lport(struct fc_disc *disc) fc_disc_lport() argument
1091 return container_of(disc, struct fc_lport, disc); fc_disc_lport()
H A Dlibsas.h266 struct sas_discovery disc; member in struct:asd_sas_port
705 void sas_init_disc(struct sas_discovery *disc, struct asd_sas_port *);
/linux-4.4.14/arch/s390/include/uapi/asm/
H A Ddasd.h62 * 0x01: Linux disc layout
63 * 0x02: Common disc layout
/linux-4.4.14/drivers/block/
H A Dpktcdvd.c1560 pkt_info(pd, "%s packets, %u blocks, Mode-%c disc\n", pkt_print_settings()
1595 /* set up command and get the disc info */ pkt_get_disc_info()
1796 * 1 -- we can write to this disc, 0 -- we can't
1809 pkt_dbg(2, pd, "Wrong disc profile (%x)\n", pkt_writable_disc()
1815 * for disc type 0xff we should probably reserve a new track. pkt_writable_disc()
1819 pkt_notice(pd, "unknown disc - no track?\n"); pkt_writable_disc()
1824 pkt_err(pd, "wrong disc type (%x)\n", di->disc_type); pkt_writable_disc()
1829 pkt_notice(pd, "disc not erasable\n"); pkt_writable_disc()
1921 * mode1 or mode2 disc pkt_probe_settings()
2083 pkt_notice(pd, "disc type is not CD-RW\n"); pkt_media_speed()
2091 st = (buf[6] >> 3) & 0x7; /* disc sub-type */ pkt_media_speed()
2107 pkt_notice(pd, "unknown disc sub-type %d\n", st); pkt_media_speed()
2238 pkt_info(pd, "%lukB available on disc\n", lba << 1); pkt_open_dev()
/linux-4.4.14/net/ipv4/netfilter/
H A Dnf_nat_pptp.c247 pcid_off = offsetof(union pptp_ctrl_union, disc.callID); pptp_inbound_pkt()
/linux-4.4.14/drivers/net/ethernet/sgi/
H A Dioc3-eth.c306 int a, b, index, disc; nic_find() local
314 for (index = 0, disc = 0; index < 64; index++) { nic_find()
329 disc = index; nic_find()
331 disc = index; nic_find()
344 *last = disc; nic_find()
/linux-4.4.14/fs/ntfs/
H A Drunlist.c289 bool disc = false; /* Discontinuity between @dst and @src. */ ntfs_rl_insert() local
296 * disc => Discontinuity between the end of @dst and the start of @src. ntfs_rl_insert()
300 disc = (src[0].vcn > 0); ntfs_rl_insert()
310 disc = (src[0].vcn > dst[loc - 1].vcn + merged_length); ntfs_rl_insert()
316 dst = ntfs_rl_realloc(dst, dsize, dsize + ssize - left + disc); ntfs_rl_insert()
329 * been merged with one in @dst. And if @disc, then @dst and @src do ntfs_rl_insert()
332 marker = loc + ssize - left + disc; ntfs_rl_insert()
336 ntfs_rl_mc(dst, loc + disc, src, left, ssize - left); ntfs_rl_insert()
345 if (disc) { ntfs_rl_insert()
/linux-4.4.14/drivers/cdrom/
H A Dcdrom.c222 -- Use READ_DISC_INFO for more reliable end-of-disc.
378 /* set up command and get the disc info */ cdrom_get_disc_info()
1009 /* check what type of tracks are on this disc */ cdrom_count_tracks()
1030 cd_dbg(CD_COUNT_TRACKS, "disc has %d tracks: %d=audio %d=data %d=Cd-I %d=XA\n", cdrom_count_tracks()
1059 that there is no disc in the drive, open_for_data()
1079 /* the door should be closed now, check for the disc */ open_for_data()
1088 cd_dbg(CD_OPEN, "bummer. no disc.\n"); open_for_data()
1161 * do a quick open without drive/disc integrity checks. */ cdrom_open()
1224 that there is no disc in the drive, check_for_audio_disc()
1239 cd_dbg(CD_OPEN, "bummer. disc isn't ready.\n"); check_for_audio_disc()
2357 /* cannot select disc or select current disc */ cdrom_ioctl_media_changed()
2437 * seleting disc. However, since there is no equivalent hook for cdrom_ioctl_select_disc()
2580 cd_dbg(CD_WARNING, "This disc doesn't have any tracks I recognize!\n"); cdrom_ioctl_disc_status()
/linux-4.4.14/net/decnet/
H A Ddn_nsp_in.c201 * the reason field means "don't reply" otherwise a disc init is sent with
448 * It appears that its possible for remote machines to send disc dn_nsp_disc_init()
H A Ddn_nsp_out.c581 * to be able to send disc packets out which have no socket dn_nsp_do_disc()
/linux-4.4.14/include/xen/interface/io/
H A Dblkif.h85 * http://www.seagate.com/staticfiles/support/disc/manuals/
/linux-4.4.14/include/net/irda/
H A Dirlap.h75 /* Please note that all IrDA management frames (LMP/TTP conn req/disc and
/linux-4.4.14/include/net/sctp/
H A Dconstants.h297 #define SCTP_DEFAULT_MINSEGMENT 512 /* MTU size ... if no mtu disc */
/linux-4.4.14/drivers/scsi/esas2r/
H A Desas2r_disc.c137 esas2r_trace("disc wait count: %d", a->disc_wait_cnt); esas2r_disc_initialize()
138 esas2r_trace("disc wait time: %d", a->disc_wait_time); esas2r_disc_initialize()
342 esas2r_hdebug("disc done"); esas2r_disc_start_port()
/linux-4.4.14/fs/isofs/
H A Dinode.c696 * A disc with both Joliet and Rock Ridge is handled later isofs_fill_super()
720 * this is a fatal error. This would occur if the disc drive isofs_fill_super()
1309 * Set default permissions: r-x for all. The disc isofs_read_inode()
/linux-4.4.14/fs/cachefiles/
H A Dinterface.c372 * written to disc */ cachefiles_sync_cache()
/linux-4.4.14/fs/udf/
H A Dsuper.c718 * specially crafted image (like a bluray disc full of CD001 sectors), udf_check_vsd()
1031 udf_warn(sb, "bitmap inode efe not found but it's ok since the disc is mounted read-only\n"); udf_load_metadata_files()
1829 * however, if the disc isn't closed, it could be 512. udf_scan_anchors()
1943 "Assuming open disc. Skipping validity " udf_load_vrs()
/linux-4.4.14/net/netfilter/
H A Dnf_conntrack_pptp.c361 cid = pptpReq->disc.callID; pptp_inbound_pkt()
/linux-4.4.14/drivers/md/
H A Draid5.h25 * We have valid data which is the same as on disc
54 * disc if there is no spare. A sync request clears this bit, and
H A Draid5.c1006 pr_debug("%s: for %llu schedule op %ld on disc %d\n", ops_run_io()
1058 "replacement disc %d\n", ops_run_io()
1092 pr_debug("skip op %ld on disc %d for sector %llu\n", ops_run_io()
3469 pr_debug("Return write for disc %d\n", i); handle_stripe_clean_event()
3744 /* parity is correct (on disc, handle_parity_checks5()
6859 /* This disc is not fully in-sync. However if it
H A Dmd.c905 * This does not write to disc.
/linux-4.4.14/drivers/staging/rtl8188eu/include/
H A Dwifi.h861 /* 3 seconds timeout for sending the prov disc request concurrent mode */
/linux-4.4.14/drivers/scsi/lpfc/
H A Dlpfc_debugfs.h265 #define LPFC_DISC_TRC_CT 0x20 /* Trace disc CT requests */
H A Dlpfc_els.c1831 int disc, rc; lpfc_cmpl_els_plogi() local
1853 /* Since ndlp can be freed in the disc state machine, note if this node lpfc_cmpl_els_plogi()
1857 disc = (ndlp->nlp_flag & NLP_NPR_2B_DISC); lpfc_cmpl_els_plogi()
1867 irsp->ulpTimeout, disc, vport->num_disc_nodes); lpfc_cmpl_els_plogi()
1880 if (disc) { lpfc_cmpl_els_plogi()
1912 if (disc && vport->num_disc_nodes) { lpfc_cmpl_els_plogi()
2310 int disc; lpfc_cmpl_els_adisc() local
2323 /* Since ndlp can be freed in the disc state machine, note if this node lpfc_cmpl_els_adisc()
2327 disc = (ndlp->nlp_flag & NLP_NPR_2B_DISC); lpfc_cmpl_els_adisc()
2335 irsp->ulpTimeout, disc, vport->num_disc_nodes); lpfc_cmpl_els_adisc()
2348 if (disc) { lpfc_cmpl_els_adisc()
2371 if (disc && vport->num_disc_nodes) lpfc_cmpl_els_adisc()
H A Dlpfc_hbadisc.c4324 "set disc timer: tmo:x%x state:x%x flg:x%x", lpfc_set_disctmo()
4354 "can disc timer: state:x%x rtry:x%x flg:x%x", lpfc_can_disctmo()
5317 "disc timeout: state:x%x rtry:x%x flg:x%x", lpfc_disc_timeout_handler()
H A Dlpfc_debugfs.c4313 "0418 Cannot create debugfs disc trace " lpfc_debugfs_initialize()
H A Dlpfc_hw.h867 RNID_TOP_DISC topologyDisc; /* topology disc (0xdf) */
/linux-4.4.14/drivers/scsi/bnx2fc/
H A Dbnx2fc_tgt.c541 * removed from disc->rports list before we get this event. bnx2fc_rport_event_handler()
/linux-4.4.14/drivers/net/ppp/
H A Dppp_synctty.c390 printk(KERN_ERR "PPP_sync: error %d registering line disc.\n", ppp_sync_init()
H A Dppp_async.c398 printk(KERN_ERR "PPP_async: error %d registering line disc.\n", ppp_async_init()
/linux-4.4.14/net/irda/
H A Dqos.c317 /* Set configured max disc time */ irda_init_max_qos_capabilies()
/linux-4.4.14/drivers/target/iscsi/
H A Discsi_target_configfs.c1335 __DEF_NACL_AUTH_STR(disc, name, flags) \
1356 __DEF_NACL_AUTH_INT(disc, name) \
/linux-4.4.14/drivers/isdn/hardware/eicon/
H A Ddivacapi.h710 #define HOOK_ON_REQ 0x9002 /* internal disc req */
H A Dmessage.c1344 /* early B3 connect (CIP mask bit 9) no release after a disc */ connect_req()
1451 /* early B3 connect (CIP mask bit 9) no release after a disc */ connect_res()
1548 /* early B3 connect (CIP mask bit 9) no release after a disc */ connect_res()
2073 /* early B3 connect (CIP mask bit 9) no release after a disc */ facility_req()
4914 dbug(1, dprintf("Exceptional disc")); sig_ind()
5799 /* early B3 connect (CIP mask bit 9) no release after a disc */ sig_ind()
5936 /* early B3 connect (CIP mask bit 9) no release after a disc */ sig_ind()
7107 /* disc here */ nl_ind()
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
H A Dhif_usb.c1246 cmd[19] = 0x2; /* eject disc */ send_eject_command()
/linux-4.4.14/drivers/block/drbd/
H A Ddrbd_actlog.c38 /* all fields on disc in big endian */
/linux-4.4.14/drivers/staging/dgnc/
H A Ddgnc_tty.c2696 * up data is in the line disc. buffers. However, dgnc_tty_ioctl()
2742 * up data is in the line disc. buffers. However, dgnc_tty_ioctl()
/linux-4.4.14/drivers/net/wireless/zd1211rw/
H A Dzd_usb.c1308 cmd[19] = 0x2; /* eject disc */ eject_installer()
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_cp.c1610 /* This code will reinit the Radeon CP hardware after a resume from disc.
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
H A Dp2p.c1626 /* wpa_supplicant send go nego req right after prov disc */ brcmf_p2p_pub_af_tx()
/linux-4.4.14/drivers/staging/dgap/
H A Ddgap.c4931 * up data is in the line disc. buffers. However, dgap_tty_ioctl()
4988 * up data is in the line disc. buffers. However, dgap_tty_ioctl()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_cmn.c4314 up a multio class queue disc or negotiating DCBX with a switch bnx2x_setup_tc()
/linux-4.4.14/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c2710 * tagged, we prepare an IDENTIFY without disc. granted, sym_int_ma()

Completed in 5007 milliseconds