Home
last modified time | relevance | path

Searched refs:sync_state (Results 1 – 25 of 58) sorted by relevance

123

/linux/Documentation/ABI/testing/
H A Dsysfs-devices-state_synced6 devices whose bus types or driver provides the .sync_state()
9 .sync_state() callback hasn't been called yet. A value of 1
10 means the .sync_state() callback has been called.
12 Generally, if a device has sync_state() support and has some of
18 this only when the sync_state() callback has been called --
22 any way by sync_state() callbacks.
25 sync_state() function if it hasn't been called already. The
26 sync_state() call happens independent of the state of the
/linux/drivers/media/dvb-frontends/cxd2880/
H A Dcxd2880_tnrdmd_dvbt2_mon.c86 u8 sync_state = 0; in cxd2880_tnrdmd_dvbt2_mon_carrier_offset() local
105 cxd2880_tnrdmd_dvbt2_mon_sync_stat(tnr_dmd, &sync_state, in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
113 if (sync_state != 6) { in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
178 u8 sync_state = 0; in cxd2880_tnrdmd_dvbt2_mon_l1_pre() local
202 cxd2880_tnrdmd_dvbt2_mon_sync_stat(tnr_dmd, &sync_state, in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
210 if (sync_state < 5) { in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
215 (tnr_dmd, &sync_state, &unlock_detected); in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
221 if (sync_state < 5) { in cxd2880_tnrdmd_dvbt2_mon_l1_pre()
356 u8 sync_state = 0; in cxd2880_tnrdmd_dvbt2_mon_version() local
379 cxd2880_tnrdmd_dvbt2_mon_sync_stat(tnr_dmd, &sync_state, in cxd2880_tnrdmd_dvbt2_mon_version()
[all …]
/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-ioread.c25 unsigned int sync_state; member
139 if (cp->sync_state) { in pvr2_ioread_stop()
142 cp->sync_state = 0; in pvr2_ioread_stop()
173 cp->sync_state = 1; in pvr2_ioread_start()
297 if (cp->sync_state != 1) return; in pvr2_ioread_filter()
332 cp->sync_state = 2; in pvr2_ioread_filter()
360 if (cp->sync_state == 1) { in pvr2_ioread_avail()
362 if (cp->sync_state == 1) return -EAGAIN; in pvr2_ioread_avail()
423 if (cp->sync_state == 2) { in pvr2_ioread_read()
450 if (cp->sync_state == 2) { in pvr2_ioread_read()
[all …]
/linux/Documentation/driver-api/driver-model/
H A Ddriver.rst188 void (*sync_state) (struct device *dev);
190 sync_state is called only once for a device. It's called when all the consumer
195 The first attempt to call sync_state() is made during late_initcall_sync() to
197 attempt at calling sync_state(), if all the consumers of the device at that
198 point in time have already probed successfully, sync_state() is called right
200 too is considered as "all consumers of the device have probed" and sync_state()
203 If during the first attempt at calling sync_state() for a device, there are
204 still consumers that haven't probed successfully, the sync_state() call is
208 sync_state() call is postponed again.
210 A typical use case for sync_state() is to have the kernel cleanly take over
[all …]
/linux/drivers/base/
H A Dbase.h190 if (dev->bus->sync_state) in dev_sync_state()
191 dev->bus->sync_state(dev); in dev_sync_state()
192 else if (dev->driver && dev->driver->sync_state) in dev_sync_state()
193 dev->driver->sync_state(dev); in dev_sync_state()
H A DKconfig241 bool "sync_state() behavior defaults to timeout instead of strict"
244 "fw_devlink.sync_state=timeout". Give up waiting on consumers and
245 call sync_state() on any devices that haven't yet received their
246 sync_state() calls after deferred_probe_timeout has expired or by
/linux/include/linux/
H A Ddevice.h924 if (dev->driver && dev->driver->sync_state) in dev_has_sync_state()
926 if (dev->bus && dev->bus->sync_state) in dev_has_sync_state()
936 if (dev->driver->sync_state && dev->driver->sync_state != fn) in dev_set_drv_sync_state()
938 if (!dev->driver->sync_state) in dev_set_drv_sync_state()
939 dev->driver->sync_state = fn; in dev_set_drv_sync_state()
/linux/drivers/scsi/arm/
H A Dfas216.c220 info->device[i].sof, info->device[i].sync_state); in fas216_dumpinfo()
534 if (dev->sync_state == neg_inprogress) { in fas216_handlesync()
535 dev->sync_state = neg_invalid; in fas216_handlesync()
541 switch (dev->sync_state) { in fas216_handlesync()
572 dev->sync_state = neg_targcomplete; in fas216_handlesync()
586 dev->sync_state = neg_complete; in fas216_handlesync()
1601 neg_t sync_state; in fas216_bus_reset() local
1606 sync_state = neg_invalid; in fas216_bus_reset()
1610 sync_state = neg_wait; in fas216_bus_reset()
1619 info->device[i].sync_state = sync_state; in fas216_bus_reset()
[all …]
H A Dacornscsi.c382 host->device[i].sync_state = SYNC_NEGOCIATE; in acornscsi_resetcard()
1540 if (host->device[host->SCpnt->device->id].sync_state == SYNC_SENT_REQUEST) in acornscsi_message()
1541 host->device[host->SCpnt->device->id].sync_state = SYNC_NEGOCIATE; in acornscsi_message()
1558 host->device[host->SCpnt->device->id].sync_state = SYNC_ASYNCHRONOUS; in acornscsi_message()
1578 if (host->device[host->SCpnt->device->id].sync_state == SYNC_SENT_REQUEST) { in acornscsi_message()
1585 host->device[host->SCpnt->device->id].sync_state = SYNC_COMPLETED; in acornscsi_message()
1668 if (host->device[host->SCpnt->device->id].sync_state == SYNC_NEGOCIATE) { in acornscsi_buildmessages()
1669 host->device[host->SCpnt->device->id].sync_state = SYNC_SENT_REQUEST; in acornscsi_buildmessages()
H A Dacornscsi.h322 syncxfer_t sync_state; /* sync xfer negotiation state */ member
H A Dfas216.h294 neg_t sync_state; /* synchronous transfer mode */ member
/linux/net/netfilter/ipvs/
H A Dip_vs_sync.c367 if (ipvs->sync_state & IP_VS_STATE_MASTER && in sb_queue_tail()
559 if (!(ipvs->sync_state & IP_VS_STATE_MASTER)) { in ip_vs_sync_conn_v0()
662 if (!(ipvs->sync_state & IP_VS_STATE_MASTER)) { in ip_vs_sync_conn()
1770 if (!ipvs->sync_state) { in start_sync_thread()
1882 ipvs->sync_state |= state; in start_sync_thread()
1902 if (!(ipvs->sync_state & IP_VS_STATE_MASTER)) { in start_sync_thread()
1955 ipvs->sync_state &= ~IP_VS_STATE_MASTER; in stop_sync_thread()
1981 ipvs->sync_state &= ~IP_VS_STATE_BACKUP; in stop_sync_thread()
/linux/drivers/interconnect/samsung/
H A Dexynos.c185 .sync_state = icc_sync_state,
/linux/include/linux/device/
H A Dbus.h88 void (*sync_state)(struct device *dev); member
/linux/drivers/clk/qcom/
H A Dapss-ipq5424.c251 .sync_state = icc_sync_state,
H A Dclk-cbf-8996.c352 .sync_state = qcom_msm8996_cbf_icc_sync_state,
/linux/drivers/interconnect/qcom/
H A Dosm-l3.c288 .sync_state = icc_sync_state,
H A Dsdx65.c893 .sync_state = icc_sync_state,
H A Dsdx55.c909 .sync_state = icc_sync_state,
H A Dsdx75.c1023 .sync_state = icc_sync_state,
/linux/drivers/memory/tegra/
H A Dtegra186-emc.c406 .sync_state = icc_sync_state,
H A Dmc.c997 .sync_state = tegra_mc_sync_state,
/linux/drivers/gpu/drm/i915/display/
H A Dintel_display_types.h234 void (*sync_state)(struct intel_encoder *encoder, member
530 void (*sync_state)(struct intel_connector *connector, member
/linux/drivers/md/
H A Ddm-raid.c3364 enum sync_state { st_frozen, st_reshape, st_resync, st_check, st_repair, st_recover, st_idle }; enum
3365 static const char *sync_str(enum sync_state state) in sync_str()
3382 static enum sync_state decipher_sync_action(struct mddev *mddev, unsigned long recovery) in decipher_sync_action()
3440 enum sync_state state, sector_t resync_max_sectors) in rs_get_progress()
3538 enum sync_state state; in raid_status()
/linux/include/net/
H A Dip_vs.h1033 volatile int sync_state; member
1124 return ipvs->sync_state & IP_VS_STATE_BACKUP && in sysctl_backup_only()

123