Home
last modified time | relevance | path

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

/linux-6.1.9/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.c171 struct media_event_desc *med = (void *)(buf + 4); in sr_get_events() local
180 if (result || be16_to_cpu(eh->data_len) < sizeof(*med)) in sr_get_events()
186 if (med->media_event_code == 1) in sr_get_events()
188 else if (med->media_event_code == 2) in sr_get_events()
190 else if (med->media_event_code == 3) in sr_get_events()
/linux-6.1.9/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()
/linux-6.1.9/include/linux/
Dcdrom.h306 extern int cdrom_get_media_event(struct cdrom_device_info *cdi, struct media_event_desc *med);
/linux-6.1.9/drivers/power/supply/
Dab8500_fg.c760 u8 low, med, high; in ab8500_fg_acc_cur_work() local
777 AB8500_GASG_CC_NCOV_ACCU_MED, &med); in ab8500_fg_acc_cur_work()
788 val = (low | (med << 8) | (high << 16) | 0xFFE00000); in ab8500_fg_acc_cur_work()
790 val = (low | (med << 8) | (high << 16)); in ab8500_fg_acc_cur_work()
/linux-6.1.9/drivers/cdrom/
Dcdrom.c661 struct media_event_desc *med) in cdrom_get_media_event() argument
677 if (be16_to_cpu(eh->data_len) < sizeof(*med)) in cdrom_get_media_event()
683 memcpy(med, &buffer[sizeof(*eh)], sizeof(*med)); in cdrom_get_media_event()
/linux-6.1.9/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()
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dqp.c642 int med; in first_hi_bfreg() local
644 med = num_med_bfreg(dev, bfregi); in first_hi_bfreg()
645 return ++med; in first_hi_bfreg()