Home
last modified time | relevance | path

Searched refs:is_present (Results 1 – 8 of 8) sorted by relevance

/drivers/power/supply/
Dtosa_battery.c30 bool (*is_present)(struct tosa_bat *bat); member
97 if (bat->is_present && !bat->is_present(bat) in tosa_bat_get_property()
128 val->intval = bat->is_present ? bat->is_present(bat) : 1; in tosa_bat_get_property()
163 if (bat->is_present && !bat->is_present(bat)) { in tosa_bat_update()
275 .is_present = tosa_jacket_bat_is_present,
Dcollie_battery.c33 bool (*is_present)(struct collie_bat *bat); member
98 if (bat->is_present && !bat->is_present(bat) in collie_bat_get_property()
129 val->intval = bat->is_present ? bat->is_present(bat) : 1; in collie_bat_get_property()
159 if (bat->is_present && !bat->is_present(bat)) { in collie_bat_update()
Dsbs-battery.c194 bool is_present; member
232 static int sbs_update_presence(struct sbs_info *chip, bool is_present) in sbs_update_presence() argument
239 if (chip->is_present == is_present) in sbs_update_presence()
242 if (!is_present) { in sbs_update_presence()
243 chip->is_present = false; in sbs_update_presence()
270 chip->is_present = true; in sbs_update_presence()
291 if (!chip->is_present && is_present && !chip->charger_broadcasts) in sbs_update_presence()
294 chip->is_present = true; in sbs_update_presence()
968 if (!chip->gpio_detect && chip->is_present != (ret >= 0)) { in sbs_get_property()
969 bool old_present = chip->is_present; in sbs_get_property()
[all …]
/drivers/media/usb/stkwebcam/
Dstk-webcam.c179 if (!is_present(dev)) in stk_start_stream()
219 if (is_present(dev)) { in stk_stop_stream()
280 if (!is_present(dev)) in stk_initialise()
506 if (atomic_read(&dev->urbs_used) && is_present(dev)) in stk_clean_iso()
616 if (dev == NULL || !is_present(dev)) in v4l_stk_open()
660 if (!is_present(dev)) in stk_read()
682 !list_empty(&dev->sio_full) || !is_present(dev)); in stk_read()
685 if (!is_present(dev)) in stk_read()
733 if (!is_present(dev)) in v4l_stk_poll()
1012 if (!is_present(dev)) in stk_vidioc_s_fmt_vid_cap()
[all …]
Dstk-webcam.h56 #define is_present(dev) ((dev)->status & S_PRESENT) macro
/drivers/net/usb/
Dsierra_net.c84 int is_present; member
235 p->is_present = 1; in save16bit()
242 p->is_present = 1; in save8bit()
278 hh->extmsgid.is_present = (hh->msgid.byte == SIERRA_NET_HIP_EXTENDEDID); in parse_hip()
279 if (hh->extmsgid.is_present) { in parse_hip()
821 if (!hh.extmsgid.is_present in sierra_net_rx_fixup()
/drivers/scsi/cxlflash/
Docxl_hw.h41 bool is_present; /* Function has AFUs defined */ member
Docxl_hw.c742 afu->is_present = true; in ocxlflash_config_fn()
862 if (!afu->is_present) in ocxlflash_config_afu()