Home
last modified time | relevance | path

Searched refs:med (Results 1 – 10 of 10) sorted by relevance

/drivers/scsi/
Dsr_ioctl.c294 struct media_event_desc med; in sr_drive_status() local
308 if (!cdrom_get_media_event(cdi, &med)) { in sr_drive_status()
309 if (med.media_present) in sr_drive_status()
311 else if (med.door_open) in sr_drive_status()
Dsr.c210 struct media_event_desc *med = (void *)(buf + 4); in sr_get_events() local
219 if (result || be16_to_cpu(eh->data_len) < sizeof(*med)) in sr_get_events()
225 if (med->media_event_code == 1) in sr_get_events()
227 else if (med->media_event_code == 2) in sr_get_events()
229 else if (med->media_event_code == 3) in sr_get_events()
/drivers/media/dvb-frontends/
Dstb0899_drv.c925 int min = 0, med; in stb0899_table_lookup() local
933 med = (max + min) / 2; in stb0899_table_lookup()
934 if (val >= tab[min].read && val < tab[med].read) in stb0899_table_lookup()
935 max = med; in stb0899_table_lookup()
937 min = med; in stb0899_table_lookup()
Dstv090x.c3618 int min = 0, med; in stv090x_table_lookup() local
3623 med = (max + min) / 2; in stv090x_table_lookup()
3624 if ((val >= tab[min].read && val < tab[med].read) || in stv090x_table_lookup()
3625 (val >= tab[med].read && val < tab[min].read)) in stv090x_table_lookup()
3626 max = med; in stv090x_table_lookup()
3628 min = med; in stv090x_table_lookup()
/drivers/power/supply/
Dab8500_fg.c758 u8 low, med, high; in ab8500_fg_acc_cur_work() local
775 AB8500_GASG_CC_NCOV_ACCU_MED, &med); in ab8500_fg_acc_cur_work()
786 val = (low | (med << 8) | (high << 16) | 0xFFE00000); in ab8500_fg_acc_cur_work()
788 val = (low | (med << 8) | (high << 16)); in ab8500_fg_acc_cur_work()
/drivers/cdrom/
Dcdrom.c662 struct media_event_desc *med) in cdrom_get_media_event() argument
678 if (be16_to_cpu(eh->data_len) < sizeof(*med)) in cdrom_get_media_event()
684 memcpy(med, &buffer[sizeof(*eh)], sizeof(*med)); in cdrom_get_media_event()
/drivers/scsi/bfa/
Dbfa_defs_svc.h542 u8 med; member
Dbfa_svc.c3049 port_cfg->qos_bw.med = BFA_QOS_BW_MED; in bfa_fcport_attach()
4096 if ((qos_bw->high == 0) || (qos_bw->med == 0) || (qos_bw->low == 0)) in bfa_fcport_set_qos_bw()
4099 if ((qos_bw->high + qos_bw->med + qos_bw->low) != 100) in bfa_fcport_set_qos_bw()
4102 if ((qos_bw->med > qos_bw->high) || (qos_bw->low > qos_bw->med) || in bfa_fcport_set_qos_bw()
Dbfad_bsg.c2367 fcport->cfg.qos_bw.med = BFA_QOS_BW_MED; in bfad_iocmd_qos()
2393 iocmd->attr.qos_bw.med = fcport->cfg.qos_bw.med; in bfad_iocmd_qos_get_attr()
/drivers/infiniband/hw/mlx5/
Dqp.c640 int med; in first_hi_bfreg() local
642 med = num_med_bfreg(dev, bfregi); in first_hi_bfreg()
643 return ++med; in first_hi_bfreg()