Home
last modified time | relevance | path

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

/drivers/ide/
Dide-cd_ioctl.c44 struct media_event_desc med; in ide_cdrom_drive_status() local
55 if (!cdrom_get_media_event(cdi, &med)) { in ide_cdrom_drive_status()
56 if (med.media_present) in ide_cdrom_drive_status()
58 else if (med.door_open) in ide_cdrom_drive_status()
/drivers/scsi/
Dsr_ioctl.c309 struct media_event_desc med; in sr_drive_status() local
323 if (!cdrom_get_media_event(cdi, &med)) { in sr_drive_status()
324 if (med.media_present) in sr_drive_status()
326 else if (med.door_open) in sr_drive_status()
Dsr.c200 struct media_event_desc *med = (void *)(buf + 4); in sr_get_events() local
209 if (result || be16_to_cpu(eh->data_len) < sizeof(*med)) in sr_get_events()
215 if (med->media_event_code == 1) in sr_get_events()
217 else if (med->media_event_code == 2) in sr_get_events()
/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c1171 ent = &cmd->cache.med; in alloc_msg()
1277 list_for_each_entry_safe(msg, n, &cmd->cache.med.head, list) { in destroy_msg_cache()
1292 spin_lock_init(&cmd->cache.med.lock); in create_msg_cache()
1293 INIT_LIST_HEAD(&cmd->cache.med.head); in create_msg_cache()
1311 msg->cache = &cmd->cache.med; in create_msg_cache()
1312 list_add_tail(&msg->list, &cmd->cache.med.head); in create_msg_cache()
/drivers/media/dvb-frontends/
Dstb0899_drv.c941 int min = 0, med; in stb0899_table_lookup() local
949 med = (max + min) / 2; in stb0899_table_lookup()
950 if (val >= tab[min].read && val < tab[med].read) in stb0899_table_lookup()
951 max = med; in stb0899_table_lookup()
953 min = med; in stb0899_table_lookup()
Dstv090x.c3606 int min = 0, med; in stv090x_table_lookup() local
3611 med = (max + min) / 2; in stv090x_table_lookup()
3612 if ((val >= tab[min].read && val < tab[med].read) || in stv090x_table_lookup()
3613 (val >= tab[med].read && val < tab[min].read)) in stv090x_table_lookup()
3614 max = med; in stv090x_table_lookup()
3616 min = med; in stv090x_table_lookup()
/drivers/power/
Dab8500_fg.c768 u8 low, med, high; in ab8500_fg_acc_cur_work() local
785 AB8500_GASG_CC_NCOV_ACCU_MED, &med); in ab8500_fg_acc_cur_work()
796 val = (low | (med << 8) | (high << 16) | 0xFFE00000); in ab8500_fg_acc_cur_work()
798 val = (low | (med << 8) | (high << 16)); in ab8500_fg_acc_cur_work()
/drivers/cdrom/
Dcdrom.c660 struct media_event_desc *med) in cdrom_get_media_event() argument
676 if (be16_to_cpu(eh->data_len) < sizeof(*med)) in cdrom_get_media_event()
682 memcpy(med, &buffer[sizeof(*eh)], sizeof(*med)); in cdrom_get_media_event()
/drivers/infiniband/hw/mlx5/
Dqp.c389 int med; in first_hi_uuar() local
393 med = num_med_uuar(uuari); in first_hi_uuar()
396 if (t == med) in first_hi_uuar()
/drivers/scsi/bfa/
Dbfa_defs_svc.h549 u8 med; member
Dbfa_svc.c3122 port_cfg->qos_bw.med = BFA_QOS_BW_MED; in bfa_fcport_attach()
4192 if ((qos_bw->high == 0) || (qos_bw->med == 0) || (qos_bw->low == 0)) in bfa_fcport_set_qos_bw()
4195 if ((qos_bw->high + qos_bw->med + qos_bw->low) != 100) in bfa_fcport_set_qos_bw()
4198 if ((qos_bw->med > qos_bw->high) || (qos_bw->low > qos_bw->med) || in bfa_fcport_set_qos_bw()
Dbfad_bsg.c2376 fcport->cfg.qos_bw.med = BFA_QOS_BW_MED; in bfad_iocmd_qos()
2402 iocmd->attr.qos_bw.med = fcport->cfg.qos_bw.med; in bfad_iocmd_qos_get_attr()