Home
last modified time | relevance | path

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

/drivers/power/
Dtosa_battery.c34 bool (*is_present)(struct tosa_bat *bat); member
101 if (bat->is_present && !bat->is_present(bat) in tosa_bat_get_property()
132 val->intval = bat->is_present ? bat->is_present(bat) : 1; in tosa_bat_get_property()
167 if (bat->is_present && !bat->is_present(bat)) { in tosa_bat_update()
266 .is_present = tosa_jacket_bat_is_present,
Dcollie_battery.c37 bool (*is_present)(struct collie_bat *bat); member
102 if (bat->is_present && !bat->is_present(bat) in collie_bat_get_property()
133 val->intval = bat->is_present ? bat->is_present(bat) : 1; in collie_bat_get_property()
163 if (bat->is_present && !bat->is_present(bat)) { in collie_bat_update()
Dsbs-battery.c161 bool is_present; member
310 chip->is_present = val->intval; in sbs_get_battery_presence_and_health()
639 chip->is_present != (ret >= 0)) { in sbs_get_property()
640 chip->is_present = (ret >= 0); in sbs_get_property()
653 if (ret && chip->is_present) in sbs_get_property()
959 if (chip->is_present && ret < 0) in sbs_suspend()
/drivers/media/usb/stkwebcam/
Dstk-webcam.c172 if (!is_present(dev)) in stk_start_stream()
212 if (is_present(dev)) { in stk_stop_stream()
273 if (!is_present(dev)) in stk_initialise()
506 if (atomic_read(&dev->urbs_used) && is_present(dev)) in stk_clean_iso()
617 if (dev == NULL || !is_present(dev)) in v4l_stk_open()
647 if (is_present(dev)) in v4l_stk_release()
662 if (!is_present(dev)) in stk_read()
684 !list_empty(&dev->sio_full) || !is_present(dev)); in stk_read()
687 if (!is_present(dev)) in stk_read()
735 if (!is_present(dev)) in v4l_stk_poll()
[all …]
Dstk-webcam.h75 #define is_present(dev) ((dev)->status & S_PRESENT) macro
/drivers/net/usb/
Dsierra_net.c98 int is_present; member
223 p->is_present = 1; in save16bit()
230 p->is_present = 1; in save8bit()
266 hh->extmsgid.is_present = (hh->msgid.byte == SIERRA_NET_HIP_EXTENDEDID); in parse_hip()
267 if (hh->extmsgid.is_present) { in parse_hip()
824 if (!hh.extmsgid.is_present in sierra_net_rx_fixup()
/drivers/gpio/
Dgpio-mcp23s08.c921 if (!pdata->chip[addr].is_present) in mcp23s08_probe()