Lines Matching refs:info

112   from parsing /proc/sys/dev/cdrom/info.
121 -- proc info didn't mask against capabilities mask.
135 -- /proc/sys/dev/cdrom/info has been updated to also contain info about
225 -- Fix bug in getting rpc phase 2 region info.
381 /* set up command and get the disc info */
770 * allow writable open if media info read worked and media is
839 /* drive gave us no info, let the user go ahead */
1333 struct cdrom_changer_info *info;
1340 info = kmalloc(sizeof(*info), GFP_KERNEL);
1341 if (!info)
1344 if ((ret = cdrom_read_mech_status(cdi, info)))
1347 if (info->slots[slot].disc_present)
1353 kfree(info);
1364 struct cdrom_changer_info *info;
1370 info = kmalloc(sizeof(*info), GFP_KERNEL);
1371 if (!info)
1374 if ((status = cdrom_read_mech_status(cdi, info)) == 0)
1375 nslots = info->hdr.nslots;
1377 kfree(info);
1412 struct cdrom_changer_info *info;
1429 info = kmalloc(sizeof(*info), GFP_KERNEL);
1430 if (!info)
1433 if ((ret = cdrom_read_mech_status(cdi, info))) {
1434 kfree(info);
1438 curslot = info->hdr.curslot;
1439 kfree(info);
1543 format, or ask for multi-session info in MSF format. However, for
1940 cd_dbg(CD_WARNING, "Received invalid manufacture info length (%d)\n",
1945 cd_dbg(CD_WARNING, "Received invalid manufacture info length (%d): truncating to 2048\n",
2102 /* set the header info returned */
2174 "Attempt read CDDA info through a non-SCSI queue\n");
2282 struct cdrom_multisession *info)
2290 requested_format = info->addr_format;
2293 info->addr_format = CDROM_LBA;
2295 ret = cdi->ops->get_last_session(cdi, info);
2297 sanitize_format(&info->addr, &info->addr_format,
2306 struct cdrom_multisession info;
2311 if (copy_from_user(&info, argp, sizeof(info)))
2313 ret = cdrom_multisession(cdi, &info);
2316 if (copy_to_user(argp, &info, sizeof(info)))
2368 struct cdrom_changer_info *info;
2383 info = kmalloc(sizeof(*info), GFP_KERNEL);
2384 if (!info)
2387 ret = cdrom_read_mech_status(cdi, info);
2389 ret = info->slots[arg].change;
2390 kfree(info);
3461 char info[CDROM_STR_SIZE]; /* general info */
3476 static int cdrom_print_info(const char *header, int val, char *info,
3479 const int max_size = sizeof(cdrom_sysctl_settings.info);
3483 ret = scnprintf(info + *pos, max_size - *pos, header);
3492 ret = scnprintf(info + *pos, max_size - *pos,
3496 ret = scnprintf(info + *pos, max_size - *pos,
3500 ret = scnprintf(info + *pos, max_size - *pos,
3504 ret = scnprintf(info + *pos, max_size - *pos,
3523 char *info = cdrom_sysctl_settings.info;
3524 const int max_size = sizeof(cdrom_sysctl_settings.info);
3533 pos = sprintf(info, "CD-ROM information, " VERSION "\n");
3535 if (cdrom_print_info("\ndrive name:\t", 0, info, &pos, CTL_NAME))
3537 if (cdrom_print_info("\ndrive speed:\t", 0, info, &pos, CTL_SPEED))
3539 if (cdrom_print_info("\ndrive # of slots:", 0, info, &pos, CTL_SLOTS))
3542 CDC_CLOSE_TRAY, info, &pos, CTL_CAPABILITY))
3545 CDC_OPEN_TRAY, info, &pos, CTL_CAPABILITY))
3548 CDC_LOCK, info, &pos, CTL_CAPABILITY))
3551 CDC_SELECT_SPEED, info, &pos, CTL_CAPABILITY))
3554 CDC_SELECT_DISC, info, &pos, CTL_CAPABILITY))
3557 CDC_MULTI_SESSION, info, &pos, CTL_CAPABILITY))
3560 CDC_MCN, info, &pos, CTL_CAPABILITY))
3563 CDC_MEDIA_CHANGED, info, &pos, CTL_CAPABILITY))
3566 CDC_PLAY_AUDIO, info, &pos, CTL_CAPABILITY))
3569 CDC_CD_R, info, &pos, CTL_CAPABILITY))
3572 CDC_CD_RW, info, &pos, CTL_CAPABILITY))
3575 CDC_DVD, info, &pos, CTL_CAPABILITY))
3578 CDC_DVD_R, info, &pos, CTL_CAPABILITY))
3581 CDC_DVD_RAM, info, &pos, CTL_CAPABILITY))
3584 CDC_MRW, info, &pos, CTL_CAPABILITY))
3587 CDC_MRW_W, info, &pos, CTL_CAPABILITY))
3590 CDC_RAM, info, &pos, CTL_CAPABILITY))
3592 if (!scnprintf(info + pos, max_size - pos, "\n\n"))
3598 pr_info("info buffer too small\n");
3660 .procname = "info",
3661 .data = &cdrom_sysctl_settings.info,